1 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
4 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
5 (ia64_target::low_breakpoint_at): Ditto.
7 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
9 * win32-i386-low.cc (i386_supports_z_point_type): Handle
10 Z_PACKET_HW_BP z_type.
11 (i386_insert_point): Handle raw_bkpt_type type.
12 (i386_remove_point): Likewise.
14 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
16 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
18 * win32-arm-low.cc (arm_num_regs): New function.
19 (struct win32_target_ops): Use arm_num_regs.
20 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
22 (i386_get_thread_context): Likewise.
23 (i386_prepare_to_resume): Likewise.
24 (i386_thread_added): Likewise.
25 (i386_single_step): Likewise.
26 (i386_fetch_inferior_register): Likewise.
27 (i386_store_inferior_register): Likewise.
28 (i386_arch_setup): Likewise.
29 (i386_win32_num_regs): New function.
30 (struct win32_target_ops): Use i386_win32_num_regs.
31 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
33 (win32_require_context): Likewise.
34 (child_add_thread): Likewise.
35 (do_initial_child_stuff): Likewise.
36 (continue_one_thread): Likewise.
37 (win32_process_target::resume): Likewise.
38 (load_psapi): Likewise.
39 (win32_add_all_dlls): Likewise.
40 (maybe_adjust_pc): Likewise.
41 (win32_process_target::qxfer_siginfo): Likewise.
42 (initialize_low): Likewise.
43 * win32-low.h (struct win32_target_ops): Change num_regs to
46 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
48 * configure.ac: Remove check for fs_base/gs_base in
50 * configure: Re-generate.
51 * config.in: Re-generate.
52 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
53 x86_store_gregset): Adjust.
55 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
57 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
60 2020-04-16 Tom Tromey <tromey@adacore.com>
62 * win32-low.cc (windows_nat::handle_access_violation): New
65 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
67 * win32-low.cc (get_child_debug_event): Fix format string warning.
69 2020-04-13 Tom Tromey <tom@tromey.com>
71 * server.h (gdb_fildes_t): Remove typedef.
72 * remote-utils.c (remote_desc, list_desc): Now int.
73 (INVALID_DESCRIPTOR): Remove.
74 (gdb_connected, remote_close)
75 (check_remote_input_interrupt_request): Update.
76 * utils.h (pfildes): Don't declare.
77 * utils.c (pfildes): Remove.
79 2020-04-13 Tom Tromey <tom@tromey.com>
81 * server.h (handle_serial_event, handle_target_event): Update.
82 * server.c: Don't call initialize_event_loop.
83 (keep_processing_events): New global.
84 (handle_serial_event): Return void. Set keep_processing_events.
85 (handle_target_event): Return void.
86 (start_event_loop): Move from event-loop.c. Rewrite.
87 * remote-utils.c (handle_accept_event): Return void.
88 (reset_readchar): Use delete_timer.
89 (process_remaining): Return void.
90 (reschedule): Use create_timer.
91 * event-loop.h: Remove.
92 * event-loop.cc: Remove.
93 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
95 2020-04-13 Tom Tromey <tom@tromey.com>
97 * server.c (invoke_async_signal_handlers)
98 (check_async_event_handlers, flush_streams, gdb_select): New
101 2020-04-13 Tom Tromey <tom@tromey.com>
103 * configure: Rebuild.
104 * config.in: Rebuild.
106 2020-04-08 Tom Tromey <tromey@adacore.com>
109 * win32-low.c (child_continue): Call matching_pending_stop.
110 (get_child_debug_event): Call fetch_pending_stop. Push pending
113 2020-04-08 Tom Tromey <tromey@adacore.com>
115 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
116 (win32_process_target::supports_stopped_by_sw_breakpoint):
118 * win32-low.c (win32_supports_z_point_type): Always handle
120 (win32_insert_point): Call insert_memory_breakpoint when needed.
121 (win32_remove_point): Call remove_memory_breakpoint when needed.
122 (win32_process_target::stopped_by_sw_breakpoint)
123 (win32_process_target::supports_stopped_by_sw_breakpoint): New
125 (win32_target_ops): Update.
126 (maybe_adjust_pc): New function.
127 (win32_wait): Call maybe_adjust_pc.
129 2020-04-08 Tom Tromey <tromey@adacore.com>
131 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
133 * win32-i386-low.c (the_low_target): Update.
134 * win32-arm-low.c (the_low_target): Update.
136 2020-04-08 Tom Tromey <tromey@adacore.com>
138 * win32-low.h (win32_process_target::read_pc)
139 (win32_process_target::write_pc): Declare.
140 * win32-low.c (win32_process_target::read_pc)
141 (win32_process_target::write_pc): New methods.
142 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
144 (the_low_target): Update.
145 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
147 (the_low_target): Update.
149 2020-04-08 Tom Tromey <tromey@adacore.com>
151 * win32-low.c (win32_kill, get_child_debug_event): Use
152 wait_for_debug_event.
154 2020-04-08 Tom Tromey <tromey@adacore.com>
156 * win32-low.c (child_continue): Call continue_last_debug_event.
158 2020-04-08 Tom Tromey <tromey@adacore.com>
160 * win32-low.c (handle_exception): Remove.
161 (windows_nat::handle_ms_vc_exception): New function.
162 (get_child_debug_event): Add "continue_status" parameter.
164 (win32_wait): Update.
166 2020-04-08 Tom Tromey <tromey@adacore.com>
168 * win32-low.c (windows_nat::handle_load_dll): Rename from
169 handle_load_dll. No longer static.
170 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
173 2020-04-08 Tom Tromey <tromey@adacore.com>
175 * win32-low.c (handle_output_debug_string): Add parameter. Change
177 (win32_kill, get_child_debug_event): Update.
179 2020-04-08 Tom Tromey <tromey@adacore.com>
181 * win32-low.c (current_process_handle, current_process_id)
182 (main_thread_id, last_sig, current_event, siginfo_er): Move to
185 2020-04-08 Tom Tromey <tromey@adacore.com>
187 * win32-low.c (get_image_name): Remove.
188 (handle_load_dll): Update.
190 2020-04-08 Tom Tromey <tromey@adacore.com>
192 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
193 No longer static. Change parameters.
194 (child_add_thread, child_fetch_inferior_registers)
195 (child_store_inferior_registers, win32_resume)
196 (win32_get_tib_address): Update.
198 2020-04-08 Tom Tromey <tromey@adacore.com>
200 * win32-low.h (struct win32_target_ops): Use qualified names where
202 * win32-i386-low.c: Add "using namespace".
203 * win32-low.c: Add "using namespace".
204 * win32-arm-low.c: Add "using namespace".
206 2020-04-08 Tom Tromey <tromey@adacore.com>
208 * win32-low.c (delete_thread_info): Don't call CloseHandle.
210 2020-04-08 Tom Tromey <tromey@adacore.com>
212 * win32-low.c (win32_require_context, suspend_one_thread): Use
213 windows_thread_info::suspend.
214 (continue_one_thread): Use windows_thread_info::resume.
215 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
217 2020-04-08 Tom Tromey <tromey@adacore.com>
219 * win32-i386-low.c (update_debug_registers)
220 (i386_prepare_to_resume, i386_thread_added): Update.
222 2020-04-08 Tom Tromey <tromey@adacore.com>
224 * win32-low.c (child_add_thread): Use new.
225 (delete_thread_info): Use delete.
227 2020-04-08 Tom Tromey <tromey@adacore.com>
229 * win32-low.h (struct windows_thread_info): Remove.
231 2020-04-08 Tom Tromey <tromey@adacore.com>
233 * win32-low.h (struct windows_thread_info): Rename from
234 win32_thread_info. Remove typedef.
235 (struct win32_target_ops, win32_require_context): Update.
236 * win32-low.c (win32_get_thread_context)
237 (win32_set_thread_context, win32_prepare_to_resume)
238 (win32_require_context, thread_rec, child_add_thread)
239 (delete_thread_info, continue_one_thread)
240 (child_fetch_inferior_registers, child_store_inferior_registers)
241 (win32_resume, suspend_one_thread, win32_get_tib_address):
243 * win32-i386-low.c (update_debug_registers)
244 (win32_get_current_dr, i386_get_thread_context)
245 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
246 (i386_fetch_inferior_register, i386_store_inferior_register):
248 * win32-arm-low.c (arm_get_thread_context)
249 (arm_fetch_inferior_register, arm_store_inferior_register):
252 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
254 * linux-low.h (struct linux_target_ops): Remove.
255 (the_low_target): Remove.
256 * linux-x86-low.cc (the_low_target): Remove.
257 * linux-aarch64-low.cc (the_low_target): Ditto.
258 * linux-arm-low.cc (the_low_target): Ditto.
259 * linux-bfin-low.cc (the_low_target): Ditto.
260 * linux-cris-low.cc (the_low_target): Ditto.
261 * linux-crisv32-low.cc (the_low_target): Ditto.
262 * linux-ia64-low.cc (the_low_target): Ditto.
263 * linux-m32r-low.cc (the_low_target): Ditto.
264 * linux-m68k-low.cc (the_low_target): Ditto.
265 * linux-mips-low.cc (the_low_target): Ditto.
266 * linux-nios2-low.cc (the_low_target): Ditto.
267 * linux-ppc-low.cc (the_low_target): Ditto.
268 * linux-riscv-low.cc (the_low_target): Ditto.
269 * linux-s390-low.cc (the_low_target): Ditto.
270 * linux-sh-low.cc (the_low_target): Ditto.
271 * linux-sparc-low.cc (the_low_target): Ditto.
272 * linux-tic6x-low.cc (the_low_target): Ditto.
273 * linux-tile-low.cc (the_low_target): Ditto.
274 * linux-xtensa-low.cc (the_low_target): Ditto.
276 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
278 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
279 linux target define the op by overriding the declaration in
280 process_stratum_target.
282 * linux-low.h (struct linux_target_ops): Remove the op.
283 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
284 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
285 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
286 (x86_get_ipa_tdesc_idx): Turn into...
287 (x86_target::get_ipa_tdesc_idx): ...this.
288 (the_low_target): Remove the op field.
289 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
290 (ppc_get_ipa_tdesc_idx): Turn into...
291 (ppc_target::get_ipa_tdesc_idx): ...this.
292 (the_low_target): Remove the op field.
293 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
294 (s390_get_ipa_tdesc_idx): Turn into...
295 (s390_target::get_ipa_tdesc_idx): ...this.
296 (the_low_target): Remove the op field.
298 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
300 Turn the 'get_syscall_trapinfo' linux target op into a method
301 of process_stratum_target.
303 * linux-low.h (struct linux_target_ops): Remove the op.
304 (class linux_process_target) <get_syscall_trapinfo>
305 <gdb_catch_this_syscall>
306 <low_supports_catch_syscall>
307 <low_get_syscall_trapinfo>: Declare.
308 * linux-low.cc (get_syscall_trapinfo): Turn into...
309 (linux_process_target::get_syscall_trapinfo): ...this.
310 (linux_process_target::low_get_syscall_trapinfo): Define.
311 (gdb_catch_this_syscall_p): Turn into...
312 (linux_process_target::gdb_catch_this_syscall): ...this.
313 (linux_process_target::low_supports_catch_syscall): Define.
315 Update the callers below.
317 (linux_process_target::wait_1)
318 (linux_process_target::supports_catch_syscall)
320 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
321 <low_get_syscall_trapinfo>: Declare.
322 (x86_target::low_supports_catch_syscall): Define.
323 (x86_get_syscall_trapinfo): Turn into...
324 (x86_target::low_get_syscall_trapinfo): ...this.
325 (the_low_target): Remove the op field.
326 * linux-aarch64-low.cc (class aarch64_target)
327 <low_supports_catch_syscall>
328 <low_get_syscall_trapinfo>: Declare.
329 (aarch64_target::low_supports_catch_syscall): Define.
330 (aarch64_get_syscall_trapinfo): Turn into...
331 (aarch64_target::low_get_syscall_trapinfo): ...this.
332 (the_low_target): Remove the op field.
333 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
334 <low_get_syscall_trapinfo>: Declare.
335 (arm_target::low_supports_catch_syscall): Define.
336 (arm_get_syscall_trapinfo): Turn into...
337 (arm_target::low_get_syscall_trapinfo): ...this.
338 (the_low_target): Remove the op field.
339 * linux-ppc-low.cc (the_low_target): Remove the op field.
340 * linux-s390-low.cc (the_low_target): Remove the op field.
342 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
344 Remove the 'supports_hardware_single_step' linux target op and
345 override the process_stratum_target's op definition in
346 linux_process_target to return true.
348 * linux-low.h (struct linux_target_ops): Remove the op.
349 (class linux_process_target) <finish_step_over>
350 <maybe_hw_step>: Declare.
351 * linux-low.cc (can_hardware_single_step): Remove.
352 (maybe_hw_step): Turn into...
353 (linux_process_target::maybe_hw_step): ...this.
354 (finish_step_over): Turn into...
355 (linux_process_target::finish_step_over): ...this.
356 (linux_process_target::supports_hardware_single_step): Update
359 Update the callers below.
361 (linux_process_target::single_step)
362 (linux_process_target::resume_one_lwp_throw)
364 * linux-arm-low.cc (class arm_target)
365 <supports_hardware_single_step>: Declare.
366 (arm_supports_hardware_single_step): Turn into...
367 (arm_target::supports_hardware_single_step): ...this.
368 (the_low_target): Remove the op field.
369 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
370 (the_low_target): Remove the op field.
371 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
373 (the_low_target): Remove the op field.
374 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
375 (the_low_target): Remove the op field.
376 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
377 (the_low_target): Remove the op field.
378 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
379 (the_low_target): Remove the op field.
380 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
381 (the_low_target): Remove the op field.
382 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
383 (the_low_target): Remove the op field.
384 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
385 (the_low_target): Remove the op field.
386 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
387 (the_low_target): Remove the op field.
388 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
389 (the_low_target): Remove the op field.
390 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
391 (the_low_target): Remove the op field.
392 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
394 (the_low_target): Remove the op field.
396 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
398 Turn the 'supports_range_stepping' linux target op into a method
399 of linux_process_target.
401 * linux-low.h (struct linux_target_ops): Remove the op.
402 (class linux_process_target) <low_supports_range_stepping>: Declare.
403 * linux-low.cc (linux_process_target::low_supports_range_stepping):
405 (linux_process_target::supports_range_stepping): Update the call
407 * linux-x86-low.cc (class x86_target)
408 <low_supports_range_stepping>: Declare.
409 (x86_supports_range_stepping): Turn into...
410 (x86_target::low_supports_range_stepping): ...this.
411 (the_low_target): Remove the op field.
412 * linux-aarch64-low.cc (class aarch64_target)
413 <low_supports_range_stepping>: Declare.
414 (aarch64_supports_range_stepping): Turn into...
415 (aarch64_target::low_supports_range_stepping): ...this.
416 (the_low_target): Remove the op field.
417 * linux-arm-low.cc (the_low_target): Remove the op field.
418 * linux-bfin-low.cc (the_low_target): Ditto.
419 * linux-crisv32-low.cc (the_low_target): Ditto.
420 * linux-m32r-low.cc (the_low_target): Ditto.
421 * linux-m68k-low.cc (the_low_target): Ditto.
422 * linux-ppc-low.cc (the_low_target): Ditto.
423 * linux-s390-low.cc (the_low_target): Ditto.
424 * linux-sh-low.cc (the_low_target): Ditto.
425 * linux-tic6x-low.cc (the_low_target): Ditto.
426 * linux-tile-low.cc (the_low_target): Ditto.
427 * linux-xtensa-low.cc (the_low_target): Ditto.
429 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
431 Remove the 'emit_ops' linux target ops and let the concrete
432 linux target define the op by overriding the declaration of
433 process_stratum_target.
435 * linux-low.h (struct linux_target_ops): Remove the op.
436 (class linux_process_target) <emit_ops>: Remove.
437 * linux-low.cc (linux_process_target::emit_ops): Remove.
438 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
439 (x86_emit_ops): Turn into...
440 (x86_target::emit_ops): ...this.
441 (the_low_target): Remove the op field.
442 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
443 (aarch64_emit_ops): Turn into...
444 (aarch64_target::emit_ops): ...this.
445 (the_low_target): Remove the op field.
446 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
447 (ppc_emit_ops): Turn into...
448 (ppc_target::emit_ops): ...this.
449 (the_low_target): Remove the op field.
450 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
451 (s390_emit_ops): Turn into...
452 (s390_target::emit_ops): ...this.
453 (the_low_target): Remove the op field.
454 * linux-arm-low.cc (the_low_target): Remove the op field.
455 * linux-bfin-low.cc (the_low_target): Ditto.
456 * linux-crisv32-low.cc (the_low_target): Ditto.
457 * linux-m32r-low.cc (the_low_target): Ditto.
458 * linux-m68k-low.cc (the_low_target): Ditto.
459 * linux-sh-low.cc (the_low_target): Ditto.
460 * linux-tic6x-low.cc (the_low_target): Ditto.
461 * linux-tile-low.cc (the_low_target): Ditto.
462 * linux-xtensa-low.cc (the_low_target): Ditto.
464 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
466 Remove the 'install_fast_tracepoint_jump_pad' and
467 'get_min_fast_tracepoint_insn_len' linux target ops to let the
468 concrete linux target define the ops by overriding the declarations
469 of process_stratum_target.
471 * linux-low.h (struct linux_target_ops): Remove the ops.
472 (class linux_process_target) <supports_fast_tracepoints>
473 <install_fast_tracepoint_jump_pad>
474 <get_min_fast_tracepoint_insn_len>: Remove.
475 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
476 (linux_process_target::install_fast_tracepoint_jump_pad)
477 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
478 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
479 <install_fast_tracepoint_jump_pad>
480 <get_min_fast_tracepoint_insn_len>: Declare.
481 (x86_target::supports_fast_tracepoints): Define.
482 (x86_install_fast_tracepoint_jump_pad): Turn into...
483 (x86_target::install_fast_tracepoint_jump_pad): ...this.
484 (x86_get_min_fast_tracepoint_insn_len): Turn into...
485 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
486 (the_low_target): Remove the op fields.
487 * linux-aarch64-low.cc (class aarch64_target)
488 <supports_fast_tracepoints>
489 <install_fast_tracepoint_jump_pad>
490 <get_min_fast_tracepoint_insn_len>: Declare.
491 (aarch64_target::supports_fast_tracepoints): Define.
492 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
493 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
494 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
495 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
496 (the_low_target): Remove the op fields.
497 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
498 <install_fast_tracepoint_jump_pad>
499 <get_min_fast_tracepoint_insn_len>: Declare.
500 (ppc_target::supports_fast_tracepoints): Define.
501 (ppc_install_fast_tracepoint_jump_pad): Turn into...
502 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
503 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
504 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
505 (the_low_target): Remove the op fields.
506 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
507 <install_fast_tracepoint_jump_pad>
508 <get_min_fast_tracepoint_insn_len>: Declare.
509 (s390_target::supports_fast_tracepoints): Define.
510 (s390_install_fast_tracepoint_jump_pad): Turn into...
511 (s390_target::install_fast_tracepoint_jump_pad): ...this.
512 (s390_get_min_fast_tracepoint_insn_len): Turn into...
513 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
514 (the_low_target): Remove the op fields.
515 * linux-arm-low.cc (the_low_target): Remove the op fields.
516 * linux-bfin-low.cc (the_low_target): Ditto.
517 * linux-crisv32-low.cc (the_low_target): Ditto.
518 * linux-m32r-low.cc (the_low_target): Ditto.
519 * linux-m68k-low.cc (the_low_target): Ditto.
520 * linux-sh-low.cc (the_low_target): Ditto.
521 * linux-tic6x-low.cc (the_low_target): Ditto.
522 * linux-tile-low.cc (the_low_target): Ditto.
523 * linux-xtensa-low.cc (the_low_target): Ditto.
525 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
527 Turn the 'get_thread_area' linux target op into a method of
528 process_stratum_target.
530 * linux-low.h (struct linux_target_ops): Remove the op.
531 (class linux_process_target) <stuck_in_jump_pad>
532 <linux_fast_tracepoint_collecting>
533 <low_get_thread_area>: Declare.
534 * linux-low.cc (supports_fast_tracepoints): Remove.
535 (linux_fast_tracepoint_collecting): Turn into...
536 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
537 (linux_process_target::low_get_thread_area): Define.
538 (stuck_in_jump_pad_callback): Turn into...
539 (linux_process_target::stuck_in_jump_pad): ...this.
541 Update the caller below.
543 (linux_process_target::stabilize_threads)
545 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
547 (x86_get_thread_area): Turn into...
548 (x86_target::low_get_thread_area): ...this.
549 (the_low_target): Remove the op field.
550 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
552 (aarch64_get_thread_area): Turn into...
553 (aarch64_target::low_get_thread_area): ...this.
554 (the_low_target): Remove the op field.
555 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
557 (ppc_get_thread_area): Turn into...
558 (ppc_target::low_get_thread_area): ...this.
559 (the_low_target): Remove the op field.
560 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
562 (s390_get_thread_area): Turn into...
563 (s390_target::low_get_thread_area): ...this.
564 (the_low_target): Remove the op field.
565 * linux-arm-low.cc (the_low_target): Remove the op field.
566 * linux-bfin-low.cc (the_low_target): Ditto.
567 * linux-crisv32-low.cc (the_low_target): Ditto.
568 * linux-m32r-low.cc (the_low_target): Ditto.
569 * linux-m68k-low.cc (the_low_target): Ditto.
570 * linux-sh-low.cc (the_low_target): Ditto.
571 * linux-tic6x-low.cc (the_low_target): Ditto.
572 * linux-tile-low.cc (the_low_target): Ditto.
573 * linux-xtensa-low.cc (the_low_target): Ditto.
575 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577 Remote the 'supports_tracepoints' linux target op and let the
578 concrete linux target define it by overriding the op declared in
579 process_stratum_target.
581 * linux-low.h (struct linux_target_ops): Remove the op.
582 (class linux_process_target) <supports_tracepoints>: Remove.
583 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
584 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
586 (x86_supports_tracepoints): Turn into...
587 (x86_target::supports_tracepoints): ...this.
588 (the_low_target): Remove the op field.
589 * linux-aarch64-low.cc (class aarch64_target)
590 <supports_tracepoints>: Declare.
591 (aarch64_supports_tracepoints): Turn into...
592 (aarch64_target::supports_tracepoints): ...this.
593 (the_low_target): Remove the op field.
594 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
596 (ppc_supports_tracepoints): Turn into...
597 (ppc_target::supports_tracepoints): ...this.
598 (the_low_target): Remove the op field.
599 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
601 (s390_supports_tracepoints): Turn into...
602 (s390_target::supports_tracepoints): ...this.
603 (the_low_target): Remove the op field.
604 * linux-arm-low.cc (the_low_target): Remove the op field.
605 * linux-bfin-low.cc (the_low_target): Ditto.
606 * linux-crisv32-low.cc (the_low_target): Ditto.
607 * linux-m32r-low.cc (the_low_target): Ditto.
608 * linux-m68k-low.cc (the_low_target): Ditto.
609 * linux-sh-low.cc (the_low_target): Ditto.
610 * linux-tic6x-low.cc (the_low_target): Ditto.
611 * linux-tile-low.cc (the_low_target): Ditto.
612 * linux-xtensa-low.cc (the_low_target): Ditto.
614 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
616 Remove the 'process_qsupported' linux target op and let a concrete
617 linux target define the op by overriding the op declaration in
618 process_stratum_target.
620 * linux-low.h (struct linux_target_ops): Remove the op.
621 (class linux_process_target) <process_qsupported>: Remove.
622 * linux-low.cc (linux_process_target::process_qsupported): Remove.
623 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
624 (x86_linux_process_qsupported): Turn into...
625 (x86_target::process_qsupported): ...this.
626 (the_low_target): Remove the op field.
627 * linux-aarch64-low.cc (the_low_target): Remove the op
629 * linux-arm-low.cc (the_low_target): Ditto.
630 * linux-bfin-low.cc (the_low_target): Ditto.
631 * linux-crisv32-low.cc (the_low_target): Ditto.
632 * linux-m32r-low.cc (the_low_target): Ditto.
633 * linux-m68k-low.cc (the_low_target): Ditto.
634 * linux-ppc-low.cc (the_low_target): Ditto.
635 * linux-s390-low.cc (the_low_target): Ditto.
636 * linux-sh-low.cc (the_low_target): Ditto.
637 * linux-tic6x-low.cc (the_low_target): Ditto.
638 * linux-tile-low.cc (the_low_target): Ditto.
639 * linux-xtensa-low.cc (the_low_target): Ditto.
641 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
643 Turn the 'prepare_to_resume' linux target op into a method of
644 linux_process_target.
646 * linux-low.h (struct linux_target_ops): Remove the op.
647 (class linux_process_target) <low_prepare_to_resume>: Declare.
648 * linux-low.cc (linux_process_target::low_prepare_to_resume):
651 Update the callers below:
653 (linux_process_target::resume_one_lwp_throw)
654 (linux_process_target::low_prepare_to_resume)
656 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
658 (x86_target::low_prepare_to_resume): Define.
659 (the_low_target): Remove the op field.
660 * linux-aarch64-low.cc (class aarch64_target)
661 <low_prepare_to_resume>: Declare.
662 (aarch64_target::low_prepare_to_resume): Define.
663 (the_low_target): Remove the op field.
664 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
666 (arm_prepare_to_resume): Turn into...
667 (arm_target::low_prepare_to_resume): ...this.
668 (the_low_target): Remove the op field.
669 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
671 (mips_linux_prepare_to_resume): Turn into...
672 (mips_target::low_prepare_to_resume): ...this.
673 (the_low_target): Remove the op field.
674 * linux-bfin-low.cc (the_low_target): Remove the op field.
675 * linux-crisv32-low.cc (the_low_target): Ditto.
676 * linux-m32r-low.cc (the_low_target): Ditto.
677 * linux-m68k-low.cc (the_low_target): Ditto.
678 * linux-ppc-low.cc (the_low_target): Ditto.
679 * linux-s390-low.cc (the_low_target): Ditto.
680 * linux-sh-low.cc (the_low_target): Ditto.
681 * linux-tic6x-low.cc (the_low_target): Ditto.
682 * linux-tile-low.cc (the_low_target): Ditto.
683 * linux-xtensa-low.cc (the_low_target): Ditto.
685 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
687 Turn the 'new_process', 'delete_process', 'new_thread',
688 'delete_thread', and 'new_fork' linux target ops into methods
689 of linux_process_target.
691 * linux-low.h (struct linux_target_ops): Remove the ops.
692 (class linux_process_target) <add_linux_process>
697 <check_zombie_leaders>
703 <low_new_fork>: Declare.
704 * linux-low.cc (delete_lwp): Turn into...
705 (linux_process_target::delete_lwp): ...this.
706 (linux_process_target::low_delete_thread): Define.
707 (linux_add_process): Turn into...
708 (linux_process_target::add_linux_process): ...this.
709 (linux_process_target::low_new_process): Define.
710 (linux_process_target::low_delete_process): Define.
711 (linux_process_target::low_new_fork): Define.
712 (add_lwp): Turn into...
713 (linux_process_target::add_lwp): ...this.
714 (linux_process_target::low_new_thread): Define.
715 (linux_attach_lwp): Turn into...
716 (linux_process_target::attach_lwp): ...this.
717 (linux_detach_one_lwp): Turn into...
718 (linux_process_target::detach_one_lwp): ...this.
719 (linux_detach_lwp_callback): Remove and inline...
720 (linux_process_target::detach): ...here.
721 (check_zombie_leaders): Turn into...
722 (linux_process_target::check_zombie_leaders): ...this.
723 (filter_exit_event): Turn into...
724 (linux_process_target::filter_exit_event): ...this.
726 Update the callers below.
728 (linux_process_target::handle_extended_wait)
729 (linux_process_target::create_inferior)
730 (attach_proc_task_lwp_callback)
731 (linux_process_target::attach)
732 (linux_process_target::detach)
733 (linux_process_target::mourn)
734 * thread-db.cc (attach_thread)
736 * linux-x86-low.cc (class x86_target) <low_new_process>
740 <low_new_fork>: Declare.
741 (x86_linux_new_process): Turn into...
742 (x86_target::low_new_process): ...this.
743 (x86_linux_delete_process): Turn into...
744 (x86_target::low_delete_process): ...this.
745 (x86_target::low_new_thread): Define.
746 (x86_target::low_delete_thread): Define.
747 (x86_linux_new_fork): Turn into...
748 (x86_target::low_new_fork): ...this.
749 (the_low_target): Remove the op fields.
750 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
754 <low_new_fork>: Declare.
755 (aarch64_linux_new_process): Turn into...
756 (aarch64_target::low_new_process): ...this.
757 (aarch64_linux_delete_process): Turn into...
758 (aarch64_target::low_delete_process): ...this.
759 (aarch64_target::low_new_thread): Define.
760 (aarch64_target::low_delete_thread): Define.
761 (aarch64_linux_new_fork): Turn into...
762 (aarch64_target::low_new_fork): ...this.
763 (the_low_target): Remove the op fields.
764 * linux-arm-low.cc (class arm_target) <low_new_process>
768 <low_new_fork>: Declare.
769 (arm_new_process): Turn into...
770 (arm_target::low_new_process): ...this.
771 (arm_delete_process): Turn into...
772 (arm_target::low_delete_process): ...this.
773 (arm_new_thread): Turn into...
774 (arm_target::low_new_thread): ...this.
775 (arm_delete_thread): Turn into...
776 (arm_target::low_delete_thread): ...this.
777 (arm_new_fork): Turn into...
778 (arm_target::low_new_fork): ...this.
779 (the_low_target): Remove the op fields.
780 * linux-mips-low.cc (class mips_target) <low_new_process>
784 <low_new_fork>: Declare.
785 (mips_linux_new_process): Turn into...
786 (mips_target::low_new_process): ...this.
787 (mips_linux_delete_process): Turn into...
788 (mips_target::low_delete_process): ...this.
789 (mips_linux_new_thread): Turn into...
790 (mips_target::low_new_thread): ...this.
791 (mips_linux_delete_thread): Turn into...
792 (mips_target::low_delete_thread): ...this.
793 (mips_linux_new_fork): Turn into...
794 (mips_target::low_new_fork): ...this.
795 (the_low_target): Remove the op fields.
796 * linux-bfin-low.cc (the_low_target): Remove the op fields.
797 * linux-crisv32-low.cc (the_low_target): Ditto.
798 * linux-m32r-low.cc (the_low_target): Ditto.
799 * linux-m68k-low.cc (the_low_target): Ditto.
800 * linux-ppc-low.cc (the_low_target): Ditto.
801 * linux-s390-low.cc (the_low_target): Ditto.
802 * linux-sh-low.cc (the_low_target): Ditto.
803 * linux-tic6x-low.cc (the_low_target): Ditto.
804 * linux-tile-low.cc (the_low_target): Ditto.
805 * linux-xtensa-low.cc (the_low_target): Ditto.
807 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
809 Turn the 'siginfo_fixup' linux target op into a method of
810 linux_process_target.
812 * linux-low.h (struct linux_target_ops): Remove the op.
813 (class linux_process_target) <siginfo_fixup>
814 <low_siginfo_fixup>: Declare.
815 * linux-low.cc (siginfo_fixup): Turn into...
816 (linux_process_target::siginfo_fixup): ...this.
817 (linux_process_target::low_siginfo_fixup): Define.
818 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
819 (x86_siginfo_fixup): Turn into...
820 (x86_target::low_siginfo_fixup): ...this.
821 (the_low_target): Remove the op field.
822 * linux-aarch64-low.cc (class aarch64_target):
823 <low_siginfo_fixup>: Declare.
824 (aarch64_linux_siginfo_fixup): Turn into...
825 (aarch64_target::low_siginfo_fixup): ...this.
826 (the_low_target): Remove the op field.
827 * linux-arm-low.cc (the_low_target): Remove the op field.
828 * linux-bfin-low.cc (the_low_target): Ditto.
829 * linux-crisv32-low.cc (the_low_target): Ditto.
830 * linux-m32r-low.cc (the_low_target): Ditto.
831 * linux-m68k-low.cc (the_low_target): Ditto.
832 * linux-mips-low.cc (the_low_target): Ditto.
833 * linux-ppc-low.cc (the_low_target): Ditto.
834 * linux-s390-low.cc (the_low_target): Ditto.
835 * linux-sh-low.cc (the_low_target): Ditto.
836 * linux-tic6x-low.cc (the_low_target): Ditto.
837 * linux-tile-low.cc (the_low_target): Ditto.
838 * linux-xtensa-low.cc (the_low_target): Ditto.
840 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
842 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
843 linux target ops into methods of linux_process_target.
845 * linux-low.h (struct linux_target_ops): Remove the ops.
846 (class linux_process_target) <low_collect_ptrace_register>
847 <low_store_ptrace_register>: Declare.
848 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
849 (linux_process_target::low_supply_ptrace_register): Define.
851 Update the callers below.
853 (linux_process_target::fetch_register)
854 (linux_process_target::store_register)
856 * linux-x86-low.cc (the_low_target): Remove the op fields.
857 * linux-aarch64-low.cc (the_low_target): Ditto.
858 * linux-arm-low.cc (the_low_target): Ditto.
859 * linux-bfin-low.cc (the_low_target): Ditto.
860 * linux-crisv32-low.cc (the_low_target): Ditto.
861 * linux-m32r-low.cc (the_low_target): Ditto.
862 * linux-m68k-low.cc (the_low_target): Ditto.
863 * linux-sh-low.cc (the_low_target): Ditto.
864 * linux-sparc-low.cc (the_low_target): Ditto.
865 * linux-tic6x-low.cc (the_low_target): Ditto.
866 * linux-tile-low.cc (the_low_target): Ditto.
867 * linux-xtensa-low.cc (the_low_target): Ditto.
868 * linux-mips-low.cc (class mips_target)
869 <low_collect_ptrace_register>
870 <low_supply_ptrace_register>: Declare.
871 (mips_collect_ptrace_register): Turn into ...
872 (mips_target::low_collect_ptrace_register): ...this.
873 (mips_supply_ptrace_register): Turn into...
874 (mips_target::low_supply_ptrace_register): ...this.
875 (the_low_target): Remove the op fields.
876 * linux-ppc-low.cc (class ppc_target)
877 <low_collect_ptrace_register>
878 <low_supply_ptrace_register>: Declare.
879 (ppc_collect_ptrace_register): Turn into ...
880 (ppc_target::low_collect_ptrace_register): ...this.
881 (ppc_supply_ptrace_register): Turn into ...
882 (ppc_target::low_supply_ptrace_register): ...this.
883 (ppc_fill_gregset): Update for the calls to
884 low_collect_ptrace_register.
885 (the_low_target): Remove the op fields.
886 * linux-s390-low.cc (class s390_target)
887 <low_collect_ptrace_register>
888 <low_supply_ptrace_register>: Declare.
889 (s390_collect_ptrace_register): Turn into ...
890 (s390_target::low_collect_ptrace_register): ...this.
891 (s390_supply_ptrace_register): Turn into ...
892 (s390_target::low_supply_ptrace_register): ...this.
893 (s390_fill_gregset): Update for the calls to
894 low_collect_ptrace_register.
895 (the_low_target): Remove the op fields.
897 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
899 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
900 target ops into methods of linux_process_target.
902 * linux-low.h (struct linux_target_ops): Remove the ops.
903 (class linux_process_target) <check_stopped_by_watchpoint>
904 <low_stopped_by_watchpoint>
905 <low_stopped_data_address>: Declare.
906 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
907 (linux_process_target::check_stopped_by_watchpoint): ...this.
908 (linux_process_target::low_stopped_by_watchpoint): Define.
909 (linux_process_target::low_stopped_data_address): Define.
910 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
911 <low_stopped_data_address>: Declare.
912 (x86_stopped_by_watchpoint): Turn into...
913 (x86_target::low_stopped_by_watchpoint): ...this.
914 (x86_stopped_data_address): Turn into...
915 (x86_target::low_stopped_data_address): ...this.
916 (the_low_target): Remove the op fields.
917 * linux-aarch64-low.cc (class aarch64_target)
918 <low_stopped_by_watchpoint>
919 <low_stopped_data_address>: Declare.
920 (aarch64_stopped_by_watchpoint): Turn into...
921 (aarch64_target::low_stopped_by_watchpoint): ...this.
922 (aarch64_stopped_data_address): Turn into...
923 (aarch64_target::low_stopped_data_address): ...this.
924 (the_low_target): Remove the op fields.
925 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
926 <low_stopped_data_address>: Declare.
927 (arm_stopped_by_watchpoint): Turn into...
928 (arm_target::low_stopped_by_watchpoint): ...this.
929 (arm_stopped_data_address): Turn into...
930 (arm_target::low_stopped_data_address): ...this.
931 (the_low_target): Remove the op fields.
932 * linux-crisv32-low.cc (class crisv32_target)
933 <low_stopped_by_watchpoint>
934 <low_stopped_data_address>: Declare.
935 (cris_stopped_by_watchpoint): Turn into...
936 (crisv32_target::low_stopped_by_watchpoint): ...this.
937 (cris_stopped_data_address): Turn into...
938 (crisv32_target::low_stopped_data_address): ...this.
939 (the_low_target): Remove the op fields.
940 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
941 <low_stopped_data_address>: Declare.
942 (mips_stopped_by_watchpoint): Turn into...
943 (mips_target::low_stopped_by_watchpoint): ...this.
944 (mips_stopped_data_address): Turn into...
945 (mips_target::low_stopped_data_address): ...this.
946 (the_low_target): Remove the op fields.
947 * linux-bfin-low.cc (the_low_target): Remove the op fields.
948 * linux-m32r-low.cc (the_low_target): Ditto.
949 * linux-m68k-low.cc (the_low_target): Ditto.
950 * linux-ppc-low.cc (the_low_target): Ditto.
951 * linux-s390-low.cc (the_low_target): Ditto.
952 * linux-sh-low.cc (the_low_target): Ditto.
953 * linux-sparc-low.cc (the_low_target): Ditto.
954 * linux-tic6x-low.cc (the_low_target): Ditto.
955 * linux-tile-low.cc (the_low_target): Ditto.
956 * linux-xtensa-low.cc (the_low_target): Ditto.
958 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
960 Turn the 'insert_point' and 'remove_point' linux target ops into
961 methods of linux_process_target.
963 * linux-low.h (struct linux_target_ops): Remove the ops.
964 (class linux_process_target) <low_insert_point>
965 <low_remove_point>: Declare.
966 * linux-low.cc (linux_process_target::low_insert_point)
967 (linux_process_target::low_remove_point): Define.
968 (linux_process_target::insert_point)
969 (linux_process_target::remove_point): Update for calls to
970 low_insert_point and low_remove_point.
971 * linux-x86-low.cc (class x86_target) <low_insert_point>
972 <low_remove_point>: Declare.
973 (x86_insert_point): Turn into...
974 (x86_target::low_insert_point): ...this.
975 (x86_remove_point): Turn into...
976 (x86_target::low_remove_point): ...this.
977 (the_low_target): Remove the op fields.
978 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
979 <low_remove_point>: Declare.
980 (aarch64_insert_point): Turn into...
981 (aarch64_target::low_insert_point): ...this.
982 (aarch64_remove_point): Turn into...
983 (aarch64_target::low_remove_point): ...this.
984 (the_low_target): Remove the op fields.
985 * linux-arm-low.cc (class arm_target) <low_insert_point>
986 <low_remove_point>: Declare.
987 (arm_insert_point): Turn into...
988 (arm_target::low_insert_point): ...this.
989 (arm_remove_point): Turn into...
990 (arm_target::low_remove_point): ...this.
991 (the_low_target): Remove the op fields.
992 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
993 <low_remove_point>: Declare.
994 (crisv32_insert_point): Turn into...
995 (crisv32_target::low_insert_point): ...this.
996 (crisv32_remove_point): Turn into...
997 (crisv32_target::low_remove_point): ...this.
998 (the_low_target): Remove the op fields.
999 * linux-mips-low.cc (class mips_target) <low_insert_point>
1000 <low_remove_point>: Declare.
1001 (mips_insert_point): Turn into...
1002 (mips_target::low_insert_point): ...this.
1003 (mips_remove_point): Turn into...
1004 (mips_target::low_remove_point): ...this.
1005 (the_low_target): Remove the op fields.
1006 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1007 <low_remove_point>: Declare.
1008 (ppc_insert_point): Turn into...
1009 (ppc_target::low_insert_point): ...this.
1010 (ppc_remove_point): Turn into...
1011 (ppc_target::low_remove_point): ...this.
1012 (the_low_target): Remove the op fields.
1013 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1014 * linux-m32r-low.cc (the_low_target): Ditto.
1015 * linux-m68k-low.cc (the_low_target): Ditto.
1016 * linux-s390-low.cc (the_low_target): Ditto.
1017 * linux-sh-low.cc (the_low_target): Ditto.
1018 * linux-sparc-low.cc (the_low_target): Ditto.
1019 * linux-tic6x-low.cc (the_low_target): Ditto.
1020 * linux-tile-low.cc (the_low_target): Ditto.
1021 * linux-xtensa-low.cc (the_low_target): Ditto.
1023 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1025 Remove the 'supports_z_point_type' linux target op and let the
1026 concrete linux target define it by overriding the op declared in
1027 process_stratum_target.
1029 * linux-low.cc (linux_process_target::supports_z_point_type):
1031 * linux-low.h (struct linux_target_ops): Remove the op.
1032 (class linux_process_target) <supports_z_point_type>: Remove.
1033 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1035 (x86_supports_z_point_type): Turn into...
1036 (x86_target::supports_z_point_type): ...this.
1037 (the_low_target): Remove the op field.
1038 * linux-aarch64-low.cc (class aarch64_target)
1039 <supports_z_point_type>: Declare.
1040 (aarch64_supports_z_point_type): Turn into...
1041 (aarch64_target::supports_z_point_type): ...this.
1042 (the_low_target): Remove the op field.
1043 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1045 (arm_supports_z_point_type): Turn into...
1046 (arm_target::supports_z_point_type): ...this.
1047 (the_low_target): Remove the op field.
1048 * linux-crisv32-low.cc (class crisv32_target)
1049 <supports_z_point_type>: Declare.
1050 (cris_supports_z_point_type): Turn into...
1051 (crisv32_target::supports_z_point_type): ...this.
1052 (the_low_target): Remove the op field.
1053 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1055 (mips_supports_z_point_type): Turn into...
1056 (mips_target::supports_z_point_type): ...this.
1057 (the_low_target): Remove the op field.
1058 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1060 (ppc_supports_z_point_type): Turn into...
1061 (ppc_target::supports_z_point_type): ...this.
1062 (the_low_target): Remove the op field.
1063 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1065 (s390_supports_z_point_type): Turn into...
1066 (s390_target::supports_z_point_type): ...this.
1067 (the_low_target): Remove the op field.
1068 * linux-bfin-low.cc (the_low_target): Remove the op field.
1069 * linux-m32r-low.cc (the_low_target): Ditto.
1070 * linux-m68k-low.cc (the_low_target): Ditto.
1071 * linux-sh-low.cc (the_low_target): Ditto.
1072 * linux-sparc-low.cc (the_low_target): Ditto.
1073 * linux-tic6x-low.cc (the_low_target): Ditto.
1074 * linux-tile-low.cc (the_low_target): Ditto.
1075 * linux-xtensa-low.cc (the_low_target): Ditto.
1077 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1079 Turn the 'breakpoint_at' linux target op into a method of
1080 linux_process_target.
1082 * linux-low.h (struct linux_target_ops): Remove the op.
1083 (class linux_process_target) <low_breakpoint_at>: Declare.
1085 Update the callers below:
1087 * linux-low.cc (linux_process_target::save_stop_reason)
1088 (linux_process_target::thread_still_has_status_pending)
1089 (linux_process_target::wait_1)
1091 * linux-x86-low.cc (class x86_target)
1092 <low_breakpoint_at>: Declare.
1093 (x86_breakpoint_at): Turn into...
1094 (x86_target::low_breakpoint_at): ...this.
1095 (the_low_target): Remove the op field.
1096 * linux-aarch64-low.cc (class aarch64_target)
1097 <low_breakpoint_at>: Declare.
1098 (aarch64_breakpoint_at): Turn into...
1099 (aarch64_target::low_breakpoint_at): ...this.
1100 (the_low_target): Remove the op field.
1101 * linux-arm-low.cc (class arm_target)
1102 <low_breakpoint_at>: Declare.
1103 (arm_target::low_breakpoint_at): Define.
1104 (the_low_target): Remove the op field.
1105 * linux-bfin-low.cc (class bfin_target)
1106 <low_breakpoint_at>: Declare.
1107 (bfin_breakpoint_at): Turn into...
1108 (bfin_target::low_breakpoint_at): ...this.
1109 (the_low_target): Remove the op field.
1110 * linux-cris-low.cc (class cris_target)
1111 <low_breakpoint_at>: Declare.
1112 (cris_breakpoint_at): Turn into...
1113 (cris_target::low_breakpoint_at): ...this.
1114 (the_low_target): Remove the op field.
1115 * linux-crisv32-low.cc (class crisv32_target)
1116 <low_breakpoint_at>: Declare.
1117 (crisv32_breakpoint_at): Turn into...
1118 (crisv32_target::low_breakpoint_at): ...this.
1119 (the_low_target): Remove the op field.
1120 * linux-ia64-low.cc (class ia64_target)
1121 <low_breakpoint_at>: Declare.
1122 (ia64_target::low_breakpoint_at): Define.
1123 * linux-m32r-low.cc (class m32r_target)
1124 <low_breakpoint_at>: Declare.
1125 (m32r_breakpoint_at): Turn into...
1126 (m32r_target::low_breakpoint_at): ...this.
1127 (the_low_target): Remove the op field.
1128 * linux-m68k-low.cc (class m68k_target)
1129 <low_breakpoint_at>: Declare.
1130 (m68k_breakpoint_at): Turn into...
1131 (m68k_target::low_breakpoint_at): ...this.
1132 (the_low_target): Remove the op field.
1133 * linux-mips-low.cc (class mips_target)
1134 <low_breakpoint_at>: Declare.
1135 (mips_breakpoint_at): Turn into...
1136 (mips_target::low_breakpoint_at): ...this.
1137 (the_low_target): Remove the op field.
1138 * linux-nios2-low.cc (class nios2_target)
1139 <low_breakpoint_at>: Declare.
1140 (nios2_breakpoint_at): Turn into...
1141 (nios2_target::low_breakpoint_at): ...this.
1142 (the_low_target): Remove the op field.
1143 * linux-ppc-low.cc (class ppc_target)
1144 <low_breakpoint_at>: Declare.
1145 (ppc_breakpoint_at): Turn into...
1146 (ppc_target::low_breakpoint_at): ...this.
1147 (the_low_target): Remove the op field.
1148 * linux-riscv-low.cc (class riscv_target)
1149 <low_breakpoint_at>: Declare.
1150 (riscv_breakpoint_at): Turn into...
1151 (riscv_target::low_breakpoint_at): ...this.
1152 (the_low_target): Remove the op field.
1153 * linux-s390-low.cc (class s390_target)
1154 <low_breakpoint_at>: Declare.
1155 (s390_breakpoint_at): Turn into...
1156 (s390_target::low_breakpoint_at): ...this.
1157 (the_low_target): Remove the op field.
1158 * linux-sh-low.cc (class sh_target)
1159 <low_breakpoint_at>: Declare.
1160 (sh_breakpoint_at): Turn into...
1161 (sh_target::low_breakpoint_at): ...this.
1162 (the_low_target): Remove the op field.
1163 * linux-sparc-low.cc (class sparc_target)
1164 <low_breakpoint_at>: Declare.
1165 (sparc_breakpoint_at): Turn into...
1166 (sparc_target::low_breakpoint_at): ...this.
1167 (the_low_target): Remove the op field.
1168 * linux-tic6x-low.cc (class tic6x_target)
1169 <low_breakpoint_at>: Declare.
1170 (tic6x_breakpoint_at): Turn into...
1171 (tic6x_target::low_breakpoint_at): ...this.
1172 (the_low_target): Remove the op field.
1173 * linux-tile-low.cc (class tile_target)
1174 <low_breakpoint_at>: Declare.
1175 (tile_breakpoint_at): Turn into...
1176 (tile_target::low_breakpoint_at): ...this.
1177 (the_low_target): Remove the op field.
1178 * linux-xtensa-low.cc (class xtensa_target)
1179 <low_breakpoint_at>: Declare.
1180 (xtensa_breakpoint_at): Turn into...
1181 (xtensa_target::low_breakpoint_at): ...this.
1182 (the_low_target): Remove the op field.
1184 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1186 Turn the 'decr_pc_after_break' linux_target_ops field into
1187 a method of linux_process_target.
1189 * linux-low.h (struct linux_target_ops)
1190 <decr_pc_after_break>: Remove.
1191 (class linux_process_target) <low_decr_pc_after_break>: New method
1193 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1194 New method implementation.
1196 Update the users below.
1198 (linux_process_target::save_stop_reason)
1199 (linux_process_target::wait_1)
1200 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1202 (x86_target::low_decr_pc_after_break): New method implementation.
1203 (the_low_target): Remove the field.
1204 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1206 (bfin_target::low_decr_pc_after_break): New method implementation.
1207 (the_low_target): Remove the field.
1208 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1210 (m68k_target::low_decr_pc_after_break): New method implementation.
1211 (the_low_target): Remove the field.
1212 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1214 (s390_target::low_decr_pc_after_break): New method implementation.
1215 (the_low_target): Remove the field.
1216 * linux-aarch64-low.cc (the_low_target): Remove the field.
1217 * linux-arm-low.cc (the_low_target): Remove the field.
1218 * linux-cris-low.cc (the_low_target): Remove the field.
1219 * linux-crisv32-low.cc (the_low_target): Remove the field.
1220 * linux-m32r-low.cc (the_low_target): Remove the field.
1221 * linux-mips-low.cc (the_low_target): Remove the field.
1222 * linux-nios2-low.cc (the_low_target): Remove the field.
1223 * linux-ppc-low.cc (the_low_target): Remove the field.
1224 * linux-riscv-low.cc (the_low_target): Remove the field.
1225 * linux-sh-low.cc (the_low_target): Remove the field.
1226 * linux-sparc-low.cc (the_low_target): Remove the field.
1227 * linux-tic6x-low.cc (the_low_target): Remove the field.
1228 * linux-tile-low.cc (the_low_target): Remove the field.
1229 * linux-xtensa-low.cc (the_low_target): Remove the field.
1231 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1233 Remove the 'supports_software_single_step' linux target op and let
1234 the concrete linux target define it by overriding the op in
1235 process_stratum_target.
1236 Turn the 'get_next_pcs' linux target op into a method of
1237 linux_process_target.
1239 * linux-low.h (struct linux_target_ops): Remove the ops.
1240 (class linux_process_target) <supports_software_single_step>:
1242 <low_get_next_pcs>: Declare.
1243 * linux-low.cc (can_software_single_step): Remove.
1244 (linux_process_target::low_get_next_pcs): Define.
1245 (linux_process_target::supports_software_single_step): Remove.
1247 Update the callers below.
1249 (linux_process_target::handle_extended_wait)
1250 (linux_process_target::wait_1)
1251 (linux_process_target::install_software_single_step_breakpoints)
1252 (linux_process_target::single_step)
1253 (linux_process_target::thread_needs_step_over)
1254 (linux_process_target::proceed_one_lwp)
1255 (linux_process_target::supports_range_stepping)
1257 * linux-x86-low.cc (the_low_target): Remove the op field.
1258 * linux-aarch64-low.cc (the_low_target): Ditto.
1259 * linux-bfin-low.cc (the_low_target): Ditto.
1260 * linux-cris-low.cc (the_low_target): Ditto.
1261 * linux-crisv32-low.cc (the_low_target): Ditto.
1262 * linux-m32r-low.cc (the_low_target): Ditto.
1263 * linux-m68k-low.cc (the_low_target): Ditto.
1264 * linux-mips-low.cc (the_low_target): Ditto.
1265 * linux-nios2-low.cc (the_low_target): Ditto.
1266 * linux-ppc-low.cc (the_low_target): Ditto.
1267 * linux-riscv-low.cc (the_low_target): Ditto.
1268 * linux-s390-low.cc (the_low_target): Ditto.
1269 * linux-sh-low.cc (the_low_target): Ditto.
1270 * linux-sparc-low.cc (the_low_target): Ditto.
1271 * linux-tic6x-low.cc (the_low_target): Ditto.
1272 * linux-tile-low.cc (the_low_target): Ditto.
1273 * linux-xtensa-low.cc (the_low_target): Ditto.
1274 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1275 <supports_software_single_step>: Declare.
1276 (arm_target::supports_software_single_step): Define.
1277 (arm_gdbserver_get_next_pcs): Turn into...
1278 (arm_target::low_get_next_pcs): ...this.
1279 (the_low_target): Remove the op field.
1281 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1283 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1284 the concrete linux target define it by overriding the op
1285 in process_stratum_target.
1287 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1289 * linux-low.h (struct linux_target_ops): Remove the op.
1290 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1291 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1293 (x86_sw_breakpoint_from_kind): Turn into...
1294 (x86_target::sw_breakpoint_from_kind): ...this.
1295 (the_low_target): Remove the op field.
1296 * linux-aarch64-low.cc (class aarch64_target)
1297 <sw_breakpoint_from_kind>: Declare.
1298 (aarch64_sw_breakpoint_from_kind): Turn into...
1299 (aarch64_target::sw_breakpoint_from_kind): ...this.
1300 (the_low_target): Remove the op field.
1301 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1303 (arm_target::sw_breakpoint_from_kind): Define.
1304 (the_low_target): Remove the op field.
1305 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1307 (bfin_sw_breakpoint_from_kind): Turn into...
1308 (bfin_target::sw_breakpoint_from_kind): ...this.
1309 (the_low_target): Remove the op field.
1310 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1312 (cris_sw_breakpoint_from_kind): Turn into...
1313 (cris_target::sw_breakpoint_from_kind): ...this.
1314 (the_low_target): Remove the op field.
1315 * linux-crisv32-low.cc (class crisv32_target)
1316 <sw_breakpoint_from_kind>: Declare.
1317 (cris_sw_breakpoint_from_kind): Turn into...
1318 (crisv32_target::sw_breakpoint_from_kind): ...this.
1319 (the_low_target): Remove the op field.
1320 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1322 (ia64_target::sw_breakpoint_from_kind): Define.
1323 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1325 (m32r_sw_breakpoint_from_kind): Turn into...
1326 (m32r_target::sw_breakpoint_from_kind): ...this.
1327 (the_low_target): Remove the op field.
1328 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1330 (m68k_sw_breakpoint_from_kind): Turn into...
1331 (m68k_target::sw_breakpoint_from_kind): ...this.
1332 (the_low_target): Remove the op field.
1333 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1335 (mips_sw_breakpoint_from_kind): Turn into...
1336 (mips_target::sw_breakpoint_from_kind): ...this.
1337 (the_low_target): Remove the op field.
1338 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1340 (nios2_sw_breakpoint_from_kind): Turn into...
1341 (nios2_target::sw_breakpoint_from_kind): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1345 (ppc_sw_breakpoint_from_kind): Turn into...
1346 (ppc_target::sw_breakpoint_from_kind): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1350 (riscv_sw_breakpoint_from_kind): Turn into...
1351 (riscv_target::sw_breakpoint_from_kind): ...this.
1352 (the_low_target): Remove the op field.
1353 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1355 (s390_sw_breakpoint_from_kind): Turn into...
1356 (s390_target::sw_breakpoint_from_kind): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1360 (sh_sw_breakpoint_from_kind): Turn into...
1361 (sh_target::sw_breakpoint_from_kind): ...this.
1362 (the_low_target): Remove the op field.
1363 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1365 (sparc_sw_breakpoint_from_kind): Turn into...
1366 (sparc_target::sw_breakpoint_from_kind): ...this.
1367 (the_low_target): Remove the op field.
1368 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1370 (tic6x_sw_breakpoint_from_kind): Turn into...
1371 (tic6x_target::sw_breakpoint_from_kind): ...this.
1372 (the_low_target): Remove the op field.
1373 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1375 (tile_sw_breakpoint_from_kind): Turn into...
1376 (tile_target::sw_breakpoint_from_kind): ...this.
1377 (the_low_target): Remove the op field.
1378 * linux-xtensa-low.cc (class xtensa_target)
1379 <sw_breakpoint_from_kind>: Declare.
1380 (xtensa_sw_breakpoint_from_kind): Turn into...
1381 (xtensa_target::sw_breakpoint_from_kind): ...this.
1382 (the_low_target): Remove the op field.
1384 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1386 Remove the 'breakpoint_kind_from_pc' and
1387 'breakpoint_kind_from_current_state' linux target ops, and let the
1388 concrete linux target define them by overriding the ops of
1389 process_stratum_target.
1391 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1393 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1394 * linux-low.h (struct linux_target_ops): Remove ops.
1395 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1396 <breakpoint_kind_from_current_state>: Remove.
1397 * linux-x86-low.cc (the_low_target): Remove the op fields.
1398 * linux-bfin-low.cc (the_low_target): Ditto.
1399 * linux-cris-low.cc (the_low_target): Ditto.
1400 * linux-crisv32-low.cc (the_low_target): Ditto.
1401 * linux-m32r-low.cc (the_low_target): Ditto.
1402 * linux-m68k-low.cc (the_low_target): Ditto.
1403 * linux-mips-low.cc (the_low_target): Ditto.
1404 * linux-nios2-low.cc (the_low_target): Ditto.
1405 * linux-ppc-low.cc (the_low_target): Ditto.
1406 * linux-s390-low.cc (the_low_target): Ditto.
1407 * linux-sh-low.cc (the_low_target): Ditto.
1408 * linux-sparc-low.cc (the_low_target): Ditto.
1409 * linux-tic6x-low.cc (the_low_target): Ditto.
1410 * linux-tile-low.cc (the_low_target): Ditto.
1411 * linux-xtensa-low.cc (the_low_target): Ditto.
1412 * linux-aarch64-low.cc (class aarch64_target)
1413 <breakpoint_kind_from_pc>
1414 <breakpoint_kind_from_current_state>: Declare.
1415 (aarch64_breakpoint_kind_from_pc): Turn into...
1416 (aarch64_target::breakpoint_kind_from_pc): ...this.
1417 (aarch64_breakpoint_kind_from_current_state): Turn into...
1418 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1419 (the_low_target): Remove the op fields.
1420 * linux-arm-low.cc (class arm_target):
1421 <breakpoint_kind_from_pc>
1422 <breakpoint_kind_from_current_state>: Declare.
1423 (arm_target::breakpoint_kind_from_pc): Define.
1424 (arm_target::breakpoint_kind_from_current_state): Define.
1425 (the_low_target): Remove the op fields.
1426 * linux-riscv-low.cc (class riscv_target):
1427 <breakpoint_kind_from_pc>: Declare.
1428 (riscv_breakpoint_kind_from_pc): Turn into...
1429 (riscv_target::breakpoint_kind_from_pc): ...this.
1430 (the_low_target): Remove the op fields.
1432 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1434 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1435 of linux_process_target.
1437 * linux-low.h (struct linux_target_ops): Remove the ops.
1438 (class linux_process_target) <low_supports_breakpoints>
1440 <low_set_pc>: Declare.
1441 * linux-low.cc (supports_breakpoints): Turn into...
1442 (linux_process_target::low_supports_breakpoints): ...this.
1443 (linux_process_target::low_get_pc): Define.
1444 (linux_process_target::low_set_pc): Define.
1446 Update the callers below.
1448 (linux_process_target::get_pc)
1449 (linux_process_target::save_stop_reason)
1450 (linux_process_target::maybe_move_out_of_jump_pad)
1451 (linux_process_target::wait_1)
1452 (linux_process_target::resume_one_lwp_throw)
1453 (linux_process_target::resume)
1454 (linux_process_target::proceed_all_lwps)
1455 (linux_process_target::read_pc)
1456 (linux_process_target::write_pc)
1458 * linux-x86-low.cc (class linux_process_target)
1459 <low_supports_breakpoints>
1461 <low_set_pc>: Declare.
1462 (x86_target::low_supports_breakpoints): Define.
1463 (x86_get_pc): Turn into...
1464 (x86_target::low_get_pc): ...this.
1465 (x86_set_pc): Turn into...
1466 (x86_target::low_set_pc): ...this.
1467 (the_low_target): Remove the op fields.
1468 * linux-arm-low.cc (class arm_target)
1469 <low_supports_breakpoints>
1471 <low_set_pc>: Declare.
1472 (arm_target::low_supports_breakpoints)
1473 (arm_target::low_get_pc)
1474 (arm_target::low_set_pc): Define.
1475 (the_low_target): Remove the op fields.
1476 * linux-bfin-low.cc (class bfin_target)
1477 <low_supports_breakpoints>
1479 <low_set_pc>: Declare.
1480 (bfin_target::low_supports_breakpoints)
1481 (bfin_target::low_get_pc)
1482 (bfin_target::low_set_pc): Define.
1483 (the_low_target): Remove the op fields.
1484 * linux-cris-low.cc (class cris_target)
1485 <low_supports_breakpoints>
1487 <low_set_pc>: Declare.
1488 (cris_target::low_supports_breakpoints)
1489 (cris_target::low_get_pc)
1490 (cris_target::low_set_pc): Define.
1491 (the_low_target): Remove the op fields.
1492 * linux-crisv32-low.cc (class crisv32_target)
1493 <low_supports_breakpoints>
1495 <low_set_pc>: Declare.
1496 (crisv32_target::low_supports_breakpoints)
1497 (crisv32_target::low_get_pc)
1498 (crisv32_target::low_set_pc): Define.
1499 (the_low_target): Remove the op fields.
1500 * linux-m32r-low.cc (class m32r_target)
1501 <low_supports_breakpoints>
1503 <low_set_pc>: Declare.
1504 (m32r_target::low_supports_breakpoints)
1505 (m32r_target::low_get_pc)
1506 (m32r_target::low_set_pc): Define.
1507 (the_low_target): Remove the op fields.
1508 * linux-m68k-low.cc (class m68k_target)
1509 <low_supports_breakpoints>
1511 <low_set_pc>: Declare.
1512 (m68k_target::low_supports_breakpoints)
1513 (m68k_target::low_get_pc)
1514 (m68k_target::low_set_pc): Define.
1515 (the_low_target): Remove the op fields.
1516 * linux-nios2-low.cc (class nios2_target)
1517 <low_supports_breakpoints>
1519 <low_set_pc>: Declare.
1520 (nios2_target::low_supports_breakpoints)
1521 (nios2_target::low_get_pc)
1522 (nios2_target::low_set_pc): Define.
1523 (the_low_target): Remove the op fields.
1524 * linux-sh-low.cc (class sh_target)
1525 <low_supports_breakpoints>
1527 <low_set_pc>: Declare.
1528 (sh_target::low_supports_breakpoints)
1529 (sh_target::low_get_pc)
1530 (sh_target::low_set_pc): Define.
1531 (the_low_target): Remove the op fields.
1532 * linux-xtensa-low.cc (class xtensa_target)
1533 <low_supports_breakpoints>
1535 <low_set_pc>: Declare.
1536 (xtensa_target::low_supports_breakpoints)
1537 (xtensa_target::low_get_pc)
1538 (xtensa_target::low_set_pc): Define.
1539 (the_low_target): Remove the op fields.
1540 * linux-sparc-low.cc (class sparc_target)
1541 <low_supports_breakpoints>
1542 <low_get_pc>: Declare.
1543 (sparc_target::low_supports_breakpoints)
1544 (sparc_target::low_get_pc): Define.
1545 (the_low_target): Remove the op fields.
1546 * linux-tile-low.cc (class tile_target)
1547 <low_supports_breakpoints>
1549 <low_set_pc>: Declare.
1550 (tile_target::low_supports_breakpoints)
1551 (tile_target::low_get_pc)
1552 (tile_target::low_set_pc): Define.
1553 (the_low_target): Remove the op fields.
1554 * linux-aarch64-low.cc (class aarch64_target)
1555 <low_supports_breakpoints>
1557 <low_set_pc>: Declare.
1558 (aarch64_target::low_supports_breakpoints): Define.
1559 (aarch64_get_pc): Turn into...
1560 (aarch64_target::low_get_pc): ...this.
1561 (aarch64_set_pc): Turn into...
1562 (aarch64_target::low_set_pc): ...this.
1563 (the_low_target): Remove the op fields.
1564 * linux-mips-low.cc (class mips_target)
1565 <low_supports_breakpoints>
1567 <low_set_pc>: Declare.
1568 (mips_target::low_supports_breakpoints): Define.
1569 (mips_get_pc): Turn into...
1570 (mips_target::low_get_pc): ...this.
1571 (mips_set_pc): Turn into...
1572 (mips_target::low_set_pc): ...this.
1573 (the_low_target): Remove the op fields.
1574 * linux-ppc-low.cc (class ppc_target)
1575 <low_supports_breakpoints>
1577 <low_set_pc>: Declare.
1578 (ppc_target::low_supports_breakpoints): Define.
1579 (ppc_get_pc): Turn into...
1580 (ppc_target::low_get_pc): ...this.
1581 (ppc_set_pc): Turn into...
1582 (ppc_target::low_set_pc): ...this.
1583 (the_low_target): Remove the op fields.
1584 * linux-riscv-low.cc (class riscv_target)
1585 <low_supports_breakpoints>
1587 <low_set_pc>: Declare.
1588 (riscv_target::low_supports_breakpoints): Define.
1589 (riscv_get_pc): Turn into...
1590 (riscv_target::low_get_pc): ...this.
1591 (riscv_set_pc): Turn into...
1592 (riscv_target::low_set_pc): ...this.
1593 (the_low_target): Remove the op fields.
1594 * linux-s390-low.cc (class s390_target)
1595 <low_supports_breakpoints>
1597 <low_set_pc>: Declare.
1598 (s390_target::low_supports_breakpoints): Define.
1599 (s390_get_pc): Turn into...
1600 (s390_target::low_get_pc): ...this.
1601 (s390_set_pc): Turn into...
1602 (s390_target::low_set_pc): ...this.
1603 (the_low_target): Remove the op fields.
1604 * linux-tic6x-low.cc (class tic6x_target)
1605 <low_supports_breakpoints>
1607 <low_set_pc>: Declare.
1608 (tic6x_target::low_supports_breakpoints): Define.
1609 (tic6x_get_pc): Turn into...
1610 (tic6x_target::low_get_pc): ...this.
1611 (tic6x_set_pc): Turn into...
1612 (tic6x_target::low_set_pc): ...this.
1613 (the_low_target): Remove the op fields.
1615 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1617 Turn some more static methods in linux-low into private methods
1618 of linux_process_target.
1620 * linux-low.cc (get_pc): Turn into...
1621 (linux_process_target::get_pc): ...this.
1622 (save_stop_reason): Turn into...
1623 (linux_process_target::save_stop_reason): ...this.
1624 (thread_still_has_status_pending_p): Turn into...
1625 (linux_process_target::thread_still_has_status_pending): ...this.
1626 (status_pending_p_callback): Turn into...
1627 (linux_process_target::status_pending_p_callback): ...this.
1628 (resume_stopped_resumed_lwps): Turn into...
1629 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1630 (install_software_single_step_breakpoints): Turn into...
1631 (linux_process_target::install_software_single_step_breakpoints):
1633 (single_step): Turn into...
1634 (linux_process_target::single_step): ...this.
1635 (linux_resume_one_lwp_throw): Turn into...
1636 (linux_process_target::resume_one_lwp_throw): ...this.
1637 (linux_resume_one_lwp): Turn into...
1638 (linux_process_target::resume_one_lwp): ...this.
1639 (resume_status_pending_p): Turn into...
1640 (linux_process_target::resume_status_pending): ...this.
1641 (need_step_over_p): Turn into...
1642 (linux_process_target::thread_needs_step_over): ...this.
1643 (linux_resume_one_thread): Turn into...
1644 (linux_process_target::resume_one_thread): ...this.
1645 (proceed_one_lwp): Turn into...
1646 (linux_process_target::proceed_one_lwp): ...this.
1647 (unsuspend_and_proceed_one_lwp): Turn into...
1648 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1650 Update the calls/references to the above functions below.
1652 (linux_process_target::handle_extended_wait)
1653 (linux_process_target::filter_event)
1654 (linux_process_target::wait_for_event_filtered)
1655 (linux_process_target::wait_1)
1656 (linux_process_target::move_out_of_jump_pad)
1657 (linux_process_target::start_step_over)
1658 (linux_process_target::resume)
1659 (linux_process_target::proceed_all_lwps)
1660 (regsets_store_inferior_registers)
1661 (linux_process_target::store_register)
1663 * linux-low.h (class linux_process_target)
1666 <thread_still_has_status_pending>
1667 <status_pending_p_callback>
1668 <resume_stopped_resumed_lwps>
1669 <install_software_single_step_breakpoints>
1671 <resume_one_lwp_throw>
1673 <resume_status_pending>
1674 <thread_needs_step_over>
1677 <unsuspend_and_proceed_one_lwp>: Declare.
1679 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1681 Turn the 'fetch_register' linux target op into a method of
1682 linux_process_target.
1684 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1685 (class linux_process_target) <low_fetch_register>: Declare.
1686 * linux-x86-low.cc (the_low_target)
1687 * linux-aarch64-low.cc (the_low_target)
1688 * linux-arm-low.cc (the_low_target)
1689 * linux-bfin-low.cc (the_low_target)
1690 * linux-cris-low.cc (the_low_target)
1691 * linux-crisv32-low.cc (the_low_target)
1692 * linux-m32r-low.cc (the_low_target)
1693 * linux-m68k-low.cc (the_low_target)
1694 * linux-nios2-low.cc (the_low_target)
1695 * linux-ppc-low.cc (the_low_target)
1696 * linux-s390-low.cc (the_low_target)
1697 * linux-sh-low.cc (the_low_target)
1698 * linux-sparc-low.cc (the_low_target)
1699 * linux-tic6x-low.cc (the_low_target)
1700 * linux-tile-low.cc (the_low_target)
1701 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1702 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1704 (ia64_fetch_register): Turn into...
1705 (ia64_target::low_fetch_register): ...this.
1706 (the_low_target): Remove the op field.
1707 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1709 (mips_fetch_register): Turn into...
1710 (mips_target::low_fetch_register): ...this.
1711 (the_low_target): Remove the op field.
1712 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1714 (riscv_fetch_register): Turn into...
1715 (riscv_target::low_fetch_register): ...this.
1716 (the_low_target): Remove the op field.
1718 Update the callers below.
1720 * linux-low.cc (linux_process_target::fetch_registers)
1721 (linux_process_target::low_fetch_register)
1723 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1726 linux target ops into methods of linux_process_target.
1728 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1729 (class linux_process_target) <fetch_register>
1731 <usr_fetch_inferior_registers>
1732 <usr_store_inferior_registers>
1733 <low_cannot_fetch_register>
1734 <low_cannot_fetch_register> Declare.
1735 * linux-low.cc (fetch_register): Turn into...
1736 (linux_process_target::fetch_register): ...this.
1737 (store_register): Turn into ...
1738 (linux_process_target::store_register): ...this.
1739 (usr_fetch_inferior_registers): Turn into...
1740 (linux_process_target::usr_fetch_inferior_registers): ...this.
1741 (usr_store_inferior_registers): Turn into...
1742 (linux_process_target::usr_store_inferior_registers): ...this.
1743 * linux-x86-low.cc (class x86_target)
1744 <low_cannot_fetch_register>
1745 <low_cannot_store_register>: Declare.
1746 (x86_cannot_store_register): Turn into...
1747 (x86_target::low_cannot_store_register): ...this.
1748 (x86_cannot_fetch_register): Turn into...
1749 (x86_target::low_cannot_fetch_register): ...this.
1750 (the_low_target): Remove the target op fields.
1751 * linux-aarch64-low.cc (class aarch64_target)
1752 <low_cannot_fetch_register>
1753 <low_cannot_store_register>: Declare.
1754 (aarch64_target::low_cannot_fetch_register)
1755 (aarch64_target::low_cannot_store_register): Define.
1756 (the_low_target): Remove the op fields.
1757 * linux-arm-low.cc (class arm_target)
1758 <low_cannot_fetch_register>
1759 <low_cannot_store_register>: Declare.
1760 (arm_cannot_fetch_register): Turn into...
1761 (arm_target::low_cannot_fetch_register): ...this.
1762 (arm_cannot_store_register): Turn into...
1763 (arm_target::low_cannot_store_register): ...this.
1764 (the_low_target): Remove the op fields.
1765 * linux-bfin-low.cc (class bfin_target)
1766 <low_cannot_fetch_register>
1767 <low_cannot_store_register>: Declare.
1768 (bfin_cannot_fetch_register): Turn into...
1769 (bfin_target::low_cannot_fetch_register): ...this.
1770 (bfin_cannot_store_register): Turn into...
1771 (bfin_target::low_cannot_store_register): ...this.
1772 (the_low_target): Remove the op fields.
1773 * linux-cris-low.cc (class cris_target)
1774 <low_cannot_fetch_register>
1775 <low_cannot_store_register>: Declare.
1776 (cris_cannot_fetch_register): Turn into...
1777 (cris_target::low_cannot_fetch_register): ...this.
1778 (cris_cannot_store_register): Turn into...
1779 (cris_target::low_cannot_store_register): ...this.
1780 (the_low_target): Remove the op fields.
1781 * linux-crisv32-low.cc (class crisv32_target)
1782 <low_cannot_fetch_register>
1783 <low_cannot_store_register>: Declare.
1784 (crisv32_target::low_cannot_fetch_register)
1785 (crisv32_target::low_cannot_store_register): Define.
1786 (the_low_target): Remove the op fields.
1787 * linux-ia64-low.cc (class ia64_target)
1788 <low_cannot_fetch_register>
1789 <low_cannot_store_register>: Declare.
1790 (ia64_cannot_fetch_register): Turn into...
1791 (ia64_target::low_cannot_fetch_register): ...this.
1792 (ia64_cannot_store_register): Turn into...
1793 (ia64_target::low_cannot_store_register): ...this.
1794 (the_low_target): Remove the op fields.
1795 * linux-m32r-low.cc (class m32r_target)
1796 <low_cannot_fetch_register>
1797 <low_cannot_store_register>: Declare.
1798 (m32r_cannot_fetch_register): Turn into...
1799 (m32r_target::low_cannot_fetch_register): ...this.
1800 (m32r_cannot_store_register): Turn into...
1801 (m32r_target::low_cannot_store_register): ...this.
1802 (the_low_target): Remove the op fields.
1803 * linux-m68k-low.cc (class m68k_target)
1804 <low_cannot_fetch_register>
1805 <low_cannot_store_register>: Declare.
1806 (m68k_cannot_fetch_register): Turn into...
1807 (m68k_target::low_cannot_fetch_register): ...this.
1808 (m68k_cannot_store_register): Turn into...
1809 (m68k_target::low_cannot_store_register): ...this.
1810 (the_low_target): Remove the op fields.
1811 * linux-mips-low.cc (class mips_target)
1812 <low_cannot_fetch_register>
1813 <low_cannot_store_register>: Declare.
1814 (mips_cannot_fetch_register): Turn into...
1815 (mips_target::low_cannot_fetch_register): ...this.
1816 (mips_cannot_store_register): Turn into...
1817 (mips_target::low_cannot_store_register): ...this.
1818 (get_usrregs_info): Inline at the call sites in
1819 low_cannot_fetch_register and low_cannot_store_register,
1821 (the_low_target): Remove the op fields.
1822 * linux-nios2-low.cc (class nios2_target)
1823 <low_cannot_fetch_register>
1824 <low_cannot_store_register>: Declare.
1825 (nios2_cannot_fetch_register): Turn into...
1826 (nios2_target::low_cannot_fetch_register): ...this.
1827 (nios2_cannot_store_register): Turn into...
1828 (nios2_target::low_cannot_store_register): ...this.
1829 (the_low_target): Remove the op fields.
1830 * linux-ppc-low.cc (class ppc_target)
1831 <low_cannot_fetch_register>
1832 <low_cannot_store_register>: Declare.
1833 (ppc_cannot_fetch_register): Turn into...
1834 (ppc_target::low_cannot_fetch_register): ...this.
1835 (ppc_cannot_store_register): Turn into...
1836 (ppc_target::low_cannot_store_register): ...this.
1837 (the_low_target): Remove the op fields.
1838 * linux-riscv-low.cc (class riscv_target)
1839 <low_cannot_fetch_register>
1840 <low_cannot_store_register>: Declare.
1841 (riscv_target::low_cannot_fetch_register)
1842 (riscv_target::low_cannot_store_register): Define.
1843 (the_low_target): Remove the op fields.
1844 * linux-s390-low.cc (class s390_target)
1845 <low_cannot_fetch_register>
1846 <low_cannot_store_register>: Declare.
1847 (s390_cannot_fetch_register): Turn into...
1848 (s390_target::low_cannot_fetch_register): ...this.
1849 (s390_cannot_store_register): Turn into...
1850 (s390_target::low_cannot_store_register): ...this.
1851 (the_low_target): Remove the op fields.
1852 * linux-sh-low.cc (class sh_target)
1853 <low_cannot_fetch_register>
1854 <low_cannot_store_register>: Declare.
1855 (sh_cannot_fetch_register): Turn into...
1856 (sh_target::low_cannot_fetch_register): ...this.
1857 (sh_cannot_store_register): Turn into...
1858 (sh_target::low_cannot_store_register): ...this.
1859 (the_low_target): Remove the op fields.
1860 * linux-sparc-low.cc (class sparc_target)
1861 <low_cannot_fetch_register>
1862 <low_cannot_store_register>: Declare.
1863 (sparc_cannot_fetch_register): Turn into...
1864 (sparc_target::low_cannot_fetch_register): ...this.
1865 (sparc_cannot_store_register): Turn into...
1866 (sparc_target::low_cannot_store_register): ...this.
1867 (the_low_target): Remove the op fields.
1868 * linux-tic6x-low.cc (class tic6x_target)
1869 <low_cannot_fetch_register>
1870 <low_cannot_store_register>: Declare.
1871 (tic6x_cannot_fetch_register): Turn into...
1872 (tic6x_target::low_cannot_fetch_register): ...this.
1873 (tic6x_cannot_store_register): Turn into...
1874 (tic6x_target::low_cannot_store_register): ...this.
1875 (the_low_target): Remove the op fields.
1876 * linux-tile-low.cc (class tile_target)
1877 <low_cannot_fetch_register>
1878 <low_cannot_store_register>: Declare.
1879 (tile_cannot_fetch_register): Turn into...
1880 (tile_target::low_cannot_fetch_register): ...this.
1881 (tile_cannot_store_register): Turn into...
1882 (tile_target::low_cannot_store_register): ...this.
1883 (the_low_target): Remove the op fields.
1884 * linux-xtensa-low.cc (class xtensa_target)
1885 <low_cannot_fetch_register>
1886 <low_cannot_store_register>: Declare.
1887 (xtensa_target::low_cannot_fetch_register)
1888 (xtensa_target::low_cannot_store_register): Define.
1889 (the_low_target): Remove the op fields.
1891 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1893 Turn the 'regs_info' linux target op into a method of
1894 linux_process_target.
1896 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1897 (class linux_process_target) <get_regs_info>: Define.
1899 Update the callers below.
1901 * linux-low.cc (linux_process_target::fetch_registers)
1902 (linux_process_target::store_registers)
1903 * proc-service.cc (gregset_info)
1905 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1906 (x86_linux_regs_info): Turn into ...
1907 (x86_target::get_regs_info): ...this.
1908 (the_low_target): Remove the op field.
1909 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1911 (aarch64_regs_info): Turn into ...
1912 (aarch64_target::get_regs_info): ...this.
1913 (the_low_target): Remove the op field.
1914 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1915 (arm_regs_info): Turn into ...
1916 (arm_target::get_regs_info): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1919 (bfin_regs_info): Turn into ...
1920 (bfin_target::get_regs_info): ...this.
1921 (the_low_target): Remove the op field.
1922 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1923 (cris_regs_info): Turn into ...
1924 (cris_target::get_regs_info): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1928 (crisv32_regs_info): Turn into ...
1929 (crisv32_target::get_regs_info): ...this.
1930 (the_low_target): Remove the op field.
1931 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1932 (ia64_regs_info): Turn into ...
1933 (ia64_target::get_regs_info): ...this.
1934 (the_low_target): Remove the op field.
1935 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1936 (m32r_regs_info): Turn into ...
1937 (m32r_target::get_regs_info): ...this.
1938 (the_low_target): Remove the op field.
1939 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1940 (m68k_regs_info): Turn into ...
1941 (m68k_target::get_regs_info): ...this.
1942 (the_low_target): Remove the op field.
1943 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1944 (mips_regs_info): Turn into ...
1945 (mips_target::get_regs_info): ...this.
1946 (the_low_target): Remove the op field.
1947 (get_usrregs_info): Update the call to the op.
1948 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1949 (nios2_regs_info): Turn into ...
1950 (nios2_target::get_regs_info): ...this.
1951 (the_low_target): Remove the op field.
1952 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1953 (ppc_regs_info): Turn into ...
1954 (ppc_target::get_regs_info): ...this.
1955 (the_low_target): Remove the op field.
1956 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1957 (riscv_regs_info): Turn into ...
1958 (riscv_target::get_regs_info): ...this.
1959 (the_low_target): Remove the op field.
1960 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1961 (s390_regs_info): Turn into ...
1962 (s390_target::get_regs_info): ...this.
1963 (the_low_target): Remove the op field.
1964 (s390_collect_ptrace_register)
1965 (s390_supply_ptrace_register)
1966 (s390_fill_gregset): Update the call to the op.
1967 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1968 (sh_regs_info): Turn into ...
1969 (sh_target::get_regs_info): ...this.
1970 (the_low_target): Remove the op field.
1971 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1972 (sparc_regs_info): Turn into ...
1973 (sparc_target::get_regs_info): ...this.
1974 (the_low_target): Remove the op field.
1975 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1976 (tic6x_regs_info): Turn into ...
1977 (tic6x_target::get_regs_info): ...this.
1978 (the_low_target): Remove the op field.
1979 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1980 (tile_regs_info): Turn into ...
1981 (tile_target::get_regs_info): ...this.
1982 (the_low_target): Remove the op field.
1983 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1985 (xtensa_regs_info): Turn into ...
1986 (xtensa_target::get_regs_info): ...this.
1987 (the_low_target): Remove the op field.
1989 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1991 Turn the 'arch_setup' linux target op into a method of
1992 linux_process_target.
1994 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1995 (class linux_process_target) <arch_setup_thread>
1996 <low_arch_setup>: New declarations.
1997 * linux-low.cc (linux_arch_setup): Delete.
1998 (linux_arch_setup_thread): Turn into...
1999 (linux_process_target::arch_setup_thread): ... this.
2001 Update the callers below.
2003 (linux_process_target::handle_extended_wait)
2004 (linux_process_target::post_create_inferior)
2005 (linux_process_target::filter_event)
2007 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2009 (x86_linux_update_xmltarget): Turn into...
2010 (x86_target::update_xmltarget): ...this.
2011 (x86_linux_process_qsupported): Update the call to
2012 x86_linux_update_xmltarget.
2013 (x86_arch_setup): Turn into ...
2014 (x86_target::low_arch_setup): ...this.
2015 (the_low_target): Remove the op field.
2016 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2018 (aarch64_arch_setup): Turn into ...
2019 (aarch64_target::low_arch_setup): ...this.
2020 (the_low_target): Remove the op field.
2021 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2023 (arm_arch_setup): Turn into ...
2024 (arm_target::low_arch_setup): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2028 (bfin_arch_setup): Turn into ...
2029 (bfin_target::low_arch_setup): ...this.
2030 (the_low_target): Remove the op field.
2031 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2033 (cris_arch_setup): Turn into ...
2034 (cris_target::low_arch_setup): ...this.
2035 (the_low_target): Remove the op field.
2036 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2038 (crisv32_arch_setup): Turn into ...
2039 (crisv32_target::low_arch_setup): ...this.
2040 (the_low_target): Remove the op field.
2041 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2043 (ia64_arch_setup): Turn into ...
2044 (ia64_target::low_arch_setup): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2048 (m32r_arch_setup): Turn into ...
2049 (m32r_target::low_arch_setup): ...this.
2050 (the_low_target): Remove the op field.
2051 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2053 (m68k_arch_setup): Turn into ...
2054 (m68k_target::low_arch_setup): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2058 (mips_arch_setup): Turn into ...
2059 (mips_target::low_arch_setup): ...this.
2060 (the_low_target): Remove the op field.
2061 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2063 (nios2_arch_setup): Turn into ...
2064 (nios2_target::low_arch_setup): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2068 (ppc_arch_setup): Turn into ...
2069 (ppc_target::low_arch_setup): ...this.
2070 (the_low_target): Remove the op field.
2071 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2073 (riscv_arch_setup): Turn into ...
2074 (riscv_target::low_arch_setup): ...this.
2075 (the_low_target): Remove the op field.
2076 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2078 (s390_arch_setup): Turn into ...
2079 (s390_target::low_arch_setup): ...this.
2080 (the_low_target): Remove the op field.
2081 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2083 (sh_arch_setup): Turn into ...
2084 (sh_target::low_arch_setup): ...this.
2085 (the_low_target): Remove the op field.
2086 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2088 (sparc_arch_setup): Turn into ...
2089 (sparc_target::low_arch_setup): ...this.
2090 (the_low_target): Remove the op field.
2091 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2093 (tic6x_arch_setup): Turn into ...
2094 (tic6x_target::low_arch_setup): ...this.
2095 (the_low_target): Remove the op field.
2096 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2098 (tile_arch_setup): Turn into ...
2099 (tile_target::low_arch_setup): ...this.
2100 (the_low_target): Remove the op field.
2101 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2103 (xtensa_arch_setup): Turn into ...
2104 (xtensa_target::low_arch_setup): ...this.
2105 (the_low_target): Remove the op field.
2107 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2109 * linux-low.h (the_linux_target): New extern declaration.
2110 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2112 (the_linux_target): Remove.
2113 * linux-x86-low.cc (class x86_target): New class.
2114 (the_x86_target): New static object.
2115 (the_linux_target): Define as pointer to the_x86_target.
2116 * linux-aarch64-low.cc (class aarch64_target): New class.
2117 (the_aarch64_target): New static object.
2118 (the_linux_target): Define as pointer to the_aarch64_target.
2119 * linux-arm-low.cc (class arm_target): New class.
2120 (the_arm_target): New static object.
2121 (the_linux_target): Define as pointer to the_arm_target.
2122 * linux-bfin-low.cc (class bfin_target): New class.
2123 (the_bfin_target): New static object.
2124 (the_linux_target): Define as pointer to the_bfin_target.
2125 * linux-cris-low.cc (class cris_target): New class.
2126 (the_cris_target): New static object.
2127 (the_linux_target): Define as pointer to the_cris_target.
2128 * linux-crisv32-low.cc (class crisv32_target): New class.
2129 (the_crisv32_target): New static object.
2130 (the_linux_target): Define as pointer to the_crisv32_target.
2131 * linux-ia64-low.cc (class ia64_target): New class.
2132 (the_ia64_target): New static object.
2133 (the_linux_target): Define as pointer to the_ia64_target.
2134 * linux-m32r-low.cc (class m32r_target): New class.
2135 (the_m32r_target): New static object.
2136 (the_linux_target): Define as pointer to the_m32r_target.
2137 * linux-m68k-low.cc (class m68k_target): New class.
2138 (the_m68k_target): New static object.
2139 (the_linux_target): Define as pointer to the_m68k_target.
2140 * linux-mips-low.cc (class mips_target): New class.
2141 (the_mips_target): New static object.
2142 (the_linux_target): Define as pointer to the_mips_target.
2143 * linux-nios2-low.cc (class nios2_target): New class.
2144 (the_nios2_target): New static object.
2145 (the_linux_target): Define as pointer to the_nios2_target.
2146 * linux-ppc-low.cc (class ppc_target): New class.
2147 (the_ppc_target): New static object.
2148 (the_linux_target): Define as pointer to the_ppc_target.
2149 * linux-riscv-low.cc (class riscv_target): New class.
2150 (the_riscv_target): New static object.
2151 (the_linux_target): Define as pointer to the_riscv_target.
2152 * linux-s390-low.cc (class s390_target): New class.
2153 (the_s390_target): New static object.
2154 (the_linux_target): Define as pointer to the_s390_target.
2155 * linux-sh-low.cc (class sh_target): New class.
2156 (the_sh_target): New static object.
2157 (the_linux_target): Define as pointer to the_sh_target.
2158 * linux-sparc-low.cc (class sparc_target): New class.
2159 (the_sparc_target): New static object.
2160 (the_linux_target): Define as pointer to the_sparc_target.
2161 * linux-tic6x-low.cc (class tic6x_target): New class.
2162 (the_tic6x_target): New static object.
2163 (the_linux_target): Define as pointer to the_tic6x_target.
2164 * linux-tile-low.cc (class tile_target): New class.
2165 (the_tile_target): New static object.
2166 (the_linux_target): Define as pointer to the_tile_target.
2167 * linux-xtensa-low.cc (class xtensa_target): New class.
2168 (the_xtensa_target): New static object.
2169 (the_linux_target): Define as pointer to the_xtensa_target.
2171 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2173 Turn some static functions in linux-low.cc into private methods of
2174 linux_process_target.
2176 * linux-low.cc (handle_extended_wait): Turn into ...
2177 (linux_process_target::handle_extended_wait): ...this. Call
2178 'mourn' on 'this' object instead of 'the_target'.
2179 (maybe_move_out_of_jump_pad): Turn into...
2180 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2181 (linux_low_filter_event): Turn into...
2182 (linux_process_target::filter_event): ...this.
2183 (linux_wait_for_event_filtered): Turn into...
2184 (linux_process_target::wait_for_event_filtered): ...this.
2185 (linux_wait_for_event): Turn into...
2186 (linux_process_target::wait_for_event): ...this.
2187 (linux_wait_1): Turn into...
2188 (linux_process_target::wait_1): ...this.
2189 (wait_for_sigstop): Turn into...
2190 (linux_process_target::wait_for_sigstop): ...this.
2191 (move_out_of_jump_pad_callback): Turn into...
2192 (linux_process_target::move_out_of_jump_pad): ...this.
2193 (stop_all_lwps): Turn into...
2194 (linux_process_target::stop_all_lwps): ...this.
2195 (start_step_over): Turn into...
2196 (linux_process_target::start_step_over): ...this.
2197 (complete_ongoing_step_over): Turn into...
2198 (linux_process_target::complete_ongoing_step_over): ...this.
2199 (proceed_all_lwps): Turn into...
2200 (linux_process_target::proceed_all_lwps): ...this.
2201 (unstop_all_lwps): Turn into...
2202 (linux_process_target::unstop_all_lwps): ...this.
2204 * linux-low.h (class linux_process_target)
2205 <handle_extended_wait>
2206 <maybe_move_out_of_jump_pad>
2208 <wait_for_event_filtered>
2212 <move_out_of_jump_pad>
2215 <complete_ongoing_step_over>
2217 <unstop_all_lwps>: Declare.
2219 Update the callers below.
2221 * linux-low.cc (linux_process_target::attach): Update.
2222 (linux_process_target::stabilize_threads): Ditto.
2223 (linux_process_target::wait): Ditto.
2225 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2227 * linux-low.h (struct linux_target_ops): Update the comment for
2228 'cannot_store_register' to return 0 or 1.
2229 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2232 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2234 * config.in: Re-generate.
2235 * configure: Re-generate.
2237 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2239 * regcache.cc (find_register_by_number): Update.
2240 * tdesc.cc (init_target_desc): Likewise.
2241 * tdesc.h (target_desc::reg_defs): Likewise.
2243 2020-03-12 Tom Tromey <tom@tromey.com>
2245 * configure: Rebuild.
2246 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2247 (WIN32APILIBS): New subst.
2248 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2250 (gdbsupport/%.o): Remove target.
2251 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2252 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2253 (WIN32APILIBS): New variable.
2254 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2255 (gdbreplay$(EXEEXT)): Likewise.
2257 2020-03-12 Tom Tromey <tom@tromey.com>
2259 * config.in, configure: Rebuild.
2260 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2261 * acinclude.m4: Include gettext-sister.m4.
2262 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2264 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2265 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2267 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2269 * acinclude.m4: Update path to selftest.m4.
2271 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2273 * configure.ac: Don't source bfd/development.sh, move
2274 GDB_AC_COMMON higher.
2275 * configure: Re-generate.
2277 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2279 * configure: Re-generate.
2281 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2283 * configure: Re-generate.
2285 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2287 * .dir-locals.el: New file.
2289 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2291 * .gitattributes: New file.
2293 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2295 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2296 reply into an S reply.
2297 * server.cc (disable_packet_T): New global.
2298 (captured_main): Set new global when appropriate.
2299 * server.h (disable_packet_T): Declare.
2301 2020-02-21 Tom Tromey <tom@tromey.com>
2303 * Makefile.in (mostlyclean): New target.
2305 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2307 * target.h (struct process_stratum_target): Remove.
2308 (class process_target): Rename to ...
2309 (class process_stratum_target): ... this.
2310 * linux-low.h (class linux_process_target): Derive from
2311 'process_stratum_target'.
2312 * linux-low.cc (linux_target_ops): Remove.
2313 (initialize_low): Set the_target to the singleton instance of
2314 linux_process_target.
2315 * lynx-low.h (class lynx_process_target): Derive from
2316 'process_stratum_target'.
2317 * lynx-low.cc (lynx_target_ops): Remove.
2318 (initialize_low): Set the_target to the singleton instance of
2319 lynx_process_target.
2320 * nto-low.h (class nto_process_target): Derive from
2321 'process_stratum_target'.
2322 * nto-low.cc (nto_target_ops): Remove.
2323 (initialize_low): Set the_target to the singleton instance of
2325 * win32-low.h (class win32_process_target): Derive from
2326 'process_stratum_target'.
2327 * win32-low.cc (win32_target_ops): Remove.
2328 (initialize_low): Set the_target to the singleton instance of
2329 win32_process_target.
2331 Replace 'the_target->pt' with 'the_target' in the uses below.
2333 * hostio.cc (hostio_error)
2338 * linux-aarch32-low.cc (arm_breakpoint_at)
2339 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2340 * linux-arm-low.cc (arm_sigreturn_next_pc)
2342 (arm_get_syscall_trapinfo)
2343 * linux-cris-low.cc (cris_breakpoint_at)
2344 * linux-crisv32-low.cc (cris_breakpoint_at)
2345 * linux-low.cc (handle_extended_wait)
2348 (linux_process_target::breakpoint_kind_from_pc)
2350 * linux-m32r-low.cc (m32r_breakpoint_at)
2351 * linux-mips-low.cc (mips_breakpoint_at)
2352 * linux-nios2-low.cc (nios2_breakpoint_at)
2353 * linux-ppc-low.cc (ppc_breakpoint_at)
2354 * linux-s390-low.cc (s390_get_hwcap)
2355 * linux-sh-low.cc (sh_breakpoint_at)
2356 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2357 (sparc_store_gregset_from_stack)
2358 (sparc_breakpoint_at)
2359 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2360 * linux-tile-low.cc (tile_breakpoint_at)
2361 * linux-x86-low.cc (x86_breakpoint_at)
2362 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2363 * mem-break.cc (bp_size)
2365 (insert_memory_breakpoint)
2366 (set_raw_breakpoint_at)
2367 (delete_raw_breakpoint)
2369 (uninsert_raw_breakpoint)
2370 (reinsert_raw_breakpoint)
2371 (validate_inserted_breakpoint)
2372 * regcache.cc (regcache_read_pc)
2374 * remote-utils.cc (putpkt_binary_1)
2377 (prepare_resume_reply)
2378 * server.cc (handle_general_set)
2381 (handle_qxfer_exec_file)
2382 (handle_qxfer_libraries_svr4)
2383 (handle_qxfer_osdata)
2384 (handle_qxfer_siginfo)
2385 (handle_qxfer_fdpic)
2389 (queue_stop_reply_callback)
2391 * target.cc (prepare_to_access_memory)
2392 (done_accessing_memory)
2393 (read_inferior_memory)
2394 (target_write_memory)
2395 (target_stop_and_wait)
2397 (target_mourn_inferior)
2398 (target_continue_no_signal)
2400 (target_supports_multi_process)
2403 (target_create_inferior)
2404 (target_post_create_inferior)
2406 (target_supports_fork_events)
2407 (target_supports_vfork_events)
2408 (target_supports_exec_events)
2409 (target_handle_new_gdb_connection)
2412 (fetch_inferior_registers)
2413 (store_inferior_registers)
2415 (target_supports_non_stop)
2417 (target_process_qsupported)
2418 (target_supports_catch_syscall)
2419 (target_get_ipa_tdesc_idx)
2420 (target_supports_tracepoints)
2421 (target_supports_fast_tracepoints)
2422 (target_get_min_fast_tracepoint_insn_len)
2423 (target_thread_stopped)
2425 (target_unpause_all)
2426 (target_stabilize_threads)
2427 (target_install_fast_tracepoint_jump_pad)
2429 (target_supports_disable_randomization)
2430 (target_supports_agent)
2431 (target_enable_btrace)
2432 (target_disable_btrace)
2433 (target_read_btrace)
2434 (target_read_btrace_conf)
2435 (target_supports_range_stepping)
2436 (target_supports_stopped_by_sw_breakpoint)
2437 (target_stopped_by_sw_breakpoint)
2438 (target_supports_stopped_by_hw_breakpoint)
2439 (target_supports_hardware_single_step)
2440 (target_stopped_by_hw_breakpoint)
2441 (target_breakpoint_kind_from_pc)
2442 (target_breakpoint_kind_from_current_state)
2443 (target_supports_software_single_step)
2444 (target_core_of_thread)
2445 (target_thread_name)
2446 (target_thread_handle)
2447 * win32-low.cc (do_initial_child_stuff)
2449 Rename target op default definitions listed below.
2451 * target.cc (process_target::post_create_inferior): Rename as ...
2452 (process_stratum_target::post_create_inferior): ... this.
2453 (process_target::prepare_to_access_memory): Rename as ...
2454 (process_stratum_target::prepare_to_access_memory): ... this.
2455 (process_target::done_accessing_memory): Rename as ...
2456 (process_stratum_target::done_accessing_memory): ... this.
2457 (process_target::look_up_symbols): Rename as ...
2458 (process_stratum_target::look_up_symbols): ... this.
2459 (process_target::supports_read_auxv): Rename as ...
2460 (process_stratum_target::supports_read_auxv): ... this.
2461 (process_target::read_auxv): Rename as ...
2462 (process_stratum_target::read_auxv): ... this.
2463 (process_target::supports_z_point_type): Rename as ...
2464 (process_stratum_target::supports_z_point_type): ... this.
2465 (process_target::insert_point): Rename as ...
2466 (process_stratum_target::insert_point): ... this.
2467 (process_target::remove_point): Rename as ...
2468 (process_stratum_target::remove_point): ... this.
2469 (process_target::stopped_by_sw_breakpoint): Rename as ...
2470 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2471 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2472 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2473 (process_target::stopped_by_hw_breakpoint): Rename as ...
2474 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2475 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2476 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2477 (process_target::supports_hardware_single_step): Rename as ...
2478 (process_stratum_target::supports_hardware_single_step): ... this.
2479 (process_target::stopped_by_watchpoint): Rename as ...
2480 (process_stratum_target::stopped_by_watchpoint): ... this.
2481 (process_target::stopped_data_address): Rename as ...
2482 (process_stratum_target::stopped_data_address): ... this.
2483 (process_target::supports_read_offsets): Rename as ...
2484 (process_stratum_target::supports_read_offsets): ... this.
2485 (process_target::read_offsets): Rename as ...
2486 (process_stratum_target::read_offsets): ... this.
2487 (process_target::supports_get_tls_address): Rename as ...
2488 (process_stratum_target::supports_get_tls_address): ... this.
2489 (process_target::get_tls_address): Rename as ...
2490 (process_stratum_target::get_tls_address): ... this.
2491 (process_target::hostio_last_error): Rename as ...
2492 (process_stratum_target::hostio_last_error): ... this.
2493 (process_target::supports_qxfer_osdata): Rename as ...
2494 (process_stratum_target::supports_qxfer_osdata): ... this.
2495 (process_target::qxfer_osdata): Rename as ...
2496 (process_stratum_target::qxfer_osdata): ... this.
2497 (process_target::supports_qxfer_siginfo): Rename as ...
2498 (process_stratum_target::supports_qxfer_siginfo): ... this.
2499 (process_target::qxfer_siginfo): Rename as ...
2500 (process_stratum_target::qxfer_siginfo): ... this.
2501 (process_target::supports_non_stop): Rename as ...
2502 (process_stratum_target::supports_non_stop): ... this.
2503 (process_target::async): Rename as ...
2504 (process_stratum_target::async): ... this.
2505 (process_target::start_non_stop): Rename as ...
2506 (process_stratum_target::start_non_stop): ... this.
2507 (process_target::supports_multi_process): Rename as ...
2508 (process_stratum_target::supports_multi_process): ... this.
2509 (process_target::supports_fork_events): Rename as ...
2510 (process_stratum_target::supports_fork_events): ... this.
2511 (process_target::supports_vfork_events): Rename as ...
2512 (process_stratum_target::supports_vfork_events): ... this.
2513 (process_target::supports_exec_events): Rename as ...
2514 (process_stratum_target::supports_exec_events): ... this.
2515 (process_target::handle_new_gdb_connection): Rename as ...
2516 (process_stratum_target::handle_new_gdb_connection): ... this.
2517 (process_target::handle_monitor_command): Rename as ...
2518 (process_stratum_target::handle_monitor_command): ... this.
2519 (process_target::core_of_thread): Rename as ...
2520 (process_stratum_target::core_of_thread): ... this.
2521 (process_target::supports_read_loadmap): Rename as ...
2522 (process_stratum_target::supports_read_loadmap): ... this.
2523 (process_target::read_loadmap): Rename as ...
2524 (process_stratum_target::read_loadmap): ... this.
2525 (process_target::process_qsupported): Rename as ...
2526 (process_stratum_target::process_qsupported): ... this.
2527 (process_target::supports_tracepoints): Rename as ...
2528 (process_stratum_target::supports_tracepoints): ... this.
2529 (process_target::read_pc): Rename as ...
2530 (process_stratum_target::read_pc): ... this.
2531 (process_target::write_pc): Rename as ...
2532 (process_stratum_target::write_pc): ... this.
2533 (process_target::supports_thread_stopped): Rename as ...
2534 (process_stratum_target::supports_thread_stopped): ... this.
2535 (process_target::thread_stopped): Rename as ...
2536 (process_stratum_target::thread_stopped): ... this.
2537 (process_target::supports_get_tib_address): Rename as ...
2538 (process_stratum_target::supports_get_tib_address): ... this.
2539 (process_target::get_tib_address): Rename as ...
2540 (process_stratum_target::get_tib_address): ... this.
2541 (process_target::pause_all): Rename as ...
2542 (process_stratum_target::pause_all): ... this.
2543 (process_target::unpause_all): Rename as ...
2544 (process_stratum_target::unpause_all): ... this.
2545 (process_target::stabilize_threads): Rename as ...
2546 (process_stratum_target::stabilize_threads): ... this.
2547 (process_target::supports_fast_tracepoints): Rename as ...
2548 (process_stratum_target::supports_fast_tracepoints): ... this.
2549 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2550 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2551 (process_target::emit_ops): Rename as ...
2552 (process_stratum_target::emit_ops): ... this.
2553 (process_target::supports_disable_randomization): Rename as ...
2554 (process_stratum_target::supports_disable_randomization): ... this.
2555 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2556 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2557 (process_target::qxfer_libraries_svr4): Rename as ...
2558 (process_stratum_target::qxfer_libraries_svr4): ... this.
2559 (process_target::supports_agent): Rename as ...
2560 (process_stratum_target::supports_agent): ... this.
2561 (process_target::enable_btrace): Rename as ...
2562 (process_stratum_target::enable_btrace): ... this.
2563 (process_target::disable_btrace): Rename as ...
2564 (process_stratum_target::disable_btrace): ... this.
2565 (process_target::read_btrace): Rename as ...
2566 (process_stratum_target::read_btrace): ... this.
2567 (process_target::read_btrace_conf): Rename as ...
2568 (process_stratum_target::read_btrace_conf): ... this.
2569 (process_target::supports_range_stepping): Rename as ...
2570 (process_stratum_target::supports_range_stepping): ... this.
2571 (process_target::supports_pid_to_exec_file): Rename as ...
2572 (process_stratum_target::supports_pid_to_exec_file): ... this.
2573 (process_target::pid_to_exec_file): Rename as ...
2574 (process_stratum_target::pid_to_exec_file): ... this.
2575 (process_target::supports_multifs): Rename as ...
2576 (process_stratum_target::supports_multifs): ... this.
2577 (process_target::multifs_open): Rename as ...
2578 (process_stratum_target::multifs_open): ... this.
2579 (process_target::multifs_unlink): Rename as ...
2580 (process_stratum_target::multifs_unlink): ... this.
2581 (process_target::multifs_readlink): Rename as ...
2582 (process_stratum_target::multifs_readlink): ... this.
2583 (process_target::breakpoint_kind_from_pc): Rename as ...
2584 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2585 (process_target::breakpoint_kind_from_current_state): Rename as ...
2586 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2587 (process_target::thread_name): Rename as ...
2588 (process_stratum_target::thread_name): ... this.
2589 (process_target::thread_handle): Rename as ...
2590 (process_stratum_target::thread_handle): ... this.
2591 (process_target::supports_software_single_step): Rename as ...
2592 (process_stratum_target::supports_software_single_step): ... this.
2593 (process_target::supports_catch_syscall): Rename as ...
2594 (process_stratum_target::supports_catch_syscall): ... this.
2595 (process_target::get_ipa_tdesc_idx): Rename as ...
2596 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2598 2020-02-20 Pedro Alves <palves@redhat.com>
2600 * target.cc (set_target_ops): Simply copy the given target pointer
2601 instead of creating a copy of the pointed object.
2603 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2605 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2608 * target.h (struct process_stratum_target): Remove the target op.
2609 (class process_target): Add the target op.
2610 (target_get_ipa_tdesc_idx): Update the macro.
2611 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2613 Update the derived classes and callers below.
2615 * linux-low.cc (linux_target_ops): Update.
2616 (linux_get_ipa_tdesc_idx): Turn into ...
2617 (linux_process_target::get_ipa_tdesc_idx): ... this.
2618 * linux-low.h (class linux_process_target): Update.
2619 * lynx-low.cc (lynx_target_ops): Update.
2620 * nto-low.cc (nto_target_ops): Update.
2621 * win32-low.cc (win32_target_ops): Update.
2623 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2625 Turn process_stratum_target's supports_catch_syscall op into a
2626 method of process_target.
2628 * target.h (struct process_stratum_target): Remove the target op.
2629 (class process_target): Add the target op.
2630 (target_supports_catch_syscall): Update the macro.
2631 * target.cc (process_target::supports_catch_syscall): Define.
2633 Update the derived classes and callers below.
2635 * linux-low.cc (linux_target_ops): Update.
2636 (linux_supports_catch_syscall): Turn into ...
2637 (linux_process_target::supports_catch_syscall): ... this.
2638 * linux-low.h (class linux_process_target): Update.
2639 * lynx-low.cc (lynx_target_ops): Update.
2640 * nto-low.cc (nto_target_ops): Update.
2641 * win32-low.cc (win32_target_ops): Update.
2643 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2645 Turn process_stratum_target's supports_software_single_step op
2646 into a method of process_target.
2648 * target.h (struct process_stratum_target): Remove the target op.
2649 (class process_target): Add the target op.
2650 (target_supports_software_single_step): Update the macro.
2651 * target.cc (process_target::supports_software_single_step): Define.
2653 Update the derived classes and callers below.
2655 * linux-low.cc (linux_target_ops): Update.
2656 (linux_supports_software_single_step): Turn into ...
2657 (linux_process_target::supports_software_single_step): ... this.
2658 * linux-low.h (class linux_process_target): Update.
2659 * lynx-low.cc (lynx_target_ops): Update.
2660 * nto-low.cc (nto_target_ops): Update.
2661 * win32-low.cc (win32_target_ops): Update.
2663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2665 Turn process_stratum_target's thread_name and thread_handle ops
2666 into methods of process_target.
2668 * target.h (struct process_stratum_target): Remove the target ops.
2669 (class process_target): Add the target ops.
2670 (target_thread_name): Update the macro.
2671 (target_thread_handle): Update the macro.
2672 * target.cc (process_target::thread_name): Define.
2673 (process_target::thread_handle): Define.
2675 Update the derived classes and callers below.
2677 * linux-low.cc (linux_target_ops): Update.
2678 (linux_process_target::thread_name): Define.
2679 (linux_process_target::thread_handle): Define.
2680 * linux-low.h (class linux_process_target): Update.
2681 * lynx-low.cc (lynx_target_ops): Update.
2682 * nto-low.cc (nto_target_ops): Update.
2683 * win32-low.cc (win32_target_ops): Update.
2685 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2687 Turn process_stratum_target's breakpoint_kind_from_pc,
2688 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2689 ops into methods of process_target.
2691 * target.h (struct process_stratum_target): Remove the target op.
2692 (class process_target): Add the target op.
2693 (target_breakpoint_kind_from_pc): Update the macro.
2694 (target_breakpoint_kind_from_current_state): Update the macro.
2695 (default_breakpoint_kind_from_pc): Remove declaration.
2696 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2697 (process_target::breakpoint_kind_from_pc): ... this.
2698 (process_target::breakpoint_kind_from_current_state): Define.
2700 Update the derived classes and callers below.
2702 * mem-break.cc (bp_size): Update.
2703 (bp_opcode): Update.
2704 * linux-low.cc (linux_target_ops): Update.
2705 (linux_wait_1): Update.
2706 (linux_breakpoint_kind_from_pc): Turn into ...
2707 (linux_process_target::breakpoint_kind_from_pc): ... this.
2708 (linux_sw_breakpoint_from_kind): Turn into ...
2709 (linux_process_target::sw_breakpoint_from_kind): ... this.
2710 (linux_breakpoint_kind_from_current_state): Turn into ...
2711 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2712 * linux-low.h (class linux_process_target): Update.
2713 * lynx-low.cc (lynx_target_ops): Update.
2714 (lynx_process_target::sw_breakpoint_from_kind): Define.
2715 * lynx-low.h (class lynx_process_target): Update.
2716 * nto-low.cc (nto_target_ops): Update.
2717 (nto_sw_breakpoint_from_kind): Turn into ...
2718 (nto_process_target::sw_breakpoint_from_kind): ... this.
2719 * nto-low.h (class nto_process_target): Update.
2720 * win32-low.cc (win32_target_ops): Update.
2721 (win32_sw_breakpoint_from_kind): Turn into ...
2722 (win32_process_target::sw_breakpoint_from_kind): ... this.
2723 * win32-low.h (class win32_process_target): Update.
2725 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2727 Turn process_stratum_target's multifs_open, multifs_readlink,
2728 multifs_unlink ops into methods of process_target.
2730 * target.h (struct process_stratum_target): Remove the target ops.
2731 (class process_target): Add the target ops. Also add
2733 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2735 (process_target::supports_multifs): Define.
2736 (process_target::multifs_open): Define.
2737 (process_target::multifs_readlink): Define.
2738 (process_target::multifs_unlink): Define.
2740 Update the derived classes and callers below.
2742 * hostio.cc (handle_setfs): Update.
2743 (handle_open): Update.
2744 (handle_unlink): Update.
2745 (handle_readlink): Update.
2746 * linux-low.cc (linux_target_ops): Update.
2747 (linux_process_target::supports_multifs): Define.
2748 (linux_process_target::multifs_open): Define.
2749 (linux_process_target::multifs_readlink): Define.
2750 (linux_process_target::multifs_unlink): Define.
2751 * linux-low.h (class linux_process_target): Update.
2752 * lynx-low.cc (lynx_target_ops): Update.
2753 * nto-low.cc (nto_target_ops): Update.
2754 * win32-low.cc (win32_target_ops): Update.
2756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2758 Turn process_stratum_target's pid_to_exec_file op into a method
2761 * target.h (struct process_stratum_target): Remove the target op.
2762 (class process_target): Add the target op. Also add
2763 'supports_pid_to_exec_file'.
2764 * target.cc (process_target::pid_to_exec_file): Define.
2765 (process_target::supports_pid_to_exec_file): Define.
2767 Update the derived classes and callers below.
2769 * server.cc (handle_qxfer_exec_file): Update.
2770 (handle_query): Update.
2771 * linux-low.cc (linux_target_ops): Update.
2772 (linux_process_target::supports_pid_to_exec_file): Define.
2773 (linux_process_target::pid_to_exec_file): Define.
2774 * linux-low.h (class linux_process_target): Update.
2775 * lynx-low.cc (lynx_target_ops): Update.
2776 * nto-low.cc (nto_target_ops): Update.
2777 * win32-low.cc (win32_target_ops): Update.
2779 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2781 Turn process_stratum_target's supports_range_stepping op into a
2782 method of process_target.
2784 * target.h (struct process_stratum_target): Remove the target op.
2785 (class process_target): Add the target op.
2786 (target_supports_range_stepping): Update the macro.
2787 * target.cc (process_target::supports_range_stepping): Define.
2789 Update the derived classes and callers below.
2791 * linux-low.cc (linux_target_ops): Update.
2792 (linux_supports_range_stepping): Turn into ...
2793 (linux_process_target::supports_range_stepping): ... this.
2794 * linux-low.h (class linux_process_target): Update.
2795 * lynx-low.cc (lynx_target_ops): Update.
2796 * nto-low.cc (nto_target_ops): Update.
2797 * win32-low.cc (win32_target_ops): Update.
2799 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2801 Turn process_stratum_target's btrace-related ops (enable_btrace,
2802 disable_btrace, read_btrace, read_btrace_conf) into methods of
2805 * target.h (struct process_stratum_target): Remove the target ops.
2806 (class process_target): Add the target ops.
2807 (target_enable_btrace): Update.
2808 (target_disable_btrace): Update.
2809 (target_read_btrace): Update.
2810 (target_read_btrace_conf): Update.
2811 * target.cc (process_target::enable_btrace): Define.
2812 (process_target::disable_btrace): Define.
2813 (process_target::read_btrace): Define.
2814 (process_target::read_btrace_conf): Define.
2816 Update the derived classes and callers below.
2818 * linux-low.cc (linux_target_ops): Update.
2819 (linux_process_target:enable_btrace): Define as a wrapper around
2820 linux_enable_btrace.
2821 (linux_low_disable_btrace): Turn into ...
2822 (linux_process_target::disable_btrace): ... this.
2823 (linux_low_read_btrace): Turn into ...
2824 (linux_process_target::read_btrace): ... this.
2825 (linux_low_btrace_conf): Turn into ...
2826 (linux_process_target::read_btrace_conf): ... this.
2827 * linux-low.h (class linux_process_target): Update.
2828 * lynx-low.cc (lynx_target_ops): Update.
2829 * nto-low.cc (nto_target_ops): Update.
2830 * win32-low.cc (win32_target_ops): Update.
2832 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2834 Turn process_stratum_target's supports_agent op into a method of
2837 * target.h (struct process_stratum_target): Remove the target op.
2838 (class process_target): Add the target op.
2839 (target_supports_agent): Update the macro.
2840 * target.cc (process_target::supports_agent): Define.
2842 Update the derived classes and callers below.
2844 * linux-low.cc (linux_target_ops): Update.
2845 (linux_supports_agent): Turn into ...
2846 (linux_process_target::supports_agent): ... this.
2847 * linux-low.h (class linux_process_target): Update.
2848 * lynx-low.cc (lynx_target_ops): Update.
2849 * nto-low.cc (nto_target_ops): Update.
2850 * win32-low.cc (win32_target_ops): Update.
2852 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2854 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2855 method of process_target.
2857 * target.h (struct process_stratum_target): Remove the target op.
2858 (class process_target): Add the target op. Also add
2859 'supports_qxfer_libraries_svr4'.
2860 * target.cc (process_target::qxfer_libraries_svr4): Define.
2861 (process_target::supports_qxfer_libraries_svr4): Define.
2863 Update the derived classes and callers below.
2865 * server.cc (handle_qxfer_libraries_svr4): Update.
2866 (handle_query): Update.
2867 * linux-low.cc (linux_target_ops): Update.
2868 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2869 (linux_qxfer_libraries_svr4): Turn into ...
2870 (linux_process_target::qxfer_libraries_svr4): ... this.
2871 * linux-low.h (class linux_process_target): Update.
2872 * lynx-low.cc (lynx_target_ops): Update.
2873 * nto-low.cc (nto_target_ops): Update.
2874 * win32-low.cc (win32_target_ops): Update.
2876 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2878 Turn process_stratum_target's supports_disable_randomization op
2879 into a method of process_target.
2881 * target.h (struct process_stratum_target): Remove the target op.
2882 (class process_target): Add the target op.
2883 (target_supports_disable_randomization): Update the macro.
2884 * target.cc (process_target::supports_disable_randomization): Define.
2886 Update the derived classes and callers below.
2888 * linux-low.cc (linux_target_ops): Update.
2889 (linux_supports_disable_randomization): Turn into ...
2890 (linux_process_target::supports_disable_randomization): ... this.
2891 * linux-low.h (class linux_process_target): Update.
2892 * lynx-low.cc (lynx_target_ops): Update.
2893 * nto-low.cc (nto_target_ops): Update.
2894 * win32-low.cc (win32_target_ops): Update.
2896 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2898 Turn process_stratum_target's emit_ops op into a method of
2901 * target.h (struct process_stratum_target): Remove the target op.
2902 (class process_target): Add the target op.
2903 (target_emit_ops): Update the macro.
2904 * target.cc (process_target::emit_ops): Define.
2906 Update the derived classes and callers below.
2908 * linux-low.cc (linux_target_ops): Update.
2909 (linux_emit_ops): Turn into ...
2910 (linux_process_target::emit_ops): ... this.
2911 * linux-low.h (class linux_process_target): Update.
2912 * lynx-low.cc (lynx_target_ops): Update.
2913 * nto-low.cc (nto_target_ops): Update.
2914 * win32-low.cc (win32_target_ops): Update.
2916 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2918 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2919 and get_min_fast_tracepoint_insn_len ops into methods of
2922 * target.h (struct process_stratum_target): Remove the target ops.
2923 (class process_target): Add the target ops. Also add
2924 'supports_fast_tracepoints'.
2925 (target_supports_fast_tracepoints): Update the macro.
2926 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2927 (install_fast_tracepoint_jump_pad): Update and rename the macro
2929 (target_install_fast_tracepoint_jump_pad): ... this.
2930 * target.cc (process_target::supports_fast_tracepoints): Define.
2931 (process_target::install_fast_tracepoint_jump_pad): Define.
2932 (process_target::get_min_fast_tracepoint_insn_len): Define.
2934 Update the derived classes and callers below.
2936 * tracepoint.cc (install_fast_tracepoint): Update.
2937 * linux-low.cc (linux_target_ops): Update.
2938 (linux_process_target::supports_fast_tracepoints): Define.
2939 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2940 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2941 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2942 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2943 * linux-low.h (class linux_process_target): Update.
2944 * lynx-low.cc (lynx_target_ops): Update.
2945 * nto-low.cc (nto_target_ops): Update.
2946 * win32-low.cc (win32_target_ops): Update.
2948 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2950 Turn process_stratum_target's stabilize_threads op into a
2951 method of process_target.
2953 * target.h (struct process_stratum_target): Remove the target op.
2954 (class process_target): Add the target op.
2955 (target_stabilize_threads): Update the macro.
2956 * target.cc (process_target::stabilize_threads): Define.
2958 Update the derived classes and callers below.
2960 * server.cc (handle_status): Update.
2961 * tracepoint.cc (cmd_qtdp): Update.
2962 (cmd_qtstart): Update.
2963 * linux-low.cc (linux_target_ops): Update.
2964 (linux_stabilize_threads): Turn into ...
2965 (linux_process_target::stabilize_threads): ... this.
2966 (linux_wait_1): Update.
2967 * linux-low.h (class linux_process_target): Update.
2968 * lynx-low.cc (lynx_target_ops): Update.
2969 * nto-low.cc (nto_target_ops): Update.
2970 * win32-low.cc (win32_target_ops): Update.
2972 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2974 Turn process_stratum_target's pause_all and unpause_all ops
2975 into methods of process_target.
2977 * target.h (struct process_stratum_target): Remove the target ops.
2978 (class process_target): Add the target ops.
2979 (pause_all): Update the macro and rename to...
2980 (target_pause_all): ... this.
2981 (unpause_all): Update the macro and rename to...
2982 (target_unpause_all): ... this.
2983 * target.cc (process_target::pause_all): Define.
2984 (process_target::unpause_all): Define.
2986 Update the derived classes and callers below.
2988 * server.cc (handle_status): Update.
2989 * tracepoint.cc (clear_installed_tracepoints): Update.
2991 (cmd_qtstart): Update.
2992 (stop_tracing): Update.
2993 (cmd_qtstatus): Update.
2994 (upload_fast_traceframes): Update.
2995 (run_inferior_command): Update.
2996 * linux-low.cc (linux_target_ops): Update.
2997 (linux_pause_all): Turn into ...
2998 (linux_process_target::pause_all): ... this.
2999 (linux_unpause_all): Turn into ...
3000 (linux_process_target::unpause_all): ... this.
3001 (linux_process_target::prepare_to_access_memory): Update.
3002 (linux_process_target::done_accessing_memory): Update.
3003 * linux-low.h (class linux_process_target): Update.
3004 * lynx-low.cc (lynx_target_ops): Update.
3005 * nto-low.cc (nto_target_ops): Update.
3006 * win32-low.cc (win32_target_ops): Update.
3008 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3010 Turn process_stratum_target's get_tib_address op into a method of
3013 * target.h (struct process_stratum_target): Remove the target op.
3014 (class process_target): Add the target op. Also add
3015 'supports_get_tib_address'.
3016 * target.cc (process_target::get_tib_address): Define.
3017 (process_target::supports_get_tib_address): Define.
3019 Update the derived classes and callers below.
3021 * server.cc (handle_query): Update.
3022 * linux-low.cc (win32_target_ops): Update.
3023 * lynx-low.cc (lynx_target_ops): Update.
3024 * nto-low.cc (nto_target_ops): Update.
3025 * win32-low.cc (win32_target_ops): Update.
3026 (win32_process_target::supports_get_tib_address): Define.
3027 (win32_get_tib_address): Turn into ...
3028 (win32_process_target::get_tib_address): ... this.
3029 * win32-low.h (class win32_process_target): Update.
3031 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3033 Turn process_stratum_target's thread_stopped op into a method of
3036 * target.h (struct process_stratum_target): Remove the target op.
3037 (class process_target): Add the target op. Also add
3038 'supports_thread_stopped'.
3039 (target_thread_stopped): Update the macro.
3040 * target.cc (process_target::thread_stopped): Define.
3041 (process_target::supports_thread_stopped): Define.
3042 (prepare_to_access_memory): Update.
3044 Update the derived classes and callers below.
3046 * server.cc (queue_stop_reply_callback): Update.
3047 * linux-low.cc (linux_target_ops): Update.
3048 (linux_process_target::supports_thread_stopped): Define.
3049 (linux_thread_stopped): Turn into ...
3050 (linux_process_target::thread_stopped): ... this.
3051 * linux-low.h (class linux_process_target): Update.
3052 * lynx-low.cc (lynx_target_ops): Update.
3053 * nto-low.cc (nto_target_ops): Update.
3054 * win32-low.cc (win32_target_ops): Update.
3056 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3058 Turn process_stratum_target's read_pc and write_pc ops into
3059 methods of process_target.
3061 * target.h (struct process_stratum_target): Remove the target ops.
3062 (class process_target): Add the target ops.
3063 * target.cc (process_target::read_pc): Define.
3064 (process_target::write_pc): Define.
3066 Update the derived classes and callers below.
3068 * regcache.cc (regcache_read_pc): Update.
3069 (regcache_write_pc): Update.
3070 * linux-low.cc (linux_target_ops): Update.
3071 (linux_read_pc): Turn into ...
3072 (linux_process_target::read_pc): ... this.
3073 (linux_write_pc): Turn into ...
3074 (linux_process_target::write_pc): ... this.
3075 * linux-low.h (class linux_process_target): Update.
3076 * lynx-low.cc (lynx_target_ops): Update.
3077 * nto-low.cc (nto_target_ops): Update.
3078 * win32-low.cc (win32_target_ops): Update.
3080 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3082 Turn process_stratum_target's supports_tracepoints op into a
3083 method of process_target.
3085 * target.h (struct process_stratum_target): Remove the target op.
3086 (class process_target): Add the target op.
3087 (target_supports_tracepoints): Update the macro.
3088 * target.cc (process_target::supports_tracepoints): Define.
3090 Update the derived classes and callers below.
3092 * linux-low.cc (linux_target_ops): Update.
3093 (linux_supports_tracepoints): Turn into ...
3094 (linux_process_target::supports_tracepoints): ... this.
3095 * linux-low.h (class linux_process_target): Update.
3096 * lynx-low.cc (lynx_target_ops): Update.
3097 * nto-low.cc (nto_target_ops): Update.
3098 * win32-low.cc (win32_target_ops): Update.
3100 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3102 Turn process_stratum_target's process_qsupported op into a method
3105 * target.h (struct process_stratum_target): Remove the target op.
3106 (class process_target): Add the target op.
3107 (target_process_qsupported): Update the macro.
3108 * target.cc (process_target::process_qsupported): Define.
3110 Update the derived classes and callers below.
3112 * linux-low.cc (linux_target_ops): Update.
3113 (linux_process_qsupported): Turn into ...
3114 (linux_process_target::process_qsupported): ... this.
3115 * linux-low.h (class linux_process_target): Update.
3116 * lynx-low.cc (lynx_target_ops): Update.
3117 * nto-low.cc (nto_target_ops): Update.
3118 * win32-low.cc (win32_target_ops): Update.
3120 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3122 Turn process_stratum_target's read_loadmap op into a method of
3125 * target.h (struct process_stratum_target): Remove the target op.
3126 (class process_target): Add the target op. Also add
3127 'supports_read_loadmap'.
3128 * target.cc (process_target::read_loadmap): Define.
3129 (process_target::supports_read_loadmap): Define.
3131 Update the derived classes and callers below.
3133 * server.cc (handle_qxfer_fdpic): Update.
3134 (handle_query): Update.
3135 * linux-low.cc (linux_target_ops): Update.
3136 (linux_process_target::supports_read_loadmap): Define.
3137 (linux_read_loadmap): Turn into ...
3138 (linux_process_target::read_loadmap): ... this.
3139 * linux-low.h (class linux_process_target): Update.
3140 * lynx-low.cc (lynx_target_ops): Update.
3141 * nto-low.cc (nto_target_ops): Update.
3142 * win32-low.cc (win32_target_ops): Update.
3144 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3146 Turn process_stratum_target's core_of_thread op into a method of
3149 * target.h (struct process_stratum_target): Remove the target op.
3150 (class process_target): Add the target op.
3151 (target_core_of_thread): Update the macro.
3152 * target.cc (process_target::core_of_thread): Define.
3154 Update the derived classes and callers below.
3156 * linux-low.cc (linux_target_ops): Update.
3157 (linux_process_target::core_of_thread): Define.
3158 * linux-low.h (class linux_process_target): Update.
3159 * lynx-low.cc (lynx_target_ops): Update.
3160 * nto-low.cc (nto_target_ops): Update.
3161 * win32-low.cc (win32_target_ops): Update.
3163 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3165 Turn process_stratum_target's handle_monitor_command op into a
3166 method of process_target.
3168 * target.h (struct process_stratum_target): Remove the target op.
3169 (class process_target): Add the target op.
3170 (target_handle_monitor_command): Update the macro.
3171 * target.cc (process_target::handle_monitor_command): Define.
3173 Update the derived classes and callers below.
3175 * server.cc (handle_query): Update.
3176 * linux-low.cc (linux_target_ops): Update.
3177 (linux_process_target::handle_monitor_command): Define.
3178 * linux-low.h (class linux_process_target): Update.
3179 * lynx-low.cc (lynx_target_ops): Update.
3180 * nto-low.cc (nto_target_ops): Update.
3181 * win32-low.cc (win32_target_ops): Update.
3183 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3185 Turn process_stratum_target's handle_new_gdb_connection op into a
3186 method of process_target.
3188 * target.h (struct process_stratum_target): Remove the target op.
3189 (class process_target): Add the target op.
3190 (target_handle_new_gdb_connection): Update the macro.
3191 * target.cc (process_target::handle_new_gdb_connection): Define.
3193 Update the derived classes and callers below.
3195 * linux-low.cc (linux_target_ops): Update.
3196 (linux_handle_new_gdb_connection): Turn into ...
3197 (linux_process_target::handle_new_gdb_connection): ... this.
3198 * linux-low.h (class linux_process_target): Update.
3199 * lynx-low.cc (lynx_target_ops): Update.
3200 * nto-low.cc (nto_target_ops): Update.
3201 * win32-low.cc (win32_target_ops): Update.
3203 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3205 Turn process_stratum_target's supports_fork_events,
3206 supports_vfork_events, and supports_exec_events ops into methods
3209 * target.h (struct process_stratum_target): Remove the target ops.
3210 (class process_target): Add the target ops.
3211 (target_supports_fork_events): Update the macro.
3212 (target_supports_vfork_events): Update the macro.
3213 (target_supports_exec_events): Update the macro.
3214 * target.cc (process_target::supports_fork_events): Define.
3215 (process_target::supports_vfork_events): Define.
3216 (process_target::supports_exec_events): Define.
3218 Update the derived classes and callers below.
3220 * linux-low.cc (linux_target_ops): Update.
3221 (linux_supports_fork_events): Turn into ...
3222 (linux_process_target::supports_fork_events): ... this.
3223 (linux_supports_vfork_events): Turn into ...
3224 (linux_process_target::supports_vfork_events): ... this.
3225 (linux_supports_exec_events): Turn into ...
3226 (linux_process_target::supports_exec_events): ... this.
3227 * linux-low.h (class linux_process_target): Update.
3228 * lynx-low.cc (lynx_target_ops): Update.
3229 * nto-low.cc (nto_target_ops): Update.
3230 * win32-low.cc (win32_target_ops): Update.
3232 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3234 Turn process_stratum_target's supports_multi_process op into a
3235 method of process_target.
3237 * target.h (struct process_stratum_target): Remove the target op.
3238 (class process_target): Add the target op.
3239 * target.cc (process_target::supports_multi_process): Define.
3240 (target_supports_multi_process): Update.
3242 Update the derived classes and callers below.
3244 * linux-low.cc (linux_target_ops): Update.
3245 (linux_supports_multi_process): Turn into ...
3246 (linux_process_target::supports_multi_process): ... this.
3247 * linux-low.h (class linux_process_target): Update.
3248 * lynx-low.cc (lynx_target_ops): Update.
3249 * nto-low.cc (nto_target_ops): Update.
3250 * win32-low.cc (win32_target_ops): Update.
3252 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3254 Turn process_stratum_target's supports_non_stop, async, and
3255 start_non_stop ops into methods of process_target.
3257 * target.h (struct process_stratum_target): Remove the target ops.
3258 (class process_target): Add the target ops.
3259 (target_supports_non_stop): Update the macro.
3260 (target_async): Update the macro.
3261 (start_non_stop): Remove declaration.
3262 * target.cc (process_target::supports_non_stop): Define.
3263 (process_target::async): Define.
3264 (process_target::start_non_stop): Define.
3265 (start_non_stop): Remove.
3267 Update the derived classes and callers below.
3269 * server.cc (handle_qxfer_siginfo): Update.
3270 (handle_query): Update.
3271 * linux-low.cc (linux_target_ops): Update.
3272 (linux_supports_non_stop): Turn into ...
3273 (linux_process_target::supports_non_stop): ... this.
3274 (linux_async): Turn into ...
3275 (linux_process_target::async): ... this.
3276 (linux_start_non_stop): Turn into ...
3277 (linux_process_target::start_non_stop): ... this.
3278 * linux-low.h (class linux_process_target): Update.
3279 * lynx-low.cc (lynx_target_ops): Update.
3280 * nto-low.cc (nto_target_ops): Update.
3281 (nto_supports_non_stop): Remove; rely on the default behavior
3283 * win32-low.cc (win32_target_ops): Update.
3285 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3287 Turn process_stratum_target's qxfer_siginfo op into a method of
3290 * target.h (struct process_stratum_target): Remove the target op.
3291 (class process_target): Add the target op. Also add
3292 'supports_qxfer_siginfo'.
3293 * target.cc (process_target::qxfer_siginfo): Define.
3294 (process_target::supports_qxfer_siginfo): Define.
3296 Update the derived classes and callers below.
3298 * server.cc (handle_qxfer_siginfo): Update.
3299 (handle_query): Update.
3300 * linux-low.cc (linux_target_ops): Update.
3301 (linux_process_target::supports_qxfer_siginfo): Define.
3302 (linux_xfer_siginfo): Turn into ...
3303 (linux_process_target::qxfer_siginfo): ... this.
3304 * linux-low.h (class linux_process_target): Update.
3305 * lynx-low.cc (lynx_target_ops): Update.
3306 * nto-low.cc (nto_target_ops): Update.
3307 * win32-low.cc (win32_target_ops): Update.
3309 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3311 Turn process_stratum_target's qxfer_osdata op into a method of
3314 * target.h (struct process_stratum_target): Remove the target op.
3315 (class process_target): Add the target op. Also add
3316 'supports_qxfer_osdata'.
3317 * target.cc (process_target::qxfer_osdata): Define.
3318 (process_target::supports_qxfer_osdata): Define.
3320 Update the derived classes and callers below.
3322 * server.cc (handle_qxfer_osdata): Update.
3323 (handle_query): Update.
3324 * linux-low.cc (linux_target_ops): Update.
3325 (linux_process_target::supports_qxfer_osdata): Define.
3326 (linux_qxfer_osdata): Turn into ...
3327 (linux_process_target::qxfer_osdata): ... this.
3328 * linux-low.h (class linux_process_target): Update.
3329 * lynx-low.cc (lynx_target_ops): Update.
3330 * nto-low.cc (nto_target_ops): Update.
3331 * win32-low.cc (win32_target_ops): Update.
3333 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3335 Turn process_stratum_target's hostio_last_error op into a
3336 method of process_target.
3338 * target.h (struct process_stratum_target): Remove the target op.
3339 (class process_target): Add the target op.
3340 * target.cc: Add "hostio.h" to includes.
3341 (process_target::hostio_last_error): Define.
3343 Update the derived classes and callers below.
3345 * hostio.cc (hostio_error): Update.
3346 * linux-low.cc: Remove "hostio.h" from includes.
3347 (linux_target_ops): Update.
3348 * lynx-low.cc (lynx_target_ops): Update.
3349 * nto-low.cc (nto_target_ops): Update.
3350 * win32-low.h (class win32_process_target): Update.
3351 * win32-low.cc (win32_target_ops): Update.
3352 (wince_hostio_last_error): Turn into ...
3353 (win32_process_target::hostio_last_error): ... this.
3355 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3357 Turn process_stratum_target's get_tls_address op into a method of
3360 * target.h (struct process_stratum_target): Remove the target op.
3361 (class process_target): Add the target op. Also add
3362 'supports_get_tls_address'.
3363 * target.cc (process_target::get_tls_address): Define.
3364 (process_target::supports_get_tls_address): Define.
3366 Update the derived classes and callers below.
3368 * server.cc (handle_query): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_process_target::supports_get_tls_address): Define.
3371 (linux_process_target::get_tls_address): Define.
3372 * linux-low.h (class linux_process_target): Update.
3373 * lynx-low.cc (lynx_target_ops): Update.
3374 * nto-low.cc (nto_target_ops): Update.
3375 * win32-low.cc (win32_target_ops): Update.
3377 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3379 Turn process_stratum_target's read_offsets op into a method of
3382 * target.h (struct process_stratum_target): Remove the target op.
3383 (class process_target): Add the target op. Also add
3384 'supports_read_offsets'.
3385 * target.cc (process_target::read_offsets): Define.
3386 (process_target::supports_read_offsets): Define.
3388 Update the derived classes and callers below.
3390 * server.cc (handle_query): Update.
3391 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3392 (linux_target_ops): Update.
3393 (linux_process_target::supports_read_offsets): Define.
3394 (linux_read_offsets): Turn into ...
3395 (linux_process_target::read_offsets): ... this.
3396 * linux-low.h (class linux_process_target): Update.
3397 * lynx-low.cc (lynx_target_ops): Update.
3398 * nto-low.cc (nto_target_ops): Update.
3399 * win32-low.cc (win32_target_ops): Update.
3401 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3403 Turn process_stratum_target's stopped_by_watchpoint and
3404 stopped_data_address ops into methods of process_target.
3406 * target.h (struct process_stratum_target): Remove the target ops.
3407 (class process_target): Add the target ops.
3408 * target.cc (process_target::stopped_by_watchpoint): Define.
3409 (process_target::stopped_data_address): Define.
3411 Update the derived classes and callers below.
3413 * remote-utils.cc (prepare_resume_reply): Update.
3414 * linux-low.cc (linux_target_ops): Update.
3415 (linux_stopped_by_watchpoint): Turn into ...
3416 (linux_process_target::stopped_by_watchpoint): ... this.
3417 (linux_stopped_data_address): Turn into ...
3418 (linux_process_target::stopped_data_address): ... this.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 (nto_stopped_by_watchpoint): Turn into ...
3423 (nto_process_target::stopped_by_watchpoint): ... this.
3424 (nto_stopped_data_address): Turn into ...
3425 (nto_process_target::stopped_data_address): ... this.
3426 * nto-low.h (class nto_process_target): Update.
3427 * win32-low.cc (win32_target_ops): Update.
3428 (win32_stopped_by_watchpoint): Turn into ...
3429 (win32_process_target::stopped_by_watchpoint): ... this.
3430 (win32_stopped_data_address): Turn into ...
3431 (win32_process_target::stopped_data_address): ... this.
3432 * win32-low.h (class win32_process_target): Update.
3434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3436 Turn process_stratum_target's supports_hardware_single_step op into
3437 a method of process_target.
3439 * target.h (struct process_stratum_target): Remove the target op.
3440 (class process_target): Add the target op.
3441 (target_supports_hardware_single_step): Update the macro.
3442 (target_can_do_hardware_single_step): Remove declaration.
3443 * target.cc (process_target::supports_hardware_single_step): Define.
3444 (target_can_do_hardware_single_step): Remove.
3446 Update the derived classes and callers below.
3448 * linux-low.h (class linux_process_target): Update.
3449 * linux-low.cc (linux_target_ops): Update.
3450 (linux_supports_hardware_single_step): Turn into ...
3451 (linux_process_target::supports_hardware_single_step): ... this.
3452 * lynx-low.h (class lynx_process_target): Update.
3453 * lynx-low.cc (lynx_target_ops): Update.
3454 (lynx_process_target::supports_hardware_single_step): Define.
3455 * nto-low.h (class nto_process_target): Update.
3456 * nto-low.cc (nto_target_ops): Update.
3457 (nto_process_target::supports_hardware_single_step): Define.
3458 * win32-low.h (class win32_process_target): Update.
3459 * win32-low.cc (win32_target_ops): Update.
3460 (win32_process_target::supports_hardware_single_step): Define.
3462 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3464 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3465 ops into methods of process_target.
3467 * target.h (struct process_stratum_target): Remove the target ops.
3468 (class process_target): Add the target ops.
3469 (target_stopped_by_hw_breakpoint): Update the macro.
3470 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3471 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3472 (process_target::supports_stopped_by_hw_breakpoint): Define.
3474 Update the derived classes and callers below.
3476 * linux-low.cc (linux_target_ops): Update.
3477 (linux_stopped_by_hw_breakpoint): Turn into ...
3478 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3479 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3480 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3481 * linux-low.h (class linux_process_target): Update.
3482 * lynx-low.cc (lynx_target_ops): Update.
3483 * nto-low.cc (nto_target_ops): Update.
3484 * win32-low.cc (win32_target_ops): Update.
3486 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3488 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3489 ops into methods of process_target.
3491 * target.h (struct process_stratum_target): Remove the target ops.
3492 (class process_target): Add the target ops.
3493 (target_stopped_by_sw_breakpoint): Update the macro.
3494 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3495 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3496 (process_target::supports_stopped_by_sw_breakpoint): Define.
3498 Update the derived classes and callers below.
3500 * linux-low.cc (linux_target_ops): Update.
3501 (linux_stopped_by_sw_breakpoint): Turn into ...
3502 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3503 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3504 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3505 * linux-low.h (class linux_process_target): Update.
3506 * lynx-low.cc (lynx_target_ops): Update.
3507 * nto-low.cc (nto_target_ops): Update.
3508 * win32-low.cc (win32_target_ops): Update.
3510 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3512 Turn process_stratum_target's insert_point and remove_point ops
3513 into methods of process_target.
3515 * target.h (struct process_stratum_target): Remove the target ops.
3516 (class process_target): Add the target ops.
3517 * target.cc (process_target::insert_point): Define.
3518 (process_target::remove_point): Define.
3520 Update the derived classes and callers below.
3522 * mem-break.cc (set_raw_breakpoint_at): Update.
3523 (delete_raw_breakpoint): Update.
3524 (uninsert_raw_breakpoint): Update.
3525 (reinsert_raw_breakpoint): Update.
3526 * linux-low.cc (linux_target_ops): Update.
3527 (linux_insert_point): Turn into ...
3528 (linux_process_target::insert_point): ... this.
3529 (linux_remove_point): Turn into ...
3530 (linux_process_target::remove_point): ... this.
3531 * linux-low.h (class linux_process_target): Update.
3532 * lynx-low.cc (lynx_target_ops): Update.
3533 * nto-low.cc (nto_target_ops): Update.
3534 (nto_insert_point): Turn into ...
3535 (nto_process_target::insert_point): ... this.
3536 (nto_remove_point): Turn into ...
3537 (nto_process_target::remove_point): ... this.
3538 * nto-low.h (class nto_process_target): Update.
3539 * win32-low.cc (win32_target_ops): Update.
3540 (win32_insert_point): Turn into ...
3541 (win32_process_target::insert_point): ... this.
3542 (win32_remove_point): Turn into ...
3543 (win32_process_target::remove_point): ... this.
3544 * win32-low.h (class win32_process_target): Update.
3546 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3548 Turn process_stratum_target's supports_z_point_type op into a
3549 method of process_target.
3551 * target.h (struct process_stratum_target): Remove the target op.
3552 (class process_target): Add the target op.
3553 * target.cc (process_target::supports_z_point_type): Define.
3555 Update the derived classes and callers below.
3557 * mem-break.cc (z_type_supported): Update.
3558 * linux-low.cc (linux_target_ops): Update.
3559 (linux_supports_z_point_type): Turn into ...
3560 (linux_process_target::supports_z_point_type): ... this.
3561 * linux-low.h (class linux_process_target): Update.
3562 * lynx-low.cc (lynx_target_ops): Update.
3563 * nto-low.cc (nto_target_ops): Update.
3564 (nto_supports_z_point_type): Turn into ...
3565 (nto_process_target::supports_z_point_type): ... this.
3566 * nto-low.h (class nto_process_target): Update.
3567 * win32-low.cc (win32_target_ops): Update.
3568 (win32_supports_z_point_type): Turn into ...
3569 (win32_process_target::supports_z_point_type): ... this.
3570 * win32-low.h (class win32_process_target): Update.
3572 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3574 Turn process_stratum_target's read_auxv op into a method of
3577 * target.h (class process_stratum_target): Remove the target op.
3578 (struct process_target): Add the target op. Also add
3579 'supports_read_auxv'.
3580 * target.cc (process_target::read_auxv): Define.
3581 (process_target::supports_read_auxv): Define.
3583 Update the derived classes and callers below.
3585 * server.cc (handle_qxfer_auxv): Update.
3586 (handle_query): Update.
3587 * linux-low.cc (linux_target_ops): Update.
3588 (linux_process_target::supports_read_auxv): Define.
3589 (linux_read_auxv): Turn into ...
3590 (linux_process_target::read_auxv): ... this.
3591 * linux-low.h (class linux_process_target): Update.
3592 * lynx-low.cc (lynx_target_ops): Update.
3593 * nto-low.cc (nto_target_ops): Update.
3594 (nto_process_target::supports_read_auxv): Define.
3595 (nto_read_auxv): Turn into ...
3596 (nto_process_target::read_auxv): ... this.
3597 * nto-low.h (class nto_process_target): Update.
3598 * win32-low.cc (win32_target_ops): Update.
3600 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3602 Turn process_stratum_target's request_interrupt op into a method of
3605 * target.h (struct process_stratum_target): Remove the target op.
3606 (class process_target): Add the target op.
3608 Update the derived classes and callers below.
3610 * remote-utils.cc (putpkt_binary_1): Update.
3611 (input_interrupt): Update.
3613 * server.cc (handle_v_requests): Update.
3614 * linux-low.cc (linux_target_ops): Update.
3615 (linux_request_interrupt): Turn into ...
3616 (linux_process_target::request_interrupt): ... this.
3617 * linux-low.h (class linux_process_target): Update.
3618 * lynx-low.cc (lynx_target_ops): Update.
3619 (lynx_request_interrupt): Turn into ...
3620 (lynx_process_target::request_interrupt): ... this.
3621 * lynx-low.h (class lynx_process_target): Update.
3622 * nto-low.cc (nto_target_ops): Update.
3623 (nto_request_interrupt): Turn into ...
3624 (nto_process_target::request_interrupt): ... this.
3625 * nto-low.h (class nto_process_target): Update.
3626 * win32-low.cc (win32_target_ops): Update.
3627 (win32_request_interrupt): Turn into ...
3628 (win32_process_target::request_interrupt): ... this.
3629 * win32-low.h (class win32_process_target): Update.
3631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3633 Turn process_stratum_target's look_up_symbols op into a method of
3636 * target.h (struct process_stratum_target): Remove the target op.
3637 (class process_target): Add the target op.
3638 * target.cc (process_target::look_up_symbols): Define.
3640 Update the derived classes and callers below.
3642 * server.cc (handle_query): Update.
3643 * linux-low.cc (linux_target_ops): Update.
3644 (linux_look_up_symbols): Turn into ...
3645 (linux_process_target::look_up_symbols): ... this.
3646 * linux-low.h (class linux_process_target): Update.
3647 * lynx-low.cc (lynx_target_ops): Update.
3648 * nto-low.cc (nto_target_ops): Update.
3649 * win32-low.cc (win32_target_ops): Update.
3651 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3653 Turn process_stratum_target's read_memory and write_memory
3654 ops into methods of process_target.
3656 * target.h (struct process_stratum_target): Remove the target ops.
3657 (class process_target): Add the target ops.
3659 Update the derived classes and callers below.
3661 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3662 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3663 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3664 (arm_get_syscall_trapinfo): Update.
3665 * linux-cris-low.cc (cris_breakpoint_at): Update.
3666 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3667 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3668 * linux-mips-low.cc (mips_breakpoint_at): Update.
3669 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3670 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3671 * linux-sh-low.cc (sh_breakpoint_at): Update.
3672 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3673 (sparc_store_gregset_from_stack): Update.
3674 (sparc_breakpoint_at): Update.
3675 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3676 * linux-tile-low.cc (tile_breakpoint_at): Update.
3677 * linux-x86-low.cc (x86_breakpoint_at): Update.
3678 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3679 * mem-brea.cc (insert_memory_breakpoint): Update.
3680 (validate_inserted_breakpoint): Update.
3681 * target.cc (read_inferior_memory): Update.
3682 (target_write_memory): Update.
3683 * linux-low.cc (linux_target_ops): Update.
3684 (linux_read_memory): Make a wrapper around the read_memory target
3686 (linux_process_target::read_memory): Rename from linux_read_memory.
3687 (linux_write_memory): Turn into ...
3688 (linux_process_target::write_memory): ... this.
3689 * linux-low.h (class linux_process_target): Update.
3690 * lynx-low.cc (lynx_target_ops): Update.
3691 (lynx_read_memory): Turn into ...
3692 (lynx_process_target::read_memory): ... this.
3693 (lynx_write_memory): Turn into ...
3694 (lynx_process_target::write_memory): ... this.
3695 * lynx-low.h (class lynx_process_target): Update.
3696 * nto-low.cc (nto_target_ops): Update.
3697 (nto_read_memory): Turn into ...
3698 (nto_process_target::read_memory): ... this.
3699 (nto_write_memory): Turn into ...
3700 (nto_process_target::write_memory): ... this.
3701 * nto-low.h (class nto_process_target): Update.
3702 * win32-low.cc (win32_target_ops): Update.
3703 (win32_read_inferior_memory): Turn into ...
3704 (win32_process_target::read_memory): ... this.
3705 (win32_write_inferior_memory): Turn into ...
3706 (win32_process_target::write_memory): ... this.
3707 * win32-low.h (class win32_process_target): Update.
3709 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3711 Turn process_stratum_target's prepare_to_access_memory and
3712 done_accessing_memory ops into methods of process_target.
3714 * target.h (struct process_stratum_target): Remove the target ops.
3715 (class process_target): Add the target ops.
3716 * target.cc (process_target::prepare_to_access_memory): Define.
3717 (process_target::done_accessing_memory): Define.
3718 (prepare_to_access_memory): Update.
3719 (done_accessing_memory): Update.
3721 Update the derived classes and callers below.
3723 * linux-low.cc (linux_target_ops): Update.
3724 (linux_prepare_to_access_memory): Turn into ...
3725 (linux_process_target::prepare_to_access_memory): ... this.
3726 (linux_done_accessing_memory): Turn into ...
3727 (linux_process_target::done_accessing_memory): ... this.
3728 * linux-low.h (class linux_process_target): Update.
3729 * lynx-low.cc (lynx_target_ops): Update.
3730 * nto-low.cc (nto_target_ops): Update.
3731 * win32-low.cc (win32_target_ops): Update.
3733 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3735 Turn process_stratum_target's fetch_registers and store_registers
3736 ops into methods of process_target.
3738 * target.h (struct process_stratum_target): Remove the target ops.
3739 (class process_target): Add the target ops.
3740 (fetch_inferior_registers): Update the macro.
3741 (store_inferior_registers): Update the macro.
3743 Update the derived classes and callers below.
3745 * linux-low.cc (linux_target_ops): Update.
3746 (linux_fetch_registers): Turn into ...
3747 (linux_process_target::fetch_registers): ... this.
3748 (linux_store_registers): Turn into ...
3749 (linux_process_target::store_registers): ... this.
3750 * linux-low.h (class linux_process_target): Update.
3751 * lynx-low.cc (lynx_target_ops): Update.
3752 (lynx_fetch_registers): Turn into ...
3753 (lynx_process_target::fetch_registers): ... this.
3754 (lynx_store_registers): Turn into ...
3755 (lynx_process_target::store_registers): ... this.
3756 * lynx-low.h (class lynx_process_target): Update.
3757 * nto-low.cc (nto_target_ops): Update.
3758 (nto_fetch_registers): Turn into ...
3759 (nto_process_target::fetch_registers): ... this.
3760 (nto_store_registers): Turn into ...
3761 (nto_process_target::store_registers): ... this.
3762 * nto-low.h (class nto_process_target): Update.
3763 * win32-low.cc (win32_target_ops): Update.
3764 (win32_fetch_inferior_registers): Turn into ...
3765 (win32_process_target::fetch_registers): ... this.
3766 (win32_store_inferior_registers): Turn into ...
3767 (win32_process_target::store_registers): ... this.
3768 * win32-low.h (class win32_process_target): Update.
3770 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3772 Turn process_stratum_target's wait op into a method of
3775 * target.h (struct process_stratum_target): Remove the target op.
3776 (class process_target): Add the target op.
3778 Update the derived classes and callers below.
3780 * target.cc (target_wait): Update.
3781 * linux-low.cc (linux_target_ops): Update.
3782 (linux_wait): Turn into ...
3783 (linux_process_target::wait): ... this.
3784 * linux-low.h (class linux_process_target): Update.
3785 * lynx-low.cc (lynx_target_ops): Update.
3786 (lynx_wait): Turn into ...
3787 (lynx_process_target::wait): ... this.
3788 * lynx-low.h (class lynx_process_target): Update.
3789 * nto-low.cc (nto_target_ops): Update.
3790 (nto_wait): Turn into ...
3791 (nto_process_target::wait): ... this.
3792 * nto-low.h (class nto_process_target): Update.
3793 * win32-low.cc (win32_target_ops): Update.
3794 (win32_wait): Turn into ...
3795 (win32_process_target::wait): ... this.
3796 (do_initial_child_stuff): Update.
3797 * win32-low.h (class win32_process_target): Update.
3799 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3801 Turn process_stratum_target's resume op into a method of
3804 * target.h (struct process_stratum_target): Remove the target op.
3805 (class process_target): Add the target op.
3807 Update the derived classes and callers below.
3809 * server.cc (resume): Update.
3810 * target.cc (target_stop_and_wait): Update.
3811 (target_continue_no_signal): Update.
3812 (target_continue): Update.
3813 * linux-low.cc (linux_target_ops): Update.
3814 (linux_resume): Turn into ...
3815 (linux_process_target::resume): ... this.
3816 * linux-low.h (class linux_process_target): Update.
3817 * lynx-low.cc (lynx_target_ops): Update.
3818 (lynx_resume): Turn into ...
3819 (lynx_process_target::resume): ... this.
3820 * lynx-low.h (class lynx_process_target): Update.
3821 * nto-low.cc (nto_target_ops): Update.
3822 (nto_resume): Turn into ...
3823 (nto_process_target::resume): ... this.
3824 * nto-low.h (class nto_process_target): Update.
3825 * win32-low.cc (win32_target_ops): Update.
3826 (win32_resume): Turn into ...
3827 (win32_process_target::resume): ... this.
3828 (win32_process_target::detach): Update.
3829 (do_initial_child_stuff): Update.
3830 * win32-low.h (class win32_process_target): Update.
3832 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3834 Turn process_stratum_target's thread_alive op into a method of
3837 * target.h (struct process_stratum_target): Remove the target op.
3838 (class process_target): Add the target op.
3839 (mythread_alive): Update the macro.
3841 Update the derived classes and callers below.
3843 * linux-low.cc (linux_target_ops): Update.
3844 (linux_thread_alive): Turn into ...
3845 (linux_process_target::thread_alive): ... this.
3846 (wait_for_sigstop): Update.
3847 * linux-low.h (class linux_process_target): Update.
3848 * lynx-low.cc (lynx_target_ops): Update.
3849 (lynx_thread_alive): Turn into ...
3850 (lynx_process_target::thread_alive): ... this.
3851 * lynx-low.h (class lynx_process_target): Update.
3852 * nto-low.cc (nto_target_ops): Update.
3853 (nto_thread_alive): Turn into ...
3854 (nto_process_target::thread_alive): ... this.
3855 * nto-low.h (class nto_process_target): Update.
3856 * win32-low.cc (win32_target_ops): Update.
3857 (win32_thread_alive): Turn into ...
3858 (win32_process_target::thread_alive): ... this.
3859 * win32-low.h (class win32_process_target): Update.
3861 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3863 Turn process_stratum_target's join op into a method of
3866 * target.h (struct process_stratum_target): Remove the target op.
3867 (class process_target): Add the target op.
3868 (join_inferior): Update the macro.
3870 Update the derived classes and callers below.
3872 * linux-low.cc (linux_target_ops): Update.
3873 (linux_join): Turn into ...
3874 (linux_process_target::join): ... this.
3875 * linux-low.h (class linux_process_target): Update.
3876 * lynx-low.cc (lynx_target_ops): Update.
3877 (lynx_join): Turn into ...
3878 (lynx_process_target::join): ... this.
3879 * lynx-low.h (class lynx_process_target): Update.
3880 * nto-low.cc (nto_target_ops): Update.
3881 (nto_process_target::join): Define.
3882 * nto-low.h (class nto_process_target): Update.
3883 * win32-low.cc (win32_target_ops): Update.
3884 (win32_join): Turn into ...
3885 (win32_process_target::join): ... this.
3886 * win32-low.h (class win32_process_target): Update.
3888 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3890 Turn process_stratum_target's mourn op into a method of
3893 * target.h (struct process_stratum_target): Remove the target op.
3894 (class process_target): Add the target op.
3896 Update the derived classes and callers below.
3898 * target.cc (target_mourn_inferior): Update.
3899 * linux-low.cc (linux_target_ops): Update.
3900 (linux_mourn): Turn into ...
3901 (linux_process_target::mourn): ... this.
3902 (handle_extended_wait): Update.
3903 (linux_process_target::kill): Update.
3904 (linux_process_target::detach): Update.
3905 * linux-low.h (class linux_process_target): Update.
3906 * lynx-low.cc (lynx_target_ops): Update.
3907 (lynx_mourn): Turn into ...
3908 (lynx_process_target::mourn): ... this.
3909 * lynx-low.h (class lynx_process_target): Update.
3910 * nto-low.cc (nto_target_ops): Update.
3911 (nto_mourn): Turn into ...
3912 (nto_process_target::mourn): ... this.
3913 * nto-low.h (class nto_process_target): Update.
3914 * win32-low.cc (win32_target_ops): Update.
3915 (win32_mourn): Turn into ...
3916 (win32_process_target::mourn): ... this.
3917 * win32-low.h (class win32_process_target): Update.
3919 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3921 Turn process_stratum_target's detach op into a method of
3924 * target.h (struct process_stratum_target): Remove the target op.
3925 (class process_target): Add the target op.
3926 (detach_inferior): Update the macro.
3928 Update the derived classes and callers below.
3930 * linux-low.cc (linux_target_ops): Update.
3931 (linux_detach): Turn into ...
3932 (linux_process_target::detach): ... this.
3933 * linux-low.h (class linux_process_target): Update.
3934 * lynx-low.cc (lynx_target_ops): Update.
3935 (lynx_detach): Turn into ...
3936 (lynx_process_target::detach): ... this.
3937 * lynx-low.h (class lynx_process_target): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 (nto_detach): Turn into ...
3940 (nto_process_target::detach): ... this.
3941 * nto-low.h (class nto_process_target): Update.
3942 * win32-low.cc (win32_target_ops): Update.
3943 (win32_detach): Turn into ...
3944 (win32_process_target::detach): ... this.
3945 * win32-low.h (class win32_process_target): Update.
3947 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3949 Turn process_stratum_target's kill op into a method of
3952 * target.h (struct process_stratum_target): Remove the target op.
3953 (class process_target): Add the target op.
3955 Update the derived classes and callers below.
3957 * target.cc (kill_inferior): Update.
3958 * linux-low.cc (linux_target_ops): Update.
3959 (linux_kill): Turn into ...
3960 (linux_process_target::kill): ... this.
3961 * linux-low.h (class linux_process_target): Update.
3962 * lynx-low.cc (lynx_target_ops): Update.
3963 (lynx_kill): Turn into ...
3964 (lynx_process_target::kill): ... this.
3965 * lynx-low.h (class lynx_process_target): Update.
3966 * nto-low.cc (nto_target_ops): Update.
3967 (nto_kill): Turn into ...
3968 (nto_process_target::kill): ... this.
3969 * nto-low.h (class nto_process_target): Update.
3970 * win32-low.cc (win32_target_ops): Update.
3971 (win32_kill): Turn into ...
3972 (win32_process_target::kill): ... this.
3973 * win32-low.h (class win32_process_target): Update.
3975 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3977 Turn process_stratum_target's attach op into a method of
3980 * target.h (struct process_stratum_target): Remove the target op.
3981 (class process_target): Add the target op.
3982 (myattach): Update the macro.
3984 Update the derived classes and callers below.
3986 * linux-low.cc (linux_target_ops): Update.
3987 (linux_attach): Turn into ...
3988 (linux_process_target::attach): ... this.
3989 * linux-low.h (class linux_process_target): Update.
3990 * lynx-low.cc (lynx_target_ops): Update.
3991 (lynx_attach): Turn into ...
3992 (lynx_process_target::attach): ... this.
3993 * lynx-low.h (class lynx_process_target): Update.
3994 * nto-low.cc (nto_target_ops): Update.
3995 (nto_attach): Turn into ...
3996 (nto_process_target::attach): ... this.
3997 * nto-low.h (class nto_process_target): Update.
3998 * win32-low.cc (win32_target_ops): Update.
3999 (win32_attach): Turn into ...
4000 (win32_process_target::attach): ... this.
4001 * win32-low.h (class win32_process_target): Update.
4003 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4005 Turn process_stratum_target's post_create_inferior op into a method
4008 * target.h (struct process_stratum_target): Remove the target op.
4009 (class process_target): Add the target op.
4010 (target_post_create_inferior): Update the macro.
4011 * target.cc (process_target::post_create_inferior): Define.
4013 Update the derived classes and callers below.
4015 * linux-low.cc (linux_target_ops): Update.
4016 (linux_post_create_inferior): Turn into ...
4017 (linux_process_target::post_create_inferior): ... this.
4018 * linux-low.h (class linux_process_target): Update.
4019 * lynx-low.cc (lynx_target_ops): Update.
4020 * nto-low.cc (nto_target_ops): Update.
4021 * win32-low.cc (win32_target_ops): Update.
4023 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4025 Turn process_stratum_target's create_inferior op into a method of
4028 * target.h (struct process_stratum_target): Remove the target op.
4029 (class process_target): Add the target op.
4030 (create_inferior): Rename the macro to ...
4031 (target_create_inferior): ... this.
4033 Update the derived classes and callers below.
4035 * server.cc (handle_v_run): Update.
4036 (captured_main): Update.
4037 (process_serial_event): Update.
4038 * linux-low.cc (linux_target_ops): Update.
4039 (linux_create_inferior): Turn into ...
4040 (linux_process_target::create_inferior): ... this.
4041 * linux-low.h (class linux_process_target): Update.
4042 * lynx-low.cc (lynx_target_ops): Update.
4043 (lynx_create_inferior): Turn into ...
4044 (lynx_process_target::create_inferior): ... this.
4045 * lynx-low.h (class lynx_process_target): Update.
4046 * nto-low.cc (nto_target_ops): Update.
4047 (nto_create_inferior): Turn into ...
4048 (nto_process_target::create_inferior): ... this.
4049 * nto-low.h (class nto_process_target): Update.
4050 * win32-low.cc (win32_target_ops): Update.
4051 (win32_create_inferior): Turn into ...
4052 (win32_process_target::create_inferior): ... this.
4053 * win32-low.h (class win32_process_target): Update.
4055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4057 * target.h (class process_target): New class definition.
4058 (struct process_stratum_target) <pt>: New field with type
4060 * linux-low.h (class linux_process_target): Define as a derived
4061 class of 'process_target'.
4062 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4064 * lynx-low.h (class lynx_process_target): Define as a derived
4065 class of 'process_target'.
4066 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4068 * nto-low.h (class nto_process_target): Define as a derived
4069 class of 'process_target'.
4070 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4072 * win32-low.h (class win32_process_target): Define as a derived
4073 class of 'process_target'.
4074 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4077 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4079 * configure: Regenerate.
4081 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4082 Andrew Burgess <andrew.burgess@embecosm.com>
4084 * linux-riscv-low.cc: New file.
4085 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4086 and nat/riscv-linux-tdesc.c.
4087 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4088 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4091 2020-02-14 Tom Tromey <tom@tromey.com>
4093 * acinclude.m4: Don't include acx_configure_dir.m4.
4094 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4095 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4096 (all, install-only, uninstall, clean-info, clean)
4097 (maintainer-clean): Don't recurse.
4098 (subdir_do, all-lib): Remove.
4099 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4101 (generated_files): Update.
4102 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4103 * configure: Rebuild.
4104 * configure.ac: Don't configure gnulib or libiberty.
4107 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4109 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4110 preparing the command line for CreateProcess.
4111 (win32_create_inferior): Reflect the program name in debugging
4112 output that shows the process and its command line.
4114 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4116 * Makefile.in: Rename source files from .c to .cc.
4117 * %.c: Rename to %.cc.
4118 * configure.ac: Rename server.c to server.cc.
4119 * configure: Re-generate.
4121 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4123 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4125 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4127 * win32-low.c (win32_create_inferior): Set signal_pid.
4129 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4130 Pedro Alves <palves@redhat.com>
4132 Skip building gdbserver in a cross-configuration.
4133 * configure.srv: Set $gdbserver_host depending on whether $target
4134 is $host. Use $gdbserver_host instead of $host.
4136 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4138 * configure: Re-generate.
4140 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4142 * configure: Re-generate.
4144 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4146 * acinclude.m4: Update warning.m4 path.
4148 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4150 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4151 (handle_exception): Set siginfo_er.
4152 (win32_xfer_siginfo): New function.
4154 2020-02-07 Tom Tromey <tom@tromey.com>
4155 Pedro Alves <palves@redhat.com>
4157 * README: Update build documentation.
4158 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4160 * configure.ac: Update paths.
4161 * configure: Rebuild.
4162 * acinclude.m4: Update paths.
4163 * Makefile.in: Update include paths.
4164 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4165 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4166 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4167 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4168 (%-generated.c): Update paths.
4169 * Move entire directory from ../gdb/gdbserver.
4171 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4173 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4175 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4177 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4178 assignment instead of srv_linux_obj.
4180 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4182 * server.c (handle_qxfer_libraries): Write segment-address with
4185 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4187 * Makefile.in (install-strip): New target.
4188 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4189 * aclocal.m4: Regenerate.
4190 * configure: Regenerate.
4191 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4193 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4195 * Makefile.in (SFILES): Adjust paths to point to real files.
4196 (OBS): Move waitstatus.o to target/waitstatus.o.
4197 (TAGS): Transform paths appropriately.
4199 (nat/%.o): ... this pattern rule.
4201 (target/%.o): ... this pattern rule.
4202 * configure.srv: Adjust paths throughout to include nat/ prefix
4203 with the revant files.
4204 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4205 * configure: Regenerate.
4207 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4209 * Makefile.in (TAGS): Remove config files from the recipe.
4211 2020-01-14 Tom Tromey <tom@tromey.com>
4213 * configure: Rebuild.
4214 * configure.ac: Remove any checks that were added to common.m4.
4215 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4218 2020-01-14 Tom Tromey <tom@tromey.com>
4220 * server.h: Include config.h.
4221 * gdbreplay.c: Include config.h.
4222 * configure: Rebuild.
4223 * configure.ac: Don't source common.host.
4224 * acinclude.m4: Update path.
4225 * Makefile.in (INCSUPPORT): New variable.
4226 (INCLUDE_CFLAGS): Add INCSUPPORT.
4227 (SFILES): Update paths.
4228 (version-generated.c): Update path to create-version.sh.
4229 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4231 2020-01-14 Tom Tromey <tom@tromey.com>
4233 * configure.ac (LIBS): Use WIN32APILIBS.
4234 (USE_WIN32API): Don't define.
4235 * configure: Rebuild.
4237 2020-01-14 Tom Tromey <tom@tromey.com>
4239 * configure: Rebuild.
4241 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4243 * Makefile.in (%-generated.c): Remove rule for files from
4246 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4248 * configure: Re-generate.
4250 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4252 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4254 * tracepoint.c (stop_tracing, flush_trace_buffer,
4255 about_to_request_buffer_space, get_trace_state_variable_value,
4256 set_trace_state_variable_value, gdb_collect): Add declaration.
4258 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4260 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4261 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4262 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4263 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4264 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4267 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4269 * inferiors.c: Include gdbsupport/common-inferior.h.
4271 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4273 * hostio-errno.c: Include hostio.h.
4275 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4277 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4280 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4282 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4283 * linux-arm-tdesc.h: Include arch/arm.h.
4285 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4287 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4289 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4291 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4292 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4294 2020-01-10 Pedro Alves <palves@redhat.com>
4296 * fork-child.c (post_fork_inferior): Pass target down to
4298 * inferiors.c (switch_to_thread): Add process_stratum_target
4300 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4301 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4302 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4303 * remote-utils.c (prepare_resume_reply): Pass the target to
4305 * target.c (the_target): Now a process_stratum_target.
4306 (done_accessing_memory): Pass the target to switch_to_thread.
4307 (set_target_ops): Ajust to use process_stratum_target.
4308 * target.h (struct target_ops): Rename to ...
4309 (struct process_stratum_target): ... this.
4310 (the_target, set_target_ops): Adjust.
4311 (prepare_to_access_memory): Adjust comment.
4312 * win32-low.c (child_xfer_memory): Adjust to use
4313 process_stratum_target.
4314 (win32_target_ops): Now a process_stratum_target.
4316 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4317 Pedro Alves <palves@redhat.com>
4319 * win32-low.c (get_child_debug_event): Extract the fatal exception
4320 from the exit status and convert to the equivalent Posix signal
4322 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4323 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4325 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4327 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4329 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4331 * server.c (gdbserver_version): Change copyright year to 2020.
4332 * gdbreplay.c (gdbreplay_version): Likewise.
4334 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4336 * configure: Regenerate.
4337 * configure.ac: Quote variable arguments of test.
4339 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4341 * Makefile.in: Fix build with GNU Make 3.81
4343 2019-12-16 Tom Tromey <tromey@adacore.com>
4345 * server.c (get_exec_file): Constify result.
4347 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4349 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4350 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4351 * config.in: Regenerate.
4352 * configure: Regenerate.
4353 * configure.ac: Don't check for strerror.
4354 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4355 Call safe_strerror instead of strerror.
4356 * server.h (strerror): Remove this now-unnecessary declaration.
4357 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4359 (gdb_agent_helper_thread): Likewise.
4360 * utils.c (perror_with_name): Likewise.
4362 2019-11-26 Tom Tromey <tom@tromey.com>
4364 * configure, config.in: Rebuild.
4366 2019-11-26 Tom Tromey <tom@tromey.com>
4368 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4369 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4371 * configure, config.in: Rebuild.
4373 2019-11-26 Tom Tromey <tom@tromey.com>
4375 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4376 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4377 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4378 * acinclude.m4: Include ax_pthread.m4.
4379 * config.in, configure: Rebuild.
4381 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4383 * debug.c (debug_set_output): Call safe_strerror instead of
4385 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4386 (linux_kill_one_lwp): Likewise.
4387 (linux_detach_one_lwp): Likewise.
4388 (linux_wait_for_event_filtered): Likewise.
4389 (store_register): Likewise.
4390 * lynx-low.c (lynx_attach): Likewise.
4391 * mem-break.c (insert_memory_breakpoint): Likewise.
4392 (remove_memory_breakpoint): Likewise.
4393 (delete_fast_tracepoint_jump): Likewise.
4394 (set_fast_tracepoint_jump): Likewise.
4395 (uninsert_fast_tracepoint_jumps_at): Likewise.
4396 (reinsert_fast_tracepoint_jumps_at): Likewise.
4397 * nto-low.c (nto_xfer_memory): Likewise.
4398 (nto_resume): Likewise.
4400 2019-11-20 Luis Machado <luis.machado@linaro.org>
4402 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4403 instead of register count.
4404 * tdesc.c (tdesc_contains_feature): New function.
4405 * tdesc.h (tdesc_contains_feature): New prototype.
4407 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4409 * Makefile.in: Add safe-strerror.c.
4410 * configure: Regenerate.
4411 * configure.ac: Don't source common.host.
4413 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4415 * config.in: Regenerate.
4416 * configure: Regenerate.
4418 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4420 * ax.c (ax_printf): Handle size_t_arg.
4422 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4424 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4425 * mi/mi-main.c (output_cores): Likewise.
4426 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4427 (linux_xfer_osdata_modules): Likewise.
4428 * remote.c (register_remote_support_xml): Likewise.
4429 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4430 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4432 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4434 * configure: Regenerate.
4435 * configure.ac: Remove check for strerror_r.
4437 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4439 * config.in: Regenerate.
4440 * configure: Regenerate.
4441 * configure.ac: Also check for strerror_r.
4443 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4445 * ax.h (debug_agent): Remove duplicate declaration.
4447 2019-10-26 Tom de Vries <tdevries@suse.de>
4449 * linux-aarch64-low.c: Fix typos in comments.
4450 * linux-arm-low.c: Same.
4451 * linux-low.c: Same.
4452 * linux-ppc-low.c: Same.
4453 * proc-service.c: Same.
4456 * tracepoint.c: Same.
4457 * win32-low.c: Same.
4459 2019-10-25 Tom Tromey <tromey@adacore.com>
4461 * utils.c (xstrdup): Remove.
4463 2019-10-23 Tom Tromey <tom@tromey.com>
4465 * configure, config.in: Rebuild.
4467 2019-10-23 Tom Tromey <tom@tromey.com>
4469 * configure: Rebuild.
4470 * acinclude.m4: Use m4_include, not sinclude.
4472 2019-10-17 Tom Tromey <tromey@adacore.com>
4474 * configure: Rebuild.
4475 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4476 in AC_CONFIG_FILES invocation.
4477 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4480 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4482 * server.c: Include xml-builtin.h.
4483 (get_xml_features): Don't declare xml_builtins here.
4485 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4487 * Makefile.in: Remove references to vec-ipa.o.
4489 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4491 * Makefile.in: Remove references to vec.c.
4493 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4495 * server.c (server_waiting): Change to bool.
4496 (extended_protocol): Likewise.
4497 (response_needed): Likewise.
4498 (exit_requested): Likewise.
4499 (run_once): Likewise.
4500 (report_no_resumed): Likewise.
4501 (non_stop): Likewise.
4502 (disable_packet_vCont): Likewise.
4503 (disable_packet_Tthread): Likewise.
4504 (disable_packet_qC): Likewise.
4505 (disable_packet_qfThreadInfo): Likewise.
4506 (handle_general_set): Update.
4507 (handle_detach): Update.
4508 (handle_monitor_command): Update.
4509 (handle_query): Update.
4510 (captured_main): Update.
4511 (process_serial_event): Update.
4512 * server.h (server_waiting): Change to bool.
4513 (disable_packet_vCont): Likewise.
4514 (disable_packet_Tthread): Likewise.
4515 (disable_packet_qC): Likewise.
4516 (disable_packet_qfThreadInfo): Likewise.
4517 (run_once): Likewise.
4518 (non_stop): Likewise.
4519 * target.c (target_stop_and_wait): Update.
4521 2019-10-02 Tom Tromey <tromey@adacore.com>
4523 * Makefile.in (SFILES): Add common-inferior.c.
4524 (OBS): Add common-inferior.o.
4525 * server.c (startup_with_shell): Don't define.
4527 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4529 * linux-low.c (linux_low_read_btrace): Update for change to
4532 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4534 * debug.c (debug_threads): Remove comment in favor of the header.
4535 * debug.h (using_threads): Add declaration.
4536 (debug_threads): Add comment.
4537 * linux-aarch64-low.c: Include debug.h and remove declaration of
4539 * nto-low.c: Likewise.
4540 * remote-utils.c: Likewise.
4541 * thread-db.c: Likewise.
4543 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4545 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4546 and powerpc-cell64l-ipa.o.
4547 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4548 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4549 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4552 * spu-low.c: Remove file.
4554 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4555 (parse_spufs_run): Remove.
4556 (ppc_get_pc): Remove Cell/B.E. support.
4557 (ppc_set_pc): Likewise.
4558 (ppc_breakpoint_at): Likewise.
4559 (ppc_arch_setup): Likewise.
4560 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4561 tdesc_powerpc_cell32l.
4562 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4563 or init_registers_powerpc_cell32l.
4564 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4565 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4566 or init_registers_powerpc_cell32l.
4567 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4568 (init_registers_powerpc_cell32l): Remove prototype.
4569 (init_registers_powerpc_cell64l): Likewise.
4571 * target.h (struct target_ops): Remove qxfer_spu member.
4572 * server.c (handle_qxfer_spu): Remove.
4573 (qxfer_packets): Remove entry for "spu".
4574 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4575 * linux-low.c (SPUFS_MAGIC): Remove.
4576 (spu_enumerate_spu_ids): Remove.
4577 (linux_qxfer_spu): Remove.
4578 (linux_target_ops): Remove qxfer_spu member.
4579 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4580 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4581 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4583 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4585 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4586 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4587 * config.in: Regenerate.
4588 * configure: Regenerate.
4590 2019-08-15 Tom Tromey <tromey@adacore.com>
4592 * target.c (target_write_memory): Use gdb::byte_vector.
4594 2019-08-15 Tom Tromey <tromey@adacore.com>
4596 * tracepoint.c (write_inferior_data_pointer)
4597 (write_inferior_integer, write_inferior_int8)
4598 (write_inferior_uinteger, m_tracepoint_action_download)
4599 (r_tracepoint_action_download, x_tracepoint_action_download)
4600 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4601 (download_agent_expr, download_tracepoint_1)
4602 (download_trace_state_variables, upload_fast_traceframes): Update.
4603 * server.c (gdb_write_memory): Update.
4604 * remote-utils.c (relocate_instruction): Update.
4605 * proc-service.c (ps_pdwrite): Update.
4606 * mem-break.c (remove_memory_breakpoint)
4607 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4608 (uninsert_fast_tracepoint_jumps_at)
4609 (reinsert_fast_tracepoint_jumps_at): Update.
4610 * linux-x86-low.c (append_insns)
4611 (i386_install_fast_tracepoint_jump_pad)
4612 (amd64_write_goto_address, i386_write_goto_address): Update.
4613 * linux-s390-low.c (append_insns, s390_write_goto_address):
4615 * linux-ppc-low.c (ppc_relocate_instruction)
4616 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4617 (ppc_write_goto_address): Update.
4618 * linux-aarch64-low.c (append_insns): Update.
4619 * target.h (struct target_ops): Update.
4620 (write_inferior_memory): Don't declare.
4621 * target.c (target_write_memory): Rename from
4622 write_inferior_memory. Remove old target_write_memory.
4624 2019-08-15 Tom Tromey <tromey@adacore.com>
4626 * target.c (write_inferior_memory): Use std::vector.
4628 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4631 * configure.ac: Drop enable-libmcheck support.
4632 * configure, config.in: Rebuild.
4633 * acinclude.m4: Don't include it.
4635 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4637 * configure.srv: Remove Arm xml files.
4639 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4641 * configure.srv: Add new files. Remove xml generated files.
4642 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4644 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4645 * linux-aarch32-tdesc.c: New file.
4646 * linux-aarch32-tdesc.h: New file.
4647 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4648 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4649 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4650 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4651 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4652 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4653 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4654 (arm_read_description): Call arm_linux_read_description.
4655 (initialize_low_arch): Don't init registers.
4656 * linux-arm-tdesc.c: New file.
4657 * linux-arm-tdesc.h: New file.
4659 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4661 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4662 Move counter inside for.
4663 (arm_read_description): Check ptrace earlier.
4664 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4666 2019-07-09 Tom Tromey <tom@tromey.com>
4668 * configure: Rebuild.
4669 * configure.ac: Change common to gdbsupport.
4670 * acinclude.m4: Change common to gdbsupport.
4671 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4672 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4673 common to gdbsupport.
4674 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4675 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4676 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4677 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4678 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4679 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4680 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4681 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4682 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4683 common to gdbsupport.
4685 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4687 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4689 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4691 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4693 * configure.srv: Remove legacy xml.
4694 * linux-aarch64-low.c (initialize_low_arch): Remove
4695 initialize_low_tdesc call.
4696 * linux-aarch64-tdesc-selftest.c: Remove file.
4697 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4698 * linux-x86-low.c (initialize_low_arch): Remove
4699 initialize_low_tdesc call.
4700 * linux-x86-tdesc-selftest.c: Remove file.
4701 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4703 2019-06-20 Tom de Vries <tdevries@suse.de>
4705 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4706 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4708 2019-06-19 Tom de Vries <tdevries@suse.de>
4710 * debug.h (debug_write): Change return type to ssize_t.
4711 * debug.c (debug_write): Same.
4713 2019-06-14 Tom Tromey <tom@tromey.com>
4715 * configure.ac: Use new path to gnulib.
4716 * configure: Rebuild.
4717 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4720 2019-06-11 Tom Tromey <tom@tromey.com>
4722 * Makefile.in (SFILES): Add alloc.c.
4724 (IPA_OBJS): Add alloc-ipa.o.
4725 (alloc-ipa.o): New target.
4726 (%.o: ../%.c): New pattern rule.
4728 2019-06-10 Tom Tromey <tromey@adacore.com>
4730 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4731 end warning with a newline.
4732 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4734 * thread-db.c (attach_thread): Don't end warning with a newline.
4735 (thread_db_notice_clone): Likewise.
4736 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4738 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4739 end warning with a newline.
4741 2019-06-04 Pedro Alves <palves@redhat.com>
4743 * server.c (captured_main): Use make_unique_xstrdup.
4745 2019-06-02 Tom Tromey <tom@tromey.com>
4747 * gdbreplay.c (fromhex): Remove.
4748 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4750 2019-05-29 Tom Tromey <tromey@adacore.com>
4752 * configure: Rebuild.
4754 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4756 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4757 sign extension code on 32-bit builds.
4759 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4762 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4764 2019-04-19 Tom Tromey <tom@tromey.com>
4766 * server.c (struct vstop_notif): Derive from notif_event.
4768 (queue_stop_reply): Update.
4769 (remove_all_on_match_ptid): Change type. Rewrite.
4770 (discard_queued_stop_replies): Rewrite.
4771 (in_queued_stop_replies_ptid): Change type.
4772 (in_queued_stop_replies): Rewrite.
4773 (notif_stop): Update.
4774 (queue_stop_reply_callback): Update.
4775 (captured_main): Don't call initialize_notif.
4776 (push_stop_notification): Update.
4777 * notif.c (notif_write_event, handle_notif_ack)
4778 (notif_event_enque, notif_push): Update.
4779 (notif_event_xfree, initialize_notif): Remove.
4780 * notif.h (struct notif_event): Include <list>, not
4782 (struct notif_server) <queue>: Now a std::list.
4783 (notif_event_p): Remove typedef.
4784 (initialize_notif): Don't declare.
4785 (struct notif_event): Add virtual destructor.
4787 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4789 * ax.c (ax_vdebug): Call debug_printf.
4790 * debug.c (debug_write): New function.
4791 * debug.h (debug_write): New declaration.
4792 * linux-low.c (sigchld_handler): Call debug_write.
4794 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4796 * debug.c (debug_set_output): New function.
4797 (debug_vprintf): Send output to debug_file.
4798 (debug_flush): Likewise.
4799 * debug.h (debug_set_output): New declaration.
4800 * server.c (handle_monitor_command): Add debug-file option.
4801 (captured_main): Likewise.
4803 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4805 * debug.c (remote_debug): Add definition.
4806 * debug.h (remote_debug): Add declaration.
4807 * hostio.c (remote_debug): Remove declaration.
4808 * remote-utils.c (struct ui_file): Likewise.
4809 (remote_debug): Likewise.
4810 * remote-utils.h (remote_debug): Likewise,
4811 * server.c (remote_debug): Remove definition.
4813 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4815 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4816 when using a 64-bit gdbserver.
4818 2019-04-09 Tom Tromey <tromey@adacore.com>
4820 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4822 2019-04-08 Tom Tromey <tom@tromey.com>
4824 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4826 (linux_resume_one_lwp): Likewise.
4828 2019-04-08 Tom Tromey <tom@tromey.com>
4830 * gdbreplay.c: Update.
4831 * linux-low.c: Update.
4834 2019-04-08 Tom Tromey <tom@tromey.com>
4836 * server.c: Use C++ exception handling.
4837 * linux-low.c: Use C++ exception handling.
4838 * gdbreplay.c: Use C++ exception handling.
4840 2019-04-08 Tom Tromey <tom@tromey.com>
4842 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4843 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4844 (captured_main, main): Update.
4845 * gdbreplay.c (main): Update.
4847 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4849 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4850 value in argument pointer, return 1 if the entry is found and 0
4851 otherwise. Move comment.
4852 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4853 * linux-low.h (linux_get_auxv): Declare.
4854 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4856 2019-04-05 Tom Tromey <tromey@adacore.com>
4858 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4861 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4863 * linux-low.c (AT_HWCAP2): Add define if not already included.
4865 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4867 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4868 (aarch64_arch_setup): Call linux_get_hwcap.
4869 * linux-arm-low.c (arm_get_hwcap): Remove function.
4870 (arm_read_description): Call linux_get_hwcap.
4871 * linux-low.c (linux_get_auxv): New function.
4872 (linux_get_hwcap): Likewise.
4873 (linux_get_hwcap2): Likewise.
4874 * linux-low.h (linux_get_hwcap): New declaration.
4875 (linux_get_hwcap2): Likewise.
4876 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4877 (ppc_arch_setup): Call linux_get_hwcap.
4878 * linux-s390-low.c (s390_get_hwcap): Remove function.
4879 (s390_arch_setup): Call linux_get_hwcap.
4881 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4882 Jiong Wang <jiong.wang@arm.com>
4884 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4885 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4887 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4889 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4890 Jiong Wang <jiong.wang@arm.com>
4892 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4893 (aarch64_get_hwcap): New function.
4894 (aarch64_arch_setup): Read APIA hwcap.
4896 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4897 Jiong Wang <jiong.wang@arm.com>
4899 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4900 (initialize_low_tracepoint): Likewise.
4901 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4902 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4903 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4904 (aarch64_linux_read_description): Likewise.
4905 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4907 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4909 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4910 i386_create_target_description for 'segments' parameter.
4911 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4912 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4913 * win32-i386-low.c (i386_arch_setup): Likewise.
4915 2019-03-12 Tom Tromey <tromey@adacore.com>
4917 * linux-low.c (iterate_over_lwps): Update.
4919 2019-03-06 Tom Tromey <tom@tromey.com>
4921 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4922 (captured_main): Use SCOPE_EXIT.
4924 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4926 * configure.srv: Use '$enable_unittest' instead of '$development'
4927 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4930 2019-02-27 Tom Tromey <tromey@adacore.com>
4932 * gdbreplay.c (logchar): Handle \r\n.
4934 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4936 * linux-low.c (linux_attach): Add process before lwp.
4937 * server.c (attach_inferior): Check if already attached.
4939 2019-02-07 Tom Tromey <tom@tromey.com>
4941 * x86-tdesc.h: Rename include guard.
4942 * x86-low.h: Add include guard.
4943 * wincecompat.h: Rename include guard.
4944 * win32-low.h: Add include guard.
4945 * utils.h: Rename include guard.
4946 * tracepoint.h: Rename include guard.
4947 * tdesc.h: Rename include guard.
4948 * target.h: Rename include guard.
4949 * server.h: Rename include guard.
4950 * remote-utils.h: Rename include guard.
4951 * regcache.h: Rename include guard.
4952 * nto-low.h: Rename include guard.
4953 * notif.h: Add include guard.
4954 * mem-break.h: Rename include guard.
4955 * lynx-low.h: Add include guard.
4956 * linux-x86-tdesc.h: Add include guard.
4957 * linux-s390-tdesc.h: Add include guard.
4958 * linux-ppc-tdesc-init.h: Add include guard.
4959 * linux-low.h: Add include guard.
4960 * linux-aarch64-tdesc.h: Add include guard.
4961 * linux-aarch32-low.h: Add include guard.
4962 * inferiors.h: Rename include guard.
4963 * i387-fp.h: Rename include guard.
4964 * hostio.h: Rename include guard.
4965 * gdbthread.h: Rename include guard.
4966 * gdb_proc_service.h: Rename include guard.
4967 * event-loop.h: Rename include guard.
4968 * dll.h: Rename include guard.
4969 * debug.h: Rename include guard.
4970 * ax.h: Rename include guard.
4972 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4975 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4976 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4978 2019-01-25 Tom Tromey <tom@tromey.com>
4980 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4982 2019-01-25 Tom Tromey <tom@tromey.com>
4984 * win32-low.c: Fix common/ includes.
4985 * win32-i386-low.c: Fix common/ includes.
4986 * tracepoint.c: Fix common/ includes.
4987 * thread-db.c: Fix common/ includes.
4988 * target.h: Fix common/ includes.
4989 * symbol.c: Fix common/ includes.
4990 * spu-low.c: Fix common/ includes.
4991 * server.h: Fix common/ includes.
4992 * server.c: Fix common/ includes.
4993 * remote-utils.c: Fix common/ includes.
4994 * regcache.h: Fix common/ includes.
4995 * regcache.c: Fix common/ includes.
4996 * nto-x86-low.c: Fix common/ includes.
4997 * notif.h: Fix common/ includes.
4998 * mem-break.h: Fix common/ includes.
4999 * lynx-low.c: Fix common/ includes.
5000 * lynx-i386-low.c: Fix common/ includes.
5001 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5002 * linux-x86-low.c: Fix common/ includes.
5003 * linux-low.c: Fix common/ includes.
5004 * inferiors.h: Fix common/ includes.
5005 * i387-fp.c: Fix common/ includes.
5006 * hostio.c: Fix common/ includes.
5007 * hostio-errno.c: Fix common/ includes.
5008 * gdbthread.h: Fix common/ includes.
5009 * gdbreplay.c: Fix common/ includes.
5010 * fork-child.c: Fix common/ includes.
5011 * event-loop.c: Fix common/ includes.
5013 (enum gdb_agent_op): Fix common/ includes.
5015 2019-01-21 Tom Tromey <tom@tromey.com>
5017 * tracepoint.c: Fix includes.
5018 * remote-utils.c: Fix includes.
5019 * linux-x86-low.c: Fix includes.
5021 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5023 * gdbreplay.c (gdbreplay_version): Update copyright year in
5025 * server.c (gdbserver_version): Likewise.
5027 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5029 * linux-low.c (add_lwp): Switch ordering.
5031 2018-11-29 Tom Tromey <tom@tromey.com>
5033 * win32-low.c (win32_join): Take pid, not process.
5034 * target.h (struct target_ops) <join>: Change argument type.
5035 (join_inferior): Change argument name.
5036 * spu-low.c (spu_join): Take pid, not process.
5037 * server.c (handle_detach): Preserve pid before destroying
5039 * lynx-low.c (lynx_join): Take pid, not process.
5040 * linux-low.c (linux_join): Take pid, not process.
5042 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5044 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5045 (aarch64_cannot_fetch_register): Likewise.
5046 (struct linux_target_ops): Update references.
5048 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5050 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5052 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5054 * configure.srv (ipa_ppc_linux_regobj): Add
5055 powerpc-isa207-htm-vsx32l-ipa.o and
5056 powerpc-isa207-htm-vsx64l-ipa.o.
5057 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5058 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5059 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5060 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5061 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5062 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5063 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5064 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5065 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5066 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5067 (init_registers_powerpc_isa207_htm_vsx32l)
5068 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5069 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5070 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5071 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5072 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5073 (ppc_store_tm_ctarregset): New functions.
5074 (ppc_regsets): Add entries for HTM regsets.
5075 (ppc_arch_setup): Set htm in features struct when needed. Set
5076 sizes for the HTM regsets.
5077 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5078 (initialize_low_arch): Call
5079 init_registers_powerpc_isa207_htm_vsx32l and
5080 init_registers_powerpc_isa207_htm_vsx64l.
5081 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5082 PPC_TDESC_ISA207_HTM_VSX.
5083 (initialize_low_tracepoint): Call
5084 init_registers_powerpc_isa207_htm_vsx32l and
5085 init_registers_powerpc_isa207_htm_vsx64l.
5087 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5089 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5090 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5091 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5092 (ppc_store_pmuregset): New functions.
5093 (ppc_regsets): Add entries for ebb and pmu regsets.
5094 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5095 pmu regsets are available. Set sizes for these regsets.
5097 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5099 * configure.srv (ipa_ppc_linux_regobj): Add
5100 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5101 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5102 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5103 rs6000/powerpc-isa207-vsx32l.xml, and
5104 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5105 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5106 <PPC_TDESC_ISA207_VSX>: New enum value.
5107 (init_registers_powerpc_isa207_vsx32l): Declare.
5108 (init_registers_powerpc_isa207_vsx64l): Declare.
5109 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5110 (ppc_store_tarregset): New function.
5111 (ppc_regsets): Add entry for the TAR regset.
5112 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5113 size for the TAR regsets.
5114 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5115 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5116 and init_registers_powerpc_isa207_vsx64l.
5117 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5118 (initialize_low_tracepoint): Call
5119 init_registers_powerpc_isa207_vsx32l and
5120 init_registers_powerpc_isa207_vsx64l.
5122 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5123 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5125 * configure.srv (ipa_ppc_linux_regobj): Add
5126 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5127 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5128 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5129 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5130 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5131 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5132 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5133 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5134 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5135 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5136 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5137 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5138 (ppc_hwcap): Add comment.
5139 (ppc_hwcap2): New global.
5140 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5141 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5142 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5143 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5144 when needed. Set sizes for the the DSCR and PPR regsets.
5145 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5146 (initialize_low_arch): Call
5147 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5148 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5149 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5150 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5151 (initialize_low_tracepoint): Call
5152 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5153 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5155 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5157 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5159 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5160 Simon Marchi <simark@simark.ca>
5162 * acinclude.m4: Include "../selftest.m4".
5163 * configure: Regenerate.
5164 * configure.ac: Use "GDB_AC_SELFTEST".
5165 * configure.srv: Use "$enable_unittests" instead of
5166 "$development" when checking whether unit tests have been
5168 * server.c (captured_main): Update message informing that
5169 selftests have been disabled.
5171 2018-10-04 Tom Tromey <tom@tromey.com>
5173 * configure: Rebuild.
5175 2018-10-04 Tom Tromey <tom@tromey.com>
5177 * server.c (handle_status): Rename inner "thread".
5178 (process_serial_event): Declare "res" in 'm' case.
5179 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5180 (iterate_over_lwps): Rename inner "thread".
5181 (linux_qxfer_libraries_svr4): Rename inner "len".
5182 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5184 2018-10-01 Gary Benson <gbenson@redhat.com>
5186 * gdb_proc_service.h: Moved common code to
5187 common/gdb_proc_service.h.
5189 2018-10-01 Gary Benson <gbenson@redhat.com>
5191 * gdb_proc_service.h: Synchronize comments and whitespace with
5192 GDB's version of this file.
5194 2018-09-25 Tom Tromey <tom@tromey.com>
5196 * configure: Rebuild.
5197 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5199 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5201 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5202 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5203 ($(IPA_LIB)): Sort IPA_OBJS.
5205 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5207 * Makefile.in: Remove references to $(ADD_DEPS).
5209 2018-09-16 Tom Tromey <tom@tromey.com>
5211 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5213 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5216 2018-09-05 Tom Tromey <tom@tromey.com>
5218 * configure: Rebuild.
5220 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5223 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5225 2018-08-27 Tom Tromey <tom@tromey.com>
5228 * configure: Rebuild.
5230 2018-08-27 Tom Tromey <tom@tromey.com>
5232 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5233 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5234 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5235 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5236 (s390x_emit_stack_adjust): Add casts to unsigned char.
5238 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5242 * server.h (struct client_state) <disable_randomization>:
5245 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5247 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5249 (mips_supply_ptrace_register): Likewise.
5251 2018-07-22 Tom Tromey <tom@tromey.com>
5253 * configure: Rebuild.
5255 2018-07-22 Tom Tromey <tom@tromey.com>
5257 * win32-low.c (win32_create_inferior): Remove unused variables.
5258 * gdbreplay.c (remote_open): Remove unused variable.
5259 * remote-utils.c (remote_prepare): Remove unused variable.
5260 * x86-tdesc.h (X86_TDESC_H): Define.
5261 (amd64_expedite_regs): Define conditionally.
5262 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5263 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5264 * remote-utils.c (readchar): Remove unused variable.
5266 2018-07-13 Pedro Alves <palves@redhat.com>
5268 * linux-low.c (linux_kill): Change parameter to process_info
5269 pointer instead of pid. Adjust.
5270 * lynx-low.c (lynx_kill): Likewise.
5271 * nto-low.c (nto_kill): Likewise.
5272 * spu-low.c (spu_kill): Likewise.
5273 * win32-low.c (win32_kill): Likewise.
5274 * server.c (handle_v_kill, kill_inferior_callback)
5275 (detach_or_kill_for_exit): Adjust.
5276 * target.c (kill_inferior): Change parameter to process_info
5277 pointer instead of pid. Adjust.
5278 * target.h (struct target_ops) <kill>: Change parameter to
5279 process_info pointer instead of pid. Adjust all implementations
5281 (kill_inferior): Likewise.
5283 2018-07-13 Pedro Alves <palves@redhat.com>
5285 * linux-low.c (linux_detach, linux_join): Change parameter to
5286 process_info pointer instead of pid. Adjust.
5287 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5288 * nto-low.c (nto_detach): Likewise.
5289 * spu-low.c (spu_detach, spu_join): Likewise.
5290 * win32-low.c (win32_detach, win32_join): Likewise.
5291 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5292 * target.h (struct target_ops) <detach, join>: Change parameter to
5293 process_info pointer instead of pid. Adjust all implementations
5295 (detach_inferior, join_inferior): Rename 'pid' parameter to
5298 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5299 Jan Kratochvil <jan.kratochvil@redhat.com>
5300 Paul Fertser <fercerpav@gmail.com>
5301 Tsutomu Seki <sekiriki@gmail.com>
5303 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5304 (OBS): Add 'common/netstuff.o'.
5305 (GDBREPLAY_OBS): Likewise.
5306 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5307 (remote_open): Implement support for IPv6
5309 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5311 (handle_accept_event): Accept connections from IPv6 sources.
5312 (remote_prepare): Handle IPv6-style hostnames; implement
5313 support for IPv6 connections.
5314 (remote_open): Implement support for printing connections from
5317 2018-07-11 Pedro Alves <palves@redhat.com>
5320 * mem-break.c (any_persistent_commands): Add process_info
5321 parameter and use it instead of relying on the current process.
5322 Change return type to bool.
5323 * mem-break.h (any_persistent_commands): Add process_info
5324 parameter and change return type to bool.
5325 * server.c (handle_detach): Remove require_running_or_return call.
5326 Look up the process_info for the process we're about to detach.
5327 If not found, return back error to GDB. Adjust
5328 any_persistent_commands call to pass down a process pointer.
5330 2018-07-11 Pedro Alves <palves@redhat.com>
5332 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5333 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5334 instead of collect_register_by_name.
5335 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5336 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5338 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5339 Pedro Alves <palves@redhat.com>
5341 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5343 2018-07-03 Tom Tromey <tom@tromey.com>
5345 * linux-low.c: Update.
5346 * lynx-low.c: Update.
5347 * mem-break.c: Update.
5348 * nto-low.c: Update.
5349 * remote-utils.c: Update.
5351 * spu-low.c: Update.
5353 * win32-low.c: Update.
5355 2018-07-03 Tom Tromey <tom@tromey.com>
5359 2018-07-03 Tom Tromey <tom@tromey.com>
5361 * linux-low.c: Update.
5363 2018-07-03 Tom Tromey <tom@tromey.com>
5367 2018-07-03 Tom Tromey <tom@tromey.com>
5369 * linux-low.c: Update.
5370 * linux-mips-low.c: Update.
5371 * lynx-low.c: Update.
5372 * nto-low.c: Update.
5373 * remote-utils.c: Update.
5375 * spu-low.c: Update.
5377 * thread-db.c: Update.
5379 2018-07-03 Tom Tromey <tom@tromey.com>
5381 * linux-low.c: Update.
5382 * linux-mips-low.c: Update.
5383 * lynx-low.c: Update.
5384 * mem-break.c: Update.
5385 * nto-low.c: Update.
5386 * remote-utils.c: Update.
5388 * spu-low.c: Update.
5390 * tracepoint.c: Update.
5392 2018-07-03 Tom Tromey <tom@tromey.com>
5394 * linux-low.c: Update.
5395 * linux-ppc-low.c: Update.
5396 * linux-x86-low.c: Update.
5397 * proc-service.c: Update.
5399 * spu-low.c: Update.
5400 * thread-db.c: Update.
5401 * win32-low.c: Update.
5403 2018-07-03 Tom Tromey <tom@tromey.com>
5405 * linux-low.c: Update.
5406 * lynx-low.c: Update.
5407 * nto-low.c: Update.
5408 * remote-utils.c: Update.
5409 * spu-low.c: Update.
5410 * thread-db.c: Update.
5411 * win32-low.c: Update.
5413 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5415 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5416 parameter in call to 'amd64_create_target_description'.
5418 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5420 * x86-tdesc.h: Remove executable permission flag.
5422 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5424 * configure.ac: Remove AC_PREREQ, add missing quoting.
5425 * configure: Re-generate.
5426 * config.in: Re-generate.
5427 * aclocal.m4: Re-generate.
5429 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5431 * tracepoint.h (current_traceframe): Remove declaration.
5433 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5435 * linux-aarch64-low.c (is_sve_tdesc): New function.
5436 (aarch64_sve_regs_copy_to_regcache): Likewise.
5437 (aarch64_sve_regs_copy_from_regcache): Likewise.
5438 (aarch64_regs_info): Add SVE checks.
5439 (initialize_low_arch): Initialize SVE.
5441 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5443 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5445 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5447 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5448 (initialize_low_tracepoint): Likewise
5449 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5450 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5452 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5454 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5456 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5458 * server.h (PBUFSIZ): Increase size
5460 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5462 * regcache.c (regcache::raw_compare): New function.
5463 * regcache.h (regcache::raw_compare): New declaration.
5465 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5467 * regcache.c (new_register_cache): Use new.
5468 (free_register_cache): Use delete.
5469 (register_data): Use const.
5470 (supply_register): Move body inside regcache.
5471 (regcache::raw_supply): New override function.
5472 (collect_register): Move body inside regcache.
5473 (regcache::raw_collect): New override function.
5474 (regcache::get_register_status): New override function.
5475 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5477 2018-06-09 Tom Tromey <tom@tromey.com>
5479 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5481 (event_queue): Use std::queue.
5482 (gdb_event_xfree): Remove.
5483 (initialize_event_loop, process_event, wait_for_event): Update.
5485 2018-06-08 Stan Cox <scox@redhat.com>
5487 * win32-low.c (win32_create_inferior): last_ptid and last_status
5488 moved to client_state.
5490 2018-06-08 Pedro Alves <palves@redhat.com>
5492 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5493 common/common-exceptions.o, common/common-utils.o,
5494 common/errors.o, common/print-utils.o and utils.o.
5495 * gdbreplay.c: Include "common-defs.h" instead of the two
5496 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5497 string.h or alloca.h.
5498 (perror_with_name): Delete.
5499 (remote_open): Use xstrdup instead of strdup.
5500 (main): Rename to ...
5501 (captured_main): ... this.
5504 2018-06-08 Tom Tromey <tom@tromey.com>
5506 * linux-low.c (linux_low_read_btrace): Update.
5508 2018-06-04 Stan Cox <scox@redhat.com>
5510 * server.h (struct client_state): New.
5511 * server.c (cont_thread, general_thread, multi_process)
5512 (report_fork_events, report_vfork_events, report_exec_events)
5513 (report_thread_events, swbreak_feature, hwbreak_feature)
5514 (vCont_supported, disable_randomization, pass_signals)
5515 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5516 Moved to client_state.
5517 * remote-utils.c (remote_debug, noack_mode)
5518 (transport_is_reliable): Moved to client_state.
5519 * tracepoint.c (current_traceframe): Moved to client_state.
5522 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5523 linux-low.c, remote-utils.h, target.c: Use client_state.
5525 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5527 * configure.srv: Add new c/h file.
5529 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5531 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5534 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5536 * gdb.arch/mips-fpregset-core.exp: New test.
5537 * gdb.arch/mips-fpregset-core.c: New test source.
5539 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5542 * hostio.c (require_int): Do not report overflow for integers
5543 between 0xfffffff and 0x7fffffff.
5545 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5547 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5548 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5549 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5551 (the_low_target): Wire them.
5553 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5555 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5556 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5557 mode. Call collect_register_by_name with vscr using
5558 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5559 (ppc_store_vrregset): Add and set vscr_offset variable as in
5560 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5563 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5565 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5566 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5567 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5569 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5571 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5572 (ppc_store_vsxregset): Likewise.
5573 (ppc_fill_vrregset): Likewise.
5574 (ppc_store_vrregset): Likewise.
5575 (ppc_fill_evrregset): Likewise.
5576 (ppc_store_evrregset): Likewise.
5577 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5578 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5581 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5583 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5584 wordsize of the inferior. Call ppc_linux_target_wordsize.
5586 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5588 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5589 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5590 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5591 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5592 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5593 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5594 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5595 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5596 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5597 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5598 (tdesc_powerpc_e500l): Remove.
5599 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5600 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5601 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5602 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5604 (ppc_arch_setup): Remove target description matching code. Fill a
5605 ppc_linux_features struct and call ppc_linux_match_description
5608 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5610 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5611 width of the requested register exceeds the width of the
5613 (mips_cannot_store_register): Likewise.
5615 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5617 * linux-mips-low.c (mips_fetch_register): New function. Update
5619 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5620 (the_low_target): Wire `mips_fetch_register'.
5622 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5624 * lynx-i386-low.c (LYNXOS_178): New macro.
5625 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5626 the layout on LynxOS-178.
5627 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5628 handle floating point registers that are not supported by
5631 2018-05-10 Tom Tromey <tom@tromey.com>
5633 * configure: Rebuild.
5635 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5638 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5639 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5640 Use it to set the expedite_regs field in the given tdesc.
5641 * x86-tdesc.h: New file.
5642 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5643 Adjust following the addition of the new expedite_regs parameter
5644 to init_target_desc.
5645 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5646 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5647 (i386_linux_read_description, amd64_linux_read_description):
5648 Adjust following the addition of the new expedite_regs parameter
5649 to init_target_desc.
5650 * lynx-i386-low.c: #include "x86-tdesc.h".
5651 (lynx_i386_arch_setup): Adjust following the addition of the new
5652 expedite_regs parameter to init_target_desc.
5653 * nto-x86-low.c: #include "x86-tdesc.h".
5654 (nto_x86_arch_setup): Adjust following the addition of the new
5655 expedite_regs parameter to init_target_desc.
5656 * win32-i386-low.c: #include "x86-tdesc.h".
5657 (i386_arch_setup): Adjust following the addition of the new
5658 expedite_regs parameter to init_target_desc.
5660 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5663 * win32-low.c (win32_create_inferior): Add call to my_wait
5664 setting last_status global.
5666 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5669 * win32-low.c (create_process): Only call gdb_tilde_expand if
5670 inferior_cwd is not NULL.
5672 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5674 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5675 registers to the cache if their values have changed.
5676 (i387_xsave_to_cache): Provide default values for x87 control
5677 registers when these features are available, but disabled.
5678 * regcache.c (supply_register_by_name_zeroed): New function.
5679 * regcache.h (supply_register_by_name_zeroed): Declare new
5682 2018-05-07 Tom Tromey <tom@tromey.com>
5684 * configure: Rebuild.
5686 2018-05-04 Tom Tromey <tom@tromey.com>
5688 * configure: Rebuild.
5690 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5691 Pedro Alves <palves@redhat.com>
5693 * linux-aarch64-low.c (aarch64_stopped_data_address):
5696 2018-04-27 Tom Tromey <tom@tromey.com>
5698 * configure: Rebuild.
5700 2018-04-23 Tom Tromey <tom@tromey.com>
5702 * configure: Rebuild.
5704 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5706 * Makefile.in (depcomp): Add "..".
5707 (all_deps_files): New and use it.
5709 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5711 * configure.srv (aarch64*-*-linux*): Don't include xml.
5712 (i[34567]86-*-cygwin*): Likewise.
5713 (i[34567]86-*-linux*): Likewise.
5714 (i[34567]86-*-lynxos*): Likewise.
5715 (i[34567]86-*-mingw32ce*): Likewise.
5716 (i[34567]86-*-mingw*): Likewise.
5717 (i[34567]86-*-nto*): Likewise.
5718 (tic6x-*-uclinux): Likewise.
5719 (x86_64-*-linux*): Likewise.
5720 (x86_64-*-mingw*): Likewise.
5721 (x86_64-*-cygwin*): Likewise.
5723 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5725 * tdesc.c: Remove xml parameter.
5727 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5729 * server.c (get_features_xml): Remove cast.
5730 * tdesc.c (void target_desc::accept): Fill in function.
5731 (tdesc_get_features_xml): Remove old xml creation.
5732 (print_xml_feature::visit_pre): Add xml vistor.
5733 * tdesc.h (struct target_desc): Make xmltarget mutable.
5734 (tdesc_get_features_xml): Remove declaration.
5736 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5738 * tdesc.c (tdesc_architecture_name): Add new function.
5739 (tdesc_osabi_name): Likewise.
5740 (tdesc_get_features_xml): Use new functions.
5742 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5744 * tdesc.c (tdesc_create_flags): Remove.
5745 (tdesc_add_flag): Likewise.
5746 (tdesc_named_type): Likewise.
5747 (tdesc_create_union): Likewise.
5748 (tdesc_create_struct): Likewise.
5749 (tdesc_create_vector): Likewise.
5750 (tdesc_add_bitfield): Likewise.
5751 (tdesc_add_field): Likewise.
5752 (tdesc_set_struct_size): Likewise.
5754 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5756 * tdesc.c (~target_desc): Remove implictly deleted items.
5757 (init_target_desc): Iterate all features.
5758 (tdesc_get_features_xml): Use vector.
5759 (tdesc_create_feature): Create feature.
5760 * tdesc.h (tdesc_feature) Remove
5761 (target_desc): Add features.
5763 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5765 * Makefile.in: Add common/tdesc.c
5766 * tdesc.c (init_target_desc): init all reg_defs from register
5768 (tdesc_create_reg): Create tdesc_reg.
5769 * tdesc.h (tdesc_feature): Add register vector.
5771 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5773 * tdesc.h (struct target_desc) <features>: Change type to
5774 std::vector<std::string>.
5775 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5777 (tdesc_get_features_xml): Likewise.
5778 (tdesc_create_feature): Likewise.
5780 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5782 * regcache.c (find_register_by_number): Return a ref.
5783 (find_regno): Use references.
5784 (register_size): Likewise.
5785 (register_data): Likewise.
5786 * tdesc.c (target_desc::~target_desc): Remove free calls.
5787 (target_desc::operator==): Use std::vector compare.
5788 (init_target_desc): Use reference.
5789 (tdesc_create_reg): Use reg constructors.
5790 * tdesc.h (struct target_desc): Replace pointer with object.
5792 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5794 * regcache.c (find_register_by_number): Make static.
5795 (find_regno): Use find_register_by_number
5796 * regcache.h (struct reg): Remove declaration.
5798 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5800 * tdesc.c (target_desc::~target_desc): Move to here.
5801 (target_desc::operator==): Likewise.
5802 * tdesc.h (target_desc::~target_desc): Move from here.
5803 (target_desc::operator==): Likewise.
5805 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5807 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5809 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5811 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5813 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5814 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5815 and init_registers_s390_gs_linux64.
5817 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5819 * linux-s390-low.c (s390_fill_gs): Remove function.
5820 (s390_fill_gsbc): Remove function.
5821 (s390_regsets): Set fill functions for the guarded storage regsets
5824 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5826 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5827 the word size. Add comment.
5828 (s390_get_wordsize): New function.
5829 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5830 pswm with it. Instead, use s390_get_wordsize to determine the
5831 word size first and derive the correct tdesc from that directly.
5833 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5835 * Makefile.in: Include silent-rules.mk.
5836 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5837 (COMPILE): Add ECHO_CXX.
5838 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5839 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5840 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5841 (version-generated.c): Add ECHO_GEN.
5842 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5843 (IPAGENT_COMPILE): Add ECHO_CXX.
5844 (%-generated.c): Add ECHO_REGDAT.
5846 2018-03-14 Tom Tromey <tom@tromey.com>
5849 * ax.c (ax_printf): Special case for NULL.
5851 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5853 * linux-low.c (linux_qxfer_libraries_svr4): Use
5854 xml_escape_text_append.
5856 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5858 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5860 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5862 * server.c (handle_general_set): Remove unnecessary xstrdup.
5864 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5866 * server.c (parse_debug_format_options): Adjust to
5867 delim_string_to_char_ptr_vec changes.
5868 * thread-db.c (thread_db_load_search): Adjust to
5869 dirnames_to_char_ptr_vec changes.
5871 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5873 * target.h (target_enable_btrace, target_disable_btrace)
5874 (target_read_btrace, target_read_btrace_conf): Turn macro into
5875 inline function. Throw error if target method is not defined.
5876 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5877 check for btrace target method. Be prepared to handle exceptions
5878 from btrace target methods.
5880 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5882 * server.c (captured_main): Change order of error message printed
5883 when the current working directory cannot be found.
5885 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5887 * server.c: Include "filenames.h" and "pathstuff.h".
5888 (program_name): Delete variable.
5889 (program_path): New anonymous class.
5890 (get_exec_wrapper): Use "program_path" instead of
5892 (handle_v_run): Likewise.
5893 (captured_main): Likewise.
5894 (process_serial_event): Likewise.
5896 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5898 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5899 (OBJS): Add "pathstuff.o".
5900 * server.c (current_directory): New global variable.
5901 (captured_main): Initialize "current_directory".
5903 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5905 * tdesc.c: Use common/tdesc.h.
5906 * tdesc.h: Likewise.
5908 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5909 Simon Marchi <simon.marchi@ericsson.com>
5911 * Makefile.in: Switch order of make rules.
5913 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5915 * Makefile.in: Add common directory in build.
5916 * configure.ac: Add common reference.
5917 * configure: Regenerate.
5919 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5921 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5922 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5923 * spu-low.c (spu_target_ops): Likewise.
5924 * win32-low.c (win32_target_ops): Likewise.
5925 * server.c (supported_btrace_packets): Report packets unconditionally.
5926 * target.h (target_ops) <supports_btrace>: Remove.
5927 (target_supports_btrace): Remove.
5929 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5931 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5932 (handle_btrace_disable): Change return type to void. Use exceptions
5934 (handle_btrace_general_set): Catch exception and copy message to
5937 2018-02-08 Tom Tromey <tom@tromey.com>
5939 * linux-low.c (install_software_single_step_breakpoints): Use
5940 make_scoped_restore.
5941 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5942 (do_restore_current_thread_cleanup): Remove.
5943 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5946 2018-02-08 Tom Tromey <tom@tromey.com>
5948 * mem-break.c (set_raw_breakpoint_at): Use
5949 gdb::unique_xmalloc_ptr.
5951 2018-01-30 Pedro Alves <palves@redhat.com>
5954 * target.c (target_terminal::terminal_state): Rename to ...
5955 (target_terminal::m_terminal_state): ... this.
5957 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5959 * linux-low.c (handle_extended_wait): Surround call to
5960 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5962 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5964 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5965 linux_ptrace_attach_fail_reason_string now returning an
5967 (linux_attach): Likewise.
5968 * thread-db.c (attach_thread): Likewise.
5970 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5973 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5974 checking for fs_base/gs_base fields in struct user_regs_struct.
5975 * configure: Regenerate.
5977 2018-01-16 Yao Qi <yao.qi@linaro.org>
5980 * linux-low.c (fetch_register): Call supply_register instead of
5983 2018-01-08 Yao Qi <yao.qi@linaro.org>
5984 Simon Marchi <simon.marchi@ericsson.com>
5986 * Makefile.in (OBS): Remove selftest.o.
5987 * configure.ac: Set srv_selftest_objs if $development is true.
5988 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5989 * configure: Re-generated.
5990 * server.c (captured_main): Wrap variable selftest_filter with
5993 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5995 * server.c (parse_debug_format_options): Return std::string.
5996 (handle_monitor_command, captured_main): Adjust.
5998 2018-01-05 Pedro Alves <palves@redhat.com>
6001 * server.c (captured_main): Pass quiet=false to
6002 save_original_signals_state.
6004 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6006 * gdbreplay.c (gdbreplay_version): Update copyright year in
6008 * server.c (gdbserver_version): Likewise.
6010 2017-12-08 Tom Tromey <tom@tromey.com>
6012 * ax.c (ax_printf): Update.
6014 2017-12-07 Yao Qi <yao.qi@linaro.org>
6016 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6017 aarch64_linux_read_description.
6018 * linux-amd64-ipa.c (idx2mask): New array.
6019 (get_ipa_tdesc): Move idx2mask out.
6020 (initialize_low_tracepoint): Initialize target descriptions.
6021 * linux-i386-ipa.c (idx2mask): New array.
6022 (get_ipa_tdesc): Move idx2mask out.
6023 (initialize_low_tracepoint): Initialize target descriptions.
6025 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6027 * tdesc.c (struct tdesc_type): Change return type.
6028 (tdesc_add_flag): Change parameter type.
6029 (tdesc_add_bitfield): Likewise.
6030 (tdesc_add_field): Likewise.
6031 (tdesc_set_struct_size): Likewise.
6033 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6035 * regcache.c (registers_to_string): Remove unused variable.
6037 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6039 * inferiors.c (for_each_inferior_with_data): Remove.
6040 * inferiors.h (for_each_inferior_with_data): Remove.
6041 * server.c (handle_qxfer_threads_worker): Change parameter type.
6042 (handle_qxfer_threads_proper): Use for_each_thread.
6044 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6046 * inferiors.c (for_each_inferior): Remove.
6047 (clear_inferiors): Use for_each_thread.
6048 * inferiors.h (for_each_inferior): Remove.
6049 * linux-low.c (linux_wait_for_event_filtered): Use
6051 (linux_stabilize_threads): Likewise.
6052 * regcache.c (regcache_release): Likewise.
6053 * server.c (gdb_wants_all_threads_stopped): Likewise.
6054 (clear_pending_status_callback): Remove.
6055 (handle_status): Use for_each_thread.
6056 (captured_main): Likewise.
6057 * win32-low.c (child_init_thread_list): Likewise.
6058 (win32_clear_inferiors): Likewise.
6059 (fake_breakpoint_event): Likewise.
6061 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6063 * inferiors.h (find_inferior): Remove.
6064 * inferiors.c (find_inferior): Remove.
6066 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6068 * linux-low.c (resume_status_pending_p): Update comment.
6069 (need_step_over_p): Update comment.
6071 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6073 * linux-low.c (proceed_one_lwp): Return void, change parameter
6075 (unsuspend_and_proceed_one_lwp): Likewise.
6076 (proceed_all_lwps): Use for_each_thread.
6077 (unstop_all_lwps): Likewise.
6079 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6081 * linux-low.c (linux_resume_one_thread): Return void, take
6083 (linux_resume): Use for_each_thread.
6085 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6087 * linux-low.c (send_sigstop_callback): Return void, change
6088 parameter type. Rename to...
6089 (send_sigstop): ... this.
6090 (suspend_and_send_sigstop_callback): Return void, change parameter
6092 (suspend_and_send_sigstop): ... this.
6093 (stop_all_lwps): Use for_each_thread.
6095 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6097 * linux-low.c (lwp_running): Return bool, remove unused
6099 (linux_stabilize_threads): Use find_thread.
6101 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6103 * linux-low.c (select_singlestep_lwp_callback): Remove.
6104 (count_events_callback): Remove.
6105 (select_event_lwp_callback): Remove.
6106 (select_event_lwp): Use find_thread/for_each_thread.
6108 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6110 * linux-low.c (not_stopped_callback): Return bool, take filter
6112 (linux_wait_for_event_filtered): Use find_thread.
6113 (linux_wait_1): Likewise.
6115 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6117 * linux-low.c (same_lwp): Remove.
6118 (find_lwp_pid): Use find_thread.
6120 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6122 * linux-low.c (delete_lwp_callback): Remove.
6123 (linux_mourn): Use for_each_thread.
6125 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6127 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6128 args parameter, don't check for pid.
6129 (linux_detach): Use for_each_thread.
6131 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6133 * linux-low.c (struct counter): Remove.
6134 (second_thread_of_pid_p): Remove.
6135 (last_thread_of_process_p): Use find_thread.
6137 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6139 * inferiors.c (find_inferior_in_random): Remove.
6140 * inferiors.h (find_inferior_in_random): Remove.
6141 * linux-low.c (status_pending_p_callback): Return bool, accept
6142 parameter ptid directly.
6143 (linux_wait_for_event_filtered): Use find_thread_in_random.
6144 (linux_wait_1): Likewise.
6146 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6148 * inferiors.c (find_inferior_id): Remove.
6149 (find_thread_ptid): Move implemention from find_inferior_id to
6151 * inferiors.h (find_inferior_id): Remove.
6152 * server.c (handle_status): Use find_thread_ptid.
6153 (process_serial_event): Likewise.
6154 * thread-db.c (find_one_thread): Likewise.
6155 (thread_db_thread_handle): Likewise.
6156 * win32-low.c (thread_rec): Likewise.
6157 (child_delete_thread): Likewise.
6158 (win32_thread_alive): Likewise.
6159 (get_child_debug_event): Likewise.
6161 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6163 * linux-mips-low.c (update_watch_registers_callback): Return
6164 void, remove pid_p parameter, don't check for pid.
6165 (mips_insert_point, mips_remove_point): Use for_each_thread.
6167 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6169 * lynx.low (lynx_delete_thread_callback): Remove.
6170 (lynx_mourn): Use for_each_thread.
6172 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6174 * regcache.c (regcache_invalidate_one): Remove.
6175 (regcache_invalidate_pid): use for_each_thread.
6177 2017-11-26 Tom Tromey <tom@tromey.com>
6179 * linux-low.c (linux_create_inferior): Update.
6181 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6183 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6185 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6187 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6188 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6189 * linux-aarch64-tdesc-selftest.c: New file.
6190 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6192 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6194 * configure.srv: Add new file.
6195 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6196 * linux-aarch64-tdesc-selftest.c: New file.
6197 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6199 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6201 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6202 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6203 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6205 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6207 * configure.srv: Add new files.
6208 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6209 aarch64_linux_read_description.
6210 * linux-aarch64-low.c (aarch64_linux_read_description):
6211 Merge with aarch64_arch_setup.
6212 (aarch64_arch_setup): Call aarch64_linux_read_description.
6213 * linux-aarch64-tdesc.c: New file.
6214 * linux-aarch64-tdesc.h: New file.
6216 2017-11-24 Yao Qi <yao.qi@linaro.org>
6218 * configure.srv: Set $srv_regobj for tic6x-linux.
6219 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6220 (tic6x_read_description): Move some code to tic6x_arch_setup.
6221 (tic6x_tdesc_test): New function.
6222 (initialize_low_arch): Call selftests::register_test.
6224 2017-11-22 Yao Qi <yao.qi@linaro.org>
6226 * remote-utils.c (prepare_resume_reply): Use memcpy.
6228 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6230 * linux-low.c (kill_one_lwp_callback): Return void, take
6231 argument directly, don't filter on pid.
6232 (linux_kill): Use for_each_thread.
6234 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6236 * linux-low.c (need_step_over_p): Return bool, remove dummy
6238 (linux_resume, proceed_all_lwps): Use find_thread.
6240 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6242 * linux-low.c (resume_status_pending_p): Return bool, remove
6244 (linux_resume): Use find_thread.
6246 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6248 * linux-low.c (struct thread_resume_array): Remove.
6249 (linux_set_resume_request): Return void, take arguments
6251 (linux_resume): Use for_each_thread.
6253 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6255 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6256 return bool, remove data argument.
6257 (linux_stabilize_threads): Use find_thread.
6259 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6261 * linux-low.c (unsuspend_one_lwp): Remove.
6262 (unsuspend_all_lwps): Use for_each_thread, inline code from
6265 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6267 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6268 * linux-low.c (struct iterate_over_lwps_args): Remove.
6269 (iterate_over_lwps_filter): Remove.
6270 (iterate_over_lwps): Use find_thread.
6272 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6274 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6275 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6276 code from reset_lwp_ptrace_options_callback.
6278 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6280 * linux-arm-low.c (struct update_registers_data): Remove.
6281 (update_registers_callback): Return void, take arguments
6282 directly, don't check thread's pid.
6283 (arm_insert_point, arm_remove_point): Use for_each_thread.
6285 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6287 * win32-low.c (continue_one_thread): Return void, take argument
6289 (child_continue): Use for_each_thread.
6291 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6293 * win32-i386-low.c (update_debug_registers_callback): Rename
6295 (update_debug_registers): ... this, return void, remove pid_p arg.
6296 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6298 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6300 * inferiors.h (struct process_info): Add constructor, initialize
6302 <syscalls_to_catch>: Change type to std::vector<int>.
6303 * inferiors.c (add_process): Allocate process_info with new.
6304 (remove_process): Free process_info with delete.
6305 * linux-low.c (handle_extended_wait): Adjust.
6306 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6307 * server.c (handle_general_set): Adjust.
6309 2017-11-16 Pedro Alves <palves@redhat.com>
6311 * remote-utils.c (remote_close): Block SIGIO signals instead of
6312 uninstalling the SIGIO handler.
6314 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6316 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6318 2017-11-16 Yao Qi <yao.qi@linaro.org>
6320 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6321 (tic6x_store_gregset): Likewise.
6322 (tic6x_usrregs_info): Move it up.
6324 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6326 * Makefile.in: Update arch rules.
6327 * configure.srv: Explicitly mark arch/ files.
6329 2017-11-13 Andreas Schwab <schwab@suse.de>
6331 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6333 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6335 2017-11-06 Pedro Alves <palves@redhat.com>
6337 * config.in, configure: Regenerate.
6339 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6341 * target.c (struct thread_search): Remove.
6342 (thread_search_callback): Remove.
6343 (prepare_to_access_memory): Use for_each_thread instead of
6344 find_inferior. Inline code from thread_search_callback.
6346 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6348 * server.c (struct visit_actioned_threads_data): Remove.
6349 (visit_actioned_threads): Change prototype to take arguments
6351 (resume): Use find_thread instead of find_inferior.
6353 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6355 * server.c (queue_stop_reply_callback): Change prototype, return
6357 (find_status_pending_thread_callback): Remove.
6358 (handle_status): Replace find_inferior with find_thread and
6361 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6363 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6365 (aarch64_store_gregset): Likewise.
6366 (aarch64_fill_fpregset): Likewise.
6367 (aarch64_store_fpregset): Likewise.
6369 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6371 * gdbthread.h (find_thread, for_each_thread): New functions.
6372 * inferiors.c (thread_of_pid): Remove.
6373 (find_any_thread_of_pid): Use find_thread.
6374 * linux-low.c (num_lwps): Use for_each_thread.
6376 2017-10-17 Yao Qi <yao.qi@linaro.org>
6378 * Makefile.in: Remove one rule.
6379 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6381 2017-10-17 Yao Qi <yao.qi@linaro.org>
6383 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6384 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6386 2017-10-17 Yao Qi <yao.qi@linaro.org>
6388 * configure.srv: Rename arm.o with arch/arm.o.
6390 2017-10-17 Yao Qi <yao.qi@linaro.org>
6392 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6393 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6394 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6395 (arch-i386.o, arch-amd64.o): Remove rules.
6396 (arch/%.o): New rule.
6397 Update POSTCOMPILE and COMPILE.pre.
6398 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6399 * configure: Re-generated.
6400 * configure.srv: Replace arch-i386.o with arch/i386.o.
6401 Replace arch-amd64.o with arch/amd64.o.
6403 2017-10-16 Yao Qi <yao.qi@linaro.org>
6405 * configure: Regenerated.
6407 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6409 * inferiors.h: (struct inferior_list): Remove.
6410 (struct inferior_list_entry); Remove.
6411 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6412 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6413 get_first_inferior): Remove.
6414 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6415 find_inferior_id, find_inferior_in_random): Change signature.
6416 * inferiors.c (all_threads): Change type to
6417 std::list<thread_info *>.
6418 (get_thread): Remove macro.
6419 (find_inferior, find_inferior_id): Change signature, implement
6421 (find_inferior_in_random): Change signature, implement using
6422 find_thread_in_random.
6423 (for_each_inferior, for_each_inferior_with_data): Change
6424 signature, implement using for_each_thread.
6425 (add_inferior_to_list, remove_inferior): Remove.
6426 (add_thread, get_first_thread, thread_of_pid,
6427 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6428 (get_first_inferior, one_inferior_p, clear_inferior_list):
6430 (clear_inferiors, get_thread_process): Update.
6431 * gdbthread.h: Include <list>.
6432 (struct thread_info) <entry>: Remove field.
6434 (all_threads): Change type to std::list<thread_info *>.
6435 (get_first_inferior): Add doc.
6436 (find_thread, for_each_thread, find_thread_in_random): New
6438 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6439 * linux-arm-low.c (update_registers_callback): Update.
6440 * linux-low.c (second_thread_of_pid_p): Update.
6441 (kill_one_lwp_callback, linux_detach_lwp_callback,
6442 delete_lwp_callback, status_pending_p_callback, same_lwp,
6443 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6444 iterate_over_lwps, not_stopped_callback,
6445 resume_stopped_resumed_lwps, count_events_callback,
6446 select_singlestep_lwp_callback, select_event_lwp_callback,
6447 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6448 suspend_and_send_sigstop_callback, wait_for_sigstop,
6449 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6450 lwp_running, linux_set_resume_request, resume_status_pending_p,
6451 need_step_over_p, start_step_over, linux_resume_one_thread,
6452 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6453 reset_lwp_ptrace_options_callback): Update.
6454 * linux-mips-low.c (update_watch_registers_callback): Update.
6455 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6457 (free_register_cache_thread_one): Remove.
6458 (regcache_release): Update.
6459 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6460 handle_qxfer_threads_worker): Update.
6461 (handle_query): Update, use list iterator.
6462 (visit_actioned_threads, handle_pending_status,
6463 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6464 clear_pending_status_callback, set_pending_status_callback,
6465 find_status_pending_thread_callback, handle_status,
6466 process_serial_event): Update.
6467 * target.c (thread_search_callback): Update.
6468 * thread-db.c (thread_db_get_tls_address): Update.
6469 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6471 * win32-i386-low.c (update_debug_registers_callback): Update.
6472 * win32-low.c (delete_thread_info, child_delete_thread,
6473 continue_one_thread, suspend_one_thread,
6474 get_child_debug_event): Adjust.
6476 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6478 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6479 * inferiors.h: Include <list>.
6480 (struct process_info) <entry>: Remove field.
6482 (pid_of): Change macro to function.
6483 (ptid_of, lwpid_of): Remove macro.
6484 (all_processes): Change type to std::list<process_info *>.
6485 (ALL_PROCESSES): Remove macro.
6486 (for_each_process, find_process): New function.
6487 * inferiors.c (all_processes): Change type to
6488 std::list<process_info *>.
6489 (find_thread_process): Adjust.
6490 (add_process): Likewise.
6491 (remove_process): Likewise.
6492 (find_process_pid): Likewise.
6493 (get_first_process): Likewise.
6494 (started_inferior_callback): Remove.
6495 (have_started_inferiors_p): Adjust.
6496 (attached_inferior_callback): Remove.
6497 (have_attached_inferiors_p): Adjust.
6498 * linux-low.c (check_zombie_leaders): Likewise.
6499 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6500 (x86_linux_update_xmltarget): Adjust.
6501 * server.c (handle_query): Likewise.
6502 (gdb_reattached_process): Remove.
6503 (handle_status): Adjust.
6504 (kill_inferior_callback): Likewise.
6505 (detach_or_kill_inferior): Remove.
6506 (print_started_pid): Likewise.
6507 (print_attached_pid): Likewise.
6508 (detach_or_kill_for_exit): Update.
6509 (process_serial_event): Likewise.
6510 * linux-arm-low.c (arm_new_fork): Likewise.
6512 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6514 * dll.h: Include <list>.
6515 (struct dll_info): Add constructor.
6516 <entry>: Remove field.
6517 (all_dlls): Change type to std::list<dll_info>.
6518 * dll.c: Include <algorithm>.
6519 (get_dll): Remove macro.
6520 (all_dlls): Change type to std::list<dll_info *>.
6521 (free_one_dll): Remove.
6522 (match_dll): Likewise.
6523 (loaded_dll): Adjust.
6524 (unloaded_dll): Adjust to all_dlls type change, use
6525 std::find_if. Inline code from match_dll.
6526 (clear_dlls): Adjust to all_dlls type change.
6527 * server.c (emit_dll_description): Remove.
6528 (handle_qxfer_libraries): Adjust to all_dlls type change,
6529 integrate emit_dll_description's functionality.
6531 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6533 * linux-low.h (struct linux_target_ops) <delete_process>: New
6535 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6536 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6537 (struct linux_target_ops): Add delete_process callback.
6538 * linux-arm-low.c (arm_delete_process): New.
6539 (struct linux_target_ops): Add delete_process callback.
6540 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6541 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6542 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6543 * linux-mips-low.c (mips_linux_delete_process): New.
6544 (struct linux_target_ops): Add delete_process callback.
6545 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6546 * linux-s390-low.c (struct linux_target_ops): Likewise.
6547 * linux-sh-low.c (struct linux_target_ops): Likewise.
6548 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6549 * linux-tile-low.c (struct linux_target_ops): Likewise.
6550 * linux-x86-low.c (x86_linux_delete_process): New.
6551 (struct linux_target_ops): Add delete_process callback.
6552 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6554 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6556 * linux-aarch64-low.c (the_low_target): Add thread delete
6558 * linux-arm-low.c (arm_delete_thread): New function.
6559 (the_low_target): Add thread delete callback.
6560 * linux-bfin-low.c (the_low_target): Likewise.
6561 * linux-crisv32-low.c (the_low_target): Likewise.
6562 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6564 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6566 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6567 * linux-mips-low.c (mips_linux_delete_thread): New function.
6568 (the_low_target): Add thread delete callback.
6569 * linux-ppc-low.c (the_low_target): Likewise.
6570 * linux-s390-low.c (the_low_target): Likewise.
6571 * linux-sh-low.c (the_low_target): Likewise.
6572 * linux-tic6x-low.c (the_low_target): Likewise.
6573 * linux-tile-low.c (the_low_target): Likewise.
6574 * linux-x86-low.c (the_low_target): Likewise.
6575 * linux-xtensa-low.c (the_low_target): Likewise.
6577 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6579 * win32-low.c: Include "common-inferior.h".
6581 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6583 * inferiors.c (set_inferior_cwd): New function.
6584 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6585 (handle_query): Inform that QSetWorkingDir is supported.
6586 * win32-low.c (create_process): Pass the inferior's cwd to
6589 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6591 * inferiors.c (current_inferior_cwd): New global variable.
6592 (get_inferior_cwd): New function.
6593 * inferiors.h (struct process_info) <cwd>: New field.
6595 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6597 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6598 (OBS): Add gdb_tilde_expand.o.
6600 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6602 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6603 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6605 2017-09-29 Pedro Alves <palves@redhat.com>
6607 * ax.c (gdb_parse_agent_expr): Constify.
6608 * ax.h (gdb_parse_agent_expr): Constify.
6609 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6611 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6612 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6613 * remote-utils.h (read_ptid): Constify.
6614 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6615 (process_point_options, process_serial_event): Constify.
6616 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6617 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6618 (cmd_qtbuffer): Constify.
6620 2017-09-29 Pedro Alves <palves@redhat.com>
6622 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6625 2017-09-29 Pedro Alves <palves@redhat.com>
6627 * linux-low.c (handle_extended_wait): Pass parent thread instead
6628 of process to thread_db_notice_clone.
6629 * linux-low.h (thread_db_notice_clone): Replace parent process
6630 parameter with parent thread parameter.
6631 * thread-db.c (find_one_thread): Add comment.
6632 (thread_db_notice_clone): Replace parent process parameter with
6633 parent thread parameter. Temporarily switch to the parent thread.
6635 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6637 * gdbthread.h: Include "common-gdbthread.h".
6638 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6639 "if" when validating the ptid.
6640 * remote-utils.c: Include "gdbthread.h".
6641 (prepare_resume_reply): Use "switch_to_thread".
6642 * target.c (done_accessing_memory): Likewise.
6644 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6646 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6647 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6648 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6649 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6650 s390x-gs-linux64-ipa.o to ipa_obj.
6651 * linux-s390-low.c (HWCAP_S390_GS): New define.
6652 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6654 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6655 (s390_arch_setup): Check for guarded-storage support and choose
6657 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6658 init_registers_s390x_gs_linux64.
6659 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6661 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6662 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6664 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6666 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6668 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6670 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6671 (thread_db_thread_handle): Declare.
6672 * linux-low.c (linux_target_ops): Initialize thread_handle.
6673 * server.c (handle_qxfer_threads_worker): Add support for
6675 * target.h (struct target_ops): Add new function pointer,
6677 (target_thread_handle): Define.
6678 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6680 (thread_db_thread_handle): New function.
6682 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6684 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6685 * linux-low.h (thread_db_notice_clone): Declare.
6686 * thread-db.c (thread_db_notice_clone): New function.
6688 2017-09-21 Pedro Alves <palves@redhat.com>
6690 * server.c (gdb_read_memory, handle_status, process_serial_event)
6691 (handle_serial_event, handle_target_event): Adjust to
6692 set_desired_thread prototype change.
6693 * target.c (set_desired_thread): Remove 'use_general' parameter
6695 * target.h (set_desired_thread): Remove 'use_general' parameter.
6697 2017-09-20 Tom Tromey <tom@tromey.com>
6699 * target.c (target_terminal::terminal_state): Define.
6700 (target_terminal::init): Rename from target_terminal_init.
6701 (target_terminal::inferior): Rename from
6702 target_terminal_inferior.
6703 (target_terminal::ours): Rename from target_terminal_ours.
6704 (target_terminal::ours_for_output, target_terminal::info): New.
6706 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6708 * server.c (accumulate_file_name_length): Remove.
6709 (emit_dll_description): Adjust to std::string change.
6710 (handle_qxfer_libraries): Use std::string to hold document.
6712 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6714 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6715 return type of xml_escape_text.
6716 * server.c (emit_dll_description): Likewise.
6718 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6720 * server.c (captured_main): Accept argument for --selftest.
6721 Update run_tests call.
6722 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6723 when registering selftests.
6725 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6727 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6728 instead of "VEC" for "target_desc.reg_defs".
6729 (regcache_cpy): Likewise.
6730 (registers_to_string): Likewise.
6731 (registers_from_string): Likewise.
6732 (find_regno): Likewise.
6733 (supply_regblock): Likewise.
6734 (regcache_raw_read_unsigned): Likewise.
6735 * tdesc.c (init_target_desc): Likewise.
6736 (tdesc_create_reg): Likewise.
6737 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6738 (struct target_desc) <reg_defs>: Convert to "std::vector".
6739 (target_desc): Do not initialize "reg_defs".
6740 (~target_desc): Update code to use "std::vector" instead of "VEC"
6741 for "target_desc.reg_defs".
6742 (operator==): Likewise.
6744 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6746 * inferiors.h (thread_to_gdb_id): Remove.
6747 * inferiors.c (thread_to_gdb_id): Remove.
6748 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6749 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6750 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6752 * nto-low.c (nto_fetch_registers, nto_store_registers,
6753 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6755 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6757 * inferiors.h (gdb_id_to_thread_id): Remove.
6758 * inferiors.c (gdb_id_to_thread_id): Remove.
6759 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6760 removal. Move pid declaration closer to where it's used.
6762 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6764 * server.c (handle_detach): New function.
6765 (process_serial_event): Move code out, call handle_detach.
6767 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6769 * server.c (require_running): Rename to ...
6770 (require_running_or_return): ... this ...
6771 (require_running_or_break): ... and this.
6772 (handle_query, process_serial_event): Adjust.
6774 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6776 * linux-low.c (linux_set_resume_request): Remove unused
6779 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6781 * server.c (first_thread_of): Remove.
6782 (process_serial_event): Replace usage of first_thread_of with
6783 find_any_thread_of_pid.
6784 * tracepoint.c (same_process_p): Remove.
6785 (gdb_agent_about_to_close): Replace usage of same_process_p with
6786 find_any_thread_of_pid.
6787 * linux-x86-low.c (same_process_callback): Remove.
6788 (x86_arch_setup_process_callback): Replace usage of
6789 same_process_callback with find_any_thread_of_pid.
6790 * thread-db.c (any_thread_of): Remove.
6791 (switch_to_process): Replace usage of any_thread_of with
6792 find_any_thread_of_pid.
6793 * inferiors.c (thread_pid_matches_callback): Remove.
6794 (find_thread_process): Adjust to use find_any_thread_of_pid.
6796 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6798 * regcache.c (get_thread_regcache): Guard calls to "memset"
6801 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6803 * linux-low.c (handle_extended_wait): Use
6804 "allocate_target_description" instead of "XNEW".
6805 * linux-x86-low.c (initialize_low_arch): Likewise.
6807 2017-09-05 Yao Qi <yao.qi@linaro.org>
6809 * configure.srv (srv_i386_regobj): Remove.
6810 (srv_amd64_regobj): Remove.
6811 (srv_regobj): Set it to "" for x86 non-linux targets.
6812 * linux-x86-tdesc.c (i386_linux_read_description):
6813 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6814 (init_registers_i386): Remove the declaration.
6815 (tdesc_i386): Remove the declaration.
6816 (lynx_i386_arch_setup): Call i386_create_target_description.
6817 * nto-x86-low.c: Likewise.
6818 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6819 [!__x86_64__]: include arch/i386.h.
6820 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6822 2017-09-05 Yao Qi <yao.qi@linaro.org>
6824 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6825 i386/amd64-XXX-linux from it.
6827 2017-09-05 Yao Qi <yao.qi@linaro.org>
6829 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6831 (ipa_amd64_linux_regobj): Remove.
6832 (ipa_x32_linux_regobj): Remove.
6834 2017-09-05 Yao Qi <yao.qi@linaro.org>
6836 * Makefile.in (arch-amd64.o): New rule.
6837 * configure.srv: Append arch-amd64.o.
6838 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6839 (get_ipa_tdesc): Call amd64_linux_read_description.
6840 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6841 and init_registers_amd64_XXX.
6842 * linux-x86-low.c (x86_linux_read_description): Call
6843 amd64_linux_read_description.
6844 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6845 (initialize_low_arch): Don't call init_registers_x32_XXX and
6846 init_registers_amd64_XXX.
6847 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6848 and tdesc_amd64_XXX.
6849 [__x86_64__] (amd64_tdesc_test): New function.
6850 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6851 and init_registers_amd64_XXX.
6852 * linux-x86-tdesc.c: Include arch/amd64.h.
6853 (xcr0_to_tdesc_idx): New function.
6854 (i386_linux_read_description): New function.
6855 (amd64_get_ipa_tdesc_idx): New function.
6856 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6857 (amd64_get_ipa_tdesc): Declare.
6859 2017-09-05 Yao Qi <yao.qi@linaro.org>
6861 * configure.srv (srv_i386_linux_xmlfiles): Remove
6862 i386/i386-XXX-linux.xml from it.
6864 2017-09-05 Yao Qi <yao.qi@linaro.org>
6866 * configure.srv: Set srv_i386_linux_regobj empty if $development
6868 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6869 initialize_low_tdesc.
6870 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6871 with #if initialize_low_tdesc.
6872 * linux-x86-tdesc-selftest.c: New file.
6873 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6875 2017-09-05 Yao Qi <yao.qi@linaro.org>
6877 * Makefile.in (arch-i386.o): New rule.
6878 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6879 (x86_64-*-linux*): Likewise.
6880 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6881 include arch/i386.h.
6882 (i386_linux_read_description): Remove code and call
6883 i386_create_target_description.
6884 * tdesc.c (allocate_target_description): New function.
6885 * tdesc.h (set_tdesc_architecture): Remove declaration.
6886 (set_tdesc_osabi): Likewise.
6888 2017-09-05 Yao Qi <yao.qi@linaro.org>
6890 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6891 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6892 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6894 * server.c (get_features_xml): Call tdesc_get_features_xml.
6895 * tdesc.c (set_tdesc_architecture): New function.
6896 (set_tdesc_osabi): New function.
6897 (tdesc_get_features_xml): New function.
6898 (tdesc_create_feature): Add an argument.
6899 * tdesc.h (struct target_desc) <features>: New field.
6900 <arch, osabi>: New field.
6901 (~target_desc): xfree features, arch, and osabi.
6902 (target_desc::oerator==): Don't compare .xmltarget.
6903 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6904 (set_tdesc_osabi): Likewise.
6905 (tdesc_get_features_xml): Likewise.
6907 2017-09-05 Yao Qi <yao.qi@linaro.org>
6909 * linux-x86-tdesc.c: Include selftest.h.
6910 (i386_tdesc_test): New function.
6911 (initialize_low_tdesc): Call selftests::register_test.
6912 * tdesc.h: Include regdef.h.
6913 (target_desc): Override operator == and !=.
6915 2017-09-05 Yao Qi <yao.qi@linaro.org>
6917 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6918 (ipa_obj): Likewise.
6919 * linux-i386-ipa.c: Include common/x86-xstate.h
6920 (get_ipa_tdesc): Call i386_linux_read_description.
6921 (initialize_low_tracepoint): Don't call init_registers_XXX
6922 functions, call initialize_low_tdesc instead.
6923 * linux-x86-low.c (x86_linux_read_description): Call
6924 i386_linux_read_description.
6925 (initialize_low_arch): Don't call init_registers_i386_XXX
6926 functions, call initialize_low_tdesc.
6927 * linux-x86-tdesc.c: New file.
6928 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6929 (i386_get_ipa_tdesc_idx): Declare.
6930 (i386_get_ipa_tdesc): Declare.
6931 (initialize_low_tdesc): Declare.
6933 2017-09-05 Yao Qi <yao.qi@linaro.org>
6935 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6938 2017-09-05 Yao Qi <yao.qi@linaro.org>
6940 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6941 * regcache.c (get_thread_regcache): Use VEC_length.
6942 (init_register_cache): Likewise.
6943 (regcache_cpy): Likewise.
6944 (registers_to_string): Iterate reg_defs via VEC_iterate.
6945 (find_regno): Likewise.
6946 (find_register_by_number): Use VEC_index.
6947 (register_size): Call find_register_by_number.
6948 (register_data): Call find_register_by_number.
6949 (supply_regblock): Use VEC_length.
6950 (regcache_raw_read_unsigned): Likewise.
6951 * tdesc.c (init_target_desc): Iterate reg_defs via
6953 (default_description): Update initializer.
6954 (copy_target_description): Don't update field num_registers.
6955 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6956 <num_registers>: Remove.
6958 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6960 * Makefile.in (.SECONDARY): Define target.
6962 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6964 * linux-low.c (linux_wait_1): Adjust.
6965 * server.c (queue_stop_reply_callback): Adjust.
6967 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6969 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6970 QEnvironmentUnset and QEnvironmentReset packets.
6971 (handle_query): Inform remote that QEnvironmentHexEncoded,
6972 QEnvironmentUnset and QEnvironmentReset are supported.
6974 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6976 * inferiors.h (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 * inferiors.c (inferior_target_data): Rename to ...
6983 (thread_target_data): ... this.
6984 (inferior_regcache_data): Rename to ...
6985 (thread_regcache_data): ... this.
6986 (set_inferior_regcache_data): Rename to ...
6987 (set_thread_regcache_data): ... this.
6988 (free_one_thread): Update.
6989 * linux-low.h (get_thread_lwp): Update.
6990 * regcache.c (get_thread_regcache): Update.
6991 (regcache_invalidate_thread): Update.
6992 (free_register_cache_thread): Update.
6993 * win32-i386-low.c (update_debug_registers_callback): Update.
6994 (win32_get_current_dr): Update.
6995 * win32-low.c (thread_rec): Update.
6996 (delete_thread_info): Update.
6997 (continue_one_thread): Update.
6998 (suspend_one_thread): Update.
7000 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7002 * inferiors.c (set_inferior_target_data): Remove.
7003 * inferiors.h (set_inferior_target_data): Remove.
7005 2017-08-18 Yao Qi <yao.qi@linaro.org>
7007 * Makefile.in (OBS): Add selftest.o.
7008 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7009 * configure, config.in: Re-generated.
7010 * server.c: Include common/sefltest.h.
7011 (captured_main): Handle option --selftest.
7013 2017-08-09 Yao Qi <yao.qi@linaro.org>
7015 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7016 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7017 i386-avx-mpx.o and i386-mmx.o.
7018 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7019 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7020 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7021 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7022 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7023 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7024 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7025 i386/amd64-avx-mpx.xml.
7027 2017-08-09 Yao Qi <yao.qi@linaro.org>
7029 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7030 and x32-avx-avx512.o.
7031 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7032 i386/x32-avx-avx512.xml.
7034 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7036 * tracepoint.h (enum class fast_tpoint_collect_result): New
7038 (fast_tracepoint_collecting): Change return type to
7039 fast_tpoint_collect_result.
7040 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7041 * linux-low.h: Include tracepoint.h.
7042 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7043 fast_tpoint_collect_result.
7044 * linux-low.c (handle_tracepoints): Adjust.
7045 (linux_fast_tracepoint_collecting): Change return type to
7046 fast_tpoint_collect_result.
7047 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7048 linux_wait_1, stuck_in_jump_pad_callback,
7049 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7050 proceed_one_lwp): Adjust to type change.
7052 2017-07-10 Yao Qi <yao.qi@linaro.org>
7054 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7056 2017-06-29 Yao Qi <yao.qi@linaro.org>
7058 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7060 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7062 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7064 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7066 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7068 * linux-low.c (linux_create_inferior): Adjust code to access the
7069 environment information via 'gdb_environ' class.
7070 * lynx-low.c (lynx_create_inferior): Likewise.
7071 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7072 (get_environ): Return a pointer to 'our_environ'.
7073 (captured_main): Initialize 'our_environ'.
7074 * server.h (get_environ): Adjust prototype.
7075 * spu-low.c (spu_create_inferior): Adjust code to access the
7076 environment information via 'gdb_environ' class.
7078 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7080 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7081 usage of "register" keyword.
7083 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7085 * configure: Re-generate.
7087 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7089 * configure: Re-generate.
7091 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7093 * Makefile.in (COMPILE.pre): Add "-x c++".
7095 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7097 * fork-child.c: Conditionally include <signal.h>.
7099 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7101 * server.c (handle_general_set): Handle new packet
7102 "QStartupWithShell".
7103 (handle_query): Add "QStartupWithShell" to the list of supported
7105 (gdbserver_usage): Add help text explaining the
7106 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7108 (captured_main): Recognize and act upon the presence of the new
7111 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7112 Pedro Alves <palves@redhat.com>
7114 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7115 * configure: Regenerate.
7116 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7118 (i[34567]86-*-lynxos*): Likewise.
7119 (spu*-*-*): Likewise.
7120 * fork-child.c: New file.
7121 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7123 (linux_ptrace_fun): New function.
7124 (linux_create_inferior): Adjust function prototype to reflect
7125 change on "target.h". Adjust function code to use
7127 (linux_request_interrupt): Delete "signal_pid".
7128 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7129 (lynx_ptrace_fun): New function.
7130 (lynx_create_inferior): Adjust function prototype to reflect
7131 change on "target.h". Adjust function code to use
7133 * nto-low.c (nto_create_inferior): Adjust function prototype and
7134 code to reflect change on "target.h". Update comments.
7135 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7136 "common-terminal.h" and "environ.h".
7137 (terminal_fd): Moved to fork-child.c.
7138 (old_foreground_pgrp): Likewise.
7139 (restore_old_foreground_pgrp): Likewise.
7140 (last_status): Make it global.
7141 (last_ptid): Likewise.
7142 (our_environ): New variable.
7143 (startup_with_shell): Likewise.
7144 (program_name): Likewise.
7145 (program_argv): Rename to...
7146 (program_args): ...this.
7147 (wrapper_argv): New variable.
7148 (start_inferior): Delete function.
7149 (get_exec_wrapper): New function.
7150 (get_exec_file): Likewise.
7151 (get_environ): Likewise.
7152 (prefork_hook): Likewise.
7153 (post_fork_inferior): Likewise.
7154 (postfork_hook): Likewise.
7155 (postfork_child_hook): Likewise.
7156 (handle_v_run): Update code to deal with arguments coming from the
7157 remote host. Update calls from "start_inferior" to
7159 (captured_main): Likewise. Initialize environment variable. Call
7161 * server.h (post_fork_inferior): New prototype.
7162 (get_environ): Likewise.
7163 (last_status): Declare.
7164 (last_ptid): Likewise.
7165 (signal_pid): Likewise.
7166 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7167 (spu_ptrace_fun): New function.
7168 (spu_create_inferior): Adjust function prototype to reflect change
7169 on "target.h". Adjust function code to use "fork_inferior".
7170 * target.c (target_terminal_init): New function.
7171 (target_terminal_inferior): Likewise.
7172 (target_terminal_ours): Likewise.
7173 * target.h: Include <vector>.
7174 (struct target_ops) <create_inferior>: Update prototype.
7175 (create_inferior): Update macro.
7176 * utils.c (gdb_flush_out_err): New function.
7177 * win32-low.c (win32_create_inferior): Adjust function prototype
7178 and code to reflect change on "target.h".
7180 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7182 * inferiors.c (switch_to_thread): New function.
7184 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7186 * Makefile.in (SFILE): Add "common/job-control.c".
7187 (OBS): Add "job-control.o".
7189 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7191 * Makefile: Remove "@host_makefile_frag@".
7193 2017-05-05 Pedro Alves <palves@redhat.com>
7195 * configure: Regenerate.
7197 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7199 * configure: Regenerate.
7201 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7203 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7204 software_single_step change of return type to
7205 std::vector<CORE_ADDR>.
7206 * linux-low.c (install_software_single_step_breakpoints):
7208 * linux-low.h (install_software_single_step_breakpoints):
7211 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7213 * remote-utils.c: Include "gdb_termios.h" instead of
7215 * terminal.h: Delete file.
7217 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7219 * server.c: Include <vector>.
7220 <program_argv, wrapper_argv>: Convert to std::vector.
7221 (start_inferior): Rewrite function to use C++.
7222 (handle_v_run): Likewise. Update code that calculates the argv
7223 based on the vRun packet; use C++.
7224 (captured_main): Likewise.
7226 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7228 * server.c (handle_v_cont): Initialize thread_resume::thread
7231 2017-04-05 Pedro Alves <palves@redhat.com>
7233 * configure: Regenerate.
7235 2017-04-05 Pedro Alves <palves@redhat.com>
7237 * gdbreplay.c (sync_error): Constify.
7238 * linux-x86-low.c (push_opcode): Constify.
7240 2017-04-05 Pedro Alves <palves@redhat.com>
7242 * win32-low.c (get_child_debug_event)
7243 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7244 Report TARGET_WAITKIND_SPURIOUS instead.
7246 2017-04-05 Pedro Alves <palves@redhat.com>
7248 * remote-utils.c (remote_prepare, remote_open): Constify.
7249 * remote-utils.h (remote_prepare, remote_open): Constify.
7250 * server.c (captured_main): Constify 'port' handling.
7252 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7254 * Makefile.in (clean): Clear .deps.
7256 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7258 * .gitignore: Remove generated files, replace with wildcard.
7259 * (clean): Replace removal of generated files with wildcard.
7260 (version.c): Replace with...
7261 (version-generated.c): ...this.
7262 (xml-builtin.c): Replace with...
7263 (xml-builtin-generated.c): ...this.
7264 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7265 (%.c: *regformats*): Replace with...
7266 (%-generated.c: *regformats*): ...this.
7268 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7270 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7271 (xtensa_fill_gregset): Call collect_register_by_name for
7273 (xtensa_store_gregset): Call supply_register_by_name for
7276 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7278 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7279 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7280 (xtensa_store_gregset): Call supply_register for all registers in
7281 a0_regnum..a0_regnum + C0_NREGS range.
7283 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7285 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7286 (ax-ipa.o: ax.c): Remove.
7287 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7288 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7289 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7290 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7291 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7293 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7295 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7296 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7297 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7298 (errors-ipa.o: ../common/errors.c): Remove.
7299 (format-ipa.o: ../common/format.c): Remove.
7300 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7302 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7304 * Makefile.in (%-ipa.o: %.c): New rule.
7305 (tracepoint-ipa.o: tracepoint.c): Remove.
7306 (utils-ipa.o: utils.c): Remove.
7307 (remote-utils-ipa.o: remote-utils.c): Remove.
7308 (regcache-ipa.o: regcache.c): Remove.
7309 (i386-linux-ipa.o: i386-linux.c): Remove.
7310 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7311 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7312 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7313 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7314 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7315 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7316 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7317 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7318 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7319 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7320 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7321 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7322 (aarch64-ipa.o: aarch64.c): Remove.
7323 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7324 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7325 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7326 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7327 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7328 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7329 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7330 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7331 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7332 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7333 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7334 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7335 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7336 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7337 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7338 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7339 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7340 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7341 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7342 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7343 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7344 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7345 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7346 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7347 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7348 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7349 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7350 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7351 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7352 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7353 (tdesc-ipa.o: tdesc.c): Remove.
7354 (x32-linux-ipa.o: x32-linux.c): Remove.
7355 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7356 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7358 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7360 * Makefile.in (%.o: ../arch/%.c): New rule.
7361 (arm.o: ../arch/arm.c): Remove.
7362 (arm-linux.o: ../arch/arm-linux.c): Remove.
7363 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7364 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7366 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7368 * Makefile.in (%.o: ../nat/%.c): New rule.
7369 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7370 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7371 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7372 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7373 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7374 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7375 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7376 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7377 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7378 (linux-personality.o: ../nat/linux-personality.c): Remove.
7379 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7380 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7381 (x86-linux.o: ../nat/x86-linux.c): Remove.
7382 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7383 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7385 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7387 * Makefile.in (%.o: ../common/%.c): New rule.
7388 (signals.o: ../common/signals.c): Remove.
7389 (print-utils.o: ../common/print-utils.c): Remove.
7390 (rsp-low.o: ../common/rsp-low.c): Remove.
7391 (common-utils.o: ../common/common-utils.c): Remove.
7392 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7393 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7394 (vec.o: ../common/vec.c): Remove.
7395 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7396 (xml-utils.o: ../common/xml-utils.c): Remove.
7397 (ptid.o: ../common/ptid.c): Remove.
7398 (buffer.o: ../common/buffer.c): Remove.
7399 (format.o: ../common/format.c): Remove.
7400 (filestuff.o: ../common/filestuff.c): Remove.
7401 (agent.o: ../common/agent.c): Remove.
7402 (errors.o: ../common/errors.c): Remove.
7403 (environ.o: ../common/environ.c): Remove.
7404 (common-debug.o: ../common/common-debug.c): Remove.
7405 (cleanups.o: ../common/cleanups.c): Remove.
7406 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7407 (fileio.o: ../common/fileio.c): Remove.
7408 (common-regcache.o: ../common/common-regcache.c): Remove.
7409 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7410 (new-op.o: ../common/new-op.c): Remove.
7411 (btrace-common.o: ../common/btrace-common.c): Remove.
7413 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7415 * Makefile.in (%.o: ../target/%.c): New rule.
7416 (waitstatus.o: ../target/waitstatus.c): Remove.
7418 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7421 (%.c: ../regformats/%.dat,
7422 (%.c: ../regformats/arm/%.dat,
7423 (%.c: ../regformats/i386/%.dat,
7424 (%.c: ../regformats/rs6000/%.dat): New rules.
7425 (aarch64.c): Remove.
7426 (reg-arm.c): Remove.
7427 (arm-with-iwmmxt.c): Remove.
7428 (arm-with-vfpv2.c): Remove.
7429 (arm-with-vfpv3.c): Remove.
7430 (arm-with-neon.c): Remove.
7431 (reg-bfin.c): Remove.
7432 (reg-cris.c): Remove.
7433 (reg-crisv32.c): Remove.
7435 (i386-linux.c): Remove.
7436 (i386-avx.c): Remove.
7437 (i386-avx-linux.c): Remove.
7438 (i386-avx-avx512.c): Remove.
7439 (i386-avx-avx512-linux.c): Remove.
7440 (i386-mpx.c): Remove.
7441 (i386-mpx-linux.c): Remove.
7442 (i386-avx-mpx-avx512-pku.c): Remove.
7443 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7444 (i386-avx-mpx.c): Remove.
7445 (i386-avx-mpx-linux.c): Remove.
7446 (i386-mmx.c): Remove.
7447 (i386-mmx-linux.c): Remove.
7448 (reg-ia64.c): Remove.
7449 (reg-m32r.c): Remove.
7450 (reg-m68k.c): Remove.
7452 (mips-linux.c): Remove.
7453 (mips-dsp-linux.c): Remove.
7454 (mips64-linux.c): Remove.
7455 (mips64-dsp-linux.c): Remove.
7456 (nios2-linux.c): Remove.
7457 (powerpc-32.c): Remove.
7458 (powerpc-32l.c): Remove.
7459 (powerpc-altivec32l.c): Remove.
7460 (powerpc-cell32l.c): Remove.
7461 (powerpc-vsx32l.c): Remove.
7462 (powerpc-isa205-32l.c): Remove.
7463 (powerpc-isa205-altivec32l.c): Remove.
7464 (powerpc-isa205-vsx32l.c): Remove.
7465 (powerpc-e500l.c): Remove.
7466 (powerpc-64l.c): Remove.
7467 (powerpc-altivec64l.c): Remove.
7468 (powerpc-cell64l.c): Remove.
7469 (powerpc-vsx64l.c): Remove.
7470 (powerpc-isa205-64l.c): Remove.
7471 (powerpc-isa205-altivec64l.c): Remove.
7472 (powerpc-isa205-vsx64l.c): Remove.
7473 (s390-linux32.c): Remove.
7474 (s390-linux32v1.c): Remove.
7475 (s390-linux32v2.c): Remove.
7476 (s390-linux64.c): Remove.
7477 (s390-linux64v1.c): Remove.
7478 (s390-linux64v2.c): Remove.
7479 (s390-te-linux64.c): Remove.
7480 (s390-vx-linux64.c): Remove.
7481 (s390-tevx-linux64.c): Remove.
7482 (s390x-linux64.c): Remove.
7483 (s390x-linux64v1.c): Remove.
7484 (s390x-linux64v2.c): Remove.
7485 (s390x-te-linux64.c): Remove.
7486 (s390x-vx-linux64.c): Remove.
7487 (s390x-tevx-linux64.c): Remove.
7488 (tic6x-c64xp-linux.c): Remove.
7489 (tic6x-c64x-linux.c): Remove.
7490 (tic6x-c62x-linux.c): Remove.
7492 (reg-sparc64.c): Remove.
7493 (reg-spu.c): Remove.
7495 (amd64-linux.c): Remove.
7496 (amd64-avx.c): Remove.
7497 (amd64-avx-linux.c): Remove.
7498 (amd64-avx-avx512.c): Remove.
7499 (amd64-avx-avx512-linux.c): Remove.
7500 (amd64-mpx.c): Remove.
7501 (amd64-mpx-linux.c): Remove.
7502 (amd64-avx-mpx-avx512-pku.c): Remove.
7503 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7504 (amd64-avx-mpx.c): Remove.
7505 (amd64-avx-mpx-linux.c): Remove.
7507 (x32-linux.c): Remove.
7508 (x32-avx.c): Remove.
7509 (x32-avx-linux.c): Remove.
7510 (x32-avx-avx512.c): Remove.
7511 (x32-avx-avx512-linux.c): Remove.
7512 (reg-xtensa.c): Remove.
7513 (reg-tilegx.c): Remove.
7514 (reg-tilegx32.c): Remove.
7516 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7518 * Makefile.in (SFILES): Add "common/environ.c".
7519 (OBJS): Add "common/environ.h".
7521 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7523 * configure.ac: Check if the fs_base and gs_base members of
7524 `struct user_regs_struct' exist.
7525 * config.in: Regenerated.
7526 * configure: Likewise.
7528 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7530 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7532 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7533 (get_next_pcs_syscall_next_pc): Likewise.
7535 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7537 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7538 * nto-x86-low.c: Likewise.
7540 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7542 * Makefile.in: Include disable-implicit-rules.mk.
7544 2016-11-23 Pedro Alves <palves@redhat.com>
7546 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7547 (debug_vprintf): Use std::chrono::steady_clock instead of
7548 gettimeofday. Use '.' instead of ':'.
7549 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7550 (get_timestamp): Use std::chrono::steady_clock instead of
7553 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7555 * Makefile.in: Fix whitespace formatting.
7557 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7559 * Makefile.in (SFILES, OBS): Flatten list and order
7562 2016-11-23 Pedro Alves <palves@redhat.com>
7564 * event-loop.c (handle_file_event): Use warning.
7565 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7566 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7569 2016-11-23 Pedro Alves <palves@redhat.com>
7571 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7573 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7574 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7575 debug_printf and debug_flush for debug output.
7576 * server.c (handle_general_set): Likewise.
7577 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7580 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7582 * Makefile.in (.c.o): Replace rule with ...
7583 (%.o: %.c): ... this one.
7585 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7587 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7588 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7590 * configure.ac: Remove checks for the make program.
7591 * configure: Re-generate.
7593 2016-10-28 Pedro Alves <palves@redhat.com>
7595 * Makefile.in (CXX_DIALECT): Get from configure.
7596 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7597 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7598 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7599 * config.in: Regenerate.
7600 * configure: Regenerate.
7602 2016-10-27 Yao Qi <yao.qi@linaro.org>
7604 * linux-low.c (linux_supports_range_stepping): Return true if
7605 can_software_single_step return true.
7607 2016-10-27 Yao Qi <yao.qi@linaro.org>
7609 * inferiors.c (find_inferior_in_random): New function.
7610 * inferiors.h (find_inferior_in_random): Declare.
7611 * linux-low.c (linux_wait_for_event_filtered): Call
7612 find_inferior_in_random instead of find_inferior.
7614 2016-10-27 Yao Qi <yao.qi@linaro.org>
7616 * linux-low.c (linux_wait_1): If single-step breakpoints are
7617 inserted, remove them.
7619 2016-10-26 Pedro Alves <palves@redhat.com>
7621 * linux-low.c (handle_extended_wait): Link parent/child fork
7623 (linux_wait_1): Unlink them.
7624 (linux_set_resume_request): Ignore resume requests for
7625 already-resumed and unhandled fork child threads.
7626 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7627 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7629 (handle_v_requests) <vCont>: Don't call require_running.
7630 * server.h (in_queued_stop_replies): New declaration.
7632 2016-10-24 Yao Qi <yao.qi@linaro.org>
7635 * linux-aarch64-low.c (append_insns): Cast the return value to
7638 2016-10-10 Yao Qi <yao.qi@linaro.org>
7640 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7642 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7644 * target.c (target_supports_multi_process): New function, moved
7646 * target.h (target_supports_multi_process): ... here. Remove
7649 2016-10-05 Tom Tromey <tom@tromey.com>
7652 * tracepoint.c (handle_tracepoint_bkpts): Check
7653 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7655 2016-10-05 Yao Qi <yao.qi@linaro.org>
7657 * configure.srv: Update the path of arm-*.xml files.
7659 2016-10-05 Terry Guo <terry.guo@arm.com>
7660 Yao Qi <yao.qi@linaro.org>
7662 * Makefile.in: Adjust the path of rules.
7663 * configure.srv: Update the path of xml files.
7664 * regformats/arm-with-iwmmxt.dat: Regenerated.
7665 * regformats/arm-with-neon.dat: Likewise.
7666 * regformats/arm-with-vfpv2.dat: Likewise.
7667 * regformats/arm-with-vfpv3.dat Likewise.
7669 2016-09-30 Yao Qi <yao.qi@linaro.org>
7672 * target.c (target_stop_and_wait): Don't call
7673 target_continue_no_signal, use resume_stop instead.
7675 2016-09-26 Yao Qi <yao.qi@linaro.org>
7677 * linux-low.c (linux_wait_1): Call debug_exit.
7679 2016-09-23 Pedro Alves <palves@redhat.com>
7681 * Makefile.in (SFILES): Add common/new-op.c.
7682 (OBS): Add common/new-op.o.
7683 (new-op.o): New rule.
7685 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7687 * .gitinore: Ignore more files.
7689 2016-09-21 Yao Qi <yao.qi@linaro.org>
7691 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7694 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7696 * server.c (start_inferior): Call target_mourn_inferior instead of
7697 mourn_inferior; pass ptid_t argument to it.
7699 (handle_target_event): Likewise.
7700 * target.c (target_mourn_inferior): New function.
7701 * target.h (mourn_inferior): Delete macro.
7703 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7705 * linux-low.c (lwp_is_stepping): New function.
7707 2016-09-06 Carl Love <cel@us.ibm.com>
7709 * server.c (start_inferior): Fixed comment, requested comment change
7710 didn't get updated correctly. Removed reference to ptrace () call as
7711 it is only true on Linux systems.
7713 2016-09-06 Carl Love <cel@us.ibm.com>
7715 * server.c (start_inferior): Do not call
7716 function target_post_create_inferior () if the
7717 inferior process has already exited.
7719 2016-09-05 Pedro Alves <palves@redhat.com>
7721 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7722 (COMPILE.pre, CC_LD): Use CXX directly.
7723 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7724 * acinclude.m4: Don't include build-with-cxx.m4.
7725 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7726 * configure: Regenerate.
7728 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7731 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7732 call writing data to own_buf.
7734 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7736 * target.c (mywait): Call target_wait instead of
7738 (target_wait): New function.
7740 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7742 * server.c (start_inferior): New variable 'ptid'. Replace calls
7743 to the_target->resume by target_continue{,_no_signal}, depending
7745 * target.c (target_stop_and_wait): Call target_continue_no_signal
7746 instead of the_target->resume.
7747 (target_continue): New function.
7749 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7751 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7753 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7756 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7758 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7759 * linux-arm-low.c (ps_get_thread_area): Likewise.
7760 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7761 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7762 * linux-mips-low.c (ps_get_thread_area): Likewise.
7763 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7764 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7765 * linux-x86-low.c (ps_get_thread_area): Likewise.
7766 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7768 2016-08-19 Pedro Alves <palves@redhat.com>
7770 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7772 2016-08-19 Pedro Alves <palves@redhat.com>
7774 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7775 comment. Use memcpy instead of casting through unsigned long.
7777 2016-08-19 Pedro Alves <palves@redhat.com>
7779 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7780 allocating around 0x80000000.
7782 2016-08-19 Pedro Alves <palves@redhat.com>
7785 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7786 (x32-avx512-linux-ipa.o): New rules.
7787 * configure.ac (x86_64-*-linux*): New x32 check.
7788 * configure.srv (ipa_x32_linux_regobj): New.
7789 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7790 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7792 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7794 * configure: Regenerate.
7796 2016-08-09 Pedro Alves <palves@redhat.com>
7799 * Makefile.in (OBS): Add signals-state-save-restore.o.
7800 (signals-state-save-restore.o): New rule.
7801 * config.in: Regenerate.
7802 * configure: Regenerate.
7803 * linux-low.c: Include "signals-state-save-restore.h".
7804 (linux_create_inferior): Call
7805 restore_original_signals_state.
7806 * server.c: Include "dispositions-save-restore.h".
7807 (captured_main): Call save_original_signals_state.
7809 2016-08-05 Pedro Alves <palves@redhat.com>
7811 * configure: Regenerate.
7813 2016-08-04 Yao Qi <yao.qi@linaro.org>
7815 * linux-low.c (regsets_fetch_inferior_registers): Check
7816 errno is ESRCH or not.
7818 2016-08-02 Yao Qi <yao.qi@linaro.org>
7820 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7821 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7822 (thread_db_load_search): Update.
7823 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7824 td_ta_set_event and td_ta_event_getmsg.
7826 2016-07-26 Pedro Alves <palves@redhat.com>
7829 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7830 of unsigned long for 64-bit registers and use uint32_t instead of
7831 unsigned int for 32-bit registers.
7833 2016-07-26 Pedro Alves <palves@redhat.com>
7835 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7838 2016-07-21 Tom Tromey <tom@tromey.com>
7840 * configure: Rebuild.
7842 2016-07-21 Yao Qi <yao.qi@linaro.org>
7844 * mem-break.c (find_gdb_breakpoint): Cast bp to
7845 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7847 2016-07-21 Yao Qi <yao.qi@linaro.org>
7849 * server.c (handle_v_requests): Support s and S actions
7850 if target_supports_software_single_step return true.
7852 2016-07-21 Yao Qi <yao.qi@linaro.org>
7854 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7855 is resume_step, call maybe_hw_step.
7856 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7858 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7860 (proceed_one_lwp): If resume request is resume_step, install
7861 reinsert breakpoints and call maybe_hw_step.
7863 2016-07-21 Yao Qi <yao.qi@linaro.org>
7865 * linux-low.c (proceed_one_lwp): Declare.
7866 (linux_resume_one_thread): Remove local variable 'step'.
7867 Lift code enqueue signal. Call proceed_one_lwp instead of
7868 linux_resume_one_lwp.
7870 2016-07-21 Yao Qi <yao.qi@linaro.org>
7872 * linux-low.c (linux_resume_one_thread): Call
7873 enqueue_pending_signal.
7875 2016-07-21 Yao Qi <yao.qi@linaro.org>
7877 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7878 * inferiors.c (do_restore_current_thread_cleanup): New function.
7879 (make_cleanup_restore_current_thread): Likewise.
7880 * linux-low.c (install_software_single_step_breakpoints): Call
7881 make_cleanup_restore_current_thread. Switch current_thread to
7884 2016-07-21 Yao Qi <yao.qi@linaro.org>
7886 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7887 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7888 (clone_one_breakpoint): Likewise.
7889 (delete_reinsert_breakpoints): Change parameter to thread.
7891 (has_reinsert_breakpoints): Likewise.
7892 (uninsert_reinsert_breakpoints): Likewise.
7893 (reinsert_reinsert_breakpoints): Likewise.
7894 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7895 (delete_reinsert_breakpoints): Likewise.
7896 (reinsert_reinsert_breakpoints): Likewise.
7897 (uninsert_reinsert_breakpoints): Likewise.
7898 (has_reinsert_breakpoints): Likewise.
7900 2016-07-21 Yao Qi <yao.qi@linaro.org>
7902 * inferiors.c (get_thread_process): Make parameter const.
7903 * inferiors.h (get_thread_process): Update declaration.
7904 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7905 Add new parameters child_thread and parent_thread. Callers
7907 * mem-break.h (clone_all_breakpoints): Update declaration.
7909 2016-07-21 Yao Qi <yao.qi@linaro.org>
7911 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7912 <command_list, handler>: Remove.
7913 (struct gdb_breakpoint): New.
7914 (struct other_breakpoint): New.
7915 (struct reinsert_breakpoint): New.
7916 (is_gdb_breakpoint): New function.
7917 (any_persistent_commands): Update command_list if
7918 is_gdb_breakpoint returns true.
7919 (set_breakpoint): Create breakpoints according to their types.
7920 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7921 (set_gdb_breakpoint_1): Likewise.
7922 (set_gdb_breakpoint): Likewise.
7923 (clear_breakpoint_conditions): Change parameter type to
7924 'struct gdb_breakpoint *'.
7925 (clear_breakpoint_commands): Likewise.
7926 (clear_breakpoint_conditions_and_commands): Likewise.
7927 (add_condition_to_breakpoint): Likewise.
7928 (add_breakpoint_condition): Likewise.
7929 (add_commands_to_breakpoint): Likewise.
7930 (check_breakpoints): Check other_breakpoint.
7931 (clone_one_breakpoint): Clone breakpopint according to its type.
7932 * mem-break.h (struct gdb_breakpoint): Declare.
7933 (set_gdb_breakpoint): Update declaration.
7934 (clear_breakpoint_conditions_and_commands): Likewise.
7935 (add_breakpoint_condition): Likewise.
7936 (add_breakpoint_commands): Likewise.
7937 * server.c (process_point_options): Change parameter type to
7938 'struct gdb_breakpoint *'.
7940 2016-07-21 Yao Qi <yao.qi@linaro.org>
7942 * mem-break.c (set_breakpoint_at): Rename it to ...
7943 (set_breakpoint_type_at): ... it.
7944 (set_breakpoint_at): Call set_breakpoint_type_at.
7945 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7946 * mem-break.h (set_breakpoint_at): Update comments.
7948 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7950 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7952 (nios2_store_gregset): Likewise.
7954 2016-07-01 Pedro Alves <palves@redhat.com>
7955 Antoine Tremblay <antoine.tremblay@ericsson.com>
7957 * linux-low.c: Change interface to take the target lwp_info
7958 pointer directly and return void. Handle detaching from a zombie
7960 (linux_detach_lwp_callback): New function.
7961 (linux_detach): Detach from the leader thread after detaching from
7964 2016-06-28 Yao Qi <yao.qi@linaro.org>
7966 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7967 for variable new_offset.
7968 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7969 (aarch64_ftrace_insn_reloc_cb): Likewise.
7970 (aarch64_ftrace_insn_reloc_tb): Likewise.
7971 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7972 PRIx64 instead of PRIx32.
7974 2016-06-28 Yao Qi <yao.qi@linaro.org>
7976 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7977 (the_low_target): Install arm_get_syscall_trapinfo.
7979 2016-06-28 Yao Qi <yao.qi@linaro.org>
7981 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7983 (the_low_target): Install aarch64_get_syscall_trapinfo.
7985 2016-06-28 Yao Qi <yao.qi@linaro.org>
7987 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7989 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7990 Remove parameter sysno.
7991 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7994 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7996 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7997 (s390_emit_ne_goto): Likewise.
7998 (s390_emit_lt_goto): Likewise.
7999 (s390_emit_le_goto): Likewise.
8000 (s390_emit_gt_goto): Likewise.
8001 (s390_emit_ge_goto): Likewise.
8002 (s390x_emit_eq_goto): Likewise.
8003 (s390x_emit_ne_goto): Likewise.
8004 (s390x_emit_lt_goto): Likewise.
8005 (s390x_emit_le_goto): Likewise.
8006 (s390x_emit_gt_goto): Likewise.
8007 (s390x_emit_ge_goto): Likewise.
8008 (s390_emit_ops_impl): Mark variable static.
8009 (s390x_emit_ops): Likewise.
8011 2016-06-17 Yao Qi <yao.qi@linaro.org>
8013 * linux-low.c (handle_extended_wait): Call
8014 uninsert_reinsert_breakpoints for the parent process. Remove
8015 reinsert breakpoints from the child process. Reinsert them to
8016 the parent process when vfork is done.
8017 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8018 (reinsert_reinsert_breakpoints): New function.
8019 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8020 (reinsert_reinsert_breakpoints): Declare.
8022 2016-06-17 Yao Qi <yao.qi@linaro.org>
8024 * linux-low.c (handle_extended_wait): If the parent is doing
8025 step-over, remove the reinsert breakpoints from the forked child.
8027 2016-06-17 Yao Qi <yao.qi@linaro.org>
8029 * linux-low.c (unsuspend_all_lwps): Declare.
8030 (linux_low_filter_event): If thread exited, call finish_step_over.
8031 If step-over is finished, unsuspend other threads.
8033 2016-06-17 Yao Qi <yao.qi@linaro.org>
8035 * linux-low.c (linux_resume_one_lwp_throw): Assert
8036 has_reinsert_breakpoints returns false.
8037 * mem-break.c (delete_disabled_breakpoints): Assert
8038 bp type isn't reinsert_breakpoint.
8040 2016-06-17 Yao Qi <yao.qi@linaro.org>
8042 * linux-low.c (maybe_hw_step): New function.
8043 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8044 (finish_step_over): Switch current_thread to lwp temporarily,
8045 and assert has_reinsert_breakpoints returns true.
8046 (proceed_one_lwp): Call maybe_hw_step.
8047 * mem-break.c (has_reinsert_breakpoints): New function.
8048 * mem-break.h (has_reinsert_breakpoints): Declare.
8050 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8052 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8054 2016-05-17 Yao Qi <yao.qi@linaro.org>
8056 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8057 instead of find_inferior.
8059 2016-05-05 Yao Qi <yao.qi@linaro.org>
8061 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8062 Initialize res to zero.
8064 2016-05-05 Yao Qi <yao.qi@linaro.org>
8066 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8069 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8071 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8072 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8073 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8075 2016-04-28 Par Olsson <par.olsson@windriver.com>
8076 Simon Marchi <simon.marchi@ericsson.com>
8078 * tracepoint.c (write_inferior_int8): New function.
8079 (cmd_qtenable_disable): Write enable flag using
8080 write_inferior_int8.
8082 2016-04-25 Yao Qi <yao.qi@linaro.org>
8084 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8085 (need_step_over_p): Return zero if the LWP has pending signals
8086 can be delivered on software single step target.
8088 2016-04-25 Yao Qi <yao.qi@linaro.org>
8090 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8091 return instead of error.
8093 2016-04-22 Yao Qi <yao.qi@linaro.org>
8095 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8098 2016-04-22 Yao Qi <yao.qi@linaro.org>
8100 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8101 signal when stepping over breakpoint with software single
8104 2016-04-21 Pedro Alves <palves@redhat.com>
8106 * linux-s390-low.c (s390_collect_ptrace_register)
8107 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8109 (s390_check_regset): Use void * instead of gdb_byte *.
8111 2016-04-20 Pedro Alves <palves@redhat.com>
8113 * configure: Renegerate.
8115 2016-04-20 Yao Qi <yao.qi@linaro.org>
8117 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8118 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8120 (arm_store_gregset): Likewise.
8122 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8124 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8125 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8126 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8127 (amd64-avx-mpx-linux.c): New rules.
8128 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8129 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8130 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8131 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8132 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8133 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8134 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8135 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8136 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8137 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8138 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8139 * linux-x86-low.c (x86_linux_read_description): Add case for
8140 X86_XSTATE_AVX_MPX_MASK.
8141 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8142 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8143 init_registers_i386_avx_mpx_linux.
8144 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8145 (initialize_low_tracepoint): Call
8146 init_registers_i386_avx_mpx_linux.
8147 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8148 (initialize_low_tracepoint): Call
8149 init_registers_amd64_avx_mpx_linux.
8150 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8151 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8152 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8155 2016-04-18 Pedro Alves <palves@redhat.com>
8157 * configure: Regenerate.
8159 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8161 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8162 (aarch64_emit_sub): Likewise.
8164 2016-04-12 Pedro Alves <palves@redhat.com>
8166 * utils.c (prepare_to_throw_exception): Delete.
8168 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8170 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8172 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8174 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8176 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8178 * linux-aarch64-ipa.c: Add <elf.h> include.
8179 * linux-ppc-ipa.c: Add <elf.h> include.
8180 * linux-s390-ipa.c: Add <elf.h> include.
8182 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8184 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8185 (get_raw_reg_ptr): Likewise.
8186 (get_trace_state_variable_value_ptr): Likewise.
8187 (set_trace_state_variable_value_ptr): Likewise.
8188 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8191 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8192 Marcin Kościelnicki <koriakin@0x04.net>
8195 * linux-ppc-low.c (emit_insns): New function.
8196 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8197 (ppc_emit_prologue): New function.
8198 (ppc_emit_epilogue): New function.
8199 (ppc_emit_add): New function.
8200 (ppc_emit_sub): New function.
8201 (ppc_emit_mul): New function.
8202 (ppc_emit_lsh): New function.
8203 (ppc_emit_rsh_signed): New function.
8204 (ppc_emit_rsh_unsigned): New function.
8205 (ppc_emit_ext): New function.
8206 (ppc_emit_zero_ext): New function.
8207 (ppc_emit_log_not): New function.
8208 (ppc_emit_bit_and): New function.
8209 (ppc_emit_bit_or): New function.
8210 (ppc_emit_bit_xor): New function.
8211 (ppc_emit_bit_not): New function.
8212 (ppc_emit_equal): New function.
8213 (ppc_emit_less_signed): New function.
8214 (ppc_emit_less_unsigned): New function.
8215 (ppc_emit_ref): New function.
8216 (ppc_emit_const): New function.
8217 (ppc_emit_reg): New function.
8218 (ppc_emit_pop): New function.
8219 (ppc_emit_stack_flush): New function.
8220 (ppc_emit_swap): New function.
8221 (ppc_emit_stack_adjust): New function.
8222 (ppc_emit_call): New function.
8223 (ppc_emit_int_call_1): New function.
8224 (ppc_emit_void_call_2): New function.
8225 (ppc_emit_if_goto): New function.
8226 (ppc_emit_goto): New function.
8227 (ppc_emit_eq_goto): New function.
8228 (ppc_emit_ne_goto): New function.
8229 (ppc_emit_lt_goto): New function.
8230 (ppc_emit_le_goto): New function.
8231 (ppc_emit_gt_goto): New function.
8232 (ppc_emit_ge_goto): New function.
8233 (ppc_write_goto_address): New function.
8234 (ppc_emit_ops_impl): New static variable.
8235 (ppc64v1_emit_prologue): New function.
8236 (ppc64v2_emit_prologue): New function.
8237 (ppc64_emit_epilogue): New function.
8238 (ppc64_emit_add): New function.
8239 (ppc64_emit_sub): New function.
8240 (ppc64_emit_mul): New function.
8241 (ppc64_emit_lsh): New function.
8242 (ppc64_emit_rsh_signed): New function.
8243 (ppc64_emit_rsh_unsigned): New function.
8244 (ppc64_emit_ext): New function.
8245 (ppc64_emit_zero_ext): New function.
8246 (ppc64_emit_log_not): New function.
8247 (ppc64_emit_bit_and): New function.
8248 (ppc64_emit_bit_or): New function.
8249 (ppc64_emit_bit_xor): New function.
8250 (ppc64_emit_bit_not): New function.
8251 (ppc64_emit_equal): New function.
8252 (ppc64_emit_less_signed): New function.
8253 (ppc64_emit_less_unsigned): New function.
8254 (ppc64_emit_ref): New function.
8255 (ppc64_emit_const): New function.
8256 (ppc64v1_emit_reg): New function.
8257 (ppc64v2_emit_reg): New function.
8258 (ppc64_emit_pop): New function.
8259 (ppc64_emit_stack_flush): New function.
8260 (ppc64_emit_swap): New function.
8261 (ppc64v1_emit_call): New function.
8262 (ppc64v2_emit_call): New function.
8263 (ppc64v1_emit_int_call_1): New function.
8264 (ppc64v2_emit_int_call_1): New function.
8265 (ppc64v1_emit_void_call_2): New function.
8266 (ppc64v2_emit_void_call_2): New function.
8267 (ppc64_emit_if_goto): New function.
8268 (ppc64_emit_eq_goto): New function.
8269 (ppc64_emit_ne_goto): New function.
8270 (ppc64_emit_lt_goto): New function.
8271 (ppc64_emit_le_goto): New function.
8272 (ppc64_emit_gt_goto): New function.
8273 (ppc64_emit_ge_goto): New function.
8274 (ppc64v1_emit_ops_impl): New static variable.
8275 (ppc64v2_emit_ops_impl): New static variable.
8276 (ppc_emit_ops): New function.
8277 (linux_low_target): Wire in ppc_emit_ops.
8279 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8280 Marcin Kościelnicki <koriakin@0x04.net>
8283 * Makefile.in: Add powerpc-*-ipa.o
8284 * configure.srv: Add ipa_obj for powerpc*-linux.
8285 * linux-ppc-ipa.c: New file.
8286 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8288 (PPC_FIELD): New macro.
8289 (PPC_SEXT): New macro.
8290 (PPC_OP6): New macro.
8291 (PPC_BO): New macro.
8292 (PPC_LI): New macro.
8293 (PPC_BD): New macro.
8294 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8295 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8296 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8297 (ppc_get_thread_area): New function.
8298 (is_elfv2_inferior): New function.
8299 (gen_ds_form): New function.
8300 (GEN_STD): New macro.
8301 (GEN_STDU): New macro.
8302 (GEN_LD): New macro.
8303 (GEN_LDU): New macro.
8304 (gen_d_form): New function.
8305 (GEN_ADDI): New macro.
8306 (GEN_ADDIS): New macro.
8307 (GEN_LI): New macro.
8308 (GEN_LIS): New macro.
8309 (GEN_ORI): New macro.
8310 (GEN_ORIS): New macro.
8311 (GEN_LWZ): New macro.
8312 (GEN_STW): New macro.
8313 (GEN_STWU): New macro.
8314 (gen_xfx_form): New function.
8315 (GEN_MFSPR): New macro.
8316 (GEN_MTSPR): New macro.
8317 (GEN_MFCR): New macro.
8318 (GEN_MTCR): New macro.
8319 (GEN_SYNC): New macro.
8320 (GEN_LWSYNC): New macro.
8321 (gen_x_form): New function.
8322 (GEN_OR): New macro.
8323 (GEN_MR): New macro.
8324 (GEN_LWARX): New macro.
8325 (GEN_STWCX): New macro.
8326 (GEN_CMPW): New macro.
8327 (gen_md_form): New function.
8328 (GEN_RLDICL): New macro.
8329 (GEN_RLDICR): New macro.
8330 (gen_i_form): New function.
8332 (GEN_BL): New macro.
8333 (gen_b_form): New function.
8334 (GEN_BNE): New macro.
8335 (GEN_LOAD): New macro.
8336 (GEN_STORE): New macro.
8337 (gen_limm): New function.
8338 (gen_atomic_xchg): New function.
8339 (gen_call): New function.
8340 (ppc_relocate_instruction): New function.
8341 (ppc_install_fast_tracepoint_jump_pad): New function.
8342 (ppc_get_min_fast_tracepoint_insn_len): New function.
8343 (ppc_get_ipa_tdesc_idx): New function.
8344 (the_low_target): Wire in the new functions.
8345 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8347 * linux-ppc-tdesc.h: New file.
8349 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8351 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8352 (alloc_jump_pad_buffer): New function.
8353 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8354 (alloc_jump_pad_buffer): New function.
8355 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8356 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8357 (alloc_jump_pad_buffer): New function.
8358 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8359 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8360 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8361 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8363 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8365 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8366 * linux-amd64-ipa.c: Likewise.
8367 * linux-i386-ipa.c: Likewise.
8368 * linux-s390-ipa.c: Likewise.
8369 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8370 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8371 set_trace_state_variable_value_ptr.
8372 (struct ipa_sym_addresses): Likewise.
8373 (symbol_list): Likewise.
8374 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8375 accessing gdb_collect directly.
8376 (gdb_collect_ptr_type): New typedef.
8377 (get_raw_reg_ptr_type): New typedef.
8378 (get_trace_state_variable_value_ptr_type): New typedef.
8379 (set_trace_state_variable_value_ptr_type): New typedef.
8380 (gdb_collect_ptr): New global.
8381 (get_raw_reg_ptr): New global.
8382 (get_trace_state_variable_value_ptr): New global.
8383 (set_trace_state_variable_value_ptr): New global.
8384 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8385 accessing get_raw_reg directly.
8386 (get_get_tsv_func_addr): Likewise for
8387 get_trace_state_variable_value_ptr.
8388 (get_set_tsv_func_addr): Likewise for
8389 set_trace_state_variable_value_ptr.
8390 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8392 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8394 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8396 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8398 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8400 (relocate_instruction): Remove own_buf.
8401 * server.c (own_buf): Make global.
8402 (handle_v_requests): Make global.
8403 * server.h (own_buf): New declaration.
8404 (handle_v_requests): New prototype.
8406 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8409 * linux-s390-low.c (add_insns): New function.
8410 (s390_emit_prologue): New function.
8411 (s390_emit_epilogue): New function.
8412 (s390_emit_add): New function.
8413 (s390_emit_sub): New function.
8414 (s390_emit_mul): New function.
8415 (s390_emit_lsh): New function.
8416 (s390_emit_rsh_signed): New function.
8417 (s390_emit_rsh_unsigned): New function.
8418 (s390_emit_ext): New function.
8419 (s390_emit_log_not): New function.
8420 (s390_emit_bit_and): New function.
8421 (s390_emit_bit_or): New function.
8422 (s390_emit_bit_xor): New function.
8423 (s390_emit_bit_not): New function.
8424 (s390_emit_equal): New function.
8425 (s390_emit_less_signed): New function.
8426 (s390_emit_less_unsigned): New function.
8427 (s390_emit_ref): New function.
8428 (s390_emit_if_goto): New function.
8429 (s390_emit_goto): New function.
8430 (s390_write_goto_address): New function.
8431 (s390_emit_litpool): New function.
8432 (s390_emit_const): New function.
8433 (s390_emit_call): New function.
8434 (s390_emit_reg): New function.
8435 (s390_emit_pop): New function.
8436 (s390_emit_stack_flush): New function.
8437 (s390_emit_zero_ext): New function.
8438 (s390_emit_swap): New function.
8439 (s390_emit_stack_adjust): New function.
8440 (s390_emit_set_r2): New function.
8441 (s390_emit_int_call_1): New function.
8442 (s390_emit_void_call_2): New function.
8443 (s390_emit_eq_goto): New function.
8444 (s390_emit_ne_goto): New function.
8445 (s390_emit_lt_goto): New function.
8446 (s390_emit_le_goto): New function.
8447 (s390_emit_gt_goto): New function.
8448 (s390_emit_ge_goto): New function.
8449 (s390x_emit_prologue): New function.
8450 (s390x_emit_epilogue): New function.
8451 (s390x_emit_add): New function.
8452 (s390x_emit_sub): New function.
8453 (s390x_emit_mul): New function.
8454 (s390x_emit_lsh): New function.
8455 (s390x_emit_rsh_signed): New function.
8456 (s390x_emit_rsh_unsigned): New function.
8457 (s390x_emit_ext): New function.
8458 (s390x_emit_log_not): New function.
8459 (s390x_emit_bit_and): New function.
8460 (s390x_emit_bit_or): New function.
8461 (s390x_emit_bit_xor): New function.
8462 (s390x_emit_bit_not): New function.
8463 (s390x_emit_equal): New function.
8464 (s390x_emit_less_signed): New function.
8465 (s390x_emit_less_unsigned): New function.
8466 (s390x_emit_ref): New function.
8467 (s390x_emit_if_goto): New function.
8468 (s390x_emit_const): New function.
8469 (s390x_emit_call): New function.
8470 (s390x_emit_reg): New function.
8471 (s390x_emit_pop): New function.
8472 (s390x_emit_stack_flush): New function.
8473 (s390x_emit_zero_ext): New function.
8474 (s390x_emit_swap): New function.
8475 (s390x_emit_stack_adjust): New function.
8476 (s390x_emit_int_call_1): New function.
8477 (s390x_emit_void_call_2): New function.
8478 (s390x_emit_eq_goto): New function.
8479 (s390x_emit_ne_goto): New function.
8480 (s390x_emit_lt_goto): New function.
8481 (s390x_emit_le_goto): New function.
8482 (s390x_emit_gt_goto): New function.
8483 (s390x_emit_ge_goto): New function.
8484 (s390_emit_ops): New function.
8485 (struct linux_target_ops): Fill in emit_ops hook.
8487 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8490 * Makefile.in: Add s390 IPA files.
8491 * configure.srv: Build IPA for s390.
8492 * linux-s390-ipa.c: New file.
8493 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8494 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8495 (tdesc_s390_linux32): Likewise.
8496 (init_registers_s390_linux32v1): Likewise.
8497 (tdesc_s390_linux32v1): Likewise.
8498 (init_registers_s390_linux32v2): Likewise.
8499 (tdesc_s390_linux32v2): Likewise.
8500 (init_registers_s390_linux64): Likewise.
8501 (tdesc_s390_linux64): Likewise.
8502 (init_registers_s390_linux64v1): Likewise.
8503 (tdesc_s390_linux64v1): Likewise.
8504 (init_registers_s390_linux64v2): Likewise.
8505 (tdesc_s390_linux64v2): Likewise.
8506 (init_registers_s390_te_linux64): Likewise.
8507 (tdesc_s390_te_linux64): Likewise.
8508 (init_registers_s390_vx_linux64): Likewise.
8509 (tdesc_s390_vx_linux64): Likewise.
8510 (init_registers_s390_tevx_linux64): Likewise.
8511 (tdesc_s390_tevx_linux64): Likewise.
8512 (init_registers_s390x_linux64): Likewise.
8513 (tdesc_s390x_linux64): Likewise.
8514 (init_registers_s390x_linux64v1): Likewise.
8515 (tdesc_s390x_linux64v1): Likewise.
8516 (init_registers_s390x_linux64v2): Likewise.
8517 (tdesc_s390x_linux64v2): Likewise.
8518 (init_registers_s390x_te_linux64): Likewise.
8519 (tdesc_s390x_te_linux64): Likewise.
8520 (init_registers_s390x_vx_linux64): Likewise.
8521 (tdesc_s390x_vx_linux64): Likewise.
8522 (init_registers_s390x_tevx_linux64): Likewise.
8523 (tdesc_s390x_tevx_linux64): Likewise.
8524 (have_hwcap_s390_vx): New static variable.
8525 (s390_arch_setup): Fill have_hwcap_s390_vx.
8526 (s390_get_thread_area): New function.
8527 (s390_ft_entry_gpr_esa): New const.
8528 (s390_ft_entry_gpr_zarch): New const.
8529 (s390_ft_entry_misc): New const.
8530 (s390_ft_entry_fr): New const.
8531 (s390_ft_entry_vr): New const.
8532 (s390_ft_main_31): New const.
8533 (s390_ft_main_64): New const.
8534 (s390_ft_exit_fr): New const.
8535 (s390_ft_exit_vr): New const.
8536 (s390_ft_exit_misc): New const.
8537 (s390_ft_exit_gpr_esa): New const.
8538 (s390_ft_exit_gpr_zarch): New const.
8539 (append_insns): New function.
8540 (s390_relocate_instruction): New function.
8541 (s390_install_fast_tracepoint_jump_pad): New function.
8542 (s390_get_min_fast_tracepoint_insn_len): New function.
8543 (s390_get_ipa_tdesc_idx): New function.
8544 (struct linux_target_ops): Wire in the above functions.
8545 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8546 * linux-s390-tdesc.h: New file.
8548 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8550 * linux-s390-low.c (s390_supports_tracepoints): New function.
8551 (struct linux_target_ops): Fill supports_tracepoints hook.
8553 2016-03-18 Yao Qi <yao.qi@linaro.org>
8555 * linux-low.c (lwp_signal_can_be_delivered): New function.
8556 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8558 2016-03-18 Yao Qi <yao.qi@linaro.org>
8560 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8561 0 if signal is enqueued. Remove 'signal' from one debugging
8562 message. Move one debugging message to some lines below.
8563 Remove code setting 'signal' to 0.
8565 2016-03-18 Yao Qi <yao.qi@linaro.org>
8567 * linux-low.c (linux_low_filter_event): Remove redundant
8568 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8570 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8572 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8573 (struct linux_target_ops): Wire in the above.
8575 2016-03-03 Yao Qi <yao.qi@linaro.org>
8577 * linux-low.c: Update comments to start_step_over.
8579 2016-03-03 Yao Qi <yao.qi@linaro.org>
8582 * linux-low.c (handle_extended_wait): Set child suspended
8583 if event_lwp->bp_reinsert isn't zero.
8585 2016-03-02 Yao Qi <yao.qi@linaro.org>
8587 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8588 enqueue_pending_signal.
8590 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8592 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8595 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8597 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8598 (s390_regmap_3264) [!__s390x__]: New global.
8599 (s390_collect_ptrace_register): Skip map entries containing -1.
8600 (s390_supply_ptrace_register): Ditto.
8601 (s390_fill_gprs_high): New function.
8602 (s390_store_gprs_high): New function.
8603 (s390_regsets): Add NT_S390_HIGH_GPRS.
8604 (s390_get_hwcap): Enable on 31-bit.
8605 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8606 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8607 Detect NT_S390_HIGH_GPRS.
8608 (s390_usrregs_info_3264): Enable on 31-bit.
8609 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8610 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8612 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8615 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8616 * configure.srv: Ditto.
8617 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8618 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8619 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8620 (init_registers_amd64_linux): Remove prototype.
8621 (tdesc_amd64_linux): Remove declaration.
8622 (get_ipa_tdesc): New function.
8623 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8624 initialize remaining tdescs.
8625 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8626 (init_registers_i386_linux): Remove prototype.
8627 (tdesc_i386_linux): Remove declaration.
8628 (get_ipa_tdesc): New function.
8629 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8630 initialize remaining tdescs.
8631 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8632 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8633 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8634 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8635 (x86_get_ipa_tdesc_idx): New function.
8636 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8637 * linux-x86-tdesc.h: New file.
8638 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8639 (target_get_ipa_tdesc_idx): New macro.
8640 * tracepoint.c (ipa_tdesc_idx): New macro.
8641 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8642 (symbol_list): Add ipa_tdesc_idx.
8643 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8644 (ipa_tdesc): Remove.
8645 (ipa_tdesc_idx): New variable.
8646 (get_context_regcache): Use get_ipa_tdesc.
8647 (gdb_collect): Ditto.
8649 * tracepoint.h (get_ipa_tdesc): New prototype.
8650 (ipa_tdesc): Remove.
8652 2016-02-24 Pedro Alves <palves@redhat.com>
8654 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8655 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8656 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8657 Factor out common code between the USE_SIGTRAP_SIGINFO and
8658 !USE_SIGTRAP_SIGINFO blocks.
8659 (linux_low_filter_event): Call save_stop_reason instead of
8660 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8662 (linux_wait_1): Update comments.
8664 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8666 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8667 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8668 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8669 ppc_insert_point, ppc_remove_point.
8671 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8673 * linux-s390-low.c (s390_supports_z_point_type): New function.
8674 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8676 2016-02-16 Yao Qi <yao.qi@linaro.org>
8678 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8679 PC. Get pc from regcache_read_pc.
8681 2016-02-12 Yao Qi <yao.qi@linaro.org>
8683 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8684 or linux_get_pc_32bit.
8685 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8687 2016-02-12 Yao Qi <yao.qi@linaro.org>
8689 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8690 arm_linux_get_next_pcs_fixup.
8692 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8694 * tracepoint.c (x_tracepoint_action_download): Change
8695 write_inferior_data_ptr to write_inferior_data_pointer.
8696 (cmd_qtstart): Likewise.
8697 (write_inferior_data_ptr): Remove.
8698 (download_agent_expr): Change write_inferior_data_ptr to
8699 write_inferior_data_pointer.
8700 (download_tracepoint_1): Likewise.
8701 (download_tracepoint): Likewise.
8702 (download_trace_state_variables): Likewise.
8704 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8705 Marcin Kościelnicki <koriakin@0x04.net>
8707 * tracepoint.c (struct tracepoint_action_ops): Remove.
8708 (struct tracepoint_action): Remove ops.
8709 (m_tracepoint_action_download, r_tracepoint_action_download)
8710 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8711 size and offset accordingly.
8712 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8713 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8714 (tracepoint_action_send, tracepoint_action_download): New functions.
8715 Helpers for trace action handlers.
8716 (add_tracepoint_action): Remove setup actions ops.
8717 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8719 2016-02-10 Yao Qi <yao.qi@linaro.org>
8721 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8723 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8725 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8727 * configure: Regenerate.
8729 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8731 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8732 void * to gdb_byte *.
8733 * linux-low.c (siginfo_fixup): Likewise.
8734 (linux_xfer_siginfo): Likewise.
8735 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8737 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8739 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8741 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8743 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8745 * linux-x86-low.c [__x86_64__]: Include
8746 "nat/amd64-linux-siginfo.h".
8747 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8748 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8749 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8750 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8751 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8752 (cpt_si_fd, si_timerid, si_overrun): Move from
8753 nat/amd64-linux-siginfo.c.
8754 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8756 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8758 * server.c (skip_to_semicolon): Remove.
8759 (process_point_options): Use strchrnul instead of
8762 2016-01-26 Yao Qi <yao.qi@linaro.org>
8764 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8765 * linux-low.c (install_software_single_step_breakpoints): Don't
8766 call regcache_read_pc.
8767 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8770 2016-01-26 Yao Qi <yao.qi@linaro.org>
8772 * linux-low.c (install_software_single_step_breakpoints): Call
8773 regcache_read_pc instead of get_pc.
8775 2016-01-26 Yao Qi <yao.qi@linaro.org>
8777 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8778 (unblock_async_io): Rename to ...
8779 (block_unblock_async_io): ... it. New function.
8780 (enable_async_io): Don't install SIGIO handler. Unblock it
8782 (disable_async_io): Don't ignore SIGIO. Block it instead.
8783 (initialize_async_io): Install SIGIO handler. Don't call
8786 2016-01-26 Yao Qi <yao.qi@linaro.org>
8788 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8789 first character is '\003', call *the_target->request_interrupt.
8791 2016-01-25 Yao Qi <yao.qi@linaro.org>
8793 * remote-utils.c (new_thread_notify): Remove.
8794 (dead_thread_notify): Likewise.
8795 * remote-utils.h (new_thread_notify): Remove declaration.
8796 (dead_thread_notify): Likewise.
8798 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8800 * gdb.trace/pending.exp: Fix expected message on continue.
8802 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8804 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8805 it works properly on big-endian machines where sizeof (CORE_ADDR)
8808 2016-01-21 Pedro Alves <palves@redhat.com>
8810 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8811 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8812 * configure: Regenerate.
8814 2016-01-21 Yao Qi <yao.qi@linaro.org>
8816 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8817 is_thumb and set it according to CPSR saved on the stack.
8818 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8819 arm_sigreturn_next_pc.
8821 2016-01-18 Yao Qi <yao.qi@linaro.org>
8823 * linux-low.c (linux_set_pc_64bit): New function.
8824 (linux_get_pc_64bit): New function.
8825 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8827 * linux-sparc-low.c (debug_threads): Remove declaration.
8828 (sparc_get_pc): Remove.
8829 (the_low_target): Use linux_get_pc_64bit instead of
8831 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8832 (the_low_target): Use linux_get_pc_64bit and
8835 2016-01-18 Yao Qi <yao.qi@linaro.org>
8837 * linux-arm-low.c (debug_threads): Remove declaration.
8838 (arm_get_pc, arm_set_pc): Remove.
8839 (the_low_target): Use linux_get_pc_32bit and
8841 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8842 (the_low_target): Use linux_get_pc_32bit and
8844 * linux-cris-low.c (debug_threads): Remove declaration.
8845 (cris_get_pc, cris_set_pc,): Remove.
8846 (the_low_target): Use linux_get_pc_32bit and
8848 * linux-crisv32-low.c (debug_threads): Remove declaration.
8849 (cris_get_pc, cris_set_pc): Remove.
8850 (the_low_target): Use linux_get_pc_32bit and
8852 * linux-low.c: Include inttypes.h.
8853 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8854 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8855 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8856 (the_low_target): Use linux_get_pc_32bit and
8858 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8859 (the_low_target): Use linux_get_pc_32bit and
8861 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8862 (the_low_target): Use linux_get_pc_32bit and
8864 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8865 (the_low_target): Use linux_get_pc_32bit and
8867 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8868 (the_low_target): Use linux_get_pc_32bit and
8871 2016-01-18 Gary Benson <gbenson@redhat.com>
8873 * configure.ac (AC_FUNC_FORK): New check.
8874 * config.in: Regenerate.
8875 * configure: Likewise.
8877 2016-01-14 Yao Qi <yao.qi@linaro.org>
8879 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8880 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8881 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8882 arm_get_next_pcs_ctor.
8884 2016-01-12 Josh Stone <jistone@redhat.com>
8885 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8887 * inferiors.h: Include "gdb_vecs.h".
8888 (struct process_info): Add syscalls_to_catch.
8889 * inferiors.c (remove_process): Free syscalls_to_catch.
8890 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8891 syscall_return stops.
8892 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8893 * server.c (handle_general_set): Handle QCatchSyscalls.
8894 (handle_query): Report support for QCatchSyscalls.
8895 * target.h (struct target_ops): Add supports_catch_syscall.
8896 (target_supports_catch_syscall): New macro.
8897 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8898 (struct lwp_info): Add syscall_state.
8899 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8900 Maintain syscall_state and syscalls_to_catch across exec.
8901 (get_syscall_trapinfo): New function, proxy to the_low_target.
8902 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8903 (linux_low_filter_event): Toggle syscall_state entry/return for
8904 syscall traps, and set it ignored for all others.
8905 (gdb_catching_syscalls_p): New function.
8906 (gdb_catch_this_syscall_p): New function.
8907 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8908 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8909 (linux_supports_catch_syscall): New function.
8910 (linux_target_ops): Install it.
8911 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8912 (the_low_target): Install it.
8914 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8916 * acinclude.m4: Include new ../warning.m4 file.
8917 * configure: Regenerated.
8918 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8920 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8922 * ax.c (is_goto_target): Mark static.
8923 * linux-low.c (register_addr): Likewise.
8924 (linux_fetch_registers, linux_store_registers): Likewise.
8925 * mem-break.c (any_persistent_commands): Fix old prototype.
8926 (add_commands_to_breakpoint): Mark static.
8927 * regcache.c (find_register_by_name): Delete unused func.
8928 * remote-utils.c (hex_or_minus_one): Mark static.
8929 * server.c (monitor_show_help): Mark static.
8930 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8931 handle_v_requests): Likewise.
8933 2016-01-12 Pedro Alves <palves@redhat.com>
8935 Remove use of the registered trademark symbol throughout.
8937 2016-01-08 Yao Qi <yao.qi@linaro.org>
8939 * remote-utils.c (getpkt): If c is '\003', call target hook
8942 2016-01-06 Yao Qi <yao.qi@linaro.org>
8944 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8945 linux-aarch32-low.c.
8946 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8947 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8948 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8949 (thumb2_breakpoint): Declare.
8950 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8951 linux-aarch32-low.h.
8952 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8953 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8954 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8956 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8958 * gdbreplay.c (gdbreplay_version): Change copyright year in
8960 * server.c (gdbserver_version): Likewise.
8962 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8964 * server.c (crc32_table): Delete.
8965 (crc32): Use libiberty's xcrc32 function.
8967 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8969 * lynx-low.c (lynx_delete_thread_callback): New function.
8970 (lynx_mourn): Properly delete our process and all of its
8971 threads. Remove call to clear_inferiors.
8973 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8975 * target.c (thread_search_callback): Add check that
8976 the thread_stopped target callback is not NULL before
8979 2015-12-21 Yao Qi <yao.qi@linaro.org>
8981 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8984 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8986 * server.c (handle_query): Call target_supports_software_single_step.
8988 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8990 * linux-low.c (single_step): New function.
8991 (linux_resume_one_lwp_throw): Call single_step.
8992 (start_step_over): Likewise.
8994 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8996 * Makefile.in (SFILES): Append arch/arm-linux.c,
8997 arch/arm-get-next-pcs.c.
8998 (arm-linux.o): New rule.
8999 (arm-get-next-pcs.o): New rule.
9000 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9002 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9003 to linux-aarch32-low.c.
9004 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9005 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9006 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9007 (thumb2_breakpoint_len): Likewise.
9008 (arm_is_thumb_mode): Make non-static.
9009 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9010 from linux-aarch32-low.c.
9011 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9012 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9013 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9014 (thumb2_breakpoint_len): Likewise.
9015 (arm_is_thumb_mode): New declaration.
9016 * linux-arm-low.c: Include arch/arm-linux.h
9017 aarch/arm-get-next-pcs.h, sys/syscall.h.
9018 (get_next_pcs_ops): New struct.
9019 (get_next_pcs_addr_bits_remove): New function.
9020 (get_next_pcs_is_thumb): New function.
9021 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9022 (arm_sigreturn_next_pc): Likewise.
9023 (get_next_pcs_syscall_next_pc): Likewise.
9024 (arm_gdbserver_get_next_pcs): Likewise.
9025 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9027 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9028 * server.h: Include gdb_vecs.h.
9030 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9032 * Makefile.in (SFILES): Append common/common-regcache.c.
9033 (OBS): Append common-regcache.o.
9034 (common-regcache.o): New rule.
9035 * regcache.c (init_register_cache): Initialize cache to
9037 (regcache_raw_read_unsigned): New function.
9038 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9039 register_status enum.
9041 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9043 * linux-aarch64-low.c (the_low_targets): Rename
9044 breakpoint_reinsert_addr to get_next_pcs.
9045 * linux-arm-low.c (the_low_targets): Likewise.
9046 * linux-bfin-low.c (the_low_targets): Likewise.
9047 * linux-cris-low.c (the_low_targets): Likewise.
9048 * linux-crisv32-low.c (the_low_targets): Likewise.
9049 * linux-low.c (can_software_single_step): Likewise.
9050 (install_software_single_step_breakpoints): New function.
9051 (start_step_over): Use install_software_single_step_breakpoints.
9052 * linux-low.h: New CORE_ADDR vector.
9053 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9055 * linux-mips-low.c (the_low_targets): Likewise.
9056 * linux-nios2-low.c (the_low_targets): Likewise.
9057 * linux-sparc-low.c (the_low_targets): Likewise.
9059 2015-12-17 Pedro Alves <palves@redhat.com>
9061 * linux-low.c (linux_kill_one_lwp): Remove references to
9063 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9065 (linux_init_signals): Delete.
9066 (initialize_low): Adjust.
9067 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9069 2015-12-16 Pedro Alves <palves@redhat.com>
9071 * configure.ac (compiler warning flags): When testing a
9072 -Wno-foo option, check whether -Wfoo works instead.
9073 * configure: Regenerate.
9075 2015-12-11 Don Breazeal <donb@codesourcery.com>
9077 * server.c (process_serial_event): Don't exit from gdbserver
9078 in remote mode if there are still active inferiors.
9080 2015-12-11 Yao Qi <yao.qi@linaro.org>
9082 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9083 arm_breakpoint_at if the process is 32-bit.
9085 2015-12-11 Yao Qi <yao.qi@linaro.org>
9087 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9090 2015-12-07 Yao Qi <yao.qi@linaro.org>
9092 * configure.srv: Append arm.o to srv_tgtobj for
9093 aarch64*-*-linux* target.
9094 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9095 from linux-arm-low.c.
9096 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9097 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9098 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9099 (thumb2_breakpoint_len): Likewise.
9100 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9101 (arm_breakpoint_kinds): Likewise.
9102 (arm_breakpoint_kind_from_pc): Likewise.
9103 (arm_sw_breakpoint_from_kind): Likewise.
9104 (arm_breakpoint_kind_from_current_state): Likewise.
9105 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9106 (arm_sw_breakpoint_from_kind): Declare.
9107 (arm_breakpoint_kind_from_current_state): Declare.
9108 (arm_breakpoint_at): Declare.
9109 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9110 arm_sw_breakpoint_from_kind if process is 32-bit.
9111 (aarch64_breakpoint_kind_from_pc): New function.
9112 (aarch64_breakpoint_kind_from_current_state): New function.
9113 (the_low_target): Initialize fields breakpoint_kind_from_pc
9114 and breakpoint_kind_from_current_state.
9115 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9116 linux-aarch32-low.c.
9117 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9118 (arm_breakpoint, arm_breakpoint_len): Likewise.
9119 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9120 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9121 (arm_is_thumb_mode): Likewise.
9122 (arm_breakpoint_at): Likewise.
9123 (arm_breakpoint_kind_from_pc): Likewise.
9124 (arm_sw_breakpoint_from_kind): Likewise.
9125 (arm_breakpoint_kind_from_current_state): Likewise.
9128 2015-08-04 Yao Qi <yao.qi@linaro.org>
9130 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9131 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9132 * server.c (extended_protocol): Remove "static".
9133 * server.h (extended_protocol): Declare it.
9135 2015-12-04 Josh Stone <jistone@redhat.com>
9137 * target.h (struct target_ops) <arch_setup>: Rename to ...
9138 (struct target_ops) <post_create_inferior>: ... this.
9139 (target_arch_setup): Rename to ...
9140 (target_post_create_inferior): ... this, calling post_create_inferior.
9141 * server.c (start_inferior): Update target_arch_setup calls to
9142 target_post_create_inferior.
9143 * linux-low.c (linux_low_ptrace_options): Forward declare.
9144 (linux_arch_setup): Update its comment for general use.
9145 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9146 (struct linux_target_ops): Use linux_post_create_inferior.
9147 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9148 to post_create_inferior.
9149 * nto-low.c (struct nto_target_ops): Likewise.
9150 * spu-low.c (struct spu_target_ops): Likewise.
9151 * win32-low.c (struct win32_target_ops): Likewise.
9153 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9155 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9157 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9159 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9160 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9161 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9162 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9163 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9164 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9165 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9166 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9167 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9168 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9169 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9170 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9172 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9174 * linux-low.c (linux_look_up_symbols): Don't call
9175 linux_supports_traceclone.
9176 * linux-low.h (thread_db_init): Remove use_events argument.
9177 * thread-db.c (thread_db_use_event): Remove global variable.
9178 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9179 (struct thread_db) <td_create_bp>: Remove field.
9180 (thread_db_create_event): Remove function.
9181 (thread_db_enable_reporting): Likewise.
9182 (find_one_thread): Don't check for thread_db_use_events.
9183 (attach_thread): Likewise.
9184 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9185 (try_thread_db_load_1): Don't check for thread_db_use_events.
9186 (thread_db_init): Remove use_events argument and thread events
9188 (remove_thread_event_breakpoints): Remove function.
9189 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9191 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9193 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9195 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9196 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9197 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9198 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9199 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9201 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9203 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9204 * linux-low.c (can_hardware_single_step): Use
9205 supports_hardware_single_step.
9206 (can_software_single_step): New function.
9207 (start_step_over): Call can_software_single_step.
9208 (linux_supports_hardware_single_step): New function.
9209 (struct target_ops) <supports_software_single_step>: Initialize.
9210 * linux-low.h (struct linux_target_ops)
9211 <supports_hardware_single_step>: Initialize.
9212 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9213 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9214 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9215 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9216 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9217 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9218 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9219 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9220 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9221 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9223 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9224 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9226 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9227 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9228 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9230 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9231 * target.h (struct target_ops): <supports_software_single_step>:
9233 (target_supports_software_single_step): New macro.
9235 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9237 * linux-low.c (linux_wait_1): Fix pc advance condition.
9238 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9239 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9241 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9243 * linux-arm-low.c (arm_is_thumb_mode): New function.
9244 (arm_breakpoint_at): Use arm_is_thumb_mode.
9245 (arm_breakpoint_kind_from_current_state): New function.
9246 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9248 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9249 (linux_breakpoint_kind_from_current_state): New function.
9250 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9251 * linux-low.h (struct linux_target_ops)
9252 <breakpoint_kind_from_current_state>: New field.
9253 * target.h (struct target_ops): Likewise.
9254 (target_breakpoint_kind_from_current_state): New macro.
9256 2015-11-30 Pedro Alves <palves@redhat.com>
9258 * linux-low.c (linux_resume): Wake up the event loop before
9261 2015-11-30 Pedro Alves <palves@redhat.com>
9263 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9265 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9267 * target.c (struct thread_search): New structure.
9268 (thread_search_callback): New function.
9269 (prev_general_thread): New global.
9270 (prepare_to_access_memory, done_accessing_memory): New functions.
9271 * target.h (prepare_to_access_memory, done_accessing_memory):
9272 Replace macros with function declarations.
9274 2015-11-30 Pedro Alves <palves@redhat.com>
9277 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9278 report TARGET_WAITKIND_NO_RESUMED.
9279 * remote-utils.c (prepare_resume_reply): Handle
9280 TARGET_WAITKIND_NO_RESUMED.
9281 * server.c (report_no_resumed): New global.
9282 (handle_query) <qSupported>: Handle "no-resumed+". Report
9283 "no-resumed+" support.
9284 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9285 return error if the client doesn't support no-resumed events.
9286 (push_stop_notification): New function.
9287 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9288 events if the client supports them.
9290 2015-11-30 Pedro Alves <palves@redhat.com>
9292 * linux-low.c (thread_still_has_status_pending_p): Don't check
9294 (lwp_resumed): New function.
9295 (status_pending_p_callback): Return early if the LWP is not
9296 supposed to be resumed.
9298 2015-11-30 Pedro Alves <palves@redhat.com>
9300 * linux-low.c (handle_extended_wait): Assert that the LWP's
9301 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9302 thread create events, leave the new child's status pending.
9303 (linux_low_filter_event): If GDB wants to hear about thread exit
9304 events, leave the LWP marked dead and don't delete it.
9305 (linux_wait_for_event_filtered): Don't check for thread exit.
9306 (filter_exit_event): New function.
9307 (linux_wait_1): Use it, when returning an exit event.
9308 (linux_resume_one_lwp_throw): Assert that the LWP's
9309 waitstatus is TARGET_WAITKIND_IGNORE.
9310 * remote-utils.c (prepare_resume_reply): Handle
9311 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9312 * server.c (report_thread_events): New global.
9313 (handle_general_set): Handle QThreadEvents.
9314 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9315 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9316 TARGET_WAITKIND_THREAD_EXITED.
9317 * server.h (report_thread_events): Declare.
9319 2015-11-30 Pedro Alves <palves@redhat.com>
9321 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9322 the thread's last_resume_kind was resume_stop.
9324 2015-11-30 Pedro Alves <palves@redhat.com>
9326 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9329 2015-11-30 Pedro Alves <palves@redhat.com>
9331 * server.c (handle_v_requests): Handle vCtrlC.
9333 2015-11-30 Pedro Alves <palves@redhat.com>
9335 * gdbthread.h (find_any_thread_of_pid): Declare.
9336 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9338 * server.c (handle_query): If current_thread is NULL, look for
9339 another thread of the selected process.
9341 2015-11-26 Daniel Colascione <dancol@dancol.org>
9342 Simon Marchi <simon.marchi@ericsson.com>
9344 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9345 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9347 * target.h (struct target_ops) <thread_name>: New field.
9348 (target_thread_name): New macro.
9350 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9352 * regcache.h (regcache_invalidate_pid): Add declaration.
9353 * regcache.c (regcache_invalidate_pid): New function, extracted
9354 from regcache_invalidate.
9355 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9356 Add trivial documentation comment.
9357 * lynx-low.c: Use regcache_invalidate_pid instead of
9358 regcache_invalidate.
9360 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9362 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9363 and Elf64_auxv_t if the target is Android.
9365 2015-11-22 Doug Evans <xdje42@gmail.com>
9367 * target.h: #include <sys/types.h>.
9369 2015-11-19 Pedro Alves <palves@redhat.com>
9371 * linux-low.c (linux_process_qsupported): Change prototype.
9373 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9375 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9376 and adjust to loop over all features.
9377 * server.c (handle_query) <qSupported>: Adjust to call
9378 target_process_qsupported once, passing it a vector of unprocessed
9380 * target.h (struct target_ops) <process_qsupported>: Change
9382 (target_process_qsupported): Adjust.
9384 2015-11-19 Pedro Alves <palves@redhat.com>
9386 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9388 * configure: Regenerate.
9390 2015-11-19 Pedro Alves <palves@redhat.com>
9392 * configure: Regenerate.
9394 2015-11-19 Yao Qi <yao.qi@linaro.org>
9396 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9399 2015-11-19 Yao Qi <yao.qi@linaro.org>
9401 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9402 (struct aarch64_operand): Move enum out.
9404 2015-11-19 Yao Qi <yao.qi@linaro.org>
9406 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9407 struct user_fpsimd_state *.
9408 (aarch64_store_fpregset): Likewise.
9410 2015-11-19 Yao Qi <yao.qi@linaro.org>
9412 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9413 struct user_pt_regs *.
9414 (aarch64_store_gregset): Likewise.
9416 2015-11-18 Pedro Alves <palves@redhat.com>
9418 * Makefile.in (all_object_files): Add $IPA_OBJS.
9420 2015-11-17 Pedro Alves <palves@redhat.com>
9422 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9423 GDB_SIGNAL_0 and gdb_signal_to_string.
9425 2015-11-17 Pedro Alves <palves@redhat.com>
9427 * win32-low.c (handle_output_debug_string): Remove parameter.
9428 (win32_kill): Remove our_status local and adjust call to
9429 handle_output_debug_string.
9430 (get_child_debug_event): Adjust call to
9431 handle_output_debug_string.
9433 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9435 * linux-mips-low.c (mips_fill_gregset): Add cast.
9436 (mips_store_gregset): Likewise.
9437 (mips_fill_fpregset): Likewise.
9438 (mips_store_fpregset): Likewise.
9440 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9442 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9445 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9447 * linux-mips-low.c (mips_linux_new_thread): Change type of
9448 watch_type to enum target_hw_bp_type.
9450 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9452 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9453 Change return type to arm_hwbp_type.
9455 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9457 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9458 (arm_store_gregset): Likewise.
9459 * linux-arm-low.c (arm_get_hwcap): Likewise.
9460 (arm_read_description): Likewise.
9462 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9464 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9466 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9468 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9469 (ppc_fill_vsxregset): Likewise.
9470 (ppc_store_vsxregset): Likewise.
9471 (ppc_fill_vrregset): Likewise.
9472 (ppc_store_vrregset): Likewise.
9473 (ppc_fill_evrregset): Likewise.
9474 (ppc_store_evrregset): Likewise.
9476 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9478 * linux-ppc-low.c (ppc_usrregs_info): Remove
9479 forward-declaration.
9480 (ppc_arch_setup): Move lower in file.
9482 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9484 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9485 (ps_pdwrite): Likewise.
9487 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9489 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9490 to after assert checks.
9492 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9494 * proc-service.c (ps_pdread): Add/adjust casts.
9495 (ps_pdwrite): Add/adjust casts.
9497 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9499 * server.c (handle_search_memory_1): Cast return value of
9502 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9504 * server.c (write_qxfer_response): Change type of data to
9507 2015-10-29 Pedro Alves <palves@redhat.com>
9509 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9511 2015-10-29 Pedro Alves <palves@redhat.com>
9513 * tracepoint.c (clear_installed_tracepoints): Add casts.
9515 2015-10-29 Pedro Alves <palves@redhat.com>
9517 * server.c (handle_v_cont, process_serial_event): Add enum
9518 gdb_signal casts to signal parsing code.
9520 2015-10-29 Pedro Alves <palves@redhat.com>
9522 * linux-low.h (NULL_REGSET): Define.
9523 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9524 * linux-arm-low.c (arm_regsets): Likewise.
9525 * linux-crisv32-low.c (cris_regsets): Likewise.
9526 * linux-m68k-low.c (m68k_regsets): Likewise.
9527 * linux-mips-low.c (mips_regsets): Likewise.
9528 * linux-nios2-low.c (nios2_regsets): Likewise.
9529 * linux-ppc-low.c (ppc_regsets): Likewise.
9530 * linux-s390-low.c (s390_regsets): Likewise.
9531 * linux-sh-low.c (sh_regsets): Likewise.
9532 * linux-sparc-low.c (sparc_regsets): Likewise.
9533 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9534 * linux-tile-low.c (tile_regsets): Likewise.
9535 * linux-x86-low.c (x86_regsets): Likewise.
9536 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9538 2015-10-29 Pedro Alves <palves@redhat.com>
9540 * linux-low.h (NULL_REGSET): Define.
9541 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9542 * linux-arm-low.c (arm_regsets): Likewise.
9543 * linux-crisv32-low.c (cris_regsets): Likewise.
9544 * linux-m68k-low.c (m68k_regsets): Likewise.
9545 * linux-mips-low.c (mips_regsets): Likewise.
9546 * linux-nios2-low.c (nios2_regsets): Likewise.
9547 * linux-ppc-low.c (ppc_regsets): Likewise.
9548 * linux-s390-low.c (s390_regsets): Likewise.
9549 * linux-sh-low.c (sh_regsets): Likewise.
9550 * linux-sparc-low.c (sparc_regsets): Likewise.
9551 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9552 * linux-tile-low.c (tile_regsets): Likewise.
9553 * linux-x86-low.c (x86_regsets): Likewise.
9554 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9556 2015-10-26 Doug Evans <dje@google.com>
9558 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9560 2015-10-26 Doug Evans <dje@google.com>
9562 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9564 2015-10-26 Doug Evans <dje@google.com>
9566 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9568 (attach_thread, find_new_threads_callback): Ditto.
9570 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9572 * mem-break.h (set_breakpoint_data): Remove.
9574 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9576 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9577 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9578 (initialize_low): Remove set_breakpoint_data call.
9579 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9580 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9581 (initialize_low): Remove set_breakpoint_data call.
9582 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9583 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9584 (initialize_low): Remove set_breakpoint_data call.
9586 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9588 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9589 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9590 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9591 * target.h (target_breakpoint_kind_from_pc): New macro.
9593 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9595 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9596 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9597 the default breakpoint kind.
9599 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9601 * linux-arm-low.c (arm_supports_z_point_type): Add software
9604 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9606 * linux-arm-low.c: Refactor breakpoint definitions.
9607 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9608 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9610 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9612 * Makefile.in: Add arm.c/o.
9613 * configure.srv: Likewise.
9614 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9615 (arm_breakpoint_kind_from_pc): New function.
9616 (arm_sw_breakpoint_from_kind): Return proper kind.
9617 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9619 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9621 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9623 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9624 (struct raw_breakpoint) <size>: Remove.
9625 (struct raw_breakpoint) <kind>: Add.
9626 (bp_size): New function.
9627 (bp_opcode): Likewise.
9628 (find_raw_breakpoint_at): Adjust for kind.
9629 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9630 (remove_memory_breakpoint): Adjust for kind call bp_size.
9631 (set_raw_breakpoint_at): Adjust for kind.
9632 (set_breakpoint): Likewise.
9633 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9634 (delete_raw_breakpoint): Adjust for kind.
9635 (delete_breakpoint): Likewise.
9636 (find_gdb_breakpoint): Likewise.
9637 (set_gdb_breakpoint_1): Likewise.
9638 (set_gdb_breakpoint): Likewise.
9639 (delete_gdb_breakpoint_1): Likewise.
9640 (delete_gdb_breakpoint): Likewise.
9641 (uninsert_raw_breakpoint): Likewise.
9642 (reinsert_raw_breakpoint): Likewise.
9643 (set_breakpoint_data): Remove.
9644 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9645 (check_mem_read): Adjust for kind call bp_size.
9646 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9647 (clone_one_breakpoint): Adjust for kind.
9648 * mem-break.h (set_gdb_breakpoint): Likewise.
9649 (delete_gdb_breakpoint): Likewise.
9650 * server.c (process_serial_event): Likewise.
9652 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9654 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9655 (struct linux_target_ops) <breakpoint>: Remove.
9656 (struct linux_target_ops) <breakpoint_len>: Remove.
9657 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9658 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9659 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9660 (arm_sw_breakpoint_from_kind): New function.
9661 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9662 (struct linux_target_ops) <breakpoint>: Remove.
9663 (struct linux_target_ops) <breakpoint_len>: Remove.
9664 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9665 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9666 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9667 (struct linux_target_ops) <breakpoint>: Remove.
9668 (struct linux_target_ops) <breakpoint_len>: Remove.
9669 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9670 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9671 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9672 (struct linux_target_ops) <breakpoint>: Remove.
9673 (struct linux_target_ops) <breakpoint_len>: Remove.
9674 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9675 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9676 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9677 and sw_breakpoint_from_kind to increment the pc.
9678 (linux_breakpoint_kind_from_pc): New function.
9679 (linux_sw_breakpoint_from_kind): New function.
9680 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9681 (initialize_low): Call breakpoint_kind_from_pc and
9682 sw_breakpoint_from_kind to replace breakpoint_data/len.
9683 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9685 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9686 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9687 (struct linux_target_ops) <breakpoint>: Remove.
9688 (struct linux_target_ops) <breakpoint_len>: Remove.
9689 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9690 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9691 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9692 (struct linux_target_ops) <breakpoint>: Remove.
9693 (struct linux_target_ops) <breakpoint_len>: Remove.
9694 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9695 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9696 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9697 (struct linux_target_ops) <breakpoint>: Remove.
9698 (struct linux_target_ops) <breakpoint_len>: Remove.
9699 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9700 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9701 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9702 (struct linux_target_ops) <breakpoint>: Remove.
9703 (struct linux_target_ops) <breakpoint_len>: Remove.
9704 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9705 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9706 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9707 (struct linux_target_ops) <breakpoint>: Remove.
9708 (struct linux_target_ops) <breakpoint_len>: Remove.
9709 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9710 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9711 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9712 (struct linux_target_ops) <breakpoint>: Remove.
9713 (struct linux_target_ops) <breakpoint_len>: Remove.
9714 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9715 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9716 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9717 (struct linux_target_ops) <breakpoint>: Remove.
9718 (struct linux_target_ops) <breakpoint_len>: Remove.
9719 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9720 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9721 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9722 (struct linux_target_ops) <breakpoint>: Remove.
9723 (struct linux_target_ops) <breakpoint_len>: Remove.
9724 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9725 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9726 * linux-tic6x-low.c (tic6x_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-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9732 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9733 (struct linux_target_ops) <breakpoint>: Remove.
9734 (struct linux_target_ops) <breakpoint_len>: Remove.
9735 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9736 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9737 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9738 (struct linux_target_ops) <breakpoint>: Remove.
9739 (struct linux_target_ops) <breakpoint_len>: Remove.
9740 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9741 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9743 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9745 * linux-cris-low.c (cris_get_pc): Remove void arg.
9747 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9749 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9752 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9754 * inferiors.c (thread_pid_matches_callback): New function.
9755 (find_thread_process): New function.
9756 (remove_thread): Reset current_thread.
9757 (remove_process): Assert threads have been removed first.
9759 2015-10-15 Yao Qi <yao.qi@linaro.org>
9761 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9763 (aarch64_remove_point): Likewise.
9764 * regcache.c (regcache_register_size): New function.
9766 2015-10-12 Yao Qi <yao.qi@linaro.org>
9768 * linux-aarch64-low.c: Update all callers as emit_load_store
9769 is renamed to aarch64_emit_load_store.
9771 2015-10-12 Yao Qi <yao.qi@linaro.org>
9773 * linux-aarch64-low.c: Update all callers of function renaming
9774 from emit_insn to aarch64_emit_insn.
9776 2015-10-12 Yao Qi <yao.qi@linaro.org>
9778 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9779 arch/aarch64-insn.h.
9780 (struct aarch64_memory_operand): Likewise.
9782 (emit_insn): Move to arch/aarch64-insn.c.
9783 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9784 (emit_load_store): Move to arch/aarch64-insn.c.
9785 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9786 (can_encode_int32): Remove.
9788 2015-10-12 Yao Qi <yao.qi@linaro.org>
9790 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9791 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9792 (aarch64_relocate_instruction): Likewise.
9793 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9794 (struct aarch64_insn_visitor): Likewise.
9796 2015-10-12 Yao Qi <yao.qi@linaro.org>
9798 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9799 (struct aarch64_insn_visitor): New.
9800 (struct aarch64_insn_relocation_data): New.
9801 (aarch64_ftrace_insn_reloc_b): New function.
9802 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9803 (aarch64_ftrace_insn_reloc_cb): Likewise.
9804 (aarch64_ftrace_insn_reloc_tb): Likewise.
9805 (aarch64_ftrace_insn_reloc_adr): Likewise.
9806 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9807 (aarch64_ftrace_insn_reloc_others): Likewise.
9809 (aarch64_relocate_instruction): Use visitor.
9811 2015-10-12 Yao Qi <yao.qi@linaro.org>
9813 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9814 int. Add argument buf.
9815 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9816 aarch64_relocate_instruction.
9818 2015-10-12 Yao Qi <yao.qi@linaro.org>
9820 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9821 argument insn. Remove local variable insn. Don't call
9823 (aarch64_install_fast_tracepoint_jump_pad): Call
9826 2015-09-30 Yao Qi <yao.qi@linaro.org>
9828 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9829 (emit_load_store_pair): Likewise.
9831 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9833 * dll.c (match_dll): Add cast(s).
9834 (unloaded_dll): Likewise.
9835 * linux-low.c (second_thread_of_pid_p): Likewise.
9836 (delete_lwp_callback): Likewise.
9837 (count_events_callback): Likewise.
9838 (select_event_lwp_callback): Likewise.
9839 (linux_set_resume_request): Likewise.
9840 * server.c (accumulate_file_name_length): Likewise.
9841 (emit_dll_description): Likewise.
9842 (handle_qxfer_threads_worker): Likewise.
9843 (visit_actioned_threads): Likewise.
9844 * thread-db.c (any_thread_of): Likewise.
9845 * tracepoint.c (same_process_p): Likewise.
9846 (match_blocktype): Likewise.
9847 (build_traceframe_info_xml): Likewise.
9849 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9851 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9853 (gdb_unparse_agent_expr): Likewise.
9854 * hostio.c (require_data): Likewise.
9855 (handle_pread): Likewise.
9856 * linux-low.c (disable_regset): Likewise.
9857 (fetch_register): Likewise.
9858 (store_register): Likewise.
9859 (get_dynamic): Likewise.
9860 (linux_qxfer_libraries_svr4): Likewise.
9861 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9862 (set_fast_tracepoint_jump): Likewise.
9863 (uninsert_fast_tracepoint_jumps_at): Likewise.
9864 (reinsert_fast_tracepoint_jumps_at): Likewise.
9865 (validate_inserted_breakpoint): Likewise.
9866 (clone_agent_expr): Likewise.
9867 * regcache.c (init_register_cache): Likewise.
9868 * remote-utils.c (putpkt_binary_1): Likewise.
9869 (decode_M_packet): Likewise.
9870 (decode_X_packet): Likewise.
9871 (look_up_one_symbol): Likewise.
9872 (relocate_instruction): Likewise.
9873 (monitor_output): Likewise.
9874 * server.c (handle_search_memory): Likewise.
9875 (handle_qxfer_exec_file): Likewise.
9876 (handle_qxfer_libraries): Likewise.
9877 (handle_qxfer): Likewise.
9878 (handle_query): Likewise.
9879 (handle_v_cont): Likewise.
9880 (handle_v_run): Likewise.
9881 (captured_main): Likewise.
9882 * target.c (write_inferior_memory): Likewise.
9883 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9884 * tracepoint.c (init_trace_buffer): Likewise.
9885 (add_tracepoint_action): Likewise.
9886 (add_traceframe): Likewise.
9887 (add_traceframe_block): Likewise.
9888 (cmd_qtdpsrc): Likewise.
9889 (cmd_qtdv): Likewise.
9890 (cmd_qtstatus): Likewise.
9891 (response_source): Likewise.
9892 (response_tsv): Likewise.
9893 (cmd_qtnotes): Likewise.
9894 (gdb_collect): Likewise.
9895 (initialize_tracepoint): Likewise.
9897 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9899 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9900 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9901 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9903 (enum aarch64_condition_codes): New enum.
9904 (w0): New static global.
9907 (struct aarch64_memory_operand) <type>: New
9908 MEMORY_OPERAND_POSTINDEX type.
9909 (postindex_memory_operand): New helper function.
9910 (emit_ret): New function.
9911 (emit_load_store_pair): New function, factored out of emit_stp
9912 with support for MEMORY_OPERAND_POSTINDEX.
9913 (emit_stp): Rewrite using emit_load_store_pair.
9914 (emit_ldp): New function.
9915 (emit_load_store): Likewise.
9916 (emit_ldr): Mention post-index instruction in comment.
9917 (emit_ldrh): New function.
9918 (emit_ldrb): New function.
9919 (emit_ldrsw): Mention post-index instruction in comment.
9920 (emit_str): Likewise.
9921 (emit_subs): New function.
9922 (emit_cmp): Likewise.
9923 (emit_and): Likewise.
9924 (emit_orr): Likewise.
9925 (emit_orn): Likewise.
9926 (emit_eor): Likewise.
9927 (emit_mvn): Likewise.
9928 (emit_lslv): Likewise.
9929 (emit_lsrv): Likewise.
9930 (emit_asrv): Likewise.
9931 (emit_mul): Likewise.
9932 (emit_sbfm): Likewise.
9933 (emit_sbfx): Likewise.
9934 (emit_ubfm): Likewise.
9935 (emit_ubfx): Likewise.
9936 (emit_csinc): Likewise.
9937 (emit_cset): Likewise.
9938 (emit_nop): Likewise.
9939 (emit_ops_insns): New helper function.
9940 (emit_pop): Likewise.
9941 (emit_push): Likewise.
9942 (aarch64_emit_prologue): New function.
9943 (aarch64_emit_epilogue): Likewise.
9944 (aarch64_emit_add): Likewise.
9945 (aarch64_emit_sub): Likewise.
9946 (aarch64_emit_mul): Likewise.
9947 (aarch64_emit_lsh): Likewise.
9948 (aarch64_emit_rsh_signed): Likewise.
9949 (aarch64_emit_rsh_unsigned): Likewise.
9950 (aarch64_emit_ext): Likewise.
9951 (aarch64_emit_log_not): Likewise.
9952 (aarch64_emit_bit_and): Likewise.
9953 (aarch64_emit_bit_or): Likewise.
9954 (aarch64_emit_bit_xor): Likewise.
9955 (aarch64_emit_bit_not): Likewise.
9956 (aarch64_emit_equal): Likewise.
9957 (aarch64_emit_less_signed): Likewise.
9958 (aarch64_emit_less_unsigned): Likewise.
9959 (aarch64_emit_ref): Likewise.
9960 (aarch64_emit_if_goto): Likewise.
9961 (aarch64_emit_goto): Likewise.
9962 (aarch64_write_goto_address): Likewise.
9963 (aarch64_emit_const): Likewise.
9964 (aarch64_emit_call): Likewise.
9965 (aarch64_emit_reg): Likewise.
9966 (aarch64_emit_pop): Likewise.
9967 (aarch64_emit_stack_flush): Likewise.
9968 (aarch64_emit_zero_ext): Likewise.
9969 (aarch64_emit_swap): Likewise.
9970 (aarch64_emit_stack_adjust): Likewise.
9971 (aarch64_emit_int_call_1): Likewise.
9972 (aarch64_emit_void_call_2): Likewise.
9973 (aarch64_emit_eq_goto): Likewise.
9974 (aarch64_emit_ne_goto): Likewise.
9975 (aarch64_emit_lt_goto): Likewise.
9976 (aarch64_emit_le_goto): Likewise.
9977 (aarch64_emit_gt_goto): Likewise.
9978 (aarch64_emit_ge_got): Likewise.
9979 (aarch64_emit_ops_impl): New static global variable.
9980 (aarch64_emit_ops): New target function, return
9981 &aarch64_emit_ops_impl.
9982 (struct linux_target_ops): Install it.
9984 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9986 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9987 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9989 * linux-aarch64-ipa.c: New file.
9990 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9992 (aarch64_get_thread_area): New target method.
9993 (extract_signed_bitfield): New helper function.
9994 (aarch64_decode_ldr_literal): New function.
9995 (enum aarch64_opcodes): New enum.
9996 (struct aarch64_register): New struct.
9997 (struct aarch64_operand): New struct.
9998 (x0): New static global.
10007 (aarch64_register): New helper function.
10008 (register_operand): Likewise.
10009 (immediate_operand): Likewise.
10010 (struct aarch64_memory_operand): New struct.
10011 (offset_memory_operand): New helper function.
10012 (preindex_memory_operand): Likewise.
10013 (enum aarch64_system_control_registers): New enum.
10014 (ENCODE): New macro.
10015 (emit_insn): New helper function.
10016 (emit_b): New function.
10017 (emit_bcond): Likewise.
10018 (emit_cb): Likewise.
10019 (emit_tb): Likewise.
10020 (emit_blr): Likewise.
10021 (emit_stp): Likewise.
10022 (emit_ldp_q_offset): Likewise.
10023 (emit_stp_q_offset): Likewise.
10024 (emit_load_store): Likewise.
10025 (emit_ldr): Likewise.
10026 (emit_ldrsw): Likewise.
10027 (emit_str): Likewise.
10028 (emit_ldaxr): Likewise.
10029 (emit_stxr): Likewise.
10030 (emit_stlr): Likewise.
10031 (emit_data_processing_reg): Likewise.
10032 (emit_data_processing): Likewise.
10033 (emit_add): Likewise.
10034 (emit_sub): Likewise.
10035 (emit_mov): Likewise.
10036 (emit_movk): Likewise.
10037 (emit_mov_addr): Likewise.
10038 (emit_mrs): Likewise.
10039 (emit_msr): Likewise.
10040 (emit_sevl): Likewise.
10041 (emit_wfe): Likewise.
10042 (append_insns): Likewise.
10043 (can_encode_int32_in): New helper function.
10044 (aarch64_relocate_instruction): New function.
10045 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10046 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10047 (struct linux_target_ops): Install aarch64_get_thread_area,
10048 aarch64_install_fast_tracepoint_jump_pad and
10049 aarch64_get_min_fast_tracepoint_insn_len.
10051 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10053 * Makefile.in (aarch64-insn.o): New rule.
10054 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10056 2015-09-21 Yao Qi <yao.qi@linaro.org>
10058 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10060 2015-09-21 Yao Qi <yao.qi@linaro.org>
10062 * tracepoint.c (max_jump_pad_size): Remove.
10064 2015-09-18 Yao Qi <yao.qi@linaro.org>
10066 * linux-aarch64-low.c: Don't include sys/uio.h.
10067 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10069 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10071 * tracepoint.c (eval_result_type): Change prototype.
10072 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10074 2015-09-15 Pedro Alves <palves@redhat.com>
10076 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10077 Check whether to report exec events instead of checking whether
10078 multiprocess is enabled.
10080 2015-09-15 Pedro Alves <palves@redhat.com>
10083 * remote-utils.c (prepare_resume_reply): Merge
10084 TARGET_WAITKIND_VFORK_DONE switch case with the
10085 TARGET_WAITKIND_FORKED case.
10087 2015-09-15 Yao Qi <yao.qi@linaro.org>
10089 * server.c (handle_query): Check string comparison using
10090 "else if" instead of "if".
10092 2015-09-15 Yao Qi <yao.qi@linaro.org>
10094 * server.c (vCont_supported): New global variable.
10095 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10096 matches. Append ";vContSupported+" to own_buf.
10097 (handle_v_requests): Append ";s;S" to own_buf if target supports
10098 hardware single step or vCont_supported is false.
10099 (capture_main): Set vCont_supported to zero.
10101 2015-09-15 Yao Qi <yao.qi@linaro.org>
10103 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10105 (linux_supports_hardware_single_step): ... New function.
10106 (linux_target_ops): Update.
10107 * lynx-low.c (lynx_target_ops): Set field
10108 supports_hardware_single_step to target_can_do_hardware_single_step.
10109 * nto-low.c (nto_target_ops): Likewise.
10110 * spu-low.c (spu_target_ops): Likewise.
10111 * win32-low.c (win32_target_ops): Likewise.
10112 * target.c (target_can_do_hardware_single_step): New function.
10113 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10114 Remove. <supports_hardware_single_step>: New field.
10115 (target_supports_conditional_breakpoints): Remove.
10116 (target_supports_hardware_single_step): New macro.
10117 (target_can_do_hardware_single_step): Declare.
10118 * server.c (handle_query): Use target_supports_hardware_single_step
10119 instead of target_supports_conditional_breakpoints.
10121 2015-09-15 Yao Qi <yao.qi@linaro.org>
10123 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10125 (struct linux_target_ops the_low_target): Install
10126 aarch64_linux_siginfo_fixup.
10128 2015-09-11 Don Breazeal <donb@codesourcery.com>
10129 Luis Machado <lgustavo@codesourcery.com>
10131 * linux-low.c (linux_mourn): Static declaration.
10132 (linux_arch_setup): Move in front of
10133 handle_extended_wait.
10134 (linux_arch_setup_thread): New function.
10135 (handle_extended_wait): Handle exec events. Call
10136 linux_arch_setup_thread. Make event_lwp argument a
10137 pointer-to-a-pointer.
10138 (check_zombie_leaders): Do not check stopped threads.
10139 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10140 (linux_low_filter_event): Add lwp and thread for exec'ing
10141 non-leader thread if leader thread has been deleted.
10142 Refactor code into linux_arch_setup_thread and call it.
10143 Pass child lwp pointer by reference to handle_extended_wait.
10144 (linux_wait_for_event_filtered): Update comment.
10145 (linux_wait_1): Prevent clobbering exec event status.
10146 (linux_supports_exec_events): New function.
10147 (linux_target_ops) <supports_exec_events>: Initialize new member.
10148 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10150 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10151 * server.c (report_exec_events): New global variable.
10152 (handle_query): Handle qSupported query for exec-events feature.
10153 (captured_main): Initialize report_exec_events.
10154 * server.h (report_exec_events): Declare new global variable.
10155 * target.h (struct target_ops) <supports_exec_events>: New
10157 (target_supports_exec_events): New macro.
10158 * win32-low.c (win32_target_ops) <supports_exec_events>:
10159 Initialize new member.
10161 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10163 * linux-low.c (linux_low_enable_btrace): Remove.
10164 (linux_target_ops): Replace linux_low_enable_btrace with
10165 linux_enable_btrace.
10167 2015-09-03 Yao Qi <yao.qi@linaro.org>
10169 * linux-aarch64-low.c (aarch64_insert_point): Call
10170 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10173 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10175 * linux-low.c (check_stopped_by_breakpoint): Use
10176 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10178 2015-08-27 Pedro Alves <palves@redhat.com>
10180 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10182 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10184 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10185 the XNEW-family equivalent.
10186 (compile_bytecodes): Likewise.
10187 * dll.c (loaded_dll): Likewise.
10188 * event-loop.c (append_callback_event): Likewise.
10189 (create_file_handler): Likewise.
10190 (create_file_event): Likewise.
10191 * hostio.c (handle_open): Likewise.
10192 * inferiors.c (add_thread): Likewise.
10193 (add_process): Likewise.
10194 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10195 * linux-arm-low.c (arm_new_process): Likewise.
10196 (arm_new_thread): Likewise.
10197 * linux-low.c (add_to_pid_list): Likewise.
10198 (linux_add_process): Likewise.
10199 (handle_extended_wait): Likewise.
10200 (add_lwp): Likewise.
10201 (enqueue_one_deferred_signal): Likewise.
10202 (enqueue_pending_signal): Likewise.
10203 (linux_resume_one_lwp_throw): Likewise.
10204 (linux_resume_one_thread): Likewise.
10205 (linux_read_memory): Likewise.
10206 (linux_write_memory): Likewise.
10207 * linux-mips-low.c (mips_linux_new_process): Likewise.
10208 (mips_linux_new_thread): Likewise.
10209 (mips_add_watchpoint): Likewise.
10210 * linux-x86-low.c (initialize_low_arch): Likewise.
10211 * lynx-low.c (lynx_add_process): Likewise.
10212 * mem-break.c (set_raw_breakpoint_at): Likewise.
10213 (set_breakpoint): Likewise.
10214 (add_condition_to_breakpoint): Likewise.
10215 (add_commands_to_breakpoint): Likewise.
10216 (clone_agent_expr): Likewise.
10217 (clone_one_breakpoint): Likewise.
10218 * regcache.c (new_register_cache): Likewise.
10219 * remote-utils.c (look_up_one_symbol): Likewise.
10220 * server.c (queue_stop_reply): Likewise.
10221 (start_inferior): Likewise.
10222 (queue_stop_reply_callback): Likewise.
10223 (handle_target_event): Likewise.
10224 * spu-low.c (fetch_ppc_memory): Likewise.
10225 (store_ppc_memory): Likewise.
10226 * target.c (set_target_ops): Likewise.
10227 * thread-db.c (thread_db_load_search): Likewise.
10228 (try_thread_db_load_1): Likewise.
10229 * tracepoint.c (add_tracepoint): Likewise.
10230 (add_tracepoint_action): Likewise.
10231 (create_trace_state_variable): Likewise.
10232 (cmd_qtdpsrc): Likewise.
10233 (cmd_qtro): Likewise.
10234 (add_while_stepping_state): Likewise.
10235 * win32-low.c (child_add_thread): Likewise.
10236 (get_image_name): Likewise.
10238 2015-08-25 Yao Qi <yao.qi@linaro.org>
10240 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10242 2015-08-25 Yao Qi <yao.qi@linaro.org>
10244 * Makefile.in (aarch64-linux.o): New rule.
10245 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10247 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10248 (aarch64_init_debug_reg_state): Make it extern.
10249 (aarch64_linux_prepare_to_resume): Remove.
10251 2015-08-25 Yao Qi <yao.qi@linaro.org>
10253 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10254 lwp_arch_private_info and ptid_of_lwp.
10256 2015-08-25 Yao Qi <yao.qi@linaro.org>
10258 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10259 Find proc_info by find_process_pid. All callers updated.
10261 2015-08-25 Yao Qi <yao.qi@linaro.org>
10263 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10265 (debug_reg_change_callback): Remove.
10266 (aarch64_notify_debug_reg_change): Remove.
10268 2015-08-25 Yao Qi <yao.qi@linaro.org>
10270 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10271 Call current_lwp_ptid.
10273 2015-08-25 Yao Qi <yao.qi@linaro.org>
10275 * linux-aarch64-low.c (debug_reg_change_callback): Use
10278 2015-08-25 Yao Qi <yao.qi@linaro.org>
10280 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10282 2015-08-25 Yao Qi <yao.qi@linaro.org>
10284 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10286 2015-08-25 Yao Qi <yao.qi@linaro.org>
10288 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10291 2015-08-25 Yao Qi <yao.qi@linaro.org>
10293 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10295 (debug_reg_change_callback): Remove argument entry and add argument
10296 lwp. Remove local variable thread. Don't print thread id in the
10297 debugging output. Don't check whether pid of thread equals to pid.
10298 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10299 iterate_over_lwps instead find_inferior.
10301 2015-08-24 Pedro Alves <palves@redhat.com>
10303 * inferiors.c (get_first_process): New function.
10304 * inferiors.h (get_first_process): New declaration.
10305 * remote-utils.c (read_ptid): Default to the first process in the
10306 list, instead of to the current thread's process.
10308 2015-08-24 Pedro Alves <palves@redhat.com>
10310 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10311 * event-loop.c: Likewise.
10312 * remote-utils.c: Likewise.
10313 * tracepoint.c: Likewise.
10315 2015-08-24 Pedro Alves <palves@redhat.com>
10317 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10320 2015-08-21 Pedro Alves <palves@redhat.com>
10322 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10323 instead of literal 1.
10325 2015-08-21 Pedro Alves <palves@redhat.com>
10327 * tdesc.c (default_description): Explicitly zero-initialize.
10329 2015-08-21 Pedro Alves <palves@redhat.com>
10332 * inferiors.c (remove_thread): Discard any pending stop reply for
10334 * server.c (remove_all_on_match_pid): Rename to ...
10335 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10337 (discard_queued_stop_replies): Change parameter to a ptid. Now
10339 (handle_v_kill, kill_inferior_callback, captured_main)
10340 (process_serial_event): Adjust.
10341 * server.h (discard_queued_stop_replies): Declare.
10343 2015-08-21 Pedro Alves <palves@redhat.com>
10345 * linux-low.c (wait_for_sigstop): Always switch to no thread
10346 selected if the previously current thread dies.
10347 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10348 process instead of the current thread's.
10349 * remote-utils.c (input_interrupt): Don't check if there's no
10351 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10352 current thread to the general thread fails, error out.
10353 (handle_qxfer_auxv, handle_qxfer_libraries)
10354 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10355 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10356 (handle_query): Check if there's a thread selected instead of
10357 checking whether there's any thread in the thread list.
10358 (handle_qxfer_threads, handle_qxfer_btrace)
10359 (handle_qxfer_btrace_conf): Don't error out early if there's no
10360 thread in the thread list.
10361 (handle_v_cont, myresume): Don't set the current thread to the
10363 (process_serial_event) <Hg handling>: Also set thread_id if the
10364 previous general thread is still alive.
10365 (process_serial_event) <g/G handling>: If setting the current
10366 thread to the general thread fails, error out.
10367 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10368 thread's lwp instead of the current thread's.
10369 * target.c (set_desired_thread): If the desired thread was not
10370 found, leave the current thread pointing to NULL. Return an int
10371 (boolean) indicating success.
10372 * target.h (set_desired_thread): Change return type to int.
10374 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10376 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10377 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10379 (ps_get_thread_area): New function.
10381 2015-08-19 Gary Benson <gbenson@redhat.com>
10383 * hostio.c (handle_pread): Do not attempt to read more data
10384 than hostio_reply_with_data can fit in a packet.
10386 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10388 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10390 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10392 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10394 2015-08-06 Pedro Alves <palves@redhat.com>
10396 * tracepoint.c (expr_eval_result): Now an int.
10398 2015-08-06 Pedro Alves <palves@redhat.com>
10400 * gdbthread.h (struct regcache): Forward declare.
10401 (struct thread_info) <regcache_data>: Now a struct regcache
10403 * inferiors.c (inferior_regcache_data)
10404 (set_inferior_regcache_data): Now work with struct regcache
10406 * inferiors.h (struct regcache): Forward declare.
10407 (inferior_regcache_data, set_inferior_regcache_data): Now work
10408 with struct regcache pointers.
10409 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10410 (free_register_cache_thread): Remove struct regcache pointer
10413 2015-08-06 Pedro Alves <palves@redhat.com>
10415 * server.c (captured_main): On error, print the exception message
10416 to stderr, and if run_once is set, throw a quit.
10418 2015-08-06 Pedro Alves <palves@redhat.com>
10420 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10421 the current thread.
10423 2015-08-06 Pedro Alves <palves@redhat.com>
10425 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10426 reading beyond the passed in buffer length.
10428 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10430 * tracepoint.c (symbol_list) <required>: Remove.
10432 2015-08-06 Pedro Alves <palves@redhat.com>
10434 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10435 count if stopping and suspending threads.
10436 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10437 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10438 (linux_detach): Complete an ongoing step-over.
10439 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10441 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10442 (linux_wait_1): If passing a signal to the inferior after
10443 finishing a step-over, unsuspend and re-resume all lwps. If we
10444 see a single-step event but the thread should be continuing, don't
10445 pass the trap to gdb.
10446 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10447 internal_error instead of gdb_assert.
10448 (enqueue_pending_signal): New function.
10449 (check_ptrace_stopped_lwp_gone): Add debug output.
10450 (start_step_over): Use internal_error instead of gdb_assert.
10451 (complete_ongoing_step_over): New function.
10452 (linux_resume_one_thread): Don't resume a suspended thread.
10453 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10456 2015-08-06 Pedro Alves <palves@redhat.com>
10458 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10459 (linux_thread_alive): Use lwp_is_marked_dead.
10460 (extended_event_reported): Delete.
10461 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10462 instead of extended_event_reported.
10463 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10465 (lwp_is_marked_dead): New function.
10466 (lwp_running): Use lwp_is_marked_dead.
10467 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10470 2015-08-06 Pedro Alves <palves@redhat.com>
10472 * linux-low.c (linux_wait_1): Move fork event output out of the
10473 !report_to_gdb check. Pass event_child->waitstatus to
10474 target_waitstatus_to_string instead of ourstatus.
10476 2015-08-04 Yao Qi <yao.qi@linaro.org>
10478 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10479 if current_thread is 32 bit.
10481 2015-08-04 Yao Qi <yao.qi@linaro.org>
10483 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10484 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10485 * server.c (extended_protocol): Remove "static".
10486 * server.h (extended_protocol): Declare it.
10488 2015-08-04 Yao Qi <yao.qi@linaro.org>
10490 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10491 both aarch64 and aarch32.
10492 (aarch64_set_pc): Likewise.
10494 2015-08-04 Yao Qi <yao.qi@linaro.org>
10496 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10497 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10498 arm-with-neon.xml to srv_xmlfiles.
10499 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10500 (is_64bit_tdesc): New function.
10501 (aarch64_linux_read_description): New function.
10502 (aarch64_arch_setup): Call aarch64_linux_read_description.
10503 (regs_info): Rename to regs_info_aarch64.
10504 (aarch64_regs_info): Return right regs_info.
10505 (initialize_low_arch): Call initialize_low_arch_aarch32.
10507 2015-08-04 Yao Qi <yao.qi@linaro.org>
10509 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10510 * linux-aarch32-low.c: New file.
10511 * linux-aarch32-low.h: New file.
10512 * linux-arm-low.c (arm_fill_gregset): Move it to
10513 linux-aarch32-low.c.
10514 (arm_store_gregset): Likewise.
10515 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10516 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10517 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10518 (regs_info): Rename to regs_info_arm.
10519 (arm_regs_info): Return regs_info_aarch32 if
10520 have_ptrace_getregset is 1 and target description is
10521 arm_with_neon or arm_with_vfpv3.
10522 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10523 Call initialize_low_arch_aarch32 instead.
10525 2015-08-04 Yao Qi <yao.qi@linaro.org>
10527 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10528 * linux-low.c: ... here.
10529 * linux-low.h (have_ptrace_getregset): Declare it.
10531 2015-08-04 Pedro Alves <palves@redhat.com>
10533 * thread-db.c (struct thread_db): Use new typedefs.
10534 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10536 (disable_thread_event_reporting): Cast result of dlsym to
10537 destination function pointer type.
10538 (thread_db_mourn): Use td_ta_delete_ftype.
10540 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10542 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10544 (CDX_BREAKPOINT): Define for R2.
10545 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10546 (the_low_target): Add comments.
10548 2015-07-30 Yao Qi <yao.qi@linaro.org>
10550 * linux-arm-low.c (arm_hwcap): Remove it.
10551 (arm_read_description): New local variable arm_hwcap. Don't
10552 set arm_hwcap to zero.
10554 2015-07-30 Yao Qi <yao.qi@linaro.org>
10556 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10557 Use regcache->tdesc instead.
10558 (arm_store_wmmxregset): Likewise.
10559 (arm_fill_vfpregset): Likewise.
10560 (arm_store_vfpregset): Likewise.
10562 2015-07-30 Yao Qi <yao.qi@linaro.org>
10564 * linux-arm-low.c: Include arch/arm.h.
10565 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10566 (arm_store_gregset): Likewise.
10568 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10570 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10571 ptrace's 4th parameter.
10573 2015-07-27 Yao Qi <yao.qi@linaro.org>
10575 * configure.srv (case aarch64*-*-linux*): Don't set
10578 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10580 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10582 * linux-arm-low.c: Likewise.
10583 * linux-cris-low.c: Likewise.
10584 * linux-crisv32-low.c: Likewise.
10585 * linux-low.c: Likewise.
10586 * linux-m68k-low.c: Likewise.
10587 * linux-mips-low.c: Likewise.
10588 * linux-nios2-low.c: Likewise.
10589 * linux-s390-low.c: Likewise.
10590 * linux-sparc-low.c: Likewise.
10591 * linux-tic6x-low.c: Likewise.
10592 * linux-tile-low.c: Likewise.
10593 * linux-x86-low.c: Likewise.
10595 2015-07-24 Pedro Alves <palves@redhat.com>
10597 * config.in: Regenerate.
10598 * configure: Regenerate.
10600 2015-07-24 Pedro Alves <palves@redhat.com>
10602 * acinclude.m4: Include ../ptrace.m4.
10603 * configure.ac: Call GDB_AC_PTRACE.
10604 * config.in, configure: Regenerate.
10606 2015-07-24 Yao Qi <yao.qi@linaro.org>
10608 * linux-low.c (linux_create_inferior): Remove setting to
10609 proc->priv->new_inferior.
10610 (linux_attach): Likewise.
10611 (linux_low_filter_event): Likewise.
10612 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10614 2015-07-24 Yao Qi <yao.qi@linaro.org>
10616 * linux-low.c (linux_arch_setup): New function.
10617 (linux_low_filter_event): If proc->tdesc is NULL and
10618 proc->attached is true, call the_low_target.arch_setup.
10619 Otherwise, keep status pending, and return.
10620 (linux_resume_one_lwp_throw): Don't call get_pc if
10621 thread->while_stepping isn't NULL. Don't call
10622 get_thread_regcache if proc->tdesc is NULL.
10623 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10624 (linux_target_ops): Install arch_setup.
10625 * server.c (start_inferior): Call the_target->arch_setup.
10626 * target.h (struct target_ops) <arch_setup>: New field.
10627 (target_arch_setup): New marco.
10628 * lynx-low.c (lynx_target_ops): Update.
10629 * nto-low.c (nto_target_ops): Update.
10630 * spu-low.c (spu_target_ops): Update.
10631 * win32-low.c (win32_target_ops): Update.
10633 2015-07-24 Yao Qi <yao.qi@linaro.org>
10635 * linux-low.c (linux_add_process): Don't set
10636 proc->priv->new_inferior.
10637 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10638 (linux_attach): Likewise.
10640 2015-07-24 Yao Qi <yao.qi@linaro.org>
10642 * server.c (start_inferior): Code refactor.
10644 2015-07-24 Yao Qi <yao.qi@linaro.org>
10646 * server.c (process_serial_event): Set general_thread.
10648 2015-07-21 Yao Qi <yao.qi@linaro.org>
10650 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10651 aarch64_linux_get_debug_reg_capacity.
10653 2015-07-17 Yao Qi <yao.qi@linaro.org>
10655 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10656 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10657 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10658 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10659 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10660 (AARCH64_HWP_ALIGNMENT): Likewise.
10661 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10662 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10663 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10664 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10665 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10666 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10667 (struct aarch64_debug_reg_state): Likewise.
10668 (struct arch_lwp_info): Likewise.
10669 (aarch64_align_watchpoint): Likewise.
10670 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10671 (aarch64_watchpoint_length): Likewise.
10672 (aarch64_point_encode_ctrl_reg): Likewise
10673 (aarch64_point_is_aligned): Likewise.
10674 (aarch64_align_watchpoint): Likewise.
10675 (aarch64_linux_set_debug_regs):
10676 (aarch64_dr_state_insert_one_point): Likewise.
10677 (aarch64_dr_state_remove_one_point): Likewise.
10678 (aarch64_handle_breakpoint): Likewise.
10679 (aarch64_handle_aligned_watchpoint): Likewise.
10680 (aarch64_handle_unaligned_watchpoint): Likewise.
10681 (aarch64_handle_watchpoint): Likewise.
10683 2015-07-17 Yao Qi <yao.qi@linaro.org>
10685 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10686 and don't aarch64_get_debug_reg_state. All callers update.
10687 (aarch64_handle_aligned_watchpoint): Likewise.
10688 (aarch64_handle_unaligned_watchpoint): Likewise.
10689 (aarch64_handle_watchpoint): Likewise.
10690 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10691 (aarch64_remove_point): Likewise.
10693 2015-07-17 Yao Qi <yao.qi@linaro.org>
10695 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10697 (aarch64_handle_unaligned_watchpoint): Likewise.
10699 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10701 Revert the previous 3 commits:
10702 Move gdb_regex* to common/
10703 Move linux_find_memory_regions_full & co.
10704 gdbserver build-id attribute generator
10706 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10707 Jan Kratochvil <jan.kratochvil@redhat.com>
10709 gdbserver build-id attribute generator.
10710 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10711 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10712 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10714 (get_dynamic): Use find_pdhr to traverse program headers.
10715 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10716 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10717 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10718 (get_hex_build_id): New.
10719 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10720 to reply XML document.
10722 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10723 Jan Kratochvil <jan.kratochvil@redhat.com>
10725 * target.c: Include target/target-utils.h and fcntl.h.
10726 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10727 (target_fileio_read_stralloc): New functions.
10729 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10731 * Makefile.in (OBS): Add gdb_regex.o.
10732 (gdb_regex.o): New.
10733 * config.in: Rebuilt.
10734 * configure: Rebuilt.
10736 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10737 Jan Kratochvil <jan.kratochvil@redhat.com>
10739 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10740 * Makefile.in (OBS): Add target-utils.o.
10741 (linux-maps.o, target-utils.o): New.
10742 * configure.srv (srv_linux_obj): Add linux-maps.o.
10744 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10746 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10747 function, return 1.
10748 (the_low_target): Install it.
10750 2015-07-14 Pedro Alves <palves@redhat.com>
10752 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10753 Instead, ignore ECHILD, and throw an error for other errnos.
10755 2015-07-10 Pedro Alves <palves@redhat.com>
10757 * event-loop.c (struct callback_event) <data>: Change type to
10758 gdb_client_data instance instead of gdb_client_data pointer.
10759 (append_callback_event): Adjust.
10761 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10763 * linux-aarch64-low.c: Add comments for each linux_target_ops
10764 method. Remove comments already covered in target_ops and
10765 linux_target_ops definitions.
10766 (the_low_target): Add comments for each unimplemented method.
10768 2015-07-09 Yao Qi <yao.qi@linaro.org>
10770 * linux-aarch64-low.c (aarch64_regmap): Remove.
10771 (aarch64_usrregs_info): Remove.
10772 (regs_info): Set field usrregs to NULL.
10774 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10776 * linux-low.c: Include "rsp-low.h"
10777 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10778 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10779 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10780 (handle_btrace_enable_pt): New.
10781 (handle_btrace_general_set): Support "pt".
10782 (handle_btrace_conf_general_set): Support "pt:size".
10784 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10786 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10789 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10791 * linux-aarch64-low.c: Remove comment about endianness.
10792 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10793 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10796 2015-06-24 Gary Benson <gbenson@redhat.com>
10798 * linux-i386-ipa.c (stdint.h): Do not include.
10799 * lynx-i386-low.c (stdint.h): Likewise.
10800 * lynx-ppc-low.c (stdint.h): Likewise.
10801 * mem-break.c (stdint.h): Likewise.
10802 * thread-db.c (stdint.h): Likewise.
10803 * tracepoint.c (stdint.h): Likewise.
10804 * win32-low.c (stdint.h): Likewise.
10806 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10808 * server.c (write_qxfer_response): Update call to
10809 remote_escape_output.
10811 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10812 Jan Kratochvil <jan.kratochvil@redhat.com>
10814 Merge multiple hex conversions.
10815 * gdbreplay.c (tohex): Rename to 'fromhex'.
10816 (logchar): Use fromhex.
10818 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10820 * server.c (handle_qxfer_libraries): Set `version' attribute for
10823 2015-06-10 Gary Benson <gbenson@redhat.com>
10825 * target.h (struct target_ops) <multifs_open>: New field.
10826 <multifs_unlink>: Likewise.
10827 <multifs_readlink>: Likewise.
10828 * linux-low.c (nat/linux-namespaces.h): New include.
10829 (linux_target_ops): Initialize the_target->multifs_open,
10830 the_target->multifs_unlink and the_target->multifs_readlink.
10831 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10832 * hostio.c (hostio_fs_pid): New static variable.
10833 (hostio_handle_new_gdb_connection): New function.
10834 (handle_setfs): Likewise.
10835 (handle_open): Use the_target->multifs_open as appropriate.
10836 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10837 (handle_readlink): Use the_target->multifs_readlink as
10839 (handle_vFile): Handle vFile:setfs packets.
10840 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10841 after target_handle_new_gdb_connection.
10843 2015-06-10 Gary Benson <gbenson@redhat.com>
10845 * configure.ac (AC_CHECK_FUNCS): Add setns.
10846 * config.in: Regenerate.
10847 * configure: Likewise.
10848 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10849 (linux-namespaces.o): New rule.
10850 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10852 2015-06-09 Gary Benson <gbenson@redhat.com>
10854 * hostio.c (handle_open): Process mode argument with
10855 fileio_to_host_mode.
10857 2015-06-01 Yao Qi <yao.qi@linaro.org>
10859 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10860 * linux-x86-low.c: Likewise.
10862 2015-05-28 Don Breazeal <donb@codesourcery.com>
10864 * linux-low.c (handle_extended_wait): Initialize
10865 thread_info.last_resume_kind for new fork children.
10867 2015-05-15 Pedro Alves <palves@redhat.com>
10869 * target.h (target_handle_new_gdb_connection): Rewrite using if
10870 wrapped in do/while.
10872 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10874 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10875 * configure, config.in: Regenerate.
10876 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10879 2015-05-12 Don Breazeal <donb@codesourcery.com>
10881 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10882 PTRACE_EVENT_VFORK_DONE.
10883 (linux_low_ptrace_options, extended_event_reported): Add vfork
10885 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10886 and "vforkdone" for RSP 'T' Stop Reply Packet.
10887 * server.h (report_vfork_events): Declare
10890 2015-05-12 Don Breazeal <donb@codesourcery.com>
10892 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10893 (the_low_target) <new_fork>: Initialize new member.
10894 * linux-arm-low.c (arm_new_fork): New function.
10895 (the_low_target) <new_fork>: Initialize new member.
10896 * linux-low.c (handle_extended_wait): Call new target function
10898 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10899 * linux-mips-low.c (mips_add_watchpoint): New function
10900 extracted from mips_insert_point.
10901 (the_low_target) <new_fork>: Initialize new member.
10902 (mips_linux_new_fork): New function.
10903 (mips_insert_point): Call mips_add_watchpoint.
10904 * linux-x86-low.c (x86_linux_new_fork): New function.
10905 (the_low_target) <new_fork>: Initialize new member.
10907 2015-05-12 Don Breazeal <donb@codesourcery.com>
10909 * linux-low.c (handle_extended_wait): Implement return value,
10910 rename argument 'event_child' to 'event_lwp', handle
10911 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10912 (linux_low_ptrace_options): New function.
10913 (linux_low_filter_event): Call linux_low_ptrace_options,
10914 use different argument fo linux_enable_event_reporting,
10915 use return value from handle_extended_wait.
10916 (extended_event_reported): New function.
10917 (linux_wait_1): Call extended_event_reported and set
10918 status to report fork events.
10919 (linux_write_memory): Add pid to debug message.
10920 (reset_lwp_ptrace_options_callback): New function.
10921 (linux_handle_new_gdb_connection): New function.
10922 (linux_target_ops): Initialize new structure member.
10923 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10924 * lynx-low.c: Initialize new structure member.
10925 * remote-utils.c (prepare_resume_reply): Implement stop reason
10926 "fork" for "T" stop message.
10927 * server.c (handle_query): Call handle_new_gdb_connection.
10928 * server.h (report_fork_events): Declare global flag.
10929 * target.h (struct target_ops) <handle_new_gdb_connection>:
10931 (target_handle_new_gdb_connection): New macro.
10932 * win32-low.c: Initialize new structure member.
10934 2015-05-12 Don Breazeal <donb@codesourcery.com>
10936 * mem-break.c (APPEND_TO_LIST): Define macro.
10937 (clone_agent_expr): New function.
10938 (clone_one_breakpoint): New function.
10939 (clone_all_breakpoints): New function.
10940 * mem-break.h: Declare new functions.
10942 2015-05-12 Don Breazeal <donb@codesourcery.com>
10944 * linux-low.c (linux_supports_fork_events): New function.
10945 (linux_supports_vfork_events): New function.
10946 (linux_target_ops): Initialize new structure members.
10947 (initialize_low): Call linux_check_ptrace_features.
10948 * lynx-low.c (lynx_target_ops): Initialize new structure
10950 * server.c (report_fork_events, report_vfork_events):
10952 (handle_query): Add new features to qSupported packet and
10954 (captured_main): Initialize new global variables.
10955 * target.h (struct target_ops) <supports_fork_events>:
10957 <supports_vfork_events>: New member.
10958 (target_supports_fork_events): New macro.
10959 (target_supports_vfork_events): New macro.
10960 * win32-low.c (win32_target_ops): Initialize new structure
10963 2015-05-12 Gary Benson <gbenson@redhat.com>
10965 * server.c (handle_qxfer_exec_file): Use current process
10968 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10970 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10971 Remove HAVE_PTRACE_GETREGS conditionals.
10972 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10973 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10975 2015-05-08 Yao Qi <yao.qi@linaro.org>
10977 * linux-low.c (linux_supports_conditional_breakpoints): New
10979 (linux_target_ops): Install new target method.
10980 * lynx-low.c (lynx_target_ops): Install NULL hook for
10981 supports_conditional_breakpoints.
10982 * nto-low.c (nto_target_ops): Likewise.
10983 * spu-low.c (spu_target_ops): Likewise.
10984 * win32-low.c (win32_target_ops): Likewise.
10985 * server.c (handle_query): Check
10986 target_supports_conditional_breakpoints.
10987 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10989 (target_supports_conditional_breakpoints): New macro.
10991 2015-05-06 Pedro Alves <palves@redhat.com>
10994 * server.c (start_inferior): If the process exits, mourn it.
10996 2015-04-21 Gary Benson <gbenson@redhat.com>
10998 * hostio.c (fileio_open_flags_to_host): Factored out to
10999 fileio_to_host_openflags in common/fileio.c. Single use
11002 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11004 * linux-xtensa-low.c (xtensa_fill_gregset)
11005 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11008 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11010 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11011 (regs_info): Replace usrregs pointer with NULL.
11013 2015-04-17 Gary Benson <gbenson@redhat.com>
11015 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11016 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11017 * server.c (handle_qxfer_exec_file): New function.
11018 (qxfer_packets): Add exec-file entry.
11019 (handle_query): Report qXfer:exec-file:read as supported packet.
11021 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11023 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11025 2015-04-09 Gary Benson <gbenson@redhat.com>
11027 * hostio-errno.c (errno_to_fileio_error): Remove function.
11028 Update caller to use remote_fileio_to_fio_error.
11030 2015-04-09 Yao Qi <yao.qi@linaro.org>
11032 * linux-low.c (linux_insert_point): Call
11033 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11034 (linux_remove_point): Call remove_memory_breakpoint if type is
11036 * linux-x86-low.c (x86_insert_point): Don't call
11037 insert_memory_breakpoint.
11038 (x86_remove_point): Don't call remove_memory_breakpoint.
11040 2015-04-01 Pedro Alves <palves@redhat.com>
11041 Cleber Rosa <crosa@redhat.com>
11043 * server.c (gdbserver_usage): Reorganize and extend the usage
11046 2015-03-24 Pedro Alves <palves@redhat.com>
11048 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11049 output. Also dump TRAP_TRACE.
11050 (linux_low_filter_event): In debug output, distinguish a
11051 resume_stop SIGSTOP from a delayed SIGSTOP.
11053 2015-03-24 Gary Benson <gbenson@redhat.com>
11055 * linux-x86-low.c (x86_linux_new_thread): Moved to
11057 (x86_linux_prepare_to_resume): Likewise.
11059 2015-03-24 Gary Benson <gbenson@redhat.com>
11061 * Makefile.in (x86-linux-dregs.o): New rule.
11062 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11063 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11064 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11065 (x86_linux_dr_get): Likewise.
11066 (x86_linux_dr_set): Likewise.
11067 (update_debug_registers_callback): Likewise.
11068 (x86_linux_dr_set_addr): Likewise.
11069 (x86_linux_dr_get_addr): Likewise.
11070 (x86_linux_dr_set_control): Likewise.
11071 (x86_linux_dr_get_control): Likewise.
11072 (x86_linux_dr_get_status): Likewise.
11073 (x86_linux_update_debug_registers): Likewise.
11075 2015-03-24 Gary Benson <gbenson@redhat.com>
11077 * linux-x86-low.c (x86_linux_update_debug_registers):
11078 New function, factored out from...
11079 (x86_linux_prepare_to_resume): ...this.
11081 2015-03-24 Gary Benson <gbenson@redhat.com>
11083 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11084 (x86_linux_dr_set): Likewise.
11085 (update_debug_registers_callback): Likewise.
11086 (x86_linux_dr_set_addr): Likewise.
11087 (x86_linux_dr_get_addr): Likewise.
11088 (x86_linux_dr_set_control): Likewise.
11089 (x86_linux_dr_get_control): Likewise.
11090 (x86_linux_dr_get_status): Likewise.
11091 (x86_linux_prepare_to_resume): Likewise.
11093 2015-03-24 Gary Benson <gbenson@redhat.com>
11095 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11096 Use perror_with_name. Pass string through gettext.
11097 (x86_linux_dr_set): Likewise.
11099 2015-03-24 Gary Benson <gbenson@redhat.com>
11101 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11102 (x86_linux_dr_set_addr): ...this.
11103 (x86_dr_low_get_addr): Rename to...
11104 (x86_linux_dr_get_addr): ...this.
11105 (x86_dr_low_set_control): Rename to...
11106 (x86_linux_dr_set_control): ...this.
11107 (x86_dr_low_get_control): Rename to...
11108 (x86_linux_dr_get_control): ...this.
11109 (x86_dr_low_get_status): Rename to...
11110 (x86_linux_dr_get_status): ...this.
11111 (x86_dr_low): Update with new function names.
11113 2015-03-24 Gary Benson <gbenson@redhat.com>
11115 * Makefile.in (x86-linux.o): New rule.
11116 * configure.srv: Add x86-linux.o to relevant targets.
11117 * linux-low.c (lwp_set_arch_private_info): New function.
11118 (lwp_arch_private_info): Likewise.
11119 * linux-x86-low.c: Include nat/x86-linux.h.
11120 (arch_lwp_info): Removed structure.
11121 (update_debug_registers_callback):
11122 Use lwp_set_debug_registers_changed.
11123 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11124 and lwp_set_debug_registers_changed.
11125 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11127 2015-03-24 Gary Benson <gbenson@redhat.com>
11129 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11130 * linux-arm-low.c (arm_new_thread): Likewise.
11131 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11132 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11133 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11134 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11136 2015-03-24 Gary Benson <gbenson@redhat.com>
11138 * linux-low.c (ptid_of_lwp): New function.
11139 (lwp_is_stopped): Likewise.
11140 (lwp_stop_reason): Likewise.
11141 * linux-x86-low.c (update_debug_registers_callback):
11142 Use lwp_is_stopped.
11143 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11146 2015-03-24 Gary Benson <gbenson@redhat.com>
11148 * linux-low.h (linux_stop_lwp): Remove declaration.
11150 2015-03-24 Gary Benson <gbenson@redhat.com>
11152 * linux-low.h: Include nat/linux-nat.h.
11153 * linux-low.c (iterate_over_lwps_args): New structure.
11154 (iterate_over_lwps_filter): New function.
11155 (iterate_over_lwps): Likewise.
11156 * linux-x86-low.c (update_debug_registers_callback):
11157 Update signature to what iterate_over_lwps expects.
11158 Remove PID check that iterate_over_lwps now performs.
11159 (x86_dr_low_set_addr): Use iterate_over_lwps.
11160 (x86_dr_low_set_control): Likewise.
11162 2015-03-24 Gary Benson <gbenson@redhat.com>
11164 * linux-x86-low.c (x86_debug_reg_state): New function.
11165 (x86_linux_prepare_to_resume): Use the above.
11167 2015-03-24 Gary Benson <gbenson@redhat.com>
11169 * linux-low.c (current_lwp_ptid): New function.
11170 * linux-x86-low.c: Include nat/linux-nat.h.
11171 (x86_dr_low_get_addr): Use current_lwp_ptid.
11172 (x86_dr_low_get_control): Likewise.
11173 (x86_dr_low_get_status): Likewise.
11175 2015-03-20 Pedro Alves <palves@redhat.com>
11177 * tracepoint.c (cmd_qtstatus): Make "str" const.
11179 2015-03-20 Pedro Alves <palves@redhat.com>
11181 * server.c (handle_general_set): Make "req_str" const.
11183 2015-03-19 Pedro Alves <palves@redhat.com>
11185 * linux-low.c (linux_resume_one_lwp): Rename to ...
11186 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11187 instead call perror_with_name.
11188 (check_ptrace_stopped_lwp_gone): New function.
11189 (linux_resume_one_lwp): Reimplement as wrapper around
11190 linux_resume_one_lwp_throw that swallows errors if the LWP is
11193 2015-03-19 Pedro Alves <palves@redhat.com>
11195 * linux-low.c (count_events_callback, select_event_lwp_callback):
11196 No longer check whether the thread has resume_stop as last resume
11199 2015-03-19 Pedro Alves <palves@redhat.com>
11201 * linux-low.c (count_events_callback, select_event_lwp_callback):
11202 Use the lwp's status_pending_p field, not the thread's.
11204 2015-03-19 Pedro Alves <palves@redhat.com>
11206 * linux-low.c (select_event_lwp_callback): Update comments to
11207 no longer mention SIGTRAP.
11209 2015-03-18 Gary Benson <gbenson@redhat.com>
11211 * server.c (handle_query): Do not report vFile:fstat as supported.
11213 2015-03-11 Gary Benson <gbenson@redhat.com>
11215 * hostio.c (sys/types.h): New include.
11216 (sys/stat.h): Likewise.
11217 (common-remote-fileio.h): Likewise.
11218 (handle_fstat): New function.
11219 (handle_vFile): Handle vFile:fstat packets.
11221 2015-03-11 Gary Benson <gbenson@redhat.com>
11223 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11224 struct stat.st_blocks and struct stat.st_blksize.
11225 * configure: Regenerate.
11226 * config.in: Likewise.
11227 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11228 (OBS): Add common-remote-fileio.o.
11229 (common-remote-fileio.o): New rule.
11231 2015-03-09 Pedro Alves <palves@redhat.com>
11233 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11234 'struct sockaddr' pointer in 'accept' call.
11236 2015-03-09 Pedro Alves <palves@redhat.com>
11239 2015-03-07 Pedro Alves <palves@redhat.com>
11240 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11241 or <winsock2.h> here. Instead include "gdb_socket.h".
11242 (remote_open): Use union gdb_sockaddr_u.
11243 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11244 or <winsock2.h> here. Instead include "gdb_socket.h".
11245 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11246 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11248 (init_named_socket, gdb_agent_helper_thread): Use union
11251 2015-03-07 Pedro Alves <palves@redhat.com>
11253 * configure.ac (build_warnings): Move
11254 -Wdeclaration-after-statement to the C-specific set.
11255 * configure: Regenerate.
11257 2015-03-07 Pedro Alves <palves@redhat.com>
11259 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11260 or <winsock2.h> here. Instead include "gdb_socket.h".
11261 (remote_open): Use union gdb_sockaddr_u.
11262 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11263 or <winsock2.h> here. Instead include "gdb_socket.h".
11264 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11265 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11267 (init_named_socket, gdb_agent_helper_thread): Use union
11270 2015-03-07 Pedro Alves <palves@redhat.com>
11272 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11275 2015-03-06 Yao Qi <yao.qi@linaro.org>
11277 * linux-aarch64-low.c (aarch64_insert_point): Use
11278 show_debug_regs as a boolean.
11279 (aarch64_remove_point): Likewise.
11281 2015-03-05 Pedro Alves <palves@redhat.com>
11283 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11284 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11285 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11286 * nto-low.c (nto_target_ops): Likewise.
11287 * spu-low.c (spu_target_ops): Likewise.
11288 * win32-low.c (win32_target_ops): Likewise.
11290 2015-03-04 Pedro Alves <palves@redhat.com>
11292 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11293 Decide whether a breakpoint triggered based on the SIGTRAP's
11295 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11296 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11297 (linux_low_filter_event): Check for breakpoints before checking
11299 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11301 (linux_stopped_by_sw_breakpoint)
11302 (linux_supports_stopped_by_sw_breakpoint)
11303 (linux_stopped_by_hw_breakpoint)
11304 (linux_supports_stopped_by_hw_breakpoint): New functions.
11305 (linux_target_ops): Install new target methods.
11307 2015-03-04 Pedro Alves <palves@redhat.com>
11309 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11310 * server.c (swbreak_feature, hwbreak_feature): New globals.
11311 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11312 (captured_main): Clear swbreak_feature and hwbreak_feature.
11313 * server.h (swbreak_feature, hwbreak_feature): Declare.
11314 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11315 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11316 supports_stopped_by_hw_breakpoint>: New fields.
11317 (target_supports_stopped_by_sw_breakpoint)
11318 (target_stopped_by_sw_breakpoint)
11319 (target_supports_stopped_by_hw_breakpoint)
11320 (target_stopped_by_hw_breakpoint): Declare.
11322 2015-03-04 Pedro Alves <palves@redhat.com>
11324 enum lwp_stop_reason -> enum target_stop_reason
11325 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11326 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11327 (linux_wait_1, stuck_in_jump_pad_callback)
11328 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11329 (linux_stopped_by_watchpoint):
11330 * linux-low.h (enum lwp_stop_reason): Delete.
11331 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11332 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11334 2015-03-04 Yao Qi <yao.qi@linaro.org>
11336 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11338 2015-03-03 Gary Benson <gbenson@redhat.com>
11340 * hostio.c (handle_vFile): Fix prefix lengths.
11342 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11344 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11347 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11349 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11350 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11351 (clean): Add "rm -f" for above C files.
11352 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11353 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11354 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11355 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11356 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11357 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11358 (init_registers_s390x_vx_linux64)
11359 (init_registers_s390x_tevx_linux64)
11360 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11361 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11363 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11364 (s390_store_vxrs_high): New functions.
11365 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11367 (s390_arch_setup): Add logic for selecting one of the new target
11368 descriptions. Activate the new vector regsets if applicable.
11369 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11370 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11371 and init_registers_s390x_tevx_linux64.
11373 2015-03-01 Pedro Alves <palves@redhat.com>
11375 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11378 2015-02-27 Pedro Alves <palves@redhat.com>
11380 * linux-x86-low.c (u_debugreg_offset): New function.
11381 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11383 2015-02-27 Pedro Alves <palves@redhat.com>
11385 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11386 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11387 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11388 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11389 (ps_lsetfpregs, ps_getpid)
11390 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11391 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11392 (ps_lsetxregs, ps_plog): Declare.
11394 2015-02-27 Pedro Alves <palves@redhat.com>
11396 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11397 IP_AGENT_EXPORT_FUNC.
11398 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11399 IP_AGENT_EXPORT_FUNC.
11400 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11401 (IP_AGENT_EXPORT): Delete.
11402 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11403 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11404 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11405 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11406 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11407 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11408 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11409 (traceframe_read_count, traceframe_write_count)
11410 (traceframes_created, trace_state_variables, get_raw_reg)
11411 (get_trace_state_variable_value, set_trace_state_variable_value)
11412 (ust_loaded, helper_thread_id, cmd_buf): Use
11413 IPA_SYM_EXPORTED_NAME.
11414 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11415 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11416 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11417 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11418 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11419 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11420 EXTERN_C_PUSH/EXTERN_C_POP.
11421 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11422 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11423 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11424 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11425 (traceframe_write_count, traceframe_read_count)
11426 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11427 (about_to_request_buffer_space, get_trace_state_variable_value)
11428 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11429 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11430 EXTERN_C_PUSH/EXTERN_C_POP.
11431 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11432 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11433 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11434 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11435 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11436 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11437 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11438 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11440 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11441 (IP_AGENT_EXPORT_VAR_DECL): Define.
11442 (tracing): Declare.
11443 (gdb_agent_get_raw_reg): Declare.
11445 2015-02-27 Tom Tromey <tromey@redhat.com>
11446 Pedro Alves <palves@redhat.com>
11448 Rename symbols whose names are reserved C++ keywords throughout.
11450 2015-02-27 Pedro Alves <palves@redhat.com>
11452 * Makefile.in (COMPILER): New, get it from autoconf.
11453 (CXX): Get from autoconf instead.
11454 (COMPILE.pre): Use COMPILER.
11455 (CC-LD): Rename to ...
11456 (CC_LD): ... this. Use COMPILER.
11457 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11458 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11459 * acinclude.m4: Include build-with-cxx.m4.
11460 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11461 Disable -Werror by default if building in C++ mode.
11462 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11463 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11464 the C++ compiler. Save/restore CXXFLAGS too.
11465 * configure: Regenerate.
11467 2015-02-27 Pedro Alves <palves@redhat.com>
11469 * acinclude.m4: Include libiberty.m4.
11470 * configure.ac: Call libiberty_INIT.
11471 * config.in, configure: Regenerate.
11473 2015-02-26 Pedro Alves <palves@redhat.com>
11475 * linux-low.c (linux_wait_1): When incrementing the PC past a
11476 program breakpoint always use the_low_target.breakpoint_len as
11477 increment, rather than the maximum between that and
11478 the_low_target.decr_pc_after_break.
11480 2015-02-23 Pedro Alves <palves@redhat.com>
11482 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11483 thread was doing a step-over; always adjust the PC if
11484 we stepped over a permanent breakpoint.
11485 (linux_wait_1): If we stepped over breakpoint that was on top of a
11486 permanent breakpoint, manually advance the PC past it.
11488 2015-02-23 Pedro Alves <palves@redhat.com>
11490 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11492 (x86_fill_gregset, x86_store_gregset): Use it when handling
11495 2015-02-20 Pedro Alves <palves@redhat.com>
11497 * thread-db.c: Include "nat/linux-procfs.h".
11498 (thread_db_init): Skip listing new threads if the kernel supports
11499 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11501 2015-02-20 Pedro Alves <palves@redhat.com>
11503 * linux-low.c (status_pending_p_callback): Use ptid_match.
11505 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11507 PR breakpoints/16812
11508 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11509 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11510 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11512 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11514 PR breakpoints/15956
11515 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11517 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11519 * linux-low.c (linux_low_btrace_conf): Print size.
11520 * server.c (handle_btrace_conf_general_set): New.
11521 (hanle_general_set): Call handle_btrace_conf_general_set.
11522 (handle_query): Report Qbtrace-conf:bts:size as supported.
11524 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11526 * linux-low.c (linux_low_enable_btrace): Update parameters.
11527 (linux_low_btrace_conf): New.
11528 (linux_target_ops)<to_btrace_conf>: Initialize.
11529 * server.c (current_btrace_conf): New.
11530 (handle_btrace_enable): Rename to ...
11531 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11532 to target_enable_btrace. Update comment. Update users.
11533 (handle_qxfer_btrace_conf): New.
11534 (qxfer_packets): Add btrace-conf entry.
11535 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11536 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11537 (target_ops)<read_btrace_conf>: New.
11538 (target_enable_btrace): Update parameters.
11539 (target_read_btrace_conf): New.
11541 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11543 * server.c (handle_btrace_general_set): Remove call to
11544 target_supports_btrace.
11545 (supported_btrace_packets): New.
11546 (handle_query): Call supported_btrace_packets.
11547 * target.h: include btrace-common.h.
11548 (btrace_target_info): Removed.
11549 (supports_btrace, target_supports_btrace): Update parameters.
11551 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11553 * Makefile.in (SFILES): Add common/btrace-common.c.
11554 (OBS): Add common/btrace-common.o.
11555 (btrace-common.o): Add build rules.
11556 * linux-low: Include btrace-common.h.
11557 (linux_low_read_btrace): Use struct btrace_data. Call
11558 btrace_data_init and btrace_data_fini.
11560 2015-02-06 Pedro Alves <palves@redhat.com>
11562 * thread-db.c (find_new_threads_callback): Add debug output.
11564 2015-02-04 Pedro Alves <palves@redhat.com>
11566 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11567 (resume_stopped_resumed_lwps): New function.
11568 (linux_wait_for_event_filtered): Use it.
11570 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11572 * Makefile.in (SFILES): Add linux-personality.c.
11573 (linux-personality.o): New rule.
11574 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11575 list of objects to be built.
11576 * linux-low.c: Include nat/linux-personality.h.
11577 (linux_create_inferior): Remove code to disable address space
11578 randomization (moved to ../nat/linux-personality.c). Create
11579 cleanup to disable address space randomization.
11581 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11583 * Makefile.in (posix-strerror.o): New rule.
11584 (mingw-strerror.o): Likewise.
11585 * configure: Regenerated.
11586 * configure.ac: Source file ../common/common.host. Initialize new
11587 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11589 2015-01-14 Yao Qi <yao@codesourcery.com>
11591 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11592 (ppc-linux.o): New rule.
11593 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11594 * configure.ac: AC_CHECK_FUNCS(getauxval).
11595 * config.in: Re-generated.
11596 * configure: Re-generated.
11597 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11598 ppc64_64bit_inferior_p
11600 2015-01-14 Yao Qi <yao@codesourcery.com>
11602 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11603 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11604 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11605 (PT_ORIG_R3, PT_TRAP): Likewise.
11606 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11607 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11608 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11610 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11612 * i387-fp.c (i387_cache_to_xsave): In look over
11613 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11614 zmmh_low_space field by use of zmmh_high_space.
11616 2015-01-09 Pedro Alves <palves@redhat.com>
11618 * linux-low.c (step_over_bkpt): Move higher up in the file.
11619 (handle_extended_wait): Don't store the stop_pc here.
11620 (get_stop_pc): Adjust comments and rename to ...
11621 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11622 stopped for a software breakpoint or hardware breakpoint.
11623 (thread_still_has_status_pending_p): New function.
11624 (status_pending_p_callback): Use
11625 thread_still_has_status_pending_p. If the event is no longer
11626 interesting, resume the LWP.
11627 (handle_tracepoints): Add assert.
11628 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11629 (wstatus_maybe_breakpoint): New function.
11630 (cancel_breakpoint): Delete function.
11631 (check_stopped_by_watchpoint): New function, factored out from
11632 linux_low_filter_event.
11633 (lp_status_maybe_breakpoint): Delete function.
11634 (linux_low_filter_event): Remove filter_ptid argument.
11635 Leave thread group exits pending here. Store the LWP's stop PC.
11636 Always leave events pending.
11637 (linux_wait_for_event_filtered): Pull all events out of the
11638 kernel, and leave them all pending.
11639 (count_events_callback, select_event_lwp_callback): Consider all
11641 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11642 (select_event_lwp): Only give preference to the stepping LWP in
11643 all-stop mode. Adjust comments.
11644 (ignore_event): New function.
11645 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11646 references to cancel_breakpoints. Adjust to renames. Also give
11647 equal priority to all LWPs that have had events in non-stop mode.
11648 If reporting a software breakpoint event, unadjust the LWP's PC.
11649 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11650 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11652 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11653 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11654 (linux_stopped_by_watchpoint): Adjust.
11655 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11656 * linux-low.h (enum lwp_stop_reason): New.
11657 (struct lwp_info) <stop_pc>: Adjust comment.
11658 <stopped_by_watchpoint>: Delete field.
11659 <stop_reason>: New field.
11660 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11661 * mem-break.c (software_breakpoint_inserted_here)
11662 (hardware_breakpoint_inserted_here): New function.
11663 * mem-break.h (software_breakpoint_inserted_here)
11664 (hardware_breakpoint_inserted_here): Declare.
11665 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11666 (cancel_breakpoints): Delete.
11667 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11668 (upload_fast_traceframes): Remove references to
11669 cancel_breakpoints.
11671 2015-01-09 Pedro Alves <palves@redhat.com>
11673 * thread-db.c (find_new_threads_callback): Ignore thread if the
11674 kernel thread ID is -1.
11676 2015-01-09 Pedro Alves <palves@redhat.com>
11678 * linux-low.c (linux_attach_fail_reason_string): Move to
11679 nat/linux-ptrace.c, and rename.
11680 (linux_attach_lwp): Update comment.
11681 (attach_proc_task_lwp_callback): New function.
11682 (linux_attach): Adjust to rename and use
11683 linux_proc_attach_tgid_threads.
11684 (linux_attach_fail_reason_string): Delete declaration.
11686 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11688 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11689 * server.c (gdbserver_version): Likewise.
11691 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11693 * remote-utils.c: Include ctype.h.
11694 (input_interrupt): Explicitly handle the case when the char
11695 received is the NUL byte. Improve the printing of non-ASCII
11698 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11700 * linux-low.c (linux_low_filter_event): Update call to
11701 linux_enable_event_reporting following the addition of
11702 a new parameter to that function.
11704 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11707 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11708 (AARCH64_FPCR_REGNO): Likewise.
11709 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11710 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11711 (aarch64_store_fpregset): Likewise.
11713 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11715 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11716 Remove FIXME comment about assumption about N.
11718 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11720 * configure.ac: If large-file support is disabled in GDBserver,
11721 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11722 * configure: Regenerate.
11724 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11726 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11727 warning upon ENODATA from ptrace.
11728 * linux-s390-low.c (s390_store_tdb): New.
11729 (s390_regsets): Add regset for NT_S390_TDB.
11731 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11733 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11734 without a fill_function.
11735 * linux-s390-low.c (s390_fill_last_break): Remove.
11736 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11737 (s390_arch_setup): Use regset's size instead of fill_function for
11738 loop end condition.
11740 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11742 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11743 the regset's store function when ptrace returned an error.
11744 * regcache.c (get_thread_regcache): Invalidate register cache
11745 before fetching inferior's registers.
11747 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11749 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11750 while-loop as for-loop.
11751 (regsets_store_inferior_registers): Likewise.
11753 2014-11-28 Yao Qi <yao@codesourcery.com>
11755 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11756 * config.in, configure: Re-generate.
11757 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11760 2014-11-21 Yao Qi <yao@codesourcery.com>
11762 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11763 (AC_CHECK_HEADERS): Remove malloc.h.
11764 * configure: Re-generated.
11765 * config.in: Re-generated.
11766 * server.h: Don't include alloca.h and malloc.h.
11767 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11768 Don't include malloc.h.
11770 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11772 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11773 corresponding ERRNO check in same block.
11775 2014-11-12 Pedro Alves <palves@redhat.com>
11777 * server.c (cont_thread): Update comment.
11778 (start_inferior, attach_inferior): No longer clear cont_thread.
11779 (handle_v_cont): No longer set cont_thread.
11780 (captured_main): Clear cont_thread each time a GDB connects.
11782 2014-11-12 Pedro Alves <palves@redhat.com>
11784 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11785 thread, and don't resume all threads if the Hc thread has exited.
11787 2014-11-12 Pedro Alves <palves@redhat.com>
11789 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11790 the process group instead of to a specific LWP.
11792 2014-10-15 Pedro Alves <palves@redhat.com>
11795 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11797 (arm_set_thread_context): Delete.
11798 (the_low_target): Adjust.
11799 * win32-i386-low.c (debug_registers_changed)
11800 (debug_registers_used): Delete.
11801 (update_debug_registers_callback): New function.
11802 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11803 needing to update their debug registers.
11804 (win32_get_current_dr): New function.
11805 (x86_dr_low_get_addr, x86_dr_low_get_control)
11806 (x86_dr_low_get_status): Fetch the debug register from the thread
11808 (i386_initial_stuff): Adjust.
11809 (i386_get_thread_context): Remove current_event parameter. Don't
11810 clear debug_registers_changed nor copy DR values to
11812 (i386_set_thread_context): Delete.
11813 (i386_prepare_to_resume): New function.
11814 (i386_thread_added): Mark the thread as needing to update irs
11816 (the_low_target): Remove i386_set_thread_context and install
11817 i386_prepare_to_resume.
11818 * win32-low.c (win32_get_thread_context): Adjust.
11819 (win32_set_thread_context): Use SetThreadContext
11821 (win32_prepare_to_resume): New function.
11822 (win32_require_context): New function, factored out from ...
11823 (thread_rec): ... this.
11824 (continue_one_thread): Call win32_prepare_to_resume on each thread
11825 we're about to continue.
11826 (win32_resume): Call win32_prepare_to_resume on the event thread.
11827 * win32-low.h (struct win32_thread_info)
11828 <debug_registers_changed>: New field.
11829 (struct win32_target_ops): Change prototype of set_thread_context,
11830 delete set_thread_context and add prepare_to_resume.
11831 (win32_require_context): New declaration.
11833 2014-10-08 Gary Benson <gbenson@redhat.com>
11835 * server.h: Do not include common-exceptions.h.
11837 2014-10-08 Gary Benson <gbenson@redhat.com>
11839 * server.h: Do not include cleanups.h.
11841 2014-09-30 James Hogan <james.hogan@imgtec.com>
11843 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11844 mips64-dsp-linux.c.
11846 2014-09-23 Yao Qi <yao@codesourcery.com>
11848 * linux-low.c (lp_status_maybe_breakpoint): New function.
11849 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11850 (count_events_callback): Likewise.
11851 (select_event_lwp_callback): Likewise.
11852 (cancel_breakpoints_callback): Likewise.
11854 2014-09-19 Don Breazeal <donb@codesourcery.com>
11856 * linux-low.c (handle_extended_wait): Call
11857 linux_ptrace_get_extended_event.
11858 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11859 linux_is_extended_waitstatus.
11861 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11863 * Makefile.in (CPPFLAGS): Define.
11864 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11865 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11867 2014-09-16 Gary Benson <gbenson@redhat.com>
11869 * inferiors.h (current_inferior): Renamed as...
11870 (current_thread): New variable. All uses updated.
11871 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11872 (maybe_move_out_of_jump_pad): Likewise.
11873 (cancel_breakpoint): Likewise.
11874 (linux_low_filter_event): Likewise.
11875 (wait_for_sigstop): Likewise.
11876 (linux_resume_one_lwp): Likewise.
11877 (need_step_over_p): Likewise.
11878 (start_step_over): Likewise.
11879 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11880 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11881 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11882 and save_inferior as saved_thread.
11883 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11885 (regcache_invalidate_thread): Likewise.
11886 * remote-utils.c (prepare_resume_reply): Likewise.
11887 * thread-db.c (thread_db_get_tls_address): Likewise.
11888 (disable_thread_event_reporting): Likewise.
11889 (remove_thread_event_breakpoints): Likewise.
11890 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11892 * target.h (set_desired_inferior): Renamed as...
11893 (set_desired_thread): New declaration. All uses updated.
11894 * server.c (myresume): Updated comment to reference thread instead
11896 (handle_serial_event): Likewise.
11897 (handle_target_event): Likewise.
11899 2014-09-12 Tom Tromey <tromey@redhat.com>
11900 Gary Benson <gbenson@redhat.com>
11902 * regcache.h: Include common-regcache.h.
11903 (regcache_read_pc): Don't declare.
11904 * regcache.c (get_thread_regcache_for_ptid): New function.
11906 2014-09-11 Tom Tromey <tromey@redhat.com>
11907 Gary Benson <gbenson@redhat.com>
11909 * symbol.c: New file.
11910 * Makefile.in (SFILES): Add symbol.c.
11911 (OBS): Add symbol.o.
11913 2014-09-11 Gary Benson <gbenson@redhat.com>
11915 * target.c (target_stop_ptid, target_continue_ptid): New
11918 2014-09-11 Tom Tromey <tromey@redhat.com>
11919 Gary Benson <gbenson@redhat.com>
11921 * target.h: Include target/target.h.
11922 * target.c (target_read_memory, target_read_uint32)
11923 (target_write_memory): New functions.
11925 2014-09-11 Gary Benson <gbenson@redhat.com>
11927 * server.h (debug_hw_points): Don't declare.
11928 * server.c (debug_hw_points): Don't define. Replace all uses
11929 with show_debug_regs.
11930 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11931 all uses with show_debug_regs.
11933 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11935 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11936 endianness into account.
11937 (ppc_supply_ptrace_register): Likewise.
11939 2014-09-03 James Hogan <james.hogan@imgtec.com>
11941 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11942 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11944 2014-09-03 Gary Benson <gbenson@redhat.com>
11946 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11947 ALL_DEBUG_ADDRESS_REGISTERS.
11949 2014-09-02 Gary Benson <gbenson@redhat.com>
11951 * i386-low.h: Renamed as...
11952 * x86-low.h: New file. All type, function and variable name
11953 prefixes changed from "i386_" to "x86_". All references updated.
11954 * i386-low.c: Renamed as...
11955 * x86-low.c: New file. All type, function and variable name
11956 prefixes changed from "i386_" to "x86_". All references updated.
11958 2014-09-02 Gary Benson <gbenson@redhat.com>
11960 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11961 (x86_linux_new_thread): Likewise.
11963 2014-08-29 Gary Benson <gbenson@redhat.com>
11965 * server.h (setjmp.h): Do not include.
11966 (toplevel): Do not declare.
11967 (common-exceptions.h): Include.
11968 (cleanups.h): Likewise.
11969 * server.c (toplevel): Do not define.
11970 (exit_code): New static global.
11971 (detach_or_kill_for_exit_cleanup): New function.
11972 (main): New function. Original main renamed to...
11973 (captured_main): New function.
11974 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11976 2014-08-29 Gary Benson <gbenson@redhat.com>
11978 * Makefile.in (SFILES): Add common/common-exceptions.c.
11979 (OBS): Add common-exceptions.o.
11980 (common-exceptions.o): New rule.
11981 * utils.c (prepare_to_throw_exception): New function.
11983 2014-08-29 Gary Benson <gbenson@redhat.com>
11985 * config.in: Regenerate.
11986 * configure: Likewise.
11988 2014-08-29 Gary Benson <gbenson@redhat.com>
11990 * Makefile.in (SFILES): Add common/cleanups.c.
11992 (cleanups.o): New rule.
11994 2014-08-29 Gary Benson <gbenson@redhat.com>
11996 * utils.c (internal_vwarning): New function.
11998 2014-08-28 Gary Benson <gbenson@redhat.com>
12000 * utils.h (fatal): Remove declaration.
12001 * utils.c (fatal): Remove function.
12003 2014-08-28 Gary Benson <gbenson@redhat.com>
12005 * tracepoint.c (gdb_agent_init): Replace fatal with
12007 (initialize_tracepoint): Likewise.
12009 2014-08-28 Gary Benson <gbenson@redhat.com>
12011 * remote-utils.c (remote_prepare): Replace fatal with error.
12013 2014-08-28 Gary Benson <gbenson@redhat.com>
12015 * linux-low.c (linux_async): Replace fatal with warning.
12016 Tidy up and return.
12017 (linux_start_non_stop): Return -1 if linux_async failed.
12019 2014-08-28 Gary Benson <gbenson@redhat.com>
12021 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12023 (i386_dr_low_get_addr): Remove vague comment.
12024 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12027 2014-08-28 Gary Benson <gbenson@redhat.com>
12029 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12030 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12032 (linux_resume_one_lwp): Likewise.
12033 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12035 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12036 with internal_error.
12037 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12038 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12039 (find_register_by_name): Replace fatal with internal_error.
12040 (find_regno): Likewise.
12041 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12042 * thread-db.c (thread_db_create_event): Likewise.
12043 (thread_db_load_search): Likewise.
12044 (try_thread_db_load_1): Likewise.
12045 * tracepoint.c (get_jump_space_head): Replace fatal with
12047 (claim_trampoline_space): Likewise.
12048 (have_fast_tracepoint_trampoline_buffer): Likewise.
12049 (cmd_qtstart): Likewise.
12050 (stop_tracing): Likewise.
12051 (fast_tracepoint_collecting): Likewise.
12052 (target_malloc): Likewise.
12053 (download_tracepoint): Likewise.
12054 (download_trace_state_variables): Replace check with gdb_assert.
12055 (upload_fast_traceframes): Replace fatal with internal_error.
12057 2014-08-19 Tom Tromey <tromey@redhat.com>
12058 Gary Benson <gbenson@redhat.com>
12060 * Makefile.in (SFILES): Add common/common-debug.c.
12061 (OBS): Add common-debug.o.
12062 (common-debug.o): New rule.
12063 * debug.h (debug_printf): Don't declare.
12064 * debug.c (debug_printf): Renamed and rewritten as...
12065 (debug_vprintf): New function.
12067 2014-08-19 Gary Benson <gbenson@redhat.com>
12069 * utils.h: Do not include print-utils.h.
12071 2014-08-19 Tom Tromey <tromey@redhat.com>
12072 Gary Benson <gbenson@redhat.com>
12074 * server.h: Add static assertion.
12075 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12077 2014-08-19 Tom Tromey <tromey@redhat.com>
12078 Gary Benson <gbenson@redhat.com>
12080 * Makefile.in (SFILES): Add common/errors.c.
12081 (OBS): Add errors.o.
12082 (IPA_OBS): Add errors-ipa.o.
12083 (errors.o): New rule.
12084 (errors-ipa.o): Likewise.
12085 * utils.h (perror_with_name, error, warning): Don't declare.
12086 * utils.c (warning): Renamed and rewritten as...
12087 (vwarning): New function.
12088 (error): Renamed and rewritten as...
12089 (verror): New function.
12090 (internal_error): Renamed and rewritten as...
12091 (internal_verror): New function.
12093 2014-08-07 Gary Benson <gbenson@redhat.com>
12095 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12096 * configure: Regenerate.
12097 * config.in: Likewise.
12098 * server.h: Do not include errno.h.
12099 * event-loop.c: Likewise.
12100 * hostio-errno.c: Likewise.
12101 * linux-low.c: Likewise.
12102 * remote-utils.c: Likewise.
12103 * spu-low.c: Likewise.
12104 * utils.c: Likewise.
12105 * gdbreplay.c: Unconditionally include errno.h.
12107 2014-08-07 Gary Benson <gbenson@redhat.com>
12109 * server.h: Do not include string.h.
12110 * event-loop.c: Likewise.
12111 * linux-low.c: Likewise.
12112 * regcache.c: Likewise.
12113 * remote-utils.c: Likewise.
12114 * spu-low.c: Likewise.
12115 * utils.c: Likewise.
12117 2014-08-07 Gary Benson <gbenson@redhat.com>
12119 * server.h: Do not include gdb_assert.h.
12121 2014-08-07 Gary Benson <gbenson@redhat.com>
12123 * server.h: Do not include common-utils.h.
12125 2014-08-07 Gary Benson <gbenson@redhat.com>
12127 * server.h: Do not include ptid.h.
12128 * notif.h: Likewise.
12130 2014-08-07 Gary Benson <gbenson@redhat.com>
12132 * server.h: Do not include gdb_locale.h.
12134 2014-08-07 Gary Benson <gbenson@redhat.com>
12136 * server.h: Do not include gdb/signals.h.
12137 * win32-low.c: Likewise.
12139 2014-08-07 Gary Benson <gbenson@redhat.com>
12141 * server.h: Do not include pathmax.h.
12143 2014-08-07 Gary Benson <gbenson@redhat.com>
12145 * server.h: Do not include libiberty.h.
12146 * linux-bfin-low.c: Likewise.
12148 2014-08-07 Gary Benson <gbenson@redhat.com>
12150 * server.h: Do not include ansidecl.h.
12152 2014-08-07 Gary Benson <gbenson@redhat.com>
12154 * linux-x86-low.c: Do not include stddef.h.
12155 * lynx-ppc-low.c: Likewise.
12156 * tracepoint.c: Likewise.
12158 2014-08-07 Gary Benson <gbenson@redhat.com>
12160 * server.h: Do not include stdarg.h.
12161 * nto-low.c: Likewise.
12163 2014-08-07 Gary Benson <gbenson@redhat.com>
12165 * server.h: Do not include stdlib.h.
12166 * inferiors.c: Likewise.
12167 * linux-low.c: Likewise.
12168 * regcache.c: Likewise.
12169 * spu-low.c: Likewise.
12170 * tracepoint.c: Likewise.
12171 * utils.c: Likewise.
12173 2014-08-07 Gary Benson <gbenson@redhat.com>
12175 * server.h: Do not include stdio.h.
12176 * linux-low.c: Likewise.
12177 * remote-utils.c: Likewise.
12178 * spu-low.c: Likewise.
12179 * utils.c: Likewise.
12180 * wincecompat.c: Likewise.
12182 2014-08-06 Gary Benson <gbenson@redhat.com>
12184 * regcache.c (init_register_cache): Move conditionals inside if.
12186 2014-08-06 Gary Benson <gbenson@redhat.com>
12188 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12190 2014-07-31 Gary Benson <gbenson@redhat.com>
12192 * ax.h: Do not include server.h.
12193 * gdbthread.h: Likewise.
12194 * lynx-low.h: Likewise.
12195 * notif.h: Likewise.
12197 2014-07-30 Gary Benson <gbenson@redhat.com>
12199 * server.h: Include common-defs.h.
12200 Do not include config.h or build-gnulib-gdbserver/config.h.
12202 2014-07-30 Gary Benson <gbenson@redhat.com>
12204 * hostio-errno.c: Move server.h to top of includes list.
12205 * inferiors.c: Likewise.
12206 * linux-x86-low.c: Likewise.
12207 * notif.c: Include server.h.
12209 2014-07-24 Tom Tromey <tromey@redhat.com>
12210 Gary Benson <gbenson@redhat.com>
12212 * server.h (CORE_ADDR): Now unsigned.
12214 2014-07-16 Pedro Alves <palves@redhat.com>
12216 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12218 2014-07-15 Pedro Alves <palves@redhat.com>
12220 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12223 2014-07-11 Pedro Alves <palves@redhat.com>
12225 * linux-low.c (kill_wait_lwp): New function, based on
12226 kill_one_lwp_callback, but use my_waitpid directly.
12227 (kill_one_lwp_callback, linux_kill): Use it.
12229 2014-06-23 Pedro Alves <palves@redhat.com>
12231 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12232 before setting DR0..DR3.
12234 2014-06-20 Gary Benson <gbenson@redhat.com>
12236 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12237 * configure: Regenerated.
12238 * config.in: Likewise.
12240 2014-06-20 Gary Benson <gbenson@redhat.com>
12242 * Makefile.in (SFILES): Update locations for files moved
12243 from common to nat.
12244 (object file files): Reordered.
12246 2014-06-20 Gary Benson <gbenson@redhat.com>
12248 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12249 (i386_dr_low_set_addr): Likewise.
12250 (i386_dr_low_get_addr): Likewise.
12251 (i386_dr_low_can_set_control): Likewise.
12252 (i386_dr_low_set_control): Likewise.
12253 (i386_dr_low_get_control): Likewise.
12254 (i386_dr_low_get_status): Likewise.
12255 (i386_get_debug_register_length): Likewise.
12256 * linux-x86-low.c (i386_dr_low_set_addr):
12257 Changed signature. Made static.
12258 (i386_dr_low_get_addr): Likewise.
12259 (i386_dr_low_set_control): Likewise.
12260 (i386_dr_low_get_control): Likewise.
12261 (i386_dr_low_get_status): Likewise.
12262 (i386_dr_low): New global variable.
12263 * win32-i386-low.c (i386_dr_low_set_addr):
12264 Changed signature. Made static.
12265 (i386_dr_low_get_addr): Likewise.
12266 (i386_dr_low_set_control): Likewise.
12267 (i386_dr_low_get_control): Likewise.
12268 (i386_dr_low_get_status): Likewise.
12269 (i386_dr_low): New global variable.
12271 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12273 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12274 * Makefile.in (AR, AR_FLAGS): Define.
12275 * configure: Regenerate.
12277 2014-06-19 Gary Benson <gbenson@redhat.com>
12279 * Makefile.in (i386-dregs.o): New rule.
12280 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12281 * i386-low.c (target.h): Remove include.
12282 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12283 (DR_CONTROL_SHIFT): Likewise.
12284 (DR_CONTROL_SIZE): Likewise.
12285 (DR_RW_EXECUTE): Likewise.
12286 (DR_RW_WRITE): Likewise.
12287 (DR_RW_READ): Likewise.
12288 (DR_RW_IORW): Likewise.
12289 (DR_LEN_1): Likewise.
12290 (DR_LEN_2): Likewise.
12291 (DR_LEN_4): Likewise.
12292 (DR_LEN_8): Likewise.
12293 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12294 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12295 (DR_ENABLE_SIZE): Likewise.
12296 (DR_LOCAL_SLOWDOWN): Likewise.
12297 (DR_GLOBAL_SLOWDOWN): Likewise.
12298 (DR_CONTROL_RESERVED): Likewise.
12299 (I386_DR_CONTROL_MASK): Likewise.
12300 (I386_DR_VACANT): Likewise.
12301 (I386_DR_LOCAL_ENABLE): Likewise.
12302 (I386_DR_GLOBAL_ENABLE): Likewise.
12303 (I386_DR_DISABLE): Likewise.
12304 (I386_DR_SET_RW_LEN): Likewise.
12305 (I386_DR_GET_RW_LEN): Likewise.
12306 (I386_DR_WATCH_HIT): Likewise.
12307 (i386_wp_op_t): Likewise.
12308 (i386_show_dr): Likewise.
12309 (i386_length_and_rw_bits): Likewise.
12310 (i386_insert_aligned_watchpoint): Likewise.
12311 (i386_remove_aligned_watchpoint): Likewise.
12312 (i386_handle_nonaligned_watchpoint): Likewise.
12313 i386_update_inferior_debug_regs(): Likewise.
12314 (i386_dr_insert_watchpoint): Likewise.
12315 (i386_dr_remove_watchpoint): Likewise.
12316 (i386_dr_region_ok_for_watchpoint): Likewise.
12317 (i386_dr_stopped_data_address): Likewise.
12318 (i386_dr_stopped_by_watchpoint): Likewise.
12320 2014-06-19 Gary Benson <gbenson@redhat.com>
12322 * i386-low.c (i386_dr_show): Renamed to
12323 i386_show_dr and made static. All uses updated.
12324 (i386_dr_length_and_rw_bits): Renamed to
12325 i386_length_and_rw_bits and made static.
12327 (i386_dr_insert_aligned_watchpoint): Renamed to
12328 i386_insert_aligned_watchpoint and made static.
12330 (i386_dr_remove_aligned_watchpoint): Renamed to
12331 i386_remove_aligned_watchpoint and made static.
12333 (i386_dr_update_inferior_debug_regs): Renamed to
12334 i386_update_inferior_debug_regs and made static.
12337 2014-06-18 Gary Benson <gbenson@redhat.com>
12339 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12340 (i386_dr_low_can_set_control): Likewise.
12341 (i386_get_debug_register_length): Likewise.
12342 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12343 (i386_dr_low_can_set_control): Likewise.
12344 (i386_get_debug_register_length): Likewise.
12346 2014-06-17 Gary Benson <gbenson@redhat.com>
12348 * i386-low.h (i386-dregs.h): New include.
12349 (DR_FIRSTADDR): Now in i386-dregs.h.
12350 (DR_LASTADDR): Likewise.
12351 (DR_NADDR): Likewise.
12352 (DR_STATUS): Likewise.
12353 (DR_CONTROL): Likewise.
12354 (i386_debug_reg_state): Likewise.
12355 (i386_dr_insert_watchpoint): Likewise.
12356 (i386_dr_remove_watchpoint): Likewise.
12357 (i386_dr_region_ok_for_watchpoint): Likewise.
12358 (i386_dr_stopped_data_address): Likewise.
12359 (i386_dr_stopped_by_watchpoint): Likewise.
12360 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12362 2014-06-18 Gary Benson <gbenson@redhat.com>
12364 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12365 i386_dr_insert_watchpoint.
12366 (i386_low_remove_watchpoint): Renamed to
12367 i386_dr_remove_watchpoint.
12368 (i386_low_region_ok_for_watchpoint): Renamed to
12369 i386_dr_region_ok_for_watchpoint.
12370 (i386_low_stopped_data_address): Renamed to
12371 i386_dr_stopped_data_address.
12372 (i386_low_stopped_by_watchpoint): Renamed to
12373 i386_dr_stopped_by_watchpoint.
12374 * i386-low.c (i386_show_dr): Renamed to
12375 i386_dr_show and made nonstatic. All uses updated.
12376 (i386_length_and_rw_bits): Renamed to
12377 i386_dr_length_and_rw_bits and made nonstatic.
12379 (i386_insert_aligned_watchpoint): Renamed to
12380 i386_dr_insert_aligned_watchpoint and made nonstatic.
12382 (i386_remove_aligned_watchpoint): Renamed to
12383 i386_dr_remove_aligned_watchpoint and made nonstatic.
12385 (i386_update_inferior_debug_regs): Renamed to
12386 i386_dr_update_inferior_debug_regs and made nonstatic.
12388 (i386_low_insert_watchpoint): Renamed to
12389 i386_dr_insert_watchpoint. All uses updated.
12390 (i386_low_remove_watchpoint): Renamed to
12391 i386_dr_remove_watchpoint. All uses updated.
12392 (i386_low_region_ok_for_watchpoint): Renamed to
12393 i386_dr_region_ok_for_watchpoint. All uses updated.
12394 (i386_low_stopped_data_address): Renamed to
12395 i386_dr_stopped_data_address. All uses updated.
12396 (i386_low_stopped_by_watchpoint): Renamed to
12397 i386_dr_stopped_by_watchpoint. All uses updated.
12399 2014-06-18 Gary Benson <gbenson@redhat.com>
12401 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12402 (i386_dr_low_can_set_control): Likewise.
12403 (i386_insert_aligned_watchpoint): New check.
12405 2014-06-18 Gary Benson <gbenson@redhat.com>
12407 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12410 2014-06-18 Gary Benson <gbenson@redhat.com>
12412 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12413 instead of fatal and error.
12414 (i386_handle_nonaligned_watchpoint): Likewise.
12416 2014-06-18 Gary Benson <gbenson@redhat.com>
12418 * i386-low.c (i386_get_debug_register_length): New macro.
12419 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12420 (i386_show_dr): Use debug_printf instead of fprintf. Use
12421 phex to format values.
12423 2014-06-18 Gary Benson <gbenson@redhat.com>
12425 * i386-low.h: Comment changes.
12426 * i386-low.c: Likewise.
12428 2014-06-18 Gary Benson <gbenson@redhat.com>
12430 * i386-low.c: Whitespace changes.
12432 2014-06-12 Tom Tromey <tromey@redhat.com>
12434 * utils.c (freeargv): Remove.
12436 2014-06-12 Tom Tromey <tromey@redhat.com>
12438 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12439 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12440 (parse_debug_format_options): Likewise.
12441 (gdbserver_usage): Likewise.
12442 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12443 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12444 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12446 ($(LIBGNU)): Depend on libiberty.
12447 (all-lib): Recurse into all subdirs.
12448 (install-only): Invoke "install" target in subdirs.
12449 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12451 * configure: Rebuild.
12452 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12453 for vasprintf, vsnprintf, or gettimeofday.
12454 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12457 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12459 * development.sh: Delete.
12460 * Makefile.in (config.status): Adjust dependency on development.sh.
12461 * configure.ac: Adjust development.sh source call.
12462 * configure: Regenerate.
12464 2014-06-02 Pedro Alves <palves@redhat.com>
12466 * ax.c (gdb_free_agent_expr): New function.
12467 * ax.h (gdb_free_agent_expr): New declaration.
12468 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12470 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12472 (clear_breakpoint_conditions_and_commands): New function.
12473 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12474 (clear_breakpoint_conditions_and_commands): New declaration.
12476 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12478 * linux-aarch64-low.c (asm/ptrace.h): Include.
12480 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12482 Fix TLS access for -static -pthread.
12483 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12484 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12485 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12487 2014-05-20 Pedro Alves <palves@redhat.com>
12489 * linux-aarch64-low.c (aarch64_insert_point)
12490 (aarch64_remove_point): No longer check whether the type is
12491 supported here. Adjust to new interface.
12492 (the_low_target): Install aarch64_supports_z_point_type as
12493 supports_z_point_type method.
12494 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12495 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12496 instead of a Z packet char. Adjust.
12497 (arm_supports_z_point_type): New function.
12498 (arm_insert_point, arm_remove_point): Adjust to new interface.
12499 (the_low_target): Install arm_supports_z_point_type.
12500 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12501 (cris_insert_point, cris_remove_point): Adjust to new interface.
12502 Don't check whether the type is supported here.
12503 (the_low_target): Install cris_supports_z_point_type.
12504 * linux-low.c (linux_supports_z_point_type): New function.
12505 (linux_insert_point, linux_remove_point): Adjust to new interface.
12506 * linux-low.h (struct linux_target_ops) <insert_point,
12507 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12508 raw_breakpoint pointer parameter.
12509 <supports_z_point_type>: New method.
12510 * linux-mips-low.c (mips_supports_z_point_type): New function.
12511 (mips_insert_point, mips_remove_point): Adjust to new interface.
12512 Use mips_supports_z_point_type.
12513 (the_low_target): Install mips_supports_z_point_type.
12514 * linux-ppc-low.c (the_low_target): Install NULL as
12515 supports_z_point_type method.
12516 * linux-s390-low.c (the_low_target): Install NULL as
12517 supports_z_point_type method.
12518 * linux-sparc-low.c (the_low_target): Install NULL as
12519 supports_z_point_type method.
12520 * linux-x86-low.c (x86_supports_z_point_type): New function.
12521 (x86_insert_point): Adjust to new insert_point interface. Use
12522 insert_memory_breakpoint. Adjust to new
12523 i386_low_insert_watchpoint interface.
12524 (x86_remove_point): Adjust to remove_point interface. Use
12525 remove_memory_breakpoint. Adjust to new
12526 i386_low_remove_watchpoint interface.
12527 (the_low_target): Install x86_supports_z_point_type.
12528 * lynx-low.c (lynx_target_ops): Install NULL as
12529 supports_z_point_type callback.
12530 * nto-low.c (nto_supports_z_point_type): New.
12531 (nto_insert_point, nto_remove_point): Adjust to new interface.
12532 (nto_target_ops): Install nto_supports_z_point_type.
12533 * mem-break.c: Adjust intro comment.
12534 (struct raw_breakpoint) <raw_type, size>: New fields.
12535 <inserted>: Update comment.
12536 <shlib_disabled>: Delete field.
12537 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12538 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12539 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12540 (raw_bkpt_type_to_target_hw_bp_type): New function.
12541 (find_enabled_raw_code_breakpoint_at): New function.
12542 (find_raw_breakpoint_at): New type and size parameters. Use them.
12543 (insert_memory_breakpoint): New function, based off
12544 set_raw_breakpoint_at.
12545 (remove_memory_breakpoint): New function.
12546 (set_raw_breakpoint_at): Reimplement.
12547 (set_breakpoint): New, based on set_breakpoint_at.
12548 (set_breakpoint_at): Reimplement.
12549 (delete_raw_breakpoint): Go through the_target->remove_point
12550 instead of assuming memory breakpoints.
12551 (find_gdb_breakpoint_at): Delete.
12552 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12553 (find_gdb_breakpoint): New function.
12554 (set_gdb_breakpoint_at): Delete.
12555 (z_type_supported): New function.
12556 (set_gdb_breakpoint_1): New function, loosely based off
12557 set_gdb_breakpoint_at.
12558 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12559 (delete_gdb_breakpoint_at): Delete.
12560 (delete_gdb_breakpoint_1): New function, loosely based off
12561 delete_gdb_breakpoint_at.
12562 (delete_gdb_breakpoint): New function.
12563 (clear_gdb_breakpoint_conditions): Rename to ...
12564 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12566 (add_condition_to_breakpoint): Make static.
12567 (add_breakpoint_condition): Take a struct breakpoint pointer
12568 instead of an address. Adjust.
12569 (gdb_condition_true_at_breakpoint): Rename to ...
12570 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12572 (gdb_condition_true_at_breakpoint): Reimplement.
12573 (add_breakpoint_commands): Take a struct breakpoint pointer
12574 instead of an address. Adjust.
12575 (gdb_no_commands_at_breakpoint): Rename to ...
12576 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12577 parameter. Return true if no breakpoint was found. Change debug
12579 (gdb_no_commands_at_breakpoint): Reimplement.
12580 (run_breakpoint_commands): Rename to ...
12581 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12582 and change return type to boolean.
12583 (run_breakpoint_commands): New function.
12584 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12585 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12586 breakpoint. Go through the_target->remove_point instead of
12587 assuming memory breakpoint.
12588 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12589 software and hardware breakpoints.
12590 (reinsert_raw_breakpoint): Go through the_target->insert_point
12591 instead of assuming memory breakpoint.
12592 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12593 software and hardware breakpoints.
12594 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12595 Check both software and hardware breakpoints.
12596 (validate_inserted_breakpoint): Assert the breakpoint is a
12597 software breakpoint. Set the inserted flag to -1 instead of
12598 setting shlib_disabled.
12599 (delete_disabled_breakpoints): Adjust.
12600 (validate_breakpoints): Only validate software breakpoints.
12601 Adjust to inserted flag change.
12602 (check_mem_read, check_mem_write): Skip breakpoint types other
12603 than software breakpoints. Adjust to inserted flag change.
12604 * mem-break.h (enum raw_bkpt_type): New enum.
12605 (raw_breakpoint, struct process_info): Forward declare.
12606 (Z_packet_to_target_hw_bp_type): Delete declaration.
12607 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12608 (set_gdb_breakpoint, delete_gdb_breakpoint)
12609 (clear_breakpoint_conditions): New declarations.
12610 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12611 (breakpoint_inserted_here): Update comment.
12612 (add_breakpoint_condition, add_breakpoint_commands): Replace
12613 address parameter with a breakpoint pointer parameter.
12614 (gdb_breakpoint_here): Update comment.
12615 (delete_gdb_breakpoint_at): Delete.
12616 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12617 * server.c (process_point_options): Take a struct breakpoint
12618 pointer instead of an address. Adjust.
12619 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12620 delete_gdb_breakpoint.
12621 * spu-low.c (spu_target_ops): Install NULL as
12622 supports_z_point_type method.
12623 * target.h: Include mem-break.h.
12624 (struct target_ops) <prepare_to_access_memory>: Update comment.
12625 <supports_z_point_type>: New field.
12626 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12627 instead of a char. Also take a raw breakpoint pointer.
12628 * win32-arm-low.c (the_low_target): Install NULL as
12629 supports_z_point_type.
12630 * win32-i386-low.c (i386_supports_z_point_type): New function.
12631 (i386_insert_point, i386_remove_point): Adjust to new interface.
12632 (the_low_target): Install i386_supports_z_point_type.
12633 * win32-low.c (win32_supports_z_point_type): New function.
12634 (win32_insert_point, win32_remove_point): Adjust to new interface.
12635 (win32_target_ops): Install win32_supports_z_point_type.
12636 * win32-low.h (struct win32_target_ops):
12637 <supports_z_point_type>: New method.
12638 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12639 instead of a char. Also take a raw breakpoint pointer.
12641 2014-05-20 Pedro Alves <palves@redhat.com>
12643 * mem-break.h: Include break-common.h.
12644 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12645 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12646 (Z_packet_to_target_hw_bp_type): New declaration.
12647 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12648 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12649 (Z_PACKET_ACCESS_WP): Delete macros.
12650 (Z_packet_to_hw_type): Delete function.
12651 * i386-low.h: Don't include break-common.h here.
12652 (Z_packet_to_hw_type): Delete declaration.
12653 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12654 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12655 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12656 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12657 * linux-aarch64-low.c: Don't include break-common.h here.
12658 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12659 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12660 (Z_packet_to_target_hw_bp_type): Delete function.
12661 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12663 (mips_insert_point, mips_remove_point): Use
12664 Z_packet_to_target_hw_bp_type.
12666 2014-05-20 Pedro Alves <palves@redhat.com>
12668 * linux-aarch64-low.c: Include break-common.h.
12669 (enum target_point_type): Delete.
12670 (Z_packet_to_point_type): Rename to ...
12671 (Z_packet_to_target_hw_bp_type): ... this, and return a
12672 target_hw_bp_type instead.
12673 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12674 instead of an enum target_point_type.
12675 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12677 (aarch64_dr_state_insert_one_point)
12678 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12679 (aarch64_handle_aligned_watchpoint)
12680 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12681 Take an enum target_hw_bp_type instead of an enum
12683 (aarch64_supports_z_point_type): New function.
12684 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12685 use Z_packet_to_target_hw_bp_type.
12687 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12689 * configure.ac: Only use -Werror by default when DEVELOPMENT
12691 * configure: Regenerate.
12693 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12695 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12696 * linux-x86-low.c (X86_64_USER_REGS): New.
12697 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12699 2014-04-28 Yao Qi <yao@codesourcery.com>
12701 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12704 2014-04-25 Pedro Alves <palves@redhat.com>
12707 * linux-low.c (linux_attach_fail_reason_string): New function.
12708 (linux_attach_lwp): Delete.
12709 (linux_attach_lwp_1): Rename to ...
12710 (linux_attach_lwp): ... this. 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): Adjust to call linux_attach_lwp. Call error on
12714 failure to attach to the tgid. Call warning when failing to
12716 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12717 argument. Remove "initial" parameter. Return int instead of
12718 void. Don't error or warn here.
12719 (linux_attach_fail_reason_string): New declaration.
12720 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12721 interface change. Use linux_attach_fail_reason_string.
12723 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12724 Walfred Tedeschi <walfred.tedeschi@intel.com>
12726 * Makefile.in: Added rules to handle new files
12727 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12728 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12729 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12730 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12731 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12732 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12733 x32-avx512-linux.o.
12734 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12735 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12736 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12737 i386/x32-avx512.xml.
12738 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12739 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12740 i386/x32-avx512-linux.xml.
12741 * i387-fp.c (num_avx512_k_registers): New constant for number
12743 (num_avx512_zmmh_low_registers): New constant for number of
12744 lower ZMM registers (0-15).
12745 (num_avx512_zmmh_high_registers): New constant for number of
12746 higher ZMM registers (16-31).
12747 (num_avx512_ymmh_registers): New contant for number of higher
12748 YMM registers (ymm16-31 added by avx521 on x86_64).
12749 (num_avx512_xmm_registers): New constant for number of higher
12750 XMM registers (xmm16-31 added by AVX512 on x86_64).
12751 (struct i387_xsave): Add space for AVX512 registers.
12752 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12753 Add code to handle AVX512 registers.
12754 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12755 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12756 prototypei from generated file.
12757 (tdesc_amd64_avx512_linux): Likewise.
12758 (init_registers_x32_avx512_linux): Likewise.
12759 (tdesc_x32_avx512_linux): Likewise.
12760 (init_registers_i386_avx512_linux): Likewise.
12761 (tdesc_i386_avx512_linux): Likewise.
12762 (x86_64_regmap): Add AVX512 registers.
12763 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12765 (initialize_low_arch): Add code to initialize AVX512 registers.
12767 2014-04-23 Pedro Alves <palves@redhat.com>
12769 * mem-break.c (find_gdb_breakpoint_at): Make static.
12770 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12772 2014-04-23 Pedro Alves <palves@redhat.com>
12774 * i386-low.c: Don't include break-common.h here.
12775 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12776 prototype to take target_hw_bp_type as argument instead of a Z
12778 * i386-low.h: Include break-common.h here.
12779 (Z_packet_to_hw_type): Declare.
12780 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12782 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12783 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12784 (x86_remove_point): Convert the packet number to a
12785 target_hw_bp_type before calling i386_low_remove_watchpoint.
12786 * win32-i386-low.c (i386_insert_point): Convert the packet number
12787 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12788 (i386_remove_point): Convert the packet number to a
12789 target_hw_bp_type before calling i386_low_remove_watchpoint.
12791 2014-04-23 Pedro Alves <palves@redhat.com>
12793 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12795 2014-04-10 Pedro Alves <palves@redhat.com>
12797 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12798 Check if the condition or command is NULL before checking if the
12799 breakpoint is known. On success, return true.
12800 * mem-break.h (add_breakpoint_condition): Document return.
12801 (add_breakpoint_commands): Add describing comment.
12802 * server.c (skip_to_semicolon): New function.
12803 (process_point_options): Use it.
12805 2014-04-09 Pedro Alves <palves@redhat.com>
12807 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12810 2014-02-27 Pedro Alves <palves@redhat.com>
12813 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12815 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12817 (last_thread_of_process_p): Take a PID argument instead of a
12819 (linux_wait_for_lwp): Delete.
12820 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12822 (linux_low_filter_event): New function, party factored out from
12823 linux_wait_for_event.
12824 (linux_wait_for_event): Rename to ...
12825 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12826 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12827 sigsuspend. Check for zombie leaders.
12828 (linux_wait_for_event): Reimplement as wrapper around
12829 linux_wait_for_event_filtered.
12830 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12831 a normal or signal exit is seen, it's the whole process exiting.
12832 (wait_for_sigstop): No longer a for_each_inferior callback.
12833 Rewrite on top of linux_wait_for_event_filtered.
12834 (stop_all_lwps): Call wait_for_sigstop directly.
12835 * server.c (resume, handle_target_event): Handle
12836 TARGET_WAITKIND_NO_RESUMED.
12838 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12840 * win32-low.c (psapi_get_dll_name,
12841 * win32_CreateToolhelp32Snapshot): Delete.
12842 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12843 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12845 (handle_load_dll): Add function description.
12846 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12848 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12850 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12852 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12853 base address when calling win32_add_one_solib.
12854 (handle_load_dll): Delete local variable load_addr.
12855 Remove 0x1000 offset applied to DLL base address when calling
12856 win32_add_one_solib.
12857 (handle_unload_dll): Add comment.
12859 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12861 * win32-low.c (win32_add_all_dlls): Renames
12862 win32_ensure_ntdll_loaded. Rewrite function documentation.
12863 Adjust implementation to always load all DLLs.
12864 Add 0x1000 offset to DLL base address when calling
12865 win32_add_one_solib.
12866 (child_initialization_done): New static global.
12867 (do_initial_child_stuff): Set child_initialization_done to
12868 zero during child initialization, and 1 after. Replace call
12869 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12871 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12872 (handle_unload_dll): Add function documentation.
12873 (get_child_debug_event): Ignore load and unload DLL events
12874 during child initialization.
12876 2014-02-20 Doug Evans <dje@google.com>
12878 Remove global all_lwps.
12879 * inferiors.h (ptid_of): Move here from linux-low.h.
12880 (pid_of, lwpid_of): Ditto.
12881 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12882 parameter is a struct thread_info * now.
12883 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12884 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12885 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12887 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12888 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12889 * linux-arm-low.c (update_registers_callback): Update, "entry"
12890 parameter is a struct thread_info * now.
12891 Fetch lwpid from current_inferior directly.
12892 (arm_insert_point): Pass &all_threads to find_inferior instead of
12894 (arm_remove_point): Ditto.
12895 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12896 (arm_prepare_to_resume): Fetch pid from thread.
12897 (arm_read_description): Fetch lwpid from current_inferior directly.
12898 * linux-low.c (all_lwps): Delete.
12899 (delete_lwp): Delete call to remove_inferior.
12900 (handle_extended_wait): Fetch lwpid from thread.
12901 (add_lwp): Don't set lwp->entry.id. Remove call to
12902 add_inferior_to_list.
12903 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12904 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12905 (kill_one_lwp_callback): Ditto.
12906 (linux_kill): Don't dereference NULL pointer.
12907 Fetch ptid,lwpid from thread.
12908 (get_detach_signal): Fetch ptid from thread.
12909 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12910 Simplify call to regcache_invalidate_thread.
12911 (delete_lwp_callback): Update, "entry" parameter is a
12912 struct thread_info * now. Fetch pid from thread.
12913 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12914 (status_pending_p_callback): Update, "entry" parameter is a
12915 struct thread_info * now. Fetch ptid from thread.
12916 (find_lwp_pid): Update, "entry" parameter is a
12917 struct thread_info * now.
12918 (linux_wait_for_lwp): Fetch pid from thread.
12919 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12920 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12921 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12922 (dequeue_one_deferred_signal): Ditto.
12923 (cancel_breakpoint): Fetch ptid from current_inferior.
12924 (linux_wait_for_event): Pass &all_threads to find_inferior,
12925 not &all_lwps. Fetch ptid, lwpid from thread.
12926 (count_events_callback): Update, "entry" parameter is a
12927 struct thread_info * now.
12928 (select_singlestep_lwp_callback): Ditto.
12929 (select_event_lwp_callback): Ditto.
12930 (cancel_breakpoints_callback): Ditto.
12931 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12933 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12934 (unsuspend_one_lwp): Update, "entry" parameter is a
12935 struct thread_info * now.
12936 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12938 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12939 Fetch lwpid from thread, not lwp.
12940 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12941 Pass &all_threads to find_inferior, not &all_lwps.
12942 (send_sigstop): Fetch lwpid from thread, not lwp.
12943 (send_sigstop_callback): Update, "entry" parameter is a
12944 struct thread_info * now.
12945 (suspend_and_send_sigstop_callback): Ditto.
12946 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12947 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12948 struct thread_info * now.
12949 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12951 (lwp_running): Update, "entry" parameter is a
12952 struct thread_info * now.
12953 (stop_all_lwps): Fetch ptid from thread.
12954 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12955 (linux_resume_one_lwp): Fetch lwpid from thread.
12956 (linux_set_resume_request): Update, "entry" parameter is a
12957 struct thread_info * now. Fetch pid, lwpid from thread.
12958 (resume_status_pending_p): Update, "entry" parameter is a
12959 struct thread_info * now.
12960 (need_step_over_p): Ditto. Fetch lwpid from thread.
12961 (start_step_over): Fetch lwpid from thread.
12962 (linux_resume_one_thread): Update, "entry" parameter is a
12963 struct thread_info * now. Fetch lwpid from thread.
12964 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12965 (proceed_one_lwp): Update, "entry" parameter is a
12966 struct thread_info * now. Fetch lwpid from thread.
12967 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12968 struct thread_info * now.
12969 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12970 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12971 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12973 (regsets_store_inferior_registers): Ditto.
12974 (fetch_register, store_register): Ditto.
12975 (linux_read_memory, linux_write_memory): Ditto.
12976 (linux_request_interrupt): Ditto.
12977 (linux_read_auxv): Ditto.
12978 (linux_xfer_siginfo): Ditto.
12979 (linux_qxfer_spu): Ditto.
12980 (linux_qxfer_libraries_svr4): Ditto.
12981 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12982 moved to inferiors.h.
12984 (get_thread_lwp): Update.
12985 (struct lwp_info): Delete member "entry". Simplify comment for
12987 (all_lwps): Delete.
12988 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12989 current_inferior directly.
12990 (update_watch_registers_callback): Update, "entry" parameter is a
12991 struct thread_info * now. Fetch pid from thread.
12992 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12993 (mips_insert_point): Fetch lwpid from current_inferior.
12994 Pass &all_threads to find_inferior, not &all_lwps.
12995 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12996 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12998 (mips_stopped_data_address): Ditto.
12999 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13001 * linux-tile-low.c (tile_arch_setup): Ditto.
13002 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13003 (update_debug_registers_callback): Update, "entry" parameter is a
13004 struct thread_info * now. Fetch pid from thread.
13005 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13006 Pass &all_threads to find_inferior, not &all_lwps.
13007 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13008 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13009 Pass &all_threads to find_inferior, not &all_lwps.
13010 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13011 (i386_dr_low_get_status): Ditto.
13012 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13013 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13014 (x86_linux_read_description): Ditto.
13015 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13017 2014-02-20 Doug Evans <dje@google.com>
13019 * inferiors.c (get_first_inferior): Fix buglet.
13021 2014-02-19 Doug Evans <dje@google.com>
13023 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13024 * inferiors.c (add_thread): Change result type to struct thread_info *.
13025 All callers updated.
13026 (add_lwp): Call add_thread here instead of in callers.
13027 All callers updated.
13028 * linux-low.h (get_lwp_thread): Rewrite.
13029 (struct lwp_info): New member "thread".
13031 2014-02-19 Doug Evans <dje@google.com>
13033 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13034 All callers updated.
13036 2014-02-19 Doug Evans <dje@google.com>
13038 * inferiors.c (add_thread): Fix whitespace.
13040 2014-02-19 Doug Evans <dje@google.com>
13042 * dll.c (clear_dlls): Replace accessing list implemention details
13044 * gdbthread.h (get_first_thread): Declare.
13045 * inferiors.c (for_each_inferior_with_data): New function.
13046 (get_first_thread): New function.
13047 (find_thread_ptid): Simplify.
13048 (get_first_inferior): New function.
13049 (clear_list): Delete.
13050 (one_inferior_p): New function.
13051 (clear_inferior_list): New function.
13052 (clear_inferiors): Update.
13053 * inferiors.h (for_each_inferior_with_data): Declare.
13054 (clear_inferior_list): Declare.
13055 (one_inferior_p): Declare.
13056 (get_first_inferior): Declare.
13057 * linux-low.c (linux_wait_for_event): Replace accessing list
13058 implemention details with API function.
13059 * server.c (target_running): Ditto.
13060 (accumulate_file_name_length): New function.
13061 (emit_dll_description): New function.
13062 (handle_qxfer_libraries): Replace accessing list implemention
13063 details with API function.
13064 (handle_qxfer_threads_worker): New function.
13065 (handle_qxfer_threads_proper): Replace accessing list implemention
13066 details with API function.
13067 (handle_query): Ditto.
13068 (visit_actioned_threads_callback_ftype): New typedef.
13069 (visit_actioned_threads_data): New struct.
13070 (visit_actioned_threads): Rewrite to be find_inferior callback.
13071 (resume): Call find_inferior.
13072 (handle_status): Replace accessing list implemention
13073 details with API function.
13074 (process_serial_event): Replace accessing list implemention details
13076 * target.c (set_desired_inferior): Replace accessing list implemention
13077 details with API function.
13078 * tracepoint.c (same_process_p): New function.
13079 (gdb_agent_about_to_close): Replace accessing list implemention
13080 details with API function.
13081 * win32-low.c (child_delete_thread): Replace accessing list
13082 implemention details with API function.
13083 (match_dll_by_basename): New function.
13084 (dll_is_loaded_by_basename): New function.
13085 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13086 details call to dll_is_loaded_by_basename.
13088 2014-02-19 Doug Evans <dje@google.com>
13090 * dll.h (struct dll_info): Add comment.
13091 * gdbthread.h (struct thread_info): Add comment.
13092 (current_ptid): Simplify.
13093 * inferiors.c (add_process): Update.
13094 (remove_process): Update.
13095 * inferiors.h (struct process_info): Rename member "head" to "entry".
13096 * linux-low.c (delete_lwp): Update.
13098 (last_thread_of_process_p): Update.
13099 (kill_one_lwp_callback, linux_kill): Update.
13100 (status_pending_p_callback): Update.
13101 (wait_for_sigstop): Update. Simplify read of ptid.
13102 (start_step_over): Update.
13103 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13104 (get_lwp_thread): Update.
13105 (struct lwp_info): Rename member "head" to "entry".
13106 * regcache.h (inferior_list_entry): Delete.
13107 * server.c (kill_inferior_callback): Update.
13108 (detach_or_kill_inferior_callback): Update.
13109 (print_started_pid): Update.
13110 (print_attached_pid): Update.
13111 (process_serial_event): Simplify read of ptid.
13112 * thread-db.c (thread_db_create_event): Update.
13113 (thread_db_get_tls_address): Update.
13114 * win32-low.c (current_inferior_ptid): Simplify.
13116 2014-02-19 Tom Tromey <tromey@redhat.com>
13118 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13120 (target_supports_btrace): Update.
13122 2014-02-14 Yao Qi <yao@codesourcery.com>
13124 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13125 (rsp-low-ipa.o): New target.
13127 2014-02-12 Tom Tromey <tromey@redhat.com>
13129 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13130 convert_ascii_to_int.
13131 * regcache.c (registers_to_string): Likewise.
13132 * remote-utils.c (decode_M_packet): Likewise.
13133 * server.c (process_serial_event): Likewise.
13135 2014-02-12 Tom Tromey <tromey@redhat.com>
13137 * server.c (handle_query, handle_v_run): Use hex2bin, not
13139 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13141 2014-02-12 Tom Tromey <tromey@redhat.com>
13143 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13144 convert_int_to_ascii.
13145 * regcache.c (registers_to_string, collect_register_as_string):
13147 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13149 * server.c (process_serial_event): Likewise.
13150 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13151 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13153 2014-02-12 Tom Tromey <tromey@redhat.com>
13155 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13156 bin2hex, not hexify.
13157 * tracepoint.c (cmd_qtstatus): Likewise.
13159 2014-02-12 Tom Tromey <tromey@redhat.com>
13161 * remote-utils.c (monitor_output): Pass explicit length to
13164 2014-02-12 Tom Tromey <tromey@redhat.com>
13166 * tracepoint.c: Include rsp-low.h.
13167 * server.c: Include rsp-low.h.
13168 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13169 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13171 * remote-utils.c: Include rsp-low.h.
13172 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13173 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13174 (convert_int_to_ascii, convert_ascii_to_int): Move to
13176 * regcache.c: Include rsp-low.h.
13177 * ax.c: Include rsp-low.h.
13178 * Makefile.in (SFILES): Add common/rsp-low.c.
13179 (OBS): Add rsp-low.o.
13180 (rsp-low.o): New target.
13182 2014-02-12 Tom Tromey <tromey@redhat.com>
13184 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13185 Include print-utils.h.
13186 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13187 (plongest, thirty_two, phex_nz): Remove.
13188 * Makefile.in (SFILES): Add common/print-utils.c.
13189 (OBS): Add print-utils.o.
13190 (print-utils-ipa.o): New target.
13191 (print-utils.o): New target.
13192 (IPA_OBJS): Add print-utils-ipa.o.
13194 2014-02-06 Tom Tromey <tromey@redhat.com>
13196 * Makefile.in (SFILES): Fix indentation.
13198 2014-02-05 Doug Evans <dje@google.com>
13200 * linux-low.c (linux_wait_for_event): Improve comment.
13201 (linux_wait_1): Keep current_inferior in sync with event_child.
13203 2014-01-22 Doug Evans <dje@google.com>
13205 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13207 2014-01-22 Doug Evans <dje@google.com>
13209 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13210 * configure: Regenerate.
13211 * config.in: Regenerate.
13212 * Makefile.in (SFILES): Add debug.c.
13213 (OBS): Add debug.o.
13214 * debug.c: New file.
13215 * debug.h: New file.
13216 * linux-aarch64-low.c (*): Update all debugging printfs to use
13217 debug_printf instead of fprintf.
13218 * linux-arm-low.c (*): Ditto.
13219 * linux-cris-low.c (*): Ditto.
13220 * linux-crisv32-low.c (*): Ditto.
13221 * linux-m32r-low.c (*): Ditto.
13222 * linux-sparc-low.c (*): Ditto.
13223 * linux-x86.c (*): Ditto.
13224 * linux-low.c (*): Ditto.
13225 (linux_wait_1): Add calls to debug_enter, debug_exit.
13226 (linux_wait): Remove redundant debugging printf.
13227 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13228 (linux_resume, unstop_all_lwps): Ditto.
13229 * mem-break.c (*): Update all debugging printfs to use
13230 debug_printf instead of fprintf.
13231 * remote-utils.c (*): Ditto.
13232 * thread-db.c (*): Ditto.
13233 * server.c #include <ctype.h>, "gdb_vecs.h".
13234 (debug_threads): Moved to debug.c.
13235 (*): Update all debugging printfs to use debug_printf instead of
13237 (start_inferior): Replace call to fflush with call to debug_flush.
13238 (monitor_show_help): Mention set debug-format.
13239 (parse_debug_format_options): New function.
13240 (handle_monitor_command): Handle "monitor set debug-format".
13241 (gdbserver_usage): Mention --debug-format.
13242 (main): Parse --debug-format.
13243 * server.h (debug_threads): Declaration moved to debug.h.
13244 #include "debug.h".
13245 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13246 trace_debug_1 that uses debug_printf.
13247 (tracepoint_look_up_symbols): Update all debugging printfs to use
13248 debug_printf instead of fprintf.
13250 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13252 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13255 2014-01-17 Pedro Alves <palves@redhat.com>
13258 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13259 defined after including gdb_proc_service.h.
13261 2014-01-16 Doug Evans <dje@google.com>
13263 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13264 (match_dll): Use it.
13266 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13268 * target.h (target_ops) <read_btrace>: Change parameters and
13269 return type to allow error reporting.
13270 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13271 trace reading errors on.
13272 * linux-low.c (linux_low_read_btrace): Pass trace reading
13274 (linux_low_disable_btrace): New.
13276 2014-01-15 Doug Evans <dje@google.com>
13278 * inferiors.c (thread_id_to_gdb_id): Delete.
13279 * inferiors.h (thread_id_to_gdb_id): Delete.
13281 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13283 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13284 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13287 2014-01-08 Pedro Alves <palves@redhat.com>
13289 * server.c (handle_status): Don't discard previous queued stop
13290 replies or thread's pending status here.
13291 (main) <disconnection>: Do it here instead.
13293 2014-01-08 Pedro Alves <palves@redhat.com>
13295 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13296 * server.c (visit_actioned_threads, handle_pending_status): New
13298 (handle_v_cont): Factor out parts to ...
13299 (resume): ... this new function. If in all-stop, and a thread
13300 being resumed has a pending status, report it without actually
13302 (myresume): Adjust to use the new 'resume' function.
13303 (clear_pending_status_callback, set_pending_status_callback)
13304 (find_status_pending_thread_callback): New functions.
13305 (handle_status): Handle the case of multiple threads having
13306 interesting statuses to report. Report threads' real last signal
13307 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13308 with an interesting thread to report the status for, instead of
13309 always reporting the status of the first thread.
13311 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13313 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13314 * gdbreplay.c (gdbreplay_version): Likewise.
13316 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13318 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13319 iov.iov_len with the real length in use.
13321 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13323 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13324 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13325 for all targets that use win32-low.c.
13326 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13327 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13329 2013-12-13 Pedro Alves <palves@redhat.com>
13331 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13332 if equal to TARGET_WAITKIND_LOADED.
13333 * win32-low.c (cached_status): New static global.
13334 (win32_wait): Add declaration.
13335 (do_initial_child_stuff): Flush all initial pending debug events
13336 up to the initial breakpoint.
13337 (win32_wait): If CACHED_STATUS was set, return that instead
13338 of doing a real wait. Remove the code resuming the execution
13339 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13340 during the initial phase. Also remove the code changing
13341 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13342 TARGET_WAITKIND_STOPPED.
13344 2013-12-11 Yao Qi <yao@codesourcery.com>
13346 * notif.c (handle_notif_ack): Return 0 if no notification
13349 2013-11-20 Doug Evans <dje@google.com>
13351 * linux-low.c (linux_set_resume_request): Fix comment.
13353 2013-11-20 Doug Evans <dje@google.com>
13355 * linux-low.c (resume_status_pending_p): Tweak comment.
13357 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13359 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13360 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13361 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13362 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13363 (srv_amd64_regobj): Add amd64-mpx.o.
13364 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13365 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13366 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13367 * i387-fp.c (num_pl_bnd_register) Added constant.
13368 (num_pl_bnd_cfg_registers) Added constant.
13369 (struct i387_xsave) Added reserved area and MPX fields.
13370 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13371 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13373 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13374 (init_registers_amd64_mpx_linux): Declare new function.
13375 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13376 (x86_64_regmap): Add MPX registers.
13377 (x86_linux_read_description): Add MPX case.
13378 (initialize_low_arch): Initialize MPX targets.
13380 2013-11-18 Tom Tromey <tromey@redhat.com>
13382 * configure: Rebuild.
13383 * configure.ac: Don't check for stdlib.h.
13384 * gdbreplay.c: Unconditionally include stdlib.h.
13386 2013-11-18 Tom Tromey <tromey@redhat.com>
13388 * config.in: Rebuild.
13389 * configure: Rebuild.
13390 * configure.ac: Don't use AC_HEADER_DIRENT.
13392 2013-11-18 Tom Tromey <tromey@redhat.com>
13394 * server.h: Don't check HAVE_STRING_H.
13395 * gdbreplay.c: Don't check HAVE_STRING_H.
13396 * configure: Rebuild.
13398 2013-11-18 Tom Tromey <tromey@redhat.com>
13400 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13403 2013-11-08 Tom Tromey <tromey@redhat.com>
13405 * configure, config.in: Rebuild.
13406 * configure.ac: Remove unused configury.
13408 2013-11-08 Tom Tromey <tromey@redhat.com>
13410 * acinclude.m4: Include common.m4, codeset.m4.
13411 * configure, config.in: Rebuild.
13412 * configure.ac: Use GDB_AC_COMMON.
13414 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13416 * linux-s390-low.c (HWCAP_S390_TE): New define.
13417 (s390_arch_setup): Consider the TE field in the HWCAP for
13418 determining 'have_regset_tdb'.
13420 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13423 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13426 2013-10-02 Pedro Alves <palves@redhat.com>
13428 * server.c (process_serial_event): Don't output "GDBserver
13429 exiting" if GDB is connected through stdio.
13430 * target.c (mywait): Likewise, be silent if GDB is connected
13433 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13435 * lynx-low.c (lynx_add_threads_after_attach): New function.
13436 (lynx_attach): Remove call to add_thread. Add call to
13437 lynx_add_threads_after_attach instead.
13439 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13441 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13442 * config.in, configure: Regenerated.
13444 2013-09-18 Yao Qi <yao@codesourcery.com>
13447 * server.c (start_inferior): Clear 'resume_info'.
13449 2013-09-16 Jiong Wang <jiwang@tilera.com>
13451 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13454 2013-09-16 Jiong Wang <jiwang@tilera.com>
13456 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13457 linux-tile-low.o to srv_tgtobj.
13459 2013-09-16 Will Newton <will.newton@linaro.org>
13461 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13464 2013-09-06 Pedro Alves <palves@redhat.com>
13466 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13467 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13468 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13469 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13470 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13471 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13473 2013-09-06 Pedro Alves <palves@redhat.com>
13475 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13476 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13478 2013-09-06 Pedro Alves <palves@redhat.com>
13480 * linux-amd64-ipa.c: Include tracepoint.h.
13481 * linux-i386-ipa.c: Include tracepoint.h.
13483 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13485 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13486 (ps_get_thread_area): New function.
13488 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13490 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13491 (initialize_low_arch): Call init_registers_crisv32 rather than
13492 init_register_crisv32.
13494 2013-09-05 Pedro Alves <palves@redhat.com>
13496 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13498 * hostio.h: ... this new file.
13499 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13500 win32-low.c: Include hostio.h.
13502 2013-09-05 Pedro Alves <palves@redhat.com>
13504 * server.h (gdb_client_data, handler_func, callback_handler_func)
13505 (delete_file_handler, add_file_handler, append_callback_event)
13506 (delete_callback_event, start_event_loop, initialize_event_loop):
13507 Move to event-loop.h and include it.
13508 * event-loop.h: New file.
13510 2013-09-05 Pedro Alves <palves@redhat.com>
13512 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13513 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13514 (loaded_dll, unloaded_dll): Move to ...
13515 * dll.h: ... this new file.
13516 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13518 2013-09-05 Pedro Alves <palves@redhat.com>
13520 * server.h (current_process, get_thread_process, all_processes)
13521 (add_inferior_to_list, for_each_inferior, current_inferior)
13522 (remove_inferior, add_process, remove_process, find_process_pid)
13523 (have_started_inferiors_p, have_attached_inferiors_p)
13524 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13525 (clear_inferiors, find_inferior, find_inferior_id)
13526 (inferior_target_data, set_inferior_target_data)
13527 (inferior_regcache_data, set_inferior_regcache_data): Move to
13528 inferiors.h, and include it.
13529 * inferiors.h: New file.
13531 2013-09-05 Pedro Alves <palves@redhat.com>
13533 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13537 2013-09-05 Pedro Alves <palves@redhat.com>
13539 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13541 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13542 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13543 (handle_tracepoint_general_set, handle_tracepoint_query)
13544 (tracepoint_finished_step, tracepoint_was_hit)
13545 (release_while_stepping_state_list, current_traceframe)
13546 (in_readonly_region, traceframe_read_mem)
13547 (fetch_traceframe_registers, traceframe_read_sdata)
13548 (traceframe_read_info, struct fast_tpoint_collect_status)
13549 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13550 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13551 (supply_fast_tracepoint_registers)
13552 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13553 (ipa_tdesc, claim_trampoline_space)
13554 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13555 (agent_mem_read, agent_get_trace_state_variable_value)
13556 (agent_set_trace_state_variable_value, agent_tsv_read)
13557 (agent_mem_read_string, get_raw_reg_func_addr)
13558 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13559 * tracepoint.h: ... this new file.
13561 2013-09-05 Pedro Alves <palves@redhat.com>
13563 * server.h (perror_with_name, error, fatal, warning, paddress)
13564 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13566 * utils.h: New file.
13568 2013-09-05 Pedro Alves <palves@redhat.com>
13570 * server.h (remote_debug, noack_mode, transport_is_reliable)
13571 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13572 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13573 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13574 (write_enn, initialize_async_io, enable_async_io)
13575 (disable_async_io, check_remote_input_interrupt_request)
13576 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13577 (dead_thread_notify, prepare_resume_reply)
13578 (decode_address_to_semicolon, decode_address, decode_m_packet)
13579 (decode_M_packet, decode_X_packet, decode_xfer_write)
13580 (decode_search_memory_packet, unhexify, hexify)
13581 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13582 (look_up_one_symbol, relocate_instruction)
13583 (monitor_output): Move to remote-utils.h, and include it.
13584 * remote-utils.h: New file.
13586 2013-09-05 Pedro Alves <palves@redhat.com>
13588 * server.h (_): Delete.
13590 2013-09-02 Pedro Alves <palves@redhat.com>
13592 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13593 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13595 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13597 2013-09-02 Pierre Muller <muller@sourceware.org>
13599 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13600 or WriteProcessMemory complete successfully and handle
13601 ERROR_PARTIAL_COPY error.
13603 2013-09-02 Pedro Alves <palves@redhat.com>
13605 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13606 error instead of EIO.
13608 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13611 * linux-low.c: Include filestuff.h.
13612 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13613 * lynx-low.c: Include filestuff.h.
13614 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13615 * server.c: Include filestuff.h.
13616 (main): Call notice_open_fds.
13617 * spu-low.c: Include filestuff.h.
13618 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13620 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13622 * Makefile.in: Explain why ../target and ../nat are not
13623 listed as include file search paths.
13624 (linux-waitpid.o): New object file rule.
13625 * configure.srv (srv_native_linux_obj): New variable.
13626 Replace all occurrences of linux native object files with
13627 $srv_native_linux_obj.
13628 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13629 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13630 (linux_enable_event_reporting): Remove declaration.
13631 (my_waitpid): Moved to common/linux-waitpid.c.
13632 (linux_wait_for_event): Pass ptid when calling
13633 linux_enable_event_reporting.
13634 (linux_supports_tracefork_flag): Remove.
13635 (linux_enable_event_reporting): Likewise.
13636 (linux_tracefork_grandchild): Remove.
13637 (STACK_SIZE): Moved to common/linux-ptrace.c.
13638 (linux_tracefork_child): Remove.
13639 (linux_test_for_tracefork): Remove.
13640 (linux_look_up_symbols): Call linux_supports_traceclone.
13641 (initialize_low): Remove call to linux_test_for_tracefork.
13642 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13643 common/linux-ptrace.h.
13644 (PTRACE_TYPE_ARG4): Likewise.
13645 Include linux-ptrace.h.
13647 2013-08-21 Pedro Alves <palves@redhat.com>
13649 * config.in: Renegerate.
13651 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13653 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13654 (SFILES): Remove $(srcdir)/common/target-common.c and
13655 add $(srcdir)/target/waitstatus.c.
13656 (OBS): Remove target-common.o and add waitstatus.o.
13657 (server_h): Remove $(srcdir)/../common/target-common.h and
13658 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13659 and $(srcdir)/../target/waitstatus.h.
13660 (target-common.o): Remove.
13661 (waitstatus.o): New target object file.
13662 * target.h: Do not include target-common.h and
13663 include target/resume.h, target/wait.h and
13664 target/waitstatus.h.
13666 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13668 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13669 to PTRACE_TYPE_ARG3.
13670 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13671 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13673 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13674 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13676 2013-07-27 Jie Zhang <jie@codesourcery.com>
13677 Daniel Jacobowitz <dan@codesourcery.com>
13678 Yao Qi <yao@codesourcery.com>
13680 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13681 (mips-linux-watch.o): New rule.
13682 (mips_linux_watch_h): New variable.
13683 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13685 * linux-mips-low.c: Include mips-linux-watch.h.
13686 (struct arch_process_info, struct arch_lwp_info): New.
13687 (update_watch_registers_callback): New function.
13688 (mips_linux_new_process, mips_linux_new_thread) New functions.
13689 (mips_linux_prepare_to_resume, mips_insert_point): New
13691 (mips_remove_point, mips_stopped_by_watchpoint): New
13693 (rsp_bp_type_to_target_hw_bp_type): New function.
13694 (mips_stopped_data_address): New function.
13695 (the_low_target): Add watchpoint support functions.
13697 2013-07-27 Yao Qi <yao@codesourcery.com>
13699 * i386-low.c: Include break-common.h.
13700 (enum target_hw_bp_type): Remove.
13702 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13704 * Makefile.in (SFILES): /common/target-common.c.
13705 (OBS): Add target-common.o.
13706 (server_h): Add $(srcdir)/../common/target-common.h.
13707 (target-common.o): New target.
13708 * server.c (queue_stop_reply_callback): Free
13709 status string after use.
13710 * target.c (target_waitstatus_to_string): Remove.
13711 * target.h: Include target-common.h.
13712 (resume_kind): Likewise.
13713 (target_waitkind): Likewise.
13714 (target_waitstatus): Likewise.
13715 (TARGET_WNOHANG): Likewise.
13717 2013-07-04 Yao Qi <yao@codesourcery.com>
13719 * Makefile.in (host_alias): Use @host_noncanonical@.
13720 (target_alias): Use @target_noncanonical@.
13721 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13722 ACX_NONCANONICAL_HOST.
13723 * configure: Regenerated.
13726 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13728 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13729 * configure: Rebuild.
13730 * Makefile.in (version_host, version_target): Get from configure.
13731 (version.c): Use $(version_host) and $(version_target).
13733 2013-07-03 Pedro Alves <palves@redhat.com>
13735 * Makefile.in (config.status): Depend on development.sh.
13736 * acinclude.m4: Include libmcheck.m4.
13737 * configure: Regenerate.
13739 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13741 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13742 attribute inside the parentheses.
13743 (winapi_DebugSetProcessKillOnExit): Ditto.
13744 (winapi_DebugBreakProcess): Ditto.
13745 (winapi_GenerateConsoleCtrlEvent): Ditto.
13747 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13749 * notif.h (notif_event): Add a dummy member to avoid compiler
13752 2013-07-01 Pedro Alves <palves@redhat.com>
13754 * hostio.c (HOSTIO_PATH_MAX): Define.
13755 (require_filename, handle_open, handle_unlink, handle_readlink):
13758 2013-07-01 Pedro Alves <palves@redhat.com>
13760 * server.h: Include "pathmax.h".
13761 * linux-low.c: Don't include sys/param.h.
13762 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13764 * win32-low.c: Don't include sys/param.h.
13765 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13767 2013-07-01 Pedro Alves <palves@redhat.com>
13769 * event-loop.c: Don't check HAVE_UNISTD_H before including
13771 * gdbreplay.c: Likewise.
13772 * remote-utils.c: Likewise.
13773 * server.c: Likewise.
13774 * configure.ac: Don't check for unistd.h.
13775 * configure: Regenerate.
13777 2013-06-28 Tom Tromey <tromey@redhat.com>
13779 * Makefile.in (version.c): Use version.in, not
13782 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13784 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13785 * configure: Rebuild.
13786 * Makefile.in (version_host, version_target): Get from configure.
13787 (version.c): Use $(version_host) and $(version_target).
13789 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13791 Fix trace-status to output user name without trailing colon.
13792 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13794 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13796 Fix trace-status to output proper start-time and stop-time.
13797 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13798 output start time and stop time in hex as gdb expects.
13800 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13802 * tracepoint.c (build_traceframe_info_xml): Output trace state
13803 variables present in the trace buffer.
13805 2013-06-24 Tom Tromey <tromey@redhat.com>
13807 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13809 (version.o): Remove.
13810 * gdbreplay.c: Include version.h.
13811 (version, host_name): Don't declare.
13812 * server.h: Include version.h.
13813 (version, host_name): Don't declare.
13815 2013-06-12 Pedro Alves <palves@redhat.com>
13817 * linux-x86-low.c (linux_is_elf64): Delete global.
13818 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13819 with local linux_pid_exe_is_elf_64_file use.
13821 2013-06-11 Pedro Alves <palves@redhat.com>
13823 * linux-low.c (regset_disabled, disable_regset): New functions.
13824 (regsets_fetch_inferior_registers)
13825 (regsets_store_inferior_registers): Use them.
13826 (initialize_regsets_info); Don't allocate the disabled_regsets
13828 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13831 2013-06-11 Pedro Alves <palves@redhat.com>
13833 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13836 2013-06-11 Pedro Alves <palves@redhat.com>
13838 * linux-x86-low.c (initialize_low_arch): Call
13839 init_registers_x32_avx_linux.
13841 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13843 Fix compatibility with Android Bionic.
13844 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13847 2013-06-07 Pedro Alves <palves@redhat.com>
13850 * Makefile.in (OBS): Add tdesc.o.
13851 (IPA_OBJS): Add tdesc-ipa.o.
13852 (tdesc-ipa.o): New rule.
13853 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13855 * linux-low.c (new_inferior): Delete.
13856 (disabled_regsets, num_regsets): Delete.
13857 (linux_add_process): Adjust to set the new per-process
13859 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13860 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13861 was a stop. When calling arch_setup, switch the current inferior
13862 to the thread that got an event.
13863 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13864 (regsets_fetch_inferior_registers)
13865 (regsets_store_inferior_registers): New regsets_info parameter.
13867 (linux_register_in_regsets): New regs_info parameter. Adjust to
13869 (register_addr, fetch_register, store_register): New usrregs_info
13870 parameter. Adjust to use it.
13871 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13872 parameter regs_info. Adjust to use it.
13873 (linux_fetch_registers): Get the current inferior's regs_info, and
13875 (linux_store_registers): Ditto.
13876 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13877 (initialize_low): Don't initialize the target_regsets here. Call
13878 initialize_low_arch.
13879 * linux-low.h (target_regsets): Delete declaration.
13880 (struct regsets_info): New.
13881 (struct usrregs_info): New.
13882 (struct regs_info): New.
13883 (struct process_info_private) <new_inferior>: New field.
13884 (struct linux_target_ops): Delete the num_regs, regmap, and
13885 regset_bitmap fields. New field regs_info.
13886 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13887 * i387-fp.c (num_xmm_registers): Delete.
13888 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13889 calls to new interface.
13890 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13891 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13892 Infer the number of xmm registers from the regcache's target
13894 * i387-fp.h (num_xmm_registers): Delete.
13895 * inferiors.c (add_thread): Don't install the thread's regcache
13897 * proc-service.c (gregset_info): Fetch the current inferior's
13898 regs_info. Adjust to use it.
13899 * regcache.c: Include tdesc.h.
13900 (register_bytes, reg_defs, num_registers)
13901 (gdbserver_expedite_regs): Delete.
13902 (get_thread_regcache): If the thread doesn't have a regcache yet,
13903 create one, instead of aborting gdbserver.
13904 (regcache_invalidate_one): Rename to ...
13905 (regcache_invalidate_thread): ... this.
13906 (regcache_invalidate_one): New.
13907 (regcache_invalidate): Only invalidate registers of the current
13909 (init_register_cache): Add target_desc parameter, and use it.
13910 (new_register_cache): Ditto. Assert the target description has a
13911 non zero registers_size.
13912 (regcache_cpy): Add assertions. Adjust.
13913 (realloc_register_cache, set_register_cache): Delete.
13914 (registers_to_string, registers_from_string): Adjust.
13915 (find_register_by_name, find_regno, find_register_by_number)
13916 (register_cache_size): Add target_desc parameter, and use it.
13917 (free_register_cache_thread, free_register_cache_thread_one)
13918 (regcache_release, register_cache_size): New.
13919 (register_size): Add target_desc parameter, and use it.
13920 (register_data, supply_register, supply_register_zeroed)
13921 (supply_regblock, supply_register_by_name, collect_register)
13922 (collect_register_as_string, collect_register_by_name): Adjust.
13923 * regcache.h (struct target_desc): Forward declare.
13924 (struct regcache) <tdesc>: New field.
13925 (init_register_cache, new_register_cache): Add target_desc
13927 (regcache_invalidate_thread): Declare.
13928 (regcache_invalidate_one): Delete declaration.
13929 (regcache_release): Declare.
13930 (find_register_by_number, register_cache_size, register_size)
13931 (find_regno): Add target_desc parameter.
13932 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13934 * remote-utils.c: Include tdesc.h.
13935 (outreg, prepare_resume_reply): Adjust.
13936 * server.c: Include tdesc.h.
13937 (gdbserver_xmltarget): Delete declaration.
13938 (get_features_xml, process_serial_event): Adjust.
13939 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13941 (struct process_info) <tdesc>: New field.
13942 (ipa_tdesc): Declare.
13943 * tdesc.c: New file.
13944 * tdesc.h: New file.
13945 * tracepoint.c: Include tdesc.h.
13946 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13947 (get_context_regcache): Adjust to pass ipa_tdesc down.
13948 (do_action_at_tracepoint): Adjust to get the register cache size
13949 from the context regcache's description.
13950 (traceframe_walk_blocks): Adjust to get the register cache size
13951 from the current trace frame's description.
13952 (traceframe_get_pc): Adjust to get current trace frame's
13953 description and pass it down.
13954 (gdb_collect): Adjust to get the register cache size from the
13956 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13957 (gdbserver_xmltarget): Delete.
13958 (initialize_low_tracepoint): Set the ipa's target description.
13959 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13960 (initialize_low_tracepoint): Set the ipa's target description.
13961 * linux-x86-low.c: Include tdesc.h.
13962 [__x86_64__] (is_64bit_tdesc): New.
13963 (ps_get_thread_area, x86_get_thread_area): Use it.
13964 (i386_cannot_store_register): Rename to ...
13965 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13966 (i386_cannot_fetch_register): Rename to ...
13967 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13968 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13970 (target_regsets): Rename to ...
13971 (x86_regsets): ... this.
13972 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13974 (x86_siginfo_fixup): Use is_64bit_tdesc.
13975 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13976 (tdesc_x32_avx_linux, tdesc_x32_linux)
13977 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13979 (x86_linux_update_xmltarget): Delete.
13980 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13981 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13982 (AMD64_LINUX_USER64_CS): New.
13983 (x86_linux_read_description): New, based on
13984 x86_linux_update_xmltarget.
13985 (same_process_callback): New.
13986 (x86_arch_setup_process_callback): New.
13987 (x86_linux_update_xmltarget): New.
13988 (x86_regsets_info): New.
13989 (amd64_linux_regs_info): New.
13990 (i386_linux_usrregs_info): New.
13991 (i386_linux_regs_info): New.
13992 (x86_linux_regs_info): New.
13993 (x86_arch_setup): Reimplement.
13994 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13995 (x86_emit_ops): Ditto.
13996 (the_low_target): Adjust. Install x86_linux_regs_info,
13997 x86_cannot_fetch_register, and x86_cannot_store_register.
13998 (initialize_low_arch): New.
13999 * linux-ia64-low.c (tdesc_ia64): Declare.
14000 (ia64_fetch_register): Adjust.
14001 (ia64_usrregs_info, regs_info): New globals.
14002 (ia64_regs_info): New function.
14003 (the_low_target): Adjust.
14004 (initialize_low_arch): New function.
14005 * linux-sparc-low.c (tdesc_sparc64): Declare.
14006 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14008 (sparc_arch_setup): New function.
14009 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14010 (the_low_target): Adjust.
14011 (initialize_low_arch): New function.
14012 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14013 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14014 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14015 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14016 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14017 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14018 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14019 (tdesc_powerpc_isa205_vsx64l): Declare.
14020 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14021 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14022 (ppc_set_pc, ppc_get_hwcap): Adjust.
14023 (ppc_usrregs_info): Forward declare.
14024 (!__powerpc64__) ppc_regmap_adjusted: New global.
14025 (ppc_arch_setup): Adjust to the current process'es target
14027 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14028 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14029 (ppc_store_evrregset): Adjust.
14030 (target_regsets): Rename to ...
14031 (ppc_regsets): ... this, and make static.
14032 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14033 (ppc_regs_info): New function.
14034 (the_low_target): Adjust.
14035 (initialize_low_arch): New function.
14036 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14037 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14038 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14039 (tdesc_s390x_linux64v2): Declare.
14040 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14041 (s390_fill_gregset, s390_store_last_break): Adjust.
14042 (target_regsets): Rename to ...
14043 (s390_regsets): ... this, and make static.
14044 (s390_get_pc, s390_set_pc): Adjust.
14045 (s390_get_hwcap): New target_desc parameter, and use it.
14046 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14047 (s390_arch_setup): Adjust to set the current process'es target
14048 description. Don't adjust the regmap.
14049 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14050 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14051 (regs_info_3264): New globals.
14052 (s390_regs_info): New function.
14053 (the_low_target): Adjust.
14054 (initialize_low_arch): New function.
14055 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14056 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14057 [__mips64] (init_registers_mips_linux)
14058 (init_registers_mips_dsp_linux): Delete defines.
14059 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14060 (have_dsp): New global.
14061 (mips_read_description): New, based on mips_arch_setup.
14062 (mips_arch_setup): Reimplement.
14063 (get_usrregs_info): New function.
14064 (mips_cannot_fetch_register, mips_cannot_store_register)
14065 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14066 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14067 (target_regsets): Rename to ...
14068 (mips_regsets): ... this, and make static.
14069 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14070 (dsp_regs_info, regs_info): New globals.
14071 (mips_regs_info): New function.
14072 (the_low_target): Adjust.
14073 (initialize_low_arch): New function.
14074 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14075 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14077 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14078 (arm_read_description): New, with bits factored from
14080 (arm_arch_setup): Reimplement.
14081 (target_regsets): Rename to ...
14082 (arm_regsets): ... this, and make static.
14083 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14084 (arm_regs_info): New function.
14085 (the_low_target): Adjust.
14086 (initialize_low_arch): New function.
14087 * linux-m68k-low.c (tdesc_m68k): Declare.
14088 (target_regsets): Rename to ...
14089 (m68k_regsets): ... this, and make static.
14090 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14091 (m68k_regs_info): New function.
14092 (m68k_arch_setup): New function.
14093 (the_low_target): Adjust.
14094 (initialize_low_arch): New function.
14095 * linux-sh-low.c (tdesc_sharch): Declare.
14096 (target_regsets): Rename to ...
14097 (sh_regsets): ... this, and make static.
14098 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14099 (sh_regs_info, sh_arch_setup): New functions.
14100 (the_low_target): Adjust.
14101 (initialize_low_arch): New function.
14102 * linux-bfin-low.c (tdesc_bfin): Declare.
14103 (bfin_arch_setup): New function.
14104 (bfin_usrregs_info, regs_info): New globals.
14105 (bfin_regs_info): New function.
14106 (the_low_target): Adjust.
14107 (initialize_low_arch): New function.
14108 * linux-cris-low.c (tdesc_cris): Declare.
14109 (cris_arch_setup): New function.
14110 (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-cris-low.c (tdesc_crisv32): Declare.
14115 (cris_arch_setup): New function.
14116 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14117 (cris_regs_info): New function.
14118 (the_low_target): Adjust.
14119 (initialize_low_arch): New function.
14120 * linux-m32r-low.c (tdesc_m32r): Declare.
14121 (m32r_arch_setup): New function.
14122 (m32r_usrregs_info, regs_info): New globals.
14123 (m32r_regs_info): Adjust.
14124 (initialize_low_arch): New function.
14125 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14126 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14127 (tic6x_usrregs_info): Forward declare.
14128 (tic6x_read_description): New function, based on ...
14129 (tic6x_arch_setup): ... this. Reimplement.
14130 (target_regsets): Rename to ...
14131 (tic6x_regsets): ... this, and make static.
14132 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14133 (tic6x_regs_info): New function.
14134 (the_low_target): Adjust.
14135 (initialize_low_arch): New function.
14136 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14137 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14138 (target_regsets): Rename to ...
14139 (xtensa_regsets): ... this, and make static.
14140 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14142 (xtensa_arch_setup, xtensa_regs_info): New functions.
14143 (the_low_target): Adjust.
14144 (initialize_low_arch): New function.
14145 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14146 (nios2_arch_setup): Set the current process'es tdesc.
14147 (target_regsets): Rename to ...
14148 (nios2_regsets): ... this.
14149 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14150 (nios2_regs_info): New function.
14151 (the_low_target): Adjust.
14152 (initialize_low_arch): New function.
14153 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14154 (aarch64_arch_setup): Set the current process'es tdesc.
14155 (target_regsets): Rename to ...
14156 (aarch64_regsets): ... this.
14157 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14158 (aarch64_regs_info): New function.
14159 (the_low_target): Adjust.
14160 (initialize_low_arch): New function.
14161 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14163 (target_regsets): Rename to ...
14164 (tile_regsets): ... this.
14165 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14166 (tile_regs_info): New function.
14167 (tile_arch_setup): Set the current process'es tdesc.
14168 (the_low_target): Adjust.
14169 (initialize_low_arch): New function.
14170 * spu-low.c (tdesc_spu): Declare.
14171 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14172 * win32-arm-low.c (tdesc_arm): Declare.
14173 (arm_arch_setup): New function.
14174 (the_low_target): Install arm_arch_setup instead of
14175 init_registers_arm.
14176 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14177 (init_windows_x86): Rename to ...
14178 (i386_arch_setup): ... this. Set `win32_tdesc'.
14179 (the_low_target): Adjust.
14180 * win32-low.c (win32_tdesc): New global.
14181 (child_add_thread): Don't create the thread cache here.
14182 (do_initial_child_stuff): Set the new process'es tdesc.
14183 * win32-low.h (struct target_desc): Forward declare.
14184 (win32_tdesc): Declare.
14185 * lynx-i386-low.c (tdesc_i386): Declare global.
14186 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14187 * lynx-low.c (lynx_tdesc): New global.
14188 (lynx_add_process): Set the new process'es tdesc.
14189 * lynx-low.h (struct target_desc): Forward declare.
14190 (lynx_tdesc): Declare global.
14191 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14192 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14193 * nto-low.c (nto_tdesc): New global.
14194 (do_attach): Set the new process'es tdesc.
14195 * nto-low.h (struct target_desc): Forward declare.
14196 (nto_tdesc): Declare.
14197 * nto-x86-low.c (tdesc_i386): Declare.
14198 (nto_x86_arch_setup): Set `nto_tdesc'.
14200 2013-06-04 Gary Benson <gbenson@redhat.com>
14202 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14203 to qSupported response when appropriate.
14204 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14205 with nonzero-length annex.
14206 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14207 arguments supplied in annex.
14209 2013-05-31 Doug Evans <dje@google.com>
14212 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14213 64 bits in 64-cross-32 environment.
14215 2013-05-28 Pedro Alves <palves@redhat.com>
14217 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14218 (aarch64-without-fpu.c): Delete rule.
14219 * configure.srv (aarch64*-*-linux*): Remove references to
14220 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14221 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14224 2013-05-24 Pedro Alves <palves@redhat.com>
14226 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14227 instead of strchr/decode_address. Error if the range isn't split
14228 with a ','. Don't assume there's be a ':' in the action.
14230 2013-05-23 Yao Qi <yao@codesourcery.com>
14231 Pedro Alves <palves@redhat.com>
14233 * linux-low.c (lwp_in_step_range): New function.
14234 (linux_wait_1): If the thread was range stepping and stopped
14235 outside the stepping range, report the stop to GDB. Otherwise,
14236 continue stepping. Add range stepping debug output.
14237 (linux_set_resume_request): Copy the step range from the resume
14238 request to the lwp.
14239 (linux_supports_range_stepping): New.
14240 (linux_target_ops) <supports_range_stepping>: Set to
14241 linux_supports_range_stepping.
14242 * linux-low.h (struct linux_target_ops)
14243 <supports_range_stepping>: New field.
14244 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14245 * linux-x86-low.c (x86_supports_range_stepping): New.
14246 (the_low_target) <supports_range_stepping>: Set to
14247 x86_supports_range_stepping.
14248 * server.c (handle_v_cont): Handle 'r' action.
14249 (handle_v_requests): Append ";r" if the target supports range
14251 * target.h (struct thread_resume) <step_range_start,
14252 step_range_end>: New fields.
14253 (struct target_ops) <supports_range_stepping>:
14255 (target_supports_range_stepping): New macro.
14257 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14259 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14260 confusion in comment.
14262 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14264 * lynx-low.c (struct process_info_private): New type.
14265 (lynx_add_process): New function.
14266 (lynx_create_inferior, lynx_attach): Replace calls to
14267 add_process by calls to lynx_add_process.
14268 (lynx_resume): If PTID is null, then try using
14269 current_process()->private->last_wait_event_ptid.
14271 (lynx_clear_inferiors): Delete. The contents of that function
14272 has been inlined in lynx_mourn;
14273 (lynx_wait_1): Save the ptid in the process's private data.
14274 (lynx_mourn): Free the process' private data. Replace call
14275 to lynx_clear_inferiors by call to clear_inferiors.
14277 2013-05-17 Yao Qi <yao@codesourcery.com>
14279 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14282 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14284 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14285 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14286 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14287 PT_TEXT_END_ADDR guards. Update comments.
14288 (linux_target_op) <read_offsets>: Conditionally define to
14289 linux_read_offsets if the target is UCLIBC and if it defines
14290 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14292 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14293 Andrew Jenner <andrew@codesourcery.com>
14295 * Makefile.in (SFILES): Add linux-nios2-low.c.
14296 (clean): Add action to delete nios2-linux.c.
14297 (nios2-linux.c): New rule.
14298 * configure.srv: Add nios2*-*-linux*.
14299 * linux-nios2-low.c: New.
14301 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14303 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14305 2013-04-25 Hui Zhu <hui@codesourcery.com>
14308 * ax.c (ax_printf): Add fflush.
14310 2013-04-22 Tom Tromey <tromey@redhat.com>
14312 * Makefile.in (SFILES): Add filestuff.c.
14313 (OBS): Add filestuff.o.
14314 (filestuff.o): New target.
14315 * config.in, configure: Rebuild.
14316 * configure.ac: Check for fdwalk, pipe2.
14318 2013-04-17 Pedro Alves <palves@redhat.com>
14320 * configure.ac (USE_THREAD_DB): Delete variable.
14321 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14322 Don't AC_SUBST USE_THREAD_DB.
14323 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14324 * config.in, configure: Regenerate.
14326 2013-04-16 Pedro Alves <palves@redhat.com>
14328 * linux-low.h (struct lwp_info) <thread_known>: Move under
14329 the USE_THREAD_DB #ifdef.
14331 2013-04-16 Pedro Alves <palves@redhat.com>
14333 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14334 (linux-low.o): Delete rule.
14335 * linux-low.h: Always include "gdb_thread_db.h" instead of
14336 conditionally including thread_db.h.
14337 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14340 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14342 * Makefile.in (install-only): Fix make install regression.
14344 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14346 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14347 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14349 * gdbserver.1: Remove.
14351 2013-03-22 Pedro Alves <palves@redhat.com>
14353 * linux-low.c (handle_extended_wait): Don't call
14354 linux_enable_event_reporting.
14356 2013-03-15 Tony Theodore <tonyt@logyst.com>
14359 * Makefile.in (SHELL): Use @SHELL@.
14361 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14363 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14366 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14368 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14369 Remove extraneous NULL element.
14371 2013-03-13 Yao Qi <yao@codesourcery.com>
14373 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14374 'V' block in trace frame.
14376 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14378 * target.h (struct target_ops): Add btrace ops.
14379 (target_supports_btrace): New macro.
14380 (target_enable_btrace): New macro.
14381 (target_disable_btrace): New macro.
14382 (target_read_btrace): New macro.
14383 * gdbthread.h (struct thread_info): Add btrace field.
14384 * server.c: Include btrace-common.h.
14385 (handle_btrace_general_set): New function.
14386 (handle_btrace_enable): New function.
14387 (handle_btrace_disable): New function.
14388 (handle_general_set): Call handle_btrace_general_set.
14389 (handle_qxfer_btrace): New function.
14390 (struct qxfer qxfer_packets[]): Add btrace entry.
14391 * inferiors.c (remove_thread): Disable btrace.
14392 * linux-low: Include linux-btrace.h.
14393 (linux_low_enable_btrace): New function.
14394 (linux_low_read_btrace): New function.
14395 (linux_target_ops): Add btrace ops.
14396 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14397 Add srv_linux_btrace=yes.
14398 (x86_64-*-linux*): Add linux-btrace.o.
14399 Add srv_linux_btrace=yes.
14400 * configure.ac: Define HAVE_LINUX_BTRACE.
14401 * config.in: Regenerated.
14402 * configure: Regenerated.
14404 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14406 * server.c (handle_qxfer): Preserve error message if -3 is
14408 (qxfer): Document the -3 return value.
14410 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14412 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14413 (linux_btrace_h): New variable.
14414 (linux-btrace.o): New rule.
14416 2013-03-08 Stan Shebs <stan@codesourcery.com>
14417 Hafiz Abid Qadeer <abidh@codesourcery.com>
14419 * tracepoint.c (trace_buffer_size): New global.
14420 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14421 (init_trace_buffer): Change to one-argument function. Allocate
14422 trace buffer memory.
14423 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14424 handle QTBuffer:size packet.
14425 (cmd_bigqtbuffer_size): New function.
14426 (initialize_tracepoint): Call init_trace_buffer with
14427 DEFAULT_TRACE_BUFFER_SIZE.
14428 * server.c (handle_query): Add QTBuffer:size in the
14431 2013-03-07 Yao Qi <yao@codesourcery.com>
14433 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14434 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14436 (cmd_qtsp): Adjust condition. Do post increment.
14437 Set cur_action and cur_step_action back to 0.
14439 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14442 * linux-low.c (linux_write_memory): Return early success if LEN is
14445 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14447 * configure.srv: Add x86_64-*-cygwin* as target.
14449 2013-02-28 Tom Tromey <tromey@redhat.com>
14451 * configure.ac: Invoke AC_SYS_LARGEFILE.
14452 * configure, config.in: Rebuild.
14454 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14456 * win32-low.c: Throughout, fix format strings and casts of
14457 printf-like functions to avoid type related warnings on all
14459 (get_child_debug_event): Print dwDebugEventCode as hex since
14460 that's how it's usually documented.
14462 2013-02-28 Yao Qi <yao@codesourcery.com>
14464 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14467 2013-02-27 Jiong Wang <jiwang@tilera.com>
14469 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14470 (reg-tilegx32.c): New rule.
14471 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14472 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14473 different register info initializer according to elf class.
14474 (init_registers_tilgx32): New function. The tilegx32 register info
14476 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14477 (tile_store_gregset): Likewise.
14479 2013-02-27 Yao Qi <yao@codesourcery.com>
14481 * server.c (process_point_options): Print debug message when
14482 debug_threads is true.
14484 2013-02-26 Yao Qi <yao@codesourcery.com>
14486 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14488 2013-02-19 Pedro Alves <palves@redhat.com>
14489 Kai Tietz <ktietz@redhat.com>
14493 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14494 instead of strtoul to extract address from packet.
14495 (process_serial_event) <'z'>: Likewise.
14497 2013-02-18 Yao Qi <yao@codesourcery.com>
14499 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14501 2013-02-14 Pedro Alves <palves@redhat.com>
14505 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14506 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14508 2013-02-14 Pedro Alves <palves@redhat.com>
14510 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14512 2013-02-14 Pedro Alves <palves@redhat.com>
14514 * tracepoint.c (save_string): Delete.
14515 (add_tracepoint_action): Use savestring instead of save_string.
14517 2013-02-12 Pedro Alves <palves@redhat.com>
14519 * linux-xtensa-low.c: Ditto.
14520 * xtensa-xtregs.c: Ditto.
14522 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14524 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14527 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14529 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14530 aarch64_num_wp_regs and aarch64_num_bp_regs to
14531 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14533 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14535 * linux-aarch64-low.c (ps_get_thread_area): Replace
14536 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14538 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14539 Marcus Shawcroft <marcus.shawcroft@arm.com>
14540 Nigel Stephens <nigel.stephens@arm.com>
14541 Yufeng Zhang <yufeng.zhang@arm.com>
14543 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14544 (aarch64.c, aarch64-without-fpu.c): New targets.
14545 * configure.srv (aarch64*-*-linux*): New.
14546 * linux-aarch64-low.c: New file.
14548 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14550 * linux-low.c (handle_extended_wait, linux_create_inferior)
14551 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14552 (dequeue_one_deferred_signal, linux_resume_one_thread)
14553 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14554 (linux_tracefork_grandchild, linux_test_for_tracefork)
14555 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14556 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14557 where the argument is 0.
14559 2013-01-25 Yao Qi <yao@codesourcery.com>
14561 * event-loop.c: Include "queue.h".
14562 (gdb_event_p): New typedef.
14563 (struct gdb_event) <next_event>: Remove.
14564 (event_queue): Change to QUEUE(gdb_event_p).
14565 (async_queue_event): Remove.
14566 (gdb_event_xfree): New.
14567 (initialize_event_loop): New.
14568 (process_event): Use API from QUEUE.
14569 (wait_for_event): Likewise.
14570 * server.c (main): Call initialize_event_loop.
14571 * server.h (initialize_event_loop): Declare.
14573 2013-01-18 Yao Qi <yao@codesourcery.com>
14575 * ax.h (struct eval_agent_expr_context): New.
14576 (gdb_eval_agent_expr): Update declaration.
14577 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14578 TFRAME. Add new argument CTX.
14579 * server.h (struct eval_agent_expr_context): Declare.
14580 (agent_mem_read, agent_tsv_read): Update declaration.
14581 (agent_mem_read_string): Likewise.
14582 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14583 (add_traceframe_block): Add new argument TPOINT.
14584 Increase TPOINT->traceframe_usage.
14585 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14586 eval_tracepoint_agent_expr.
14587 (condition_true_at_tracepoint): Likewise.
14588 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14589 (agent_mem_read_string, agent_tsv_read): Likewise.
14591 2013-01-16 Yao Qi <yao@codesourcery.com>
14593 * linux-low.c (linux_resume_one_lwp): Don't check
14594 'lwp->bp_reinsert != 0'.
14596 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14597 Pedro Alves <palves@redhat.com>
14599 * lynx-low.c (ptrace_request_to_str): Define a temporary
14600 macro and use it to simplify this function's implementation.
14602 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14604 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14607 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14609 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14611 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14613 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14615 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14617 * lynx-low.c (lynx_resume): Use the resume_info parameter
14618 to determine the ptid for the lynx_ptrace call, unless
14619 it is equal to minus_one_ptid, in which case we use the
14620 ptid of the current_inferior.
14621 (lynx_wait_1): After having received a thread create/exit
14622 event, resume the inferior's execution using the signaling
14623 thread's ptid, rather than the old ptid.
14625 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14627 * lynx-low.c (lynx_resume): Delete variable ret.
14629 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14631 * gdbreplay.c (gdbreplay_version): Update copyright year.
14632 * server.c (gdbserver_version): Likewise.
14634 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14636 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14639 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14641 * lynx-low.c (ptrace_request_to_str): Add handling for
14642 PTRACE_GETTRACESIG.
14644 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14646 * lynx-low.c (lynx_attach): Delete variable new_process.
14648 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14650 * lynx-low.c (lynx_create_inferior): Delete variable
14653 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14655 * lynx-low.c (ptrace_request_to_str): Do not handle
14656 PTRACE_GETTHREADLIST if this macro does not exist.
14658 2012-12-15 Yao Qi <yao@codesourcery.com>
14660 * Makefile.in (OBS): Add notif.o.
14661 * notif.c, notif.h: New.
14662 * server.c: Include "notif.h".
14663 (struct vstop_notif) <next>: Remove.
14665 (queue_stop_reply): Update.
14666 (push_event, send_next_stop_reply): Remove.
14667 (discard_queued_stop_replies): Update.
14668 (notif_stop): New variable.
14669 (handle_v_stopped): Remove.
14670 (handle_v_requests): Don't call handle_v_stopped. Call
14671 handle_ack_notif instead.
14672 (queue_stop_reply_callback): Call notif_event_enque instead
14673 of queue_stop_reply.
14674 (handle_status): Don't call send_next_stop_reply, call
14675 notif_write_event instead.
14676 (kill_inferior_callback): Likewise.
14677 (detach_or_kill_inferior_callback): Likewise.
14678 (main): Call initialize_notif.
14679 (process_serial_event): Call QUEUE_is_empty.
14680 (handle_target_event): Call notif_push instead of push event.
14681 * server.h (push_event): Remove declaration.
14683 2012-12-10 Tom Tromey <tromey@redhat.com>
14685 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14686 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14689 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14690 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14691 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14692 (amd64-linux-ipa.o, ax.o): Rewrite.
14693 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14694 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14695 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14696 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14697 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14698 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14699 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14700 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14701 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14702 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14703 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14704 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14705 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14706 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14707 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14708 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14709 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14710 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14711 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14712 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14713 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14714 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14715 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14716 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14717 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14718 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14719 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14720 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14721 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14722 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14723 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14724 (reg-tilegx.o): Remove.
14725 (all_object_files): New macro.
14726 Include .deps files.
14727 * aclocal.m4, configure: Rebuild.
14728 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14729 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14730 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14732 2012-12-05 Tom Tromey <tromey@redhat.com>
14735 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14737 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14739 * configure.ac: Check for linux/perf_event.h.
14740 * config.in: Regenerated.
14741 * configure: Regenerated.
14743 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14745 * hostio.c (handle_readlink): Decrease buffer size
14746 parameter passed to readlink by one byte.
14748 2012-11-26 Yao Qi <yao@codesourcery.com>
14750 * configure.ac (build_warnings): Append '-Wempty-body'.
14751 * configure: Regenerated.
14752 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14755 2012-11-15 Pierre Muller <muller@sourceware.org>
14757 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14758 * config.in: Regenerate.
14759 * configure: Regenerate.
14760 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14761 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14762 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14763 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14765 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14766 instead of <sys/wait.h> header.
14767 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14769 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14771 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14772 (various make rules): Remove -DGDBSERVER
14774 2012-11-09 Yao Qi <yao@codesourcery.com>
14776 * spu-low.c (current_ptid): Move it to ..
14777 * gdbthread.h: ... here. New.
14778 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14779 * server.c (myresume, process_serial_event): Likewise.
14780 * thread-db.c (thread_db_find_new_threads): Likewise.
14781 * tracepoint.c (run_inferior_command): Likewise.
14783 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14785 * server.c (handle_search_memory_1): Include access length in
14788 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14790 * linux-crisv32-low.c: Fix compile errors.
14792 2012-09-04 Yao Qi <yao@codesourcery.com>
14794 * tracepoint.c (cmd_qtsv): Adjust debug message.
14795 Don't check CUR_TPOINT.
14797 2012-08-28 Yao Qi <yao@codesourcery.com>
14799 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14800 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14801 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14802 Remove declarations of xmalloc, xreallloc, xstrdup and
14804 * Makefile.in (libiberty_h): New.
14805 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14806 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14808 2012-08-23 Yao Qi <yao@codesourcery.com>
14810 * server.h: Remove declaration of 'xsnprintf'.
14812 2012-08-22 Keith Seitz <keiths@redhat.com>
14814 * server.h: Include build-gnulib-gbserver/config.h.
14815 * gdbreplay.c: Likewise.
14817 2012-08-08 Doug Evans <dje@google.com>
14819 * Makefile.in (SFILES): Add gdb_vecs.c.
14820 (OBS): Add gdb_vecs.o.
14821 (gdb_vecs_h, host_defs_h): New variables.
14822 (thread-db.o): Add $(gdb_vecs_h) dependency.
14823 (gdb_vecs.o): New rule.
14824 * thread-db.c: #include "gdb_vecs.h".
14825 (thread_db_load_search): Use a vector to iterate over path elements.
14826 Handle text appearing after "$pdir".
14828 * configure.ac: Add check for strstr.
14829 * config.in: Regenerate.
14830 * configure: Regenerate.
14832 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14834 * hostio.c (handle_pread): If pread fails, fall back to attempting
14836 (handle_pwrite): Likewise for pwrite.
14838 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14840 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14841 between unsupported TYPE and unimplementable ADDR/LEN combination.
14842 (arm_insert_point): Act on new return value.
14844 2012-07-31 Pedro Alves <palves@redhat.com>
14846 * server.c (process_point_options): Only skip tokens if we find
14847 one that is unrecognized. Don't treat 'X' specially while
14848 skipping unrecognized tokens.
14850 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14852 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14853 to 4-byte-align HW breakpoint addresses for Thumb.
14855 2012-07-27 Yao Qi <yao@codesourcery.com>
14859 * server.h: Declare gdb_agent_about_to_close.
14860 * target.c (kill_inferior): Include "agent.h".
14861 New. Send command 'kill'.
14862 * target.h (kill_inferior): Removed macro.
14863 * tracepoint.c (gdb_agent_about_to_close): New.
14864 (gdb_agent_helper_thread): Handle command 'close'.
14865 Wait endlessly until the inferior stops.
14866 Install gdb_agent_remove_socket to atexit hook.
14867 (agent_socket_name): New static variable.
14868 (gdb_agent_socket_init): Replace local variable 'name' with
14869 'agent_socket_name'.
14870 (gdb_agent_remove_socket): New.
14872 2012-07-27 Yao Qi <yao@codesourcery.com>
14874 * server.c (process_point_options): Stop at 'X' when parsing.
14876 2012-07-19 Michael Eager <eager@eagercon.com>
14878 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14880 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14881 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14882 hardware breakpoint.
14884 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14886 * gdbserver/linux-low.c (initialize_low): Call
14887 linux_ptrace_init_warnings.
14889 2012-07-02 Doug Evans <dje@google.com>
14891 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14894 2012-07-02 Stan Shebs <stan@codesourcery.com>
14896 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14897 (ax.o): Add it to build rule.
14899 (OBS): Add format.o.
14900 (IPA_OBS): Add format.o.
14901 * server.c (handle_query): Claim support for breakpoint commands.
14902 (process_point_options): Add command case.
14903 (process_serial_event): Leave running if there are printfs in
14905 * mem-break.h (any_persistent_commands): Declare.
14906 (add_breakpoint_commands): Declare.
14907 (gdb_no_commands_at_breakpoint): Declare.
14908 (run_breakpoint_commands): Declare.
14909 * mem-break.c (struct point_command_list): New struct.
14910 (struct breakpoint): New field command_list.
14911 (any_persistent_commands): New function.
14912 (add_commands_to_breakpoint): New function.
14913 (add_breakpoint_commands): New function.
14914 (gdb_no_commands_at_breakpoint): New function.
14915 (run_breakpoint_commands): New function.
14916 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14918 * ax.c: Include format.h.
14919 (ax_printf): New function.
14920 (gdb_eval_agent_expr): Add printf opcode.
14922 2012-06-13 Yao Qi <yao@codesourcery.com>
14924 * server.c (start_inferior): Remove duplicated writes to fields
14925 'last_resume_kind' and 'last_status' of 'current_inferior'.
14927 2012-06-12 Yao Qi <yao@codesourcery.com>
14928 Pedro Alves <palves@redhat.com>
14930 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14932 * server.c (handle_v_cont): Extend comment.
14934 2012-06-11 Yao Qi <yao@codesourcery.com>
14936 * linux-low.c (linux_attach): Add 'static'.
14938 2012-06-06 Yao Qi <yao@codesourcery.com>
14940 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14942 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14944 Fix gcc -flto compilation warning.
14945 * server.c (main): Make variable multi_mode and attach volatile.
14947 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14949 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14950 if the platform doesn't know about it.
14952 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14954 * Makefile.in (SFILES): Add linux-tile-low.c.
14955 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14956 * configure.srv: Handle tilegx-*-linux*.
14957 * linux-tile-low.c: New file.
14959 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14961 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14963 2012-05-24 Pedro Alves <palves@redhat.com>
14967 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14969 2012-05-24 Pedro Alves <palves@redhat.com>
14973 Replace target_signal with gdb_signal throughout.
14975 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14977 * linux-low.c (linux_store_registers): Avoid the copying sequence
14978 when no data has been retrieved by ptrace.
14980 2012-05-22 Will Deacon <will.deacon@arm.com>
14982 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14983 Include asm/ptrace.h.
14984 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14987 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14989 * linux-low.c (linux_store_registers): Don't re-retrieve data
14990 with ptrace that has already been obtained from /proc. Always
14991 copy any data retrieved with ptrace to the buffer supplied.
14993 2012-05-11 Yao Qi <yao@codesourcery.com>
14994 Pedro Alves <palves@redhat.com>
14996 * linux-low.c (enum stopping_threads_kind): New.
14997 (stopping_threads): Change type to `enum stopping_threads_kind'.
14998 (handle_extended_wait): If stopping and suspending threads, leave
14999 the new_lwp suspended too.
15000 (linux_wait_for_event): Adjust.
15001 (stop_all_lwps): Set `stopping_threads' to
15002 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15003 whether we're suspending threads or just stopping them. Assert no
15006 2012-04-29 Yao Qi <yao@codesourcery.com>
15008 * server.h: Move some code to ...
15009 * gdbthread.h: ... here. New.
15010 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15011 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15012 (nto-low.o, win32-low.o): Likewise.
15013 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15014 * regcache.c, remote-utils.c, server.c: Likewise.
15015 * target.c, tracepoint.c, win32-low.c: Likewise.
15017 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15019 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15020 (PTRACE_ARG4_TYPE): Likewise.
15021 (PTRACE_XFER_TYPE): Likewise.
15022 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15023 ptrace to PTRACE_ARG3_TYPE.
15024 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15025 (PTRACE_ARG4_TYPE): Likewise.
15026 (PTRACE_XFER_TYPE): Likewise.
15027 (linux_detach_one_lwp): Cast fourth argument of
15028 ptrace to long then PTRACE_ARG4_TYPE.
15029 (regsets_fetch_inferior_registers): Cast third argument of
15030 ptrace to long then PTRACE_ARG3_TYPE.
15031 (regsets_store_inferior_registers): Likewise.
15033 2012-04-20 Pedro Alves <palves@redhat.com>
15035 * configure: Regenerate.
15037 2012-04-19 Pedro Alves <palves@redhat.com>
15039 * Makefile.in (GNULIB_BUILDDIR): New.
15040 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15041 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15042 (all, install-only, uninstall, clean-info, all-lib, clean): No
15043 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15044 (maintainer-clean realclean distclean): Use subdir_do.
15046 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15047 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15048 * acinclude.m4: Include acx_configure_dir.m4.
15049 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15050 calls. Call AC_PROG_RANLIB. Configure gnulib using
15053 (GNULIB_STDINT_H): Adjust.
15054 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15055 * gdbreplay.c: Include build-gnulib/config.h.
15056 * server.h: Likewise.
15057 * aclocal.m4: Regenerate.
15058 * config.in: Regenerate.
15059 * configure: Regenerate.
15061 2012-04-19 Pedro Alves <palves@redhat.com>
15063 * Makefile.in (LIBGNU, INCGNU): Adjust.
15064 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15065 (all, install-only, uninstall, clean-info, all-lib, clean)
15066 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15067 * configure.ac: Adjust AC_OUTPUT output.
15068 * aclocal.m4: Regenerate.
15069 * configure: Regenerate.
15071 2012-04-19 Pedro Alves <palves@redhat.com>
15073 * Makefile.in (generated_files): New.
15074 (server_h): Remove the explicit dependency on config.h, and depend
15075 on $generated_files.
15077 2012-04-19 Pedro Alves <palves@redhat.com>
15079 * Makefile.in (INCGNU): Add -Ignulib.
15081 2012-04-19 Pedro Alves <palves@redhat.com>
15083 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15084 (INCGNU): ... this, and spell out -I here.
15085 (GNULIB_LIB): Rename to ...
15086 (LIBGNU): ... this.
15087 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15089 2012-04-19 Pedro Alves <palves@redhat.com>
15091 * config.in: Regenerate.
15093 2012-04-19 Pedro Alves <palves@redhat.com>
15095 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15096 * server.h (memmem): Remove declaration.
15097 * config.in: Regenerate.
15098 * configure: Regenerate.
15100 2012-04-19 Yao Qi <yao@codesourcery.com>
15102 * Makefile.in (SFILES): Add common/vec.c.
15106 2012-04-19 Yao Qi <yao@codesourcery.com>
15108 * remote-utils.c (prepare_resume_reply): Replace with macro
15109 target_core_of_thread.
15110 * server.c (handle_qxfer_threads_proper): Likewise.
15111 * target.h (traget_core_of_thread): New macro.
15113 2012-04-18 Pedro Alves <palves@redhat.com>
15115 * aclocal.m4: Regenerate.
15116 * configure: Regenerate.
15118 2012-04-16 Yao Qi <yao@codesourcery.com>
15120 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15121 duplicated on address.
15123 2012-04-16 Yao Qi <yao@codesourcery.com>
15125 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15126 (struct tracepoint_action_ops) <send>: New field.
15127 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15128 (agent_expr_send, x_tracepoint_action_send): New.
15129 (l_tracepoint_action_send): New.
15130 (cmd_qtdp): Download and install tracepoint
15131 according to `use_agent'.
15132 (run_inferior_command): Add one more parameter `len'.
15134 (tracepoint_send_agent): New.
15135 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15137 2012-04-16 Yao Qi <yao@codesourcery.com>
15139 * tracepoint.c (download_tracepoints): Moved to ...
15140 (cmd_qtstart): ... here.
15142 2012-04-14 Yao Qi <yao@codesourcery.com>
15144 * tracepoint.c: Include inttypes.h.
15145 (struct collect_memory_action): Use sized types.
15146 (struct tracepoint): Likewise.
15147 (cmd_qtdp, stop_tracing): Update print specifiers.
15148 (cmd_qtp, response_tracepoint): Likewise.
15149 (collect_data_at_tracepoint): Likewise.
15150 (collect_data_at_step): Likewise.
15152 2012-04-14 Yao Qi <yao@codesourcery.com>
15154 Import gnulib module inttypes.
15155 * aclocal.m4, config.in, configure: Regenerated.
15157 2012-04-14 Yao Qi <yao@codesourcery.com>
15159 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15160 Makefile and config.status at last.
15162 2012-04-13 Yao Qi <yao@codesourcery.com>
15164 * tracepoint.c: Include stdint.h unconditionally.
15166 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15168 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15169 on BFD_HAVE_SYS_PROCFS_TYPE.
15170 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15171 * configure: Regenerate.
15172 * config.in: Likewise.
15174 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15176 * Makefile.in (clean): Also remove x32.c x32-linux.c
15177 x32-avx.c x32-avx-linux.c.
15178 (x32.o): New target.
15180 (x32-linux.o): Likewise.
15181 (x32-linux.c): Likewise.
15182 (x32-avx.o): Likewise.
15183 (x32-avx.c): Likewise.
15184 (x32-avx-linux.o): Likewise.
15185 (x32-avx-linux.c): Likewise.
15187 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15188 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15189 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15190 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15191 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15192 i386/x32-avx-linux.xml.
15194 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15195 (init_registers_x32_avx_linux): Likwise.
15196 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15197 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15199 2012-04-13 Pedro Alves <palves@redhat.com>
15201 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15202 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15203 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15204 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15207 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15209 * linux-x86-low.c (compat_x32_clock_t): New.
15210 (compat_x32_siginfo_t): Likewise.
15211 (compat_x32_siginfo_from_siginfo): Likewise.
15212 (siginfo_from_compat_x32_siginfo): Likewise.
15213 (linux_is_elf64): Likewise.
15214 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15215 and siginfo_from_compat_x32_siginfo for x32.
15216 (x86_arch_setup): Set linux_is_elf64.
15218 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15221 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15223 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15224 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15225 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15226 compatible with process.
15228 2012-04-12 Yao Qi <yao@codesourcery.com>
15230 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15231 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15232 (install-only, install-info, clean): Handle sub dir gnulib.
15233 (all-lib, am--refresh): New targets.
15234 (memmem.o): Remove target.
15235 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15236 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15237 (AC_REPLACE_FUNCS): Remove memmem.
15238 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15239 (AC_OUTPUT): Generate Makefile in gnulib/.
15240 * aclocal.m4, config.in, configure: Regenerated.
15242 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15244 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15246 2012-04-05 Pedro Alves <palves@redhat.com>
15248 -Werror=strict-aliasing
15250 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15253 2012-04-04 Pedro Alves <palves@redhat.com>
15255 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15256 (sparc_store_gregset_from_stack, sparc_store_gregset)
15257 (sparc_breakpoint_at): Fix formatting.
15259 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15261 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15263 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15264 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15265 * config.in: Regenerate.
15266 * configure: Likewise.
15268 2012-03-29 Pedro Alves <palves@redhat.com>
15270 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15271 Correct ptrace arguments.
15273 2012-03-28 Pedro Alves <palves@redhat.com>
15275 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15276 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15277 (IA64_FR1_REGNUM): New defines.
15278 (ia64_fetch_register): New.
15279 (the_low_target): Install it.
15280 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15282 * linux-low.c (linux_fetch_registers): Try the
15283 the_low_target.fetch_register hook first.
15285 * linux-arm-low.c (the_low_target): Adjust.
15286 * linux-bfin-low.c (the_low_target): Adjust.
15287 * linux-cris-low.c (the_low_target): Adjust.
15288 * linux-crisv32-low.c (the_low_target): Adjust.
15289 * linux-m32r-low.c (the_low_target): Adjust.
15290 * linux-m68k-low.c (the_low_target): Adjust.
15291 * linux-mips-low.c (the_low_target): Adjust.
15292 * linux-ppc-low.c (the_low_target): Adjust.
15293 * linux-s390-low.c (the_low_target): Adjust.
15294 * linux-sh-low.c (the_low_target): Adjust.
15295 * linux-sparc-low.c (the_low_target): Adjust.
15296 * linux-tic6x-low.c (the_low_target): Adjust.
15297 * linux-x86-low.c (the_low_target): Adjust.
15298 * linux-xtensa-low.c (the_low_target): Adjust.
15300 2012-03-26 Pedro Alves <palves@redhat.com>
15302 * server.c (handle_qxfer_libraries): Don't bail early if
15303 the_target->qxfer_libraries_svr4 is not NULL.
15305 2012-03-26 Pedro Alves <palves@redhat.com>
15307 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15309 2012-03-23 Pedro Alves <palves@redhat.com>
15311 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15312 "library-list-svr4" element's start tag when the the DSO list is
15315 2012-03-23 Pedro Alves <palves@redhat.com>
15317 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15318 a variable whose type size is the same as the inferior's pointer
15321 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15323 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15325 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15326 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15327 * linux-low.h: Include <signal.h>.
15328 (struct siginfo): Remove forward declaration.
15329 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15332 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15334 * .gitignore: Ignore more files.
15336 2012-03-19 Pedro Alves <palves@redhat.com>
15337 Jan Kratochvil <jan.kratochvil@redhat.com>
15339 * server.c (cont_thread, general_thread): Add describing comments.
15340 (start_inferior): Clear `cont_thread'.
15341 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15344 2012-03-15 Yao Qi <yao@codesourcery.com>
15346 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15348 (cmd_qtdp): ... here.
15350 2012-03-15 Yao Qi <yao@codesourcery.com>
15352 * tracepoint.c (struct tracepoint_action_ops): New.
15353 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15354 (m_tracepoint_action_download): New.
15355 (r_tracepoint_action_download): New.
15356 (x_tracepoint_action_download): New.
15357 (l_tracepoint_action_download): New.
15358 (add_tracepoint_action): Install `action->ops' according type.
15359 (download_tracepoint_1): Move code `download' function pointer
15360 of various tracepoint_action_ops.
15362 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15364 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15365 linux_ptrace_attach_warnings.
15367 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15369 * Makefile.in (linux-ptrace.o): New.
15370 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15371 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15372 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15373 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15374 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15376 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15378 2012-03-08 Yao Qi <yao@codesourcery.com>
15379 Pedro Alves <palves@redhat.com>
15381 Fix PR server/13392.
15382 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15383 offset of JMP insn.
15384 * tracepoint.c (remove_tracepoint): New.
15385 (cmd_qtdp): Call remove_tracepoint when failed to install.
15387 2012-03-07 Pedro Alves <palves@redhat.com>
15389 * linux-low.c (get_detach_signal): New.
15390 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15391 Pass on pending signals to PTRACE_DETACH. Check the result of the
15393 * server.c (program_signals, program_signals_p): New.
15394 (handle_general_set): Handle QProgramSignals.
15395 * server.h (program_signals, program_signals_p): Declare.
15397 2012-03-05 Pedro Alves <palves@redhat.com>
15398 Jan Kratochvil <jan.kratochvil@redhat.com>
15400 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15403 2012-03-03 Yao Qi <yao@codesourcery.com>
15405 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15406 agent_look_up_symbols.
15408 2012-03-03 Yao Qi <yao@codesourcery.com>
15410 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15411 (linux-x86-low.o): Likewise.
15412 * server.h: Remove in_process_agent_loaded.
15413 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15417 2012-03-03 Yao Qi <yao@codesourcery.com>
15419 * tracepoint.c (gdb_agent_capability): New global.
15420 (in_process_agent_loaded_ust): Renamed to
15421 `in_process_agent_supports_ust'.
15423 (in_process_agent_supports_ust): Call agent_capability_check.
15424 (clear_installed_tracepoints): Assert that agent supports
15427 2012-03-03 Yao Qi <yao@codesourcery.com>
15429 * linux-low.c (linux_supports_agent): New.
15430 (linux_target_ops): Initialize field `supports_agent' with
15431 linux_supports_agent.
15432 * target.h (struct target_ops) <supports_agent>: New.
15433 (target_supports_agent): New macro.
15434 * server.c (handle_general_set): Handle packet 'QAgent'.
15435 (handle_query): Send `QAgent+'.
15436 * Makefile.in (server.o): Depends on agent.h.
15438 2012-03-03 Yao Qi <yao@codesourcery.com>
15440 * Makefile.in (OBS): Add agent.o.
15441 Add new rule for agent.o.
15442 Track dependence of tracepoint.c on agent.h.
15443 * tracepoint.c (run_inferior_command_1):
15444 (run_inferior_command): Call agent_run_command.
15445 (gdb_ust_connect_sync_socket): Deleted. Move it to
15447 (resume_thread, stop_thread): Likewise.
15448 (gdb_ust_socket_init): Renamed to ...
15449 (gdb_agent_socket_init): ... New.
15450 (gdb_ust_thread): Renamed to ...
15451 (gdb_agent_helper_thread): ... New.
15452 (gdb_ust_init): Move some code to ...
15453 (gdb_agent_init): ... here. New.
15454 [HAVE_UST]: Call gdb_ust_init.
15455 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15456 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15457 * config.in, configure: Regenerated.
15459 2012-03-02 Pedro Alves <palves@redhat.com>
15461 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15462 * linux-low.c (struct simple_pid_list): New.
15463 (stopped_pids): New a struct simple_pid_list pointer.
15464 (add_to_pid_list, pull_pid_from_list): New.
15465 (handle_extended_wait): Don't assume the first signal new children
15466 report is SIGSTOP. Adjust call to pull_pid_from_list.
15467 (linux_wait_for_lwp): Adjust.
15469 2012-03-02 Yao Qi <yao@codesourcery.com>
15471 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15474 2012-03-02 Yao Qi <yao@codesourcery.com>
15476 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15477 `stop_pc' and `tpoint'. Update caller.
15479 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15481 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15482 * linux-low.c (use_linux_regsets): New macro.
15483 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15484 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15485 (linux_register_in_regsets): New function.
15486 (usr_fetch_inferior_registers): Skip registers covered by
15488 (usr_store_inferior_registers): Likewise.
15489 (usr_fetch_inferior_registers): New macro.
15490 (usr_store_inferior_registers): Likewise.
15491 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15492 (linux_store_registers): Likewise.
15493 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15495 (init_registers_mips64_dsp_linux): Likewise.
15496 (init_registers_mips_linux): New macro.
15497 (init_registers_mips_dsp_linux): Likewise.
15498 (mips_dsp_num_regs): Likewise.
15499 (DSP_BASE, DSP_CONTROL): New fallback macros.
15500 (mips_base_regs): New macro.
15501 (mips_regmap): Use it. Fix the size.
15502 (mips_dsp_regmap): New variable.
15503 (mips_dsp_regset_bitmap): Likewise.
15504 (mips_arch_setup): New function.
15505 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15507 (mips_cannot_store_register): Likewise.
15508 (the_low_target): Update .arch_setup, .num_regs and .regmap
15509 initializers. Add .regset_bitmap initializer.
15510 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15512 * linux-bfin-low.c (the_low_target): Likewise.
15513 * linux-cris-low.c (the_low_target): Likewise.
15514 * linux-crisv32-low.c (the_low_target): Likewise.
15515 * linux-ia64-low.c (the_low_target): Likewise.
15516 * linux-m32r-low.c (the_low_target): Likewise.
15517 * linux-m68k-low.c (the_low_target): Likewise.
15518 * linux-ppc-low.c (the_low_target): Likewise.
15519 * linux-s390-low.c (the_low_target): Likewise.
15520 * linux-sh-low.c (the_low_target): Likewise.
15521 * linux-sparc-low.c (the_low_target): Likewise.
15522 * linux-tic6x-low.c (the_low_target): Likewise.
15523 * linux-x86-low.c (the_low_target): Likewise.
15524 * linux-xtensa-low.c (the_low_target): Likewise.
15525 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15526 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15527 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15529 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15530 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15532 2012-02-29 Yao Qi <yao@codesourcery.com>
15533 Pedro Alves <palves@redhat.com>
15535 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15536 `step_over_finished' is true.
15538 2012-02-27 Pedro Alves <palves@redhat.com>
15540 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15541 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15543 2012-02-27 Pedro Alves <palves@redhat.com>
15546 * linux-low.c (pid_is_stopped): New.
15547 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15549 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15551 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15554 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15556 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15558 2012-02-24 Luis Machado <lgustavo@codesourcery>
15560 * server.c (handle_query): Advertise support for target-side
15561 breakpoint condition evaluation.
15562 (process_point_options): New function.
15563 (process_serial_event): When inserting a breakpoint, check for
15564 a target-side condition that should be evaluated.
15566 * mem-break.c: Include regcache.h and ax.h.
15567 (point_cond_list_t): New data structure.
15568 (breakpoint) <cond_list>: New field.
15569 (find_gdb_breakpoint_at): Make non-static.
15570 (delete_gdb_breakpoint_at): Clear any target-side
15572 (clear_gdb_breakpoint_conditions): New function.
15573 (add_condition_to_breakpoint): Likewise.
15574 (add_breakpoint_condition): Likewise.
15575 (gdb_condition_true_at_breakpoint): Likewise.
15576 (gdb_breakpoint_here): Return result directly instead
15577 of going through a local variable.
15579 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15580 (clear_gdb_breakpoint_conditions): Likewise.
15581 (add_breakpoint_condition): Likewise.
15582 (gdb_condition_true_at_breakpoint): Likewise.
15584 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15585 (need_step_over_p): Take target-side breakpoint condition into
15588 2012-02-24 Luis Machado <lgustavo@codesourcery>
15590 * server.h: Include tracepoint.h.
15591 (agent_mem_read, agent_get_trace_state_variable_value,
15592 agent_set_trace_state_variable_value,
15593 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15594 get_set_tsv_func_addr): New prototypes.
15596 * ax.h: New include file.
15597 * ax.c: New source file.
15599 * tracepoint.c: Include ax.h.
15600 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15601 agent_expr, eval_result_type): Move to ax.h.
15602 (parse_agent_expr): Rename to ...
15603 (gdb_parse_agent_expr): ... this, make it non-static and move
15605 (unparse_agent_expr) Rename to ...
15606 (gdb_unparse_agent_expr): ... this, make it non-static and move
15608 (eval_agent_expr): Rename to ...
15609 (eval_tracepoint_agent_expr): ... this.
15610 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15611 forward declarations.
15612 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15613 (agent_get_trace_state_variable_value): New function.
15614 (agent_set_trace_state_variable_value): New function.
15615 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15616 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15617 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15618 (condition_true_at_tracepoint): Likewise.
15619 (parse_agent_expr): Rename to ...
15620 (gdb_parse_agent_expr): ... this and move to ax.c.
15621 (unparse_agent_expr): Rename to ...
15622 (gdb_unparse_agent_expr): ... this and move to ax.c.
15623 (gdb_agent_op_name): Move to ax.c.
15624 (eval_agent_expr): Rename to ...
15625 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15627 (eval_tracepoint_agent_expr): New function.
15628 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15630 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15632 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15633 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15634 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15635 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15636 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15637 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15638 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15639 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15640 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15641 (compile_bytecodes): Remove forward declaration.
15642 (is_goto_target): Move to ax.c.
15643 (compile_bytecodes): Move to ax.c and call
15644 agent_get_trace_state_variable_value (...) and
15645 agent_set_trace_state_variable_value (...).
15647 * Makefile.in: Update ax.c and IPA dependencies.
15649 2012-02-24 Pedro Alves <palves@redhat.com>
15651 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15652 (cmd_bigqtbuffer_circular): ... this. Only handle
15653 'QTBuffer:circular:'.
15654 (handle_tracepoint_general_set): Adjust.
15656 2012-02-16 Yao Qi <yao@codesourcery.com>
15658 * inferiors.c: Move code to ...
15659 * dll.c: .... here. New.
15660 * server.h: Declare clear_dlls.
15661 * Makefile.in (SFILES): Add dll.c.
15665 2012-02-11 Yao Qi <yao@codesourcery.com>
15667 * server.c: (handle_monitor_command): Add a new parameter
15669 (handle_query): Update caller.
15671 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15673 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15674 * configure, config.in: Regenerate.
15675 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15678 2012-02-02 Pedro Alves <palves@redhat.com>
15680 Try SIGKILL first, then PTRACE_KILL.
15681 * linux-low.c (linux_kill_one_lwp): New.
15682 (linux_kill_one_lwp): Rename to ...
15683 (kill_one_lwp_callback): ... this. Use the new
15684 linux_kill_one_lwp.
15686 2012-02-02 Pedro Alves <palves@redhat.com>
15688 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15691 2012-01-27 Pedro Alves <palves@redhat.com>
15693 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15694 (elf_64_file_p): Make static.
15695 (linux_pid_exe_is_elf_64_file): New.
15696 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15697 Delete declarations.
15698 (linux_pid_exe_is_elf_64_file): Declare.
15699 * linux-x86-low.c (x86_arch_setup): Use
15700 linux_pid_exe_is_elf_64_file.
15702 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15704 * linux-low.c (linux_wait_for_event_1): Rename to ...
15705 (linux_wait_for_event): ... here and merge it with former
15706 linux_wait_for_event - new variable wait_ptid, use it.
15707 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15709 2012-01-23 Pedro Alves <palves@redhat.com>
15711 * server.c (main): Avoid yet another case of infinite loop while
15712 detaching/killing after a longjmp.
15714 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15717 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15719 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15721 * hostio.c (handle_readlink): New function.
15722 (handle_vFile): Call it to handle "vFile:readlink" packets.
15724 2012-01-20 Pedro Alves <palves@redhat.com>
15725 Ulrich Weigand <ulrich.weigand@linaro.org>
15727 * server.c (handle_v_requests): Only support vAttach and vRun to
15728 start multiple processes when in extended protocol mode.
15730 2012-01-17 Pedro Alves <palves@redhat.com>
15732 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15733 memalign plus mprotect to allocate the scratch buffer.
15735 2012-01-13 Pedro Alves <palves@redhat.com>
15737 * server.c (attach_inferior): Clear `cont_thread'.
15739 2012-01-13 Pedro Alves <palves@redhat.com>
15741 * server.c (main): Avoid infinite loop while detaching/killing
15744 2012-01-09 Doug Evans <dje@google.com>
15746 * server.c (start_inferior): Set last_ptid in --wrapper case.
15748 2012-01-06 Yao Qi <yao@codesourcery.com>
15750 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15752 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15754 2012-01-04 Yao Qi <yao@codesourcery.com>
15756 * tracepoint.c (cmd_qtdp): Print debug message
15757 for static tracepoint.
15759 2012-01-04 Yao Qi <yao@codesourcery.com>
15761 * tracepoint.c (trace_vdebug): Differentiate debug message
15762 between gdbserver and IPA.
15764 2012-01-03 Yao Qi <yao@codesourcery.com>
15766 * tracepoint.c (tracepoint_was_hit): Don't collect for
15769 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15771 * terminal.h: Reformat copyright header.
15773 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15775 * server.c (gdbserver_version): Update copyright year.
15776 * gdbreplay.c (gdbreplay_version): Likewise.
15778 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15780 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15783 2011-12-18 Hui Zhu <teawater@gmail.com>
15784 * linux-low.c (linux_create_inferior): Save return value to ret.
15786 2011-12-18 Hui Zhu <teawater@gmail.com>
15788 * linux-low.c (linux_create_inferior): Save return value to ret.
15790 2011-12-16 Doug Evans <dje@google.com>
15792 * linux-low.c (linux_create_inferior): If stdio connection,
15793 redirect stdin from /dev/null, stdout to stderr.
15794 * remote-utils.c (remote_is_stdio): New static global.
15795 (remote_connection_is_stdio): New function.
15796 (remote_prepare): Handle stdio connection.
15797 (remote_open): Ditto.
15798 (remote_close): Don't close stdin for stdio connections.
15799 (read_prim,write_prim): New functions. Replace all calls to
15800 read/write to these.
15801 * server.c (main): Watch for "-" argument. Move call to
15802 remote_prepare before start_inferior.
15803 * server.h (STDIO_CONNECTION_NAME): New macro.
15804 (remote_connection_is_stdio): Declare.
15806 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15807 in debugging output.
15809 2011-12-15 Yao Qi <yao@codesourcery.com>
15811 * tracepoint.c: Include sys/syscall.h.
15812 (gdb_ust_thread): Remove preprocessor conditional.
15814 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15816 * linux-low.c (linux_detach_one_lwp): Call
15817 the_low_target.prepare_to_resume before detaching.
15819 2011-12-14 Yao Qi <yao@codesourcery.com>
15821 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15824 2011-12-14 Yao Qi <yao@codesourcery.com>
15826 * i386-low.c (i386_low_stopped_data_address): Initialize local
15827 variable `control'.
15829 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15833 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15834 DR_CONTROL unless necessary. Extend comments.
15835 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15836 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15838 2011-12-13 Yao Qi <yao@codesourcery.com>
15840 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15842 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15844 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15846 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15847 Print new debug message for such case.
15849 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15851 Fix overlapping memcpy.
15852 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15853 the read_inferior_memory transfer.
15854 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15855 write_inferior_memory transfer.
15856 (set_fast_tracepoint_jump): New variable buf. Use it for the
15857 read_inferior_memory and write_inferior_memory transfers.
15858 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15859 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15860 Use it for the write_inferior_memory transfer.
15861 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15864 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15866 * linux-low.c (fetch_register, store_register): Make code
15867 consistent, fix formatting.
15869 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15871 * linux-low.c (usr_store_inferior_registers): Factor out code
15872 to handle individual registers into...
15873 (store_register): ... this new function.
15875 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15877 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15878 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15879 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15880 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15881 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15882 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15883 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15884 (srv_xmlfiles): Add new XML files.
15886 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15888 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15889 (init_registers_s390_linux32v1): Add prototype.
15890 (init_registers_s390_linux32v2): Likewise.
15891 (init_registers_s390_linux64v1): Likewise.
15892 (init_registers_s390_linux64v2): Likewise.
15893 (init_registers_s390x_linux64v1): Likewise.
15894 (init_registers_s390x_linux64v2): Likewise.
15895 (s390_num_regs): Increment to 52.
15896 (s390_regmap): Add orig_r2 register.
15897 (s390_num_regs_3264): Increment to 68.
15898 (s390_regmap_3264): Add orig_r2 register.
15899 (s390_collect_ptrace_register): Handle orig_r2 register.
15900 (s390_supply_ptrace_register): Likewise.
15901 (s390_fill_last_break): New function.
15902 (s390_store_last_break): Likewise.
15903 (s390_fill_system_call): New function.
15904 (s390_store_system_call): Likewise.
15905 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15907 (s390_check_regset): New function.
15908 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15909 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15910 Update target_regsets for available register sets.
15912 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15913 Jan Kratochvil <jan.kratochvil@redhat.com>
15915 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15916 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15918 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15919 * linux-low.h (struct process_info_private): New member r_debug.
15920 * server.c (handle_qxfer_libraries): Call
15921 the_target->qxfer_libraries_svr4.
15922 (handle_qxfer_libraries_svr4): New function.
15923 (qxfer_packets): New entry "libraries-svr4".
15924 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15925 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15926 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15927 PACKET_qXfer_libraries_svr4.
15929 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15931 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15932 PSW address/mask between 8-byte and 16-byte formats.
15933 (s390_supply_ptrace_register): Likewise.
15934 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15935 basic addressing mode bit.
15937 2011-11-24 Stan Shebs <stan@codesourcery.com>
15939 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15941 2011-11-17 Stan Shebs <stan@codesourcery.com>
15943 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15944 (tracing_start_time): New global.
15945 (tracing_stop_time): New global.
15946 (tracing_user_name): New global.
15947 (tracing_notes): New global.
15948 (tracing_stop_note): New global.
15949 (cmd_qtstart): Set traceframe_usage, start_time.
15950 (stop_tracing): Set stop_time.
15951 (cmd_qtstatus): Report additional status.
15952 (cmd_qtp): New function.
15953 (handle_tracepoint_query): Call it.
15954 (cmd_qtnotes): New function.
15955 (handle_tracepoint_general_set): Call it.
15956 (get_timestamp): Rename from tsv_get_timestamp.
15958 2011-11-14 Stan Shebs <stan@codesourcery.com>
15959 Kwok Cheung Yeung <kcy@codesourcery.com>
15961 * linux-x86-low.c (small_jump_insn): New.
15962 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15963 trampoline and error message, build a trampoline and issue a small
15964 jump instruction to it.
15965 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15966 trampoline and error message.
15967 (x86_get_min_fast_tracepoint_insn_len): New.
15968 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15969 * linux-low.h (struct linux_target_ops): Add arguments to
15970 install_fast_tracepoint_jump_pad operation, add new operation.
15971 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15973 (linux_get_min_fast_tracepoint_insn_len): New function.
15974 (linux_target_op): Add new operation.
15975 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15976 (gdb_trampoline_buffer_end): Ditto.
15977 (gdb_trampoline_buffer_error): Ditto.
15978 (struct ipa_sym_addresses): Add fields for new IPA variables.
15979 (symbol_list): Add entries for new IPA variables.
15980 (struct tracepoint): Add fields to hold the address range of the
15981 trampoline used by the tracepoint.
15982 (trampoline_buffer_head): New static variable.
15983 (trampoline_buffer_tail): Ditto.
15984 (claim_trampoline_space): New function.
15985 (have_fast_tracepoint_trampoline_buffer): New function.
15986 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15988 (install_fast_tracepoint): Ditto, also add error buffer argument.
15989 (cmd_qtminftpilen): New function.
15990 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15991 (fast_tracepoint_from_trampoline_address): New function.
15992 (fast_tracepoint_collecting): Handle trampoline as part of jump
15994 (set_trampoline_buffer_space): New function.
15995 (initialize_tracepoint): Initialize new IPA variables.
15996 * target.h (struct target_ops): Add arguments to
15997 install_fast_tracepoint_jump_pad operation, add new
15998 get_min_fast_tracepoint_insn_len operation.
15999 (target_get_min_fast_tracepoint_insn_len): New.
16000 (install_fast_tracepoint_jump_pad): Add arguments.
16001 * server.h (IPA_BUFSIZ): Define.
16002 * linux-i386-ipa.c: Include extra header files.
16003 (initialize_fast_tracepoint_trampoline_buffer): New function.
16004 (initialize_low_tracepoint): Call it.
16005 * server.h (set_trampoline_buffer_space): Declare.
16006 (claim_trampoline_space): Ditto.
16007 (have_fast_tracepoint_trampoline_buffer): Ditto.
16009 2011-11-14 Yao Qi <yao@codesourcery.com>
16011 * server.c (handle_query): Handle InstallInTrace for qSupported.
16012 * tracepoint.c (add_tracepoint): Sort list.
16013 (install_tracepoint, download_tracepoint): New.
16014 (cmd_qtdp): Call them to install and download tracepoints.
16015 (sort_tracepoints): Removed.
16016 (cmd_qtstart): Update.
16018 2011-11-14 Yao Qi <yao@codesourcery.com>
16020 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16021 * mem-break.h: Declare.
16022 * tracepoint.c (cmd_qtstart): Move some code to ...
16023 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16025 (download_tracepoints): Move some code to ...
16026 (download_tracepoint_1): ... here. New.
16028 2011-11-08 Yao Qi <yao@codesourcery.com>
16030 * remote-utils.c (relocate_instruction): A comment fix.
16032 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16034 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16035 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16036 dr_status_mirror and dr_control_mirror from debug_reg_state.
16037 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16038 (i386_initial_stuff): Remove use of deleted globals.
16039 (i386_get_thread_context, i386_set_thread_context,
16040 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16041 from debug_reg_state.
16043 2011-11-05 Yao Qi <yao@codesourcery.com>
16045 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16046 address as TPOINT's.
16048 2011-11-02 Stan Shebs <stan@codesourcery.com>
16050 * tracepoint.c (agent_mem_read_string): New function.
16051 (eval_agent_expr): Call it for tracenz.
16052 * server.c (handle_query): Report support for tracenz.
16054 2011-11-02 Yao Qi <yao@codesourcery.com>
16056 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16058 2011-11-02 Yao Qi <yao@codesourcery.com>
16060 * target.h: Fix a typo in comment.
16062 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16064 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16065 clobber the breakpoints' shadows with fast tracepoint jumps.
16066 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16067 * target.c (write_inferior_memory): Also pass MYADDR down to
16070 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16072 * configure.ac: Check support for personality routine.
16073 * configure: Regenerate.
16074 * config.in: Likewise.
16075 * linux-low.c: Include <sys/personality.h>.
16076 Define ADDR_NO_RANDOMIZE if necessary.
16077 (linux_create_inferior): Disable address space randomization when
16078 forking inferior, if requested.
16079 (linux_supports_disable_randomization): New function.
16080 (linux_target_ops): Install it.
16081 * server.h (disable_randomization): Declare.
16082 * server.c (disable_randomization): New global variable.
16083 (handle_general_set): Handle QDisableRandomization.
16084 (handle_query): Likewise for qSupported.
16085 (main): Support --disable-randomization and --no-disable-randomization
16086 command line arguments.
16087 * target.h (struct target_ops): Add supports_disable_randomization.
16088 (target_supports_disable_randomization): New macro.
16090 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16092 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16094 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16095 [!PT_GETDSBT] (target_loadmap): New definition.
16096 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16097 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16098 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16099 and PT_GETDSBT to LINUX_LOADMAP.
16100 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16101 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16103 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16105 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16106 (arm_linux_hwbp_cap): New static variable.
16107 (arm_linux_get_hwbp_cap): Replace by ...
16108 (arm_linux_init_hwbp_cap): ... this new function.
16109 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16110 (arm_linux_get_hw_watchpoint_count): Likewise.
16111 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16112 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16113 (arm_prepare_to_resume): Use perror_with_name instead of error.
16115 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16117 * linux-arm-low.c: Include <signal.h>.
16118 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16119 (struct arm_linux_hwbp_cap): New data type.
16120 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16121 (struct arm_linux_hw_breakpoint): New data type.
16122 (MAX_BPTS, MAX_WPTS): Define.
16123 (struct arch_process_info, struct arch_lwp_info): New data types.
16124 (arm_linux_get_hwbp_cap): New function.
16125 (arm_linux_get_hw_breakpoint_count): Likewise.
16126 (arm_linux_get_hw_watchpoint_count): Likewise.
16127 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16128 (arm_hwbp_control_initialize): Likewise.
16129 (arm_hwbp_control_is_enabled): Likewise.
16130 (arm_hwbp_control_is_initialized): Likewise.
16131 (arm_hwbp_control_disable): Likewise.
16132 (arm_linux_hw_breakpoint_equal): Likewise.
16133 (arm_linux_hw_point_initialize): Likewise.
16134 (struct update_registers_data): New data structure.
16135 (update_registers_callback: New function.
16136 (arm_insert_point): Likewise.
16137 (arm_remove_point): Likewise.
16138 (arm_stopped_by_watchpoint): Likewise.
16139 (arm_stopped_data_address): Likewise.
16140 (arm_new_process): Likewise.
16141 (arm_new_thread): Likewise.
16142 (arm_prepare_to_resume): Likewise.
16143 (the_low_target): Register arm_insert_point, arm_remove_point,
16144 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16145 arm_new_thread, and arm_prepare_to_resume.
16147 2011-09-15 Stan Shebs <stan@codesourcery.com>
16149 * server.h (struct emit_ops): Add compare-goto fields.
16150 * tracepoint.c (gdb_agent_op_sizes): New table.
16151 (emit_eq_goto): New function.
16152 (emit_ne_goto): New function.
16153 (emit_lt_goto): New function.
16154 (emit_le_goto): New function.
16155 (emit_gt_goto): New function.
16156 (emit_ge_goto): New function.
16157 (is_goto_target): New function.
16158 (compile_bytecodes): Recognize special cases of compare-goto
16159 combinations and call specialized emitters for them.
16160 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16161 (amd64_emit_ne_goto): New function.
16162 (amd64_emit_lt_goto): New function.
16163 (amd64_emit_le_goto): New function.
16164 (amd64_emit_gt_goto): New function.
16165 (amd64_emit_ge_goto): New function.
16166 (amd64_emit_ops): Add the new functions.
16167 (i386_emit_eq_goto): New function.
16168 (i386_emit_ne_goto): New function.
16169 (i386_emit_lt_goto): New function.
16170 (i386_emit_le_goto): New function.
16171 (i386_emit_gt_goto): New function.
16172 (i386_emit_ge_goto): New function.
16173 (i386_emit_ops): Add the new functions.
16175 2011-09-08 Stan Shebs <stan@codesourcery.com>
16177 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16178 (i386_emit_epilogue): Restore %ebx.
16180 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16182 * server.c (step_thread): Remove definition.
16183 (process_serial_event): Don't handle Hs.
16184 * server.h (step_thread): Remove declaration.
16185 * target.c (set_desired_inferior): Remove use of step_thread.
16187 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16189 * linux-low.c: Include linux-procfs.h.
16190 (linux_attach_lwp_1): Update comments.
16191 (linux_attach): Scan for existing threads when attaching to a
16192 process that is the tgid.
16193 * Makefile.in: Update dependencies.
16195 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16197 * configure.srv: Add linux-procfs.o dependencies.
16199 2011-08-14 Yao Qi <yao@codesourcery.com>
16201 * target.h (struct target_ops): Fix indent.
16202 * win32-low.c (win32_target_ops): Fix comment.
16204 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16205 Yao Qi <yao@codesourcery.com>
16207 * Makefile.in (clean): Remove tic6x-*.c files.
16208 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16209 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16210 (tic6x-c64xp-linux.c): Likewise.
16211 * configure.srv: Add support for tic6x-*-uclinux.
16212 * linux-tic6x-low.c: New.
16213 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16215 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16216 Yao Qi <yao@codesourcery.com>
16218 * target.h (struct target_ops): Add read_loadmap.
16219 * linux-low.c (struct target_loadseg): New type.
16220 (struct target_loadmap): New type.
16221 (linux_read_loadmap): New function.
16222 (linux_target_ops): Add linux_read_loadmap.
16223 * server.c (handle_query): Support qXfer:fdpic:read packet.
16224 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16227 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16229 * win32-low.c: Include <stdint.h>.
16231 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16233 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16234 to the inferior here.
16235 (i386_remove_aligned_watchpoint): Ditto.
16236 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16237 fit part of the watchpoint in the debug registers.
16238 (i386_update_inferior_debug_regs): New.
16239 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16240 registers, and only update the inferior on success.
16241 (i386_low_remove_watchpoint): Ditto.
16243 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16245 * linux-low.c (compare_ints, unique, list_threads, show_process,
16246 linux_core_of_thread): Delete.
16247 (linux_target_ops): Change linux_core_of_thread to
16248 linux_common_core_of_thread.
16249 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16250 * utils.c (malloc_failure): Change type of argument.
16251 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16252 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16253 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16254 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16255 (IPA_OBJS): Add common-utils-ipa.o.
16256 (ptid_h, linux_osdata_h): New macros.
16257 (server_h): Add common/common-utils.h, common/xml-utils.h,
16258 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16260 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16261 ptid.o, buffer.o): New rules.
16262 (linux-low.o): Add common/linux-osdata.h as a dependency.
16263 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16264 * configure.ac: Add AC_HEADER_DIRENT check.
16265 * config.in: Regenerate.
16266 * configure: Regenerate.
16267 * remote-utils.c (xml_escape_text): Delete.
16268 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16269 buffer_xml_printf): Move to common/buffer.c.
16270 * server.c (main): Remove call to initialize_inferiors.
16271 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16272 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16273 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16274 internal_error, gdb_assert, gdb_assert_fail): Delete.
16275 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16276 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16278 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16279 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16280 initialize_inferiors): Delete.
16282 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16284 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16287 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16289 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16291 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16293 2011-05-26 Yao Qi <yao@codesourcery.com>
16295 * Makefile.in (thread-db.o): Track dependence to
16296 common/gdb_thread_db.h.
16297 * thread-db.c: include gdb_thread_db.h from right place.
16299 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16301 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16302 __FILE__ and __LINE__ to internal_error.
16304 2011-05-13 Doug Evans <dje@google.com>
16306 * thread-db.c (try_thread_db_load_from_sdir): New function.
16307 (try_thread_db_load_from_dir): New function.
16308 (thread_db_load_search): Handle $sdir, ignore $pdir.
16309 Remove trying of system directories if search of
16310 libthread-db-search-path fails, that is now done via $sdir.
16312 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16314 * server.c (handle_query): Add EnableDisableTracepoints to the list
16315 of supported features.
16316 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16318 (cmd_qtenable_disable): New.
16319 (cmd_qtstart): Install tracepoints even if disabled.
16320 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16321 receiving a QTEnable or QTDisable packet.
16322 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16323 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16325 (gdb_probe): Skip data collection if static tracepoint is disabled.
16327 2011-05-10 Doug Evans <dje@google.com>
16329 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16331 2011-05-04 Doug Evans <dje@google.com>
16333 * linux-low.c (linux_join): Skip process lookup.
16334 * spu-low.c (spu_join): Ditto.
16335 * server.c (join_inferiors_callback): Delete.
16336 (process_serial_event): For 'D' packet (detach) call join_inferior
16339 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16341 * README: Don't mention xscale*-*-linux*.
16342 * configure.srv (xscale*-*-linux*): Don't handle target.
16344 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16346 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16348 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16349 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16350 (i386_emit_void_call_2): Likewise.
16352 2011-04-26 Yao Qi <yao@codesourcery.com>
16354 * linux-low.c: Move common macros to linux-ptrace.h.
16355 Include linux-ptrace.h.
16356 * Makefile.in (linux_ptrace_h): New.
16357 (linux-low.o): Depends on linux-ptrace.h.
16359 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16361 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16362 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16363 (remote_prepare): New function with most of the TCP code from ...
16364 (remote_open): ... here. Detect PORT here unconditionally. Move also
16365 setting transport_is_reliable.
16366 * server.c (run_once): New variable.
16367 (gdbserver_usage): Document it.
16368 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16369 the first run if RUN_ONCE.
16370 * server.h (run_once, remote_prepare): New declarations.
16372 2011-04-19 Tom Tromey <tromey@redhat.com>
16374 * win32-low.c (handle_load_dll): Remove duplicate "the".
16376 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16378 Remove support for old Cygwin 1.5 versions.
16379 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16380 function to avoid warning.
16381 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16384 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16386 * gdbserver/server.h (Macro _): Define it if not available.
16388 2011-03-14 Michael Snyder <msnyder@vmware.com>
16390 * hostio.c (handle_close): Remove unnecessary null test.
16392 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16394 * Makefile.in (maintainer-clean realclean distclean): Remove
16395 "make ... subdir_do" command.
16397 2011-03-10 Michael Snyder <msnyder@vmware.com>
16399 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16401 * server.c (handle_v_run): Free alloced buffer on early return.
16403 2011-03-09 Yao Qi <yao@codesourcery.com>
16406 2011-03-04 Yao Qi <yao@codesourcery.com>
16408 * Makefile.in: Remove GNU make feature --directory.
16410 2011-03-05 Yao Qi <yao@codesourcery.com>
16412 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16413 (subdir_do): New make target. Copied from gdb/Makefile.
16414 (maintainer-clean, realclean, distclean, clean): Call corresponding
16415 make targets in common/Makefile.
16417 2011-02-11 Yao Qi <yao@codesourcery.com>
16419 * configure.ac: Call AC_PROG_RANLIB.
16420 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16421 * configure: Regenerate.
16423 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16425 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16427 2011-03-06 Yao Qi <yao@codesourcery.com>
16429 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16431 2011-03-05 Yao Qi <yao@codesourcery.com>
16433 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16434 (subdir_do): New make target. Copied from gdb/Makefile.
16435 (maintainer-clean, realclean, distclean, clean): Call corresponding
16436 make targets in common/Makefile.
16438 2011-03-04 Yao Qi <yao@codesourcery.com>
16440 * Makefile.in: Remove GNU make feature --directory.
16442 2011-03-04 Michael Snyder <msnyder@vmware.com>
16444 * server.c (queue_stop_reply): Call xmalloc not malloc.
16446 2011-03-02 Michael Snyder <msnyder@vmware.com>
16448 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16450 2011-02-28 Michael Snyder <msnyder@vmware.com>
16452 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16453 (cmd_qtframe): Ditto.
16454 (cmd_qtbuffer): Ditto.
16455 (cmd_bigqtbuffer): Ditto.
16457 * utils.c (decimal2str): Initialize 'width' to nine, then
16458 don't mess with it.
16460 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16462 * hostio.c (require_data): Free *data, not data.
16464 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16466 * hostio.c (require_data): Use free, not xfree.
16468 2011-02-27 Michael Snyder <msnyder@vmware.com>
16470 * server.c (handle_query): Discard unused value.
16472 * hostio.c (require_data): Free malloc memory before returning
16475 2011-02-26 Michael Snyder <msnyder@vmware.com>
16477 * linux-low.c (list_threads): Call closedir for dirent.
16479 2011-02-27 Michael Snyder <msnyder@vmware.com>
16481 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16482 a case statement falls through.
16484 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16486 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16489 2011-02-26 Michael Snyder <msnyder@vmware.com>
16491 * utils.c (decimal2str): Eliminate dead code and dead param.
16492 (pulongest): Drop dead param from call to decimal2str.
16495 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16497 Revert the following patch (not approved yet):
16498 2011-02-21 Hui Zhu <teawater@gmail.com>
16499 * tracepoint.c (tp_printf): New function.
16500 (eval_agent_expr): Handle gdb_agent_op_printf.
16502 2011-02-21 Hui Zhu <teawater@gmail.com>
16504 * tracepoint.c (tp_printf): New function.
16505 (eval_agent_expr): Handle gdb_agent_op_printf.
16507 2011-02-18 Tom Tromey <tromey@redhat.com>
16509 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16510 (tracepoint.o): Likewise.
16511 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16512 (gdb_agent_op_names): Likewise.
16514 2011-02-18 Tom Tromey <tromey@redhat.com>
16516 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16517 gdb_agent_op_rot>: New constants.
16518 (gdb_agent_op_names): Add pick and roll.
16519 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16522 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16524 * aclocal.m4: Regenerated with aclocal-1.11.1.
16526 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16528 * server.c (handle_qxfer_traceframe_info): New.
16529 (qxfer_packets): Register "traceframe-info".
16530 (handle_query): Report support for qXfer:traceframe-info:read+.
16531 * tracepoint.c (match_blocktype): New.
16532 (traceframe_find_block_type): Rename to ...
16533 (traceframe_walk_blocks): ... this. Add callback filter argument,
16535 (traceframe_find_block_type): New, reimplemented on top of
16536 traceframe_walk_blocks.
16537 (build_traceframe_info_xml): New.
16538 (traceframe_read_info): New.
16539 * server.h (traceframe_read_info): Declare.
16541 2011-02-11 Yao Qi <yao@codesourcery.com>
16543 * configure.ac: Call AC_PROG_RANLIB.
16544 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16545 * configure: Regenerate.
16547 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16549 * server.c (gdb_read_memory): Change return semantics to allow
16551 (handle_search_memory_1): Adjust.
16552 (process_serial_event) <'m' packet>: Handle partial transfers.
16553 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16555 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16557 * regcache.c (init_register_cache): Initialize
16558 regcache->register_status.
16559 (free_register_cache): Release regcache->register_status.
16560 (regcache_cpy): Copy register_status.
16561 (registers_to_string): Print 'x's for unavailable registers.
16562 (supply_register): Mark the register's status valid or
16563 unavailable, depending on whether a buffer was passed in or not.
16564 (supply_register_zeroed): New.
16565 (supply_regblock): Mark the registers' status valid or
16566 unavailable, depending on whether a buffer was passed in or not.
16567 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16568 (struct regcache): New `register_status' field.
16569 (supply_register_zeroed): Declare.
16570 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16571 supply_register_zeroed, rather than passing a NULL buffer to
16573 * tracepoint.c (fetch_traceframe_registers): Update comment.
16575 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16577 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16580 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16582 * server.h (decode_xfer_write): Change prototype.
16583 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16584 and don't extract the annex here.
16585 * server.c (decode_xfer_read): Remove `annex' parameter,
16586 and don't extract the annex here.
16587 (decode_xfer): New.
16588 (struct qxfer): New.
16589 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16590 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16591 (handle_qxfer_statictrace): New functions, abstracted out from
16592 handle_query, and made to use the struct qxfer interface.
16593 (handle_threads_qxfer_proper): Rename to ...
16594 (handle_qxfer_threads_proper): ... this.
16595 (handle_threads_qxfer): Rename to ...
16596 (handle_qxfer_threads): ... this. Adjust.
16597 (qxfer_packets): New array.
16598 (handle_qxfer): New function.
16599 (handle_query): Use handle_qxfer.
16601 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16603 * gdbreplay.c: Shorten lines of >= 80 columns.
16604 * linux-low.c: Ditto.
16605 * linux-ppc-low.c: Ditto.
16606 * linux-s390-low.c: Ditto.
16607 * linux-sparc-low.c: Ditto.
16608 * linux-x86-low.c: Ditto.
16609 * linux-xtensa-low.c: Ditto.
16610 * mem-break.c: Ditto.
16611 * nto-low.c: Ditto.
16612 * regcache.h: Ditto.
16613 * remote-utils.c: Ditto.
16616 * thread-db.c: Ditto.
16617 * tracepoint.c: Ditto.
16619 * win32-low.h: Ditto.
16621 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16623 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16626 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16628 * server.c (gdbserver_version): Update copyright year in version
16630 * gdbreplay.c (gdbreplay_version): Ditto.
16632 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16634 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16635 * linux-bfin-low.c: New file.
16636 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16637 PT_DATA_ADDR for BFIN targets.
16638 * Makefile.in (SFILES): Add linux-bfin-low.c.
16639 (clean): Remove reg-bfin.c.
16640 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16641 * README: Mention supported Blackfin targets.
16643 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16645 * .gitignore: New file.
16647 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16649 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16651 2010-10-22 Jie Zhang <jie@codesourcery.com>
16653 * Makefile.in: Add FLAGS_TO_PASS variable.
16654 (install): Remove dependency of install-only and recursively
16655 invoke make for install-only.
16657 2010-10-04 Doug Evans <dje@google.com>
16659 * Makefile.in (uninstall): Use $(DESTDIR).
16661 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16665 * linux-x86-low.c (compat_siginfo_from_siginfo)
16666 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16667 si_code is < 0. Check for si_code == SI_TIMER before checking for
16670 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16672 * lynx-i386-low.c: New file.
16673 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16675 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16677 * lynx-low.c (ptrace_request_to_str): Remove handling for
16678 request values that have been removed in LynxOS 5.x.
16680 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16682 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16685 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16687 * configure.ac: Add --enable-inprocess-agent option.
16688 * configure: Rebuilt.
16690 2010-09-06 Yao Qi <yao@codesourcery.com>
16692 * linux-low.c (linux_kill): Remove unused variable.
16693 (linux_stabilize_threads): Likewise.
16694 * server.c (start_inferior): Likewise.
16695 (queue_stop_reply_callback): Likewise.
16696 * tracepoint.c (do_action_at_tracepoint): Likewise.
16698 2010-09-06 Yao Qi <yao@codesourcery.com>
16700 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16703 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16705 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16707 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16709 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16712 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16714 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16715 gdbserver/lynx-ppc-low.c: New files.
16716 * Makefile.in (lynx_low_h): New variable.
16717 (lynx-low.o, lynx-ppc-low.o): New rules.
16718 * configure.ac: On LynxOS, link with -lnetinet.
16719 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16720 * configure: regenerate.
16722 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16724 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16725 * configure.ac: Add check for vasprintf and vsnprintf.
16726 * configure, config.in: Regenerate.
16727 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16729 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16731 * gdbreplay.c: Move include of alloca.h up, next to include of
16733 * server.h: Add include of malloc.h.
16734 * mem-break.c: Remove include of malloc.h.
16735 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16737 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16739 * Makefile.in (memmem.o): Build with -Wno-error.
16741 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16743 * utils.c (xsnprintf): Make non-static.
16744 * server.h: Add xsnprintf declaration.
16745 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16746 replace calls to snprintf by calls to xsnprintf throughout.
16748 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16750 * configure.ac: Add configure check for alloca.
16751 * configure, config.in: Regenerate.
16752 * server.h: Include alloca.h if it exists.
16753 * gdbreplay.c: Include alloca.h if it exists.
16755 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16757 * linux-low.c (__SIGRTMIN): Define if not already defined.
16758 (linux_create_inferior): Check for __ANDROID__ rather than
16760 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16761 are already deferred.
16762 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16763 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16764 stopped and already has a pending signal to report.
16765 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16766 a pending signal to report or is moving out of a jump pad.
16767 (linux_init_signals): Check for __ANDROID__ rather than
16770 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16772 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16773 debug_threads check. Avoid a linear search when not doing debug
16776 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16778 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16779 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16780 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16781 (process_event): Change local fd's type to gdb_fildes_t.
16782 (create_file_handler): Adjust prototype.
16783 (delete_file_handler): Adjust prototype.
16784 (handle_file_event): Adjust prototype. Use pfildes.
16785 (create_file_event): Adjsut prototype.
16786 * remote-utils.c (remote_desc, listen_desc): Change type to
16788 * server.h: New gdb_fildes_t typedef.
16789 [USE_WIN32API]: Include winsock2.h.
16790 (delete_file_handler, add_file_handler): Adjust prototypes.
16791 (pfildes): Declare.
16792 * utils.c (pfildes): New.
16794 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16796 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16797 * configure: Regenerate.
16799 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16801 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16802 (linux_done_accessing_memory): ... this.
16803 (linux_target_ops): Adjust.
16804 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16805 * nto-low.c (nto_target_ops): Adjust comment.
16806 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16807 * spu-low.c (spu_target_ops): Adjust comment.
16808 * target.h (target_ops): Rename unprepare_to_access_memory field
16809 to done_accessing_memory.
16810 (unprepare_to_access_memory): Rename to ...
16811 (done_accessing_memory): ... this.
16813 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16815 * linux-low.c (linux_prepare_to_access_memory): New.
16816 (linux_unprepare_to_access_memory): New.
16817 (linux_target_ops): Install them.
16818 * server.c (read_memory): Rename to ...
16819 (gdb_read_memory): ... this. Use
16820 prepare_to_access_memory/prepare_to_access_memory.
16821 (write_memory): Rename to ...
16822 (gdb_write_memory): ... this. Use
16823 prepare_to_access_memory/prepare_to_access_memory.
16824 (handle_search_memory_1): Adjust.
16825 (process_serial_event): Adjust.
16826 * target.h (struct target_ops): New fields
16827 prepare_to_access_memory and unprepare_to_access_memory.
16828 (prepare_to_access_memory, unprepare_to_access_memory): New.
16829 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16830 prepare_to_access_memory/prepare_to_access_memory.
16831 * nto-low.c (nto_target_ops): Adjust.
16832 * spu-low.c (spu_target_ops): Adjust.
16833 * win32-low.c (win32_target_ops): Adjust.
16835 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16837 * Makefile.in (WARN_CFLAGS): Get it from configure.
16838 (WERROR_CFLAGS): New.
16839 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16840 * configure.ac: Introduce --enable-werror, which adds -Werror to
16841 the compiler command line. Enabled by default. Disable with
16842 --disable-werror. Add -Wdeclaration-after-statement
16843 Wpointer-arith and -Wformat-nonliteral to warning flags.
16844 * configure: Regenerate.
16846 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16848 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16850 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16852 * gdbreplay.c (remote_error): New.
16854 (expect): Use gdbchar. Check for error reading from GDB.
16855 Clarify sync error output.
16856 (play): Check for errors writing to GDB.
16857 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16858 * remote-utils.c (getpkt): Check for errors writing to the remote
16861 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16863 * linux-low.c (linux_wait_1): Move non-debugging code out of
16864 `debug_threads' control.
16866 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16868 * linux-low.c (linux_wait_1): Don't set last_status here.
16869 * server.c (push_event, queue_stop_reply_callback): Assert we're
16870 not pushing a TARGET_WAITKIND_IGNORE event.
16871 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16872 (myresume, handle_target_event): Set the thread's last_resume_kind
16873 and last_status from the target returned status.
16875 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16879 * linux-x86-low.c (update_debug_registers_callback): New.
16880 (i386_dr_low_set_addr): Use it.
16881 (i386_dr_low_get_addr): New.
16882 (i386_dr_low_set_control): Use update_debug_registers_callback.
16883 (i386_dr_low_get_control): New.
16884 (i386_dr_low_get_status): Adjust.
16885 * linux-low.c (linux_stop_lwp): New.
16886 * linux-low.h (linux_stop_lwp): Declare.
16888 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16889 argument instead of a i386_debug_reg_state.
16890 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16891 a i386_debug_reg_state.
16892 (i386_insert_aligned_watchpoint): Adjust.
16893 (i386_remove_aligned_watchpoint): Adjust.
16894 (i386_low_stopped_data_address): Read the debug registers from the
16895 inferior instead of from the mirrors.
16896 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16897 (i386_dr_low_get_addr): Declare.
16898 (i386_dr_low_get_control): Declare.
16899 (i386_dr_low_get_status): Change prototype.
16901 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16902 (i386_dr_low_get_addr): New.
16903 (i386_dr_low_get_control): New.
16904 (i386_dr_low_get_status): Adjust prototype. Return
16906 (i386_initial_stuff): Clear dr_status_mirror and
16908 (i386_get_thread_context): Adjust.
16909 (i386_set_thread_context): Adjust.
16910 (i386_thread_added): Adjust.
16912 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16914 * linux-low.h (linux_thread_area): Delete declaration.
16916 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16918 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16919 after its termination.
16921 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16923 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16924 (gdb_wants_all_stopped): Delete.
16925 (linux_wait_1): Don't call them.
16926 * server.c (handle_v_cont): Tag all threads as want-stopped.
16927 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16928 stopped as "client-wants-stopped".
16930 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16932 * Makefile.in (signals_h): New.
16933 (server_h): Depend on it.
16934 (server.o): Don't depend on $(signals_def).
16935 (signals.o): Depend on $(signals_def).
16937 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16939 * Makefile.in (signals_def): New.
16940 (server_h): Append include/gdb/signals.h and signals_def.
16941 (server.o): Append signals_def.
16943 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16945 * server.c (handle_target_event): Use target_signal_to_host for
16946 resume_info.sig initialization.
16947 * target.h (struct thread_resume) <sig>: New comment.
16949 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16951 * server.c (handle_query): strcpy() the returned string from paddress()
16952 instead of sprintf().
16953 * utils.c (paddress): Return phex_nz().
16955 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16957 * server.c (handle_v_cont): Call mourn_inferior if process
16959 (myresume): Likewise.
16961 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16963 Static tracepoints, and integration with UST.
16965 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16966 * mem-break.c (uninsert_all_breakpoints)
16967 (reinsert_all_breakpoints): New.
16968 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16969 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16970 (gdb_agent_ust_loaded, helper_thread_id)
16971 (gdb_agent_helper_thread_id): New macros.
16972 (struct ipa_sym_addresses): Add addr_ust_loaded,
16973 addr_helper_thread_id, addr_cmd_buf.
16974 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16975 (in_process_agent_loaded_ust): New.
16976 (write_e_ust_not_loaded): New.
16977 (maybe_write_ipa_ust_not_loaded): New.
16978 (struct collect_static_trace_data_action): New.
16979 (enum tracepoint_type) <static_tracepoint>: New.
16980 (struct tracepoint) <handle>: Mention static tracepoints.
16981 (struct static_tracepoint_ctx): New.
16982 (CMD_BUF_SIZE): New.
16983 (add_tracepoint_action): Handle static tracepoint actions.
16984 (unprobe_marker_at): New.
16985 (clear_installed_tracepoints): Handle static tracepoints.
16986 (cmd_qtdp): Handle static tracepoints.
16987 (probe_marker_at): New.
16988 (cmd_qtstart): Handle static tracepoints.
16989 (response_tracepoint): Handle static tracepoints.
16990 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16991 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16992 (get_context_regcache): Handle static tracepoints.
16993 (do_action_at_tracepoint): Handle static tracepoint actions.
16994 (traceframe_find_block_type): Handle static trace data blocks.
16995 (traceframe_read_sdata): New.
16996 (download_tracepoints): Download static tracepoint actions.
16997 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16998 (GDB_PROBE_NAME): New.
17000 (GET_UST_SYM): New.
17003 (ust_marker_to_static_tracepoint): New.
17005 (collect_ust_data_at_tracepoint): New.
17006 (gdb_ust_probe): New.
17007 (UNIX_PATH_MAX, SOCK_DIR): New.
17008 (gdb_ust_connect_sync_socket): New.
17009 (resume_thread, stop_thread): New.
17010 (run_inferior_command): New.
17011 (init_named_socket): New.
17012 (gdb_ust_socket_init): New.
17013 (cstr_to_hexstr): New.
17015 (first_marker, next_marker): New.
17016 (response_ust_marker): New.
17017 (cmd_qtfstm, cmd_qtsstm): New.
17018 (unprobe_marker_at, probe_marker_at): New.
17019 (cmd_qtstmat, gdb_ust_thread): New.
17020 (gdb_ust_init): New.
17021 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17022 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17023 (ST_REGENTRY): New.
17024 (x86_64_st_collect_regmap): New.
17025 (X86_64_NUM_ST_COLLECT_GREGS): New.
17026 (AMD64_RIP_REGNUM): New.
17027 (supply_static_tracepoint_registers): New.
17028 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17029 (ST_REGENTRY): New.
17030 (i386_st_collect_regmap): New.
17031 (i386_NUM_ST_COLLECT_GREGS): New.
17032 (supply_static_tracepoint_registers): New.
17033 * server.c (handle_query): Handle qXfer:statictrace:read.
17034 <qSupported>: Report support for StaticTracepoints, and
17035 qXfer:statictrace:read features.
17036 * server.h (traceframe_read_sdata)
17037 (supply_static_tracepoint_registers): Declare.
17038 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17039 (unpack_varlen_hex): Include in IPA build.
17040 * Makefile.in (ustlibs, ustinc): New.
17041 (IPA_OBJS): Add remote-utils-ipa.o.
17042 ($(IPA_LIB)): Link -ldl and -lpthread.
17044 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17045 * config.in, configure: Regenerate.
17047 2010-06-20 Ian Lance Taylor <iant@google.com>
17048 Pedro Alves <pedro@codesourcery.com>
17050 * linux-x86-low.c (always_true): Delete.
17051 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17052 trying to fool the compiler with always_true.
17054 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17056 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17057 conditions in gdbserver.
17059 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17061 * spu-low.c (spu_read_memory): Wrap around local store limit.
17062 (spu_write_memory): Likewise.
17064 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17066 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17067 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17069 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17071 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17072 uses with LONGEST uses.
17074 2010-06-14 Stan Shebs <stan@codesourcery.com>
17075 Pedro Alves <pedro@codesourcery.com>
17079 * linux-x86-low.c: Include limits.h.
17081 (always_true): New.
17084 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17085 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17086 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17087 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17088 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17089 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17090 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17091 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17092 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17093 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17094 (amd64_emit_void_call_2): New.
17095 (amd64_emit_ops): New.
17096 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17097 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17098 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17099 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17100 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17101 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17102 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17103 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17104 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17105 (i386_emit_stack_adjust, i386_emit_int_call_1)
17106 (i386_emit_void_call_2): New.
17107 (i386_emit_ops): New.
17108 (x86_emit_ops): New.
17109 (the_low_target): Install x86_emit_ops.
17110 * server.h (struct emit_ops): New.
17111 (get_raw_reg_func_addr): Declare.
17112 (current_insn_ptr, emit_error): Declare.
17113 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17114 (set_trace_state_variable_value): New defines.
17115 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17116 addr_get_trace_state_variable_value and
17117 addr_set_trace_state_variable_value.
17118 (symbol_list): New fields for get_raw_reg,
17119 get_trace_state_variable_value and set_trace_state_variable_value.
17120 (condfn): New typedef.
17121 (struct tracepoint): New field `compiled_cond'.
17122 (do_action_at_tracepoint): Clear compiled_cond.
17123 (get_trace_state_variable_value, set_trace_state_variable_value):
17125 (condition_true_at_tracepoint): If there's a compiled condition,
17127 (current_insn_ptr, emit_error): New globals.
17128 (struct bytecode_address): New.
17129 (get_raw_reg_func_addr): New.
17130 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17131 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17132 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17133 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17134 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17135 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17136 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17137 (compile_tracepoint_condition, compile_bytecodes): New.
17138 * target.h (emit_ops): Forward declare.
17139 (struct target_ops): New field emit_ops.
17140 (target_emit_ops): New.
17141 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17142 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17143 * linux-low.c (linux_emit_ops): New.
17144 (linux_target_ops): Install it.
17145 * linux-low.h (struct linux_target_ops): New field emit_ops.
17147 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17149 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17150 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17152 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17153 Stan Shebs <stan@codesourcery.com>
17155 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17156 (all): Depend on $(extra_libraries).
17157 (install-only): Install the IPA.
17158 (IPA_OBJS, IPA_LIB): New.
17159 (clean): Remove the IPA lib.
17160 (IPAGENT_CFLAGS): New.
17161 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17162 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17163 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17164 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17165 * configure.ac: Check for atomic builtins support in the compiler.
17166 (IPA_DEPFILES, extra_libraries): Define.
17167 * configure.srv (ipa_obj): Add description.
17168 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17169 (i[34567]86-*-linux*): Set ipa_obj.
17170 (x86_64-*-linux*): Set ipa_obj.
17171 * linux-low.c (stabilizing_threads): New.
17172 (supports_fast_tracepoints): New.
17173 (linux_detach): Stabilize threads before detaching.
17174 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17175 the lwp is either not stabilizing, or is moving out of a jump pad.
17176 (linux_fast_tracepoint_collecting): New.
17177 (maybe_move_out_of_jump_pad): New.
17178 (enqueue_one_deferred_signal): New.
17179 (dequeue_one_deferred_signal): New.
17180 (linux_wait_for_event_1): If moving out of a jump pad, defer
17181 pending signals to later.
17182 (linux_stabilize_threads): New.
17183 (linux_wait_1): Check if threads need moving out of jump pads, and
17185 (stuck_in_jump_pad_callback): New.
17186 (move_out_of_jump_pad_callback): New.
17187 (lwp_running): New.
17188 (linux_resume_one_lwp): Handle moving out of jump pads.
17189 (linux_set_resume_request): Dequeue deferred signals.
17190 (need_step_over_p): Also step over fast tracepoint jumps.
17191 (start_step_over): Also uninsert fast tracepoint jumps.
17192 (finish_step_over): Also reinsert fast tracepoint jumps.
17193 (linux_install_fast_tracepoint_jump): New.
17194 (linux_target_ops): Install linux_stabilize_threads and
17195 linux_install_fast_tracepoint_jump_pad.
17196 * linux-low.h (linux_target_ops) <get_thread_area,
17197 install_fast_tracepoint_jump_pad>: New fields.
17198 (struct lwp_info) <collecting_fast_tracepoint,
17199 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17200 (linux_get_thread_area): Declare.
17201 * linux-x86-low.c (jump_insn): New.
17202 (x86_get_thread_area): New.
17203 (append_insns): New.
17204 (push_opcode): New.
17205 (amd64_install_fast_tracepoint_jump_pad): New.
17206 (i386_install_fast_tracepoint_jump_pad): New.
17207 (x86_install_fast_tracepoint_jump_pad): New.
17208 (the_low_target): Install x86_get_thread_area and
17209 x86_install_fast_tracepoint_jump_pad.
17210 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17211 (struct fast_tracepoint_jump): New.
17212 (fast_tracepoint_jump_insn): New.
17213 (fast_tracepoint_jump_shadow): New.
17214 (find_fast_tracepoint_jump_at): New.
17215 (fast_tracepoint_jump_here): New.
17216 (delete_fast_tracepoint_jump): New.
17217 (set_fast_tracepoint_jump): New.
17218 (uninsert_fast_tracepoint_jumps_at): New.
17219 (reinsert_fast_tracepoint_jumps_at): New.
17220 (set_breakpoint_at): Use write_inferior_memory.
17221 (uninsert_raw_breakpoint): Use write_inferior_memory.
17222 (check_mem_read): Mask out fast tracepoint jumps.
17223 (check_mem_write): Mask out fast tracepoint jumps.
17224 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17225 (set_fast_tracepoint_jump): Declare.
17226 (delete_fast_tracepoint_jump)
17227 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17228 (reinsert_fast_tracepoint_jumps_at): Declare.
17229 * regcache.c: Don't compile many functions when building the
17230 in-process agent library.
17231 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17232 the register buffer in the heap.
17233 (free_register_cache): If the register buffer isn't owned by the
17234 regcache, don't free it.
17235 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17236 pre-existing register caches.
17237 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17239 (convert_ascii_to_int): : Constify `from' parameter type.
17240 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17241 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17242 the needed buffer in-place.
17243 (relocate_instruction): New.
17244 * server.c (handle_query) <qSymbols>: If the target supports
17245 tracepoints, give it a chance of looking up symbols. Report
17246 support for fast tracepoints.
17247 (handle_status): Stabilize threads.
17248 (process_serial_event): Adjust.
17249 * server.h (struct fast_tracepoint_jump): Forward declare.
17250 (struct process_info) <fast_tracepoint_jumps>: New field.
17251 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17252 (decode_X_packet, decode_M_packet): Adjust.
17253 (relocate_instruction): Declare.
17254 (in_process_agent_loaded): Declare.
17255 (tracepoint_look_up_symbols): Declare.
17256 (struct fast_tpoint_collect_status): Declare.
17257 (fast_tracepoint_collecting): Declare.
17258 (force_unlock_trace_buffer): Declare.
17259 (handle_tracepoint_bkpts): Declare.
17260 (initialize_low_tracepoint)
17261 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17262 * target.h (struct target_ops) <stabilize_threads,
17263 install_fast_tracepoint_jump_pad>: New fields.
17264 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17265 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17266 [HAVE_STDINT_H]: Include stdint.h.
17267 (trace_debug_1): Rename to ...
17268 (trace_vdebug): ... this.
17269 (trace_debug): Rename to ...
17270 (trace_debug_1): ... this. Add `level' parameter.
17271 (trace_debug): New.
17272 (ATTR_USED, ATTR_NOINLINE): New.
17273 (IP_AGENT_EXPORT): New.
17274 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17275 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17276 (about_to_request_buffer_space, trace_buffer_is_full)
17277 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17278 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17279 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17280 (traceframe_write_count, traceframes_created)
17281 (trace_state_variables)
17282 New renaming defines.
17283 (struct ipa_sym_addresses): New.
17284 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17285 (symbol_list): New.
17286 (ipa_sym_addrs): New.
17287 (all_tracepoint_symbols_looked_up): New.
17288 (in_process_agent_loaded): New.
17289 (write_e_ipa_not_loaded): New.
17290 (maybe_write_ipa_not_loaded): New.
17291 (tracepoint_look_up_symbols): New.
17292 (debug_threads) [IN_PROCESS_AGENT]: New.
17293 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17294 (UNKNOWN_SIDE_EFFECTS): New.
17295 (stop_tracing): New.
17296 (flush_trace_buffer): New.
17297 (stop_tracing_bkpt): New.
17298 (flush_trace_buffer_bkpt): New.
17299 (read_inferior_integer): New.
17300 (read_inferior_uinteger): New.
17301 (read_inferior_data_pointer): New.
17302 (write_inferior_data_pointer): New.
17303 (write_inferior_integer): New.
17304 (write_inferior_uinteger): New.
17305 (struct collect_static_trace_data_action): Delete.
17306 (enum tracepoint_type): New.
17307 (struct tracepoint) <type>: New field `type'.
17308 <actions_str, step_actions, step_actions_str>: Only include in
17310 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17311 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17312 (tracepoints): Use IP_AGENT_EXPORT.
17313 (last_tracepoint): Don't include in the IPA.
17314 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17315 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17316 (alloced_trace_state_variables): New.
17317 (trace_state_variables): Use IP_AGENT_EXPORT.
17318 (traceframe_t): Delete unused variable.
17319 (circular_trace_buffer): Don't include in the IPA.
17320 (trace_buffer_start): Delete.
17321 (struct trace_buffer_control): New.
17322 (trace_buffer_free): Delete.
17323 (struct ipa_trace_buffer_control): New.
17324 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17325 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17327 (trace_buffer_ctrl): New.
17328 (TRACE_BUFFER_CTRL_CURR): New.
17329 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17330 Reimplement as macros.
17331 (trace_buffer_wrap): Delete.
17332 (traceframe_write_count, traceframe_read_count)
17333 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17334 (struct tracepoint_hit_ctx) <type>: New field.
17335 (struct fast_tracepoint_ctx): New.
17336 (memory_barrier): New.
17338 (record_tracepoint_error): Update atomically in the IPA.
17339 (clear_inferior_trace_buffer): New.
17340 (about_to_request_buffer_space): New.
17341 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17342 updating the same buffer.
17343 (add_tracepoint): Default the tracepoint's type to trap
17344 tracepoint, and orig_size to -1.
17345 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17346 internal variables.
17347 (create_trace_state_variable): New parameter `gdb'. Handle it.
17348 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17349 (cmd_qtdp): Handle fast tracepoints.
17350 (cmd_qtdv): Adjust.
17351 (max_jump_pad_size): New.
17352 (gdb_jump_pad_head): New.
17353 (get_jump_space_head): New.
17354 (claim_jump_space): New.
17355 (sort_tracepoints): New.
17356 (MAX_JUMP_SIZE): New.
17357 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17359 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17360 support. Upload fast traceframes, and delete internal IPA
17362 (stop_tracing_handler): New.
17363 (flush_trace_buffer_handler): New.
17364 (cmd_qtstop): Upload fast tracepoints.
17365 (response_tracepoint): Handle fast tracepoints.
17366 (tracepoint_finished_step): Upload fast traceframes. Set the
17367 tracepoint hit context's tracepoint type.
17368 (handle_tracepoint_bkpts): New.
17369 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17370 type. Add comment about fast tracepoints.
17371 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17372 non-existing action_str field.
17373 (get_context_regcache): Handle fast tracepoints.
17374 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17376 (fast_tracepoint_from_jump_pad_address): New.
17377 (fast_tracepoint_from_ipa_tpoint_address): New.
17378 (collecting_t): New.
17379 (force_unlock_trace_buffer): New.
17380 (fast_tracepoint_collecting): New.
17382 (gdb_collect): New.
17383 (write_inferior_data_ptr): New.
17384 (target_tp_heap): New.
17385 (target_malloc): New.
17386 (download_agent_expr): New.
17388 (download_tracepoints): New.
17389 (download_trace_state_variables): New.
17390 (upload_fast_traceframes): New.
17391 (IPA_FIRST_TRACEFRAME): New.
17392 (IPA_NEXT_TRACEFRAME_1): New.
17393 (IPA_NEXT_TRACEFRAME): New.
17394 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17395 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17396 (gdb_jump_pad_buffer_end): New.
17397 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17398 (initialize_tracepoint): Adjust.
17399 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17400 buffer. Initialize the low module.
17401 * utils.c (PREFIX, TOOLNAME): New.
17402 (malloc_failure): Use PREFIX.
17403 (error): In the IPA, an error causes an exit.
17404 (fatal, warning): Use PREFIX.
17405 (internal_error): Use TOOLNAME.
17406 (NUMCELLS): Increase to 10.
17407 * configure, config.in: Regenerate.
17409 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17411 * server.c (handle_query) <qSupported>: Do two passes over the
17412 qSupported string to avoid nesting strtok.
17414 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17416 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17418 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17419 -Wl,--dynamic-list.
17420 * configure: Regenerate.
17421 * proc-service.list: New.
17423 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17425 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17428 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17430 * gdbreplay.c (remote_open): Check error return from socket() call by
17431 its equality to -1 not by it being negative.
17432 * remote-utils.c (remote_open): Likewise.
17434 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17436 * config.h: Regenerate.
17438 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17440 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17441 doesn't provide PTRACE_GET_THREAD_AREA.
17443 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17445 * linux-m68k-low.c: Include <asm/ptrace.h>
17446 (ps_get_thread_area): Implement.
17448 2010-05-03 Doug Evans <dje@google.com>
17450 * event-loop.c (struct callback_event): New struct.
17451 (callback_list): New global.
17452 (append_callback_event, delete_callback_event): New functions.
17453 (process_callback): New function.
17454 (start_event_loop): Call it.
17455 * remote-utils.c (NOT_SCHEDULED): Define.
17456 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17457 moved out of readchar.
17458 (readchar): Rewrite. Call reschedule before returning.
17459 (reset_readchar): New function.
17460 (remote_close): Call it.
17461 (process_remaining, reschedule): New functions.
17462 * server.h (callback_handler_func): New typedef.
17463 (append_callback_event, delete_callback_event): Declare.
17465 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17467 * proc-service.c (ps_pglobal_lookup): Use
17468 thread_db_look_up_one_symbol.
17469 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17470 parameter. Use it instead of all_symbols_looked_up.
17471 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17473 (all_symbols_looked_up): Don't declare.
17474 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17475 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17477 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17478 Set all_symbols_looked_up here.
17479 (thread_db_look_up_one_symbol): New.
17480 (thread_db_get_tls_address): Adjust.
17481 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17482 thread_db object on the heap, and tentatively set it in the
17484 (thread_db_init): Don't set all_symbols_looked_up here.
17485 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17487 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17489 * linux-low.c (linux_kill, linux_detach): Adjust.
17490 (status_pending_p_callback): Remove redundant statement. Check
17491 for !TARGET_WAITIKIND_IGNORE, instead of
17492 TARGET_WAITKIND_STOPPED.
17493 (handle_tracepoints): Make sure LWP is locked. Adjust.
17494 (linux_wait_for_event_1): Adjust.
17495 (linux_cancel_breakpoints): New.
17496 (unsuspend_one_lwp): New.
17497 (unsuspend_all_lwps): New.
17498 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17499 (send_sigstop_callback): Change return type to int, add new
17500 `except' parameter and handle it.
17501 (suspend_and_send_sigstop_callback): New.
17502 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17503 pass them down. If SUSPEND, also increment the lwp's suspend
17505 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17506 (need_step_over_p): Don't consider suspended LWPs.
17507 (start_step_over): Adjust.
17508 (proceed_one_lwp): Change return type to int, add new `except'
17509 parameter and handle it.
17510 (unsuspend_and_proceed_one_lwp): New.
17511 (proceed_all_lwps): Use find_inferior instead of
17513 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17514 also decrement the suspend count of LWPs. Pass `except' down,
17515 instead of hacking its suspend count.
17516 (linux_pause_all): Add `freeze' parameter. Adjust.
17517 (linux_unpause_all): New.
17518 (linux_target_ops): Install linux_unpause_all.
17519 * server.c (handle_status): Adjust.
17520 * target.h (struct target_ops): New fields `unpause_all' and
17521 `cancel_breakpoints'. Add new parameter to `pause_all'.
17522 (pause_all): Add new `freeze' parameter.
17523 (unpause_all): New.
17524 (cancel_breakpoints): New.
17525 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17526 cancel breakpoints.
17527 (cmd_qtstart): Pause threads.
17528 (stop_tracing): Pause threads, and cancel breakpoints.
17529 * win32-low.c (win32_target_ops): Adjust.
17531 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17533 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17534 the inferior right away from here...
17535 (linux_wait_1): ... to here, and adjust to check the thread's
17536 last_resume_kind instead of the lwp's step or stop_expected flags.
17538 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17540 * README: Use consistent `GDB' and `GDBserver' spellings.
17542 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17544 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17545 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17546 (linux_detach_one_lwp): Assume the lwp is stopped.
17547 (any_thread_of): Delete.
17548 (linux_detach): Stop all lwps here. Don't blindly delete all
17550 (delete_lwp_callback): New.
17551 (linux_mourn): Delete all lwps of the process that is gone.
17552 (linux_wait_1): Don't delete the last lwp of the process here.
17553 * mem-break.h (mark_breakpoints_out): Declare.
17554 * mem-break.c (mark_breakpoints_out): New.
17555 (free_all_breakpoints): Use it.
17556 * server.c (handle_target_event): If the process is gone, mark
17558 * thread-db.c (struct thread_db) <create_bp>: New field.
17559 (thread_db_enable_reporting): Fix prototype. Store a thread event
17560 breakpoint reference in the thread_db struct.
17561 (thread_db_load_search): Clear the thread_db object.
17562 (try_thread_db_load_1): Ditto.
17563 (switch_to_process): New.
17564 (disable_thread_event_reporting): Use it.
17565 (remove_thread_event_breakpoints): New.
17566 (thread_db_detach, thread_db_mourn): Use it.
17568 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17570 * linux-low.c (linux_enable_event_reporting): New.
17571 (linux_wait_for_event_1, handle_extended_wait): Use it.
17573 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17575 * linux-low.c (linux_kill_one_lwp, linux_kill)
17576 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17577 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17578 SIGSTOP even if the LWP is stopped.
17579 (send_sigstop_callback): New.
17580 (stop_all_lwps): Use send_sigstop_callback instead.
17581 (linux_resume_one_thread): Adjust.
17582 (proceed_one_lwp): Still proceed an LWP that the client has
17583 requested to stop, if we haven't reported it as stopped yet. Make
17584 sure that LWPs the client want stopped, have a pending SIGSTOP.
17586 2010-04-26 Doug Evans <dje@google.com>
17588 * server.c (handle_general_set): Make static.
17590 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17591 Print received char after testing for error/eof instead of before.
17592 (input_interrupt): Tweak comment.
17594 2010-04-23 Doug Evans <dje@google.com>
17596 * server.c (start_inferior): Print inferior argv if --debug.
17598 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17600 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17601 * nto-x86-low.c: Include server.h
17603 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17605 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17606 be consistent with other sources of this directory.
17607 (init_registers_amd64): Correct name of source file of this function
17610 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17612 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17613 64-bit executables.
17615 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17617 * win32-i386-low.c: Add 64-bit support.
17618 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17619 (init_registers_amd64): Declare.
17620 (mappings): Add 64-bit version of array.
17621 (init_windows_x86): New function.
17622 (the_low_target): Change init_arch field to init_windows_x86.
17624 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17626 * win32-low.c: Adapt to support also 64-bit architecture.
17627 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17628 (get_image_name): Use SIZE_T type for local variable `done'.
17629 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17630 (toolhelp_get_dll_name): Idem.
17631 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17632 Use uintptr_t typecast to avoid warning.
17633 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17634 (handle_exception): Use phex_nz to avoid warning.
17635 (win32_wait): Remove unused local variable `process'.
17637 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17639 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17642 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17644 * configure.ac: Use `ws2_32' library for srv_mingw.
17645 * configure: Regenerate.
17646 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17647 * remote-utils.c: Likewise.
17649 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17651 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17652 if __x86_64__ is defined.
17654 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17656 * configure: Regenerate.
17658 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17660 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17661 * target.h (target_ops): New get_tib_address field.
17662 * win32-low.h (win32_thread_info): Add thread_local_base field.
17663 * win32-low.c (child_add_thread): Add tlb argument.
17664 Set thread_local_base field to TLB.
17665 (get_child_debug_event): Adapt to child_add_thread change.
17666 (win32_get_tib_address): New function.
17667 (win32_target_ops): Set get_tib_address field to
17668 win32_get_tib_address.
17669 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17671 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17673 * linux-low.c (linux_mourn): Also remove the process.
17674 * server.c (handle_target_event): Don't remove the process here.
17675 * nto-low.c (nto_mourn): New.
17676 (nto_target_ops): Install it.
17677 * spu-low.c (spu_mourn): New.
17678 (spu_target_ops): Install it.
17679 * win32-low.c (win32_mourn): New.
17680 (win32_target_ops): Install it.
17682 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17684 * server.h (buffer_xml_printf): Remove redundant `;'.
17686 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17688 * regcache.c (set_register_cache): Invalidate regcaches before
17689 changing the register cache layout.
17690 (regcache_invalidate_one): Allow a NULL regcache.
17691 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17692 regcaches before changing the register cache layout or the target
17695 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17697 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17698 variable warning on Linux/x86-64.
17700 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17702 GDBserver disconnected tracing support.
17704 * linux-low.c (linux_remove_process): Delete.
17705 (add_lwp): Don't set last_resume_kind here.
17706 (linux_kill): Use `mourn'.
17707 (linux_detach): Use `thread_db_detach', and `mourn'.
17708 (linux_mourn): New.
17709 (linux_attach_lwp_1): Adjust comment.
17710 (linux_attach): last_resume_kind moved the thread_info; adjust.
17711 (status_pending_p_callback): Adjust.
17712 (linux_wait_for_event_1): Adjust.
17713 (count_events_callback, select_singlestep_lwp_callback)
17714 (select_event_lwp_callback, cancel_breakpoints_callback)
17715 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17716 (proceed_one_lwp): Adjust.
17717 (linux_async): Add debug output.
17718 (linux_thread_stopped): New.
17719 (linux_pause_all): New.
17720 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17722 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17723 (thread_db_free): Delete declaration.
17724 (thread_db_detach, thread_db_mourn): Declare.
17725 * thread-db.c (thread_db_init): Use thread_db_mourn.
17726 (thread_db_free): Delete, split in two.
17727 (disable_thread_event_reporting): New.
17728 (thread_db_detach): New.
17729 (thread_db_mourn): New.
17731 * server.h (struct thread_info) <last_resume_kind>: New field.
17732 <attached>: Add comment.
17733 <gdb_detached>: New field.
17734 (handler_func): Change return type to int.
17735 (handle_serial_event, handle_target_event): Ditto.
17736 (gdb_connected): Declare.
17738 (disconnected_tracing): Declare.
17739 (stop_tracing): Declare.
17741 * server.c (handle_query) <qSupported>: Report support for
17742 disconnected tracing.
17743 (queue_stop_reply_callback): Account for running threads.
17744 (gdb_wants_thread_stopped): New.
17745 (gdb_wants_all_threads_stopped): New.
17746 (gdb_reattached_process): New.
17747 (handle_status): Clear the `gdb_detached' flag of all processes.
17748 In all-stop, stop all threads.
17749 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17750 (process_serial_event): If the remote connection breaks, or if an
17751 exit was forced with "monitor exit", force an event loop exit.
17752 Handle disconnected tracing on detach.
17753 (handle_serial_event): Adjust.
17754 (handle_target_event): If GDB isn't connected, forward events back
17755 to the inferior, unless the last process exited, in which case,
17756 exit gdbserver. Adjust interface.
17758 * remote-utils.c (remote_open): Don't block in accept. Instead
17759 register an event loop source on the listen socket file
17760 descriptor. Refactor bits into ...
17761 (listen_desc): ... this new global.
17762 (gdb_connected): ... this new function.
17763 (enable_async_notification): ... this new function.
17764 (handle_accept_event): ... this new function.
17765 (remote_close): Clear remote_desc.
17767 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17769 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17771 (mourn_inferior): Define.
17772 (target_process_qsupported): Avoid the dangling else problem.
17773 (thread_stopped): Define.
17774 (pause_all): Define.
17775 (target_waitstatus_to_string): Declare.
17776 * target.c (target_waitstatus_to_string): New.
17778 * tracepoint.c (tracing): Make extern.
17779 (disconnected_tracing): New.
17780 (stop_tracing): Make extern. Handle tracing stops due to GDB
17782 (cmd_qtdisconnected): New.
17783 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17784 (handle_tracepoint_general_set): Handle QTDisconnected.
17786 * event-loop.c (event_handler_func): Change return type to int.
17787 (process_event): Bail out if the event handler wants the event
17789 (handle_file_event): Ditto.
17790 (start_event_loop): Bail out if the event handler wants the event
17793 * nto-low.c (nto_target_ops): Adjust.
17794 * spu-low.c (spu_wait): Don't remove the process here.
17795 (spu_target_ops): Adjust.
17796 * win32-low.c (win32_wait): Don't remove the process here.
17797 (win32_target_ops): Adjust.
17799 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17801 * regcache.c (realloc_register_cache): Invalidate inferior's
17802 regcache before recreating it.
17804 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17806 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17808 2010-04-09 Stan Shebs <stan@codesourcery.com>
17809 Pedro Alves <pedro@codesourcery.com>
17811 * server.h (LONGEST): New.
17812 (struct thread_info) <while_stepping>: New field.
17813 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17815 (initialize_tracepoint, handle_tracepoint_general_set)
17816 (handle_tracepoint_query, tracepoint_finished_step)
17817 (tracepoint_was_hit, release_while_stepping_state_list):
17818 (current_traceframe): Declare.
17819 * server.c (handle_general_set): Handle tracepoint packets.
17820 (read_memory): New.
17821 (write_memory): New.
17822 (handle_search_memory_1): Use read_memory.
17823 (handle_query): Report support for conditional tracepoints, trace
17824 state variables, and tracepoint sources. Handle tracepoint
17826 (main): Initialize the tracepoints module.
17827 (process_serial_event): Handle traceframe reads/writes.
17829 * linux-low.c (handle_tracepoints): New.
17830 (linux_wait_1): Call it.
17831 (linux_resume_one_lwp): Handle while-stepping.
17832 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17833 (linux_target_ops): Install them.
17834 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17836 * linux-x86-low.c (x86_supports_tracepoints): New.
17837 (the_low_target). Install it.
17839 * mem-break.h (delete_breakpoint): Declare.
17840 * mem-break.c (delete_breakpoint): Make external.
17842 * target.h (struct target_ops): Add `supports_tracepoints',
17843 `read_pc', and `write_pc' fields.
17844 (target_supports_tracepoints): Define.
17845 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17848 * regcache.h (struct regcache) <registers_owned>: New field.
17849 (init_register_cache, regcache_cpy): Declare.
17850 (regcache_read_pc, regcache_write_pc): Declare.
17851 (register_cache_size): Declare.
17852 (supply_regblock): Declare.
17853 * regcache.c (init_register_cache): New.
17854 (new_register_cache): Use it.
17855 (regcache_cpy): New.
17856 (register_cache_size): New.
17857 (supply_regblock): New.
17858 (regcache_read_pc, regcache_write_pc): New.
17860 * tracepoint.c: New.
17862 * Makefile.in (OBS): Add tracepoint.o.
17863 (tracepoint.o): New rule.
17865 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17867 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17869 (i386-mmx.c): Likewise.
17870 (i386-mmx-linux.o): Likewise.
17871 (i386-mmx-linux.c): Likewise.
17873 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17874 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17875 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17876 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17878 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17879 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17880 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17882 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17884 * Makefile.in (clean): Updated.
17886 (i386-avx.c): Likewise.
17887 (i386-avx-linux.o): Likewise.
17888 (i386-avx-linux.c): Likewise.
17889 (amd64-avx.o): Likewise.
17890 (amd64-avx.c): Likewise.
17891 (amd64-avx-linux.o): Likewise.
17892 (amd64-avx-linux.c): Likewise.
17894 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17895 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17896 (srv_amd64_regobj): Add amd64-avx.o.
17897 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17898 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17899 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17900 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17901 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17902 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17903 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17905 * i387-fp.c: Include "i386-xstate.h".
17907 (i387_cache_to_xsave): Likewise.
17908 (i387_xsave_to_cache): Likewise.
17909 (x86_xcr0): Likewise.
17911 * i387-fp.h (i387_cache_to_xsave): Likewise.
17912 (i387_xsave_to_cache): Likewise.
17913 (x86_xcr0): Likewise.
17915 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17916 * linux-crisv32-low.c (target_regsets): Likewise.
17917 * linux-m68k-low.c (target_regsets): Likewise.
17918 * linux-mips-low.c (target_regsets): Likewise.
17919 * linux-ppc-low.c (target_regsets): Likewise.
17920 * linux-s390-low.c (target_regsets): Likewise.
17921 * linux-sh-low.c (target_regsets): Likewise.
17922 * linux-sparc-low.c (target_regsets): Likewise.
17923 * linux-xtensa-low.c (target_regsets): Likewise.
17925 * linux-low.c: Include <sys/uio.h>.
17926 (regsets_fetch_inferior_registers): Support nt_type.
17927 (regsets_store_inferior_registers): Likewise.
17928 (linux_process_qsupported): New.
17929 (linux_target_ops): Add linux_process_qsupported.
17931 * linux-low.h (regset_info): Add nt_type.
17932 (linux_target_ops): Add process_qsupported.
17934 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17936 (init_registers_i386_avx_linux): New.
17937 (init_registers_amd64_avx_linux): Likewise.
17938 (xmltarget_i386_linux_no_xml): Likewise.
17939 (xmltarget_amd64_linux_no_xml): Likewise.
17940 (PTRACE_GETREGSET): Likewise.
17941 (PTRACE_SETREGSET): Likewise.
17942 (x86_fill_xstateregset): Likewise.
17943 (x86_store_xstateregset): Likewise.
17944 (use_xml): Likewise.
17945 (x86_linux_update_xmltarget): Likewise.
17946 (x86_linux_process_qsupported): Likewise.
17947 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17948 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17949 init_registers_i386_linux here. Call
17950 x86_linux_update_xmltarget.
17951 (the_low_target): Add x86_linux_process_qsupported.
17953 * server.c (handle_query): Call target_process_qsupported.
17955 * target.h (target_ops): Add process_qsupported.
17956 (target_process_qsupported): New.
17958 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17960 * inferiors.c (add_thread): Set last_status kind to
17961 TARGET_WAITKIND_IGNORE.
17962 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17963 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17964 (linux_wait_1): Move `thread' local definition to block that uses
17965 it. Don't NULL initialize `event_child'.
17966 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17967 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17968 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17970 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17972 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17973 an extended waitstatus, or by a watchpoint.
17974 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17975 thread was stepping or has been stopped by a watchpoint.
17977 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17979 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17980 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17981 of another, then delete the previous, and validate all
17983 (validate_inserted_breakpoint): New.
17984 (delete_disabled_breakpoints): New.
17985 (validate_breakpoints): New.
17986 (check_mem_read): Validate breakpoints before trusting their
17987 shadow. Delete disabled breakpoints.
17988 (check_mem_write): Validate breakpoints before trusting they
17989 should be inserted. Delete disabled breakpoints.
17990 * mem-break.h (validate_breakpoints):
17991 * server.c (handle_query): Validate breakpoints when we see a
17994 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17996 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17997 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17998 if we could tell there's a GDB breakpoint at stop_pc.
17999 (need_step_over_p): Don't do a step over if we find a GDB
18000 breakpoint at the resume PC.
18002 * mem-break.c (struct raw_breakpoint): New.
18003 (enum bkpt_type): New type `gdb_breakpoint'.
18004 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18005 fields. New field `raw'.
18006 (find_raw_breakpoint_at): New.
18007 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18008 breakpoint instead.
18009 (set_breakpoint_at): Adjust.
18010 (delete_raw_breakpoint): New.
18011 (release_breakpoint): New.
18012 (delete_breakpoint): Rename to...
18013 (delete_breakpoint_1): ... this. Add proc parameter. Use
18014 release_breakpoint. Return ENOENT.
18015 (delete_breakpoint): Reimplement.
18016 (find_breakpoint_at): Delete.
18017 (find_gdb_breakpoint_at): New.
18018 (delete_breakpoint_at): Delete.
18019 (set_gdb_breakpoint_at): New.
18020 (delete_gdb_breakpoint_at): New.
18021 (gdb_breakpoint_here): New.
18022 (set_reinsert_breakpoint): Use release_breakpoint.
18023 (uninsert_breakpoint): Rename to ...
18024 (uninsert_raw_breakpoint): ... this.
18025 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18026 (reinsert_raw_breakpoint): Change parameter type to
18028 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18030 (check_breakpoints): Adjust. Use release_breakpoint.
18031 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18032 (breakpoint_inserted_here): Ditto.
18033 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18034 Don't trust the breakpoint's shadow if it is not inserted.
18035 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18036 (delete_all_breakpoints): Adjust.
18037 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18038 use delete_breakpoint_1.
18040 * mem-break.h (breakpoints_supported): Delete declaration.
18041 (set_gdb_breakpoint_at): Declare.
18042 (gdb_breakpoint_here): Declare.
18043 (delete_breakpoint_at): Delete.
18044 (delete_gdb_breakpoint_at): Declare.
18046 * server.h (struct raw_breakpoint): Forward declare.
18047 (struct process_info): New field `raw_breakpoints'.
18049 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18052 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18054 * linux-low.c (status_pending_p_callback): Fix comment.
18055 (linux_wait_for_event_1): Move most of the internal breakpoint
18056 handling from here...
18057 (linux_wait_1): ... to here.
18058 (count_events_callback): New.
18059 (select_singlestep_lwp_callback): New.
18060 (select_event_lwp_callback): New.
18061 (cancel_breakpoints_callback): New.
18062 (select_event_lwp): New.
18063 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18064 priority to all LWPs that have had events that should be reported
18065 to the client. Cancel breakpoints when about to reporting the
18066 event to the client, not while stopping lwps. No longer cancel
18067 finished single-steps here.
18068 (cancel_finished_single_step): Delete.
18069 (cancel_finished_single_steps): Delete.
18071 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18073 * mem-break.c (enum bkpt_type): New.
18074 (struct breakpoint): New field `type'.
18075 (set_breakpoint_at): Change return type to struct breakpoint
18076 pointer. Set type to `other_breakpoint' by default.
18077 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18078 in the breakpoint list.
18079 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18080 (reinsert_breakpoint): Rename to ...
18081 (reinsert_raw_breakpoint): ... this.
18082 (reinsert_breakpoints_at): Adjust.
18083 * mem-break.h (struct breakpoint): Declare.
18084 (set_breakpoint_at): Change return type to struct breakpoint
18087 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18089 * server.c (handle_query): Assign, not compare.
18091 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18093 Teach linux gdbserver to step-over-breakpoints.
18095 * linux-low.c (can_hardware_single_step): New.
18096 (supports_breakpoints): New.
18097 (handle_extended_wait): If stopping threads, read the stop pc of
18098 the new cloned LWP.
18100 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18101 low target doesn't support retrieving the PC.
18102 (add_lwp): Set last_resume_kind to resume_continue.
18103 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18104 (linux_attach): Don't clear stop_expected. Set the lwp's
18105 last_resume_kind to resume_stop.
18106 (linux_detach_one_lwp): Don't check for removed breakpoints.
18107 (check_removed_breakpoint): Delete.
18108 (status_pending_p): Rename to ...
18109 (status_pending_p_callback): ... this. Don't check for removed
18110 breakpoints. Don't consider threads that are stopped from GDB's
18112 (linux_wait_for_lwp): Always read the stop_pc here.
18113 (cancel_breakpoint): New.
18114 (step_over_bkpt): New global.
18115 (linux_wait_for_event_1): Implement stepping over breakpoints.
18116 (gdb_wants_lwp_stopped): New.
18117 (gdb_wants_all_stopped): New.
18118 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18119 single-step traps here. Store the thread's last reported target
18121 (send_sigstop): Don't clear stop_expected. Always set it,
18123 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18124 (cancel_finished_single_step): New.
18125 (cancel_finished_single_steps): New.
18126 (wait_for_sigstop): Don't cancel finished single-step traps here.
18127 (linux_resume_one_lwp): Don't check for removed breakpoints.
18128 Don't set `step' on non-hardware step archs.
18129 (linux_set_resume_request): Ignore resume_stop requests if already
18130 stopping or stopped. Set the lwp's last_resume_kind.
18131 (resume_status_pending_p): Don't check for removed breakpoints.
18132 (need_step_over_p): New.
18133 (start_step_over): New.
18134 (finish_step_over): New.
18135 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18136 requests. Clear the thread's last reported target waitstatus.
18137 Don't use the `suspended' flag. Don't consider pending breakpoints.
18138 (linux_resume): Start a step-over if necessary.
18139 (proceed_one_lwp): New.
18140 (proceed_all_lwps): New.
18141 (unstop_all_lwps): New.
18142 * linux-low.h (struct lwp_info): Rewrite comment for the
18143 `suspended' flag. Add the `stop_pc' field. Delete the
18144 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18145 Add `'last_resume_kind' and `need_step_over' fields.
18146 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18147 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18148 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18149 (set_raw_breakpoint_at): New.
18150 (set_breakpoint_at): Rewrite to use it.
18151 (reinsert_breakpoint_handler): Delete.
18152 (set_reinsert_breakpoint): New.
18153 (reinsert_breakpoint_by_bp): Delete.
18154 (delete_reinsert_breakpoints): New.
18155 (uninsert_breakpoint): Rewrite.
18156 (uninsert_breakpoints_at): New.
18157 (reinsert_breakpoint): Rewrite.
18158 (reinsert_breakpoints_at): New.
18159 (check_breakpoints): Rewrite.
18160 (breakpoint_here): New.
18161 (breakpoint_inserted_here): New.
18162 (check_mem_read): Adjust.
18163 * mem-break.h (breakpoints_supported, breakpoint_here)
18164 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18165 (reinsert_breakpoint_by_bp): Delete declaration.
18166 (delete_reinsert_breakpoints): Declare.
18167 (reinsert_breakpoint): Delete declaration.
18168 (reinsert_breakpoints_at): Declare.
18169 (uninsert_breakpoint): Delete declaration.
18170 (uninsert_breakpoints_at): Declare.
18171 (check_breakpoints): Adjust prototype.
18172 * server.h: Adjust include order.
18173 (struct thread_info): Declare here. Add a `last_status' field.
18175 2010-03-23 Michael Snyder <msnyder@vmware.com>
18177 * server.c (crc32): New function.
18178 (handle_query): Add handling for 'qCRC:' request.
18180 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18182 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18183 lwp had been stopped by a watchpoint.
18185 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18187 * server.h (internal_error): Declare.
18188 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18189 * utils.c (internal_error): New function.
18191 2010-03-15 Andreas Schwab <schwab@redhat.com>
18193 * configure.srv: Fix typo setting srv_regobj.
18195 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18197 * linux-low.c (fetch_register): Avoid passing a non string literal
18199 (usr_store_inferior_registers): Ditto.
18201 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18203 * linux-low.c (linux_write_memory): Bail out early if peeking
18206 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18208 * linux-low.h (struct lwp_info): New fields
18209 `stopped_by_watchpoint' and `stopped_data_address'.
18210 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18211 here, and cache them in the lwp object.
18212 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18214 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18216 (linux_stopped_by_watchpoint): Rewrite.
18217 (linux_stopped_data_address): Rewrite.
18219 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18221 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18222 switching the current inferior, not before.
18224 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18226 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18227 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18228 i386-linux.c and amd64-linux.c.
18229 (reg-i386.o): Removed.
18230 (reg-i386.c): Likewise.
18231 (reg-i386-linux.o): Likewise.
18232 (reg-i386-linux.c): Likewise.
18233 (reg-x86-64.o): Likewise.
18234 (reg-x86-64.c): Likewise.
18235 (reg-x86-64-linux.o): Likewise.
18236 (reg-x86-64-linux.c): Likewise.
18238 (i386.c): Likewise.
18239 (i386-linux.o): Likewise.
18240 (i386-linux.c): Likewise.
18241 (amd64.o): Likewise.
18242 (amd64.c): Likewise.
18243 (amd64-linux.o): Likewise.
18244 (amd64-linux.c): Likewise.
18246 * configure.srv (srv_i386_regobj): New.
18247 (srv_i386_linux_regobj): Likewise.
18248 (srv_amd64_regobj): Likewise.
18249 (srv_amd64_linux_regobj): Likewise.
18250 (srv_i386_32bit_xmlfiles): Likewise.
18251 (srv_i386_64bit_xmlfiles): Likewise.
18252 (srv_i386_xmlfiles): Likewise.
18253 (srv_amd64_xmlfiles): Likewise.
18254 (srv_i386_linux_xmlfiles): Likewise.
18255 (srv_amd64_linux_xmlfiles): Likewise.
18256 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18257 srv_xmlfiles to $srv_i386_xmlfiles.
18258 (i[34567]86-*-mingw32ce*): Likewise.
18259 (i[34567]86-*-mingw*): Likewise.
18260 (i[34567]86-*-nto*): Likewise.
18261 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18262 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18263 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18264 (x86_64-*-linux*): Likewise.
18266 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18267 (init_registers_amd64_linux): New.
18268 (x86_arch_setup): Replace init_registers_x86_64_linux with
18269 init_registers_amd64_linux.
18271 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18273 * configure.ac: Check for libdl. If it is not available link against
18274 static libthread_db.
18275 * configure: Regenerate.
18277 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18281 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18282 handing a read watchpoint.
18283 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18285 2010-02-12 Doug Evans <dje@google.com>
18287 * linux-low.c (linux_supports_tracefork_flag): Document.
18288 (linux_look_up_symbols): Add comment.
18290 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18292 * regcache.c (supply_register): Clear regcache if buf is NULL.
18294 2010-02-02 Nicolas Roche <roche@sourceware.org>
18295 Joel Brobecker <brobecker@adacore.com>
18297 * inferiors.c (find_inferior): Add function documentation.
18298 (unloaded_dll): Handle the case where the unloaded dll has not
18299 been previously registered in the dll list.
18301 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18303 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18304 (thumb2_breakpoint): New.
18305 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18307 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18309 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18310 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18313 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18315 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18317 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18319 * linux-s390-low.c (s390_collect_ptrace_register)
18320 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18322 2010-01-21 Doug Evans <dje@google.com>
18324 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18325 (PTRACE_ARG4_TYPE): New macro.
18326 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18327 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18328 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18329 (usr_store_inferior_registers): Ditto.
18330 (linux_read_memory, linux_write_memory): Ditto.
18331 (linux_test_for_tracefork): Ditto.
18333 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18334 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18336 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18338 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18341 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18343 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18344 prototype to take a regcache. Adjust.
18346 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18348 * regcache.h (struct thread_info): Forward declare.
18349 (struct regcache): New.
18350 (new_register_cache): Adjust prototype.
18351 (get_thread_regcache): Declare.
18352 (free_register_cache): Adjust prototype.
18353 (registers_to_string, registers_from_string): Ditto.
18354 (supply_register, supply_register_by_name, collect_register)
18355 (collect_register_as_string, collect_register_by_name): Ditto.
18356 * regcache.c (struct inferior_regcache_data): Delete.
18357 (get_regcache): Rename to ...
18358 (get_thread_regcache): ... this. Adjust. Switch inferior before
18359 fetching registers.
18360 (regcache_invalidate_one): Adjust.
18361 (regcache_invalidate): Fix prototype.
18362 (new_register_cache): Return the new register cache.
18363 (free_register_cache): Change prototype.
18364 (realloc_register_cache): Adjust.
18365 (registers_to_string): Change prototype to take a regcache. Adjust.
18366 (registers_from_string): Ditto.
18367 (register_data): Ditto.
18368 (supply_register): Ditto.
18369 (supply_register_by_name): Ditto.
18370 (collect_register): Ditto.
18371 (collect_register_as_string): Ditto.
18372 (collect_register_by_name): Ditto.
18373 * server.c (process_serial_event): Adjust.
18374 * linux-low.h (regset_fill_func, regset_store_func): Change
18376 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18378 * linux-low.c (get_stop_pc): Adjust.
18379 (check_removed_breakpoint): Adjust.
18380 (linux_wait_for_event): Adjust.
18381 (linux_resume_one_lwp): Adjust.
18382 (fetch_register): Add regcache parameter. Adjust.
18383 (usr_store_inferior_registers): Ditto.
18384 (regsets_fetch_inferior_registers): Ditto.
18385 (regsets_store_inferior_registers): Ditto.
18386 (linux_fetch_registers, linux_store_registers): Ditto.
18387 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18389 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18391 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18392 prototype to take a regcache.
18393 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18394 * remote-utils.c (convert_ascii_to_int, outreg)
18395 (prepare_resume_reply): Change prototype to take a regcache.
18397 * target.h (struct target_ops) <fetch_registers, store_registers>:
18398 Change prototype to take a regcache.
18399 (fetch_inferior_registers, store_inferior_registers): Change
18400 prototype to take a regcache. Adjust.
18401 * proc-service.c (ps_lgetregs): Adjust.
18402 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18403 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18404 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18405 take a regcache. Adjust.
18406 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18407 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18408 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18409 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18410 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18411 (cris_cannot_fetch_register):
18412 (cris_breakpoint_at): Change prototype to take a regcache.
18414 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18415 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18416 to take a regcache. Adjust.
18417 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18419 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18420 take a regcache. Adjust.
18421 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18422 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18423 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18424 * linux-mips-low.c (mips_get_pc):
18425 (mips_set_pc): Change prototype to take a regcache. Adjust.
18426 (mips_reinsert_addr): Adjust.
18427 (mips_collect_register): Change prototype to take a regcache.
18429 (mips_supply_register):
18430 (mips_collect_register_32bit, mips_supply_register_32bit)
18431 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18432 (mips_store_fpregset): Ditto.
18433 * linux-ppc-low.c (ppc_supply_ptrace_register)
18434 (ppc_supply_ptrace_register): Ditto.
18435 (parse_spufs_run): Adjust.
18436 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18437 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18438 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18439 take a regcache. Adjust.
18440 * linux-s390-low.c (s390_collect_ptrace_register)
18441 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18442 (s390_set_pc): Change prototype to take a regcache. Adjust.
18443 (s390_arch_setup): Adjust.
18444 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18445 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18446 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18447 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18448 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18450 (sparc_breakpoint_at): Adjust.
18451 * linux-xtensa-low.c (xtensa_fill_gregset):
18452 (xtensa_store_gregset):
18453 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18454 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18455 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18456 prototype to take a regcache. Adjust.
18457 * win32-arm-low.c (arm_fetch_inferior_register)
18458 (arm_store_inferior_register): Change prototype to take a
18460 * win32-i386-low.c (i386_fetch_inferior_register)
18461 (i386_store_inferior_register): Change prototype to take a
18463 * win32-low.c (child_fetch_inferior_registers)
18464 (child_store_inferior_registers): Change prototype to take a
18466 (win32_wait): Adjust.
18467 (win32_fetch_inferior_registers): Change prototype to take a
18469 (win32_store_inferior_registers): Adjust.
18470 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18471 store_inferior_register>: Change prototype to take a regcache.
18473 2010-01-20 Doug Evans <dje@google.com>
18475 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18477 (linux_wait_for_event1, linux_init_signals): Ditto.
18478 (W_STOPCODE): Provide definition if missing.
18480 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18482 * linux-low.c (linux_core_of_thread): New.
18483 (compare_ints, show_process, list_threads): New.
18484 (linux_qxfer_osdata): Report threads and cores.
18485 (linux_target_op): Register linux_core_of_thread.
18486 * remote-utils.c (prepare_resume_reply): Report the core.
18487 (buffer_xml_printf): Support %d specifier.
18488 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18490 (handle_query): Handle qXfer:threads. Announce availability
18492 * target.h (struct target_ops): New field core_of_thread.
18494 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18496 * Makefile.in (clean): Remove new generated files.
18497 (reg-s390.o, reg-s390.c): Remove rules.
18498 (reg-s390x.o, reg-s390x.c): Likewise.
18499 (s390-linux32.o, s390-linux32.c): Add rules.
18500 (s390-linux64.o, s390-linux64.c): Likewise.
18501 (s390x-linux64.o, s390x-linux64.c): Likewise.
18502 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18503 * linux-s390-low.c: Include <elf.h>.
18504 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18505 (init_registers_s390): Remove prototype.
18506 (init_registers_s390x): Likewise.
18507 (init_registers_s390_linux32): Add prototype.
18508 (init_registers_s390_linux64): Likewise.
18509 (init_registers_s390x_linux64): Likewise.
18510 (s390_num_regs_3264): New define.
18511 (s390_regmap_3264): New global variable.
18512 (s390_cannot_fetch_register): Remove obsolete check.
18513 (s390_cannot_store_register): Likewise.
18514 (s390_collect_ptrace_register): Handle upper/lower register halves.
18515 (s390_supply_ptrace_register): Likewise.
18516 (s390_fill_gregset): Update to register number changes.
18517 (s390_get_hwcap): New routine.
18518 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18519 Install appropriate regmap and register set.
18521 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18523 * server.c (gdbserver_version): Update copyright year to 2010.
18524 * gdbreplay.c (gdbreplay_version): Likewise.
18526 2009-12-28 Doug Evans <dje@google.com>
18528 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18529 elf/external.h. Include <elf.h> instead but only if necessary.
18531 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18533 * linux-low.c (linux_remove_process): Remove `detaching'
18534 parameter. Don't release/detach from thread_db here.
18535 (linux_kill): Release/detach from thread_db here, ...
18536 (linux_detach): ... and here, before actually detaching.
18537 (linux_wait_1): ... and here, when a process exits.
18538 * thread-db.c (any_thread_of): New.
18539 (thread_db_free): Switch the current inferior to a thread of the
18542 2009-12-21 Doug Evans <dje@google.com>
18544 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18546 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18547 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18548 warning ifndef __NR_tkill. Move setting of errno there too.
18549 Delete unnecessary resetting of errno after syscall.
18550 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18552 * configure.ac: Check for dladdr.
18553 * config.in: Regenerate.
18554 * configure: Regenerate.
18555 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18556 (try_thread_db_load): Update.
18558 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18560 2009-12-18 Doug Evans <dje@google.com>
18562 * event-loop.c: Include unistd.h if it exists.
18564 * linux-low.c (my_waitpid): Move definition away from being in
18565 between linux_tracefork_child/linux_test_for_tracefork.
18567 * gdb_proc_service.h (psaddr_t): Fix type.
18568 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18569 signature to match glibc.
18571 2009-12-16 Doug Evans <dje@google.com>
18573 * linux-low.c (linux_read_memory): Fix argument to read.
18575 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18577 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18578 events, don't leave current_inferior pointing at null.
18580 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18582 * win32-low.c (LOG): Delete.
18583 (OUTMSG): Output to stderr.
18584 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18585 on compile time LOG macro.
18586 (win32_wait): Fix debug output.
18588 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18590 * win32-low.c (win32_add_one_solib): If the dll name is
18591 "ntdll.dll", prepend the system directory to the dll path.
18593 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18595 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18597 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18598 Vladimir Prus <vladimir@codesourcery.com>
18600 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18601 * configure.ac: Check for __mcoldfire__ and set
18602 gdb_cv_m68k_is_coldfire.
18603 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18604 reg-cf.o and reg-m68k.o.
18605 * configure: Regenerated.
18607 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18609 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18610 Pass it to thread_db_free.
18611 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18612 proper `detaching' argument to linux_remove_process.
18613 * linux-low.h (thread_db_free): Add `detaching' parameter.
18614 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18616 (thread_db_free): Add `detaching' parameter. Only
18617 call td_ta_clear_event if detaching from process.
18619 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18621 * thread-db.c (thread_db_free): Fix typo.
18623 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18626 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18628 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18630 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18631 with an i686 compiler.
18632 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18634 * configure: Rebuilt.
18636 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18640 * server.c (handle_search_memory_1): Correct read_addr initialization
18641 in loop for searching subsequent chunks.
18643 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18645 * configure.ac: New --with-libthread-db option.
18646 * thread-db.c: Allow direct dependence on libthread_db.
18647 (thread_db_free): Adjust.
18648 * config.in: Regenerate.
18649 * configure: Likewise.
18651 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18654 * thread-db.c (attach_thread): New function.
18655 (maybe_attach_thread): Return success/failure.
18656 (find_new_threads_callback): Adjust.
18657 (thread_db_find_new_threads): Loop until no new threads.
18659 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18661 * proc-service.c (ps_lgetregs): Formatting.
18663 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18665 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18666 * configure.ac: Adjust.
18667 * linux-low.h (struct process_info_private): Move members to struct
18669 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18670 * linux-low.c (linux_remove_process): Adjust.
18671 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18672 * server.c (handle_query): Move code ...
18673 (handle_monitor_command): ... here. New function.
18674 * target.h (struct target_ops): New member.
18675 * thread-db.c (struct thread_db): New.
18676 (libthread_db_search_path): New variable.
18677 (thread_db_create_event, thread_db_enable_reporting)
18678 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18679 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18680 (try_thread_db_load_1, dladdr_to_soname): New functions.
18681 (try_thread_db_load, thread_db_load_search): New functions.
18682 (thread_db_init): Search for libthread_db.
18683 (thread_db_free): New function.
18684 (thread_db_handle_monitor_command): Likewise.
18685 * config.in: Regenerate.
18686 * configure: Regenerate.
18688 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18690 * spu-low.c (spu_kill): Wait for inferior to terminate.
18691 Call clear_inferiors.
18692 (spu_detach): Call clear_inferiors.
18694 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18696 * aclocal.m4: Regenerate.
18697 * config.in: Likewise.
18698 * configure: Likewise.
18700 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18702 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18703 (parse_spufs_run): New function.
18704 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18705 (ppc_breakpoint_at): Handle SPU breakpoints.
18707 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18709 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18710 (SPUFS_MAGIC): Define.
18711 (spu_enumerate_spu_ids): New function.
18712 (linux_qxfer_spu): New function.
18713 (linux_target_ops): Install linux_qxfer_spu.
18715 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18717 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18718 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18719 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18720 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18721 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18722 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18723 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18724 (init_registers_powerpc_cell32l): Add prototype.
18725 (init_registers_powerpc_cell64l): Likewise.
18726 (ppc_arch_setup): Detect Cell/B.E. architecture.
18728 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18730 * Makefile.in (datarootdir): New variable.
18732 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18734 * linux-low.c (linux_write_memory): Update debugging output.
18735 * Makefile.in (clean): Add new descriptions.
18736 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18737 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18738 * configure.srv: Add new files for arm*-*-linux*.
18739 * linux-arm-low.c: Add new declarations.
18740 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18741 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18742 (HWCAP_VFPv3D16): New.
18743 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18744 instead of __IWMMXT__.
18745 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18746 (arm_arch_setup): New.
18747 (target_regsets): Remove #ifdef. Add VFP regset.
18748 (the_low_target): Use arm_arch_setup.
18750 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18752 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18753 the main thread again.
18755 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18757 Adding Neutrino gdbserver.
18758 * configure: Regenerated.
18759 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18760 * configure.srv (i[34567]86-*-nto*): New target.
18761 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18762 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18763 (nto_comctrl) [__QNX__]: New function.
18764 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18766 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18768 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18771 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18772 Pedro Alves <pedro@codesourcery.com>
18774 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18775 don't support CONTEXT_EXTENDED_REGISTERS.
18776 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18777 (the_low_target): Install them.
18778 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18779 failing with ERROR_PIPE_NOT_CONNECTED.
18781 2009-06-30 Doug Evans <dje@google.com>
18782 Pierre Muller <muller@ics.u-strasbg.fr>
18784 Add h/w watchpoint support to x86-linux, win32-i386.
18785 * Makefile.in (SFILES): Add i386-low.c
18786 (i386_low_h): Define.
18787 (i386-low.o): Add dependencies.
18788 (linux-x86-low.o): Add i386-low.h dependency.
18789 (win32-i386-low.o): Ditto.
18790 * i386-low.c: New file.
18791 * i386-low.h: New file.
18792 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18793 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18794 * linux-low.c (linux_add_process): Initialize arch_private.
18795 (linux_remove_process): Free arch_private.
18796 (add_lwp): Initialize arch_private.
18797 (delete_lwp): Free arch_private.
18798 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18800 * linux-low.h (process_info_private): New member arch_private.
18801 (lwp_info): New member arch_private.
18802 (linux_target_ops): New members new_process, new_thread,
18804 (ptid_of): New macro.
18805 * linux-x86-low.c: Include stddef.h, i386-low.h.
18806 (arch_process_info): New struct.
18807 (arch_lwp_info): New struct.
18808 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18809 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18810 (i386_dr_low_get_status): New function.
18811 (x86_insert_point, x86_remove_point): New functions.
18812 (x86_stopped_by_watchpoint): New function.
18813 (x86_stopped_data_address): New function.
18814 (x86_linux_new_process, x86_linux_new_thread): New functions.
18815 (x86_linux_prepare_to_resume): New function.
18816 (the_low_target): Add entries for insert_point, remove_point,
18817 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18819 * server.c (debug_hw_points): New global.
18820 (monitor_show_help): Document set debug-hw-points.
18821 (handle_query): Process "set debug-hw-points".
18822 * server.h (debug_hw_points): Declare.
18823 (paddress): Declare.
18824 * utils.c (NUMCELLS, CELLSIZE): New macros.
18825 (get_sell, xsnprintf, paddress): New functions.
18826 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18827 remove_point, stopped_by_watchpoint, stopped_data_address.
18828 * win32-i386-low.c: Include i386-low.h.
18829 (debug_reg_state): Replaces dr.
18830 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18831 (i386_dr_low_get_status): New function.
18832 (i386_insert_point, i386_remove_point): New functions.
18833 (i386_stopped_by_watchpoint): New function.
18834 (i386_stopped_data_address): New function.
18835 (i386_initial_stuff): Update.
18836 (get_thread_context,set_thread_context,i386_thread_added): Update.
18837 (the_low_target): Add entries for insert_point,
18838 remove_point, stopped_by_watchpoint, stopped_data_address.
18839 * win32-low.c (win32_insert_watchpoint): New function.
18840 (win32_remove_watchpoint): New function.
18841 (win32_stopped_by_watchpoint): New function.
18842 (win32_stopped_data_address): New function.
18843 (win32_target_ops): Add entries for insert_watchpoint,
18844 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18845 * win32-low.h (win32_target_ops): New members insert_point,
18846 remove_point, stopped_by_watchpoint, stopped_data_address.
18848 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18850 * server.c (process_serial_event): Re-return unsupported, not
18851 error, if the type isn't recognized. Re-allow supporting only
18852 insert or remove packets. Also call require_running for
18853 breakpoints. Add missing break statement to default case. Tidy.
18854 * target.h (struct target_ops): Rename insert_watchpoint to
18855 insert_point, and remove_watchpoint to remove_point.
18857 * linux-low.h (struct linux_target_ops): Likewise.
18858 * linux-low.c (linux_insert_watchpoint): Rename to ...
18859 (linux_insert_point): ... this. Adjust.
18860 (linux_remove_watchpoint): Rename to ...
18861 (linux_remove_point): ... this. Adjust.
18862 (linux_target_ops): Adjust.
18863 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18864 (cris_insert_point): ... this.
18865 (cris_remove_watchpoint): Rename to ...
18866 (cris_remove_point): ... this.
18867 (the_low_target): Adjust.
18869 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18871 * server.c (handle_v_kill): Pass signal_pid to
18872 kill_inferior if multi_process is zero.
18874 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18876 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18877 * target.h (target_ops): Comment for *_watchpoint to make it clear
18878 the functions can get types '0' and '1'.
18880 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18882 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18883 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18884 * regcache.c (get_regcache): Likewise.
18885 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18886 * win32-low.c (child_fetch_inferior_registers): Remove check for
18889 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18890 Pedro Alves <pedro@codesourcery.com>
18892 * target.h (struct target_ops) <supports_multi_process>: New
18894 (target_supports_multi_process): New.
18895 * server.c (handle_query): Even if GDB reports support, only
18896 enable multi-process if the target also supports it. Report
18897 multi-process support only if the target backend supports it.
18898 * linux-low.c (linux_supports_multi_process): New function.
18899 (linux_target_ops): Install it as target_supports_multi_process
18902 2009-05-24 Doug Evans <dje@google.com>
18904 Global renaming of find_thread_pid to find_thread_ptid.
18905 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18906 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18907 All callers updated.
18909 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18910 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18913 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18914 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18915 (linux_resume_one_lwp): Ditto.
18917 2009-05-23 Doug Evans <dje@google.com>
18919 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18920 from struct inferior_list_entry * to struct lwp_info *.
18921 All callers updated.
18923 2009-05-13 Doug Evans <dje@google.com>
18925 * linux-x86-low.c: Don't include assert.h.
18926 (x86_siginfo_fixup): Use fatal, not assert.
18927 (x86_arch_setup): Fix comment.
18929 2009-05-12 Doug Evans <dje@google.com>
18931 Biarch support for i386/amd64 gdbserver.
18932 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18933 Add linux-x86-low.c.
18934 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18935 (linux-x86-low.o): Add.
18936 * linux-x86-64-low.c: Delete.
18937 * linux-i386-low.c: Delete.
18938 * linux-x86-low.c: New file.
18939 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18941 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18943 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18944 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18945 (linux_child_pid_to_exec_file): New function.
18946 (elf_64_header_p, elf_64_file_p): New functions.
18947 (siginfo_fixup): New function.
18948 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18949 give target a chance to convert layout.
18950 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18951 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18953 2009-05-07 Doug Evans <dje@google.com>
18955 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18956 (regsets_store_inferior_registers): Ditto.
18958 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18962 * linux-low.c (must_set_ptrace_flags): Delete.
18963 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18965 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18966 `lwp->must_set_ptrace_flags' instead.
18967 (linux_wait_for_event_1): Set ptrace options here.
18968 (linux_wait_1): ... not here.
18970 2009-04-30 Doug Evans <dje@google.com>
18972 * inferiors.c (started_inferior_callback): New function.
18973 (attached_inferior_callback): New function.
18974 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18975 * server.c (print_started_pid, print_attached_pid): New functions.
18976 (detach_or_kill_for_exit): New function.
18977 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18978 * server.h (have_started_inferiors_p): Declare.
18979 (have_attached_inferiors_p): Declare.
18981 * inferiors.c (remove_process): Fix memory leak, free process.
18982 * linux-low.c (linux_remove_process): New function.
18983 (linux_kill): Call it instead of remove_process.
18984 (linux_detach, linux_wait_1): Ditto.
18986 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18988 * configure.srv: Add x86 Windows CE target.
18990 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18992 * inferiors.c (get_thread_process): Make global.
18993 * server.h (get_thread_process): Add prototype.
18994 * thread-db.c (find_one_thread): Use get_thread_process
18995 instead of current_process.
18996 (thread_db_get_tls_address): Do not crash if called when
18997 thread layer is not yet initialized.
18999 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19001 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19002 * spu-low.c (current_tid): Rename to ...
19003 (current_ptid): ... this.
19004 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19005 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19006 ptid_get_lwp (current_ptid) instead of current_tid.
19007 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19008 instead of current_tid. Use find_process_pid to verify pid
19009 argument is valid. Pass proper argument to remove_process.
19010 (spu_thread_alive): Compare current_ptid instead of current_tid.
19011 (spu_resume): Likewise.
19013 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19015 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19018 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19020 Implement the multiprocess extensions, and add linux multiprocess
19023 * server.h (ULONGEST): Declare.
19024 (struct ptid, ptid_t): New.
19025 (minus_one_ptid, null_ptid): Declare.
19026 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19027 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19028 (struct inferior_list_entry): Change `id' type from unsigned from
19030 (struct sym_cache, struct breakpoint, struct
19031 process_info_private): Forward declare.
19032 (struct process_info): Declare.
19033 (current_process): Declare.
19034 (all_processes): Declare.
19035 (initialize_inferiors): Declare.
19036 (add_thread): Adjust to use ptid_t.
19037 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19038 (add_process, remove_process, find_thread_pid): Declare.
19039 (find_inferior_id): Adjust to use ptid_t.
19040 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19041 (multi_process): Declare.
19042 (push_event): Adjust to use ptid_t.
19043 (read_ptid, write_ptid): Declare.
19044 (prepare_resume_reply): Adjust to use ptid_t.
19045 (clear_symbol_cache): Declare.
19046 * inferiors.c (all_processes): New.
19047 (null_ptid, minus_one_ptid): New.
19048 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19049 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19050 (add_thread): Change unsigned long to ptid. Remove gdb_id
19052 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19053 (gdb_id_to_thread): Rename to ...
19054 (find_thread_pid): ... this. Change unsigned long to ptid.
19055 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19056 (loaded_dll, pull_pid_from_list): Adjust.
19057 (add_process, remove_process, find_process_pid)
19058 (get_thread_process, current_process, initialize_inferiors): New.
19059 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19060 (struct target_waitstatus) <related_pid>: Ditto.
19061 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19062 return type to int.
19063 (struct target_ops) <join>: Add `pid' argument.
19064 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19065 (struct target_ops) <wait>: Add `ptid' field. Change return type
19067 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19068 (mywait): Add `ptid' argument. Change return type to ptid_t.
19069 (target_pid_to_str): Declare.
19070 * target.c (set_desired_inferior): Adjust to use ptids.
19071 (mywait): Add new `ptid' argument. Adjust.
19072 (target_pid_to_str): New.
19073 * mem-break.h (free_all_breakpoints): Declare.
19074 * mem-break.c (breakpoints): Delelete.
19075 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19076 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19077 to use per-process breakpoint list.
19078 (free_all_breakpoints): New.
19079 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19080 (symbol_cache, all_symbols_looked_up): Delete.
19082 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19084 (prepare_resume_reply): Change ptid argument's type from unsigned
19085 long to ptid_t. Adjust. Implement W;process and X;process.
19086 (free_sym_cache, clear_symbol_cache): New.
19087 (look_up_one_symbol): Adjust to per-process symbol cache. *
19088 * server.c (cont_thread, general_thread, step_thread): Change type
19090 (attached): Delete.
19091 (multi_process): New.
19092 (last_ptid): Change type to ptid_t.
19093 (struct vstop_notif) <ptid>: Change type to ptid_t.
19094 (queue_stop_reply, push_event): Change `ptid' argument's type to
19096 (discard_queued_stop_replies): Add `pid' argument.
19097 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19098 changes. Don't reference the `attached' global.
19099 (attach_inferior): Adjust to mywait interface changes.
19100 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19101 features. Handle and report "multiprocess+". Handle
19103 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19105 (handle_v_kill): New.
19106 (handle_v_stopped): Adjust to use target_pid_to_str.
19107 (handle_v_requests): Allow multiple attaches and runs when
19108 multiprocess extensions are in effect. Handle "vKill".
19109 (myresume): Adjust to use ptids.
19110 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19111 (handle_status): Adjust to discard_queued_stop_replies interface
19113 (first_thread_of, kill_inferior_callback)
19114 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19115 (main): Call initialize_inferiors. Adjust to use ptids, killing
19116 and detaching from all inferiors. Handle multiprocess packet
19118 * linux-low.h: Include gdb_proc_service.h.
19119 (struct process_info_private): New.
19120 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19121 <lwpid_of>: Use ptid_get_lwp.
19122 (get_lwp_thread): Adjust.
19123 (struct lwp_info): Add `dead' member.
19124 (find_lwp_pid): Declare.
19125 * linux-low.c (thread_db_active): Delete.
19126 (new_inferior): Adjust comment.
19127 (inferior_pid): Delete.
19128 (linux_add_process): New.
19129 (handle_extended_wait): Adjust.
19130 (add_lwp): Change unsigned long to ptid.
19131 (linux_create_inferior): Add process to processes table. Adjust
19132 to use ptids. Don't set new_inferior here.
19133 (linux_attach_lwp): Rename to ...
19134 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19135 it. Adjust to use ptids.
19136 (linux_attach_lwp): New.
19137 (linux_attach): Add process to processes table. Don't set
19139 (struct counter): New.
19140 (second_thread_of_pid_p, last_thread_of_process_p): New.
19141 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19142 multiple processes.
19143 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19144 processes. Remove process from process table.
19145 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19146 to multiple processes.
19147 (any_thread_of): New.
19148 (linux_detach): Add `pid' argument, and handle it. Remove process
19149 from processes table.
19150 (linux_join): Add `pid' argument. Handle it.
19151 (linux_thread_alive): Change unsighed long argument to ptid_t.
19152 Consider dead lwps as not being alive.
19153 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19154 threads we're not interested in.
19155 (same_lwp, find_lwp_pid): New.
19156 (linux_wait_for_lwp): Change `pid' argument's type from int to
19158 (linux_wait_for_event): Rename to ...
19159 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19160 from int to ptid_t. Adjust.
19161 (linux_wait_for_event): New.
19162 (linux_wait_1): Add `ptid' argument. Change return type to
19163 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19164 that exit from the process table.
19165 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19167 (mark_lwp_dead): New.
19168 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19169 stopping all threads, mark its main lwp as dead.
19170 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19172 (fetch_register, usr_store_inferior_registers)
19173 (regsets_fetch_inferior_registers)
19174 (regsets_store_inferior_registers, linux_read_memory)
19175 (linux_write_memory): Inline `inferior_pid'.
19176 (linux_look_up_symbols): Adjust to use per-process
19177 `thread_db_active'.
19178 (linux_request_interrupt): Adjust to use ptids.
19179 (linux_read_auxv): Inline `inferior_pid'.
19180 (initialize_low): Don't reference thread_db_active.
19181 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19182 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19183 (ps_getpid): Return the pid of the current inferior.
19184 * thread-db.c (proc_handle, thread_agent): Delete.
19185 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19187 (find_one_thread): Change argument type to ptid_t. Adjust to
19189 (maybe_attach_thread): Adjust to per-process data and ptids.
19190 (thread_db_find_new_threads): Ditto.
19191 (thread_db_init): Ditto.
19192 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19193 processes table. Adjust to use ptids.
19194 (spu_kill, spu_detach): Adjust interface. Remove process from
19196 (spu_join, spu_thread_alive): Adjust interface.
19197 (spu_wait): Adjust interface. Remove process from processes
19198 table. Adjust to use ptids.
19199 * win32-low.c (current_inferior_tid): Delete.
19200 (current_inferior_ptid): New.
19201 (debug_event_ptid): New.
19202 (thread_rec): Take a ptid. Adjust.
19203 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19204 (child_delete_thread): Ditto.
19205 (do_initial_child_stuff): Add `attached' argument. Add process to
19207 (child_fetch_inferior_registers, child_store_inferior_registers):
19209 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19210 (win32_attach): Pass 1 to do_initial_child_stuff.
19211 (win32_kill): Adjust interface. Remove process from processes
19213 (win32_detach): Ditto.
19214 (win32_join): Adjust interface.
19215 (win32_thread_alive): Take a ptid.
19216 (win32_resume): Adjust to use ptids.
19217 (get_child_debug_event): Ditto.
19218 (win32_wait): Adjust interface. Remove exiting process from
19221 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19223 Non-stop mode support.
19225 * server.h (non_stop): Declare.
19226 (gdb_client_data, handler_func): Declare.
19227 (delete_file_handler, add_file_handler, start_event_loop):
19229 (handle_serial_event, handle_target_event, push_event)
19230 (putpkt_notif): Declare.
19231 * target.h (enum resume_kind): New.
19232 (struct thread_resume): Replace `step' field by `kind' field.
19233 (TARGET_WNOHANG): Define.
19234 (struct target_ops) <wait>: Add `options' argument.
19235 <supports_non_stop, async, start_non_stop>: New fields.
19236 (target_supports_non_stop, target_async): New.
19237 (start_non_stop): Declare.
19238 (mywait): Add `options' argument.
19239 * target.c (mywait): Add `options' argument. Print child exit
19240 notifications here.
19241 (start_non_stop): New.
19242 * server.c (non_stop, own_buf, mem_buf): New globals.
19243 (struct vstop_notif): New.
19244 (notif_queue): New global.
19245 (queue_stop_reply, push_event, discard_queued_stop_replies)
19246 (send_next_stop_reply): New.
19247 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19249 (attach_inferior): In non-stop mode, don't wait for the target
19251 (handle_general_set): Handle QNonStop.
19252 (handle_query): When handling qC, return the current general
19253 thread, instead of the first thread of the list.
19254 (handle_query): If the backend supports non-stop mode, include
19255 QNonStop+ in the qSupported query response.
19256 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19258 (handle_v_attach, handle_v_run): Handle non-stop mode.
19259 (handle_v_stopped): New.
19260 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19261 (myresume): Adjust to use resume_kind. Handle non-stop.
19262 (queue_stop_reply_callback): New.
19263 (handle_status): Handle non-stop mode.
19264 (main): Clear non_stop flag on reconnection. Use the event-loop.
19265 Refactor serial protocol handling from here ...
19266 (process_serial_event): ... to this new function. When GDB
19267 selects any thread, select one here. In non-stop mode, wait until
19268 GDB acks all pending events before exiting.
19269 (handle_serial_event, handle_target_event): New.
19270 * remote-utils.c (remote_open): Install remote_desc in the event
19272 (remote_close): Remove remote_desc from the event loop.
19273 (putpkt_binary): Rename to...
19274 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19275 (putpkt_binary): New as wrapper around putpkt_binary_1.
19276 (putpkt_notif): New.
19277 (prepare_resume_reply): In non-stop mode, don't change the
19279 * event-loop.c: New.
19280 * Makefile.in (OBJ): Add event-loop.o.
19281 (event-loop.o): New rule.
19283 * linux-low.h (pid_of): Moved here.
19285 (get_lwp_thread): Use lwpid_of.
19286 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19287 * linux-low.c (pid_of): Delete.
19288 (inferior_pid): Use lwpid_of.
19289 (linux_event_pipe): New.
19290 (target_is_async_p): New.
19292 (handle_extended_wait): Use lwpid_of.
19293 (add_lwp): Don't set lwpid field.
19294 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19295 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19296 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19297 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19298 first. Adjust to linux_wait_for_event interface changes. Use
19300 (linux_detach): Don't delete the main lwp here.
19301 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19302 (status_pending_p): Don't consider explicitly suspended lwps.
19303 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19304 pointer. Add OPTIONS argument. Change return type to int. Use
19305 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19306 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19307 pointer. Add status pointer argument. Return a pid instead of a
19308 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19309 changes. In non-stop mode, don't switch to a random thread.
19310 (linux_wait): Rename to...
19311 (linux_wait_1): ... this. Add target_options argument, and handle
19312 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19313 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19314 clean exit and signal exit code. Don't stop all threads in
19315 non-stop mode. In all-stop mode, only stop all threads when
19316 reporting a stop to GDB. Handle explicit thread stop requests.
19317 (async_file_flush, async_file_mark): New.
19319 (send_sigstop): Use lwpid_of.
19320 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19321 interface changes. In non-stop mode, don't switch to a random
19323 (linux_resume_one_lwp): Use lwpid_of.
19324 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19325 (linux_resume_one_thread): ... this. Handle resume_stop. In
19326 non-stop mode, don't look for pending flag in all threads.
19327 (resume_status_pending_p): Don't consider explicitly suspended
19329 (my_waitpid): Reimplement. Emulate __WALL.
19330 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19332 (sigchld_handler, linux_supports_non_stop, linux_async)
19333 (linux_start_non_stop): New.
19334 (linux_target_ops): Register linux_supports_non_stop, linux_async
19335 and linux_start_non_stop.
19336 (initialize_low): Install SIGCHLD handler.
19337 * thread-db.c (thread_db_create_event, find_one_thread)
19338 (thread_db_get_tls_address): Use lwpid_of.
19339 * win32-low.c (win32_detach): Adjust to use resume_kind.
19340 (win32_wait): Add `options' argument.
19341 * spu-low.c (spu_resume): Adjust to use resume_kind.
19342 (spu_wait): Add `options' argument.
19344 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19346 Decouple target code from remote protocol.
19348 * target.h (enum target_waitkind): New.
19349 (struct target_waitstatus): New.
19350 (struct target_ops) <wait>: Return an unsigned long. Take a
19351 target_waitstatus pointer instead of a char pointer.
19352 (mywait): Likewise.
19353 * target.c (mywait): Change prototype to return an unsigned long.
19354 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19355 * server.h (thread_from_wait, old_thread_from_wait): Delete
19357 (prepare_resume_reply): Change prototype to take a
19359 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19360 (last_status, last_ptid): New.
19361 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19362 pid instead of a signal.
19363 (attach_inferior): Remove "status" and "signal" parameters.
19365 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19367 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19368 (handle_v_requests, myresume): Remove "status" and "signal"
19369 parameters. Adjust.
19370 (handle_status): New.
19371 (main): Delete local `status'. Adjust.
19372 * remote-utils.c: Include target.h.
19373 (prepare_resume_reply): Change prototype to take a
19374 target_waitstatus. Adjust.
19376 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19378 * spu-low.c (spu_wait): Adjust.
19379 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19381 (win32_wait): Adjust.
19383 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19385 * target.h (struct thread_resume): Delete leave_stopped member.
19386 (struct target_ops): Add a `n' argument to the `resume' callback.
19387 * server.c (start_inferior): Adjust.
19388 (handle_v_cont, myresume): Adjust.
19389 * linux-low.c (check_removed_breakpoint): Adjust to resume
19390 interface change, and to removed leave_stopped field.
19391 (resume_ptr): Delete.
19392 (struct thread_resume_array): New.
19393 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19394 resume interface change.
19395 (linux_continue_one_thread, linux_queue_one_thread)
19396 (resume_status_pending_p): Check if the resume field is NULL
19397 instead of checking the leave_stopped member.
19398 (linux_resume): Adjust to the target resume interface change.
19399 * spu-low.c (spu_resume): Adjust to the target resume interface
19401 * win32-low.c (win32_detach, win32_resume): Ditto.
19403 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19405 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19407 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19409 (linux_continue_one_thread): Only preserve the stepping flag if
19410 there's a pending breakpoint.
19412 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19414 * server.c (main): After the inferior having exited, call
19415 remote_close before exiting gdbserver.
19417 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19419 Fix size of FPSCR in Power 7 processors.
19420 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19421 (PPC_FEATURE_HAS_DFP): New #define.
19422 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19425 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19427 * server.c (handle_query) Whitespace and formatting.
19429 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19431 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19432 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19433 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19434 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19435 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19436 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19437 Makefile.in, configure.ac: Fix whitespace throughout.
19438 * configure: Regenerate.
19440 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19442 * inferiors.c (find_inferior): Make it safe for the callback
19443 function to delete the currently iterated inferior.
19445 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19447 * Makefile.in (linuw_low_h): Move higher.
19448 (thread-db.o): Depend on $(linux_low_h).
19450 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19452 Rename "process" to "lwp" throughout.
19454 * linux-low.c (all_processes): Rename to...
19455 (all_lwps): ... this.
19456 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19457 (add_process): Rename to ...
19458 (add_lwp): ... this. Adjust.
19459 (linux_create_inferior): Adjust.
19460 (linux_attach_lwp): Adjust.
19461 (linux_attach): Adjust.
19462 (linux_kill_one_process): Rename to ...
19463 (linux_kill_one_lwp): ... this. Adjust.
19464 (linux_kill): Adjust.
19465 (linux_detach_one_process): Rename to ...
19466 (linux_detach_one_lwp): ... this. Adjust.
19467 (linux_detach): Adjust.
19468 (check_removed_breakpoint): Adjust.
19469 (status_pending_p): Adjust.
19470 (linux_wait_for_process): Rename to ...
19471 (linux_wait_for_lwp): ... this. Adjust.
19472 (linux_wait_for_event): Adjust.
19473 (send_sigstop): Adjust.
19474 (wait_for_sigstop): Adjust.
19475 (stop_all_processes): Rename to ...
19476 (stop_all_lwps): ... this.
19477 (linux_resume_one_process): Rename to ...
19478 (linux_resume_one_lwp): ... this. Adjust.
19479 (linux_set_resume_request, linux_continue_one_thread)
19480 (linux_queue_one_thread, resume_status_pending_p)
19481 (usr_store_inferior_registers, regsets_store_inferior_registers)
19482 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19484 * linux-low.h (get_process): Rename to ...
19485 (get_lwp): ... this. Adjust.
19486 (get_thread_process): Rename to ...
19487 (get_thread_lwp): ... this. Adjust.
19488 (get_process_thread): Rename to ...
19489 (get_lwp_thread): ... this. Adjust.
19490 (struct process_info): Rename to ...
19491 (struct lwp_info): ... this.
19492 (all_processes): Rename to ...
19493 (all_lwps): ... this.
19494 * proc-service.c (ps_lgetregs): Adjust.
19495 * thread-db.c (thread_db_create_event, find_one_thread)
19496 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19498 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19500 * server.c (handle_query): Handle "qAttached".
19502 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19504 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19505 GPLv3, update license URL.
19507 2009-03-01 Doug Evans <dje@google.com>
19509 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19510 (server_h): Add gdb_signals.h.
19511 (signals.o): Update.
19512 * server.h (target_signal_from_host,target_signal_to_host_p)
19513 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19515 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19517 * remote-utils.c (getpkt): Also generate remote-debug
19518 information if noack_mode is set.
19520 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19522 * server.c (handle_query): Report qXfer:siginfo:read and
19523 qXfer:siginfo:write as supported and handle them.
19524 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19525 * linux-low.c (linux_xfer_siginfo): New.
19526 (linux_target_ops): Set it.
19528 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19530 * server.c (gdbserver_usage): Mention --remote-debug.
19531 (main): Accept '--remote-debug' switch.
19533 2009-01-18 Doug Evans <dje@google.com>
19535 * regcache.c (new_register_cache): No need to check result of xcalloc.
19536 * server.c (handle_search_memory): Back out calls to xmalloc,
19537 result is checked and error is returned to user upon failure.
19538 (handle_query): Ditto. Add more checks for result of malloc.
19539 (handle_v_cont): Check result of malloc, report error back to
19541 (handle_v_run): Ditto. Call freeargv.
19542 * server.h (freeargv): Declare.
19543 * utils.c (freeargv): New fn.
19545 2009-01-15 Doug Evans <dje@google.com>
19547 * gdbreplay.c (perror_with_name): Make arg const char *.
19548 * server.h (target_signal_to_name): Make return type const char *.
19549 * thread-db.c (thread_db_err_str): Make return type const char *.
19550 * utils.c (perror_with_name): Make arg const char *.
19552 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19554 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19555 when handling a EXIT_PROCESS_DEBUG_EVENT.
19557 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19559 * gdbreplay.c (gdbreplay_version): Update copyright year.
19560 * server.c (gdbserver_version): Likewise.
19562 2009-01-05 Doug Evans <dje@google.com>
19564 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19565 (handle_extended_wait): Improve comment.
19567 2008-12-13 Doug Evans <dje@google.com>
19569 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19570 * server.h (ATTR_MALLOC): New macro.
19571 (xmalloc,xcalloc,xstrdup): Declare.
19572 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19573 * inferiors.c: Ditto.
19574 * linux-low.c: Ditto.
19575 * mem-break.c: Ditto.
19576 * regcache.c: Ditto.
19577 * remote-utils.c: Ditto.
19580 * win32-low.c: Ditto.
19582 2008-12-12 Doug Evans <dje@google.com>
19584 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19585 in debugging printf.
19587 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19589 2008-12-09 Doug Evans <dje@google.com>
19591 * linux-low.h (struct process_info): Delete member tid, unused.
19592 * thread-db.c (find_one_thread): Update.
19593 (maybe_attach_thread): Update.
19595 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19597 * target.h (struct target_ops): Add qxfer_osdata member.
19598 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19600 (linux_qxfer_osdata): New functions.
19601 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19603 * server.c (handle_query): Handle "qXfer:osdata:read:".
19604 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19605 (buffer_xml_printf): New functions.
19606 * server.h (struct buffer): New.
19607 (buffer_grow_str, buffer_grow_str0): New macros.
19608 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19609 (buffer_xml_printf): Declare.
19611 2008-11-24 Doug Evans <dje@google.com>
19613 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19615 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19617 * server.c (handle_v_run): Always use the supplied argument list.
19619 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19621 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19622 (xtensa_regmap_table): Add entry for scompare1.
19624 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19626 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19627 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19628 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19629 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19630 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19631 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19632 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19633 XML target descriptions.
19634 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19635 when inferior is running on an ISA 2.05 or later processor. Add
19636 special case to return offset for full 64-bit slot of FPSCR when
19639 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19641 * Makefile.in (SFILES, clean): Added sparc64 files.
19642 (reg-sparc64.o, reg-sparc64.c): New.
19643 * configure.srv (sparc*-*-linux*): New configuration.
19644 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19645 syscall arguments for SPARC.
19646 (regsets_store_inferior_registers): Likewise.
19647 * linux-sparc-low.c: New file.
19649 2008-10-21 Doug Evans <dje@google.com>
19651 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19652 (READLINE_DIR,READLINE_DEP): Delete.
19653 (INTERNAL_CFLAGS): Update.
19654 (LINTFLAGS): Update.
19656 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19658 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19659 whole argv from the last run, not just argv[0].
19661 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19663 * regcache.c (new_register_cache): Return NULL if the register
19664 cache size isn't known yet.
19665 (free_register_cache): Avoid dereferencing a NULL regcache.
19667 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19669 * configure.srv: Merge MIPS and MIPS64.
19671 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19673 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19675 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19677 * Makefile.in: Add required vsx dependencies.
19679 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19680 Declare init_registers_powerpc_vsx32l.
19681 Declare init_registers_powerpc_vsx64l.
19682 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19683 (ppc_arch_setup): Check for VSX in hwcap.
19684 (ppc_fill_vsxregset): New function.
19685 (ppc_store_vsxregset): New function.
19686 Add new VSX entry in regset_info target_regsets.
19688 * configure.srv: Add new VSX dependencies.
19690 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19692 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19693 (remote_open): Set or clear transport_is_reliable.
19694 (putpkt_binary): Don't expect acks in noack mode.
19695 (getpkt): Don't send ack/nac in noack mode.
19696 * server.c (handle_general_set): Handle QStartNoAckMode.
19697 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19699 (main): Reset noack_mode on every connection.
19700 * server.h (noack_mode): Declare.
19702 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19704 * Makefile.in (GDBREPLAY_OBS): New variable.
19705 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19707 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19708 Daniel Jacobowitz <dan@codesourcery.com>
19710 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19711 (usr_store_inferior_registers): Likewise.
19712 (regsets_store_inferior_registers): Likewise.
19714 2008-07-31 Rolf Jansen <rj@surtec.com>
19715 Pedro Alves <pedro@codesourcery.com>
19717 * configure.ac: Check for memmem declaration.
19718 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19719 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19720 (disable_packet_qfThreadInfo): Unconditionally compile.
19721 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19722 * configure, config.in: Regenerate.
19724 2008-07-28 Doug Kwan <dougkwan@google.com>
19726 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19727 (linux_write_memory): Remove declaration of errno.
19729 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19731 * linux-low.c (handle_extended_wait): Do not use "status"
19732 variable uninitialized.
19734 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19736 * server.c (handle_v_attach): Inhibit reporting dll changes.
19738 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19740 * remote-utils.c (prepare_resume_reply): If requested, don't
19741 output "thread:TID" in the T stop reply.
19743 * server.c (disable_packet_vCont, disable_packet_Tthread)
19744 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19745 (handle_query): If requested, disable support for qC, qfThreadInfo
19747 (handle_v_requests): If requested, disable support for vCont.
19748 (gdbserver_show_disableable): New.
19749 (main): Handle --disable-packet and --disable-packet=LIST.
19751 * server.h (disable_packet_vCont, disable_packet_Tthread)
19752 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19754 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19756 * server.c (gdbserver_usage): Mention --version.
19758 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19760 * Makefile.in (gdbreplay.o): New rule.
19762 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19764 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19765 message, not gdbserver.
19767 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19768 Nathan Sidwell <nathan@codesourcery.com>
19769 Joseph Myers <joseph@codesourcery.com>
19771 * acinclude.m4: Include ../../config/acx.m4.
19772 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19773 * configure, config.in: Regenerate.
19774 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19775 * server.c (gdbserver_version): Print PKGVERSION.
19776 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19777 (main): Adjust gdbserver_usage calls.
19778 * gdbreplay.c (version, host_name): Add declarations.
19779 (gdbreplay_version, gdbreplay_usage): New.
19780 (main): Accept --version and --help options.
19782 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19784 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19785 (arm_breakpoint_at): Handle Thumb.
19786 (the_low_target): Add comment.
19788 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19790 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19792 2008-05-09 Doug Evans <dje@google.com>
19794 * server.h (decode_search_memory_packet): Declare.
19795 * remote-utils.c (decode_search_memory_packet): New fn.
19796 * server.c (handle_search_memory_1): New fn.
19797 (handle_search_memory): New fn.
19798 (handle_query): Process qSearch:memory packets.
19800 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19802 * regcache.c (registers_length): Remove.
19803 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19804 full register packet.
19805 * regcache.h (registers_length): Remove prototype.
19806 * server.h (PBUFSIZ): Define to 16384.
19808 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19810 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19811 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19812 powerpc-64l.o, and powerpc-altivec64l.o.
19813 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19814 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19815 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19816 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19817 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19820 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19821 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19822 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19823 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19824 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19825 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19826 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19827 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19828 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19829 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19832 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19833 (init_registers_powerpc_32l): ... this new prototype.
19834 (init_registers_powerpc_32): Remove, replace by ...
19835 (init_registers_powerpc_altivec32l): ... this new prototype.
19836 (init_registers_powerpc_e500): Remove, replace by ...
19837 (init_registers_powerpc_e500l): ... this new prototype.
19838 (init_registers_ppc64): Remove, replace by ...
19839 (init_registers_powerpc_64l): ... this new prototype.
19840 (init_registers_powerpc_64): Remove, replace by ...
19841 (init_registers_powerpc_altivec64l): ... this new prototype.
19842 (ppc_num_regs): Set to 73.
19843 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19844 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19845 (ppc_cannot_store_register): Handle orig_r3 and trap.
19846 (ppc_arch_setup): Update init_registers_... calls.
19847 (ppc_fill_gregset): Handle orig_r3 and trap.
19849 * inferiors.c (clear_inferiors): Reset current_inferior.
19851 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19853 * acinclude.m4: Add override.m4.
19854 * configure: Regenerate.
19856 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19858 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19859 initial call to init_register_ppc64.
19861 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19863 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19864 single powerpc*-*-linux* case.
19865 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19867 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19869 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19870 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19872 * linux-ppc-low.c: Include <elf.h>.
19873 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19874 (ppc_hwcap): New global variable.
19875 (ppc_regmap): Remove __SPE__ #ifdef sections.
19876 (ppc_regmap_e500): New global variable.
19877 (ppc_cannot_store_register): Update __SPE__ special case.
19878 (ppc_get_hwcap): New function.
19879 (ppc_arch_setup): Use it to determine whether inferior supports
19880 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19881 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19882 Do not access registers if target does not support AltiVec.
19883 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19884 Do not access registers if target does not support SPE.
19885 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19887 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19889 * linux-low.c (disabled_regsets, num_regsets): New.
19890 (use_regsets_p): Delete.
19891 (linux_wait_for_process): Clear disabled_regsets.
19892 (regsets_fetch_inferior_registers): Check and set it.
19893 (regsets_store_inferior_registers): Likewise.
19894 (linux_fetch_registers, linux_store_registers): Do not use
19896 (initialize_low): Allocate disabled_regsets.
19898 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19900 * Makefile.in (LIBOBJS): New.
19901 (OBS): Use LIBOBJS.
19902 (memmem.o): New rule.
19903 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19904 * configure: Regenerated.
19906 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19908 * server.c (handle_query): Never return "unsupported" for
19909 qXfer:features:read queries.
19911 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19913 * server.c (get_features_xml): Fix inverted condition.
19914 (handle_query): Always support qXfer:feature:read.
19916 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19918 * server.c (wrapper_argv): New.
19919 (start_inferior): Handle wrapper_argv. If set, expect an extra
19921 (gdbserver_usage): Document --wrapper.
19922 (main): Parse --wrapper.
19924 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19926 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19927 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19928 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19929 (ppc_set_pc): Likewise.
19930 (ppc_arch_setup): New function.
19931 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19932 of collect_register.
19933 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19935 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19937 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19938 instead of linux-ppc64-low.o.
19939 * linux-ppc64-low.c: Remove file.
19940 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19941 (linux-ppc64-low.o): Remove rule.
19943 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19944 (init_registers_powerpc_64): Likewise.
19945 (ppc_regmap): Conditionally define depending on __powerpc64__.
19946 (ppc_cannot_store_register): Do not special-case "fpscr" when
19947 compiled on __powerpc64__.
19948 (ppc_collect_ptrace_register): New function.
19949 (ppc_supply_ptrace_register): New function.
19950 (ppc_breakpoint): Change type to "unsigned int".
19951 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19952 (the_low_target): Conditionally provide initializers for the
19953 arch_setup member depending on __powerpc64__. Install
19954 collect_ptrace_register and supply_ptrace_register members.
19956 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19958 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19959 * server.c (gdbserver_xmltarget): Define.
19960 (get_features_xml): Use it to replace "target.xml" and arch_string.
19962 * configure.srv: Remove srv_xmltarget. Add XML files that were
19963 mentioned there to srv_xmlfiles instead. Remove conditional tests
19964 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19965 srv_xmlfiles and srv_regobj to include all possible choices.
19966 * configure.ac (srv_xmltarget): Remove.
19967 (srv_xmlfiles): Do not add "target.xml".
19968 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19969 checks for supplementary target information.
19970 * configure: Regenerate.
19971 * Makefile.in (XML_TARGET): Remove.
19972 (target.xml): Remove rule.
19973 (clean): Do not clean up target.xml.
19974 (.PRECIOUS): Do not mention target.xml.
19976 * target.h (struct target_ops): Remove arch_string member.
19977 * linux-low.c (linux_arch_string): Remove.
19978 (linux_target_ops): Remove arch_string initializer.
19979 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19980 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19981 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19982 * spu-low.c (spu_arch_string): Remove.
19983 (spu_target_ops): Remove arch_string initializer.
19984 * win32-low.c (win32_arch_string): Remove.
19985 (win32_target_ops): Remove arch_string initializer.
19986 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19987 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19988 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19990 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19992 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19993 by collect_ptrace_register and supply_ptrace_register hooks.
19994 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19995 instead of checking for the_low_target.left_pad_xfer.
19996 (usr_store_inferior_registers): Use collect_ptrace_register callback
19997 instead of checking for the_low_target.left_pad_xfer.
19999 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20000 (s390_supply_ptrace_register): Likewise.
20001 (s390_fill_gregset): Call s390_collect_ptrace_register.
20002 (the_low_target): Update.
20004 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20005 (ppc_supply_ptrace_register): Likewise.
20006 (the_low_target): Update.
20008 * linux-i386-low.c (the_low_target): Update.
20009 * linux-x86-64-low.c (the_low_target): Update.
20011 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20013 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20014 reg-s390.o and reg-s390x.o.
20016 * linux-low.c (new_inferior): New global variable.
20017 (linux_create_inferior, linux_attach): Set it.
20018 (linux_wait_for_process): Call the_low_target.arch_setup after the
20019 target has stopped for the first time.
20020 (initialize_low): Do not call the_low_target.arch_setup.
20022 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20023 (s390_set_pc): Likewise.
20024 (s390_arch_setup): New function.
20025 (the_low_target): Use s390_arch_setup as arch_setup routine.
20027 * regcache.c (realloc_register_cache): New function.
20028 (set_register_cache): Call it for each existing regcache.
20030 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20032 * server.h (init_registers): Remove prototype.
20034 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20035 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20036 instead of init_registers ().
20037 * linux-arm-low.c (init_registers_arm): Add prototype.
20038 (init_registers_arm_with_iwmmxt): Likewise.
20039 (the_low_target): Add initializer for arch_setup field.
20040 * linux-cris-low.c (init_registers_cris): Add prototype.
20041 (the_low_target): Add initializer for arch_setup field.
20042 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20043 (the_low_target): Add initializer for arch_setup field.
20044 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20045 (the_low_target): Add initializer for arch_setup field.
20046 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20047 (the_low_target): Add initializer for arch_setup field.
20048 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20049 (the_low_target): Add initializer for arch_setup field.
20050 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20051 (the_low_target): Add initializer for arch_setup field.
20052 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20053 (init_registers_mips64_linux): Likewise.
20054 (the_low_target): Add initializer for arch_setup field.
20055 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20056 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20057 (the_low_target): Add initializer for arch_setup field.
20058 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20059 (init_registers_powerpc_64): Likewise.
20060 (the_low_target): Add initializer for arch_setup field.
20061 * linux-s390-low.c (init_registers_s390): Add prototype.
20062 (init_registers_s390x): Likewise.
20063 (the_low_target): Add initializer for arch_setup field.
20064 * linux-sh-low.c (init_registers_sh): Add prototype.
20065 (the_low_target): Add initializer for arch_setup field.
20066 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20067 (the_low_target): Add initializer for arch_setup field.
20068 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20069 (the_low_target): Add initializer for arch_setup field.
20071 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20072 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20073 instead of init_registers ().
20074 * win32-arm-low.c (init_registers_arm): Add prototype.
20075 (the_low_target): Add initializer for arch_setup field.
20076 * win32-i386-low.c (init_registers_i386): Add prototype.
20077 (the_low_target): Add initializer for arch_setup field.
20079 * spu-low.c (init_registers_spu): Add prototype.
20080 (initialize_low): Call initialie_registers_spu () instead of
20081 initialize_registers ().
20083 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20085 * server.c (handle_v_requests): When handling the vRun and vAttach
20086 packets, if already debugging a process, don't kill it. Return an
20089 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20091 * server.c (handle_query): Correct length check.
20093 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20095 * win32-low.c (do_initial_child_stuff): Add process handle
20096 parameter. Set current_process_handle and current_process_id from the
20097 parameters. Clear globals.
20098 (win32_create_inferior): Don't set current_process_handle and
20099 current_process_id here. Instead pass them on the call to
20100 do_initial_child_stuff.
20101 (win32_attach): Likewise.
20102 (win32_clear_inferiors): New.
20103 (win32_kill): Don't close the current process handle or the
20104 current thread handle here. Instead call win32_clear_inferiors.
20105 (win32_detach): Don't open a new handle to the process. Call
20106 win32_clear_inferiors.
20107 (win32_join): Don't rely on current_process_handle; open a new
20108 handle using the process id.
20109 (win32_wait): Call win32_clear_inferiors when the inferior process
20112 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20114 * server.c (monitor_show_help): Add "exit".
20116 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20118 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20119 (clean): Add reg-xtensa.c.
20120 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20121 * configure.srv (xtensa*-*-linux*) New target.
20122 * linux-xtensa-low.c: New.
20123 * xtensa-xtregs.c: New.
20125 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20127 * hostio.c: Don't include errno.h.
20128 (errno_to_fileio_errno): Move to hostio-errno.
20129 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20130 error number outputting to the target->hostio_last_error callback.
20131 (hostio_packet_error): Use FILEIO_EINVAL directly.
20132 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20133 calls to hostio_error.
20134 * hostio-errno.c: New.
20135 * server.h (hostio_last_error_from_errno): Declare.
20136 * target.h (target_ops): Add hostio_last_error member.
20137 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20138 as hostio_last_error handler.
20139 * spu-low.c (spu_target_ops): Likewise.
20140 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20141 (wince_hostio_last_error): New functions.
20142 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20143 as hostio_last_error handler.
20144 (win32_target_ops) [!_WIN32_WCE]: Register
20145 hostio_last_error_from_errno as hostio_last_error handler.
20146 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20147 (hostio-errno.o): New rule.
20148 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20149 * configure.srv (srv_hostio_err_objs): New variable. Default to
20151 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20152 * configure: Regenerate.
20154 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20156 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20157 (linux_kill, linux_detach): Clean up the process list.
20158 * remote-utils.c (remote_open): Improve port number parsing.
20159 (putpkt_binary, input_interrupt): Only send interrupts if the target
20161 * server.c (extended_protocol): Make static.
20162 (attached): Define earlier.
20163 (exit_requested, response_needed, program_argv): New variables.
20164 (target_running): New.
20165 (start_inferior): Clear attached here.
20166 (attach_inferior): Set attached here.
20167 (require_running): Define.
20168 (handle_query): Use require_running and target_running. Implement
20170 (handle_v_attach, handle_v_run): New.
20171 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20172 (gdbserver_usage): Update.
20173 (main): Redo argument parsing. Handle --debug and --multi. Handle
20174 --attach along with other options or after the port. Save
20175 program_argv. Support no initial program. Resynchronize
20176 communication with GDB after an error. Handle "monitor exit".
20177 Use require_running and target_running. Always allow the extended
20178 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20179 restart in extended mode.
20180 * README: Refer to the GDB manual. Update --attach usage.
20182 2007-12-20 Andreas Schwab <schwab@suse.de>
20184 * linux-low.c (STACK_SIZE): Define.
20185 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20186 (linux_test_for_tracefork): Likewise.
20188 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20190 * linux-low.c (linux_wait_for_event): Update messages. Do not
20191 reinsert auto-delete breakpoints.
20192 * mem-break.c (struct breakpoint): Change return type of handler to
20194 (set_breakpoint_at): Update handler type.
20195 (reinsert_breakpoint_handler): Return 1 instead of calling
20197 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20199 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20200 * mem-break.h (set_breakpoint_at): Update handler type.
20201 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20202 * win32-low.c (auto_delete_breakpoint): New.
20203 (get_child_debug_event): Use it.
20205 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20207 * configure.ac: Check for pread and pwrite.
20208 * hostio.c (handle_pread): Fall back to lseek and read.
20209 (handle_pwrite): Fall back to lseek and write.
20210 * config.in, configure: Regenerated.
20212 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20214 * server.c (myresume): Add own_buf argument.
20215 (main): Update calls.
20217 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20219 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20220 * remote-utils.c (remote_open): Do not call disable_async_io.
20221 (block_async_io): Delete.
20222 (unblock_async_io): Make static.
20223 (initialize_async_io): New.
20224 * server.c (handle_v_cont): Handle async I/O here.
20225 (myresume): Likewise. Move other common resume tasks here...
20226 (main): ... from here. Call initialize_async_io. Disable async
20227 I/O before the main loop.
20228 * server.h (initialize_async_io): Declare.
20229 (block_async_io, unblock_async_io): Delete prototypes.
20230 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20232 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20234 * remote-utils.c (readchar): Allow binary data in received messages.
20236 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20238 * win32-low.c (attaching): New global.
20239 (win32_create_inferior): Clear the `attaching' global.
20240 (win32_attach): Set the `attaching' global.
20241 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20242 attaching. Only set a breakpoint at the entry point if not
20245 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20247 * server.c (main): Don't report dll events on the initial
20248 connection on attaches.
20250 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20252 * server.c (main): Relax numerical bases supported for the pid of
20253 the --attach command line argument.
20255 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20257 * win32-low.c (win32_attach): Call OpenProcess before
20258 DebugActiveProcess, not after. Add last error output to error
20261 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20263 * win32-low.c (win32_get_thread_context)
20264 (win32_set_thread_context): New functions.
20265 (thread_rec): Use win32_get_thread_context.
20266 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20267 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20270 2007-12-03 Leo Zayas
20271 Pedro Alves <pedro_alves@portugalmail.pt>
20273 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20275 (child_add_thread): Minor cleanup.
20276 (child_continue): Resume artificially suspended threads before
20277 calling ContinueDebugEvent.
20278 (suspend_one_thread): New.
20279 (fake_breakpoint_event): New.
20280 (get_child_debug_event): Change return type to int. Check here if
20281 gdb sent an interrupt request. If a soft interrupt was requested,
20282 fake a breakpoint event. Return 0 if there is no event to handle,
20284 (win32_wait): Don't check here if gdb sent an interrupt request.
20285 Ensure there is a valid event to handle.
20286 (win32_request_interrupt): Add soft interruption method as last
20289 2007-12-03 Leo Zayas
20290 Pedro Alves <pedro_alves@portugalmail.pt>
20292 * win32-low.h (win32_thread_info): Add descriptions to the
20293 structure members. Replace `suspend_count' counter by a
20295 * win32-low.c (thread_rec): Update condition of when to get the
20296 context from the inferior. Rely on ContextFlags being set if it
20297 has already been retrieved. Only suspend the inferior thread if
20298 we haven't already. Warn if that fails.
20299 (continue_one_thread): s/suspend_count/suspended/. Only call
20300 ResumeThread once. Warn if that fails.
20302 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20304 * win32-low.c (win32_wait): Don't read from the inferior when it
20305 has already exited.
20307 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20309 * Makefile.in (win32_low_h): New variable.
20310 (win32-low.o): Add dependency on $(win32_low_h).
20311 (win32-arm-low.o, win32-i386-low.o): New rules.
20313 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20315 * hostio.c: Correct copyright year.
20317 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20319 * Makefile.in (OBS): Add hostio.o.
20320 (hostio.o): New rule.
20321 * server.h (handle_vFile): Declare.
20322 * hostio.c: New file.
20323 * server.c (handle_v_requests): Take packet_len and new_packet_len
20324 for binary packets. Call handle_vFile.
20325 (main): Update call to handle_v_requests.
20327 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20329 * linux-low.c: Include <sched.h>.
20331 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20333 * linux-low.c (linux_tracefork_grandchild): New.
20334 (linux_tracefork_child): Use clone.
20335 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20337 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20339 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20341 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20343 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20345 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20347 * inferiors.c (change_inferior_id): Delete.
20348 (add_pid_to_list, pull_pid_from_list): New.
20349 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20350 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20351 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20352 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20353 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20354 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20355 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20356 (using_threads): Always set to 1.
20357 (handle_extended_wait): New.
20358 (add_process): Do not set TID.
20359 (linux_create_inferior): Set must_set_ptrace_flags.
20360 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20361 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20362 (linux_thread_alive): Rename TID argument to LWPID.
20363 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20364 (linux_wait_for_event): Do not use TID or check using_threads. Update
20365 call to dead_thread_notify. Call handle_extended_wait.
20366 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20367 (send_sigstop): Delete sigstop_sent.
20368 (wait_for_sigstop): Avoid TID.
20369 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20370 (linux_test_for_tracefork): New.
20371 (linux_lookup_signals): Use thread_db_active and
20372 linux_supports_tracefork_flag.
20373 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20374 * linux-low.h (get_process_thread): Avoid TID.
20375 (struct process_ifo): Move thread_known and tid to the end. Remove
20377 (linux_attach_lwp, thread_db_init): Update prototypes.
20378 * server.h (change_inferior_id): Delete prototype.
20379 (add_pid_to_list, pull_pid_from_list): New prototypes.
20380 * thread-db.c (thread_db_use_events): New.
20381 (find_first_thread): Rename to...
20382 (find_one_thread): ...this. Update callers and messages. Do not
20383 call fatal. Check thread_db_use_events. Do not call
20384 change_inferior_id or new_thread_notify.
20385 (maybe_attach_thread): Update. Do not call new_thread_notify.
20386 (thread_db_init): Set thread_db_use_events. Check use_events.
20387 * utils.c (fatal, warning): Correct message prefix.
20389 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20391 * Makefile.in (clean): Remove new files.
20392 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20393 (powerpc-64.o, powerpc-64.c): New rules.
20394 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20395 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20397 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20399 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20400 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20401 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20402 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20403 (target_regsets): Add AltiVec and SPE register sets.
20404 * configure.ac: Check for AltiVec and SPE.
20405 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20406 (ppc_fill_vrregset, ppc_store_vrregset): New.
20407 (target_regsets): Add AltiVec register set.
20408 * configure: Regenerated.
20410 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20412 * linux-low.c (O_LARGEFILE): Define.
20413 (linux_read_memory): Use /proc/PID/mem.
20414 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20415 * configure, config.in: Regenerated.
20417 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20419 * linux-low.c (linux_wait_for_event): Do not pass signals while
20422 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20424 * win32-low.c (create_process): New.
20425 (win32_create_inferior): Use create_process instead of
20426 CreateProcess. If create_process failed retry appending an ".exe"
20427 suffix. Store the GetLastError result immediatelly after
20428 create_process calls and use it on the call to error.
20430 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20432 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20434 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20436 * configure.ac: Switch license to GPLv3.
20438 2007-08-01 Michael Snyder <msnyder@access-company.com>
20440 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20442 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20444 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20446 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20447 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20448 CloseToolhelp32Snapshot.
20449 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20450 CloseToolhelp32Snapshot.
20452 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20454 * server.c (main): Check for inferior exit before main loop.
20456 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20458 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20459 instead of on tmp_desc.
20461 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20462 Daniel Jacobowitz <dan@codesourcery.com>
20464 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20465 (add_thread): Minor cleanups.
20466 (clear_inferiors): Move lower in the file. Clear the DLL
20468 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20469 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20470 (xml_escape_text): New.
20471 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20473 (handle_v_cont): Report errors.
20474 (gdbserver_version): Update.
20475 (main): Correct size of own_buf. Do not report initial DLL events.
20476 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20477 (unloaded_dll, xml_escape_text): New.
20478 * win32-low.c (enum target_waitkind): Update comments.
20479 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20480 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20481 (win32_EnumProcessModules, win32_GetModuleInformation)
20482 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20483 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20484 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20485 (win32_Module32First, win32_Module32Next, load_toolhelp)
20486 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20487 (get_child_debug_event): Handle DLL events.
20488 (win32_wait): Likewise.
20490 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20492 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20493 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20495 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20497 * win32-low.c (handle_output_debug_string): Ignore event if not
20500 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20502 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20504 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20506 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20508 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20510 * inferiors.c (change_inferior_id): Add comment.
20511 * linux-low.c (check_removed_breakpoint): Add an early
20512 prototype. Improve debug output.
20513 (linux_attach): Doc update.
20514 (linux_detach_one_process, linux_detach): Clean up before releasing
20516 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20517 * linux-low.h (struct process_info): Doc improvement.
20518 * mem-break.c (delete_all_breakpoints): New.
20519 * mem-break.h (delete_all_breakpoints): New prototype.
20520 * thread-db.c (find_first_thread): New.
20521 (thread_db_create_event): Call it instead of
20522 thread_db_find_new_threads. Clean up unused variables.
20523 (maybe_attach_thread): Remove first thread handling.
20524 (thread_db_find_new_threads): Use find_first_thread.
20525 (thread_db_get_tls_address): Likewise.
20527 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20529 * thread-db.c (thread_db_find_new_threads): Add prototype.
20530 (thread_db_create_event): Check for the main thread before adding
20532 (maybe_attach_thread): Only enable event reporting if TID == 0.
20533 (thread_db_get_tls_address): Check for new threads.
20535 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20537 * linux-low.c (linux_create_inferior): Try execv before execvp.
20538 * spu-low.c (spu_create_inferior): Likewise.
20540 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20542 * linux-low.c (linux_create_inferior): Change execv to execvp.
20543 * spu-low.c (spu_create_inferior): Likewies.
20545 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20547 * Makefile.in (clean): Clean new files instead of deleted ones.
20548 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20549 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20551 * configure.srv: Specify XML files and new regformats for MIPS and
20553 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20554 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20555 an entry for the restart register.
20556 (mips_cannot_fetch_register, mips_cannot_store_register)
20557 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20558 register names to match the XML descriptions.
20559 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20560 restart register instead of $0.
20562 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20563 Markus Deuling <deuling@de.ibm.com>
20565 * remote-utils.c (decode_xfer_write): New function.
20566 * server.h (decode_xfer_write): Add prototype.
20567 * server.c (handle_query): Add PACKET_LEN argument. Support
20568 qXfer:spu:read and qXfer:spu:write packets.
20569 (main): Pass packet_len to handle_query.
20570 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20571 * target.h (target_ops): Add qxfer_spu.
20573 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20575 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20576 accessing non-seekable spufs files.
20578 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20580 * server.c (handle_query): Add reply for qC packet.
20582 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20583 Leo Zayas <lerele@champenstudios@com>
20585 * server.h (check_remote_input_interrupt_request): New function.
20586 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20587 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20588 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20589 (check_remote_input_interrupt_request): New function.
20590 * server.h (check_remote_input_interrupt_request): Declare.
20591 * win32-low.c (winapi_DebugBreakProcess,
20592 winapi_GenerateConsoleCtrlEvent): New typedefs.
20593 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20595 (win32_wait): Check for remote interrupt request
20596 with check_remote_input_interrupt_request.
20597 (win32_request_interrupt): New function.
20598 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20600 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20602 * win32-low.c (debug_registers_changed,
20603 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20604 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20605 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20606 (thread_rec): Get context using the low target.
20607 (child_add_thread): Call thread_added on the low target,
20608 which does the same thing.
20610 (do_initial_child_stuff): Remove debug registers references.
20611 Set context using the low target. Resume threads after
20612 setting the contexts.
20613 (child_continue): Remove dead variable. Remove debug
20614 registers references.
20615 (child_fetch_inferior_registers): Go through the low target.
20616 (do_child_store_inferior_registers): Remove.
20617 (child_store_inferior_registers): Go through the low target.
20618 (win32_resume): Remove debug registers references.
20619 Set context using the low target.
20620 (handle_exception): Change return type to void. Don't record
20621 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20622 first chance exception.
20623 (get_child_debug_event): Change return type to void. Remove
20624 goto loop. Always return after waiting for debug event.
20625 (win32_wait): Convert to switch statement. Handle spurious
20628 * win32-i386-low.c (debug_registers_changed,
20629 debug_registers_used): New.
20630 (initial_stuff): Rename to ...
20631 (i386_initial_stuff): ... this. Clear debug registers
20633 (store_debug_registers): Delete.
20634 (i386_get_thread_context): New.
20635 (load_debug_registers): Delete.
20636 (i386_set_thread_context): New.
20637 (i386_thread_added): New.
20638 (single_step): Rename to ...
20639 (i386_single_step): ... this.
20640 (do_fetch_inferior_registers): Rename to ...
20641 (i386_fetch_inferior_register): ... this.
20642 (i386_store_inferior_register): New.
20643 (the_low_target): Adapt to new interface.
20645 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20646 (arm_get_thread_context): New.
20647 (arm_set_thread_context): New.
20649 (do_fetch_inferior_registers): Rename to ...
20650 (arm_fetch_inferior_register): ... this.
20651 (arm_store_inferior_register): New.
20652 (arm_wince_breakpoint): Reimplement as unsigned long.
20653 (arm_wince_breakpoint_len): Define.
20654 (the_low_target): Adapt to new interface.
20656 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20657 load_debug_registers. Add get_thread_context, set_thread_context,
20658 thread_added and store_inferior_register. Rename
20659 fetch_inferior_registers to fetch_inferior_register.
20660 (regptr): Remove declaration.
20662 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20664 * linux-low.c (linux_detach): Change return type to int. Return 0.
20665 * spu-low.c (spu_detach): Likewise.
20667 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20669 * target.h (target_ops): Change return type of detach to int.
20671 (join_inferior): New.
20672 * server.c (main): Don't skip detach support on mingw32.
20673 If the inferior doesn't support detaching return error.
20674 Call join_inferior instead of using waitpid.
20675 * linux-low.c (linux_join): New.
20676 (linux_target_op): Add linux_join.
20677 * spu-low.c (spu_join): New.
20678 (spu_target_ops): Add spu_join.
20679 * win32-low.c (win32_detach): Adapt to new interface.
20680 Reopen current_process_handle before detaching. Issue a child
20681 resume before detaching.
20683 (win32_target_op): Add win32_join.
20685 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20687 * win32-low.c (win32-attach): Fix return value.
20688 * target.h (target_ops): Describe ATTACH return values.
20690 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20692 * win32-low.c (GETPROCADDRESS): Define.
20693 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20694 (winapi_DebugSetProcessKillOnExit): Likewise.
20695 (win32_create_inferior): Force usage of ansi CreateProcessA.
20696 (win32_attach): Use GETPROCADDRESS.
20697 (win32_detach): Likewise.
20699 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20701 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20703 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20705 * win32-low.c: Commit leftover changes from 2007-03-29.
20707 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20709 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20710 fields short instead of int. Add explicit padding.
20711 (i387_cache_to_fsave): Remove unnecessary casts.
20712 (i387_fsave_to_cache): Doc fix.
20713 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20715 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20717 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20718 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20720 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20722 * configure.srv (arm*-*-mingw32ce*): Move near the other
20725 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20727 * configure.ac: Add errno checking.
20728 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20729 sys/file.h and malloc.h.
20730 (AC_CHECK_DECLS): Add perror.
20731 (srv_mingwce): Handle.
20732 * configure.srv (i[34567]86-*-cygwin*): Add
20733 win32-i386-low.o to srv_tgtobj.
20734 (i[34567]86-*-mingw*): Likewise.
20735 (arm*-*-mingw32ce*): Add case.
20736 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20737 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20738 [__MINGW32CE__] (strerror): New function.
20739 [__MINGW32CE__] (errno): Define to GetLastError.
20740 [__MINGW32CE__] (COUNTOF): New macro.
20741 (remote_open): Remove extra close call.
20742 * mem-break.c (delete_breakpoint_at): New function.
20743 * mem-break.h (delete_breakpoint_at): Declare.
20744 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20745 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20746 [USE_WIN32API] (read, write): Add char* casts.
20747 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20748 * server.h: Include wincecompat.h on Windows CE.
20749 [HAVE_ERRNO_H]: Check.
20750 (perror): Declare if not declared.
20751 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20752 (perror_with_name): Remove errno declaration.
20753 * wincecompat.h: New.
20754 * wincecompat.c: New.
20755 * win32-low.h: New.
20756 * win32-arm-low.c: New.
20757 * win32-i386-low.c: New.
20758 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20759 (OUTMSG2): Make it safe.
20761 (COUNTOF): New macro.
20762 (NUM_REGS): Get it from the low target.
20763 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20764 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20765 (thread_rec): Let low target handle debug registers.
20766 (child_add_thread): Likewise.
20767 (child_init_thread_list): Likewise.
20768 (continue_one_thread): Likewise.
20770 (do_child_fetch_inferior_registers): Move to ...
20771 * win32-i386-low.c: ... here, and rename to ...
20772 (do_fetch_inferior_registers): ... this.
20773 * win32-low.c (child_fetch_inferior_registers):
20774 Go through the low target.
20775 (do_child_store_inferior_registers): Use regptr.
20776 (strwinerror): New function.
20777 (win32_create_inferior): Handle Windows CE.
20778 Use strwinerror instead of strerror on Windows error
20779 codes. Add program to the error output.
20780 Don't close the main thread handle on Windows CE.
20781 (win32_attach): Use coredll.dll on Windows CE.
20782 (win32_kill): Close current process and current
20784 (win32_detach): Use coredll.dll on Windows CE.
20785 (win32_resume): Let low target handle debug registers, and
20787 (handle_exception): Add/Remove initial breakpoint. Avoid
20788 non-existant WSTOPSIG on Windows CE.
20789 (win32_read_inferior_memory): Cast to remove warning.
20790 (win32_arch_string): Go through the low target.
20791 (initialize_low): Call set_breakpoint_data with the low
20792 target's breakpoint.
20793 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20794 FOP_REGNUM, mappings): Move to ...
20795 * win32-i386-low.c: ... here.
20796 * win32-low.c (win32_thread_info): Move to ...
20797 * win32-low.h: ... here.
20798 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20799 win32-arm-low.c and wincecompat.c.
20800 (all:): Add $EXEEXT.
20801 (install-only:): Likewise.
20802 (gdbserver:): Likewise.
20803 (gdbreplay:): Likewise.
20804 * config.in: Regenerate.
20805 * configure: Regenerate.
20807 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20809 * win32-low.c: Rename typedef thread_info to
20810 win32_thread_info throughout.
20812 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20814 * win32-i386-low.c: Rename to ...
20815 * win32-low.c: ... this.
20816 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20817 * Makefile.in: Likewise.
20819 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20821 * remote-utils.c (monitor_output): Constify msg parameter.
20822 * server.h (monitor_output): Likewise.
20823 * win32-i386-low.c (handle_output_debug_string): New.
20824 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20825 handle_output_debug_string.
20826 (get_child_debug_event): Likewise.
20828 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20830 * server.c (main): Correct strtoul check.
20832 2007-03-27 Jon Ringle <jon@ringle.org>
20834 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20836 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20838 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20840 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20842 * terminal.h: Check HAVE_SGTTY_H.
20844 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20846 * remote-utils.c (remote_open): Print out the assigned port number.
20848 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20850 * remote-utils.c (monitor_output): New function.
20851 * server.c (debug_threads): Define here.
20852 (monitor_show_help): New function.
20853 (handle_query): Handle qRcmd.
20854 (main): Do not handle 'd' packet.
20855 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20856 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20859 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20861 * Makefile.in (EXEEXT): New.
20862 (clean): Use $(EXEEXT).
20864 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20866 * target.h (target_ops): Rename send_signal to request_interrupt,
20867 and remove enum target_signal parameter.
20868 * linux-low.c (linux_request_interrupt): Rename from
20869 linux_send_signal, and always send SIGINT.
20870 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20871 and always send SIGINT.
20872 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20874 (input_interrupt): Likewise.
20876 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20878 * server.c (get_features_xml): Check if target implemented
20880 * win32-i386-low.c (win32_arch_string): New.
20881 (win32_target_ops): Add win32_arch_string as arch_string member.
20883 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20885 * spu-low.c (spu_arch_string): New.
20886 (spu_target_ops): Add spu_arch_string.
20888 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20890 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20891 * configure.ac: Do not check for terminal.h.
20892 * configure, config.in: Regenerated.
20894 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20896 * Makefile.in (OBS): Add $(XML_BUILTIN).
20897 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20899 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20900 (arm-with-iwmmxt.c): New.
20901 * config.in, configure: Regenerate.
20902 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20903 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20904 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20905 (arm*-*-linux*): Add iWMMXt and regset support.
20906 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20907 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20908 (arm_store_wmmxregset, target_regsets): New.
20909 * server.c (get_features_xml): Take annex argument. Check builtin
20911 (handle_query): Handle multiple annexes.
20913 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20915 * remote-utils.c [USE_WIN32API] (read, write): Define.
20916 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20919 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20921 * linux-i386-low.c (the_low_target): Set arch_string.
20922 * linux-x86-64-low.c (the_low_target): Likewise.
20923 * linux-low.c (linux_arch_string): New.
20924 (linux_target_ops): Add it.
20925 * linux-low.h (struct linux_target_ops): Add arch_string.
20926 * server.c (write_qxfer_response): Use const void * for DATA.
20927 (get_features_xml): New.
20928 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20929 * target.h (struct target_ops): Add arch_string method.
20931 2007-01-03 Denis Pilat <denis.pilat@st.com>
20932 Daniel Jacobowitz <dan@codesourcery.com>
20934 * linux-low.c (linux_kill): Handle being called with no threads.
20935 * win32-i386-low.c (win32_kill): Likewise.
20936 (get_child_debug_event): Clear current_process_handle.
20938 2006-12-30 Denis PILAT <denis.pilat@st.com>
20939 Daniel Jacobowitz <dan@codesourcery.com>
20941 * remote-utils.c (remote_open): Check the type of specified
20942 serial port devices before opening them.
20943 * server.c (main): Kill the inferior if an error occurs during
20944 the first remote_open.
20946 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20948 * README: Update supported targets.
20950 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20952 * Makefile.in (clean): Remove reg-mips64.c.
20953 (reg-mips64.c, reg-mips64.o): New rules.
20954 * configure.srv: Handle mips64. Include regset support for mips.
20955 * linux-mips-low.c (union mips_register): New.
20956 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20957 (mips_breakpoint, mips_breakpoint_at): Use int.
20958 (mips_collect_register, mips_supply_register)
20959 (mips_collect_register_32bit, mips_supply_register_32bit)
20960 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20961 (mips_store_fpregset, target_regsets): New.
20962 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20964 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20966 * configure.srv: Add target "spu*-*-*".
20967 * Makefile.in (clean): Remove reg-spu.c.
20968 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20969 * spu-low.c: New file.
20971 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20973 * configure.ac: Correct td_thr_tls_get_addr test.
20974 * configure: Regenerated.
20976 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20978 * linux-low.c (linux_wait_for_event): Reformat. Use the
20979 pass_signals array.
20980 * remote-utils.c (decode_address_to_semicolon): New.
20981 * server.c (pass_signals, handle_general_set): New.
20982 (handle_query): Mention QPassSignals for qSupported.
20983 (main): Call handle_general_set.
20984 * server.h (pass_signals, decode_address_to_semicolon): New.
20986 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20988 * server.c (handle_query): Correct error handling for read_auxv.
20990 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20992 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20993 and srv_linux_thread_db to yes.
20994 * linux-s390-low.c (s390_fill_gregset): New function.
20995 (target_regsets): Define data structure.
20997 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20999 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21000 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21001 * config.in, configure: Regenerated.
21002 * inferiors.c (gdb_id_to_thread): New function.
21003 (gdb_id_to_thread_id): Use it.
21004 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21005 * linux-low.h (struct process_info): Add th member.
21006 (thread_db_get_tls_address): New prototype.
21007 * remote-utils.c (decode_address): Make non-static.
21008 * server.c (handle_query): Handle qGetTLSAddr.
21009 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21010 * target.h (struct target_ops): Add get_tls_address.
21011 * thread-db.c (maybe_attach_thread): Save the thread handle.
21012 (thread_db_get_tls_address): New.
21014 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21016 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21017 (linux_resume_one_process): Take a siginfo_t *. Update all
21018 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21019 (struct pending_signals): Add a siginfo_t.
21020 (linux_wait_for_process): Always set last_status.
21021 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21022 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21023 * linux-low.h (struct process_info): Add last_status.
21025 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21027 * remote-utils.c (try_rle): New function.
21028 (putpkt_binary): Use it.
21030 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21032 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21033 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21034 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21035 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21036 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21039 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21041 * server.c (terminal_fd): New variable.
21042 (old_foreground_pgrp): Likewise.
21043 (restore_old_foreground_pgrp): New function.
21044 (start_inferior): Record the terminal file descriptor in terminal_fd
21045 and its original foreground group in old_foreground_pgrp. Register
21046 restore_old_foreground_pgrp with atexit().
21048 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21050 * server.c (handle_query): Correct qPart to qXfer.
21052 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21054 * configure.ac: Check for more headers which are missing on
21055 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21056 * configure.srv: Add Cygwin and mingw32.
21057 * remote-utils.c: Don't include headers unconditionally which
21058 are missing on mingw32. Include <winsock.h> for mingw32.
21059 (remote_open): Adjust for mingw32 support. Flush
21060 standard error after writing to it.
21061 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21062 (unblock_async_io, enable_async_io, disable_async_io)
21063 (readchar, getpkt): Update for Winsock support.
21064 (prepare_resume_reply): Expect a protocol signal number.
21065 * server.c: Disable <sys/wait.h> on mingw32.
21066 (start_inferior): Adjust for mingw32 support. Flush
21067 standard error after writing to it.
21068 (attach_inferior): Likewise. Use protocol signal
21070 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21072 * win32-i386-low.c: New file.
21073 * Makefile.in (XM_CLIBS): Set.
21074 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21075 (win32-i386-low.o): New dependency rule.
21076 * linux-low.c (linux_wait): Use target signal numbers.
21077 * target.h (struct target_ops): Doc fix.
21078 * server.h (target_signal_to_name): New prototype.
21079 * gdbreplay.c: Don't include headers unconditionally which
21080 are missing on mingw32. Include <winsock.h> for mingw32.
21081 (remote_close, remote_open): Adjust for Winsock support.
21082 * configure, config.in: Regenerated.
21084 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21086 * server.c (decode_xfer_read, write_qxfer_response): New.
21087 (handle_query): Take a packet length argument. Handle
21088 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21089 the qSupported response.
21090 (main): Update call to handle_query.
21092 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21094 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21095 (putpkt_binary): Renamed from putpkt and adjusted for binary
21097 (putpkt): New wrapper for putpkt_binary.
21098 (readchar): Don't mask off the high bit.
21099 (decode_X_packet): New function.
21100 * server.c (main): Call putpkt_binary if a handler sets the packet
21101 length. Save the length of the incoming packet. Handle 'X'.
21102 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21104 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21106 * server.c (handle_query): Handle qSupported.
21108 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21110 * remote-utils.c (all_symbols_looked_up): New variable.
21111 (look_up_one_symbol): Check it.
21112 * server.h (look_up_one_symbol): New declaration.
21113 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21115 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21117 * Makefile.in (linux-arm-low.o): Update dependencies.
21118 * linux-arm-low.c: Include "gdb_proc_service.h".
21119 (PTRACE_GET_THREAD_AREA): Define.
21120 (ps_get_thread_area): New function.
21122 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21124 * configure.srv (m68k*-*-uclinux*): New target.
21125 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21126 (linux_resume_one_process): Remove extraneous cast.
21127 (linux_read_offsets): New.
21128 (linux_target_op): Add linux_read_offsets on mmuless systems.
21129 * server.c (handle_query): Add qOffsets logic.
21130 * target.h (struct target_ops): Add read_offsets.
21132 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21134 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21135 (PTRACE_GET_THREAD_AREA): Define.
21136 (ps_get_thread_area): New function.
21137 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21138 (linux-x86-64-low.o): Update.
21140 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21142 * configure.ac: Remove checks for prfpregset_t.
21143 * gdb_proc_service.h: New file.
21144 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21145 new "gdb_proc_service.h".
21146 * proc-service.c: Likewise.
21147 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21148 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21149 * Makefile.in (gdb_proc_service_h): Updated.
21150 * configure, config.in: Regenerated.
21152 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21154 * remote-utils.c (prepare_resume_reply): Move declaration
21155 of gdb_id_from_wait to the top of the block.
21157 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21159 * linux-low.c (regsets_store_inferior_registers): Read the regset
21160 from the target before filling it.
21162 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21164 * server.c (attach_inferior): Return SIGTRAP for a successful
21167 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21169 * Makefile.in (OBS): Add version.o.
21170 (STAGESTUFF): Delete.
21171 (version.o): Add dependencies.
21172 (version.c): Replace rule.
21173 (clean): Remove version.c.
21174 * server.c (gdbserver_version): New.
21175 (gdbserver_usage): Use printf.
21176 (main): Handle --version and --help.
21177 * server.h (version, host_name): Add declarations.
21179 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21191 * linux-x86-64-low.c:
21193 * linux-s390-low.c:
21194 * linux-ppc64-low.c:
21196 * linux-mips-low.c:
21197 * linux-m68k-low.c:
21198 * linux-m32r-low.c:
21201 * linux-ia64-low.c:
21202 * linux-i386-low.c:
21203 * linux-crisv32-low.c:
21215 * gdbserver.1: Add (C) after Copyright. Update the FSF
21218 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21220 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21221 (arm_breakpoint_at): Recognize both breakpoints.
21222 (the_low_target): Use the correct breakpoint instruction.
21224 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21226 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21227 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21228 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21229 (the_low_target): Update.
21231 2005-10-25 Andreas Schwab <schwab@suse.de>
21233 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21235 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21236 (ia64_num_regs): Reduce to 462.
21238 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21240 * acinclude.m4: Correct quoting.
21241 * aclocal.m4: Regenerated.
21243 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21244 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21245 (thread_db_init): Call thread_db_err_str.
21246 * configure.ac: Check for TD_VERSION.
21247 * config.in, configure: Regenerated.
21249 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21251 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21253 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21255 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21256 is not available. Define HAVE_PTRACE_GETREGS if it is.
21257 * config.in, configure: Regenerated.
21258 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21259 * linux-i386-low.c, linux-m68k-low.c: Update to use
21260 HAVE_PTRACE_GETREGS.
21261 * linux-low.c (regsets_fetch_inferior_registers)
21262 (regsets_store_inferior_registers): Only return 0 if we processed
21264 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21265 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21267 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21269 * inferiors.c (struct thread_info): Add gdb_id.
21270 (add_thread): Add gdb_id argument.
21271 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21272 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21273 calls to add_thread.
21274 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21275 * server.c (handle_query): Use thread_to_gdb_id.
21276 (handle_v_cont, main): Use gdb_id_to_thread_id.
21277 * server.h (add_thread): Update prototype.
21278 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21281 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21283 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21284 left-padded registers.
21285 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21286 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21288 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21290 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21291 * configure: Regenerate.
21292 * config.in: Regenerate.
21293 * server.h (NEED_DECLARATION_STRERROR):
21294 Replace with !HAVE_DECL_STRERROR.
21296 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21298 * linux-low.c (linux_wait, linux_send_signal): Don't test
21299 an unsigned long variable for > 0 if it could be MAX_ULONG.
21300 * server.c (myresume): Likewise.
21301 * target.c (set_desired_inferior): Likewise.
21303 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21305 * configure.ac: Simplify and improve check for socklen_t.
21306 * configure, config.in: Regenerate.
21308 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21310 * acconfig.h: Remove.
21311 * configure.ac: Add a test for socklen_t. Use three-argument
21312 AC_DEFINE throughout.
21313 * config.in: Regenerated using autoheader 2.59.
21314 * configure: Regenerated.
21316 * gdbreplay.c (socklen_t): Provide a default.
21317 (remote_open): Use socklen_t.
21318 * remote-utils.c (socklen_t): Provide a default.
21319 (remote_open): Use socklen_t.
21320 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21323 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21325 * linux-low.c (linux_read_memory, linux_write_memory)
21326 (linux_read_auxv): Likewise.
21327 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21328 (check_mem_write): Likewise.
21329 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21331 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21332 (registers_from_string, register_data): Likewise.
21333 * server.c (handle_query, main): Likewise.
21334 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21335 (decode_M_packet): Likewise.
21336 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21337 * target.h (struct target_ops): Update read_memory, write_memory,
21339 (read_inferior_memory, write_inferior_memory): Update.
21340 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21341 to unsigned char *.
21342 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21343 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21344 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21345 linux-s390-low.c, linux-sh-low.c: Update for changes in
21346 read_inferior_memory and the_low_target->breakpoint.
21348 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21350 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21351 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21352 * configure.srv: Add powerpc64-*-linux*.
21353 * linux-ppc64-low.c: New file.
21355 2005-05-23 Orjan Friberg <orjanf@axis.com>
21357 * linux-cris-low.c: New file with support for CRIS.
21358 * linux-crisv32-low.c: Ditto for CRISv32.
21359 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21360 (clean): Add reg-cris.c and reg-crisv32.c.
21361 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21362 reg-crisv32.o, and reg-crisv32.c to make rules.
21363 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21364 recognized targets.
21366 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21368 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21369 of sizeof (PTRACE_XFER_TYPE).
21370 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21372 2005-05-12 Orjan Friberg <orjanf@axis.com>
21374 * target.h (struct target_ops): Add insert_watchpoint,
21375 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21376 pointers for hardware watchpoint support.
21377 * linux-low.h (struct linux_target_ops): Ditto.
21378 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21379 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21380 to linux_target_ops.
21381 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21383 * server.c (main): Recognize 'Z' and 'z' packets.
21385 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21387 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21388 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21389 (the_low_target): Add new members.
21391 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21393 * proc-service.c (ps_lgetregs): Search all_processes instead of
21396 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21398 * server.c (start_inferior): Change return type to int.
21399 (attach_inferior): Change sigptr to int *.
21400 (handle_v_cont, handle_v_requests): Change signal to int *.
21401 (main): Change signal to int.
21403 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21405 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21406 * configure.srv: Add m32r*-*-linux*.
21407 * linux-m32r-low.c: New file.
21409 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21411 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21413 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21415 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21416 Take unsigned long arguments for PIDs.
21417 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21418 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21419 (wait_for_sigstop, linux_resume_one_process)
21420 (regsets_fetch_inferior_registers, linux_send_signal)
21421 (linux_read_auxv): Likewise. Update the types of variables holding
21422 PIDs. Update format string specifiers.
21423 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21424 * remote-utils.c (prepare_resume_reply): Likewise.
21425 * server.c (cont_thread, general_thread, step_thread)
21426 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21428 (handle_query): Update format specifiers.
21429 (handle_v_cont, main): Use strtoul for thread IDs.
21430 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21431 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21432 (general_thread, step_thread, thread_from_wait)
21433 (old_thread_from_wait): Update.
21434 * target.h (struct thread_resume): Use unsigned long for THREAD.
21435 (struct target_ops): Use unsigned long for arguments to attach and
21438 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21440 * acinclude.m4: Include bfd/bfd.m4 directly.
21441 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21442 <agriffis@toolchain.org>.
21443 * aclocal.m4, configure: Regenerated.
21445 2005-01-07 Andrew Cagney <cagney@gnu.org>
21447 * configure.ac: Rename configure.in, require autoconf 2.59.
21448 * configure: Re-generate.
21450 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21452 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21453 LIBS when finished.
21454 * aclocal.m4: Regenerated.
21455 * configure: Regenerated.
21457 2004-11-21 Andreas Schwab <schwab@suse.de>
21459 * linux-m68k-low.c (m68k_num_gregs): Define.
21460 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21461 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21462 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21463 (m68k_breakpoint_at): New. Add to the_low_target.
21465 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21466 srv_linux_thread_db to yes.
21468 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21470 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21471 (ARCH_SET_FS): Likewise.
21472 (ARCH_GET_FS): Likewise.
21473 (ARCH_GET_GS): Likewise.
21475 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21477 * linux-i386-low.c (ps_get_thread_area): New.
21478 * linux-x86-64-low.c (ps_get_thread_area): New.
21479 * linux-low.c: Include <sys/syscall.h>.
21480 (linux_kill_one_process): Don't kill the first thread here.
21481 (linux_kill): Kill the first thread here.
21482 (kill_lwp): New function.
21483 (send_sigstop, linux_send_signal): Use it.
21484 * proc-service.c: Clean up #ifdefs.
21485 (fpregset_info): Delete.
21486 (ps_lgetregs): Update and enable implementation.
21487 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21489 * remote-utils.c (struct sym_cache, symbol_cache): New.
21490 (input_interrupt): Print a clearer message.
21491 (async_io_enabled): New variable.
21492 (enable_async_io, disable_async_io): Use it. Update comments.
21493 (look_up_one_symbol): Use the symbol cache.
21494 * thread-db.c (thread_db_look_up_symbols): New function.
21495 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21497 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21499 * configure.in: Test for -rdynamic.
21500 * configure: Regenerated.
21501 * Makefile (INTERNAL_LDFLAGS): New.
21502 (gdbserver, gdbreplay): Use it.
21504 2004-09-02 Andrew Cagney <cagney@gnu.org>
21506 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21508 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21510 * linux-low.c (linux_wait): Clear all_processes list also.
21512 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21514 * linux-low.c: Include <errno.h>. Remove extern declaration of
21517 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21519 * gdbreplay.c, server.h, utils.c: Update copyright years.
21521 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21523 * server.c (main): Print child status or termination signal from
21524 variable 'signal', not 'sig'.
21526 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21528 * linux-low.c (linux_read_memory): Change return type to
21529 int. Check for and return error from ptrace().
21530 * target.c (read_inferior_memory): Change return type to int. Pass
21531 back return status from the_target->read_memory().
21532 * target.h (struct target_ops): Adapt *read_memory() prototype.
21534 (read_inferior_memory): Adapt prototype.
21535 * server.c (main): Return an error packet if
21536 read_inferior_memory() returns an error.
21538 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21540 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21541 Unify with other clean targets.
21543 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21545 * server.c (handle_v_cont): Call set_desired_inferior.
21547 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21549 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21551 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21553 * linux-low.c (linux_wait): Unblock async I/O.
21554 (linux_resume): Block and enable async I/O.
21555 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21556 * server.h (block_async_io, unblock_async_io): Add prototypes.
21558 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21560 * remote-utils.c (remote_open): Print a status notice after
21561 opening a TCP port.
21562 * server.c (attach_inferior): Print a status notice after
21565 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21567 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21569 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21571 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21573 * server.c, target.h: Update copyright years.
21575 2004-02-25 Roland McGrath <roland@redhat.com>
21577 * target.h (struct target_ops): New member `read_auxv'.
21578 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21579 * linux-low.c (linux_read_auxv): New function.
21580 (linux_target_ops): Initialize `read_auxv' member to that.
21582 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21584 Committed by Jim Blandy <jimb@redhat.com>.
21586 * linux-s390-low.c (s390_num_regs): Update.
21587 (s390_regmap): Remove control registers. Use __s390x__ predefine
21588 instead of GPR_SIZE to distiguish s390 and s390x targets.
21590 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21592 * linux-low.c: Update copyright year.
21593 (check_removed_breakpoint): Clear pending_is_breakpoint.
21594 (linux_set_resume_request, linux_queue_one_thread)
21595 (resume_status_pending_p): New functions.
21596 (linux_continue_one_thread): Use process->resume.
21597 (linux_resume): Only resume threads if there are no pending events.
21598 * linux-low.h (struct process_info): Add resume request
21601 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21603 * regcache.c (new_register_cache): Clear the allocated register
21604 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21606 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21608 * linux-low.c (linux_resume): Take a struct thread_resume *
21610 (linux_wait): Update call.
21611 (resume_ptr): New static variable.
21612 (linux_continue_one_thread): Renamed from
21613 linux_continue_one_process. Use resume_ptr.
21614 (linux_resume): Use linux_continue_one_thread.
21615 * server.c (handle_v_cont, handle_v_requests): New functions.
21616 (myresume): New function.
21617 (main): Handle 'v' case.
21618 * target.h (struct thread_resume): New type.
21619 (struct target_ops): Change argument of "resume" to struct
21621 (myresume): Delete macro.
21623 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21625 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21626 (uninstall): Support DESTDIR.
21628 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21630 * configure.srv: Add xscale*linux copy of arm*linux entry.
21632 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21634 * linux-arm-low.c (arm_reinsert_addr): New function.
21635 (the_low_target): Add arm_reinsert_addr.
21637 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21639 * mem-break.c: Remove whitespace at end of file.
21641 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21643 * configure.in: Check whether we need to prototype strerror.
21644 * server.h: Optionally prototype strerror.
21645 * gdbreplay.c (perror_with_name): Use strerror.
21646 * linux-low.c (linux_attach_lwp): Use strerror.
21647 * utils.c (perror_with_name): Use strerror.
21648 * config.in, configure: Regenerated.
21650 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21652 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21653 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21655 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21657 * Makefile.in (SFILES): Update.
21658 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21659 low-sun3.c: Remove files.
21661 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21663 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21664 (linux_detach_one_process, linux_detach): New functions.
21665 (linux_target_ops): Add linux_detach.
21666 * server.c (main): Handle 'D' packet.
21667 * target.h (struct target_ops): Add "detach" member.
21668 (detach_inferior): Define.
21670 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21672 From Kelley Cook <kelleycook@wideopenwest.com>:
21673 * configure.srv: Accept i[34567]86 variants.
21675 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21677 * linux-low.c (linux_wait_for_event): Correct comment typos.
21678 (linux_resume_one_process): Call check_removed_breakpoint.
21679 (linux_send_signal): New function.
21680 (linux_target_ops): Add linux_send_signal.
21681 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21683 * target.h (struct target_ops): Add send_signal.
21685 2003-05-29 Jim Blandy <jimb@redhat.com>
21687 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21688 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21689 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21690 away part of the register's value.
21692 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21694 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21695 (linux_wait_for_event, linux_init_signals): Likewise.
21697 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21699 * configure.in: Check for stdlib.h.
21700 * configure: Regenerated.
21701 * config.in: Regenerated.
21703 2003-01-04 Andreas Schwab <schwab@suse.de>
21705 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21707 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21709 * Makefile.in: Remove obsolete code.
21711 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21713 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21714 defined(PT_FPR0_HI).
21716 2002-11-17 Stuart Hughes <seh@zee2.com>
21718 * linux-arm-low.c (arm_num_regs): Increase.
21719 (arm_regmap): Include status register.
21721 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21723 * linux-low.c (register_addr): Remove incorrect -1 check.
21725 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21727 * linux-low.c (linux_create_inferior): Call setpgid. Return
21729 (unstopped_p, linux_signal_pid): Remove.
21730 (linux_target_ops): Remove linux_signal_pid.
21731 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21732 global instead of target method.
21733 * target.h (struct target_ops): Remove signal_pid. Update comment
21734 for create_inferior.
21735 * server.c (signal_pid): New variable.
21736 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21737 gdbserver. Set the child to be the foreground process group.
21738 (attach_inferior): Set signal_pid.
21740 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21742 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21744 2002-08-20 Jim Blandy <jimb@redhat.com>
21746 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21749 2002-08-01 Andrew Cagney <cagney@redhat.com>
21751 * Makefile.in: Make chill references obsolete.
21753 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21755 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21756 * configure: Regenerate.
21757 * config.in: Regenerate.
21759 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21761 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21762 (perror_with_name, remote_close, remote_open, expect, play): Static.
21764 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21766 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21767 byte offsets instead of an array of indexes.
21768 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21770 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21772 * regcache.c: Add comment.
21774 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21776 * thread-db.c: New file.
21777 * proc-service.c: New file.
21778 * acinclude.m4: New file.
21779 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21780 proc-service.o, and thread-db.o.
21781 (linux-low.o): Add USE_THREAD_DB.
21782 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21783 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21784 * aclocal.m4: Regenerated.
21785 * config.in: Regenerated.
21786 * configure: Regenerated.
21787 * configure.in: Check for proc_service.h, sys/procfs.h,
21788 thread_db.h, and linux/elf.h headrs.
21789 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21790 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21791 Check for -lthread_db and thread support.
21792 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21793 PowerPC, and SuperH.
21794 * i387-fp.c: Constify arguments.
21795 * i387-fp.h: Likewise.
21796 * inferiors.c: (struct thread_info): Renamed from
21797 `struct inferior_info'. Remove PID member. Use generic inferior
21798 list header. All uses updated.
21799 (inferiors, signal_pid): Removed.
21800 (all_threads): New variable.
21801 (get_thread): Define.
21802 (add_inferior_to_list): New function.
21803 (for_each_inferior): New function.
21804 (change_inferior_id): New function.
21805 (add_inferior): Removed.
21806 (remove_inferior): New function.
21807 (add_thread): New function.
21808 (free_one_thread): New function.
21809 (remove_thread): New function.
21810 (clear_inferiors): Use for_each_inferior and free_one_thread.
21811 (find_inferior): New function.
21812 (find_inferior_id): New function.
21813 (inferior_target_data): Update argument type.
21814 (set_inferior_target_data): Likewise.
21815 (inferior_regcache_data): Likewise.
21816 (set_inferior_regcache_data): Likewise.
21817 * linux-low.c (linux_bp_reinsert): Remove.
21818 (all_processes, stopping_threads, using_thrads)
21819 (struct pending_signals, debug_threads, pid_of): New.
21820 (inferior_pid): Replace with macro.
21821 (struct inferior_linux_data): Remove.
21822 (get_stop_pc, add_process): New functions.
21823 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21824 Use add_process and add_thread.
21825 (linux_attach_lwp): New function, based on old linux_attach. Use
21826 add_process and add_thread. Set stop_expected for new threads.
21827 (linux_attach): New function.
21828 (linux_kill_one_process): New function.
21829 (linux_kill): Kill all LWPs.
21830 (linux_thread_alive): Use find_inferior_id.
21831 (check_removed_breakpoints, status_pending_p): New functions.
21832 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21833 Update. Use WNOHANG. Wait for cloned processes also. Update process
21834 struct for the found process.
21835 (linux_wait_for_event): New function.
21836 (linux_wait): Use it. Support LWPs.
21837 (send_sigstop, wait_for_sigstop, stop_all_processes)
21838 (linux_resume_one_process, linux_continue_one_process): New functions.
21839 (linux_resume): Support LWPs.
21840 (REGISTER_RAW_SIZE): Remove.
21841 (fetch_register): Use register_size instead. Call supply_register.
21842 (usr_store_inferior_registers): Likewise. Call collect_register.
21843 Fix recursive case.
21844 (regsets_fetch_inferior_registers): Improve error message.
21845 (regsets_store_inferior_registers): Add debugging.
21846 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21847 (unstopped_p, linux_signal_pid): New functions.
21848 (linux_target_ops): Add linux_signal_pid.
21849 (linux_init_signals): New function.
21850 (initialize_low): Call it. Initialize using_threads.
21851 * regcache.c (inferior_regcache_data): Add valid
21853 (get_regcache): Fetch registers lazily. Add fetch argument
21854 and update all callers.
21855 (regcache_invalidate_one, regcache_invalidate): New
21857 (new_register_cache): Renamed from create_register_cache.
21858 Return the new regcache.
21859 (free_register_cache): Change argument to a void *.
21860 (registers_to_string, registers_from_string): Call get_regcache
21861 with fetch flag set.
21862 (register_data): Make static. Pass fetch flag to get_regcache.
21863 (supply_register): Call get_regcache with fetch flag clear.
21864 (collect_register): Call get_regcache with fetch flag set.
21865 (collect_register_as_string): New function.
21866 * regcache.h: Update.
21867 * remote-utils.c (putpkt): Flush after debug output and use
21869 Handle input interrupts while waiting for an ACK.
21870 (input_interrupt): Use signal_pid method.
21871 (getpkt): Flush after debug output and use stderr.
21872 (outreg): Use collect_register_as_string.
21873 (new_thread_notify, dead_thread_notify): New functions.
21874 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21875 and general_thread.
21876 (look_up_one_symbol): Flush after debug output.
21877 * server.c (step_thread, server_waiting): New variables.
21878 (start_inferior): Don't use signal_pid. Update call to mywait.
21879 (attach_inferior): Update call to mywait.
21880 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21881 (main): Don't fetch/store registers explicitly. Use
21882 set_desired_inferior. Support proposed ``Hs'' packet. Update
21884 * server.h: Update.
21885 (struct inferior_list, struct_inferior_list_entry): New.
21886 * target.c (set_desired_inferior): New.
21887 (write_inferior_memory): Constify.
21888 (mywait): New function.
21889 * target.h: Update.
21890 (struct target_ops): New signal_pid method.
21891 (mywait): Removed macro, added prototype.
21893 * linux-low.h (regset_func): Removed.
21894 (regset_fill_func, regset_store_func): New.
21895 (enum regset_type): New.
21896 (struct regset_info): Add type field. Use new operation types.
21897 (struct linux_target_ops): stop_pc renamed to get_pc.
21898 Add decr_pc_after_break and breakpoint_at.
21899 (get_process, get_thread_proess, get_process_thread)
21900 (strut process_info, all_processes, linux_attach_lwp)
21901 (thread_db_init): New.
21903 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21904 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21905 (the_low_target): Add new members.
21906 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21907 (i386_store_fpxregset): Constify.
21908 (target_regsets): Add new kind identifier.
21909 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21910 (i386_set_pc): Add debugging.
21911 (i386_breakpoint_at): New function.
21912 (the_low_target): Add new members.
21913 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21914 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21915 (mips_breakpoint_at): New.
21916 (the_low_target): Add new members.
21917 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21918 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21919 (the_low_target): Add new members.
21920 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21921 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21922 (the_low_target): Add new members.
21923 * linux-x86-64-low.c (target_regsets): Add new kind
21926 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21928 From Martin Pool <mbp@samba.org>:
21929 * server.c (gdbserver_usage): New function.
21932 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21934 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21935 stop_at -> stop_pc.
21937 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21939 * Makefile.in: Remove obsolete code.
21941 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21943 * linux-low.c (regsets_fetch_inferior_registers),
21944 (regsets_store_inferior_registers): Removed cast to int from
21946 * regcache.h: Added declaration of struct inferior_info.
21948 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21950 * inferiors.c (struct inferior_info): Add regcache_data.
21951 (add_inferior): Call create_register_cache.
21952 (clear_inferiors): Call free_register_cache.
21953 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21954 * regcache.c (struct inferior_regcache_data): New.
21955 (registers): Remove.
21956 (get_regcache): New function.
21957 (create_register_cache, free_register_cache): New functions.
21958 (set_register_cache): Don't initialize the register cache here.
21959 (registers_to_string, registers_from_string, register_data): Call
21961 * regcache.h: Add prototypes.
21962 * server.h: Likewise.
21964 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21966 * mem-break.c: New file.
21967 * mem-break.h: New file.
21968 * Makefile.in: Add mem-break.o rule; update server.h
21970 * inferiors.c (struct inferior_info): Add target_data
21972 (clear_inferiors): Free target_data member if set.
21973 (inferior_target_data, set_inferior_target_data): New functions.
21974 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21975 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21976 * linux-low.c (linux_bp_reinsert): New variable.
21977 (struct inferior_linux_data): New.
21978 (linux_create_inferior): Use set_inferior_target_data.
21979 (linux_attach): Likewise. Call add_inferior.
21980 (linux_wait_for_one_inferior): New function.
21981 (linux_wait): Call it.
21982 (linux_write_memory): Add const.
21983 (initialize_low): Call set_breakpoint_data.
21984 * linux-low.h (struct linux_target_ops): Add breakpoint
21986 * server.c (attach_inferior): Remove extra add_inferior
21988 * server.h: Include mem-break.h. Update inferior.c
21990 * target.c (read_inferior_memory)
21991 (write_inferior_memory): New functions.
21992 * target.h (read_inferior_memory)
21993 (write_inferior_memory): Change macros to prototypes.
21994 (struct target_ops): Update comments. Add const to write_memory
21997 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21999 * linux-low.c (usr_store_inferior_registers): Support
22000 registers which are allowed to fail to store.
22001 * linux-low.h (linux_target_ops): Likewise.
22002 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22003 (ppc_cannot_store_register): FPSCR may not be storable.
22005 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22007 * server.h: Include <string.h> if HAVE_STRING_H.
22008 * ChangeLog: Correct paths in last ChangeLog entry.
22010 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22012 * linux-low.h: Remove obsolete prototypes.
22013 (struct linux_target_ops): New.
22014 (extern the_low_target): New.
22015 * linux-low.c (num_regs, regmap): Remove declarations.
22016 (register_addr): Use the_low_target explicitly.
22017 (fetch_register): Likewise.
22018 (usr_fetch_inferior_registers): Likewise.
22019 (usr_store_inferior_registers): Likewise.
22020 * linux-arm-low.c (num_regs): Remove.
22021 (arm_num_regs): Define.
22022 (arm_regmap): Renamed from regmap, made static.
22023 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22025 (arm_cannot_store_register): Renamed from cannot_store_register,
22027 (the_low_target): New.
22028 * linux-i386-low.c (num_regs): Remove.
22029 (i386_num_regs): Define.
22030 (i386_regmap): Renamed from regmap, made static.
22031 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22033 (i386_cannot_store_register): Renamed from cannot_store_register,
22035 (the_low_target): New.
22036 * linux-ia64-low.c (num_regs): Remove.
22037 (ia64_num_regs): Define.
22038 (ia64_regmap): Renamed from regmap, made static.
22039 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22041 (ia64_cannot_store_register): Renamed from cannot_store_register,
22043 (the_low_target): New.
22044 * linux-m68k-low.c (num_regs): Remove.
22045 (m68k_num_regs): Define.
22046 (m68k_regmap): Renamed from regmap, made static.
22047 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22049 (m68k_cannot_store_register): Renamed from cannot_store_register,
22051 (the_low_target): New.
22052 * linux-mips-low.c (num_regs): Remove.
22053 (mips_num_regs): Define.
22054 (mips_regmap): Renamed from regmap, made static.
22055 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22057 (mips_cannot_store_register): Renamed from cannot_store_register,
22059 (the_low_target): New.
22060 * linux-ppc-low.c (num_regs): Remove.
22061 (ppc_num_regs): Define.
22062 (ppc_regmap): Renamed from regmap, made static.
22063 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22065 (ppc_cannot_store_register): Renamed from cannot_store_register,
22067 (the_low_target): New.
22068 * linux-s390-low.c (num_regs): Remove.
22069 (s390_num_regs): Define.
22070 (s390_regmap): Renamed from regmap, made static.
22071 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22073 (s390_cannot_store_register): Renamed from cannot_store_register,
22075 (the_low_target): New.
22076 * linux-sh-low.c (num_regs): Remove.
22077 (sh_num_regs): Define.
22078 (sh_regmap): Renamed from regmap, made static.
22079 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22081 (sh_cannot_store_register): Renamed from cannot_store_register,
22083 (the_low_target): New.
22084 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22085 (the_low_target): New.
22087 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22089 * Makefile.in: Add stamp-h target.
22090 * configure.in: Create stamp-h.
22091 * configure: Regenerated.
22093 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22095 * inferiors.c: New file.
22096 * target.c: New file.
22097 * target.h: New file.
22098 * Makefile.in: Add target.o and inferiors.o. Update
22100 * linux-low.c (inferior_pid): New static variable,
22101 moved from server.c.
22102 (linux_create_inferior): Renamed from create_inferior.
22103 Call add_inferior. Return 0 on success instead of a PID.
22104 (linux_attach): Renamed from myattach.
22105 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22106 (linux_thread_alive): Renamed from mythread_alive.
22107 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22109 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22110 (regsets_store_inferior_registers): Correct error message.
22111 Add missing ``return 0''.
22112 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22113 (linux_store_registers): Renamed from store_inferior_registers.
22114 (linux_read_memory): Renamed from read_inferior_memory.
22115 (linux_write_memory): Renamed from write_inferior_memory.
22116 (linux_target_ops): New structure.
22117 (initialize_low): Call set_target_ops ().
22118 * remote-utils.c (unhexify): New function.
22119 (hexify): New function.
22120 (input_interrupt): Send signals to ``signal_pid''.
22121 * server.c (inferior_pid): Remove.
22122 (start_inferior): Update create_inferior call.
22123 (attach_inferior): Call add_inferior.
22124 (handle_query): New function.
22125 (main): Call handle_query for `q' packets.
22126 * server.h: Include "target.h". Remove obsolete prototypes.
22127 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22129 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22131 * Makefile.in: Add WARN_CFLAGS. Update configury
22133 * configure.in: Check for <string.h>
22134 * configure: Regenerate.
22135 * config.in: Regenerate.
22136 * gdbreplay.c: Include needed system headers.
22137 (remote_open): Remove strchr prototype.
22138 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22139 * regcache.c (supply_register): Change buf argument to const void *.
22140 (supply_register_by_name): Likewise.
22141 (collect_register): Change buf argument to void *.
22142 (collect_register_by_name): Likewise.
22143 * regcache.h: Add missing prototypes.
22144 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22145 * server.c (handle_query): New function.
22146 (attached): New static variable, moved out of main.
22147 (main): Quiet longjmp clobber warnings.
22148 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22149 * utils.c (error): Remove NORETURN.