1 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
3 * win32-low.cc (get_child_debug_event): Fix format string warning.
5 2020-04-13 Tom Tromey <tom@tromey.com>
7 * server.h (gdb_fildes_t): Remove typedef.
8 * remote-utils.c (remote_desc, list_desc): Now int.
9 (INVALID_DESCRIPTOR): Remove.
10 (gdb_connected, remote_close)
11 (check_remote_input_interrupt_request): Update.
12 * utils.h (pfildes): Don't declare.
13 * utils.c (pfildes): Remove.
15 2020-04-13 Tom Tromey <tom@tromey.com>
17 * server.h (handle_serial_event, handle_target_event): Update.
18 * server.c: Don't call initialize_event_loop.
19 (keep_processing_events): New global.
20 (handle_serial_event): Return void. Set keep_processing_events.
21 (handle_target_event): Return void.
22 (start_event_loop): Move from event-loop.c. Rewrite.
23 * remote-utils.c (handle_accept_event): Return void.
24 (reset_readchar): Use delete_timer.
25 (process_remaining): Return void.
26 (reschedule): Use create_timer.
27 * event-loop.h: Remove.
28 * event-loop.cc: Remove.
29 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
31 2020-04-13 Tom Tromey <tom@tromey.com>
33 * server.c (invoke_async_signal_handlers)
34 (check_async_event_handlers, flush_streams, gdb_select): New
37 2020-04-13 Tom Tromey <tom@tromey.com>
42 2020-04-08 Tom Tromey <tromey@adacore.com>
45 * win32-low.c (child_continue): Call matching_pending_stop.
46 (get_child_debug_event): Call fetch_pending_stop. Push pending
49 2020-04-08 Tom Tromey <tromey@adacore.com>
51 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
52 (win32_process_target::supports_stopped_by_sw_breakpoint):
54 * win32-low.c (win32_supports_z_point_type): Always handle
56 (win32_insert_point): Call insert_memory_breakpoint when needed.
57 (win32_remove_point): Call remove_memory_breakpoint when needed.
58 (win32_process_target::stopped_by_sw_breakpoint)
59 (win32_process_target::supports_stopped_by_sw_breakpoint): New
61 (win32_target_ops): Update.
62 (maybe_adjust_pc): New function.
63 (win32_wait): Call maybe_adjust_pc.
65 2020-04-08 Tom Tromey <tromey@adacore.com>
67 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
69 * win32-i386-low.c (the_low_target): Update.
70 * win32-arm-low.c (the_low_target): Update.
72 2020-04-08 Tom Tromey <tromey@adacore.com>
74 * win32-low.h (win32_process_target::read_pc)
75 (win32_process_target::write_pc): Declare.
76 * win32-low.c (win32_process_target::read_pc)
77 (win32_process_target::write_pc): New methods.
78 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
80 (the_low_target): Update.
81 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
83 (the_low_target): Update.
85 2020-04-08 Tom Tromey <tromey@adacore.com>
87 * win32-low.c (win32_kill, get_child_debug_event): Use
90 2020-04-08 Tom Tromey <tromey@adacore.com>
92 * win32-low.c (child_continue): Call continue_last_debug_event.
94 2020-04-08 Tom Tromey <tromey@adacore.com>
96 * win32-low.c (handle_exception): Remove.
97 (windows_nat::handle_ms_vc_exception): New function.
98 (get_child_debug_event): Add "continue_status" parameter.
100 (win32_wait): Update.
102 2020-04-08 Tom Tromey <tromey@adacore.com>
104 * win32-low.c (windows_nat::handle_load_dll): Rename from
105 handle_load_dll. No longer static.
106 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
109 2020-04-08 Tom Tromey <tromey@adacore.com>
111 * win32-low.c (handle_output_debug_string): Add parameter. Change
113 (win32_kill, get_child_debug_event): Update.
115 2020-04-08 Tom Tromey <tromey@adacore.com>
117 * win32-low.c (current_process_handle, current_process_id)
118 (main_thread_id, last_sig, current_event, siginfo_er): Move to
121 2020-04-08 Tom Tromey <tromey@adacore.com>
123 * win32-low.c (get_image_name): Remove.
124 (handle_load_dll): Update.
126 2020-04-08 Tom Tromey <tromey@adacore.com>
128 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
129 No longer static. Change parameters.
130 (child_add_thread, child_fetch_inferior_registers)
131 (child_store_inferior_registers, win32_resume)
132 (win32_get_tib_address): Update.
134 2020-04-08 Tom Tromey <tromey@adacore.com>
136 * win32-low.h (struct win32_target_ops): Use qualified names where
138 * win32-i386-low.c: Add "using namespace".
139 * win32-low.c: Add "using namespace".
140 * win32-arm-low.c: Add "using namespace".
142 2020-04-08 Tom Tromey <tromey@adacore.com>
144 * win32-low.c (delete_thread_info): Don't call CloseHandle.
146 2020-04-08 Tom Tromey <tromey@adacore.com>
148 * win32-low.c (win32_require_context, suspend_one_thread): Use
149 windows_thread_info::suspend.
150 (continue_one_thread): Use windows_thread_info::resume.
151 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
153 2020-04-08 Tom Tromey <tromey@adacore.com>
155 * win32-i386-low.c (update_debug_registers)
156 (i386_prepare_to_resume, i386_thread_added): Update.
158 2020-04-08 Tom Tromey <tromey@adacore.com>
160 * win32-low.c (child_add_thread): Use new.
161 (delete_thread_info): Use delete.
163 2020-04-08 Tom Tromey <tromey@adacore.com>
165 * win32-low.h (struct windows_thread_info): Remove.
167 2020-04-08 Tom Tromey <tromey@adacore.com>
169 * win32-low.h (struct windows_thread_info): Rename from
170 win32_thread_info. Remove typedef.
171 (struct win32_target_ops, win32_require_context): Update.
172 * win32-low.c (win32_get_thread_context)
173 (win32_set_thread_context, win32_prepare_to_resume)
174 (win32_require_context, thread_rec, child_add_thread)
175 (delete_thread_info, continue_one_thread)
176 (child_fetch_inferior_registers, child_store_inferior_registers)
177 (win32_resume, suspend_one_thread, win32_get_tib_address):
179 * win32-i386-low.c (update_debug_registers)
180 (win32_get_current_dr, i386_get_thread_context)
181 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
182 (i386_fetch_inferior_register, i386_store_inferior_register):
184 * win32-arm-low.c (arm_get_thread_context)
185 (arm_fetch_inferior_register, arm_store_inferior_register):
188 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
190 * linux-low.h (struct linux_target_ops): Remove.
191 (the_low_target): Remove.
192 * linux-x86-low.cc (the_low_target): Remove.
193 * linux-aarch64-low.cc (the_low_target): Ditto.
194 * linux-arm-low.cc (the_low_target): Ditto.
195 * linux-bfin-low.cc (the_low_target): Ditto.
196 * linux-cris-low.cc (the_low_target): Ditto.
197 * linux-crisv32-low.cc (the_low_target): Ditto.
198 * linux-ia64-low.cc (the_low_target): Ditto.
199 * linux-m32r-low.cc (the_low_target): Ditto.
200 * linux-m68k-low.cc (the_low_target): Ditto.
201 * linux-mips-low.cc (the_low_target): Ditto.
202 * linux-nios2-low.cc (the_low_target): Ditto.
203 * linux-ppc-low.cc (the_low_target): Ditto.
204 * linux-riscv-low.cc (the_low_target): Ditto.
205 * linux-s390-low.cc (the_low_target): Ditto.
206 * linux-sh-low.cc (the_low_target): Ditto.
207 * linux-sparc-low.cc (the_low_target): Ditto.
208 * linux-tic6x-low.cc (the_low_target): Ditto.
209 * linux-tile-low.cc (the_low_target): Ditto.
210 * linux-xtensa-low.cc (the_low_target): Ditto.
212 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
214 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
215 linux target define the op by overriding the declaration in
216 process_stratum_target.
218 * linux-low.h (struct linux_target_ops): Remove the op.
219 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
220 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
221 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
222 (x86_get_ipa_tdesc_idx): Turn into...
223 (x86_target::get_ipa_tdesc_idx): ...this.
224 (the_low_target): Remove the op field.
225 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
226 (ppc_get_ipa_tdesc_idx): Turn into...
227 (ppc_target::get_ipa_tdesc_idx): ...this.
228 (the_low_target): Remove the op field.
229 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
230 (s390_get_ipa_tdesc_idx): Turn into...
231 (s390_target::get_ipa_tdesc_idx): ...this.
232 (the_low_target): Remove the op field.
234 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
236 Turn the 'get_syscall_trapinfo' linux target op into a method
237 of process_stratum_target.
239 * linux-low.h (struct linux_target_ops): Remove the op.
240 (class linux_process_target) <get_syscall_trapinfo>
241 <gdb_catch_this_syscall>
242 <low_supports_catch_syscall>
243 <low_get_syscall_trapinfo>: Declare.
244 * linux-low.cc (get_syscall_trapinfo): Turn into...
245 (linux_process_target::get_syscall_trapinfo): ...this.
246 (linux_process_target::low_get_syscall_trapinfo): Define.
247 (gdb_catch_this_syscall_p): Turn into...
248 (linux_process_target::gdb_catch_this_syscall): ...this.
249 (linux_process_target::low_supports_catch_syscall): Define.
251 Update the callers below.
253 (linux_process_target::wait_1)
254 (linux_process_target::supports_catch_syscall)
256 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
257 <low_get_syscall_trapinfo>: Declare.
258 (x86_target::low_supports_catch_syscall): Define.
259 (x86_get_syscall_trapinfo): Turn into...
260 (x86_target::low_get_syscall_trapinfo): ...this.
261 (the_low_target): Remove the op field.
262 * linux-aarch64-low.cc (class aarch64_target)
263 <low_supports_catch_syscall>
264 <low_get_syscall_trapinfo>: Declare.
265 (aarch64_target::low_supports_catch_syscall): Define.
266 (aarch64_get_syscall_trapinfo): Turn into...
267 (aarch64_target::low_get_syscall_trapinfo): ...this.
268 (the_low_target): Remove the op field.
269 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
270 <low_get_syscall_trapinfo>: Declare.
271 (arm_target::low_supports_catch_syscall): Define.
272 (arm_get_syscall_trapinfo): Turn into...
273 (arm_target::low_get_syscall_trapinfo): ...this.
274 (the_low_target): Remove the op field.
275 * linux-ppc-low.cc (the_low_target): Remove the op field.
276 * linux-s390-low.cc (the_low_target): Remove the op field.
278 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
280 Remove the 'supports_hardware_single_step' linux target op and
281 override the process_stratum_target's op definition in
282 linux_process_target to return true.
284 * linux-low.h (struct linux_target_ops): Remove the op.
285 (class linux_process_target) <finish_step_over>
286 <maybe_hw_step>: Declare.
287 * linux-low.cc (can_hardware_single_step): Remove.
288 (maybe_hw_step): Turn into...
289 (linux_process_target::maybe_hw_step): ...this.
290 (finish_step_over): Turn into...
291 (linux_process_target::finish_step_over): ...this.
292 (linux_process_target::supports_hardware_single_step): Update
295 Update the callers below.
297 (linux_process_target::single_step)
298 (linux_process_target::resume_one_lwp_throw)
300 * linux-arm-low.cc (class arm_target)
301 <supports_hardware_single_step>: Declare.
302 (arm_supports_hardware_single_step): Turn into...
303 (arm_target::supports_hardware_single_step): ...this.
304 (the_low_target): Remove the op field.
305 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
306 (the_low_target): Remove the op field.
307 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
309 (the_low_target): Remove the op field.
310 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
311 (the_low_target): Remove the op field.
312 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
313 (the_low_target): Remove the op field.
314 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
315 (the_low_target): Remove the op field.
316 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
317 (the_low_target): Remove the op field.
318 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
319 (the_low_target): Remove the op field.
320 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
321 (the_low_target): Remove the op field.
322 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
323 (the_low_target): Remove the op field.
324 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
325 (the_low_target): Remove the op field.
326 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
327 (the_low_target): Remove the op field.
328 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
330 (the_low_target): Remove the op field.
332 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
334 Turn the 'supports_range_stepping' linux target op into a method
335 of linux_process_target.
337 * linux-low.h (struct linux_target_ops): Remove the op.
338 (class linux_process_target) <low_supports_range_stepping>: Declare.
339 * linux-low.cc (linux_process_target::low_supports_range_stepping):
341 (linux_process_target::supports_range_stepping): Update the call
343 * linux-x86-low.cc (class x86_target)
344 <low_supports_range_stepping>: Declare.
345 (x86_supports_range_stepping): Turn into...
346 (x86_target::low_supports_range_stepping): ...this.
347 (the_low_target): Remove the op field.
348 * linux-aarch64-low.cc (class aarch64_target)
349 <low_supports_range_stepping>: Declare.
350 (aarch64_supports_range_stepping): Turn into...
351 (aarch64_target::low_supports_range_stepping): ...this.
352 (the_low_target): Remove the op field.
353 * linux-arm-low.cc (the_low_target): Remove the op field.
354 * linux-bfin-low.cc (the_low_target): Ditto.
355 * linux-crisv32-low.cc (the_low_target): Ditto.
356 * linux-m32r-low.cc (the_low_target): Ditto.
357 * linux-m68k-low.cc (the_low_target): Ditto.
358 * linux-ppc-low.cc (the_low_target): Ditto.
359 * linux-s390-low.cc (the_low_target): Ditto.
360 * linux-sh-low.cc (the_low_target): Ditto.
361 * linux-tic6x-low.cc (the_low_target): Ditto.
362 * linux-tile-low.cc (the_low_target): Ditto.
363 * linux-xtensa-low.cc (the_low_target): Ditto.
365 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
367 Remove the 'emit_ops' linux target ops and let the concrete
368 linux target define the op by overriding the declaration of
369 process_stratum_target.
371 * linux-low.h (struct linux_target_ops): Remove the op.
372 (class linux_process_target) <emit_ops>: Remove.
373 * linux-low.cc (linux_process_target::emit_ops): Remove.
374 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
375 (x86_emit_ops): Turn into...
376 (x86_target::emit_ops): ...this.
377 (the_low_target): Remove the op field.
378 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
379 (aarch64_emit_ops): Turn into...
380 (aarch64_target::emit_ops): ...this.
381 (the_low_target): Remove the op field.
382 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
383 (ppc_emit_ops): Turn into...
384 (ppc_target::emit_ops): ...this.
385 (the_low_target): Remove the op field.
386 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
387 (s390_emit_ops): Turn into...
388 (s390_target::emit_ops): ...this.
389 (the_low_target): Remove the op field.
390 * linux-arm-low.cc (the_low_target): Remove the op field.
391 * linux-bfin-low.cc (the_low_target): Ditto.
392 * linux-crisv32-low.cc (the_low_target): Ditto.
393 * linux-m32r-low.cc (the_low_target): Ditto.
394 * linux-m68k-low.cc (the_low_target): Ditto.
395 * linux-sh-low.cc (the_low_target): Ditto.
396 * linux-tic6x-low.cc (the_low_target): Ditto.
397 * linux-tile-low.cc (the_low_target): Ditto.
398 * linux-xtensa-low.cc (the_low_target): Ditto.
400 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
402 Remove the 'install_fast_tracepoint_jump_pad' and
403 'get_min_fast_tracepoint_insn_len' linux target ops to let the
404 concrete linux target define the ops by overriding the declarations
405 of process_stratum_target.
407 * linux-low.h (struct linux_target_ops): Remove the ops.
408 (class linux_process_target) <supports_fast_tracepoints>
409 <install_fast_tracepoint_jump_pad>
410 <get_min_fast_tracepoint_insn_len>: Remove.
411 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
412 (linux_process_target::install_fast_tracepoint_jump_pad)
413 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
414 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
415 <install_fast_tracepoint_jump_pad>
416 <get_min_fast_tracepoint_insn_len>: Declare.
417 (x86_target::supports_fast_tracepoints): Define.
418 (x86_install_fast_tracepoint_jump_pad): Turn into...
419 (x86_target::install_fast_tracepoint_jump_pad): ...this.
420 (x86_get_min_fast_tracepoint_insn_len): Turn into...
421 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
422 (the_low_target): Remove the op fields.
423 * linux-aarch64-low.cc (class aarch64_target)
424 <supports_fast_tracepoints>
425 <install_fast_tracepoint_jump_pad>
426 <get_min_fast_tracepoint_insn_len>: Declare.
427 (aarch64_target::supports_fast_tracepoints): Define.
428 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
429 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
430 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
431 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
432 (the_low_target): Remove the op fields.
433 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
434 <install_fast_tracepoint_jump_pad>
435 <get_min_fast_tracepoint_insn_len>: Declare.
436 (ppc_target::supports_fast_tracepoints): Define.
437 (ppc_install_fast_tracepoint_jump_pad): Turn into...
438 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
439 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
440 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
441 (the_low_target): Remove the op fields.
442 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
443 <install_fast_tracepoint_jump_pad>
444 <get_min_fast_tracepoint_insn_len>: Declare.
445 (s390_target::supports_fast_tracepoints): Define.
446 (s390_install_fast_tracepoint_jump_pad): Turn into...
447 (s390_target::install_fast_tracepoint_jump_pad): ...this.
448 (s390_get_min_fast_tracepoint_insn_len): Turn into...
449 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
450 (the_low_target): Remove the op fields.
451 * linux-arm-low.cc (the_low_target): Remove the op fields.
452 * linux-bfin-low.cc (the_low_target): Ditto.
453 * linux-crisv32-low.cc (the_low_target): Ditto.
454 * linux-m32r-low.cc (the_low_target): Ditto.
455 * linux-m68k-low.cc (the_low_target): Ditto.
456 * linux-sh-low.cc (the_low_target): Ditto.
457 * linux-tic6x-low.cc (the_low_target): Ditto.
458 * linux-tile-low.cc (the_low_target): Ditto.
459 * linux-xtensa-low.cc (the_low_target): Ditto.
461 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
463 Turn the 'get_thread_area' linux target op into a method of
464 process_stratum_target.
466 * linux-low.h (struct linux_target_ops): Remove the op.
467 (class linux_process_target) <stuck_in_jump_pad>
468 <linux_fast_tracepoint_collecting>
469 <low_get_thread_area>: Declare.
470 * linux-low.cc (supports_fast_tracepoints): Remove.
471 (linux_fast_tracepoint_collecting): Turn into...
472 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
473 (linux_process_target::low_get_thread_area): Define.
474 (stuck_in_jump_pad_callback): Turn into...
475 (linux_process_target::stuck_in_jump_pad): ...this.
477 Update the caller below.
479 (linux_process_target::stabilize_threads)
481 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
483 (x86_get_thread_area): Turn into...
484 (x86_target::low_get_thread_area): ...this.
485 (the_low_target): Remove the op field.
486 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
488 (aarch64_get_thread_area): Turn into...
489 (aarch64_target::low_get_thread_area): ...this.
490 (the_low_target): Remove the op field.
491 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
493 (ppc_get_thread_area): Turn into...
494 (ppc_target::low_get_thread_area): ...this.
495 (the_low_target): Remove the op field.
496 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
498 (s390_get_thread_area): Turn into...
499 (s390_target::low_get_thread_area): ...this.
500 (the_low_target): Remove the op field.
501 * linux-arm-low.cc (the_low_target): Remove the op field.
502 * linux-bfin-low.cc (the_low_target): Ditto.
503 * linux-crisv32-low.cc (the_low_target): Ditto.
504 * linux-m32r-low.cc (the_low_target): Ditto.
505 * linux-m68k-low.cc (the_low_target): Ditto.
506 * linux-sh-low.cc (the_low_target): Ditto.
507 * linux-tic6x-low.cc (the_low_target): Ditto.
508 * linux-tile-low.cc (the_low_target): Ditto.
509 * linux-xtensa-low.cc (the_low_target): Ditto.
511 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
513 Remote the 'supports_tracepoints' linux target op and let the
514 concrete linux target define it by overriding the op declared in
515 process_stratum_target.
517 * linux-low.h (struct linux_target_ops): Remove the op.
518 (class linux_process_target) <supports_tracepoints>: Remove.
519 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
520 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
522 (x86_supports_tracepoints): Turn into...
523 (x86_target::supports_tracepoints): ...this.
524 (the_low_target): Remove the op field.
525 * linux-aarch64-low.cc (class aarch64_target)
526 <supports_tracepoints>: Declare.
527 (aarch64_supports_tracepoints): Turn into...
528 (aarch64_target::supports_tracepoints): ...this.
529 (the_low_target): Remove the op field.
530 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
532 (ppc_supports_tracepoints): Turn into...
533 (ppc_target::supports_tracepoints): ...this.
534 (the_low_target): Remove the op field.
535 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
537 (s390_supports_tracepoints): Turn into...
538 (s390_target::supports_tracepoints): ...this.
539 (the_low_target): Remove the op field.
540 * linux-arm-low.cc (the_low_target): Remove the op field.
541 * linux-bfin-low.cc (the_low_target): Ditto.
542 * linux-crisv32-low.cc (the_low_target): Ditto.
543 * linux-m32r-low.cc (the_low_target): Ditto.
544 * linux-m68k-low.cc (the_low_target): Ditto.
545 * linux-sh-low.cc (the_low_target): Ditto.
546 * linux-tic6x-low.cc (the_low_target): Ditto.
547 * linux-tile-low.cc (the_low_target): Ditto.
548 * linux-xtensa-low.cc (the_low_target): Ditto.
550 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552 Remove the 'process_qsupported' linux target op and let a concrete
553 linux target define the op by overriding the op declaration in
554 process_stratum_target.
556 * linux-low.h (struct linux_target_ops): Remove the op.
557 (class linux_process_target) <process_qsupported>: Remove.
558 * linux-low.cc (linux_process_target::process_qsupported): Remove.
559 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
560 (x86_linux_process_qsupported): Turn into...
561 (x86_target::process_qsupported): ...this.
562 (the_low_target): Remove the op field.
563 * linux-aarch64-low.cc (the_low_target): Remove the op
565 * linux-arm-low.cc (the_low_target): Ditto.
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-ppc-low.cc (the_low_target): Ditto.
571 * linux-s390-low.cc (the_low_target): Ditto.
572 * linux-sh-low.cc (the_low_target): Ditto.
573 * linux-tic6x-low.cc (the_low_target): Ditto.
574 * linux-tile-low.cc (the_low_target): Ditto.
575 * linux-xtensa-low.cc (the_low_target): Ditto.
577 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
579 Turn the 'prepare_to_resume' linux target op into a method of
580 linux_process_target.
582 * linux-low.h (struct linux_target_ops): Remove the op.
583 (class linux_process_target) <low_prepare_to_resume>: Declare.
584 * linux-low.cc (linux_process_target::low_prepare_to_resume):
587 Update the callers below:
589 (linux_process_target::resume_one_lwp_throw)
590 (linux_process_target::low_prepare_to_resume)
592 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
594 (x86_target::low_prepare_to_resume): Define.
595 (the_low_target): Remove the op field.
596 * linux-aarch64-low.cc (class aarch64_target)
597 <low_prepare_to_resume>: Declare.
598 (aarch64_target::low_prepare_to_resume): Define.
599 (the_low_target): Remove the op field.
600 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
602 (arm_prepare_to_resume): Turn into...
603 (arm_target::low_prepare_to_resume): ...this.
604 (the_low_target): Remove the op field.
605 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
607 (mips_linux_prepare_to_resume): Turn into...
608 (mips_target::low_prepare_to_resume): ...this.
609 (the_low_target): Remove the op field.
610 * linux-bfin-low.cc (the_low_target): Remove the op field.
611 * linux-crisv32-low.cc (the_low_target): Ditto.
612 * linux-m32r-low.cc (the_low_target): Ditto.
613 * linux-m68k-low.cc (the_low_target): Ditto.
614 * linux-ppc-low.cc (the_low_target): Ditto.
615 * linux-s390-low.cc (the_low_target): Ditto.
616 * linux-sh-low.cc (the_low_target): Ditto.
617 * linux-tic6x-low.cc (the_low_target): Ditto.
618 * linux-tile-low.cc (the_low_target): Ditto.
619 * linux-xtensa-low.cc (the_low_target): Ditto.
621 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
623 Turn the 'new_process', 'delete_process', 'new_thread',
624 'delete_thread', and 'new_fork' linux target ops into methods
625 of linux_process_target.
627 * linux-low.h (struct linux_target_ops): Remove the ops.
628 (class linux_process_target) <add_linux_process>
633 <check_zombie_leaders>
639 <low_new_fork>: Declare.
640 * linux-low.cc (delete_lwp): Turn into...
641 (linux_process_target::delete_lwp): ...this.
642 (linux_process_target::low_delete_thread): Define.
643 (linux_add_process): Turn into...
644 (linux_process_target::add_linux_process): ...this.
645 (linux_process_target::low_new_process): Define.
646 (linux_process_target::low_delete_process): Define.
647 (linux_process_target::low_new_fork): Define.
648 (add_lwp): Turn into...
649 (linux_process_target::add_lwp): ...this.
650 (linux_process_target::low_new_thread): Define.
651 (linux_attach_lwp): Turn into...
652 (linux_process_target::attach_lwp): ...this.
653 (linux_detach_one_lwp): Turn into...
654 (linux_process_target::detach_one_lwp): ...this.
655 (linux_detach_lwp_callback): Remove and inline...
656 (linux_process_target::detach): ...here.
657 (check_zombie_leaders): Turn into...
658 (linux_process_target::check_zombie_leaders): ...this.
659 (filter_exit_event): Turn into...
660 (linux_process_target::filter_exit_event): ...this.
662 Update the callers below.
664 (linux_process_target::handle_extended_wait)
665 (linux_process_target::create_inferior)
666 (attach_proc_task_lwp_callback)
667 (linux_process_target::attach)
668 (linux_process_target::detach)
669 (linux_process_target::mourn)
670 * thread-db.cc (attach_thread)
672 * linux-x86-low.cc (class x86_target) <low_new_process>
676 <low_new_fork>: Declare.
677 (x86_linux_new_process): Turn into...
678 (x86_target::low_new_process): ...this.
679 (x86_linux_delete_process): Turn into...
680 (x86_target::low_delete_process): ...this.
681 (x86_target::low_new_thread): Define.
682 (x86_target::low_delete_thread): Define.
683 (x86_linux_new_fork): Turn into...
684 (x86_target::low_new_fork): ...this.
685 (the_low_target): Remove the op fields.
686 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
690 <low_new_fork>: Declare.
691 (aarch64_linux_new_process): Turn into...
692 (aarch64_target::low_new_process): ...this.
693 (aarch64_linux_delete_process): Turn into...
694 (aarch64_target::low_delete_process): ...this.
695 (aarch64_target::low_new_thread): Define.
696 (aarch64_target::low_delete_thread): Define.
697 (aarch64_linux_new_fork): Turn into...
698 (aarch64_target::low_new_fork): ...this.
699 (the_low_target): Remove the op fields.
700 * linux-arm-low.cc (class arm_target) <low_new_process>
704 <low_new_fork>: Declare.
705 (arm_new_process): Turn into...
706 (arm_target::low_new_process): ...this.
707 (arm_delete_process): Turn into...
708 (arm_target::low_delete_process): ...this.
709 (arm_new_thread): Turn into...
710 (arm_target::low_new_thread): ...this.
711 (arm_delete_thread): Turn into...
712 (arm_target::low_delete_thread): ...this.
713 (arm_new_fork): Turn into...
714 (arm_target::low_new_fork): ...this.
715 (the_low_target): Remove the op fields.
716 * linux-mips-low.cc (class mips_target) <low_new_process>
720 <low_new_fork>: Declare.
721 (mips_linux_new_process): Turn into...
722 (mips_target::low_new_process): ...this.
723 (mips_linux_delete_process): Turn into...
724 (mips_target::low_delete_process): ...this.
725 (mips_linux_new_thread): Turn into...
726 (mips_target::low_new_thread): ...this.
727 (mips_linux_delete_thread): Turn into...
728 (mips_target::low_delete_thread): ...this.
729 (mips_linux_new_fork): Turn into...
730 (mips_target::low_new_fork): ...this.
731 (the_low_target): Remove the op fields.
732 * linux-bfin-low.cc (the_low_target): Remove the op fields.
733 * linux-crisv32-low.cc (the_low_target): Ditto.
734 * linux-m32r-low.cc (the_low_target): Ditto.
735 * linux-m68k-low.cc (the_low_target): Ditto.
736 * linux-ppc-low.cc (the_low_target): Ditto.
737 * linux-s390-low.cc (the_low_target): Ditto.
738 * linux-sh-low.cc (the_low_target): Ditto.
739 * linux-tic6x-low.cc (the_low_target): Ditto.
740 * linux-tile-low.cc (the_low_target): Ditto.
741 * linux-xtensa-low.cc (the_low_target): Ditto.
743 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
745 Turn the 'siginfo_fixup' linux target op into a method of
746 linux_process_target.
748 * linux-low.h (struct linux_target_ops): Remove the op.
749 (class linux_process_target) <siginfo_fixup>
750 <low_siginfo_fixup>: Declare.
751 * linux-low.cc (siginfo_fixup): Turn into...
752 (linux_process_target::siginfo_fixup): ...this.
753 (linux_process_target::low_siginfo_fixup): Define.
754 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
755 (x86_siginfo_fixup): Turn into...
756 (x86_target::low_siginfo_fixup): ...this.
757 (the_low_target): Remove the op field.
758 * linux-aarch64-low.cc (class aarch64_target):
759 <low_siginfo_fixup>: Declare.
760 (aarch64_linux_siginfo_fixup): Turn into...
761 (aarch64_target::low_siginfo_fixup): ...this.
762 (the_low_target): Remove the op field.
763 * linux-arm-low.cc (the_low_target): Remove the op field.
764 * linux-bfin-low.cc (the_low_target): Ditto.
765 * linux-crisv32-low.cc (the_low_target): Ditto.
766 * linux-m32r-low.cc (the_low_target): Ditto.
767 * linux-m68k-low.cc (the_low_target): Ditto.
768 * linux-mips-low.cc (the_low_target): Ditto.
769 * linux-ppc-low.cc (the_low_target): Ditto.
770 * linux-s390-low.cc (the_low_target): Ditto.
771 * linux-sh-low.cc (the_low_target): Ditto.
772 * linux-tic6x-low.cc (the_low_target): Ditto.
773 * linux-tile-low.cc (the_low_target): Ditto.
774 * linux-xtensa-low.cc (the_low_target): Ditto.
776 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
779 linux target ops into methods of linux_process_target.
781 * linux-low.h (struct linux_target_ops): Remove the ops.
782 (class linux_process_target) <low_collect_ptrace_register>
783 <low_store_ptrace_register>: Declare.
784 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
785 (linux_process_target::low_supply_ptrace_register): Define.
787 Update the callers below.
789 (linux_process_target::fetch_register)
790 (linux_process_target::store_register)
792 * linux-x86-low.cc (the_low_target): Remove the op fields.
793 * linux-aarch64-low.cc (the_low_target): Ditto.
794 * linux-arm-low.cc (the_low_target): Ditto.
795 * linux-bfin-low.cc (the_low_target): Ditto.
796 * linux-crisv32-low.cc (the_low_target): Ditto.
797 * linux-m32r-low.cc (the_low_target): Ditto.
798 * linux-m68k-low.cc (the_low_target): Ditto.
799 * linux-sh-low.cc (the_low_target): Ditto.
800 * linux-sparc-low.cc (the_low_target): Ditto.
801 * linux-tic6x-low.cc (the_low_target): Ditto.
802 * linux-tile-low.cc (the_low_target): Ditto.
803 * linux-xtensa-low.cc (the_low_target): Ditto.
804 * linux-mips-low.cc (class mips_target)
805 <low_collect_ptrace_register>
806 <low_supply_ptrace_register>: Declare.
807 (mips_collect_ptrace_register): Turn into ...
808 (mips_target::low_collect_ptrace_register): ...this.
809 (mips_supply_ptrace_register): Turn into...
810 (mips_target::low_supply_ptrace_register): ...this.
811 (the_low_target): Remove the op fields.
812 * linux-ppc-low.cc (class ppc_target)
813 <low_collect_ptrace_register>
814 <low_supply_ptrace_register>: Declare.
815 (ppc_collect_ptrace_register): Turn into ...
816 (ppc_target::low_collect_ptrace_register): ...this.
817 (ppc_supply_ptrace_register): Turn into ...
818 (ppc_target::low_supply_ptrace_register): ...this.
819 (ppc_fill_gregset): Update for the calls to
820 low_collect_ptrace_register.
821 (the_low_target): Remove the op fields.
822 * linux-s390-low.cc (class s390_target)
823 <low_collect_ptrace_register>
824 <low_supply_ptrace_register>: Declare.
825 (s390_collect_ptrace_register): Turn into ...
826 (s390_target::low_collect_ptrace_register): ...this.
827 (s390_supply_ptrace_register): Turn into ...
828 (s390_target::low_supply_ptrace_register): ...this.
829 (s390_fill_gregset): Update for the calls to
830 low_collect_ptrace_register.
831 (the_low_target): Remove the op fields.
833 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
835 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
836 target ops into methods of linux_process_target.
838 * linux-low.h (struct linux_target_ops): Remove the ops.
839 (class linux_process_target) <check_stopped_by_watchpoint>
840 <low_stopped_by_watchpoint>
841 <low_stopped_data_address>: Declare.
842 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
843 (linux_process_target::check_stopped_by_watchpoint): ...this.
844 (linux_process_target::low_stopped_by_watchpoint): Define.
845 (linux_process_target::low_stopped_data_address): Define.
846 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
847 <low_stopped_data_address>: Declare.
848 (x86_stopped_by_watchpoint): Turn into...
849 (x86_target::low_stopped_by_watchpoint): ...this.
850 (x86_stopped_data_address): Turn into...
851 (x86_target::low_stopped_data_address): ...this.
852 (the_low_target): Remove the op fields.
853 * linux-aarch64-low.cc (class aarch64_target)
854 <low_stopped_by_watchpoint>
855 <low_stopped_data_address>: Declare.
856 (aarch64_stopped_by_watchpoint): Turn into...
857 (aarch64_target::low_stopped_by_watchpoint): ...this.
858 (aarch64_stopped_data_address): Turn into...
859 (aarch64_target::low_stopped_data_address): ...this.
860 (the_low_target): Remove the op fields.
861 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
862 <low_stopped_data_address>: Declare.
863 (arm_stopped_by_watchpoint): Turn into...
864 (arm_target::low_stopped_by_watchpoint): ...this.
865 (arm_stopped_data_address): Turn into...
866 (arm_target::low_stopped_data_address): ...this.
867 (the_low_target): Remove the op fields.
868 * linux-crisv32-low.cc (class crisv32_target)
869 <low_stopped_by_watchpoint>
870 <low_stopped_data_address>: Declare.
871 (cris_stopped_by_watchpoint): Turn into...
872 (crisv32_target::low_stopped_by_watchpoint): ...this.
873 (cris_stopped_data_address): Turn into...
874 (crisv32_target::low_stopped_data_address): ...this.
875 (the_low_target): Remove the op fields.
876 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
877 <low_stopped_data_address>: Declare.
878 (mips_stopped_by_watchpoint): Turn into...
879 (mips_target::low_stopped_by_watchpoint): ...this.
880 (mips_stopped_data_address): Turn into...
881 (mips_target::low_stopped_data_address): ...this.
882 (the_low_target): Remove the op fields.
883 * linux-bfin-low.cc (the_low_target): Remove the op fields.
884 * linux-m32r-low.cc (the_low_target): Ditto.
885 * linux-m68k-low.cc (the_low_target): Ditto.
886 * linux-ppc-low.cc (the_low_target): Ditto.
887 * linux-s390-low.cc (the_low_target): Ditto.
888 * linux-sh-low.cc (the_low_target): Ditto.
889 * linux-sparc-low.cc (the_low_target): Ditto.
890 * linux-tic6x-low.cc (the_low_target): Ditto.
891 * linux-tile-low.cc (the_low_target): Ditto.
892 * linux-xtensa-low.cc (the_low_target): Ditto.
894 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
896 Turn the 'insert_point' and 'remove_point' linux target ops into
897 methods of linux_process_target.
899 * linux-low.h (struct linux_target_ops): Remove the ops.
900 (class linux_process_target) <low_insert_point>
901 <low_remove_point>: Declare.
902 * linux-low.cc (linux_process_target::low_insert_point)
903 (linux_process_target::low_remove_point): Define.
904 (linux_process_target::insert_point)
905 (linux_process_target::remove_point): Update for calls to
906 low_insert_point and low_remove_point.
907 * linux-x86-low.cc (class x86_target) <low_insert_point>
908 <low_remove_point>: Declare.
909 (x86_insert_point): Turn into...
910 (x86_target::low_insert_point): ...this.
911 (x86_remove_point): Turn into...
912 (x86_target::low_remove_point): ...this.
913 (the_low_target): Remove the op fields.
914 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
915 <low_remove_point>: Declare.
916 (aarch64_insert_point): Turn into...
917 (aarch64_target::low_insert_point): ...this.
918 (aarch64_remove_point): Turn into...
919 (aarch64_target::low_remove_point): ...this.
920 (the_low_target): Remove the op fields.
921 * linux-arm-low.cc (class arm_target) <low_insert_point>
922 <low_remove_point>: Declare.
923 (arm_insert_point): Turn into...
924 (arm_target::low_insert_point): ...this.
925 (arm_remove_point): Turn into...
926 (arm_target::low_remove_point): ...this.
927 (the_low_target): Remove the op fields.
928 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
929 <low_remove_point>: Declare.
930 (crisv32_insert_point): Turn into...
931 (crisv32_target::low_insert_point): ...this.
932 (crisv32_remove_point): Turn into...
933 (crisv32_target::low_remove_point): ...this.
934 (the_low_target): Remove the op fields.
935 * linux-mips-low.cc (class mips_target) <low_insert_point>
936 <low_remove_point>: Declare.
937 (mips_insert_point): Turn into...
938 (mips_target::low_insert_point): ...this.
939 (mips_remove_point): Turn into...
940 (mips_target::low_remove_point): ...this.
941 (the_low_target): Remove the op fields.
942 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
943 <low_remove_point>: Declare.
944 (ppc_insert_point): Turn into...
945 (ppc_target::low_insert_point): ...this.
946 (ppc_remove_point): Turn into...
947 (ppc_target::low_remove_point): ...this.
948 (the_low_target): Remove the op fields.
949 * linux-bfin-low.cc (the_low_target): Remove the op fields.
950 * linux-m32r-low.cc (the_low_target): Ditto.
951 * linux-m68k-low.cc (the_low_target): Ditto.
952 * linux-s390-low.cc (the_low_target): Ditto.
953 * linux-sh-low.cc (the_low_target): Ditto.
954 * linux-sparc-low.cc (the_low_target): Ditto.
955 * linux-tic6x-low.cc (the_low_target): Ditto.
956 * linux-tile-low.cc (the_low_target): Ditto.
957 * linux-xtensa-low.cc (the_low_target): Ditto.
959 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
961 Remove the 'supports_z_point_type' linux target op and let the
962 concrete linux target define it by overriding the op declared in
963 process_stratum_target.
965 * linux-low.cc (linux_process_target::supports_z_point_type):
967 * linux-low.h (struct linux_target_ops): Remove the op.
968 (class linux_process_target) <supports_z_point_type>: Remove.
969 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
971 (x86_supports_z_point_type): Turn into...
972 (x86_target::supports_z_point_type): ...this.
973 (the_low_target): Remove the op field.
974 * linux-aarch64-low.cc (class aarch64_target)
975 <supports_z_point_type>: Declare.
976 (aarch64_supports_z_point_type): Turn into...
977 (aarch64_target::supports_z_point_type): ...this.
978 (the_low_target): Remove the op field.
979 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
981 (arm_supports_z_point_type): Turn into...
982 (arm_target::supports_z_point_type): ...this.
983 (the_low_target): Remove the op field.
984 * linux-crisv32-low.cc (class crisv32_target)
985 <supports_z_point_type>: Declare.
986 (cris_supports_z_point_type): Turn into...
987 (crisv32_target::supports_z_point_type): ...this.
988 (the_low_target): Remove the op field.
989 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
991 (mips_supports_z_point_type): Turn into...
992 (mips_target::supports_z_point_type): ...this.
993 (the_low_target): Remove the op field.
994 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
996 (ppc_supports_z_point_type): Turn into...
997 (ppc_target::supports_z_point_type): ...this.
998 (the_low_target): Remove the op field.
999 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1001 (s390_supports_z_point_type): Turn into...
1002 (s390_target::supports_z_point_type): ...this.
1003 (the_low_target): Remove the op field.
1004 * linux-bfin-low.cc (the_low_target): Remove the op field.
1005 * linux-m32r-low.cc (the_low_target): Ditto.
1006 * linux-m68k-low.cc (the_low_target): Ditto.
1007 * linux-sh-low.cc (the_low_target): Ditto.
1008 * linux-sparc-low.cc (the_low_target): Ditto.
1009 * linux-tic6x-low.cc (the_low_target): Ditto.
1010 * linux-tile-low.cc (the_low_target): Ditto.
1011 * linux-xtensa-low.cc (the_low_target): Ditto.
1013 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1015 Turn the 'breakpoint_at' linux target op into a method of
1016 linux_process_target.
1018 * linux-low.h (struct linux_target_ops): Remove the op.
1019 (class linux_process_target) <low_breakpoint_at>: Declare.
1021 Update the callers below:
1023 * linux-low.cc (linux_process_target::save_stop_reason)
1024 (linux_process_target::thread_still_has_status_pending)
1025 (linux_process_target::wait_1)
1027 * linux-x86-low.cc (class x86_target)
1028 <low_breakpoint_at>: Declare.
1029 (x86_breakpoint_at): Turn into...
1030 (x86_target::low_breakpoint_at): ...this.
1031 (the_low_target): Remove the op field.
1032 * linux-aarch64-low.cc (class aarch64_target)
1033 <low_breakpoint_at>: Declare.
1034 (aarch64_breakpoint_at): Turn into...
1035 (aarch64_target::low_breakpoint_at): ...this.
1036 (the_low_target): Remove the op field.
1037 * linux-arm-low.cc (class arm_target)
1038 <low_breakpoint_at>: Declare.
1039 (arm_target::low_breakpoint_at): Define.
1040 (the_low_target): Remove the op field.
1041 * linux-bfin-low.cc (class bfin_target)
1042 <low_breakpoint_at>: Declare.
1043 (bfin_breakpoint_at): Turn into...
1044 (bfin_target::low_breakpoint_at): ...this.
1045 (the_low_target): Remove the op field.
1046 * linux-cris-low.cc (class cris_target)
1047 <low_breakpoint_at>: Declare.
1048 (cris_breakpoint_at): Turn into...
1049 (cris_target::low_breakpoint_at): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-crisv32-low.cc (class crisv32_target)
1052 <low_breakpoint_at>: Declare.
1053 (crisv32_breakpoint_at): Turn into...
1054 (crisv32_target::low_breakpoint_at): ...this.
1055 (the_low_target): Remove the op field.
1056 * linux-ia64-low.cc (class ia64_target)
1057 <low_breakpoint_at>: Declare.
1058 (ia64_target::low_breakpoint_at): Define.
1059 * linux-m32r-low.cc (class m32r_target)
1060 <low_breakpoint_at>: Declare.
1061 (m32r_breakpoint_at): Turn into...
1062 (m32r_target::low_breakpoint_at): ...this.
1063 (the_low_target): Remove the op field.
1064 * linux-m68k-low.cc (class m68k_target)
1065 <low_breakpoint_at>: Declare.
1066 (m68k_breakpoint_at): Turn into...
1067 (m68k_target::low_breakpoint_at): ...this.
1068 (the_low_target): Remove the op field.
1069 * linux-mips-low.cc (class mips_target)
1070 <low_breakpoint_at>: Declare.
1071 (mips_breakpoint_at): Turn into...
1072 (mips_target::low_breakpoint_at): ...this.
1073 (the_low_target): Remove the op field.
1074 * linux-nios2-low.cc (class nios2_target)
1075 <low_breakpoint_at>: Declare.
1076 (nios2_breakpoint_at): Turn into...
1077 (nios2_target::low_breakpoint_at): ...this.
1078 (the_low_target): Remove the op field.
1079 * linux-ppc-low.cc (class ppc_target)
1080 <low_breakpoint_at>: Declare.
1081 (ppc_breakpoint_at): Turn into...
1082 (ppc_target::low_breakpoint_at): ...this.
1083 (the_low_target): Remove the op field.
1084 * linux-riscv-low.cc (class riscv_target)
1085 <low_breakpoint_at>: Declare.
1086 (riscv_breakpoint_at): Turn into...
1087 (riscv_target::low_breakpoint_at): ...this.
1088 (the_low_target): Remove the op field.
1089 * linux-s390-low.cc (class s390_target)
1090 <low_breakpoint_at>: Declare.
1091 (s390_breakpoint_at): Turn into...
1092 (s390_target::low_breakpoint_at): ...this.
1093 (the_low_target): Remove the op field.
1094 * linux-sh-low.cc (class sh_target)
1095 <low_breakpoint_at>: Declare.
1096 (sh_breakpoint_at): Turn into...
1097 (sh_target::low_breakpoint_at): ...this.
1098 (the_low_target): Remove the op field.
1099 * linux-sparc-low.cc (class sparc_target)
1100 <low_breakpoint_at>: Declare.
1101 (sparc_breakpoint_at): Turn into...
1102 (sparc_target::low_breakpoint_at): ...this.
1103 (the_low_target): Remove the op field.
1104 * linux-tic6x-low.cc (class tic6x_target)
1105 <low_breakpoint_at>: Declare.
1106 (tic6x_breakpoint_at): Turn into...
1107 (tic6x_target::low_breakpoint_at): ...this.
1108 (the_low_target): Remove the op field.
1109 * linux-tile-low.cc (class tile_target)
1110 <low_breakpoint_at>: Declare.
1111 (tile_breakpoint_at): Turn into...
1112 (tile_target::low_breakpoint_at): ...this.
1113 (the_low_target): Remove the op field.
1114 * linux-xtensa-low.cc (class xtensa_target)
1115 <low_breakpoint_at>: Declare.
1116 (xtensa_breakpoint_at): Turn into...
1117 (xtensa_target::low_breakpoint_at): ...this.
1118 (the_low_target): Remove the op field.
1120 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1122 Turn the 'decr_pc_after_break' linux_target_ops field into
1123 a method of linux_process_target.
1125 * linux-low.h (struct linux_target_ops)
1126 <decr_pc_after_break>: Remove.
1127 (class linux_process_target) <low_decr_pc_after_break>: New method
1129 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1130 New method implementation.
1132 Update the users below.
1134 (linux_process_target::save_stop_reason)
1135 (linux_process_target::wait_1)
1136 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1138 (x86_target::low_decr_pc_after_break): New method implementation.
1139 (the_low_target): Remove the field.
1140 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1142 (bfin_target::low_decr_pc_after_break): New method implementation.
1143 (the_low_target): Remove the field.
1144 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1146 (m68k_target::low_decr_pc_after_break): New method implementation.
1147 (the_low_target): Remove the field.
1148 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1150 (s390_target::low_decr_pc_after_break): New method implementation.
1151 (the_low_target): Remove the field.
1152 * linux-aarch64-low.cc (the_low_target): Remove the field.
1153 * linux-arm-low.cc (the_low_target): Remove the field.
1154 * linux-cris-low.cc (the_low_target): Remove the field.
1155 * linux-crisv32-low.cc (the_low_target): Remove the field.
1156 * linux-m32r-low.cc (the_low_target): Remove the field.
1157 * linux-mips-low.cc (the_low_target): Remove the field.
1158 * linux-nios2-low.cc (the_low_target): Remove the field.
1159 * linux-ppc-low.cc (the_low_target): Remove the field.
1160 * linux-riscv-low.cc (the_low_target): Remove the field.
1161 * linux-sh-low.cc (the_low_target): Remove the field.
1162 * linux-sparc-low.cc (the_low_target): Remove the field.
1163 * linux-tic6x-low.cc (the_low_target): Remove the field.
1164 * linux-tile-low.cc (the_low_target): Remove the field.
1165 * linux-xtensa-low.cc (the_low_target): Remove the field.
1167 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1169 Remove the 'supports_software_single_step' linux target op and let
1170 the concrete linux target define it by overriding the op in
1171 process_stratum_target.
1172 Turn the 'get_next_pcs' linux target op into a method of
1173 linux_process_target.
1175 * linux-low.h (struct linux_target_ops): Remove the ops.
1176 (class linux_process_target) <supports_software_single_step>:
1178 <low_get_next_pcs>: Declare.
1179 * linux-low.cc (can_software_single_step): Remove.
1180 (linux_process_target::low_get_next_pcs): Define.
1181 (linux_process_target::supports_software_single_step): Remove.
1183 Update the callers below.
1185 (linux_process_target::handle_extended_wait)
1186 (linux_process_target::wait_1)
1187 (linux_process_target::install_software_single_step_breakpoints)
1188 (linux_process_target::single_step)
1189 (linux_process_target::thread_needs_step_over)
1190 (linux_process_target::proceed_one_lwp)
1191 (linux_process_target::supports_range_stepping)
1193 * linux-x86-low.cc (the_low_target): Remove the op field.
1194 * linux-aarch64-low.cc (the_low_target): Ditto.
1195 * linux-bfin-low.cc (the_low_target): Ditto.
1196 * linux-cris-low.cc (the_low_target): Ditto.
1197 * linux-crisv32-low.cc (the_low_target): Ditto.
1198 * linux-m32r-low.cc (the_low_target): Ditto.
1199 * linux-m68k-low.cc (the_low_target): Ditto.
1200 * linux-mips-low.cc (the_low_target): Ditto.
1201 * linux-nios2-low.cc (the_low_target): Ditto.
1202 * linux-ppc-low.cc (the_low_target): Ditto.
1203 * linux-riscv-low.cc (the_low_target): Ditto.
1204 * linux-s390-low.cc (the_low_target): Ditto.
1205 * linux-sh-low.cc (the_low_target): Ditto.
1206 * linux-sparc-low.cc (the_low_target): Ditto.
1207 * linux-tic6x-low.cc (the_low_target): Ditto.
1208 * linux-tile-low.cc (the_low_target): Ditto.
1209 * linux-xtensa-low.cc (the_low_target): Ditto.
1210 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1211 <supports_software_single_step>: Declare.
1212 (arm_target::supports_software_single_step): Define.
1213 (arm_gdbserver_get_next_pcs): Turn into...
1214 (arm_target::low_get_next_pcs): ...this.
1215 (the_low_target): Remove the op field.
1217 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1219 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1220 the concrete linux target define it by overriding the op
1221 in process_stratum_target.
1223 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1225 * linux-low.h (struct linux_target_ops): Remove the op.
1226 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1227 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1229 (x86_sw_breakpoint_from_kind): Turn into...
1230 (x86_target::sw_breakpoint_from_kind): ...this.
1231 (the_low_target): Remove the op field.
1232 * linux-aarch64-low.cc (class aarch64_target)
1233 <sw_breakpoint_from_kind>: Declare.
1234 (aarch64_sw_breakpoint_from_kind): Turn into...
1235 (aarch64_target::sw_breakpoint_from_kind): ...this.
1236 (the_low_target): Remove the op field.
1237 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1239 (arm_target::sw_breakpoint_from_kind): Define.
1240 (the_low_target): Remove the op field.
1241 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1243 (bfin_sw_breakpoint_from_kind): Turn into...
1244 (bfin_target::sw_breakpoint_from_kind): ...this.
1245 (the_low_target): Remove the op field.
1246 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1248 (cris_sw_breakpoint_from_kind): Turn into...
1249 (cris_target::sw_breakpoint_from_kind): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-crisv32-low.cc (class crisv32_target)
1252 <sw_breakpoint_from_kind>: Declare.
1253 (cris_sw_breakpoint_from_kind): Turn into...
1254 (crisv32_target::sw_breakpoint_from_kind): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1258 (ia64_target::sw_breakpoint_from_kind): Define.
1259 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1261 (m32r_sw_breakpoint_from_kind): Turn into...
1262 (m32r_target::sw_breakpoint_from_kind): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1266 (m68k_sw_breakpoint_from_kind): Turn into...
1267 (m68k_target::sw_breakpoint_from_kind): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1271 (mips_sw_breakpoint_from_kind): Turn into...
1272 (mips_target::sw_breakpoint_from_kind): ...this.
1273 (the_low_target): Remove the op field.
1274 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1276 (nios2_sw_breakpoint_from_kind): Turn into...
1277 (nios2_target::sw_breakpoint_from_kind): ...this.
1278 (the_low_target): Remove the op field.
1279 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1281 (ppc_sw_breakpoint_from_kind): Turn into...
1282 (ppc_target::sw_breakpoint_from_kind): ...this.
1283 (the_low_target): Remove the op field.
1284 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1286 (riscv_sw_breakpoint_from_kind): Turn into...
1287 (riscv_target::sw_breakpoint_from_kind): ...this.
1288 (the_low_target): Remove the op field.
1289 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1291 (s390_sw_breakpoint_from_kind): Turn into...
1292 (s390_target::sw_breakpoint_from_kind): ...this.
1293 (the_low_target): Remove the op field.
1294 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1296 (sh_sw_breakpoint_from_kind): Turn into...
1297 (sh_target::sw_breakpoint_from_kind): ...this.
1298 (the_low_target): Remove the op field.
1299 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1301 (sparc_sw_breakpoint_from_kind): Turn into...
1302 (sparc_target::sw_breakpoint_from_kind): ...this.
1303 (the_low_target): Remove the op field.
1304 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1306 (tic6x_sw_breakpoint_from_kind): Turn into...
1307 (tic6x_target::sw_breakpoint_from_kind): ...this.
1308 (the_low_target): Remove the op field.
1309 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1311 (tile_sw_breakpoint_from_kind): Turn into...
1312 (tile_target::sw_breakpoint_from_kind): ...this.
1313 (the_low_target): Remove the op field.
1314 * linux-xtensa-low.cc (class xtensa_target)
1315 <sw_breakpoint_from_kind>: Declare.
1316 (xtensa_sw_breakpoint_from_kind): Turn into...
1317 (xtensa_target::sw_breakpoint_from_kind): ...this.
1318 (the_low_target): Remove the op field.
1320 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1322 Remove the 'breakpoint_kind_from_pc' and
1323 'breakpoint_kind_from_current_state' linux target ops, and let the
1324 concrete linux target define them by overriding the ops of
1325 process_stratum_target.
1327 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1329 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1330 * linux-low.h (struct linux_target_ops): Remove ops.
1331 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1332 <breakpoint_kind_from_current_state>: Remove.
1333 * linux-x86-low.cc (the_low_target): Remove the op fields.
1334 * linux-bfin-low.cc (the_low_target): Ditto.
1335 * linux-cris-low.cc (the_low_target): Ditto.
1336 * linux-crisv32-low.cc (the_low_target): Ditto.
1337 * linux-m32r-low.cc (the_low_target): Ditto.
1338 * linux-m68k-low.cc (the_low_target): Ditto.
1339 * linux-mips-low.cc (the_low_target): Ditto.
1340 * linux-nios2-low.cc (the_low_target): Ditto.
1341 * linux-ppc-low.cc (the_low_target): Ditto.
1342 * linux-s390-low.cc (the_low_target): Ditto.
1343 * linux-sh-low.cc (the_low_target): Ditto.
1344 * linux-sparc-low.cc (the_low_target): Ditto.
1345 * linux-tic6x-low.cc (the_low_target): Ditto.
1346 * linux-tile-low.cc (the_low_target): Ditto.
1347 * linux-xtensa-low.cc (the_low_target): Ditto.
1348 * linux-aarch64-low.cc (class aarch64_target)
1349 <breakpoint_kind_from_pc>
1350 <breakpoint_kind_from_current_state>: Declare.
1351 (aarch64_breakpoint_kind_from_pc): Turn into...
1352 (aarch64_target::breakpoint_kind_from_pc): ...this.
1353 (aarch64_breakpoint_kind_from_current_state): Turn into...
1354 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1355 (the_low_target): Remove the op fields.
1356 * linux-arm-low.cc (class arm_target):
1357 <breakpoint_kind_from_pc>
1358 <breakpoint_kind_from_current_state>: Declare.
1359 (arm_target::breakpoint_kind_from_pc): Define.
1360 (arm_target::breakpoint_kind_from_current_state): Define.
1361 (the_low_target): Remove the op fields.
1362 * linux-riscv-low.cc (class riscv_target):
1363 <breakpoint_kind_from_pc>: Declare.
1364 (riscv_breakpoint_kind_from_pc): Turn into...
1365 (riscv_target::breakpoint_kind_from_pc): ...this.
1366 (the_low_target): Remove the op fields.
1368 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1370 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1371 of linux_process_target.
1373 * linux-low.h (struct linux_target_ops): Remove the ops.
1374 (class linux_process_target) <low_supports_breakpoints>
1376 <low_set_pc>: Declare.
1377 * linux-low.cc (supports_breakpoints): Turn into...
1378 (linux_process_target::low_supports_breakpoints): ...this.
1379 (linux_process_target::low_get_pc): Define.
1380 (linux_process_target::low_set_pc): Define.
1382 Update the callers below.
1384 (linux_process_target::get_pc)
1385 (linux_process_target::save_stop_reason)
1386 (linux_process_target::maybe_move_out_of_jump_pad)
1387 (linux_process_target::wait_1)
1388 (linux_process_target::resume_one_lwp_throw)
1389 (linux_process_target::resume)
1390 (linux_process_target::proceed_all_lwps)
1391 (linux_process_target::read_pc)
1392 (linux_process_target::write_pc)
1394 * linux-x86-low.cc (class linux_process_target)
1395 <low_supports_breakpoints>
1397 <low_set_pc>: Declare.
1398 (x86_target::low_supports_breakpoints): Define.
1399 (x86_get_pc): Turn into...
1400 (x86_target::low_get_pc): ...this.
1401 (x86_set_pc): Turn into...
1402 (x86_target::low_set_pc): ...this.
1403 (the_low_target): Remove the op fields.
1404 * linux-arm-low.cc (class arm_target)
1405 <low_supports_breakpoints>
1407 <low_set_pc>: Declare.
1408 (arm_target::low_supports_breakpoints)
1409 (arm_target::low_get_pc)
1410 (arm_target::low_set_pc): Define.
1411 (the_low_target): Remove the op fields.
1412 * linux-bfin-low.cc (class bfin_target)
1413 <low_supports_breakpoints>
1415 <low_set_pc>: Declare.
1416 (bfin_target::low_supports_breakpoints)
1417 (bfin_target::low_get_pc)
1418 (bfin_target::low_set_pc): Define.
1419 (the_low_target): Remove the op fields.
1420 * linux-cris-low.cc (class cris_target)
1421 <low_supports_breakpoints>
1423 <low_set_pc>: Declare.
1424 (cris_target::low_supports_breakpoints)
1425 (cris_target::low_get_pc)
1426 (cris_target::low_set_pc): Define.
1427 (the_low_target): Remove the op fields.
1428 * linux-crisv32-low.cc (class crisv32_target)
1429 <low_supports_breakpoints>
1431 <low_set_pc>: Declare.
1432 (crisv32_target::low_supports_breakpoints)
1433 (crisv32_target::low_get_pc)
1434 (crisv32_target::low_set_pc): Define.
1435 (the_low_target): Remove the op fields.
1436 * linux-m32r-low.cc (class m32r_target)
1437 <low_supports_breakpoints>
1439 <low_set_pc>: Declare.
1440 (m32r_target::low_supports_breakpoints)
1441 (m32r_target::low_get_pc)
1442 (m32r_target::low_set_pc): Define.
1443 (the_low_target): Remove the op fields.
1444 * linux-m68k-low.cc (class m68k_target)
1445 <low_supports_breakpoints>
1447 <low_set_pc>: Declare.
1448 (m68k_target::low_supports_breakpoints)
1449 (m68k_target::low_get_pc)
1450 (m68k_target::low_set_pc): Define.
1451 (the_low_target): Remove the op fields.
1452 * linux-nios2-low.cc (class nios2_target)
1453 <low_supports_breakpoints>
1455 <low_set_pc>: Declare.
1456 (nios2_target::low_supports_breakpoints)
1457 (nios2_target::low_get_pc)
1458 (nios2_target::low_set_pc): Define.
1459 (the_low_target): Remove the op fields.
1460 * linux-sh-low.cc (class sh_target)
1461 <low_supports_breakpoints>
1463 <low_set_pc>: Declare.
1464 (sh_target::low_supports_breakpoints)
1465 (sh_target::low_get_pc)
1466 (sh_target::low_set_pc): Define.
1467 (the_low_target): Remove the op fields.
1468 * linux-xtensa-low.cc (class xtensa_target)
1469 <low_supports_breakpoints>
1471 <low_set_pc>: Declare.
1472 (xtensa_target::low_supports_breakpoints)
1473 (xtensa_target::low_get_pc)
1474 (xtensa_target::low_set_pc): Define.
1475 (the_low_target): Remove the op fields.
1476 * linux-sparc-low.cc (class sparc_target)
1477 <low_supports_breakpoints>
1478 <low_get_pc>: Declare.
1479 (sparc_target::low_supports_breakpoints)
1480 (sparc_target::low_get_pc): Define.
1481 (the_low_target): Remove the op fields.
1482 * linux-tile-low.cc (class tile_target)
1483 <low_supports_breakpoints>
1485 <low_set_pc>: Declare.
1486 (tile_target::low_supports_breakpoints)
1487 (tile_target::low_get_pc)
1488 (tile_target::low_set_pc): Define.
1489 (the_low_target): Remove the op fields.
1490 * linux-aarch64-low.cc (class aarch64_target)
1491 <low_supports_breakpoints>
1493 <low_set_pc>: Declare.
1494 (aarch64_target::low_supports_breakpoints): Define.
1495 (aarch64_get_pc): Turn into...
1496 (aarch64_target::low_get_pc): ...this.
1497 (aarch64_set_pc): Turn into...
1498 (aarch64_target::low_set_pc): ...this.
1499 (the_low_target): Remove the op fields.
1500 * linux-mips-low.cc (class mips_target)
1501 <low_supports_breakpoints>
1503 <low_set_pc>: Declare.
1504 (mips_target::low_supports_breakpoints): Define.
1505 (mips_get_pc): Turn into...
1506 (mips_target::low_get_pc): ...this.
1507 (mips_set_pc): Turn into...
1508 (mips_target::low_set_pc): ...this.
1509 (the_low_target): Remove the op fields.
1510 * linux-ppc-low.cc (class ppc_target)
1511 <low_supports_breakpoints>
1513 <low_set_pc>: Declare.
1514 (ppc_target::low_supports_breakpoints): Define.
1515 (ppc_get_pc): Turn into...
1516 (ppc_target::low_get_pc): ...this.
1517 (ppc_set_pc): Turn into...
1518 (ppc_target::low_set_pc): ...this.
1519 (the_low_target): Remove the op fields.
1520 * linux-riscv-low.cc (class riscv_target)
1521 <low_supports_breakpoints>
1523 <low_set_pc>: Declare.
1524 (riscv_target::low_supports_breakpoints): Define.
1525 (riscv_get_pc): Turn into...
1526 (riscv_target::low_get_pc): ...this.
1527 (riscv_set_pc): Turn into...
1528 (riscv_target::low_set_pc): ...this.
1529 (the_low_target): Remove the op fields.
1530 * linux-s390-low.cc (class s390_target)
1531 <low_supports_breakpoints>
1533 <low_set_pc>: Declare.
1534 (s390_target::low_supports_breakpoints): Define.
1535 (s390_get_pc): Turn into...
1536 (s390_target::low_get_pc): ...this.
1537 (s390_set_pc): Turn into...
1538 (s390_target::low_set_pc): ...this.
1539 (the_low_target): Remove the op fields.
1540 * linux-tic6x-low.cc (class tic6x_target)
1541 <low_supports_breakpoints>
1543 <low_set_pc>: Declare.
1544 (tic6x_target::low_supports_breakpoints): Define.
1545 (tic6x_get_pc): Turn into...
1546 (tic6x_target::low_get_pc): ...this.
1547 (tic6x_set_pc): Turn into...
1548 (tic6x_target::low_set_pc): ...this.
1549 (the_low_target): Remove the op fields.
1551 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1553 Turn some more static methods in linux-low into private methods
1554 of linux_process_target.
1556 * linux-low.cc (get_pc): Turn into...
1557 (linux_process_target::get_pc): ...this.
1558 (save_stop_reason): Turn into...
1559 (linux_process_target::save_stop_reason): ...this.
1560 (thread_still_has_status_pending_p): Turn into...
1561 (linux_process_target::thread_still_has_status_pending): ...this.
1562 (status_pending_p_callback): Turn into...
1563 (linux_process_target::status_pending_p_callback): ...this.
1564 (resume_stopped_resumed_lwps): Turn into...
1565 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1566 (install_software_single_step_breakpoints): Turn into...
1567 (linux_process_target::install_software_single_step_breakpoints):
1569 (single_step): Turn into...
1570 (linux_process_target::single_step): ...this.
1571 (linux_resume_one_lwp_throw): Turn into...
1572 (linux_process_target::resume_one_lwp_throw): ...this.
1573 (linux_resume_one_lwp): Turn into...
1574 (linux_process_target::resume_one_lwp): ...this.
1575 (resume_status_pending_p): Turn into...
1576 (linux_process_target::resume_status_pending): ...this.
1577 (need_step_over_p): Turn into...
1578 (linux_process_target::thread_needs_step_over): ...this.
1579 (linux_resume_one_thread): Turn into...
1580 (linux_process_target::resume_one_thread): ...this.
1581 (proceed_one_lwp): Turn into...
1582 (linux_process_target::proceed_one_lwp): ...this.
1583 (unsuspend_and_proceed_one_lwp): Turn into...
1584 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1586 Update the calls/references to the above functions below.
1588 (linux_process_target::handle_extended_wait)
1589 (linux_process_target::filter_event)
1590 (linux_process_target::wait_for_event_filtered)
1591 (linux_process_target::wait_1)
1592 (linux_process_target::move_out_of_jump_pad)
1593 (linux_process_target::start_step_over)
1594 (linux_process_target::resume)
1595 (linux_process_target::proceed_all_lwps)
1596 (regsets_store_inferior_registers)
1597 (linux_process_target::store_register)
1599 * linux-low.h (class linux_process_target)
1602 <thread_still_has_status_pending>
1603 <status_pending_p_callback>
1604 <resume_stopped_resumed_lwps>
1605 <install_software_single_step_breakpoints>
1607 <resume_one_lwp_throw>
1609 <resume_status_pending>
1610 <thread_needs_step_over>
1613 <unsuspend_and_proceed_one_lwp>: Declare.
1615 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1617 Turn the 'fetch_register' linux target op into a method of
1618 linux_process_target.
1620 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1621 (class linux_process_target) <low_fetch_register>: Declare.
1622 * linux-x86-low.cc (the_low_target)
1623 * linux-aarch64-low.cc (the_low_target)
1624 * linux-arm-low.cc (the_low_target)
1625 * linux-bfin-low.cc (the_low_target)
1626 * linux-cris-low.cc (the_low_target)
1627 * linux-crisv32-low.cc (the_low_target)
1628 * linux-m32r-low.cc (the_low_target)
1629 * linux-m68k-low.cc (the_low_target)
1630 * linux-nios2-low.cc (the_low_target)
1631 * linux-ppc-low.cc (the_low_target)
1632 * linux-s390-low.cc (the_low_target)
1633 * linux-sh-low.cc (the_low_target)
1634 * linux-sparc-low.cc (the_low_target)
1635 * linux-tic6x-low.cc (the_low_target)
1636 * linux-tile-low.cc (the_low_target)
1637 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1638 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1640 (ia64_fetch_register): Turn into...
1641 (ia64_target::low_fetch_register): ...this.
1642 (the_low_target): Remove the op field.
1643 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1645 (mips_fetch_register): Turn into...
1646 (mips_target::low_fetch_register): ...this.
1647 (the_low_target): Remove the op field.
1648 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1650 (riscv_fetch_register): Turn into...
1651 (riscv_target::low_fetch_register): ...this.
1652 (the_low_target): Remove the op field.
1654 Update the callers below.
1656 * linux-low.cc (linux_process_target::fetch_registers)
1657 (linux_process_target::low_fetch_register)
1659 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1661 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1662 linux target ops into methods of linux_process_target.
1664 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1665 (class linux_process_target) <fetch_register>
1667 <usr_fetch_inferior_registers>
1668 <usr_store_inferior_registers>
1669 <low_cannot_fetch_register>
1670 <low_cannot_fetch_register> Declare.
1671 * linux-low.cc (fetch_register): Turn into...
1672 (linux_process_target::fetch_register): ...this.
1673 (store_register): Turn into ...
1674 (linux_process_target::store_register): ...this.
1675 (usr_fetch_inferior_registers): Turn into...
1676 (linux_process_target::usr_fetch_inferior_registers): ...this.
1677 (usr_store_inferior_registers): Turn into...
1678 (linux_process_target::usr_store_inferior_registers): ...this.
1679 * linux-x86-low.cc (class x86_target)
1680 <low_cannot_fetch_register>
1681 <low_cannot_store_register>: Declare.
1682 (x86_cannot_store_register): Turn into...
1683 (x86_target::low_cannot_store_register): ...this.
1684 (x86_cannot_fetch_register): Turn into...
1685 (x86_target::low_cannot_fetch_register): ...this.
1686 (the_low_target): Remove the target op fields.
1687 * linux-aarch64-low.cc (class aarch64_target)
1688 <low_cannot_fetch_register>
1689 <low_cannot_store_register>: Declare.
1690 (aarch64_target::low_cannot_fetch_register)
1691 (aarch64_target::low_cannot_store_register): Define.
1692 (the_low_target): Remove the op fields.
1693 * linux-arm-low.cc (class arm_target)
1694 <low_cannot_fetch_register>
1695 <low_cannot_store_register>: Declare.
1696 (arm_cannot_fetch_register): Turn into...
1697 (arm_target::low_cannot_fetch_register): ...this.
1698 (arm_cannot_store_register): Turn into...
1699 (arm_target::low_cannot_store_register): ...this.
1700 (the_low_target): Remove the op fields.
1701 * linux-bfin-low.cc (class bfin_target)
1702 <low_cannot_fetch_register>
1703 <low_cannot_store_register>: Declare.
1704 (bfin_cannot_fetch_register): Turn into...
1705 (bfin_target::low_cannot_fetch_register): ...this.
1706 (bfin_cannot_store_register): Turn into...
1707 (bfin_target::low_cannot_store_register): ...this.
1708 (the_low_target): Remove the op fields.
1709 * linux-cris-low.cc (class cris_target)
1710 <low_cannot_fetch_register>
1711 <low_cannot_store_register>: Declare.
1712 (cris_cannot_fetch_register): Turn into...
1713 (cris_target::low_cannot_fetch_register): ...this.
1714 (cris_cannot_store_register): Turn into...
1715 (cris_target::low_cannot_store_register): ...this.
1716 (the_low_target): Remove the op fields.
1717 * linux-crisv32-low.cc (class crisv32_target)
1718 <low_cannot_fetch_register>
1719 <low_cannot_store_register>: Declare.
1720 (crisv32_target::low_cannot_fetch_register)
1721 (crisv32_target::low_cannot_store_register): Define.
1722 (the_low_target): Remove the op fields.
1723 * linux-ia64-low.cc (class ia64_target)
1724 <low_cannot_fetch_register>
1725 <low_cannot_store_register>: Declare.
1726 (ia64_cannot_fetch_register): Turn into...
1727 (ia64_target::low_cannot_fetch_register): ...this.
1728 (ia64_cannot_store_register): Turn into...
1729 (ia64_target::low_cannot_store_register): ...this.
1730 (the_low_target): Remove the op fields.
1731 * linux-m32r-low.cc (class m32r_target)
1732 <low_cannot_fetch_register>
1733 <low_cannot_store_register>: Declare.
1734 (m32r_cannot_fetch_register): Turn into...
1735 (m32r_target::low_cannot_fetch_register): ...this.
1736 (m32r_cannot_store_register): Turn into...
1737 (m32r_target::low_cannot_store_register): ...this.
1738 (the_low_target): Remove the op fields.
1739 * linux-m68k-low.cc (class m68k_target)
1740 <low_cannot_fetch_register>
1741 <low_cannot_store_register>: Declare.
1742 (m68k_cannot_fetch_register): Turn into...
1743 (m68k_target::low_cannot_fetch_register): ...this.
1744 (m68k_cannot_store_register): Turn into...
1745 (m68k_target::low_cannot_store_register): ...this.
1746 (the_low_target): Remove the op fields.
1747 * linux-mips-low.cc (class mips_target)
1748 <low_cannot_fetch_register>
1749 <low_cannot_store_register>: Declare.
1750 (mips_cannot_fetch_register): Turn into...
1751 (mips_target::low_cannot_fetch_register): ...this.
1752 (mips_cannot_store_register): Turn into...
1753 (mips_target::low_cannot_store_register): ...this.
1754 (get_usrregs_info): Inline at the call sites in
1755 low_cannot_fetch_register and low_cannot_store_register,
1757 (the_low_target): Remove the op fields.
1758 * linux-nios2-low.cc (class nios2_target)
1759 <low_cannot_fetch_register>
1760 <low_cannot_store_register>: Declare.
1761 (nios2_cannot_fetch_register): Turn into...
1762 (nios2_target::low_cannot_fetch_register): ...this.
1763 (nios2_cannot_store_register): Turn into...
1764 (nios2_target::low_cannot_store_register): ...this.
1765 (the_low_target): Remove the op fields.
1766 * linux-ppc-low.cc (class ppc_target)
1767 <low_cannot_fetch_register>
1768 <low_cannot_store_register>: Declare.
1769 (ppc_cannot_fetch_register): Turn into...
1770 (ppc_target::low_cannot_fetch_register): ...this.
1771 (ppc_cannot_store_register): Turn into...
1772 (ppc_target::low_cannot_store_register): ...this.
1773 (the_low_target): Remove the op fields.
1774 * linux-riscv-low.cc (class riscv_target)
1775 <low_cannot_fetch_register>
1776 <low_cannot_store_register>: Declare.
1777 (riscv_target::low_cannot_fetch_register)
1778 (riscv_target::low_cannot_store_register): Define.
1779 (the_low_target): Remove the op fields.
1780 * linux-s390-low.cc (class s390_target)
1781 <low_cannot_fetch_register>
1782 <low_cannot_store_register>: Declare.
1783 (s390_cannot_fetch_register): Turn into...
1784 (s390_target::low_cannot_fetch_register): ...this.
1785 (s390_cannot_store_register): Turn into...
1786 (s390_target::low_cannot_store_register): ...this.
1787 (the_low_target): Remove the op fields.
1788 * linux-sh-low.cc (class sh_target)
1789 <low_cannot_fetch_register>
1790 <low_cannot_store_register>: Declare.
1791 (sh_cannot_fetch_register): Turn into...
1792 (sh_target::low_cannot_fetch_register): ...this.
1793 (sh_cannot_store_register): Turn into...
1794 (sh_target::low_cannot_store_register): ...this.
1795 (the_low_target): Remove the op fields.
1796 * linux-sparc-low.cc (class sparc_target)
1797 <low_cannot_fetch_register>
1798 <low_cannot_store_register>: Declare.
1799 (sparc_cannot_fetch_register): Turn into...
1800 (sparc_target::low_cannot_fetch_register): ...this.
1801 (sparc_cannot_store_register): Turn into...
1802 (sparc_target::low_cannot_store_register): ...this.
1803 (the_low_target): Remove the op fields.
1804 * linux-tic6x-low.cc (class tic6x_target)
1805 <low_cannot_fetch_register>
1806 <low_cannot_store_register>: Declare.
1807 (tic6x_cannot_fetch_register): Turn into...
1808 (tic6x_target::low_cannot_fetch_register): ...this.
1809 (tic6x_cannot_store_register): Turn into...
1810 (tic6x_target::low_cannot_store_register): ...this.
1811 (the_low_target): Remove the op fields.
1812 * linux-tile-low.cc (class tile_target)
1813 <low_cannot_fetch_register>
1814 <low_cannot_store_register>: Declare.
1815 (tile_cannot_fetch_register): Turn into...
1816 (tile_target::low_cannot_fetch_register): ...this.
1817 (tile_cannot_store_register): Turn into...
1818 (tile_target::low_cannot_store_register): ...this.
1819 (the_low_target): Remove the op fields.
1820 * linux-xtensa-low.cc (class xtensa_target)
1821 <low_cannot_fetch_register>
1822 <low_cannot_store_register>: Declare.
1823 (xtensa_target::low_cannot_fetch_register)
1824 (xtensa_target::low_cannot_store_register): Define.
1825 (the_low_target): Remove the op fields.
1827 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1829 Turn the 'regs_info' linux target op into a method of
1830 linux_process_target.
1832 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1833 (class linux_process_target) <get_regs_info>: Define.
1835 Update the callers below.
1837 * linux-low.cc (linux_process_target::fetch_registers)
1838 (linux_process_target::store_registers)
1839 * proc-service.cc (gregset_info)
1841 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1842 (x86_linux_regs_info): Turn into ...
1843 (x86_target::get_regs_info): ...this.
1844 (the_low_target): Remove the op field.
1845 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1847 (aarch64_regs_info): Turn into ...
1848 (aarch64_target::get_regs_info): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1851 (arm_regs_info): Turn into ...
1852 (arm_target::get_regs_info): ...this.
1853 (the_low_target): Remove the op field.
1854 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1855 (bfin_regs_info): Turn into ...
1856 (bfin_target::get_regs_info): ...this.
1857 (the_low_target): Remove the op field.
1858 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1859 (cris_regs_info): Turn into ...
1860 (cris_target::get_regs_info): ...this.
1861 (the_low_target): Remove the op field.
1862 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1864 (crisv32_regs_info): Turn into ...
1865 (crisv32_target::get_regs_info): ...this.
1866 (the_low_target): Remove the op field.
1867 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1868 (ia64_regs_info): Turn into ...
1869 (ia64_target::get_regs_info): ...this.
1870 (the_low_target): Remove the op field.
1871 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1872 (m32r_regs_info): Turn into ...
1873 (m32r_target::get_regs_info): ...this.
1874 (the_low_target): Remove the op field.
1875 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1876 (m68k_regs_info): Turn into ...
1877 (m68k_target::get_regs_info): ...this.
1878 (the_low_target): Remove the op field.
1879 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1880 (mips_regs_info): Turn into ...
1881 (mips_target::get_regs_info): ...this.
1882 (the_low_target): Remove the op field.
1883 (get_usrregs_info): Update the call to the op.
1884 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1885 (nios2_regs_info): Turn into ...
1886 (nios2_target::get_regs_info): ...this.
1887 (the_low_target): Remove the op field.
1888 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1889 (ppc_regs_info): Turn into ...
1890 (ppc_target::get_regs_info): ...this.
1891 (the_low_target): Remove the op field.
1892 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1893 (riscv_regs_info): Turn into ...
1894 (riscv_target::get_regs_info): ...this.
1895 (the_low_target): Remove the op field.
1896 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1897 (s390_regs_info): Turn into ...
1898 (s390_target::get_regs_info): ...this.
1899 (the_low_target): Remove the op field.
1900 (s390_collect_ptrace_register)
1901 (s390_supply_ptrace_register)
1902 (s390_fill_gregset): Update the call to the op.
1903 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1904 (sh_regs_info): Turn into ...
1905 (sh_target::get_regs_info): ...this.
1906 (the_low_target): Remove the op field.
1907 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1908 (sparc_regs_info): Turn into ...
1909 (sparc_target::get_regs_info): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1912 (tic6x_regs_info): Turn into ...
1913 (tic6x_target::get_regs_info): ...this.
1914 (the_low_target): Remove the op field.
1915 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1916 (tile_regs_info): Turn into ...
1917 (tile_target::get_regs_info): ...this.
1918 (the_low_target): Remove the op field.
1919 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1921 (xtensa_regs_info): Turn into ...
1922 (xtensa_target::get_regs_info): ...this.
1923 (the_low_target): Remove the op field.
1925 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1927 Turn the 'arch_setup' linux target op into a method of
1928 linux_process_target.
1930 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1931 (class linux_process_target) <arch_setup_thread>
1932 <low_arch_setup>: New declarations.
1933 * linux-low.cc (linux_arch_setup): Delete.
1934 (linux_arch_setup_thread): Turn into...
1935 (linux_process_target::arch_setup_thread): ... this.
1937 Update the callers below.
1939 (linux_process_target::handle_extended_wait)
1940 (linux_process_target::post_create_inferior)
1941 (linux_process_target::filter_event)
1943 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1945 (x86_linux_update_xmltarget): Turn into...
1946 (x86_target::update_xmltarget): ...this.
1947 (x86_linux_process_qsupported): Update the call to
1948 x86_linux_update_xmltarget.
1949 (x86_arch_setup): Turn into ...
1950 (x86_target::low_arch_setup): ...this.
1951 (the_low_target): Remove the op field.
1952 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1954 (aarch64_arch_setup): Turn into ...
1955 (aarch64_target::low_arch_setup): ...this.
1956 (the_low_target): Remove the op field.
1957 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1959 (arm_arch_setup): Turn into ...
1960 (arm_target::low_arch_setup): ...this.
1961 (the_low_target): Remove the op field.
1962 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1964 (bfin_arch_setup): Turn into ...
1965 (bfin_target::low_arch_setup): ...this.
1966 (the_low_target): Remove the op field.
1967 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1969 (cris_arch_setup): Turn into ...
1970 (cris_target::low_arch_setup): ...this.
1971 (the_low_target): Remove the op field.
1972 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1974 (crisv32_arch_setup): Turn into ...
1975 (crisv32_target::low_arch_setup): ...this.
1976 (the_low_target): Remove the op field.
1977 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1979 (ia64_arch_setup): Turn into ...
1980 (ia64_target::low_arch_setup): ...this.
1981 (the_low_target): Remove the op field.
1982 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
1984 (m32r_arch_setup): Turn into ...
1985 (m32r_target::low_arch_setup): ...this.
1986 (the_low_target): Remove the op field.
1987 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
1989 (m68k_arch_setup): Turn into ...
1990 (m68k_target::low_arch_setup): ...this.
1991 (the_low_target): Remove the op field.
1992 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
1994 (mips_arch_setup): Turn into ...
1995 (mips_target::low_arch_setup): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
1999 (nios2_arch_setup): Turn into ...
2000 (nios2_target::low_arch_setup): ...this.
2001 (the_low_target): Remove the op field.
2002 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2004 (ppc_arch_setup): Turn into ...
2005 (ppc_target::low_arch_setup): ...this.
2006 (the_low_target): Remove the op field.
2007 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2009 (riscv_arch_setup): Turn into ...
2010 (riscv_target::low_arch_setup): ...this.
2011 (the_low_target): Remove the op field.
2012 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2014 (s390_arch_setup): Turn into ...
2015 (s390_target::low_arch_setup): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2019 (sh_arch_setup): Turn into ...
2020 (sh_target::low_arch_setup): ...this.
2021 (the_low_target): Remove the op field.
2022 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2024 (sparc_arch_setup): Turn into ...
2025 (sparc_target::low_arch_setup): ...this.
2026 (the_low_target): Remove the op field.
2027 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2029 (tic6x_arch_setup): Turn into ...
2030 (tic6x_target::low_arch_setup): ...this.
2031 (the_low_target): Remove the op field.
2032 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2034 (tile_arch_setup): Turn into ...
2035 (tile_target::low_arch_setup): ...this.
2036 (the_low_target): Remove the op field.
2037 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2039 (xtensa_arch_setup): Turn into ...
2040 (xtensa_target::low_arch_setup): ...this.
2041 (the_low_target): Remove the op field.
2043 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2045 * linux-low.h (the_linux_target): New extern declaration.
2046 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2048 (the_linux_target): Remove.
2049 * linux-x86-low.cc (class x86_target): New class.
2050 (the_x86_target): New static object.
2051 (the_linux_target): Define as pointer to the_x86_target.
2052 * linux-aarch64-low.cc (class aarch64_target): New class.
2053 (the_aarch64_target): New static object.
2054 (the_linux_target): Define as pointer to the_aarch64_target.
2055 * linux-arm-low.cc (class arm_target): New class.
2056 (the_arm_target): New static object.
2057 (the_linux_target): Define as pointer to the_arm_target.
2058 * linux-bfin-low.cc (class bfin_target): New class.
2059 (the_bfin_target): New static object.
2060 (the_linux_target): Define as pointer to the_bfin_target.
2061 * linux-cris-low.cc (class cris_target): New class.
2062 (the_cris_target): New static object.
2063 (the_linux_target): Define as pointer to the_cris_target.
2064 * linux-crisv32-low.cc (class crisv32_target): New class.
2065 (the_crisv32_target): New static object.
2066 (the_linux_target): Define as pointer to the_crisv32_target.
2067 * linux-ia64-low.cc (class ia64_target): New class.
2068 (the_ia64_target): New static object.
2069 (the_linux_target): Define as pointer to the_ia64_target.
2070 * linux-m32r-low.cc (class m32r_target): New class.
2071 (the_m32r_target): New static object.
2072 (the_linux_target): Define as pointer to the_m32r_target.
2073 * linux-m68k-low.cc (class m68k_target): New class.
2074 (the_m68k_target): New static object.
2075 (the_linux_target): Define as pointer to the_m68k_target.
2076 * linux-mips-low.cc (class mips_target): New class.
2077 (the_mips_target): New static object.
2078 (the_linux_target): Define as pointer to the_mips_target.
2079 * linux-nios2-low.cc (class nios2_target): New class.
2080 (the_nios2_target): New static object.
2081 (the_linux_target): Define as pointer to the_nios2_target.
2082 * linux-ppc-low.cc (class ppc_target): New class.
2083 (the_ppc_target): New static object.
2084 (the_linux_target): Define as pointer to the_ppc_target.
2085 * linux-riscv-low.cc (class riscv_target): New class.
2086 (the_riscv_target): New static object.
2087 (the_linux_target): Define as pointer to the_riscv_target.
2088 * linux-s390-low.cc (class s390_target): New class.
2089 (the_s390_target): New static object.
2090 (the_linux_target): Define as pointer to the_s390_target.
2091 * linux-sh-low.cc (class sh_target): New class.
2092 (the_sh_target): New static object.
2093 (the_linux_target): Define as pointer to the_sh_target.
2094 * linux-sparc-low.cc (class sparc_target): New class.
2095 (the_sparc_target): New static object.
2096 (the_linux_target): Define as pointer to the_sparc_target.
2097 * linux-tic6x-low.cc (class tic6x_target): New class.
2098 (the_tic6x_target): New static object.
2099 (the_linux_target): Define as pointer to the_tic6x_target.
2100 * linux-tile-low.cc (class tile_target): New class.
2101 (the_tile_target): New static object.
2102 (the_linux_target): Define as pointer to the_tile_target.
2103 * linux-xtensa-low.cc (class xtensa_target): New class.
2104 (the_xtensa_target): New static object.
2105 (the_linux_target): Define as pointer to the_xtensa_target.
2107 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2109 Turn some static functions in linux-low.cc into private methods of
2110 linux_process_target.
2112 * linux-low.cc (handle_extended_wait): Turn into ...
2113 (linux_process_target::handle_extended_wait): ...this. Call
2114 'mourn' on 'this' object instead of 'the_target'.
2115 (maybe_move_out_of_jump_pad): Turn into...
2116 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2117 (linux_low_filter_event): Turn into...
2118 (linux_process_target::filter_event): ...this.
2119 (linux_wait_for_event_filtered): Turn into...
2120 (linux_process_target::wait_for_event_filtered): ...this.
2121 (linux_wait_for_event): Turn into...
2122 (linux_process_target::wait_for_event): ...this.
2123 (linux_wait_1): Turn into...
2124 (linux_process_target::wait_1): ...this.
2125 (wait_for_sigstop): Turn into...
2126 (linux_process_target::wait_for_sigstop): ...this.
2127 (move_out_of_jump_pad_callback): Turn into...
2128 (linux_process_target::move_out_of_jump_pad): ...this.
2129 (stop_all_lwps): Turn into...
2130 (linux_process_target::stop_all_lwps): ...this.
2131 (start_step_over): Turn into...
2132 (linux_process_target::start_step_over): ...this.
2133 (complete_ongoing_step_over): Turn into...
2134 (linux_process_target::complete_ongoing_step_over): ...this.
2135 (proceed_all_lwps): Turn into...
2136 (linux_process_target::proceed_all_lwps): ...this.
2137 (unstop_all_lwps): Turn into...
2138 (linux_process_target::unstop_all_lwps): ...this.
2140 * linux-low.h (class linux_process_target)
2141 <handle_extended_wait>
2142 <maybe_move_out_of_jump_pad>
2144 <wait_for_event_filtered>
2148 <move_out_of_jump_pad>
2151 <complete_ongoing_step_over>
2153 <unstop_all_lwps>: Declare.
2155 Update the callers below.
2157 * linux-low.cc (linux_process_target::attach): Update.
2158 (linux_process_target::stabilize_threads): Ditto.
2159 (linux_process_target::wait): Ditto.
2161 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2163 * linux-low.h (struct linux_target_ops): Update the comment for
2164 'cannot_store_register' to return 0 or 1.
2165 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2168 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2170 * config.in: Re-generate.
2171 * configure: Re-generate.
2173 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2175 * regcache.cc (find_register_by_number): Update.
2176 * tdesc.cc (init_target_desc): Likewise.
2177 * tdesc.h (target_desc::reg_defs): Likewise.
2179 2020-03-12 Tom Tromey <tom@tromey.com>
2181 * configure: Rebuild.
2182 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2183 (WIN32APILIBS): New subst.
2184 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2186 (gdbsupport/%.o): Remove target.
2187 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2188 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2189 (WIN32APILIBS): New variable.
2190 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2191 (gdbreplay$(EXEEXT)): Likewise.
2193 2020-03-12 Tom Tromey <tom@tromey.com>
2195 * config.in, configure: Rebuild.
2196 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2197 * acinclude.m4: Include gettext-sister.m4.
2198 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2200 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2201 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2203 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2205 * acinclude.m4: Update path to selftest.m4.
2207 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2209 * configure.ac: Don't source bfd/development.sh, move
2210 GDB_AC_COMMON higher.
2211 * configure: Re-generate.
2213 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2215 * configure: Re-generate.
2217 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2219 * configure: Re-generate.
2221 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2223 * .dir-locals.el: New file.
2225 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2227 * .gitattributes: New file.
2229 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2231 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2232 reply into an S reply.
2233 * server.cc (disable_packet_T): New global.
2234 (captured_main): Set new global when appropriate.
2235 * server.h (disable_packet_T): Declare.
2237 2020-02-21 Tom Tromey <tom@tromey.com>
2239 * Makefile.in (mostlyclean): New target.
2241 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2243 * target.h (struct process_stratum_target): Remove.
2244 (class process_target): Rename to ...
2245 (class process_stratum_target): ... this.
2246 * linux-low.h (class linux_process_target): Derive from
2247 'process_stratum_target'.
2248 * linux-low.cc (linux_target_ops): Remove.
2249 (initialize_low): Set the_target to the singleton instance of
2250 linux_process_target.
2251 * lynx-low.h (class lynx_process_target): Derive from
2252 'process_stratum_target'.
2253 * lynx-low.cc (lynx_target_ops): Remove.
2254 (initialize_low): Set the_target to the singleton instance of
2255 lynx_process_target.
2256 * nto-low.h (class nto_process_target): Derive from
2257 'process_stratum_target'.
2258 * nto-low.cc (nto_target_ops): Remove.
2259 (initialize_low): Set the_target to the singleton instance of
2261 * win32-low.h (class win32_process_target): Derive from
2262 'process_stratum_target'.
2263 * win32-low.cc (win32_target_ops): Remove.
2264 (initialize_low): Set the_target to the singleton instance of
2265 win32_process_target.
2267 Replace 'the_target->pt' with 'the_target' in the uses below.
2269 * hostio.cc (hostio_error)
2274 * linux-aarch32-low.cc (arm_breakpoint_at)
2275 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2276 * linux-arm-low.cc (arm_sigreturn_next_pc)
2278 (arm_get_syscall_trapinfo)
2279 * linux-cris-low.cc (cris_breakpoint_at)
2280 * linux-crisv32-low.cc (cris_breakpoint_at)
2281 * linux-low.cc (handle_extended_wait)
2284 (linux_process_target::breakpoint_kind_from_pc)
2286 * linux-m32r-low.cc (m32r_breakpoint_at)
2287 * linux-mips-low.cc (mips_breakpoint_at)
2288 * linux-nios2-low.cc (nios2_breakpoint_at)
2289 * linux-ppc-low.cc (ppc_breakpoint_at)
2290 * linux-s390-low.cc (s390_get_hwcap)
2291 * linux-sh-low.cc (sh_breakpoint_at)
2292 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2293 (sparc_store_gregset_from_stack)
2294 (sparc_breakpoint_at)
2295 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2296 * linux-tile-low.cc (tile_breakpoint_at)
2297 * linux-x86-low.cc (x86_breakpoint_at)
2298 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2299 * mem-break.cc (bp_size)
2301 (insert_memory_breakpoint)
2302 (set_raw_breakpoint_at)
2303 (delete_raw_breakpoint)
2305 (uninsert_raw_breakpoint)
2306 (reinsert_raw_breakpoint)
2307 (validate_inserted_breakpoint)
2308 * regcache.cc (regcache_read_pc)
2310 * remote-utils.cc (putpkt_binary_1)
2313 (prepare_resume_reply)
2314 * server.cc (handle_general_set)
2317 (handle_qxfer_exec_file)
2318 (handle_qxfer_libraries_svr4)
2319 (handle_qxfer_osdata)
2320 (handle_qxfer_siginfo)
2321 (handle_qxfer_fdpic)
2325 (queue_stop_reply_callback)
2327 * target.cc (prepare_to_access_memory)
2328 (done_accessing_memory)
2329 (read_inferior_memory)
2330 (target_write_memory)
2331 (target_stop_and_wait)
2333 (target_mourn_inferior)
2334 (target_continue_no_signal)
2336 (target_supports_multi_process)
2339 (target_create_inferior)
2340 (target_post_create_inferior)
2342 (target_supports_fork_events)
2343 (target_supports_vfork_events)
2344 (target_supports_exec_events)
2345 (target_handle_new_gdb_connection)
2348 (fetch_inferior_registers)
2349 (store_inferior_registers)
2351 (target_supports_non_stop)
2353 (target_process_qsupported)
2354 (target_supports_catch_syscall)
2355 (target_get_ipa_tdesc_idx)
2356 (target_supports_tracepoints)
2357 (target_supports_fast_tracepoints)
2358 (target_get_min_fast_tracepoint_insn_len)
2359 (target_thread_stopped)
2361 (target_unpause_all)
2362 (target_stabilize_threads)
2363 (target_install_fast_tracepoint_jump_pad)
2365 (target_supports_disable_randomization)
2366 (target_supports_agent)
2367 (target_enable_btrace)
2368 (target_disable_btrace)
2369 (target_read_btrace)
2370 (target_read_btrace_conf)
2371 (target_supports_range_stepping)
2372 (target_supports_stopped_by_sw_breakpoint)
2373 (target_stopped_by_sw_breakpoint)
2374 (target_supports_stopped_by_hw_breakpoint)
2375 (target_supports_hardware_single_step)
2376 (target_stopped_by_hw_breakpoint)
2377 (target_breakpoint_kind_from_pc)
2378 (target_breakpoint_kind_from_current_state)
2379 (target_supports_software_single_step)
2380 (target_core_of_thread)
2381 (target_thread_name)
2382 (target_thread_handle)
2383 * win32-low.cc (do_initial_child_stuff)
2385 Rename target op default definitions listed below.
2387 * target.cc (process_target::post_create_inferior): Rename as ...
2388 (process_stratum_target::post_create_inferior): ... this.
2389 (process_target::prepare_to_access_memory): Rename as ...
2390 (process_stratum_target::prepare_to_access_memory): ... this.
2391 (process_target::done_accessing_memory): Rename as ...
2392 (process_stratum_target::done_accessing_memory): ... this.
2393 (process_target::look_up_symbols): Rename as ...
2394 (process_stratum_target::look_up_symbols): ... this.
2395 (process_target::supports_read_auxv): Rename as ...
2396 (process_stratum_target::supports_read_auxv): ... this.
2397 (process_target::read_auxv): Rename as ...
2398 (process_stratum_target::read_auxv): ... this.
2399 (process_target::supports_z_point_type): Rename as ...
2400 (process_stratum_target::supports_z_point_type): ... this.
2401 (process_target::insert_point): Rename as ...
2402 (process_stratum_target::insert_point): ... this.
2403 (process_target::remove_point): Rename as ...
2404 (process_stratum_target::remove_point): ... this.
2405 (process_target::stopped_by_sw_breakpoint): Rename as ...
2406 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2407 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2408 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2409 (process_target::stopped_by_hw_breakpoint): Rename as ...
2410 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2411 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2412 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2413 (process_target::supports_hardware_single_step): Rename as ...
2414 (process_stratum_target::supports_hardware_single_step): ... this.
2415 (process_target::stopped_by_watchpoint): Rename as ...
2416 (process_stratum_target::stopped_by_watchpoint): ... this.
2417 (process_target::stopped_data_address): Rename as ...
2418 (process_stratum_target::stopped_data_address): ... this.
2419 (process_target::supports_read_offsets): Rename as ...
2420 (process_stratum_target::supports_read_offsets): ... this.
2421 (process_target::read_offsets): Rename as ...
2422 (process_stratum_target::read_offsets): ... this.
2423 (process_target::supports_get_tls_address): Rename as ...
2424 (process_stratum_target::supports_get_tls_address): ... this.
2425 (process_target::get_tls_address): Rename as ...
2426 (process_stratum_target::get_tls_address): ... this.
2427 (process_target::hostio_last_error): Rename as ...
2428 (process_stratum_target::hostio_last_error): ... this.
2429 (process_target::supports_qxfer_osdata): Rename as ...
2430 (process_stratum_target::supports_qxfer_osdata): ... this.
2431 (process_target::qxfer_osdata): Rename as ...
2432 (process_stratum_target::qxfer_osdata): ... this.
2433 (process_target::supports_qxfer_siginfo): Rename as ...
2434 (process_stratum_target::supports_qxfer_siginfo): ... this.
2435 (process_target::qxfer_siginfo): Rename as ...
2436 (process_stratum_target::qxfer_siginfo): ... this.
2437 (process_target::supports_non_stop): Rename as ...
2438 (process_stratum_target::supports_non_stop): ... this.
2439 (process_target::async): Rename as ...
2440 (process_stratum_target::async): ... this.
2441 (process_target::start_non_stop): Rename as ...
2442 (process_stratum_target::start_non_stop): ... this.
2443 (process_target::supports_multi_process): Rename as ...
2444 (process_stratum_target::supports_multi_process): ... this.
2445 (process_target::supports_fork_events): Rename as ...
2446 (process_stratum_target::supports_fork_events): ... this.
2447 (process_target::supports_vfork_events): Rename as ...
2448 (process_stratum_target::supports_vfork_events): ... this.
2449 (process_target::supports_exec_events): Rename as ...
2450 (process_stratum_target::supports_exec_events): ... this.
2451 (process_target::handle_new_gdb_connection): Rename as ...
2452 (process_stratum_target::handle_new_gdb_connection): ... this.
2453 (process_target::handle_monitor_command): Rename as ...
2454 (process_stratum_target::handle_monitor_command): ... this.
2455 (process_target::core_of_thread): Rename as ...
2456 (process_stratum_target::core_of_thread): ... this.
2457 (process_target::supports_read_loadmap): Rename as ...
2458 (process_stratum_target::supports_read_loadmap): ... this.
2459 (process_target::read_loadmap): Rename as ...
2460 (process_stratum_target::read_loadmap): ... this.
2461 (process_target::process_qsupported): Rename as ...
2462 (process_stratum_target::process_qsupported): ... this.
2463 (process_target::supports_tracepoints): Rename as ...
2464 (process_stratum_target::supports_tracepoints): ... this.
2465 (process_target::read_pc): Rename as ...
2466 (process_stratum_target::read_pc): ... this.
2467 (process_target::write_pc): Rename as ...
2468 (process_stratum_target::write_pc): ... this.
2469 (process_target::supports_thread_stopped): Rename as ...
2470 (process_stratum_target::supports_thread_stopped): ... this.
2471 (process_target::thread_stopped): Rename as ...
2472 (process_stratum_target::thread_stopped): ... this.
2473 (process_target::supports_get_tib_address): Rename as ...
2474 (process_stratum_target::supports_get_tib_address): ... this.
2475 (process_target::get_tib_address): Rename as ...
2476 (process_stratum_target::get_tib_address): ... this.
2477 (process_target::pause_all): Rename as ...
2478 (process_stratum_target::pause_all): ... this.
2479 (process_target::unpause_all): Rename as ...
2480 (process_stratum_target::unpause_all): ... this.
2481 (process_target::stabilize_threads): Rename as ...
2482 (process_stratum_target::stabilize_threads): ... this.
2483 (process_target::supports_fast_tracepoints): Rename as ...
2484 (process_stratum_target::supports_fast_tracepoints): ... this.
2485 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2486 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2487 (process_target::emit_ops): Rename as ...
2488 (process_stratum_target::emit_ops): ... this.
2489 (process_target::supports_disable_randomization): Rename as ...
2490 (process_stratum_target::supports_disable_randomization): ... this.
2491 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2492 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2493 (process_target::qxfer_libraries_svr4): Rename as ...
2494 (process_stratum_target::qxfer_libraries_svr4): ... this.
2495 (process_target::supports_agent): Rename as ...
2496 (process_stratum_target::supports_agent): ... this.
2497 (process_target::enable_btrace): Rename as ...
2498 (process_stratum_target::enable_btrace): ... this.
2499 (process_target::disable_btrace): Rename as ...
2500 (process_stratum_target::disable_btrace): ... this.
2501 (process_target::read_btrace): Rename as ...
2502 (process_stratum_target::read_btrace): ... this.
2503 (process_target::read_btrace_conf): Rename as ...
2504 (process_stratum_target::read_btrace_conf): ... this.
2505 (process_target::supports_range_stepping): Rename as ...
2506 (process_stratum_target::supports_range_stepping): ... this.
2507 (process_target::supports_pid_to_exec_file): Rename as ...
2508 (process_stratum_target::supports_pid_to_exec_file): ... this.
2509 (process_target::pid_to_exec_file): Rename as ...
2510 (process_stratum_target::pid_to_exec_file): ... this.
2511 (process_target::supports_multifs): Rename as ...
2512 (process_stratum_target::supports_multifs): ... this.
2513 (process_target::multifs_open): Rename as ...
2514 (process_stratum_target::multifs_open): ... this.
2515 (process_target::multifs_unlink): Rename as ...
2516 (process_stratum_target::multifs_unlink): ... this.
2517 (process_target::multifs_readlink): Rename as ...
2518 (process_stratum_target::multifs_readlink): ... this.
2519 (process_target::breakpoint_kind_from_pc): Rename as ...
2520 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2521 (process_target::breakpoint_kind_from_current_state): Rename as ...
2522 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2523 (process_target::thread_name): Rename as ...
2524 (process_stratum_target::thread_name): ... this.
2525 (process_target::thread_handle): Rename as ...
2526 (process_stratum_target::thread_handle): ... this.
2527 (process_target::supports_software_single_step): Rename as ...
2528 (process_stratum_target::supports_software_single_step): ... this.
2529 (process_target::supports_catch_syscall): Rename as ...
2530 (process_stratum_target::supports_catch_syscall): ... this.
2531 (process_target::get_ipa_tdesc_idx): Rename as ...
2532 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2534 2020-02-20 Pedro Alves <palves@redhat.com>
2536 * target.cc (set_target_ops): Simply copy the given target pointer
2537 instead of creating a copy of the pointed object.
2539 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2541 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2544 * target.h (struct process_stratum_target): Remove the target op.
2545 (class process_target): Add the target op.
2546 (target_get_ipa_tdesc_idx): Update the macro.
2547 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2549 Update the derived classes and callers below.
2551 * linux-low.cc (linux_target_ops): Update.
2552 (linux_get_ipa_tdesc_idx): Turn into ...
2553 (linux_process_target::get_ipa_tdesc_idx): ... this.
2554 * linux-low.h (class linux_process_target): Update.
2555 * lynx-low.cc (lynx_target_ops): Update.
2556 * nto-low.cc (nto_target_ops): Update.
2557 * win32-low.cc (win32_target_ops): Update.
2559 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2561 Turn process_stratum_target's supports_catch_syscall op into a
2562 method of process_target.
2564 * target.h (struct process_stratum_target): Remove the target op.
2565 (class process_target): Add the target op.
2566 (target_supports_catch_syscall): Update the macro.
2567 * target.cc (process_target::supports_catch_syscall): Define.
2569 Update the derived classes and callers below.
2571 * linux-low.cc (linux_target_ops): Update.
2572 (linux_supports_catch_syscall): Turn into ...
2573 (linux_process_target::supports_catch_syscall): ... this.
2574 * linux-low.h (class linux_process_target): Update.
2575 * lynx-low.cc (lynx_target_ops): Update.
2576 * nto-low.cc (nto_target_ops): Update.
2577 * win32-low.cc (win32_target_ops): Update.
2579 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2581 Turn process_stratum_target's supports_software_single_step op
2582 into a method of process_target.
2584 * target.h (struct process_stratum_target): Remove the target op.
2585 (class process_target): Add the target op.
2586 (target_supports_software_single_step): Update the macro.
2587 * target.cc (process_target::supports_software_single_step): Define.
2589 Update the derived classes and callers below.
2591 * linux-low.cc (linux_target_ops): Update.
2592 (linux_supports_software_single_step): Turn into ...
2593 (linux_process_target::supports_software_single_step): ... this.
2594 * linux-low.h (class linux_process_target): Update.
2595 * lynx-low.cc (lynx_target_ops): Update.
2596 * nto-low.cc (nto_target_ops): Update.
2597 * win32-low.cc (win32_target_ops): Update.
2599 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2601 Turn process_stratum_target's thread_name and thread_handle ops
2602 into methods of process_target.
2604 * target.h (struct process_stratum_target): Remove the target ops.
2605 (class process_target): Add the target ops.
2606 (target_thread_name): Update the macro.
2607 (target_thread_handle): Update the macro.
2608 * target.cc (process_target::thread_name): Define.
2609 (process_target::thread_handle): Define.
2611 Update the derived classes and callers below.
2613 * linux-low.cc (linux_target_ops): Update.
2614 (linux_process_target::thread_name): Define.
2615 (linux_process_target::thread_handle): Define.
2616 * linux-low.h (class linux_process_target): Update.
2617 * lynx-low.cc (lynx_target_ops): Update.
2618 * nto-low.cc (nto_target_ops): Update.
2619 * win32-low.cc (win32_target_ops): Update.
2621 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2623 Turn process_stratum_target's breakpoint_kind_from_pc,
2624 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2625 ops into methods of process_target.
2627 * target.h (struct process_stratum_target): Remove the target op.
2628 (class process_target): Add the target op.
2629 (target_breakpoint_kind_from_pc): Update the macro.
2630 (target_breakpoint_kind_from_current_state): Update the macro.
2631 (default_breakpoint_kind_from_pc): Remove declaration.
2632 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2633 (process_target::breakpoint_kind_from_pc): ... this.
2634 (process_target::breakpoint_kind_from_current_state): Define.
2636 Update the derived classes and callers below.
2638 * mem-break.cc (bp_size): Update.
2639 (bp_opcode): Update.
2640 * linux-low.cc (linux_target_ops): Update.
2641 (linux_wait_1): Update.
2642 (linux_breakpoint_kind_from_pc): Turn into ...
2643 (linux_process_target::breakpoint_kind_from_pc): ... this.
2644 (linux_sw_breakpoint_from_kind): Turn into ...
2645 (linux_process_target::sw_breakpoint_from_kind): ... this.
2646 (linux_breakpoint_kind_from_current_state): Turn into ...
2647 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2648 * linux-low.h (class linux_process_target): Update.
2649 * lynx-low.cc (lynx_target_ops): Update.
2650 (lynx_process_target::sw_breakpoint_from_kind): Define.
2651 * lynx-low.h (class lynx_process_target): Update.
2652 * nto-low.cc (nto_target_ops): Update.
2653 (nto_sw_breakpoint_from_kind): Turn into ...
2654 (nto_process_target::sw_breakpoint_from_kind): ... this.
2655 * nto-low.h (class nto_process_target): Update.
2656 * win32-low.cc (win32_target_ops): Update.
2657 (win32_sw_breakpoint_from_kind): Turn into ...
2658 (win32_process_target::sw_breakpoint_from_kind): ... this.
2659 * win32-low.h (class win32_process_target): Update.
2661 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2663 Turn process_stratum_target's multifs_open, multifs_readlink,
2664 multifs_unlink ops into methods of process_target.
2666 * target.h (struct process_stratum_target): Remove the target ops.
2667 (class process_target): Add the target ops. Also add
2669 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2671 (process_target::supports_multifs): Define.
2672 (process_target::multifs_open): Define.
2673 (process_target::multifs_readlink): Define.
2674 (process_target::multifs_unlink): Define.
2676 Update the derived classes and callers below.
2678 * hostio.cc (handle_setfs): Update.
2679 (handle_open): Update.
2680 (handle_unlink): Update.
2681 (handle_readlink): Update.
2682 * linux-low.cc (linux_target_ops): Update.
2683 (linux_process_target::supports_multifs): Define.
2684 (linux_process_target::multifs_open): Define.
2685 (linux_process_target::multifs_readlink): Define.
2686 (linux_process_target::multifs_unlink): Define.
2687 * linux-low.h (class linux_process_target): Update.
2688 * lynx-low.cc (lynx_target_ops): Update.
2689 * nto-low.cc (nto_target_ops): Update.
2690 * win32-low.cc (win32_target_ops): Update.
2692 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2694 Turn process_stratum_target's pid_to_exec_file op into a method
2697 * target.h (struct process_stratum_target): Remove the target op.
2698 (class process_target): Add the target op. Also add
2699 'supports_pid_to_exec_file'.
2700 * target.cc (process_target::pid_to_exec_file): Define.
2701 (process_target::supports_pid_to_exec_file): Define.
2703 Update the derived classes and callers below.
2705 * server.cc (handle_qxfer_exec_file): Update.
2706 (handle_query): Update.
2707 * linux-low.cc (linux_target_ops): Update.
2708 (linux_process_target::supports_pid_to_exec_file): Define.
2709 (linux_process_target::pid_to_exec_file): Define.
2710 * linux-low.h (class linux_process_target): Update.
2711 * lynx-low.cc (lynx_target_ops): Update.
2712 * nto-low.cc (nto_target_ops): Update.
2713 * win32-low.cc (win32_target_ops): Update.
2715 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2717 Turn process_stratum_target's supports_range_stepping op into a
2718 method of process_target.
2720 * target.h (struct process_stratum_target): Remove the target op.
2721 (class process_target): Add the target op.
2722 (target_supports_range_stepping): Update the macro.
2723 * target.cc (process_target::supports_range_stepping): Define.
2725 Update the derived classes and callers below.
2727 * linux-low.cc (linux_target_ops): Update.
2728 (linux_supports_range_stepping): Turn into ...
2729 (linux_process_target::supports_range_stepping): ... this.
2730 * linux-low.h (class linux_process_target): Update.
2731 * lynx-low.cc (lynx_target_ops): Update.
2732 * nto-low.cc (nto_target_ops): Update.
2733 * win32-low.cc (win32_target_ops): Update.
2735 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2737 Turn process_stratum_target's btrace-related ops (enable_btrace,
2738 disable_btrace, read_btrace, read_btrace_conf) into methods of
2741 * target.h (struct process_stratum_target): Remove the target ops.
2742 (class process_target): Add the target ops.
2743 (target_enable_btrace): Update.
2744 (target_disable_btrace): Update.
2745 (target_read_btrace): Update.
2746 (target_read_btrace_conf): Update.
2747 * target.cc (process_target::enable_btrace): Define.
2748 (process_target::disable_btrace): Define.
2749 (process_target::read_btrace): Define.
2750 (process_target::read_btrace_conf): Define.
2752 Update the derived classes and callers below.
2754 * linux-low.cc (linux_target_ops): Update.
2755 (linux_process_target:enable_btrace): Define as a wrapper around
2756 linux_enable_btrace.
2757 (linux_low_disable_btrace): Turn into ...
2758 (linux_process_target::disable_btrace): ... this.
2759 (linux_low_read_btrace): Turn into ...
2760 (linux_process_target::read_btrace): ... this.
2761 (linux_low_btrace_conf): Turn into ...
2762 (linux_process_target::read_btrace_conf): ... this.
2763 * linux-low.h (class linux_process_target): Update.
2764 * lynx-low.cc (lynx_target_ops): Update.
2765 * nto-low.cc (nto_target_ops): Update.
2766 * win32-low.cc (win32_target_ops): Update.
2768 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2770 Turn process_stratum_target's supports_agent op into a method of
2773 * target.h (struct process_stratum_target): Remove the target op.
2774 (class process_target): Add the target op.
2775 (target_supports_agent): Update the macro.
2776 * target.cc (process_target::supports_agent): Define.
2778 Update the derived classes and callers below.
2780 * linux-low.cc (linux_target_ops): Update.
2781 (linux_supports_agent): Turn into ...
2782 (linux_process_target::supports_agent): ... this.
2783 * linux-low.h (class linux_process_target): Update.
2784 * lynx-low.cc (lynx_target_ops): Update.
2785 * nto-low.cc (nto_target_ops): Update.
2786 * win32-low.cc (win32_target_ops): Update.
2788 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2790 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2791 method of process_target.
2793 * target.h (struct process_stratum_target): Remove the target op.
2794 (class process_target): Add the target op. Also add
2795 'supports_qxfer_libraries_svr4'.
2796 * target.cc (process_target::qxfer_libraries_svr4): Define.
2797 (process_target::supports_qxfer_libraries_svr4): Define.
2799 Update the derived classes and callers below.
2801 * server.cc (handle_qxfer_libraries_svr4): Update.
2802 (handle_query): Update.
2803 * linux-low.cc (linux_target_ops): Update.
2804 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2805 (linux_qxfer_libraries_svr4): Turn into ...
2806 (linux_process_target::qxfer_libraries_svr4): ... this.
2807 * linux-low.h (class linux_process_target): Update.
2808 * lynx-low.cc (lynx_target_ops): Update.
2809 * nto-low.cc (nto_target_ops): Update.
2810 * win32-low.cc (win32_target_ops): Update.
2812 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2814 Turn process_stratum_target's supports_disable_randomization op
2815 into a method of process_target.
2817 * target.h (struct process_stratum_target): Remove the target op.
2818 (class process_target): Add the target op.
2819 (target_supports_disable_randomization): Update the macro.
2820 * target.cc (process_target::supports_disable_randomization): Define.
2822 Update the derived classes and callers below.
2824 * linux-low.cc (linux_target_ops): Update.
2825 (linux_supports_disable_randomization): Turn into ...
2826 (linux_process_target::supports_disable_randomization): ... 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 emit_ops 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_emit_ops): Update the macro.
2840 * target.cc (process_target::emit_ops): Define.
2842 Update the derived classes and callers below.
2844 * linux-low.cc (linux_target_ops): Update.
2845 (linux_emit_ops): Turn into ...
2846 (linux_process_target::emit_ops): ... 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 install_fast_tracepoint_jump_pad
2855 and get_min_fast_tracepoint_insn_len ops into methods of
2858 * target.h (struct process_stratum_target): Remove the target ops.
2859 (class process_target): Add the target ops. Also add
2860 'supports_fast_tracepoints'.
2861 (target_supports_fast_tracepoints): Update the macro.
2862 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2863 (install_fast_tracepoint_jump_pad): Update and rename the macro
2865 (target_install_fast_tracepoint_jump_pad): ... this.
2866 * target.cc (process_target::supports_fast_tracepoints): Define.
2867 (process_target::install_fast_tracepoint_jump_pad): Define.
2868 (process_target::get_min_fast_tracepoint_insn_len): Define.
2870 Update the derived classes and callers below.
2872 * tracepoint.cc (install_fast_tracepoint): Update.
2873 * linux-low.cc (linux_target_ops): Update.
2874 (linux_process_target::supports_fast_tracepoints): Define.
2875 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2876 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2877 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2878 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2879 * linux-low.h (class linux_process_target): Update.
2880 * lynx-low.cc (lynx_target_ops): Update.
2881 * nto-low.cc (nto_target_ops): Update.
2882 * win32-low.cc (win32_target_ops): Update.
2884 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2886 Turn process_stratum_target's stabilize_threads op into a
2887 method of process_target.
2889 * target.h (struct process_stratum_target): Remove the target op.
2890 (class process_target): Add the target op.
2891 (target_stabilize_threads): Update the macro.
2892 * target.cc (process_target::stabilize_threads): Define.
2894 Update the derived classes and callers below.
2896 * server.cc (handle_status): Update.
2897 * tracepoint.cc (cmd_qtdp): Update.
2898 (cmd_qtstart): Update.
2899 * linux-low.cc (linux_target_ops): Update.
2900 (linux_stabilize_threads): Turn into ...
2901 (linux_process_target::stabilize_threads): ... this.
2902 (linux_wait_1): Update.
2903 * linux-low.h (class linux_process_target): Update.
2904 * lynx-low.cc (lynx_target_ops): Update.
2905 * nto-low.cc (nto_target_ops): Update.
2906 * win32-low.cc (win32_target_ops): Update.
2908 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2910 Turn process_stratum_target's pause_all and unpause_all ops
2911 into methods of process_target.
2913 * target.h (struct process_stratum_target): Remove the target ops.
2914 (class process_target): Add the target ops.
2915 (pause_all): Update the macro and rename to...
2916 (target_pause_all): ... this.
2917 (unpause_all): Update the macro and rename to...
2918 (target_unpause_all): ... this.
2919 * target.cc (process_target::pause_all): Define.
2920 (process_target::unpause_all): Define.
2922 Update the derived classes and callers below.
2924 * server.cc (handle_status): Update.
2925 * tracepoint.cc (clear_installed_tracepoints): Update.
2927 (cmd_qtstart): Update.
2928 (stop_tracing): Update.
2929 (cmd_qtstatus): Update.
2930 (upload_fast_traceframes): Update.
2931 (run_inferior_command): Update.
2932 * linux-low.cc (linux_target_ops): Update.
2933 (linux_pause_all): Turn into ...
2934 (linux_process_target::pause_all): ... this.
2935 (linux_unpause_all): Turn into ...
2936 (linux_process_target::unpause_all): ... this.
2937 (linux_process_target::prepare_to_access_memory): Update.
2938 (linux_process_target::done_accessing_memory): Update.
2939 * linux-low.h (class linux_process_target): Update.
2940 * lynx-low.cc (lynx_target_ops): Update.
2941 * nto-low.cc (nto_target_ops): Update.
2942 * win32-low.cc (win32_target_ops): Update.
2944 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2946 Turn process_stratum_target's get_tib_address op into a method of
2949 * target.h (struct process_stratum_target): Remove the target op.
2950 (class process_target): Add the target op. Also add
2951 'supports_get_tib_address'.
2952 * target.cc (process_target::get_tib_address): Define.
2953 (process_target::supports_get_tib_address): Define.
2955 Update the derived classes and callers below.
2957 * server.cc (handle_query): Update.
2958 * linux-low.cc (win32_target_ops): Update.
2959 * lynx-low.cc (lynx_target_ops): Update.
2960 * nto-low.cc (nto_target_ops): Update.
2961 * win32-low.cc (win32_target_ops): Update.
2962 (win32_process_target::supports_get_tib_address): Define.
2963 (win32_get_tib_address): Turn into ...
2964 (win32_process_target::get_tib_address): ... this.
2965 * win32-low.h (class win32_process_target): Update.
2967 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2969 Turn process_stratum_target's thread_stopped op into a method of
2972 * target.h (struct process_stratum_target): Remove the target op.
2973 (class process_target): Add the target op. Also add
2974 'supports_thread_stopped'.
2975 (target_thread_stopped): Update the macro.
2976 * target.cc (process_target::thread_stopped): Define.
2977 (process_target::supports_thread_stopped): Define.
2978 (prepare_to_access_memory): Update.
2980 Update the derived classes and callers below.
2982 * server.cc (queue_stop_reply_callback): Update.
2983 * linux-low.cc (linux_target_ops): Update.
2984 (linux_process_target::supports_thread_stopped): Define.
2985 (linux_thread_stopped): Turn into ...
2986 (linux_process_target::thread_stopped): ... this.
2987 * linux-low.h (class linux_process_target): Update.
2988 * lynx-low.cc (lynx_target_ops): Update.
2989 * nto-low.cc (nto_target_ops): Update.
2990 * win32-low.cc (win32_target_ops): Update.
2992 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2994 Turn process_stratum_target's read_pc and write_pc ops into
2995 methods of process_target.
2997 * target.h (struct process_stratum_target): Remove the target ops.
2998 (class process_target): Add the target ops.
2999 * target.cc (process_target::read_pc): Define.
3000 (process_target::write_pc): Define.
3002 Update the derived classes and callers below.
3004 * regcache.cc (regcache_read_pc): Update.
3005 (regcache_write_pc): Update.
3006 * linux-low.cc (linux_target_ops): Update.
3007 (linux_read_pc): Turn into ...
3008 (linux_process_target::read_pc): ... this.
3009 (linux_write_pc): Turn into ...
3010 (linux_process_target::write_pc): ... this.
3011 * linux-low.h (class linux_process_target): Update.
3012 * lynx-low.cc (lynx_target_ops): Update.
3013 * nto-low.cc (nto_target_ops): Update.
3014 * win32-low.cc (win32_target_ops): Update.
3016 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3018 Turn process_stratum_target's supports_tracepoints op into a
3019 method of process_target.
3021 * target.h (struct process_stratum_target): Remove the target op.
3022 (class process_target): Add the target op.
3023 (target_supports_tracepoints): Update the macro.
3024 * target.cc (process_target::supports_tracepoints): Define.
3026 Update the derived classes and callers below.
3028 * linux-low.cc (linux_target_ops): Update.
3029 (linux_supports_tracepoints): Turn into ...
3030 (linux_process_target::supports_tracepoints): ... this.
3031 * linux-low.h (class linux_process_target): Update.
3032 * lynx-low.cc (lynx_target_ops): Update.
3033 * nto-low.cc (nto_target_ops): Update.
3034 * win32-low.cc (win32_target_ops): Update.
3036 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3038 Turn process_stratum_target's process_qsupported op into a method
3041 * target.h (struct process_stratum_target): Remove the target op.
3042 (class process_target): Add the target op.
3043 (target_process_qsupported): Update the macro.
3044 * target.cc (process_target::process_qsupported): Define.
3046 Update the derived classes and callers below.
3048 * linux-low.cc (linux_target_ops): Update.
3049 (linux_process_qsupported): Turn into ...
3050 (linux_process_target::process_qsupported): ... 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_loadmap op into a method of
3061 * target.h (struct process_stratum_target): Remove the target op.
3062 (class process_target): Add the target op. Also add
3063 'supports_read_loadmap'.
3064 * target.cc (process_target::read_loadmap): Define.
3065 (process_target::supports_read_loadmap): Define.
3067 Update the derived classes and callers below.
3069 * server.cc (handle_qxfer_fdpic): Update.
3070 (handle_query): Update.
3071 * linux-low.cc (linux_target_ops): Update.
3072 (linux_process_target::supports_read_loadmap): Define.
3073 (linux_read_loadmap): Turn into ...
3074 (linux_process_target::read_loadmap): ... 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 core_of_thread op into a method of
3085 * target.h (struct process_stratum_target): Remove the target op.
3086 (class process_target): Add the target op.
3087 (target_core_of_thread): Update the macro.
3088 * target.cc (process_target::core_of_thread): Define.
3090 Update the derived classes and callers below.
3092 * linux-low.cc (linux_target_ops): Update.
3093 (linux_process_target::core_of_thread): Define.
3094 * linux-low.h (class linux_process_target): Update.
3095 * lynx-low.cc (lynx_target_ops): Update.
3096 * nto-low.cc (nto_target_ops): Update.
3097 * win32-low.cc (win32_target_ops): Update.
3099 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3101 Turn process_stratum_target's handle_monitor_command op into a
3102 method of process_target.
3104 * target.h (struct process_stratum_target): Remove the target op.
3105 (class process_target): Add the target op.
3106 (target_handle_monitor_command): Update the macro.
3107 * target.cc (process_target::handle_monitor_command): Define.
3109 Update the derived classes and callers below.
3111 * server.cc (handle_query): Update.
3112 * linux-low.cc (linux_target_ops): Update.
3113 (linux_process_target::handle_monitor_command): Define.
3114 * linux-low.h (class linux_process_target): Update.
3115 * lynx-low.cc (lynx_target_ops): Update.
3116 * nto-low.cc (nto_target_ops): Update.
3117 * win32-low.cc (win32_target_ops): Update.
3119 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3121 Turn process_stratum_target's handle_new_gdb_connection op into a
3122 method of process_target.
3124 * target.h (struct process_stratum_target): Remove the target op.
3125 (class process_target): Add the target op.
3126 (target_handle_new_gdb_connection): Update the macro.
3127 * target.cc (process_target::handle_new_gdb_connection): Define.
3129 Update the derived classes and callers below.
3131 * linux-low.cc (linux_target_ops): Update.
3132 (linux_handle_new_gdb_connection): Turn into ...
3133 (linux_process_target::handle_new_gdb_connection): ... this.
3134 * linux-low.h (class linux_process_target): Update.
3135 * lynx-low.cc (lynx_target_ops): Update.
3136 * nto-low.cc (nto_target_ops): Update.
3137 * win32-low.cc (win32_target_ops): Update.
3139 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3141 Turn process_stratum_target's supports_fork_events,
3142 supports_vfork_events, and supports_exec_events ops into methods
3145 * target.h (struct process_stratum_target): Remove the target ops.
3146 (class process_target): Add the target ops.
3147 (target_supports_fork_events): Update the macro.
3148 (target_supports_vfork_events): Update the macro.
3149 (target_supports_exec_events): Update the macro.
3150 * target.cc (process_target::supports_fork_events): Define.
3151 (process_target::supports_vfork_events): Define.
3152 (process_target::supports_exec_events): Define.
3154 Update the derived classes and callers below.
3156 * linux-low.cc (linux_target_ops): Update.
3157 (linux_supports_fork_events): Turn into ...
3158 (linux_process_target::supports_fork_events): ... this.
3159 (linux_supports_vfork_events): Turn into ...
3160 (linux_process_target::supports_vfork_events): ... this.
3161 (linux_supports_exec_events): Turn into ...
3162 (linux_process_target::supports_exec_events): ... this.
3163 * linux-low.h (class linux_process_target): Update.
3164 * lynx-low.cc (lynx_target_ops): Update.
3165 * nto-low.cc (nto_target_ops): Update.
3166 * win32-low.cc (win32_target_ops): Update.
3168 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3170 Turn process_stratum_target's supports_multi_process op into a
3171 method of process_target.
3173 * target.h (struct process_stratum_target): Remove the target op.
3174 (class process_target): Add the target op.
3175 * target.cc (process_target::supports_multi_process): Define.
3176 (target_supports_multi_process): Update.
3178 Update the derived classes and callers below.
3180 * linux-low.cc (linux_target_ops): Update.
3181 (linux_supports_multi_process): Turn into ...
3182 (linux_process_target::supports_multi_process): ... this.
3183 * linux-low.h (class linux_process_target): Update.
3184 * lynx-low.cc (lynx_target_ops): Update.
3185 * nto-low.cc (nto_target_ops): Update.
3186 * win32-low.cc (win32_target_ops): Update.
3188 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3190 Turn process_stratum_target's supports_non_stop, async, and
3191 start_non_stop ops into methods of process_target.
3193 * target.h (struct process_stratum_target): Remove the target ops.
3194 (class process_target): Add the target ops.
3195 (target_supports_non_stop): Update the macro.
3196 (target_async): Update the macro.
3197 (start_non_stop): Remove declaration.
3198 * target.cc (process_target::supports_non_stop): Define.
3199 (process_target::async): Define.
3200 (process_target::start_non_stop): Define.
3201 (start_non_stop): Remove.
3203 Update the derived classes and callers below.
3205 * server.cc (handle_qxfer_siginfo): Update.
3206 (handle_query): Update.
3207 * linux-low.cc (linux_target_ops): Update.
3208 (linux_supports_non_stop): Turn into ...
3209 (linux_process_target::supports_non_stop): ... this.
3210 (linux_async): Turn into ...
3211 (linux_process_target::async): ... this.
3212 (linux_start_non_stop): Turn into ...
3213 (linux_process_target::start_non_stop): ... this.
3214 * linux-low.h (class linux_process_target): Update.
3215 * lynx-low.cc (lynx_target_ops): Update.
3216 * nto-low.cc (nto_target_ops): Update.
3217 (nto_supports_non_stop): Remove; rely on the default behavior
3219 * win32-low.cc (win32_target_ops): Update.
3221 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3223 Turn process_stratum_target's qxfer_siginfo op into a method of
3226 * target.h (struct process_stratum_target): Remove the target op.
3227 (class process_target): Add the target op. Also add
3228 'supports_qxfer_siginfo'.
3229 * target.cc (process_target::qxfer_siginfo): Define.
3230 (process_target::supports_qxfer_siginfo): Define.
3232 Update the derived classes and callers below.
3234 * server.cc (handle_qxfer_siginfo): Update.
3235 (handle_query): Update.
3236 * linux-low.cc (linux_target_ops): Update.
3237 (linux_process_target::supports_qxfer_siginfo): Define.
3238 (linux_xfer_siginfo): Turn into ...
3239 (linux_process_target::qxfer_siginfo): ... this.
3240 * linux-low.h (class linux_process_target): Update.
3241 * lynx-low.cc (lynx_target_ops): Update.
3242 * nto-low.cc (nto_target_ops): Update.
3243 * win32-low.cc (win32_target_ops): Update.
3245 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3247 Turn process_stratum_target's qxfer_osdata op into a method of
3250 * target.h (struct process_stratum_target): Remove the target op.
3251 (class process_target): Add the target op. Also add
3252 'supports_qxfer_osdata'.
3253 * target.cc (process_target::qxfer_osdata): Define.
3254 (process_target::supports_qxfer_osdata): Define.
3256 Update the derived classes and callers below.
3258 * server.cc (handle_qxfer_osdata): Update.
3259 (handle_query): Update.
3260 * linux-low.cc (linux_target_ops): Update.
3261 (linux_process_target::supports_qxfer_osdata): Define.
3262 (linux_qxfer_osdata): Turn into ...
3263 (linux_process_target::qxfer_osdata): ... this.
3264 * linux-low.h (class linux_process_target): Update.
3265 * lynx-low.cc (lynx_target_ops): Update.
3266 * nto-low.cc (nto_target_ops): Update.
3267 * win32-low.cc (win32_target_ops): Update.
3269 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3271 Turn process_stratum_target's hostio_last_error op into a
3272 method of process_target.
3274 * target.h (struct process_stratum_target): Remove the target op.
3275 (class process_target): Add the target op.
3276 * target.cc: Add "hostio.h" to includes.
3277 (process_target::hostio_last_error): Define.
3279 Update the derived classes and callers below.
3281 * hostio.cc (hostio_error): Update.
3282 * linux-low.cc: Remove "hostio.h" from includes.
3283 (linux_target_ops): Update.
3284 * lynx-low.cc (lynx_target_ops): Update.
3285 * nto-low.cc (nto_target_ops): Update.
3286 * win32-low.h (class win32_process_target): Update.
3287 * win32-low.cc (win32_target_ops): Update.
3288 (wince_hostio_last_error): Turn into ...
3289 (win32_process_target::hostio_last_error): ... this.
3291 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3293 Turn process_stratum_target's get_tls_address op into a method of
3296 * target.h (struct process_stratum_target): Remove the target op.
3297 (class process_target): Add the target op. Also add
3298 'supports_get_tls_address'.
3299 * target.cc (process_target::get_tls_address): Define.
3300 (process_target::supports_get_tls_address): Define.
3302 Update the derived classes and callers below.
3304 * server.cc (handle_query): Update.
3305 * linux-low.cc (linux_target_ops): Update.
3306 (linux_process_target::supports_get_tls_address): Define.
3307 (linux_process_target::get_tls_address): Define.
3308 * linux-low.h (class linux_process_target): Update.
3309 * lynx-low.cc (lynx_target_ops): Update.
3310 * nto-low.cc (nto_target_ops): Update.
3311 * win32-low.cc (win32_target_ops): Update.
3313 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3315 Turn process_stratum_target's read_offsets op into a method of
3318 * target.h (struct process_stratum_target): Remove the target op.
3319 (class process_target): Add the target op. Also add
3320 'supports_read_offsets'.
3321 * target.cc (process_target::read_offsets): Define.
3322 (process_target::supports_read_offsets): Define.
3324 Update the derived classes and callers below.
3326 * server.cc (handle_query): Update.
3327 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3328 (linux_target_ops): Update.
3329 (linux_process_target::supports_read_offsets): Define.
3330 (linux_read_offsets): Turn into ...
3331 (linux_process_target::read_offsets): ... this.
3332 * linux-low.h (class linux_process_target): Update.
3333 * lynx-low.cc (lynx_target_ops): Update.
3334 * nto-low.cc (nto_target_ops): Update.
3335 * win32-low.cc (win32_target_ops): Update.
3337 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3339 Turn process_stratum_target's stopped_by_watchpoint and
3340 stopped_data_address ops into methods of process_target.
3342 * target.h (struct process_stratum_target): Remove the target ops.
3343 (class process_target): Add the target ops.
3344 * target.cc (process_target::stopped_by_watchpoint): Define.
3345 (process_target::stopped_data_address): Define.
3347 Update the derived classes and callers below.
3349 * remote-utils.cc (prepare_resume_reply): Update.
3350 * linux-low.cc (linux_target_ops): Update.
3351 (linux_stopped_by_watchpoint): Turn into ...
3352 (linux_process_target::stopped_by_watchpoint): ... this.
3353 (linux_stopped_data_address): Turn into ...
3354 (linux_process_target::stopped_data_address): ... this.
3355 * linux-low.h (class linux_process_target): Update.
3356 * lynx-low.cc (lynx_target_ops): Update.
3357 * nto-low.cc (nto_target_ops): Update.
3358 (nto_stopped_by_watchpoint): Turn into ...
3359 (nto_process_target::stopped_by_watchpoint): ... this.
3360 (nto_stopped_data_address): Turn into ...
3361 (nto_process_target::stopped_data_address): ... this.
3362 * nto-low.h (class nto_process_target): Update.
3363 * win32-low.cc (win32_target_ops): Update.
3364 (win32_stopped_by_watchpoint): Turn into ...
3365 (win32_process_target::stopped_by_watchpoint): ... this.
3366 (win32_stopped_data_address): Turn into ...
3367 (win32_process_target::stopped_data_address): ... this.
3368 * win32-low.h (class win32_process_target): Update.
3370 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3372 Turn process_stratum_target's supports_hardware_single_step op into
3373 a method of process_target.
3375 * target.h (struct process_stratum_target): Remove the target op.
3376 (class process_target): Add the target op.
3377 (target_supports_hardware_single_step): Update the macro.
3378 (target_can_do_hardware_single_step): Remove declaration.
3379 * target.cc (process_target::supports_hardware_single_step): Define.
3380 (target_can_do_hardware_single_step): Remove.
3382 Update the derived classes and callers below.
3384 * linux-low.h (class linux_process_target): Update.
3385 * linux-low.cc (linux_target_ops): Update.
3386 (linux_supports_hardware_single_step): Turn into ...
3387 (linux_process_target::supports_hardware_single_step): ... this.
3388 * lynx-low.h (class lynx_process_target): Update.
3389 * lynx-low.cc (lynx_target_ops): Update.
3390 (lynx_process_target::supports_hardware_single_step): Define.
3391 * nto-low.h (class nto_process_target): Update.
3392 * nto-low.cc (nto_target_ops): Update.
3393 (nto_process_target::supports_hardware_single_step): Define.
3394 * win32-low.h (class win32_process_target): Update.
3395 * win32-low.cc (win32_target_ops): Update.
3396 (win32_process_target::supports_hardware_single_step): Define.
3398 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3400 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3401 ops into methods of process_target.
3403 * target.h (struct process_stratum_target): Remove the target ops.
3404 (class process_target): Add the target ops.
3405 (target_stopped_by_hw_breakpoint): Update the macro.
3406 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3407 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3408 (process_target::supports_stopped_by_hw_breakpoint): Define.
3410 Update the derived classes and callers below.
3412 * linux-low.cc (linux_target_ops): Update.
3413 (linux_stopped_by_hw_breakpoint): Turn into ...
3414 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3415 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3416 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3417 * linux-low.h (class linux_process_target): Update.
3418 * lynx-low.cc (lynx_target_ops): Update.
3419 * nto-low.cc (nto_target_ops): Update.
3420 * win32-low.cc (win32_target_ops): Update.
3422 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3424 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3425 ops into methods of process_target.
3427 * target.h (struct process_stratum_target): Remove the target ops.
3428 (class process_target): Add the target ops.
3429 (target_stopped_by_sw_breakpoint): Update the macro.
3430 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3431 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3432 (process_target::supports_stopped_by_sw_breakpoint): Define.
3434 Update the derived classes and callers below.
3436 * linux-low.cc (linux_target_ops): Update.
3437 (linux_stopped_by_sw_breakpoint): Turn into ...
3438 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3439 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3440 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3441 * linux-low.h (class linux_process_target): Update.
3442 * lynx-low.cc (lynx_target_ops): Update.
3443 * nto-low.cc (nto_target_ops): Update.
3444 * win32-low.cc (win32_target_ops): Update.
3446 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3448 Turn process_stratum_target's insert_point and remove_point ops
3449 into methods of process_target.
3451 * target.h (struct process_stratum_target): Remove the target ops.
3452 (class process_target): Add the target ops.
3453 * target.cc (process_target::insert_point): Define.
3454 (process_target::remove_point): Define.
3456 Update the derived classes and callers below.
3458 * mem-break.cc (set_raw_breakpoint_at): Update.
3459 (delete_raw_breakpoint): Update.
3460 (uninsert_raw_breakpoint): Update.
3461 (reinsert_raw_breakpoint): Update.
3462 * linux-low.cc (linux_target_ops): Update.
3463 (linux_insert_point): Turn into ...
3464 (linux_process_target::insert_point): ... this.
3465 (linux_remove_point): Turn into ...
3466 (linux_process_target::remove_point): ... this.
3467 * linux-low.h (class linux_process_target): Update.
3468 * lynx-low.cc (lynx_target_ops): Update.
3469 * nto-low.cc (nto_target_ops): Update.
3470 (nto_insert_point): Turn into ...
3471 (nto_process_target::insert_point): ... this.
3472 (nto_remove_point): Turn into ...
3473 (nto_process_target::remove_point): ... this.
3474 * nto-low.h (class nto_process_target): Update.
3475 * win32-low.cc (win32_target_ops): Update.
3476 (win32_insert_point): Turn into ...
3477 (win32_process_target::insert_point): ... this.
3478 (win32_remove_point): Turn into ...
3479 (win32_process_target::remove_point): ... this.
3480 * win32-low.h (class win32_process_target): Update.
3482 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3484 Turn process_stratum_target's supports_z_point_type op into a
3485 method of process_target.
3487 * target.h (struct process_stratum_target): Remove the target op.
3488 (class process_target): Add the target op.
3489 * target.cc (process_target::supports_z_point_type): Define.
3491 Update the derived classes and callers below.
3493 * mem-break.cc (z_type_supported): Update.
3494 * linux-low.cc (linux_target_ops): Update.
3495 (linux_supports_z_point_type): Turn into ...
3496 (linux_process_target::supports_z_point_type): ... this.
3497 * linux-low.h (class linux_process_target): Update.
3498 * lynx-low.cc (lynx_target_ops): Update.
3499 * nto-low.cc (nto_target_ops): Update.
3500 (nto_supports_z_point_type): Turn into ...
3501 (nto_process_target::supports_z_point_type): ... this.
3502 * nto-low.h (class nto_process_target): Update.
3503 * win32-low.cc (win32_target_ops): Update.
3504 (win32_supports_z_point_type): Turn into ...
3505 (win32_process_target::supports_z_point_type): ... this.
3506 * win32-low.h (class win32_process_target): Update.
3508 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3510 Turn process_stratum_target's read_auxv op into a method of
3513 * target.h (class process_stratum_target): Remove the target op.
3514 (struct process_target): Add the target op. Also add
3515 'supports_read_auxv'.
3516 * target.cc (process_target::read_auxv): Define.
3517 (process_target::supports_read_auxv): Define.
3519 Update the derived classes and callers below.
3521 * server.cc (handle_qxfer_auxv): Update.
3522 (handle_query): Update.
3523 * linux-low.cc (linux_target_ops): Update.
3524 (linux_process_target::supports_read_auxv): Define.
3525 (linux_read_auxv): Turn into ...
3526 (linux_process_target::read_auxv): ... this.
3527 * linux-low.h (class linux_process_target): Update.
3528 * lynx-low.cc (lynx_target_ops): Update.
3529 * nto-low.cc (nto_target_ops): Update.
3530 (nto_process_target::supports_read_auxv): Define.
3531 (nto_read_auxv): Turn into ...
3532 (nto_process_target::read_auxv): ... this.
3533 * nto-low.h (class nto_process_target): Update.
3534 * win32-low.cc (win32_target_ops): Update.
3536 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3538 Turn process_stratum_target's request_interrupt op into a method of
3541 * target.h (struct process_stratum_target): Remove the target op.
3542 (class process_target): Add the target op.
3544 Update the derived classes and callers below.
3546 * remote-utils.cc (putpkt_binary_1): Update.
3547 (input_interrupt): Update.
3549 * server.cc (handle_v_requests): Update.
3550 * linux-low.cc (linux_target_ops): Update.
3551 (linux_request_interrupt): Turn into ...
3552 (linux_process_target::request_interrupt): ... this.
3553 * linux-low.h (class linux_process_target): Update.
3554 * lynx-low.cc (lynx_target_ops): Update.
3555 (lynx_request_interrupt): Turn into ...
3556 (lynx_process_target::request_interrupt): ... this.
3557 * lynx-low.h (class lynx_process_target): Update.
3558 * nto-low.cc (nto_target_ops): Update.
3559 (nto_request_interrupt): Turn into ...
3560 (nto_process_target::request_interrupt): ... this.
3561 * nto-low.h (class nto_process_target): Update.
3562 * win32-low.cc (win32_target_ops): Update.
3563 (win32_request_interrupt): Turn into ...
3564 (win32_process_target::request_interrupt): ... this.
3565 * win32-low.h (class win32_process_target): Update.
3567 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3569 Turn process_stratum_target's look_up_symbols op into a method of
3572 * target.h (struct process_stratum_target): Remove the target op.
3573 (class process_target): Add the target op.
3574 * target.cc (process_target::look_up_symbols): Define.
3576 Update the derived classes and callers below.
3578 * server.cc (handle_query): Update.
3579 * linux-low.cc (linux_target_ops): Update.
3580 (linux_look_up_symbols): Turn into ...
3581 (linux_process_target::look_up_symbols): ... this.
3582 * linux-low.h (class linux_process_target): Update.
3583 * lynx-low.cc (lynx_target_ops): Update.
3584 * nto-low.cc (nto_target_ops): Update.
3585 * win32-low.cc (win32_target_ops): Update.
3587 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3589 Turn process_stratum_target's read_memory and write_memory
3590 ops into methods of process_target.
3592 * target.h (struct process_stratum_target): Remove the target ops.
3593 (class process_target): Add the target ops.
3595 Update the derived classes and callers below.
3597 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3598 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3599 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3600 (arm_get_syscall_trapinfo): Update.
3601 * linux-cris-low.cc (cris_breakpoint_at): Update.
3602 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3603 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3604 * linux-mips-low.cc (mips_breakpoint_at): Update.
3605 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3606 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3607 * linux-sh-low.cc (sh_breakpoint_at): Update.
3608 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3609 (sparc_store_gregset_from_stack): Update.
3610 (sparc_breakpoint_at): Update.
3611 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3612 * linux-tile-low.cc (tile_breakpoint_at): Update.
3613 * linux-x86-low.cc (x86_breakpoint_at): Update.
3614 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3615 * mem-brea.cc (insert_memory_breakpoint): Update.
3616 (validate_inserted_breakpoint): Update.
3617 * target.cc (read_inferior_memory): Update.
3618 (target_write_memory): Update.
3619 * linux-low.cc (linux_target_ops): Update.
3620 (linux_read_memory): Make a wrapper around the read_memory target
3622 (linux_process_target::read_memory): Rename from linux_read_memory.
3623 (linux_write_memory): Turn into ...
3624 (linux_process_target::write_memory): ... this.
3625 * linux-low.h (class linux_process_target): Update.
3626 * lynx-low.cc (lynx_target_ops): Update.
3627 (lynx_read_memory): Turn into ...
3628 (lynx_process_target::read_memory): ... this.
3629 (lynx_write_memory): Turn into ...
3630 (lynx_process_target::write_memory): ... this.
3631 * lynx-low.h (class lynx_process_target): Update.
3632 * nto-low.cc (nto_target_ops): Update.
3633 (nto_read_memory): Turn into ...
3634 (nto_process_target::read_memory): ... this.
3635 (nto_write_memory): Turn into ...
3636 (nto_process_target::write_memory): ... this.
3637 * nto-low.h (class nto_process_target): Update.
3638 * win32-low.cc (win32_target_ops): Update.
3639 (win32_read_inferior_memory): Turn into ...
3640 (win32_process_target::read_memory): ... this.
3641 (win32_write_inferior_memory): Turn into ...
3642 (win32_process_target::write_memory): ... this.
3643 * win32-low.h (class win32_process_target): Update.
3645 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3647 Turn process_stratum_target's prepare_to_access_memory and
3648 done_accessing_memory ops into methods of process_target.
3650 * target.h (struct process_stratum_target): Remove the target ops.
3651 (class process_target): Add the target ops.
3652 * target.cc (process_target::prepare_to_access_memory): Define.
3653 (process_target::done_accessing_memory): Define.
3654 (prepare_to_access_memory): Update.
3655 (done_accessing_memory): Update.
3657 Update the derived classes and callers below.
3659 * linux-low.cc (linux_target_ops): Update.
3660 (linux_prepare_to_access_memory): Turn into ...
3661 (linux_process_target::prepare_to_access_memory): ... this.
3662 (linux_done_accessing_memory): Turn into ...
3663 (linux_process_target::done_accessing_memory): ... this.
3664 * linux-low.h (class linux_process_target): Update.
3665 * lynx-low.cc (lynx_target_ops): Update.
3666 * nto-low.cc (nto_target_ops): Update.
3667 * win32-low.cc (win32_target_ops): Update.
3669 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3671 Turn process_stratum_target's fetch_registers and store_registers
3672 ops into methods of process_target.
3674 * target.h (struct process_stratum_target): Remove the target ops.
3675 (class process_target): Add the target ops.
3676 (fetch_inferior_registers): Update the macro.
3677 (store_inferior_registers): Update the macro.
3679 Update the derived classes and callers below.
3681 * linux-low.cc (linux_target_ops): Update.
3682 (linux_fetch_registers): Turn into ...
3683 (linux_process_target::fetch_registers): ... this.
3684 (linux_store_registers): Turn into ...
3685 (linux_process_target::store_registers): ... this.
3686 * linux-low.h (class linux_process_target): Update.
3687 * lynx-low.cc (lynx_target_ops): Update.
3688 (lynx_fetch_registers): Turn into ...
3689 (lynx_process_target::fetch_registers): ... this.
3690 (lynx_store_registers): Turn into ...
3691 (lynx_process_target::store_registers): ... this.
3692 * lynx-low.h (class lynx_process_target): Update.
3693 * nto-low.cc (nto_target_ops): Update.
3694 (nto_fetch_registers): Turn into ...
3695 (nto_process_target::fetch_registers): ... this.
3696 (nto_store_registers): Turn into ...
3697 (nto_process_target::store_registers): ... this.
3698 * nto-low.h (class nto_process_target): Update.
3699 * win32-low.cc (win32_target_ops): Update.
3700 (win32_fetch_inferior_registers): Turn into ...
3701 (win32_process_target::fetch_registers): ... this.
3702 (win32_store_inferior_registers): Turn into ...
3703 (win32_process_target::store_registers): ... this.
3704 * win32-low.h (class win32_process_target): Update.
3706 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3708 Turn process_stratum_target's wait op into a method of
3711 * target.h (struct process_stratum_target): Remove the target op.
3712 (class process_target): Add the target op.
3714 Update the derived classes and callers below.
3716 * target.cc (target_wait): Update.
3717 * linux-low.cc (linux_target_ops): Update.
3718 (linux_wait): Turn into ...
3719 (linux_process_target::wait): ... this.
3720 * linux-low.h (class linux_process_target): Update.
3721 * lynx-low.cc (lynx_target_ops): Update.
3722 (lynx_wait): Turn into ...
3723 (lynx_process_target::wait): ... this.
3724 * lynx-low.h (class lynx_process_target): Update.
3725 * nto-low.cc (nto_target_ops): Update.
3726 (nto_wait): Turn into ...
3727 (nto_process_target::wait): ... this.
3728 * nto-low.h (class nto_process_target): Update.
3729 * win32-low.cc (win32_target_ops): Update.
3730 (win32_wait): Turn into ...
3731 (win32_process_target::wait): ... this.
3732 (do_initial_child_stuff): Update.
3733 * win32-low.h (class win32_process_target): Update.
3735 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3737 Turn process_stratum_target's resume op into a method of
3740 * target.h (struct process_stratum_target): Remove the target op.
3741 (class process_target): Add the target op.
3743 Update the derived classes and callers below.
3745 * server.cc (resume): Update.
3746 * target.cc (target_stop_and_wait): Update.
3747 (target_continue_no_signal): Update.
3748 (target_continue): Update.
3749 * linux-low.cc (linux_target_ops): Update.
3750 (linux_resume): Turn into ...
3751 (linux_process_target::resume): ... this.
3752 * linux-low.h (class linux_process_target): Update.
3753 * lynx-low.cc (lynx_target_ops): Update.
3754 (lynx_resume): Turn into ...
3755 (lynx_process_target::resume): ... this.
3756 * lynx-low.h (class lynx_process_target): Update.
3757 * nto-low.cc (nto_target_ops): Update.
3758 (nto_resume): Turn into ...
3759 (nto_process_target::resume): ... this.
3760 * nto-low.h (class nto_process_target): Update.
3761 * win32-low.cc (win32_target_ops): Update.
3762 (win32_resume): Turn into ...
3763 (win32_process_target::resume): ... this.
3764 (win32_process_target::detach): Update.
3765 (do_initial_child_stuff): Update.
3766 * win32-low.h (class win32_process_target): Update.
3768 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3770 Turn process_stratum_target's thread_alive op into a method of
3773 * target.h (struct process_stratum_target): Remove the target op.
3774 (class process_target): Add the target op.
3775 (mythread_alive): Update the macro.
3777 Update the derived classes and callers below.
3779 * linux-low.cc (linux_target_ops): Update.
3780 (linux_thread_alive): Turn into ...
3781 (linux_process_target::thread_alive): ... this.
3782 (wait_for_sigstop): Update.
3783 * linux-low.h (class linux_process_target): Update.
3784 * lynx-low.cc (lynx_target_ops): Update.
3785 (lynx_thread_alive): Turn into ...
3786 (lynx_process_target::thread_alive): ... this.
3787 * lynx-low.h (class lynx_process_target): Update.
3788 * nto-low.cc (nto_target_ops): Update.
3789 (nto_thread_alive): Turn into ...
3790 (nto_process_target::thread_alive): ... this.
3791 * nto-low.h (class nto_process_target): Update.
3792 * win32-low.cc (win32_target_ops): Update.
3793 (win32_thread_alive): Turn into ...
3794 (win32_process_target::thread_alive): ... this.
3795 * win32-low.h (class win32_process_target): Update.
3797 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3799 Turn process_stratum_target's join op into a method of
3802 * target.h (struct process_stratum_target): Remove the target op.
3803 (class process_target): Add the target op.
3804 (join_inferior): Update the macro.
3806 Update the derived classes and callers below.
3808 * linux-low.cc (linux_target_ops): Update.
3809 (linux_join): Turn into ...
3810 (linux_process_target::join): ... this.
3811 * linux-low.h (class linux_process_target): Update.
3812 * lynx-low.cc (lynx_target_ops): Update.
3813 (lynx_join): Turn into ...
3814 (lynx_process_target::join): ... this.
3815 * lynx-low.h (class lynx_process_target): Update.
3816 * nto-low.cc (nto_target_ops): Update.
3817 (nto_process_target::join): Define.
3818 * nto-low.h (class nto_process_target): Update.
3819 * win32-low.cc (win32_target_ops): Update.
3820 (win32_join): Turn into ...
3821 (win32_process_target::join): ... this.
3822 * win32-low.h (class win32_process_target): Update.
3824 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3826 Turn process_stratum_target's mourn op into a method of
3829 * target.h (struct process_stratum_target): Remove the target op.
3830 (class process_target): Add the target op.
3832 Update the derived classes and callers below.
3834 * target.cc (target_mourn_inferior): Update.
3835 * linux-low.cc (linux_target_ops): Update.
3836 (linux_mourn): Turn into ...
3837 (linux_process_target::mourn): ... this.
3838 (handle_extended_wait): Update.
3839 (linux_process_target::kill): Update.
3840 (linux_process_target::detach): Update.
3841 * linux-low.h (class linux_process_target): Update.
3842 * lynx-low.cc (lynx_target_ops): Update.
3843 (lynx_mourn): Turn into ...
3844 (lynx_process_target::mourn): ... this.
3845 * lynx-low.h (class lynx_process_target): Update.
3846 * nto-low.cc (nto_target_ops): Update.
3847 (nto_mourn): Turn into ...
3848 (nto_process_target::mourn): ... this.
3849 * nto-low.h (class nto_process_target): Update.
3850 * win32-low.cc (win32_target_ops): Update.
3851 (win32_mourn): Turn into ...
3852 (win32_process_target::mourn): ... this.
3853 * win32-low.h (class win32_process_target): Update.
3855 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3857 Turn process_stratum_target's detach op into a method of
3860 * target.h (struct process_stratum_target): Remove the target op.
3861 (class process_target): Add the target op.
3862 (detach_inferior): Update the macro.
3864 Update the derived classes and callers below.
3866 * linux-low.cc (linux_target_ops): Update.
3867 (linux_detach): Turn into ...
3868 (linux_process_target::detach): ... this.
3869 * linux-low.h (class linux_process_target): Update.
3870 * lynx-low.cc (lynx_target_ops): Update.
3871 (lynx_detach): Turn into ...
3872 (lynx_process_target::detach): ... this.
3873 * lynx-low.h (class lynx_process_target): Update.
3874 * nto-low.cc (nto_target_ops): Update.
3875 (nto_detach): Turn into ...
3876 (nto_process_target::detach): ... this.
3877 * nto-low.h (class nto_process_target): Update.
3878 * win32-low.cc (win32_target_ops): Update.
3879 (win32_detach): Turn into ...
3880 (win32_process_target::detach): ... this.
3881 * win32-low.h (class win32_process_target): Update.
3883 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3885 Turn process_stratum_target's kill op into a method of
3888 * target.h (struct process_stratum_target): Remove the target op.
3889 (class process_target): Add the target op.
3891 Update the derived classes and callers below.
3893 * target.cc (kill_inferior): Update.
3894 * linux-low.cc (linux_target_ops): Update.
3895 (linux_kill): Turn into ...
3896 (linux_process_target::kill): ... this.
3897 * linux-low.h (class linux_process_target): Update.
3898 * lynx-low.cc (lynx_target_ops): Update.
3899 (lynx_kill): Turn into ...
3900 (lynx_process_target::kill): ... this.
3901 * lynx-low.h (class lynx_process_target): Update.
3902 * nto-low.cc (nto_target_ops): Update.
3903 (nto_kill): Turn into ...
3904 (nto_process_target::kill): ... this.
3905 * nto-low.h (class nto_process_target): Update.
3906 * win32-low.cc (win32_target_ops): Update.
3907 (win32_kill): Turn into ...
3908 (win32_process_target::kill): ... this.
3909 * win32-low.h (class win32_process_target): Update.
3911 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3913 Turn process_stratum_target's attach op into a method of
3916 * target.h (struct process_stratum_target): Remove the target op.
3917 (class process_target): Add the target op.
3918 (myattach): Update the macro.
3920 Update the derived classes and callers below.
3922 * linux-low.cc (linux_target_ops): Update.
3923 (linux_attach): Turn into ...
3924 (linux_process_target::attach): ... this.
3925 * linux-low.h (class linux_process_target): Update.
3926 * lynx-low.cc (lynx_target_ops): Update.
3927 (lynx_attach): Turn into ...
3928 (lynx_process_target::attach): ... this.
3929 * lynx-low.h (class lynx_process_target): Update.
3930 * nto-low.cc (nto_target_ops): Update.
3931 (nto_attach): Turn into ...
3932 (nto_process_target::attach): ... this.
3933 * nto-low.h (class nto_process_target): Update.
3934 * win32-low.cc (win32_target_ops): Update.
3935 (win32_attach): Turn into ...
3936 (win32_process_target::attach): ... this.
3937 * win32-low.h (class win32_process_target): Update.
3939 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3941 Turn process_stratum_target's post_create_inferior op into a method
3944 * target.h (struct process_stratum_target): Remove the target op.
3945 (class process_target): Add the target op.
3946 (target_post_create_inferior): Update the macro.
3947 * target.cc (process_target::post_create_inferior): Define.
3949 Update the derived classes and callers below.
3951 * linux-low.cc (linux_target_ops): Update.
3952 (linux_post_create_inferior): Turn into ...
3953 (linux_process_target::post_create_inferior): ... this.
3954 * linux-low.h (class linux_process_target): Update.
3955 * lynx-low.cc (lynx_target_ops): Update.
3956 * nto-low.cc (nto_target_ops): Update.
3957 * win32-low.cc (win32_target_ops): Update.
3959 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3961 Turn process_stratum_target's create_inferior op into a method of
3964 * target.h (struct process_stratum_target): Remove the target op.
3965 (class process_target): Add the target op.
3966 (create_inferior): Rename the macro to ...
3967 (target_create_inferior): ... this.
3969 Update the derived classes and callers below.
3971 * server.cc (handle_v_run): Update.
3972 (captured_main): Update.
3973 (process_serial_event): Update.
3974 * linux-low.cc (linux_target_ops): Update.
3975 (linux_create_inferior): Turn into ...
3976 (linux_process_target::create_inferior): ... this.
3977 * linux-low.h (class linux_process_target): Update.
3978 * lynx-low.cc (lynx_target_ops): Update.
3979 (lynx_create_inferior): Turn into ...
3980 (lynx_process_target::create_inferior): ... this.
3981 * lynx-low.h (class lynx_process_target): Update.
3982 * nto-low.cc (nto_target_ops): Update.
3983 (nto_create_inferior): Turn into ...
3984 (nto_process_target::create_inferior): ... this.
3985 * nto-low.h (class nto_process_target): Update.
3986 * win32-low.cc (win32_target_ops): Update.
3987 (win32_create_inferior): Turn into ...
3988 (win32_process_target::create_inferior): ... this.
3989 * win32-low.h (class win32_process_target): Update.
3991 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3993 * target.h (class process_target): New class definition.
3994 (struct process_stratum_target) <pt>: New field with type
3996 * linux-low.h (class linux_process_target): Define as a derived
3997 class of 'process_target'.
3998 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4000 * lynx-low.h (class lynx_process_target): Define as a derived
4001 class of 'process_target'.
4002 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4004 * nto-low.h (class nto_process_target): Define as a derived
4005 class of 'process_target'.
4006 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4008 * win32-low.h (class win32_process_target): Define as a derived
4009 class of 'process_target'.
4010 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4013 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4015 * configure: Regenerate.
4017 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4018 Andrew Burgess <andrew.burgess@embecosm.com>
4020 * linux-riscv-low.cc: New file.
4021 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4022 and nat/riscv-linux-tdesc.c.
4023 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4024 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4027 2020-02-14 Tom Tromey <tom@tromey.com>
4029 * acinclude.m4: Don't include acx_configure_dir.m4.
4030 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4031 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4032 (all, install-only, uninstall, clean-info, clean)
4033 (maintainer-clean): Don't recurse.
4034 (subdir_do, all-lib): Remove.
4035 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4037 (generated_files): Update.
4038 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4039 * configure: Rebuild.
4040 * configure.ac: Don't configure gnulib or libiberty.
4043 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4045 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4046 preparing the command line for CreateProcess.
4047 (win32_create_inferior): Reflect the program name in debugging
4048 output that shows the process and its command line.
4050 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4052 * Makefile.in: Rename source files from .c to .cc.
4053 * %.c: Rename to %.cc.
4054 * configure.ac: Rename server.c to server.cc.
4055 * configure: Re-generate.
4057 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4059 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4061 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4063 * win32-low.c (win32_create_inferior): Set signal_pid.
4065 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4066 Pedro Alves <palves@redhat.com>
4068 Skip building gdbserver in a cross-configuration.
4069 * configure.srv: Set $gdbserver_host depending on whether $target
4070 is $host. Use $gdbserver_host instead of $host.
4072 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4074 * configure: Re-generate.
4076 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4078 * configure: Re-generate.
4080 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4082 * acinclude.m4: Update warning.m4 path.
4084 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4086 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4087 (handle_exception): Set siginfo_er.
4088 (win32_xfer_siginfo): New function.
4090 2020-02-07 Tom Tromey <tom@tromey.com>
4091 Pedro Alves <palves@redhat.com>
4093 * README: Update build documentation.
4094 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4096 * configure.ac: Update paths.
4097 * configure: Rebuild.
4098 * acinclude.m4: Update paths.
4099 * Makefile.in: Update include paths.
4100 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4101 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4102 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4103 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4104 (%-generated.c): Update paths.
4105 * Move entire directory from ../gdb/gdbserver.
4107 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4109 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4111 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4113 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4114 assignment instead of srv_linux_obj.
4116 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4118 * server.c (handle_qxfer_libraries): Write segment-address with
4121 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4123 * Makefile.in (install-strip): New target.
4124 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4125 * aclocal.m4: Regenerate.
4126 * configure: Regenerate.
4127 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4129 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4131 * Makefile.in (SFILES): Adjust paths to point to real files.
4132 (OBS): Move waitstatus.o to target/waitstatus.o.
4133 (TAGS): Transform paths appropriately.
4135 (nat/%.o): ... this pattern rule.
4137 (target/%.o): ... this pattern rule.
4138 * configure.srv: Adjust paths throughout to include nat/ prefix
4139 with the revant files.
4140 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4141 * configure: Regenerate.
4143 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4145 * Makefile.in (TAGS): Remove config files from the recipe.
4147 2020-01-14 Tom Tromey <tom@tromey.com>
4149 * configure: Rebuild.
4150 * configure.ac: Remove any checks that were added to common.m4.
4151 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4154 2020-01-14 Tom Tromey <tom@tromey.com>
4156 * server.h: Include config.h.
4157 * gdbreplay.c: Include config.h.
4158 * configure: Rebuild.
4159 * configure.ac: Don't source common.host.
4160 * acinclude.m4: Update path.
4161 * Makefile.in (INCSUPPORT): New variable.
4162 (INCLUDE_CFLAGS): Add INCSUPPORT.
4163 (SFILES): Update paths.
4164 (version-generated.c): Update path to create-version.sh.
4165 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4167 2020-01-14 Tom Tromey <tom@tromey.com>
4169 * configure.ac (LIBS): Use WIN32APILIBS.
4170 (USE_WIN32API): Don't define.
4171 * configure: Rebuild.
4173 2020-01-14 Tom Tromey <tom@tromey.com>
4175 * configure: Rebuild.
4177 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4179 * Makefile.in (%-generated.c): Remove rule for files from
4182 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4184 * configure: Re-generate.
4186 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4188 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4190 * tracepoint.c (stop_tracing, flush_trace_buffer,
4191 about_to_request_buffer_space, get_trace_state_variable_value,
4192 set_trace_state_variable_value, gdb_collect): Add declaration.
4194 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4196 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4197 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4198 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4199 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4200 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4203 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4205 * inferiors.c: Include gdbsupport/common-inferior.h.
4207 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4209 * hostio-errno.c: Include hostio.h.
4211 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4213 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4216 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4218 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4219 * linux-arm-tdesc.h: Include arch/arm.h.
4221 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4223 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4225 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4227 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4228 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4230 2020-01-10 Pedro Alves <palves@redhat.com>
4232 * fork-child.c (post_fork_inferior): Pass target down to
4234 * inferiors.c (switch_to_thread): Add process_stratum_target
4236 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4237 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4238 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4239 * remote-utils.c (prepare_resume_reply): Pass the target to
4241 * target.c (the_target): Now a process_stratum_target.
4242 (done_accessing_memory): Pass the target to switch_to_thread.
4243 (set_target_ops): Ajust to use process_stratum_target.
4244 * target.h (struct target_ops): Rename to ...
4245 (struct process_stratum_target): ... this.
4246 (the_target, set_target_ops): Adjust.
4247 (prepare_to_access_memory): Adjust comment.
4248 * win32-low.c (child_xfer_memory): Adjust to use
4249 process_stratum_target.
4250 (win32_target_ops): Now a process_stratum_target.
4252 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4253 Pedro Alves <palves@redhat.com>
4255 * win32-low.c (get_child_debug_event): Extract the fatal exception
4256 from the exit status and convert to the equivalent Posix signal
4258 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4259 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4261 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4263 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4265 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4267 * server.c (gdbserver_version): Change copyright year to 2020.
4268 * gdbreplay.c (gdbreplay_version): Likewise.
4270 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4272 * configure: Regenerate.
4273 * configure.ac: Quote variable arguments of test.
4275 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4277 * Makefile.in: Fix build with GNU Make 3.81
4279 2019-12-16 Tom Tromey <tromey@adacore.com>
4281 * server.c (get_exec_file): Constify result.
4283 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4285 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4286 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4287 * config.in: Regenerate.
4288 * configure: Regenerate.
4289 * configure.ac: Don't check for strerror.
4290 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4291 Call safe_strerror instead of strerror.
4292 * server.h (strerror): Remove this now-unnecessary declaration.
4293 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4295 (gdb_agent_helper_thread): Likewise.
4296 * utils.c (perror_with_name): Likewise.
4298 2019-11-26 Tom Tromey <tom@tromey.com>
4300 * configure, config.in: Rebuild.
4302 2019-11-26 Tom Tromey <tom@tromey.com>
4304 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4305 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4307 * configure, config.in: Rebuild.
4309 2019-11-26 Tom Tromey <tom@tromey.com>
4311 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4312 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4313 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4314 * acinclude.m4: Include ax_pthread.m4.
4315 * config.in, configure: Rebuild.
4317 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4319 * debug.c (debug_set_output): Call safe_strerror instead of
4321 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4322 (linux_kill_one_lwp): Likewise.
4323 (linux_detach_one_lwp): Likewise.
4324 (linux_wait_for_event_filtered): Likewise.
4325 (store_register): Likewise.
4326 * lynx-low.c (lynx_attach): Likewise.
4327 * mem-break.c (insert_memory_breakpoint): Likewise.
4328 (remove_memory_breakpoint): Likewise.
4329 (delete_fast_tracepoint_jump): Likewise.
4330 (set_fast_tracepoint_jump): Likewise.
4331 (uninsert_fast_tracepoint_jumps_at): Likewise.
4332 (reinsert_fast_tracepoint_jumps_at): Likewise.
4333 * nto-low.c (nto_xfer_memory): Likewise.
4334 (nto_resume): Likewise.
4336 2019-11-20 Luis Machado <luis.machado@linaro.org>
4338 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4339 instead of register count.
4340 * tdesc.c (tdesc_contains_feature): New function.
4341 * tdesc.h (tdesc_contains_feature): New prototype.
4343 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4345 * Makefile.in: Add safe-strerror.c.
4346 * configure: Regenerate.
4347 * configure.ac: Don't source common.host.
4349 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4351 * config.in: Regenerate.
4352 * configure: Regenerate.
4354 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4356 * ax.c (ax_printf): Handle size_t_arg.
4358 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4360 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4361 * mi/mi-main.c (output_cores): Likewise.
4362 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4363 (linux_xfer_osdata_modules): Likewise.
4364 * remote.c (register_remote_support_xml): Likewise.
4365 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4366 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4368 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4370 * configure: Regenerate.
4371 * configure.ac: Remove check for strerror_r.
4373 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4375 * config.in: Regenerate.
4376 * configure: Regenerate.
4377 * configure.ac: Also check for strerror_r.
4379 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4381 * ax.h (debug_agent): Remove duplicate declaration.
4383 2019-10-26 Tom de Vries <tdevries@suse.de>
4385 * linux-aarch64-low.c: Fix typos in comments.
4386 * linux-arm-low.c: Same.
4387 * linux-low.c: Same.
4388 * linux-ppc-low.c: Same.
4389 * proc-service.c: Same.
4392 * tracepoint.c: Same.
4393 * win32-low.c: Same.
4395 2019-10-25 Tom Tromey <tromey@adacore.com>
4397 * utils.c (xstrdup): Remove.
4399 2019-10-23 Tom Tromey <tom@tromey.com>
4401 * configure, config.in: Rebuild.
4403 2019-10-23 Tom Tromey <tom@tromey.com>
4405 * configure: Rebuild.
4406 * acinclude.m4: Use m4_include, not sinclude.
4408 2019-10-17 Tom Tromey <tromey@adacore.com>
4410 * configure: Rebuild.
4411 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4412 in AC_CONFIG_FILES invocation.
4413 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4416 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4418 * server.c: Include xml-builtin.h.
4419 (get_xml_features): Don't declare xml_builtins here.
4421 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4423 * Makefile.in: Remove references to vec-ipa.o.
4425 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4427 * Makefile.in: Remove references to vec.c.
4429 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4431 * server.c (server_waiting): Change to bool.
4432 (extended_protocol): Likewise.
4433 (response_needed): Likewise.
4434 (exit_requested): Likewise.
4435 (run_once): Likewise.
4436 (report_no_resumed): Likewise.
4437 (non_stop): Likewise.
4438 (disable_packet_vCont): Likewise.
4439 (disable_packet_Tthread): Likewise.
4440 (disable_packet_qC): Likewise.
4441 (disable_packet_qfThreadInfo): Likewise.
4442 (handle_general_set): Update.
4443 (handle_detach): Update.
4444 (handle_monitor_command): Update.
4445 (handle_query): Update.
4446 (captured_main): Update.
4447 (process_serial_event): Update.
4448 * server.h (server_waiting): Change to bool.
4449 (disable_packet_vCont): Likewise.
4450 (disable_packet_Tthread): Likewise.
4451 (disable_packet_qC): Likewise.
4452 (disable_packet_qfThreadInfo): Likewise.
4453 (run_once): Likewise.
4454 (non_stop): Likewise.
4455 * target.c (target_stop_and_wait): Update.
4457 2019-10-02 Tom Tromey <tromey@adacore.com>
4459 * Makefile.in (SFILES): Add common-inferior.c.
4460 (OBS): Add common-inferior.o.
4461 * server.c (startup_with_shell): Don't define.
4463 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4465 * linux-low.c (linux_low_read_btrace): Update for change to
4468 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4470 * debug.c (debug_threads): Remove comment in favor of the header.
4471 * debug.h (using_threads): Add declaration.
4472 (debug_threads): Add comment.
4473 * linux-aarch64-low.c: Include debug.h and remove declaration of
4475 * nto-low.c: Likewise.
4476 * remote-utils.c: Likewise.
4477 * thread-db.c: Likewise.
4479 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4481 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4482 and powerpc-cell64l-ipa.o.
4483 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4484 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4485 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4488 * spu-low.c: Remove file.
4490 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4491 (parse_spufs_run): Remove.
4492 (ppc_get_pc): Remove Cell/B.E. support.
4493 (ppc_set_pc): Likewise.
4494 (ppc_breakpoint_at): Likewise.
4495 (ppc_arch_setup): Likewise.
4496 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4497 tdesc_powerpc_cell32l.
4498 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4499 or init_registers_powerpc_cell32l.
4500 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4501 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4502 or init_registers_powerpc_cell32l.
4503 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4504 (init_registers_powerpc_cell32l): Remove prototype.
4505 (init_registers_powerpc_cell64l): Likewise.
4507 * target.h (struct target_ops): Remove qxfer_spu member.
4508 * server.c (handle_qxfer_spu): Remove.
4509 (qxfer_packets): Remove entry for "spu".
4510 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4511 * linux-low.c (SPUFS_MAGIC): Remove.
4512 (spu_enumerate_spu_ids): Remove.
4513 (linux_qxfer_spu): Remove.
4514 (linux_target_ops): Remove qxfer_spu member.
4515 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4516 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4517 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4519 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4521 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4522 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4523 * config.in: Regenerate.
4524 * configure: Regenerate.
4526 2019-08-15 Tom Tromey <tromey@adacore.com>
4528 * target.c (target_write_memory): Use gdb::byte_vector.
4530 2019-08-15 Tom Tromey <tromey@adacore.com>
4532 * tracepoint.c (write_inferior_data_pointer)
4533 (write_inferior_integer, write_inferior_int8)
4534 (write_inferior_uinteger, m_tracepoint_action_download)
4535 (r_tracepoint_action_download, x_tracepoint_action_download)
4536 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4537 (download_agent_expr, download_tracepoint_1)
4538 (download_trace_state_variables, upload_fast_traceframes): Update.
4539 * server.c (gdb_write_memory): Update.
4540 * remote-utils.c (relocate_instruction): Update.
4541 * proc-service.c (ps_pdwrite): Update.
4542 * mem-break.c (remove_memory_breakpoint)
4543 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4544 (uninsert_fast_tracepoint_jumps_at)
4545 (reinsert_fast_tracepoint_jumps_at): Update.
4546 * linux-x86-low.c (append_insns)
4547 (i386_install_fast_tracepoint_jump_pad)
4548 (amd64_write_goto_address, i386_write_goto_address): Update.
4549 * linux-s390-low.c (append_insns, s390_write_goto_address):
4551 * linux-ppc-low.c (ppc_relocate_instruction)
4552 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4553 (ppc_write_goto_address): Update.
4554 * linux-aarch64-low.c (append_insns): Update.
4555 * target.h (struct target_ops): Update.
4556 (write_inferior_memory): Don't declare.
4557 * target.c (target_write_memory): Rename from
4558 write_inferior_memory. Remove old target_write_memory.
4560 2019-08-15 Tom Tromey <tromey@adacore.com>
4562 * target.c (write_inferior_memory): Use std::vector.
4564 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4567 * configure.ac: Drop enable-libmcheck support.
4568 * configure, config.in: Rebuild.
4569 * acinclude.m4: Don't include it.
4571 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4573 * configure.srv: Remove Arm xml files.
4575 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4577 * configure.srv: Add new files. Remove xml generated files.
4578 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4580 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4581 * linux-aarch32-tdesc.c: New file.
4582 * linux-aarch32-tdesc.h: New file.
4583 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4584 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4585 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4586 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4587 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4588 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4589 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4590 (arm_read_description): Call arm_linux_read_description.
4591 (initialize_low_arch): Don't init registers.
4592 * linux-arm-tdesc.c: New file.
4593 * linux-arm-tdesc.h: New file.
4595 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4597 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4598 Move counter inside for.
4599 (arm_read_description): Check ptrace earlier.
4600 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4602 2019-07-09 Tom Tromey <tom@tromey.com>
4604 * configure: Rebuild.
4605 * configure.ac: Change common to gdbsupport.
4606 * acinclude.m4: Change common to gdbsupport.
4607 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4608 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4609 common to gdbsupport.
4610 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4611 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4612 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4613 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4614 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4615 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4616 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4617 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4618 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4619 common to gdbsupport.
4621 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4623 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4625 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4627 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4629 * configure.srv: Remove legacy xml.
4630 * linux-aarch64-low.c (initialize_low_arch): Remove
4631 initialize_low_tdesc call.
4632 * linux-aarch64-tdesc-selftest.c: Remove file.
4633 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4634 * linux-x86-low.c (initialize_low_arch): Remove
4635 initialize_low_tdesc call.
4636 * linux-x86-tdesc-selftest.c: Remove file.
4637 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4639 2019-06-20 Tom de Vries <tdevries@suse.de>
4641 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4642 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4644 2019-06-19 Tom de Vries <tdevries@suse.de>
4646 * debug.h (debug_write): Change return type to ssize_t.
4647 * debug.c (debug_write): Same.
4649 2019-06-14 Tom Tromey <tom@tromey.com>
4651 * configure.ac: Use new path to gnulib.
4652 * configure: Rebuild.
4653 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4656 2019-06-11 Tom Tromey <tom@tromey.com>
4658 * Makefile.in (SFILES): Add alloc.c.
4660 (IPA_OBJS): Add alloc-ipa.o.
4661 (alloc-ipa.o): New target.
4662 (%.o: ../%.c): New pattern rule.
4664 2019-06-10 Tom Tromey <tromey@adacore.com>
4666 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4667 end warning with a newline.
4668 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4670 * thread-db.c (attach_thread): Don't end warning with a newline.
4671 (thread_db_notice_clone): Likewise.
4672 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4674 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4675 end warning with a newline.
4677 2019-06-04 Pedro Alves <palves@redhat.com>
4679 * server.c (captured_main): Use make_unique_xstrdup.
4681 2019-06-02 Tom Tromey <tom@tromey.com>
4683 * gdbreplay.c (fromhex): Remove.
4684 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4686 2019-05-29 Tom Tromey <tromey@adacore.com>
4688 * configure: Rebuild.
4690 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4692 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4693 sign extension code on 32-bit builds.
4695 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4698 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4700 2019-04-19 Tom Tromey <tom@tromey.com>
4702 * server.c (struct vstop_notif): Derive from notif_event.
4704 (queue_stop_reply): Update.
4705 (remove_all_on_match_ptid): Change type. Rewrite.
4706 (discard_queued_stop_replies): Rewrite.
4707 (in_queued_stop_replies_ptid): Change type.
4708 (in_queued_stop_replies): Rewrite.
4709 (notif_stop): Update.
4710 (queue_stop_reply_callback): Update.
4711 (captured_main): Don't call initialize_notif.
4712 (push_stop_notification): Update.
4713 * notif.c (notif_write_event, handle_notif_ack)
4714 (notif_event_enque, notif_push): Update.
4715 (notif_event_xfree, initialize_notif): Remove.
4716 * notif.h (struct notif_event): Include <list>, not
4718 (struct notif_server) <queue>: Now a std::list.
4719 (notif_event_p): Remove typedef.
4720 (initialize_notif): Don't declare.
4721 (struct notif_event): Add virtual destructor.
4723 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4725 * ax.c (ax_vdebug): Call debug_printf.
4726 * debug.c (debug_write): New function.
4727 * debug.h (debug_write): New declaration.
4728 * linux-low.c (sigchld_handler): Call debug_write.
4730 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4732 * debug.c (debug_set_output): New function.
4733 (debug_vprintf): Send output to debug_file.
4734 (debug_flush): Likewise.
4735 * debug.h (debug_set_output): New declaration.
4736 * server.c (handle_monitor_command): Add debug-file option.
4737 (captured_main): Likewise.
4739 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4741 * debug.c (remote_debug): Add definition.
4742 * debug.h (remote_debug): Add declaration.
4743 * hostio.c (remote_debug): Remove declaration.
4744 * remote-utils.c (struct ui_file): Likewise.
4745 (remote_debug): Likewise.
4746 * remote-utils.h (remote_debug): Likewise,
4747 * server.c (remote_debug): Remove definition.
4749 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4751 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4752 when using a 64-bit gdbserver.
4754 2019-04-09 Tom Tromey <tromey@adacore.com>
4756 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4758 2019-04-08 Tom Tromey <tom@tromey.com>
4760 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4762 (linux_resume_one_lwp): Likewise.
4764 2019-04-08 Tom Tromey <tom@tromey.com>
4766 * gdbreplay.c: Update.
4767 * linux-low.c: Update.
4770 2019-04-08 Tom Tromey <tom@tromey.com>
4772 * server.c: Use C++ exception handling.
4773 * linux-low.c: Use C++ exception handling.
4774 * gdbreplay.c: Use C++ exception handling.
4776 2019-04-08 Tom Tromey <tom@tromey.com>
4778 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4779 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4780 (captured_main, main): Update.
4781 * gdbreplay.c (main): Update.
4783 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4785 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4786 value in argument pointer, return 1 if the entry is found and 0
4787 otherwise. Move comment.
4788 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4789 * linux-low.h (linux_get_auxv): Declare.
4790 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4792 2019-04-05 Tom Tromey <tromey@adacore.com>
4794 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4797 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4799 * linux-low.c (AT_HWCAP2): Add define if not already included.
4801 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4803 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4804 (aarch64_arch_setup): Call linux_get_hwcap.
4805 * linux-arm-low.c (arm_get_hwcap): Remove function.
4806 (arm_read_description): Call linux_get_hwcap.
4807 * linux-low.c (linux_get_auxv): New function.
4808 (linux_get_hwcap): Likewise.
4809 (linux_get_hwcap2): Likewise.
4810 * linux-low.h (linux_get_hwcap): New declaration.
4811 (linux_get_hwcap2): Likewise.
4812 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4813 (ppc_arch_setup): Call linux_get_hwcap.
4814 * linux-s390-low.c (s390_get_hwcap): Remove function.
4815 (s390_arch_setup): Call linux_get_hwcap.
4817 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4818 Jiong Wang <jiong.wang@arm.com>
4820 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4821 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4823 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4825 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4826 Jiong Wang <jiong.wang@arm.com>
4828 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4829 (aarch64_get_hwcap): New function.
4830 (aarch64_arch_setup): Read APIA hwcap.
4832 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4833 Jiong Wang <jiong.wang@arm.com>
4835 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4836 (initialize_low_tracepoint): Likewise.
4837 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4838 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4839 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4840 (aarch64_linux_read_description): Likewise.
4841 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4843 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4845 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4846 i386_create_target_description for 'segments' parameter.
4847 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4848 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4849 * win32-i386-low.c (i386_arch_setup): Likewise.
4851 2019-03-12 Tom Tromey <tromey@adacore.com>
4853 * linux-low.c (iterate_over_lwps): Update.
4855 2019-03-06 Tom Tromey <tom@tromey.com>
4857 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4858 (captured_main): Use SCOPE_EXIT.
4860 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4862 * configure.srv: Use '$enable_unittest' instead of '$development'
4863 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4866 2019-02-27 Tom Tromey <tromey@adacore.com>
4868 * gdbreplay.c (logchar): Handle \r\n.
4870 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4872 * linux-low.c (linux_attach): Add process before lwp.
4873 * server.c (attach_inferior): Check if already attached.
4875 2019-02-07 Tom Tromey <tom@tromey.com>
4877 * x86-tdesc.h: Rename include guard.
4878 * x86-low.h: Add include guard.
4879 * wincecompat.h: Rename include guard.
4880 * win32-low.h: Add include guard.
4881 * utils.h: Rename include guard.
4882 * tracepoint.h: Rename include guard.
4883 * tdesc.h: Rename include guard.
4884 * target.h: Rename include guard.
4885 * server.h: Rename include guard.
4886 * remote-utils.h: Rename include guard.
4887 * regcache.h: Rename include guard.
4888 * nto-low.h: Rename include guard.
4889 * notif.h: Add include guard.
4890 * mem-break.h: Rename include guard.
4891 * lynx-low.h: Add include guard.
4892 * linux-x86-tdesc.h: Add include guard.
4893 * linux-s390-tdesc.h: Add include guard.
4894 * linux-ppc-tdesc-init.h: Add include guard.
4895 * linux-low.h: Add include guard.
4896 * linux-aarch64-tdesc.h: Add include guard.
4897 * linux-aarch32-low.h: Add include guard.
4898 * inferiors.h: Rename include guard.
4899 * i387-fp.h: Rename include guard.
4900 * hostio.h: Rename include guard.
4901 * gdbthread.h: Rename include guard.
4902 * gdb_proc_service.h: Rename include guard.
4903 * event-loop.h: Rename include guard.
4904 * dll.h: Rename include guard.
4905 * debug.h: Rename include guard.
4906 * ax.h: Rename include guard.
4908 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4911 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4912 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4914 2019-01-25 Tom Tromey <tom@tromey.com>
4916 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4918 2019-01-25 Tom Tromey <tom@tromey.com>
4920 * win32-low.c: Fix common/ includes.
4921 * win32-i386-low.c: Fix common/ includes.
4922 * tracepoint.c: Fix common/ includes.
4923 * thread-db.c: Fix common/ includes.
4924 * target.h: Fix common/ includes.
4925 * symbol.c: Fix common/ includes.
4926 * spu-low.c: Fix common/ includes.
4927 * server.h: Fix common/ includes.
4928 * server.c: Fix common/ includes.
4929 * remote-utils.c: Fix common/ includes.
4930 * regcache.h: Fix common/ includes.
4931 * regcache.c: Fix common/ includes.
4932 * nto-x86-low.c: Fix common/ includes.
4933 * notif.h: Fix common/ includes.
4934 * mem-break.h: Fix common/ includes.
4935 * lynx-low.c: Fix common/ includes.
4936 * lynx-i386-low.c: Fix common/ includes.
4937 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4938 * linux-x86-low.c: Fix common/ includes.
4939 * linux-low.c: Fix common/ includes.
4940 * inferiors.h: Fix common/ includes.
4941 * i387-fp.c: Fix common/ includes.
4942 * hostio.c: Fix common/ includes.
4943 * hostio-errno.c: Fix common/ includes.
4944 * gdbthread.h: Fix common/ includes.
4945 * gdbreplay.c: Fix common/ includes.
4946 * fork-child.c: Fix common/ includes.
4947 * event-loop.c: Fix common/ includes.
4949 (enum gdb_agent_op): Fix common/ includes.
4951 2019-01-21 Tom Tromey <tom@tromey.com>
4953 * tracepoint.c: Fix includes.
4954 * remote-utils.c: Fix includes.
4955 * linux-x86-low.c: Fix includes.
4957 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4959 * gdbreplay.c (gdbreplay_version): Update copyright year in
4961 * server.c (gdbserver_version): Likewise.
4963 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4965 * linux-low.c (add_lwp): Switch ordering.
4967 2018-11-29 Tom Tromey <tom@tromey.com>
4969 * win32-low.c (win32_join): Take pid, not process.
4970 * target.h (struct target_ops) <join>: Change argument type.
4971 (join_inferior): Change argument name.
4972 * spu-low.c (spu_join): Take pid, not process.
4973 * server.c (handle_detach): Preserve pid before destroying
4975 * lynx-low.c (lynx_join): Take pid, not process.
4976 * linux-low.c (linux_join): Take pid, not process.
4978 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4980 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
4981 (aarch64_cannot_fetch_register): Likewise.
4982 (struct linux_target_ops): Update references.
4984 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4986 * linux-ppc-low.c: Include nat/linux-ptrace.h.
4988 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4990 * configure.srv (ipa_ppc_linux_regobj): Add
4991 powerpc-isa207-htm-vsx32l-ipa.o and
4992 powerpc-isa207-htm-vsx64l-ipa.o.
4993 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
4994 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
4995 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
4996 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
4997 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
4998 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
4999 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5000 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5001 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5002 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5003 (init_registers_powerpc_isa207_htm_vsx32l)
5004 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5005 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5006 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5007 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5008 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5009 (ppc_store_tm_ctarregset): New functions.
5010 (ppc_regsets): Add entries for HTM regsets.
5011 (ppc_arch_setup): Set htm in features struct when needed. Set
5012 sizes for the HTM regsets.
5013 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5014 (initialize_low_arch): Call
5015 init_registers_powerpc_isa207_htm_vsx32l and
5016 init_registers_powerpc_isa207_htm_vsx64l.
5017 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5018 PPC_TDESC_ISA207_HTM_VSX.
5019 (initialize_low_tracepoint): Call
5020 init_registers_powerpc_isa207_htm_vsx32l and
5021 init_registers_powerpc_isa207_htm_vsx64l.
5023 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5025 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5026 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5027 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5028 (ppc_store_pmuregset): New functions.
5029 (ppc_regsets): Add entries for ebb and pmu regsets.
5030 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5031 pmu regsets are available. Set sizes for these regsets.
5033 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5035 * configure.srv (ipa_ppc_linux_regobj): Add
5036 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5037 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5038 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5039 rs6000/powerpc-isa207-vsx32l.xml, and
5040 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5041 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5042 <PPC_TDESC_ISA207_VSX>: New enum value.
5043 (init_registers_powerpc_isa207_vsx32l): Declare.
5044 (init_registers_powerpc_isa207_vsx64l): Declare.
5045 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5046 (ppc_store_tarregset): New function.
5047 (ppc_regsets): Add entry for the TAR regset.
5048 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5049 size for the TAR regsets.
5050 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5051 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5052 and init_registers_powerpc_isa207_vsx64l.
5053 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5054 (initialize_low_tracepoint): Call
5055 init_registers_powerpc_isa207_vsx32l and
5056 init_registers_powerpc_isa207_vsx64l.
5058 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5059 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5061 * configure.srv (ipa_ppc_linux_regobj): Add
5062 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5063 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5064 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5065 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5066 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5067 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5068 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5069 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5070 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5071 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5072 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5073 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5074 (ppc_hwcap): Add comment.
5075 (ppc_hwcap2): New global.
5076 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5077 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5078 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5079 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5080 when needed. Set sizes for the the DSCR and PPR regsets.
5081 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5082 (initialize_low_arch): Call
5083 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5084 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5085 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5086 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5087 (initialize_low_tracepoint): Call
5088 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5089 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5091 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5093 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5095 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5096 Simon Marchi <simark@simark.ca>
5098 * acinclude.m4: Include "../selftest.m4".
5099 * configure: Regenerate.
5100 * configure.ac: Use "GDB_AC_SELFTEST".
5101 * configure.srv: Use "$enable_unittests" instead of
5102 "$development" when checking whether unit tests have been
5104 * server.c (captured_main): Update message informing that
5105 selftests have been disabled.
5107 2018-10-04 Tom Tromey <tom@tromey.com>
5109 * configure: Rebuild.
5111 2018-10-04 Tom Tromey <tom@tromey.com>
5113 * server.c (handle_status): Rename inner "thread".
5114 (process_serial_event): Declare "res" in 'm' case.
5115 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5116 (iterate_over_lwps): Rename inner "thread".
5117 (linux_qxfer_libraries_svr4): Rename inner "len".
5118 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5120 2018-10-01 Gary Benson <gbenson@redhat.com>
5122 * gdb_proc_service.h: Moved common code to
5123 common/gdb_proc_service.h.
5125 2018-10-01 Gary Benson <gbenson@redhat.com>
5127 * gdb_proc_service.h: Synchronize comments and whitespace with
5128 GDB's version of this file.
5130 2018-09-25 Tom Tromey <tom@tromey.com>
5132 * configure: Rebuild.
5133 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5135 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5137 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5138 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5139 ($(IPA_LIB)): Sort IPA_OBJS.
5141 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5143 * Makefile.in: Remove references to $(ADD_DEPS).
5145 2018-09-16 Tom Tromey <tom@tromey.com>
5147 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5149 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5152 2018-09-05 Tom Tromey <tom@tromey.com>
5154 * configure: Rebuild.
5156 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5159 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5161 2018-08-27 Tom Tromey <tom@tromey.com>
5164 * configure: Rebuild.
5166 2018-08-27 Tom Tromey <tom@tromey.com>
5168 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5169 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5170 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5171 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5172 (s390x_emit_stack_adjust): Add casts to unsigned char.
5174 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5178 * server.h (struct client_state) <disable_randomization>:
5181 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5183 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5185 (mips_supply_ptrace_register): Likewise.
5187 2018-07-22 Tom Tromey <tom@tromey.com>
5189 * configure: Rebuild.
5191 2018-07-22 Tom Tromey <tom@tromey.com>
5193 * win32-low.c (win32_create_inferior): Remove unused variables.
5194 * gdbreplay.c (remote_open): Remove unused variable.
5195 * remote-utils.c (remote_prepare): Remove unused variable.
5196 * x86-tdesc.h (X86_TDESC_H): Define.
5197 (amd64_expedite_regs): Define conditionally.
5198 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5199 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5200 * remote-utils.c (readchar): Remove unused variable.
5202 2018-07-13 Pedro Alves <palves@redhat.com>
5204 * linux-low.c (linux_kill): Change parameter to process_info
5205 pointer instead of pid. Adjust.
5206 * lynx-low.c (lynx_kill): Likewise.
5207 * nto-low.c (nto_kill): Likewise.
5208 * spu-low.c (spu_kill): Likewise.
5209 * win32-low.c (win32_kill): Likewise.
5210 * server.c (handle_v_kill, kill_inferior_callback)
5211 (detach_or_kill_for_exit): Adjust.
5212 * target.c (kill_inferior): Change parameter to process_info
5213 pointer instead of pid. Adjust.
5214 * target.h (struct target_ops) <kill>: Change parameter to
5215 process_info pointer instead of pid. Adjust all implementations
5217 (kill_inferior): Likewise.
5219 2018-07-13 Pedro Alves <palves@redhat.com>
5221 * linux-low.c (linux_detach, linux_join): Change parameter to
5222 process_info pointer instead of pid. Adjust.
5223 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5224 * nto-low.c (nto_detach): Likewise.
5225 * spu-low.c (spu_detach, spu_join): Likewise.
5226 * win32-low.c (win32_detach, win32_join): Likewise.
5227 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5228 * target.h (struct target_ops) <detach, join>: Change parameter to
5229 process_info pointer instead of pid. Adjust all implementations
5231 (detach_inferior, join_inferior): Rename 'pid' parameter to
5234 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5235 Jan Kratochvil <jan.kratochvil@redhat.com>
5236 Paul Fertser <fercerpav@gmail.com>
5237 Tsutomu Seki <sekiriki@gmail.com>
5239 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5240 (OBS): Add 'common/netstuff.o'.
5241 (GDBREPLAY_OBS): Likewise.
5242 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5243 (remote_open): Implement support for IPv6
5245 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5247 (handle_accept_event): Accept connections from IPv6 sources.
5248 (remote_prepare): Handle IPv6-style hostnames; implement
5249 support for IPv6 connections.
5250 (remote_open): Implement support for printing connections from
5253 2018-07-11 Pedro Alves <palves@redhat.com>
5256 * mem-break.c (any_persistent_commands): Add process_info
5257 parameter and use it instead of relying on the current process.
5258 Change return type to bool.
5259 * mem-break.h (any_persistent_commands): Add process_info
5260 parameter and change return type to bool.
5261 * server.c (handle_detach): Remove require_running_or_return call.
5262 Look up the process_info for the process we're about to detach.
5263 If not found, return back error to GDB. Adjust
5264 any_persistent_commands call to pass down a process pointer.
5266 2018-07-11 Pedro Alves <palves@redhat.com>
5268 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5269 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5270 instead of collect_register_by_name.
5271 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5272 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5274 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5275 Pedro Alves <palves@redhat.com>
5277 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5279 2018-07-03 Tom Tromey <tom@tromey.com>
5281 * linux-low.c: Update.
5282 * lynx-low.c: Update.
5283 * mem-break.c: Update.
5284 * nto-low.c: Update.
5285 * remote-utils.c: Update.
5287 * spu-low.c: Update.
5289 * win32-low.c: Update.
5291 2018-07-03 Tom Tromey <tom@tromey.com>
5295 2018-07-03 Tom Tromey <tom@tromey.com>
5297 * linux-low.c: Update.
5299 2018-07-03 Tom Tromey <tom@tromey.com>
5303 2018-07-03 Tom Tromey <tom@tromey.com>
5305 * linux-low.c: Update.
5306 * linux-mips-low.c: Update.
5307 * lynx-low.c: Update.
5308 * nto-low.c: Update.
5309 * remote-utils.c: Update.
5311 * spu-low.c: Update.
5313 * thread-db.c: Update.
5315 2018-07-03 Tom Tromey <tom@tromey.com>
5317 * linux-low.c: Update.
5318 * linux-mips-low.c: Update.
5319 * lynx-low.c: Update.
5320 * mem-break.c: Update.
5321 * nto-low.c: Update.
5322 * remote-utils.c: Update.
5324 * spu-low.c: Update.
5326 * tracepoint.c: Update.
5328 2018-07-03 Tom Tromey <tom@tromey.com>
5330 * linux-low.c: Update.
5331 * linux-ppc-low.c: Update.
5332 * linux-x86-low.c: Update.
5333 * proc-service.c: Update.
5335 * spu-low.c: Update.
5336 * thread-db.c: Update.
5337 * win32-low.c: Update.
5339 2018-07-03 Tom Tromey <tom@tromey.com>
5341 * linux-low.c: Update.
5342 * lynx-low.c: Update.
5343 * nto-low.c: Update.
5344 * remote-utils.c: Update.
5345 * spu-low.c: Update.
5346 * thread-db.c: Update.
5347 * win32-low.c: Update.
5349 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5351 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5352 parameter in call to 'amd64_create_target_description'.
5354 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5356 * x86-tdesc.h: Remove executable permission flag.
5358 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5360 * configure.ac: Remove AC_PREREQ, add missing quoting.
5361 * configure: Re-generate.
5362 * config.in: Re-generate.
5363 * aclocal.m4: Re-generate.
5365 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5367 * tracepoint.h (current_traceframe): Remove declaration.
5369 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5371 * linux-aarch64-low.c (is_sve_tdesc): New function.
5372 (aarch64_sve_regs_copy_to_regcache): Likewise.
5373 (aarch64_sve_regs_copy_from_regcache): Likewise.
5374 (aarch64_regs_info): Add SVE checks.
5375 (initialize_low_arch): Initialize SVE.
5377 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5379 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5381 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5383 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5384 (initialize_low_tracepoint): Likewise
5385 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5386 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5388 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5390 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5392 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5394 * server.h (PBUFSIZ): Increase size
5396 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5398 * regcache.c (regcache::raw_compare): New function.
5399 * regcache.h (regcache::raw_compare): New declaration.
5401 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5403 * regcache.c (new_register_cache): Use new.
5404 (free_register_cache): Use delete.
5405 (register_data): Use const.
5406 (supply_register): Move body inside regcache.
5407 (regcache::raw_supply): New override function.
5408 (collect_register): Move body inside regcache.
5409 (regcache::raw_collect): New override function.
5410 (regcache::get_register_status): New override function.
5411 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5413 2018-06-09 Tom Tromey <tom@tromey.com>
5415 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5417 (event_queue): Use std::queue.
5418 (gdb_event_xfree): Remove.
5419 (initialize_event_loop, process_event, wait_for_event): Update.
5421 2018-06-08 Stan Cox <scox@redhat.com>
5423 * win32-low.c (win32_create_inferior): last_ptid and last_status
5424 moved to client_state.
5426 2018-06-08 Pedro Alves <palves@redhat.com>
5428 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5429 common/common-exceptions.o, common/common-utils.o,
5430 common/errors.o, common/print-utils.o and utils.o.
5431 * gdbreplay.c: Include "common-defs.h" instead of the two
5432 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5433 string.h or alloca.h.
5434 (perror_with_name): Delete.
5435 (remote_open): Use xstrdup instead of strdup.
5436 (main): Rename to ...
5437 (captured_main): ... this.
5440 2018-06-08 Tom Tromey <tom@tromey.com>
5442 * linux-low.c (linux_low_read_btrace): Update.
5444 2018-06-04 Stan Cox <scox@redhat.com>
5446 * server.h (struct client_state): New.
5447 * server.c (cont_thread, general_thread, multi_process)
5448 (report_fork_events, report_vfork_events, report_exec_events)
5449 (report_thread_events, swbreak_feature, hwbreak_feature)
5450 (vCont_supported, disable_randomization, pass_signals)
5451 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5452 Moved to client_state.
5453 * remote-utils.c (remote_debug, noack_mode)
5454 (transport_is_reliable): Moved to client_state.
5455 * tracepoint.c (current_traceframe): Moved to client_state.
5458 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5459 linux-low.c, remote-utils.h, target.c: Use client_state.
5461 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5463 * configure.srv: Add new c/h file.
5465 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5467 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5470 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5472 * gdb.arch/mips-fpregset-core.exp: New test.
5473 * gdb.arch/mips-fpregset-core.c: New test source.
5475 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5478 * hostio.c (require_int): Do not report overflow for integers
5479 between 0xfffffff and 0x7fffffff.
5481 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5483 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5484 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5485 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5487 (the_low_target): Wire them.
5489 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5491 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5492 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5493 mode. Call collect_register_by_name with vscr using
5494 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5495 (ppc_store_vrregset): Add and set vscr_offset variable as in
5496 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5499 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5501 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5502 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5503 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5505 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5507 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5508 (ppc_store_vsxregset): Likewise.
5509 (ppc_fill_vrregset): Likewise.
5510 (ppc_store_vrregset): Likewise.
5511 (ppc_fill_evrregset): Likewise.
5512 (ppc_store_evrregset): Likewise.
5513 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5514 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5517 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5519 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5520 wordsize of the inferior. Call ppc_linux_target_wordsize.
5522 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5524 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5525 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5526 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5527 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5528 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5529 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5530 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5531 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5532 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5533 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5534 (tdesc_powerpc_e500l): Remove.
5535 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5536 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5537 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5538 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5540 (ppc_arch_setup): Remove target description matching code. Fill a
5541 ppc_linux_features struct and call ppc_linux_match_description
5544 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5546 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5547 width of the requested register exceeds the width of the
5549 (mips_cannot_store_register): Likewise.
5551 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5553 * linux-mips-low.c (mips_fetch_register): New function. Update
5555 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5556 (the_low_target): Wire `mips_fetch_register'.
5558 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5560 * lynx-i386-low.c (LYNXOS_178): New macro.
5561 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5562 the layout on LynxOS-178.
5563 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5564 handle floating point registers that are not supported by
5567 2018-05-10 Tom Tromey <tom@tromey.com>
5569 * configure: Rebuild.
5571 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5574 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5575 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5576 Use it to set the expedite_regs field in the given tdesc.
5577 * x86-tdesc.h: New file.
5578 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5579 Adjust following the addition of the new expedite_regs parameter
5580 to init_target_desc.
5581 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5582 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5583 (i386_linux_read_description, amd64_linux_read_description):
5584 Adjust following the addition of the new expedite_regs parameter
5585 to init_target_desc.
5586 * lynx-i386-low.c: #include "x86-tdesc.h".
5587 (lynx_i386_arch_setup): Adjust following the addition of the new
5588 expedite_regs parameter to init_target_desc.
5589 * nto-x86-low.c: #include "x86-tdesc.h".
5590 (nto_x86_arch_setup): Adjust following the addition of the new
5591 expedite_regs parameter to init_target_desc.
5592 * win32-i386-low.c: #include "x86-tdesc.h".
5593 (i386_arch_setup): Adjust following the addition of the new
5594 expedite_regs parameter to init_target_desc.
5596 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5599 * win32-low.c (win32_create_inferior): Add call to my_wait
5600 setting last_status global.
5602 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5605 * win32-low.c (create_process): Only call gdb_tilde_expand if
5606 inferior_cwd is not NULL.
5608 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5610 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5611 registers to the cache if their values have changed.
5612 (i387_xsave_to_cache): Provide default values for x87 control
5613 registers when these features are available, but disabled.
5614 * regcache.c (supply_register_by_name_zeroed): New function.
5615 * regcache.h (supply_register_by_name_zeroed): Declare new
5618 2018-05-07 Tom Tromey <tom@tromey.com>
5620 * configure: Rebuild.
5622 2018-05-04 Tom Tromey <tom@tromey.com>
5624 * configure: Rebuild.
5626 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5627 Pedro Alves <palves@redhat.com>
5629 * linux-aarch64-low.c (aarch64_stopped_data_address):
5632 2018-04-27 Tom Tromey <tom@tromey.com>
5634 * configure: Rebuild.
5636 2018-04-23 Tom Tromey <tom@tromey.com>
5638 * configure: Rebuild.
5640 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5642 * Makefile.in (depcomp): Add "..".
5643 (all_deps_files): New and use it.
5645 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5647 * configure.srv (aarch64*-*-linux*): Don't include xml.
5648 (i[34567]86-*-cygwin*): Likewise.
5649 (i[34567]86-*-linux*): Likewise.
5650 (i[34567]86-*-lynxos*): Likewise.
5651 (i[34567]86-*-mingw32ce*): Likewise.
5652 (i[34567]86-*-mingw*): Likewise.
5653 (i[34567]86-*-nto*): Likewise.
5654 (tic6x-*-uclinux): Likewise.
5655 (x86_64-*-linux*): Likewise.
5656 (x86_64-*-mingw*): Likewise.
5657 (x86_64-*-cygwin*): Likewise.
5659 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5661 * tdesc.c: Remove xml parameter.
5663 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5665 * server.c (get_features_xml): Remove cast.
5666 * tdesc.c (void target_desc::accept): Fill in function.
5667 (tdesc_get_features_xml): Remove old xml creation.
5668 (print_xml_feature::visit_pre): Add xml vistor.
5669 * tdesc.h (struct target_desc): Make xmltarget mutable.
5670 (tdesc_get_features_xml): Remove declaration.
5672 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5674 * tdesc.c (tdesc_architecture_name): Add new function.
5675 (tdesc_osabi_name): Likewise.
5676 (tdesc_get_features_xml): Use new functions.
5678 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5680 * tdesc.c (tdesc_create_flags): Remove.
5681 (tdesc_add_flag): Likewise.
5682 (tdesc_named_type): Likewise.
5683 (tdesc_create_union): Likewise.
5684 (tdesc_create_struct): Likewise.
5685 (tdesc_create_vector): Likewise.
5686 (tdesc_add_bitfield): Likewise.
5687 (tdesc_add_field): Likewise.
5688 (tdesc_set_struct_size): Likewise.
5690 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5692 * tdesc.c (~target_desc): Remove implictly deleted items.
5693 (init_target_desc): Iterate all features.
5694 (tdesc_get_features_xml): Use vector.
5695 (tdesc_create_feature): Create feature.
5696 * tdesc.h (tdesc_feature) Remove
5697 (target_desc): Add features.
5699 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5701 * Makefile.in: Add common/tdesc.c
5702 * tdesc.c (init_target_desc): init all reg_defs from register
5704 (tdesc_create_reg): Create tdesc_reg.
5705 * tdesc.h (tdesc_feature): Add register vector.
5707 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5709 * tdesc.h (struct target_desc) <features>: Change type to
5710 std::vector<std::string>.
5711 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5713 (tdesc_get_features_xml): Likewise.
5714 (tdesc_create_feature): Likewise.
5716 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5718 * regcache.c (find_register_by_number): Return a ref.
5719 (find_regno): Use references.
5720 (register_size): Likewise.
5721 (register_data): Likewise.
5722 * tdesc.c (target_desc::~target_desc): Remove free calls.
5723 (target_desc::operator==): Use std::vector compare.
5724 (init_target_desc): Use reference.
5725 (tdesc_create_reg): Use reg constructors.
5726 * tdesc.h (struct target_desc): Replace pointer with object.
5728 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5730 * regcache.c (find_register_by_number): Make static.
5731 (find_regno): Use find_register_by_number
5732 * regcache.h (struct reg): Remove declaration.
5734 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5736 * tdesc.c (target_desc::~target_desc): Move to here.
5737 (target_desc::operator==): Likewise.
5738 * tdesc.h (target_desc::~target_desc): Move from here.
5739 (target_desc::operator==): Likewise.
5741 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5743 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5745 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5747 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5749 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5750 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5751 and init_registers_s390_gs_linux64.
5753 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5755 * linux-s390-low.c (s390_fill_gs): Remove function.
5756 (s390_fill_gsbc): Remove function.
5757 (s390_regsets): Set fill functions for the guarded storage regsets
5760 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5762 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5763 the word size. Add comment.
5764 (s390_get_wordsize): New function.
5765 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5766 pswm with it. Instead, use s390_get_wordsize to determine the
5767 word size first and derive the correct tdesc from that directly.
5769 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5771 * Makefile.in: Include silent-rules.mk.
5772 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5773 (COMPILE): Add ECHO_CXX.
5774 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5775 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5776 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5777 (version-generated.c): Add ECHO_GEN.
5778 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5779 (IPAGENT_COMPILE): Add ECHO_CXX.
5780 (%-generated.c): Add ECHO_REGDAT.
5782 2018-03-14 Tom Tromey <tom@tromey.com>
5785 * ax.c (ax_printf): Special case for NULL.
5787 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5789 * linux-low.c (linux_qxfer_libraries_svr4): Use
5790 xml_escape_text_append.
5792 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5794 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5796 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5798 * server.c (handle_general_set): Remove unnecessary xstrdup.
5800 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5802 * server.c (parse_debug_format_options): Adjust to
5803 delim_string_to_char_ptr_vec changes.
5804 * thread-db.c (thread_db_load_search): Adjust to
5805 dirnames_to_char_ptr_vec changes.
5807 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5809 * target.h (target_enable_btrace, target_disable_btrace)
5810 (target_read_btrace, target_read_btrace_conf): Turn macro into
5811 inline function. Throw error if target method is not defined.
5812 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5813 check for btrace target method. Be prepared to handle exceptions
5814 from btrace target methods.
5816 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5818 * server.c (captured_main): Change order of error message printed
5819 when the current working directory cannot be found.
5821 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5823 * server.c: Include "filenames.h" and "pathstuff.h".
5824 (program_name): Delete variable.
5825 (program_path): New anonymous class.
5826 (get_exec_wrapper): Use "program_path" instead of
5828 (handle_v_run): Likewise.
5829 (captured_main): Likewise.
5830 (process_serial_event): Likewise.
5832 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5834 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5835 (OBJS): Add "pathstuff.o".
5836 * server.c (current_directory): New global variable.
5837 (captured_main): Initialize "current_directory".
5839 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5841 * tdesc.c: Use common/tdesc.h.
5842 * tdesc.h: Likewise.
5844 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5845 Simon Marchi <simon.marchi@ericsson.com>
5847 * Makefile.in: Switch order of make rules.
5849 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5851 * Makefile.in: Add common directory in build.
5852 * configure.ac: Add common reference.
5853 * configure: Regenerate.
5855 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5857 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5858 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5859 * spu-low.c (spu_target_ops): Likewise.
5860 * win32-low.c (win32_target_ops): Likewise.
5861 * server.c (supported_btrace_packets): Report packets unconditionally.
5862 * target.h (target_ops) <supports_btrace>: Remove.
5863 (target_supports_btrace): Remove.
5865 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5867 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5868 (handle_btrace_disable): Change return type to void. Use exceptions
5870 (handle_btrace_general_set): Catch exception and copy message to
5873 2018-02-08 Tom Tromey <tom@tromey.com>
5875 * linux-low.c (install_software_single_step_breakpoints): Use
5876 make_scoped_restore.
5877 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5878 (do_restore_current_thread_cleanup): Remove.
5879 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5882 2018-02-08 Tom Tromey <tom@tromey.com>
5884 * mem-break.c (set_raw_breakpoint_at): Use
5885 gdb::unique_xmalloc_ptr.
5887 2018-01-30 Pedro Alves <palves@redhat.com>
5890 * target.c (target_terminal::terminal_state): Rename to ...
5891 (target_terminal::m_terminal_state): ... this.
5893 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5895 * linux-low.c (handle_extended_wait): Surround call to
5896 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5898 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5900 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5901 linux_ptrace_attach_fail_reason_string now returning an
5903 (linux_attach): Likewise.
5904 * thread-db.c (attach_thread): Likewise.
5906 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5909 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5910 checking for fs_base/gs_base fields in struct user_regs_struct.
5911 * configure: Regenerate.
5913 2018-01-16 Yao Qi <yao.qi@linaro.org>
5916 * linux-low.c (fetch_register): Call supply_register instead of
5919 2018-01-08 Yao Qi <yao.qi@linaro.org>
5920 Simon Marchi <simon.marchi@ericsson.com>
5922 * Makefile.in (OBS): Remove selftest.o.
5923 * configure.ac: Set srv_selftest_objs if $development is true.
5924 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5925 * configure: Re-generated.
5926 * server.c (captured_main): Wrap variable selftest_filter with
5929 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5931 * server.c (parse_debug_format_options): Return std::string.
5932 (handle_monitor_command, captured_main): Adjust.
5934 2018-01-05 Pedro Alves <palves@redhat.com>
5937 * server.c (captured_main): Pass quiet=false to
5938 save_original_signals_state.
5940 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5942 * gdbreplay.c (gdbreplay_version): Update copyright year in
5944 * server.c (gdbserver_version): Likewise.
5946 2017-12-08 Tom Tromey <tom@tromey.com>
5948 * ax.c (ax_printf): Update.
5950 2017-12-07 Yao Qi <yao.qi@linaro.org>
5952 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5953 aarch64_linux_read_description.
5954 * linux-amd64-ipa.c (idx2mask): New array.
5955 (get_ipa_tdesc): Move idx2mask out.
5956 (initialize_low_tracepoint): Initialize target descriptions.
5957 * linux-i386-ipa.c (idx2mask): New array.
5958 (get_ipa_tdesc): Move idx2mask out.
5959 (initialize_low_tracepoint): Initialize target descriptions.
5961 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5963 * tdesc.c (struct tdesc_type): Change return type.
5964 (tdesc_add_flag): Change parameter type.
5965 (tdesc_add_bitfield): Likewise.
5966 (tdesc_add_field): Likewise.
5967 (tdesc_set_struct_size): Likewise.
5969 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5971 * regcache.c (registers_to_string): Remove unused variable.
5973 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5975 * inferiors.c (for_each_inferior_with_data): Remove.
5976 * inferiors.h (for_each_inferior_with_data): Remove.
5977 * server.c (handle_qxfer_threads_worker): Change parameter type.
5978 (handle_qxfer_threads_proper): Use for_each_thread.
5980 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5982 * inferiors.c (for_each_inferior): Remove.
5983 (clear_inferiors): Use for_each_thread.
5984 * inferiors.h (for_each_inferior): Remove.
5985 * linux-low.c (linux_wait_for_event_filtered): Use
5987 (linux_stabilize_threads): Likewise.
5988 * regcache.c (regcache_release): Likewise.
5989 * server.c (gdb_wants_all_threads_stopped): Likewise.
5990 (clear_pending_status_callback): Remove.
5991 (handle_status): Use for_each_thread.
5992 (captured_main): Likewise.
5993 * win32-low.c (child_init_thread_list): Likewise.
5994 (win32_clear_inferiors): Likewise.
5995 (fake_breakpoint_event): Likewise.
5997 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5999 * inferiors.h (find_inferior): Remove.
6000 * inferiors.c (find_inferior): Remove.
6002 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6004 * linux-low.c (resume_status_pending_p): Update comment.
6005 (need_step_over_p): Update comment.
6007 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6009 * linux-low.c (proceed_one_lwp): Return void, change parameter
6011 (unsuspend_and_proceed_one_lwp): Likewise.
6012 (proceed_all_lwps): Use for_each_thread.
6013 (unstop_all_lwps): Likewise.
6015 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6017 * linux-low.c (linux_resume_one_thread): Return void, take
6019 (linux_resume): Use for_each_thread.
6021 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6023 * linux-low.c (send_sigstop_callback): Return void, change
6024 parameter type. Rename to...
6025 (send_sigstop): ... this.
6026 (suspend_and_send_sigstop_callback): Return void, change parameter
6028 (suspend_and_send_sigstop): ... this.
6029 (stop_all_lwps): Use for_each_thread.
6031 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6033 * linux-low.c (lwp_running): Return bool, remove unused
6035 (linux_stabilize_threads): Use find_thread.
6037 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6039 * linux-low.c (select_singlestep_lwp_callback): Remove.
6040 (count_events_callback): Remove.
6041 (select_event_lwp_callback): Remove.
6042 (select_event_lwp): Use find_thread/for_each_thread.
6044 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6046 * linux-low.c (not_stopped_callback): Return bool, take filter
6048 (linux_wait_for_event_filtered): Use find_thread.
6049 (linux_wait_1): Likewise.
6051 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6053 * linux-low.c (same_lwp): Remove.
6054 (find_lwp_pid): Use find_thread.
6056 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6058 * linux-low.c (delete_lwp_callback): Remove.
6059 (linux_mourn): Use for_each_thread.
6061 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6063 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6064 args parameter, don't check for pid.
6065 (linux_detach): Use for_each_thread.
6067 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6069 * linux-low.c (struct counter): Remove.
6070 (second_thread_of_pid_p): Remove.
6071 (last_thread_of_process_p): Use find_thread.
6073 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6075 * inferiors.c (find_inferior_in_random): Remove.
6076 * inferiors.h (find_inferior_in_random): Remove.
6077 * linux-low.c (status_pending_p_callback): Return bool, accept
6078 parameter ptid directly.
6079 (linux_wait_for_event_filtered): Use find_thread_in_random.
6080 (linux_wait_1): Likewise.
6082 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6084 * inferiors.c (find_inferior_id): Remove.
6085 (find_thread_ptid): Move implemention from find_inferior_id to
6087 * inferiors.h (find_inferior_id): Remove.
6088 * server.c (handle_status): Use find_thread_ptid.
6089 (process_serial_event): Likewise.
6090 * thread-db.c (find_one_thread): Likewise.
6091 (thread_db_thread_handle): Likewise.
6092 * win32-low.c (thread_rec): Likewise.
6093 (child_delete_thread): Likewise.
6094 (win32_thread_alive): Likewise.
6095 (get_child_debug_event): Likewise.
6097 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6099 * linux-mips-low.c (update_watch_registers_callback): Return
6100 void, remove pid_p parameter, don't check for pid.
6101 (mips_insert_point, mips_remove_point): Use for_each_thread.
6103 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6105 * lynx.low (lynx_delete_thread_callback): Remove.
6106 (lynx_mourn): Use for_each_thread.
6108 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6110 * regcache.c (regcache_invalidate_one): Remove.
6111 (regcache_invalidate_pid): use for_each_thread.
6113 2017-11-26 Tom Tromey <tom@tromey.com>
6115 * linux-low.c (linux_create_inferior): Update.
6117 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6119 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6121 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6123 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6124 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6125 * linux-aarch64-tdesc-selftest.c: New file.
6126 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6128 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6130 * configure.srv: Add new file.
6131 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6132 * linux-aarch64-tdesc-selftest.c: New file.
6133 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6135 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6137 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6138 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6139 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6141 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6143 * configure.srv: Add new files.
6144 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6145 aarch64_linux_read_description.
6146 * linux-aarch64-low.c (aarch64_linux_read_description):
6147 Merge with aarch64_arch_setup.
6148 (aarch64_arch_setup): Call aarch64_linux_read_description.
6149 * linux-aarch64-tdesc.c: New file.
6150 * linux-aarch64-tdesc.h: New file.
6152 2017-11-24 Yao Qi <yao.qi@linaro.org>
6154 * configure.srv: Set $srv_regobj for tic6x-linux.
6155 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6156 (tic6x_read_description): Move some code to tic6x_arch_setup.
6157 (tic6x_tdesc_test): New function.
6158 (initialize_low_arch): Call selftests::register_test.
6160 2017-11-22 Yao Qi <yao.qi@linaro.org>
6162 * remote-utils.c (prepare_resume_reply): Use memcpy.
6164 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6166 * linux-low.c (kill_one_lwp_callback): Return void, take
6167 argument directly, don't filter on pid.
6168 (linux_kill): Use for_each_thread.
6170 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6172 * linux-low.c (need_step_over_p): Return bool, remove dummy
6174 (linux_resume, proceed_all_lwps): Use find_thread.
6176 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6178 * linux-low.c (resume_status_pending_p): Return bool, remove
6180 (linux_resume): Use find_thread.
6182 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6184 * linux-low.c (struct thread_resume_array): Remove.
6185 (linux_set_resume_request): Return void, take arguments
6187 (linux_resume): Use for_each_thread.
6189 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6191 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6192 return bool, remove data argument.
6193 (linux_stabilize_threads): Use find_thread.
6195 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6197 * linux-low.c (unsuspend_one_lwp): Remove.
6198 (unsuspend_all_lwps): Use for_each_thread, inline code from
6201 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6203 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6204 * linux-low.c (struct iterate_over_lwps_args): Remove.
6205 (iterate_over_lwps_filter): Remove.
6206 (iterate_over_lwps): Use find_thread.
6208 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6210 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6211 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6212 code from reset_lwp_ptrace_options_callback.
6214 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6216 * linux-arm-low.c (struct update_registers_data): Remove.
6217 (update_registers_callback): Return void, take arguments
6218 directly, don't check thread's pid.
6219 (arm_insert_point, arm_remove_point): Use for_each_thread.
6221 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6223 * win32-low.c (continue_one_thread): Return void, take argument
6225 (child_continue): Use for_each_thread.
6227 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6229 * win32-i386-low.c (update_debug_registers_callback): Rename
6231 (update_debug_registers): ... this, return void, remove pid_p arg.
6232 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6234 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6236 * inferiors.h (struct process_info): Add constructor, initialize
6238 <syscalls_to_catch>: Change type to std::vector<int>.
6239 * inferiors.c (add_process): Allocate process_info with new.
6240 (remove_process): Free process_info with delete.
6241 * linux-low.c (handle_extended_wait): Adjust.
6242 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6243 * server.c (handle_general_set): Adjust.
6245 2017-11-16 Pedro Alves <palves@redhat.com>
6247 * remote-utils.c (remote_close): Block SIGIO signals instead of
6248 uninstalling the SIGIO handler.
6250 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6252 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6254 2017-11-16 Yao Qi <yao.qi@linaro.org>
6256 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6257 (tic6x_store_gregset): Likewise.
6258 (tic6x_usrregs_info): Move it up.
6260 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6262 * Makefile.in: Update arch rules.
6263 * configure.srv: Explicitly mark arch/ files.
6265 2017-11-13 Andreas Schwab <schwab@suse.de>
6267 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6269 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6271 2017-11-06 Pedro Alves <palves@redhat.com>
6273 * config.in, configure: Regenerate.
6275 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6277 * target.c (struct thread_search): Remove.
6278 (thread_search_callback): Remove.
6279 (prepare_to_access_memory): Use for_each_thread instead of
6280 find_inferior. Inline code from thread_search_callback.
6282 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6284 * server.c (struct visit_actioned_threads_data): Remove.
6285 (visit_actioned_threads): Change prototype to take arguments
6287 (resume): Use find_thread instead of find_inferior.
6289 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6291 * server.c (queue_stop_reply_callback): Change prototype, return
6293 (find_status_pending_thread_callback): Remove.
6294 (handle_status): Replace find_inferior with find_thread and
6297 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6299 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6301 (aarch64_store_gregset): Likewise.
6302 (aarch64_fill_fpregset): Likewise.
6303 (aarch64_store_fpregset): Likewise.
6305 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6307 * gdbthread.h (find_thread, for_each_thread): New functions.
6308 * inferiors.c (thread_of_pid): Remove.
6309 (find_any_thread_of_pid): Use find_thread.
6310 * linux-low.c (num_lwps): Use for_each_thread.
6312 2017-10-17 Yao Qi <yao.qi@linaro.org>
6314 * Makefile.in: Remove one rule.
6315 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6317 2017-10-17 Yao Qi <yao.qi@linaro.org>
6319 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6320 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6322 2017-10-17 Yao Qi <yao.qi@linaro.org>
6324 * configure.srv: Rename arm.o with arch/arm.o.
6326 2017-10-17 Yao Qi <yao.qi@linaro.org>
6328 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6329 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6330 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6331 (arch-i386.o, arch-amd64.o): Remove rules.
6332 (arch/%.o): New rule.
6333 Update POSTCOMPILE and COMPILE.pre.
6334 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6335 * configure: Re-generated.
6336 * configure.srv: Replace arch-i386.o with arch/i386.o.
6337 Replace arch-amd64.o with arch/amd64.o.
6339 2017-10-16 Yao Qi <yao.qi@linaro.org>
6341 * configure: Regenerated.
6343 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6345 * inferiors.h: (struct inferior_list): Remove.
6346 (struct inferior_list_entry); Remove.
6347 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6348 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6349 get_first_inferior): Remove.
6350 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6351 find_inferior_id, find_inferior_in_random): Change signature.
6352 * inferiors.c (all_threads): Change type to
6353 std::list<thread_info *>.
6354 (get_thread): Remove macro.
6355 (find_inferior, find_inferior_id): Change signature, implement
6357 (find_inferior_in_random): Change signature, implement using
6358 find_thread_in_random.
6359 (for_each_inferior, for_each_inferior_with_data): Change
6360 signature, implement using for_each_thread.
6361 (add_inferior_to_list, remove_inferior): Remove.
6362 (add_thread, get_first_thread, thread_of_pid,
6363 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6364 (get_first_inferior, one_inferior_p, clear_inferior_list):
6366 (clear_inferiors, get_thread_process): Update.
6367 * gdbthread.h: Include <list>.
6368 (struct thread_info) <entry>: Remove field.
6370 (all_threads): Change type to std::list<thread_info *>.
6371 (get_first_inferior): Add doc.
6372 (find_thread, for_each_thread, find_thread_in_random): New
6374 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6375 * linux-arm-low.c (update_registers_callback): Update.
6376 * linux-low.c (second_thread_of_pid_p): Update.
6377 (kill_one_lwp_callback, linux_detach_lwp_callback,
6378 delete_lwp_callback, status_pending_p_callback, same_lwp,
6379 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6380 iterate_over_lwps, not_stopped_callback,
6381 resume_stopped_resumed_lwps, count_events_callback,
6382 select_singlestep_lwp_callback, select_event_lwp_callback,
6383 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6384 suspend_and_send_sigstop_callback, wait_for_sigstop,
6385 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6386 lwp_running, linux_set_resume_request, resume_status_pending_p,
6387 need_step_over_p, start_step_over, linux_resume_one_thread,
6388 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6389 reset_lwp_ptrace_options_callback): Update.
6390 * linux-mips-low.c (update_watch_registers_callback): Update.
6391 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6393 (free_register_cache_thread_one): Remove.
6394 (regcache_release): Update.
6395 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6396 handle_qxfer_threads_worker): Update.
6397 (handle_query): Update, use list iterator.
6398 (visit_actioned_threads, handle_pending_status,
6399 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6400 clear_pending_status_callback, set_pending_status_callback,
6401 find_status_pending_thread_callback, handle_status,
6402 process_serial_event): Update.
6403 * target.c (thread_search_callback): Update.
6404 * thread-db.c (thread_db_get_tls_address): Update.
6405 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6407 * win32-i386-low.c (update_debug_registers_callback): Update.
6408 * win32-low.c (delete_thread_info, child_delete_thread,
6409 continue_one_thread, suspend_one_thread,
6410 get_child_debug_event): Adjust.
6412 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6414 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6415 * inferiors.h: Include <list>.
6416 (struct process_info) <entry>: Remove field.
6418 (pid_of): Change macro to function.
6419 (ptid_of, lwpid_of): Remove macro.
6420 (all_processes): Change type to std::list<process_info *>.
6421 (ALL_PROCESSES): Remove macro.
6422 (for_each_process, find_process): New function.
6423 * inferiors.c (all_processes): Change type to
6424 std::list<process_info *>.
6425 (find_thread_process): Adjust.
6426 (add_process): Likewise.
6427 (remove_process): Likewise.
6428 (find_process_pid): Likewise.
6429 (get_first_process): Likewise.
6430 (started_inferior_callback): Remove.
6431 (have_started_inferiors_p): Adjust.
6432 (attached_inferior_callback): Remove.
6433 (have_attached_inferiors_p): Adjust.
6434 * linux-low.c (check_zombie_leaders): Likewise.
6435 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6436 (x86_linux_update_xmltarget): Adjust.
6437 * server.c (handle_query): Likewise.
6438 (gdb_reattached_process): Remove.
6439 (handle_status): Adjust.
6440 (kill_inferior_callback): Likewise.
6441 (detach_or_kill_inferior): Remove.
6442 (print_started_pid): Likewise.
6443 (print_attached_pid): Likewise.
6444 (detach_or_kill_for_exit): Update.
6445 (process_serial_event): Likewise.
6446 * linux-arm-low.c (arm_new_fork): Likewise.
6448 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6450 * dll.h: Include <list>.
6451 (struct dll_info): Add constructor.
6452 <entry>: Remove field.
6453 (all_dlls): Change type to std::list<dll_info>.
6454 * dll.c: Include <algorithm>.
6455 (get_dll): Remove macro.
6456 (all_dlls): Change type to std::list<dll_info *>.
6457 (free_one_dll): Remove.
6458 (match_dll): Likewise.
6459 (loaded_dll): Adjust.
6460 (unloaded_dll): Adjust to all_dlls type change, use
6461 std::find_if. Inline code from match_dll.
6462 (clear_dlls): Adjust to all_dlls type change.
6463 * server.c (emit_dll_description): Remove.
6464 (handle_qxfer_libraries): Adjust to all_dlls type change,
6465 integrate emit_dll_description's functionality.
6467 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6469 * linux-low.h (struct linux_target_ops) <delete_process>: New
6471 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6472 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6473 (struct linux_target_ops): Add delete_process callback.
6474 * linux-arm-low.c (arm_delete_process): New.
6475 (struct linux_target_ops): Add delete_process callback.
6476 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6477 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6478 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6479 * linux-mips-low.c (mips_linux_delete_process): New.
6480 (struct linux_target_ops): Add delete_process callback.
6481 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6482 * linux-s390-low.c (struct linux_target_ops): Likewise.
6483 * linux-sh-low.c (struct linux_target_ops): Likewise.
6484 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6485 * linux-tile-low.c (struct linux_target_ops): Likewise.
6486 * linux-x86-low.c (x86_linux_delete_process): New.
6487 (struct linux_target_ops): Add delete_process callback.
6488 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6490 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6492 * linux-aarch64-low.c (the_low_target): Add thread delete
6494 * linux-arm-low.c (arm_delete_thread): New function.
6495 (the_low_target): Add thread delete callback.
6496 * linux-bfin-low.c (the_low_target): Likewise.
6497 * linux-crisv32-low.c (the_low_target): Likewise.
6498 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6500 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6502 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6503 * linux-mips-low.c (mips_linux_delete_thread): New function.
6504 (the_low_target): Add thread delete callback.
6505 * linux-ppc-low.c (the_low_target): Likewise.
6506 * linux-s390-low.c (the_low_target): Likewise.
6507 * linux-sh-low.c (the_low_target): Likewise.
6508 * linux-tic6x-low.c (the_low_target): Likewise.
6509 * linux-tile-low.c (the_low_target): Likewise.
6510 * linux-x86-low.c (the_low_target): Likewise.
6511 * linux-xtensa-low.c (the_low_target): Likewise.
6513 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6515 * win32-low.c: Include "common-inferior.h".
6517 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6519 * inferiors.c (set_inferior_cwd): New function.
6520 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6521 (handle_query): Inform that QSetWorkingDir is supported.
6522 * win32-low.c (create_process): Pass the inferior's cwd to
6525 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6527 * inferiors.c (current_inferior_cwd): New global variable.
6528 (get_inferior_cwd): New function.
6529 * inferiors.h (struct process_info) <cwd>: New field.
6531 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6533 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6534 (OBS): Add gdb_tilde_expand.o.
6536 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6538 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6539 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6541 2017-09-29 Pedro Alves <palves@redhat.com>
6543 * ax.c (gdb_parse_agent_expr): Constify.
6544 * ax.h (gdb_parse_agent_expr): Constify.
6545 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6547 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6548 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6549 * remote-utils.h (read_ptid): Constify.
6550 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6551 (process_point_options, process_serial_event): Constify.
6552 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6553 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6554 (cmd_qtbuffer): Constify.
6556 2017-09-29 Pedro Alves <palves@redhat.com>
6558 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6561 2017-09-29 Pedro Alves <palves@redhat.com>
6563 * linux-low.c (handle_extended_wait): Pass parent thread instead
6564 of process to thread_db_notice_clone.
6565 * linux-low.h (thread_db_notice_clone): Replace parent process
6566 parameter with parent thread parameter.
6567 * thread-db.c (find_one_thread): Add comment.
6568 (thread_db_notice_clone): Replace parent process parameter with
6569 parent thread parameter. Temporarily switch to the parent thread.
6571 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6573 * gdbthread.h: Include "common-gdbthread.h".
6574 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6575 "if" when validating the ptid.
6576 * remote-utils.c: Include "gdbthread.h".
6577 (prepare_resume_reply): Use "switch_to_thread".
6578 * target.c (done_accessing_memory): Likewise.
6580 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6582 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6583 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6584 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6585 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6586 s390x-gs-linux64-ipa.o to ipa_obj.
6587 * linux-s390-low.c (HWCAP_S390_GS): New define.
6588 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6590 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6591 (s390_arch_setup): Check for guarded-storage support and choose
6593 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6594 init_registers_s390x_gs_linux64.
6595 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6597 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6598 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6600 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6602 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6604 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6606 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6607 (thread_db_thread_handle): Declare.
6608 * linux-low.c (linux_target_ops): Initialize thread_handle.
6609 * server.c (handle_qxfer_threads_worker): Add support for
6611 * target.h (struct target_ops): Add new function pointer,
6613 (target_thread_handle): Define.
6614 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6616 (thread_db_thread_handle): New function.
6618 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6620 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6621 * linux-low.h (thread_db_notice_clone): Declare.
6622 * thread-db.c (thread_db_notice_clone): New function.
6624 2017-09-21 Pedro Alves <palves@redhat.com>
6626 * server.c (gdb_read_memory, handle_status, process_serial_event)
6627 (handle_serial_event, handle_target_event): Adjust to
6628 set_desired_thread prototype change.
6629 * target.c (set_desired_thread): Remove 'use_general' parameter
6631 * target.h (set_desired_thread): Remove 'use_general' parameter.
6633 2017-09-20 Tom Tromey <tom@tromey.com>
6635 * target.c (target_terminal::terminal_state): Define.
6636 (target_terminal::init): Rename from target_terminal_init.
6637 (target_terminal::inferior): Rename from
6638 target_terminal_inferior.
6639 (target_terminal::ours): Rename from target_terminal_ours.
6640 (target_terminal::ours_for_output, target_terminal::info): New.
6642 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6644 * server.c (accumulate_file_name_length): Remove.
6645 (emit_dll_description): Adjust to std::string change.
6646 (handle_qxfer_libraries): Use std::string to hold document.
6648 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6650 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6651 return type of xml_escape_text.
6652 * server.c (emit_dll_description): Likewise.
6654 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6656 * server.c (captured_main): Accept argument for --selftest.
6657 Update run_tests call.
6658 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6659 when registering selftests.
6661 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6663 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6664 instead of "VEC" for "target_desc.reg_defs".
6665 (regcache_cpy): Likewise.
6666 (registers_to_string): Likewise.
6667 (registers_from_string): Likewise.
6668 (find_regno): Likewise.
6669 (supply_regblock): Likewise.
6670 (regcache_raw_read_unsigned): Likewise.
6671 * tdesc.c (init_target_desc): Likewise.
6672 (tdesc_create_reg): Likewise.
6673 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6674 (struct target_desc) <reg_defs>: Convert to "std::vector".
6675 (target_desc): Do not initialize "reg_defs".
6676 (~target_desc): Update code to use "std::vector" instead of "VEC"
6677 for "target_desc.reg_defs".
6678 (operator==): Likewise.
6680 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6682 * inferiors.h (thread_to_gdb_id): Remove.
6683 * inferiors.c (thread_to_gdb_id): Remove.
6684 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6685 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6686 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6688 * nto-low.c (nto_fetch_registers, nto_store_registers,
6689 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6691 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6693 * inferiors.h (gdb_id_to_thread_id): Remove.
6694 * inferiors.c (gdb_id_to_thread_id): Remove.
6695 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6696 removal. Move pid declaration closer to where it's used.
6698 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6700 * server.c (handle_detach): New function.
6701 (process_serial_event): Move code out, call handle_detach.
6703 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6705 * server.c (require_running): Rename to ...
6706 (require_running_or_return): ... this ...
6707 (require_running_or_break): ... and this.
6708 (handle_query, process_serial_event): Adjust.
6710 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6712 * linux-low.c (linux_set_resume_request): Remove unused
6715 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6717 * server.c (first_thread_of): Remove.
6718 (process_serial_event): Replace usage of first_thread_of with
6719 find_any_thread_of_pid.
6720 * tracepoint.c (same_process_p): Remove.
6721 (gdb_agent_about_to_close): Replace usage of same_process_p with
6722 find_any_thread_of_pid.
6723 * linux-x86-low.c (same_process_callback): Remove.
6724 (x86_arch_setup_process_callback): Replace usage of
6725 same_process_callback with find_any_thread_of_pid.
6726 * thread-db.c (any_thread_of): Remove.
6727 (switch_to_process): Replace usage of any_thread_of with
6728 find_any_thread_of_pid.
6729 * inferiors.c (thread_pid_matches_callback): Remove.
6730 (find_thread_process): Adjust to use find_any_thread_of_pid.
6732 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6734 * regcache.c (get_thread_regcache): Guard calls to "memset"
6737 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6739 * linux-low.c (handle_extended_wait): Use
6740 "allocate_target_description" instead of "XNEW".
6741 * linux-x86-low.c (initialize_low_arch): Likewise.
6743 2017-09-05 Yao Qi <yao.qi@linaro.org>
6745 * configure.srv (srv_i386_regobj): Remove.
6746 (srv_amd64_regobj): Remove.
6747 (srv_regobj): Set it to "" for x86 non-linux targets.
6748 * linux-x86-tdesc.c (i386_linux_read_description):
6749 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6750 (init_registers_i386): Remove the declaration.
6751 (tdesc_i386): Remove the declaration.
6752 (lynx_i386_arch_setup): Call i386_create_target_description.
6753 * nto-x86-low.c: Likewise.
6754 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6755 [!__x86_64__]: include arch/i386.h.
6756 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6758 2017-09-05 Yao Qi <yao.qi@linaro.org>
6760 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6761 i386/amd64-XXX-linux from it.
6763 2017-09-05 Yao Qi <yao.qi@linaro.org>
6765 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6767 (ipa_amd64_linux_regobj): Remove.
6768 (ipa_x32_linux_regobj): Remove.
6770 2017-09-05 Yao Qi <yao.qi@linaro.org>
6772 * Makefile.in (arch-amd64.o): New rule.
6773 * configure.srv: Append arch-amd64.o.
6774 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6775 (get_ipa_tdesc): Call amd64_linux_read_description.
6776 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6777 and init_registers_amd64_XXX.
6778 * linux-x86-low.c (x86_linux_read_description): Call
6779 amd64_linux_read_description.
6780 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6781 (initialize_low_arch): Don't call init_registers_x32_XXX and
6782 init_registers_amd64_XXX.
6783 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6784 and tdesc_amd64_XXX.
6785 [__x86_64__] (amd64_tdesc_test): New function.
6786 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6787 and init_registers_amd64_XXX.
6788 * linux-x86-tdesc.c: Include arch/amd64.h.
6789 (xcr0_to_tdesc_idx): New function.
6790 (i386_linux_read_description): New function.
6791 (amd64_get_ipa_tdesc_idx): New function.
6792 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6793 (amd64_get_ipa_tdesc): Declare.
6795 2017-09-05 Yao Qi <yao.qi@linaro.org>
6797 * configure.srv (srv_i386_linux_xmlfiles): Remove
6798 i386/i386-XXX-linux.xml from it.
6800 2017-09-05 Yao Qi <yao.qi@linaro.org>
6802 * configure.srv: Set srv_i386_linux_regobj empty if $development
6804 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6805 initialize_low_tdesc.
6806 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6807 with #if initialize_low_tdesc.
6808 * linux-x86-tdesc-selftest.c: New file.
6809 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6811 2017-09-05 Yao Qi <yao.qi@linaro.org>
6813 * Makefile.in (arch-i386.o): New rule.
6814 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6815 (x86_64-*-linux*): Likewise.
6816 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6817 include arch/i386.h.
6818 (i386_linux_read_description): Remove code and call
6819 i386_create_target_description.
6820 * tdesc.c (allocate_target_description): New function.
6821 * tdesc.h (set_tdesc_architecture): Remove declaration.
6822 (set_tdesc_osabi): Likewise.
6824 2017-09-05 Yao Qi <yao.qi@linaro.org>
6826 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6827 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6828 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6830 * server.c (get_features_xml): Call tdesc_get_features_xml.
6831 * tdesc.c (set_tdesc_architecture): New function.
6832 (set_tdesc_osabi): New function.
6833 (tdesc_get_features_xml): New function.
6834 (tdesc_create_feature): Add an argument.
6835 * tdesc.h (struct target_desc) <features>: New field.
6836 <arch, osabi>: New field.
6837 (~target_desc): xfree features, arch, and osabi.
6838 (target_desc::oerator==): Don't compare .xmltarget.
6839 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6840 (set_tdesc_osabi): Likewise.
6841 (tdesc_get_features_xml): Likewise.
6843 2017-09-05 Yao Qi <yao.qi@linaro.org>
6845 * linux-x86-tdesc.c: Include selftest.h.
6846 (i386_tdesc_test): New function.
6847 (initialize_low_tdesc): Call selftests::register_test.
6848 * tdesc.h: Include regdef.h.
6849 (target_desc): Override operator == and !=.
6851 2017-09-05 Yao Qi <yao.qi@linaro.org>
6853 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6854 (ipa_obj): Likewise.
6855 * linux-i386-ipa.c: Include common/x86-xstate.h
6856 (get_ipa_tdesc): Call i386_linux_read_description.
6857 (initialize_low_tracepoint): Don't call init_registers_XXX
6858 functions, call initialize_low_tdesc instead.
6859 * linux-x86-low.c (x86_linux_read_description): Call
6860 i386_linux_read_description.
6861 (initialize_low_arch): Don't call init_registers_i386_XXX
6862 functions, call initialize_low_tdesc.
6863 * linux-x86-tdesc.c: New file.
6864 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6865 (i386_get_ipa_tdesc_idx): Declare.
6866 (i386_get_ipa_tdesc): Declare.
6867 (initialize_low_tdesc): Declare.
6869 2017-09-05 Yao Qi <yao.qi@linaro.org>
6871 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6874 2017-09-05 Yao Qi <yao.qi@linaro.org>
6876 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6877 * regcache.c (get_thread_regcache): Use VEC_length.
6878 (init_register_cache): Likewise.
6879 (regcache_cpy): Likewise.
6880 (registers_to_string): Iterate reg_defs via VEC_iterate.
6881 (find_regno): Likewise.
6882 (find_register_by_number): Use VEC_index.
6883 (register_size): Call find_register_by_number.
6884 (register_data): Call find_register_by_number.
6885 (supply_regblock): Use VEC_length.
6886 (regcache_raw_read_unsigned): Likewise.
6887 * tdesc.c (init_target_desc): Iterate reg_defs via
6889 (default_description): Update initializer.
6890 (copy_target_description): Don't update field num_registers.
6891 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6892 <num_registers>: Remove.
6894 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6896 * Makefile.in (.SECONDARY): Define target.
6898 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6900 * linux-low.c (linux_wait_1): Adjust.
6901 * server.c (queue_stop_reply_callback): Adjust.
6903 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6905 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6906 QEnvironmentUnset and QEnvironmentReset packets.
6907 (handle_query): Inform remote that QEnvironmentHexEncoded,
6908 QEnvironmentUnset and QEnvironmentReset are supported.
6910 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6912 * inferiors.h (inferior_target_data): Rename to ...
6913 (thread_target_data): ... this.
6914 (inferior_regcache_data): Rename to ...
6915 (thread_regcache_data): ... this.
6916 (set_inferior_regcache_data): Rename to ...
6917 (set_thread_regcache_data): ... this.
6918 * inferiors.c (inferior_target_data): Rename to ...
6919 (thread_target_data): ... this.
6920 (inferior_regcache_data): Rename to ...
6921 (thread_regcache_data): ... this.
6922 (set_inferior_regcache_data): Rename to ...
6923 (set_thread_regcache_data): ... this.
6924 (free_one_thread): Update.
6925 * linux-low.h (get_thread_lwp): Update.
6926 * regcache.c (get_thread_regcache): Update.
6927 (regcache_invalidate_thread): Update.
6928 (free_register_cache_thread): Update.
6929 * win32-i386-low.c (update_debug_registers_callback): Update.
6930 (win32_get_current_dr): Update.
6931 * win32-low.c (thread_rec): Update.
6932 (delete_thread_info): Update.
6933 (continue_one_thread): Update.
6934 (suspend_one_thread): Update.
6936 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6938 * inferiors.c (set_inferior_target_data): Remove.
6939 * inferiors.h (set_inferior_target_data): Remove.
6941 2017-08-18 Yao Qi <yao.qi@linaro.org>
6943 * Makefile.in (OBS): Add selftest.o.
6944 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6945 * configure, config.in: Re-generated.
6946 * server.c: Include common/sefltest.h.
6947 (captured_main): Handle option --selftest.
6949 2017-08-09 Yao Qi <yao.qi@linaro.org>
6951 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6952 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6953 i386-avx-mpx.o and i386-mmx.o.
6954 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6955 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6956 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6957 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6958 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6959 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6960 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6961 i386/amd64-avx-mpx.xml.
6963 2017-08-09 Yao Qi <yao.qi@linaro.org>
6965 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6966 and x32-avx-avx512.o.
6967 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6968 i386/x32-avx-avx512.xml.
6970 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6972 * tracepoint.h (enum class fast_tpoint_collect_result): New
6974 (fast_tracepoint_collecting): Change return type to
6975 fast_tpoint_collect_result.
6976 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6977 * linux-low.h: Include tracepoint.h.
6978 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6979 fast_tpoint_collect_result.
6980 * linux-low.c (handle_tracepoints): Adjust.
6981 (linux_fast_tracepoint_collecting): Change return type to
6982 fast_tpoint_collect_result.
6983 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
6984 linux_wait_1, stuck_in_jump_pad_callback,
6985 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
6986 proceed_one_lwp): Adjust to type change.
6988 2017-07-10 Yao Qi <yao.qi@linaro.org>
6990 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
6992 2017-06-29 Yao Qi <yao.qi@linaro.org>
6994 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
6996 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
6998 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7000 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7002 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7004 * linux-low.c (linux_create_inferior): Adjust code to access the
7005 environment information via 'gdb_environ' class.
7006 * lynx-low.c (lynx_create_inferior): Likewise.
7007 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7008 (get_environ): Return a pointer to 'our_environ'.
7009 (captured_main): Initialize 'our_environ'.
7010 * server.h (get_environ): Adjust prototype.
7011 * spu-low.c (spu_create_inferior): Adjust code to access the
7012 environment information via 'gdb_environ' class.
7014 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7016 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7017 usage of "register" keyword.
7019 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7021 * configure: Re-generate.
7023 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7025 * configure: Re-generate.
7027 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7029 * Makefile.in (COMPILE.pre): Add "-x c++".
7031 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7033 * fork-child.c: Conditionally include <signal.h>.
7035 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7037 * server.c (handle_general_set): Handle new packet
7038 "QStartupWithShell".
7039 (handle_query): Add "QStartupWithShell" to the list of supported
7041 (gdbserver_usage): Add help text explaining the
7042 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7044 (captured_main): Recognize and act upon the presence of the new
7047 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7048 Pedro Alves <palves@redhat.com>
7050 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7051 * configure: Regenerate.
7052 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7054 (i[34567]86-*-lynxos*): Likewise.
7055 (spu*-*-*): Likewise.
7056 * fork-child.c: New file.
7057 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7059 (linux_ptrace_fun): New function.
7060 (linux_create_inferior): Adjust function prototype to reflect
7061 change on "target.h". Adjust function code to use
7063 (linux_request_interrupt): Delete "signal_pid".
7064 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7065 (lynx_ptrace_fun): New function.
7066 (lynx_create_inferior): Adjust function prototype to reflect
7067 change on "target.h". Adjust function code to use
7069 * nto-low.c (nto_create_inferior): Adjust function prototype and
7070 code to reflect change on "target.h". Update comments.
7071 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7072 "common-terminal.h" and "environ.h".
7073 (terminal_fd): Moved to fork-child.c.
7074 (old_foreground_pgrp): Likewise.
7075 (restore_old_foreground_pgrp): Likewise.
7076 (last_status): Make it global.
7077 (last_ptid): Likewise.
7078 (our_environ): New variable.
7079 (startup_with_shell): Likewise.
7080 (program_name): Likewise.
7081 (program_argv): Rename to...
7082 (program_args): ...this.
7083 (wrapper_argv): New variable.
7084 (start_inferior): Delete function.
7085 (get_exec_wrapper): New function.
7086 (get_exec_file): Likewise.
7087 (get_environ): Likewise.
7088 (prefork_hook): Likewise.
7089 (post_fork_inferior): Likewise.
7090 (postfork_hook): Likewise.
7091 (postfork_child_hook): Likewise.
7092 (handle_v_run): Update code to deal with arguments coming from the
7093 remote host. Update calls from "start_inferior" to
7095 (captured_main): Likewise. Initialize environment variable. Call
7097 * server.h (post_fork_inferior): New prototype.
7098 (get_environ): Likewise.
7099 (last_status): Declare.
7100 (last_ptid): Likewise.
7101 (signal_pid): Likewise.
7102 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7103 (spu_ptrace_fun): New function.
7104 (spu_create_inferior): Adjust function prototype to reflect change
7105 on "target.h". Adjust function code to use "fork_inferior".
7106 * target.c (target_terminal_init): New function.
7107 (target_terminal_inferior): Likewise.
7108 (target_terminal_ours): Likewise.
7109 * target.h: Include <vector>.
7110 (struct target_ops) <create_inferior>: Update prototype.
7111 (create_inferior): Update macro.
7112 * utils.c (gdb_flush_out_err): New function.
7113 * win32-low.c (win32_create_inferior): Adjust function prototype
7114 and code to reflect change on "target.h".
7116 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7118 * inferiors.c (switch_to_thread): New function.
7120 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7122 * Makefile.in (SFILE): Add "common/job-control.c".
7123 (OBS): Add "job-control.o".
7125 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7127 * Makefile: Remove "@host_makefile_frag@".
7129 2017-05-05 Pedro Alves <palves@redhat.com>
7131 * configure: Regenerate.
7133 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7135 * configure: Regenerate.
7137 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7139 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7140 software_single_step change of return type to
7141 std::vector<CORE_ADDR>.
7142 * linux-low.c (install_software_single_step_breakpoints):
7144 * linux-low.h (install_software_single_step_breakpoints):
7147 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7149 * remote-utils.c: Include "gdb_termios.h" instead of
7151 * terminal.h: Delete file.
7153 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7155 * server.c: Include <vector>.
7156 <program_argv, wrapper_argv>: Convert to std::vector.
7157 (start_inferior): Rewrite function to use C++.
7158 (handle_v_run): Likewise. Update code that calculates the argv
7159 based on the vRun packet; use C++.
7160 (captured_main): Likewise.
7162 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7164 * server.c (handle_v_cont): Initialize thread_resume::thread
7167 2017-04-05 Pedro Alves <palves@redhat.com>
7169 * configure: Regenerate.
7171 2017-04-05 Pedro Alves <palves@redhat.com>
7173 * gdbreplay.c (sync_error): Constify.
7174 * linux-x86-low.c (push_opcode): Constify.
7176 2017-04-05 Pedro Alves <palves@redhat.com>
7178 * win32-low.c (get_child_debug_event)
7179 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7180 Report TARGET_WAITKIND_SPURIOUS instead.
7182 2017-04-05 Pedro Alves <palves@redhat.com>
7184 * remote-utils.c (remote_prepare, remote_open): Constify.
7185 * remote-utils.h (remote_prepare, remote_open): Constify.
7186 * server.c (captured_main): Constify 'port' handling.
7188 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7190 * Makefile.in (clean): Clear .deps.
7192 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7194 * .gitignore: Remove generated files, replace with wildcard.
7195 * (clean): Replace removal of generated files with wildcard.
7196 (version.c): Replace with...
7197 (version-generated.c): ...this.
7198 (xml-builtin.c): Replace with...
7199 (xml-builtin-generated.c): ...this.
7200 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7201 (%.c: *regformats*): Replace with...
7202 (%-generated.c: *regformats*): ...this.
7204 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7206 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7207 (xtensa_fill_gregset): Call collect_register_by_name for
7209 (xtensa_store_gregset): Call supply_register_by_name for
7212 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7214 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7215 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7216 (xtensa_store_gregset): Call supply_register for all registers in
7217 a0_regnum..a0_regnum + C0_NREGS range.
7219 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7221 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7222 (ax-ipa.o: ax.c): Remove.
7223 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7224 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7225 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7226 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7227 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7229 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7231 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7232 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7233 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7234 (errors-ipa.o: ../common/errors.c): Remove.
7235 (format-ipa.o: ../common/format.c): Remove.
7236 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7238 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7240 * Makefile.in (%-ipa.o: %.c): New rule.
7241 (tracepoint-ipa.o: tracepoint.c): Remove.
7242 (utils-ipa.o: utils.c): Remove.
7243 (remote-utils-ipa.o: remote-utils.c): Remove.
7244 (regcache-ipa.o: regcache.c): Remove.
7245 (i386-linux-ipa.o: i386-linux.c): Remove.
7246 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7247 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7248 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7249 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7250 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7251 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7252 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7253 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7254 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7255 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7256 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7257 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7258 (aarch64-ipa.o: aarch64.c): Remove.
7259 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7260 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7261 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7262 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7263 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7264 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7265 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7266 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7267 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7268 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7269 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7270 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7271 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7272 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7273 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7274 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7275 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7276 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7277 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7278 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7279 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7280 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7281 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7282 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7283 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7284 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7285 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7286 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7287 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7288 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7289 (tdesc-ipa.o: tdesc.c): Remove.
7290 (x32-linux-ipa.o: x32-linux.c): Remove.
7291 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7292 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7294 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7296 * Makefile.in (%.o: ../arch/%.c): New rule.
7297 (arm.o: ../arch/arm.c): Remove.
7298 (arm-linux.o: ../arch/arm-linux.c): Remove.
7299 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7300 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7302 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7304 * Makefile.in (%.o: ../nat/%.c): New rule.
7305 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7306 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7307 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7308 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7309 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7310 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7311 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7312 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7313 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7314 (linux-personality.o: ../nat/linux-personality.c): Remove.
7315 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7316 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7317 (x86-linux.o: ../nat/x86-linux.c): Remove.
7318 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7319 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7321 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7323 * Makefile.in (%.o: ../common/%.c): New rule.
7324 (signals.o: ../common/signals.c): Remove.
7325 (print-utils.o: ../common/print-utils.c): Remove.
7326 (rsp-low.o: ../common/rsp-low.c): Remove.
7327 (common-utils.o: ../common/common-utils.c): Remove.
7328 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7329 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7330 (vec.o: ../common/vec.c): Remove.
7331 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7332 (xml-utils.o: ../common/xml-utils.c): Remove.
7333 (ptid.o: ../common/ptid.c): Remove.
7334 (buffer.o: ../common/buffer.c): Remove.
7335 (format.o: ../common/format.c): Remove.
7336 (filestuff.o: ../common/filestuff.c): Remove.
7337 (agent.o: ../common/agent.c): Remove.
7338 (errors.o: ../common/errors.c): Remove.
7339 (environ.o: ../common/environ.c): Remove.
7340 (common-debug.o: ../common/common-debug.c): Remove.
7341 (cleanups.o: ../common/cleanups.c): Remove.
7342 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7343 (fileio.o: ../common/fileio.c): Remove.
7344 (common-regcache.o: ../common/common-regcache.c): Remove.
7345 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7346 (new-op.o: ../common/new-op.c): Remove.
7347 (btrace-common.o: ../common/btrace-common.c): Remove.
7349 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7351 * Makefile.in (%.o: ../target/%.c): New rule.
7352 (waitstatus.o: ../target/waitstatus.c): Remove.
7354 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7357 (%.c: ../regformats/%.dat,
7358 (%.c: ../regformats/arm/%.dat,
7359 (%.c: ../regformats/i386/%.dat,
7360 (%.c: ../regformats/rs6000/%.dat): New rules.
7361 (aarch64.c): Remove.
7362 (reg-arm.c): Remove.
7363 (arm-with-iwmmxt.c): Remove.
7364 (arm-with-vfpv2.c): Remove.
7365 (arm-with-vfpv3.c): Remove.
7366 (arm-with-neon.c): Remove.
7367 (reg-bfin.c): Remove.
7368 (reg-cris.c): Remove.
7369 (reg-crisv32.c): Remove.
7371 (i386-linux.c): Remove.
7372 (i386-avx.c): Remove.
7373 (i386-avx-linux.c): Remove.
7374 (i386-avx-avx512.c): Remove.
7375 (i386-avx-avx512-linux.c): Remove.
7376 (i386-mpx.c): Remove.
7377 (i386-mpx-linux.c): Remove.
7378 (i386-avx-mpx-avx512-pku.c): Remove.
7379 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7380 (i386-avx-mpx.c): Remove.
7381 (i386-avx-mpx-linux.c): Remove.
7382 (i386-mmx.c): Remove.
7383 (i386-mmx-linux.c): Remove.
7384 (reg-ia64.c): Remove.
7385 (reg-m32r.c): Remove.
7386 (reg-m68k.c): Remove.
7388 (mips-linux.c): Remove.
7389 (mips-dsp-linux.c): Remove.
7390 (mips64-linux.c): Remove.
7391 (mips64-dsp-linux.c): Remove.
7392 (nios2-linux.c): Remove.
7393 (powerpc-32.c): Remove.
7394 (powerpc-32l.c): Remove.
7395 (powerpc-altivec32l.c): Remove.
7396 (powerpc-cell32l.c): Remove.
7397 (powerpc-vsx32l.c): Remove.
7398 (powerpc-isa205-32l.c): Remove.
7399 (powerpc-isa205-altivec32l.c): Remove.
7400 (powerpc-isa205-vsx32l.c): Remove.
7401 (powerpc-e500l.c): Remove.
7402 (powerpc-64l.c): Remove.
7403 (powerpc-altivec64l.c): Remove.
7404 (powerpc-cell64l.c): Remove.
7405 (powerpc-vsx64l.c): Remove.
7406 (powerpc-isa205-64l.c): Remove.
7407 (powerpc-isa205-altivec64l.c): Remove.
7408 (powerpc-isa205-vsx64l.c): Remove.
7409 (s390-linux32.c): Remove.
7410 (s390-linux32v1.c): Remove.
7411 (s390-linux32v2.c): Remove.
7412 (s390-linux64.c): Remove.
7413 (s390-linux64v1.c): Remove.
7414 (s390-linux64v2.c): Remove.
7415 (s390-te-linux64.c): Remove.
7416 (s390-vx-linux64.c): Remove.
7417 (s390-tevx-linux64.c): Remove.
7418 (s390x-linux64.c): Remove.
7419 (s390x-linux64v1.c): Remove.
7420 (s390x-linux64v2.c): Remove.
7421 (s390x-te-linux64.c): Remove.
7422 (s390x-vx-linux64.c): Remove.
7423 (s390x-tevx-linux64.c): Remove.
7424 (tic6x-c64xp-linux.c): Remove.
7425 (tic6x-c64x-linux.c): Remove.
7426 (tic6x-c62x-linux.c): Remove.
7428 (reg-sparc64.c): Remove.
7429 (reg-spu.c): Remove.
7431 (amd64-linux.c): Remove.
7432 (amd64-avx.c): Remove.
7433 (amd64-avx-linux.c): Remove.
7434 (amd64-avx-avx512.c): Remove.
7435 (amd64-avx-avx512-linux.c): Remove.
7436 (amd64-mpx.c): Remove.
7437 (amd64-mpx-linux.c): Remove.
7438 (amd64-avx-mpx-avx512-pku.c): Remove.
7439 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7440 (amd64-avx-mpx.c): Remove.
7441 (amd64-avx-mpx-linux.c): Remove.
7443 (x32-linux.c): Remove.
7444 (x32-avx.c): Remove.
7445 (x32-avx-linux.c): Remove.
7446 (x32-avx-avx512.c): Remove.
7447 (x32-avx-avx512-linux.c): Remove.
7448 (reg-xtensa.c): Remove.
7449 (reg-tilegx.c): Remove.
7450 (reg-tilegx32.c): Remove.
7452 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7454 * Makefile.in (SFILES): Add "common/environ.c".
7455 (OBJS): Add "common/environ.h".
7457 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7459 * configure.ac: Check if the fs_base and gs_base members of
7460 `struct user_regs_struct' exist.
7461 * config.in: Regenerated.
7462 * configure: Likewise.
7464 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7466 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7468 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7469 (get_next_pcs_syscall_next_pc): Likewise.
7471 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7473 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7474 * nto-x86-low.c: Likewise.
7476 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7478 * Makefile.in: Include disable-implicit-rules.mk.
7480 2016-11-23 Pedro Alves <palves@redhat.com>
7482 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7483 (debug_vprintf): Use std::chrono::steady_clock instead of
7484 gettimeofday. Use '.' instead of ':'.
7485 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7486 (get_timestamp): Use std::chrono::steady_clock instead of
7489 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7491 * Makefile.in: Fix whitespace formatting.
7493 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7495 * Makefile.in (SFILES, OBS): Flatten list and order
7498 2016-11-23 Pedro Alves <palves@redhat.com>
7500 * event-loop.c (handle_file_event): Use warning.
7501 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7502 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7505 2016-11-23 Pedro Alves <palves@redhat.com>
7507 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7509 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7510 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7511 debug_printf and debug_flush for debug output.
7512 * server.c (handle_general_set): Likewise.
7513 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7516 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7518 * Makefile.in (.c.o): Replace rule with ...
7519 (%.o: %.c): ... this one.
7521 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7523 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7524 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7526 * configure.ac: Remove checks for the make program.
7527 * configure: Re-generate.
7529 2016-10-28 Pedro Alves <palves@redhat.com>
7531 * Makefile.in (CXX_DIALECT): Get from configure.
7532 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7533 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7534 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7535 * config.in: Regenerate.
7536 * configure: Regenerate.
7538 2016-10-27 Yao Qi <yao.qi@linaro.org>
7540 * linux-low.c (linux_supports_range_stepping): Return true if
7541 can_software_single_step return true.
7543 2016-10-27 Yao Qi <yao.qi@linaro.org>
7545 * inferiors.c (find_inferior_in_random): New function.
7546 * inferiors.h (find_inferior_in_random): Declare.
7547 * linux-low.c (linux_wait_for_event_filtered): Call
7548 find_inferior_in_random instead of find_inferior.
7550 2016-10-27 Yao Qi <yao.qi@linaro.org>
7552 * linux-low.c (linux_wait_1): If single-step breakpoints are
7553 inserted, remove them.
7555 2016-10-26 Pedro Alves <palves@redhat.com>
7557 * linux-low.c (handle_extended_wait): Link parent/child fork
7559 (linux_wait_1): Unlink them.
7560 (linux_set_resume_request): Ignore resume requests for
7561 already-resumed and unhandled fork child threads.
7562 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7563 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7565 (handle_v_requests) <vCont>: Don't call require_running.
7566 * server.h (in_queued_stop_replies): New declaration.
7568 2016-10-24 Yao Qi <yao.qi@linaro.org>
7571 * linux-aarch64-low.c (append_insns): Cast the return value to
7574 2016-10-10 Yao Qi <yao.qi@linaro.org>
7576 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7578 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7580 * target.c (target_supports_multi_process): New function, moved
7582 * target.h (target_supports_multi_process): ... here. Remove
7585 2016-10-05 Tom Tromey <tom@tromey.com>
7588 * tracepoint.c (handle_tracepoint_bkpts): Check
7589 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7591 2016-10-05 Yao Qi <yao.qi@linaro.org>
7593 * configure.srv: Update the path of arm-*.xml files.
7595 2016-10-05 Terry Guo <terry.guo@arm.com>
7596 Yao Qi <yao.qi@linaro.org>
7598 * Makefile.in: Adjust the path of rules.
7599 * configure.srv: Update the path of xml files.
7600 * regformats/arm-with-iwmmxt.dat: Regenerated.
7601 * regformats/arm-with-neon.dat: Likewise.
7602 * regformats/arm-with-vfpv2.dat: Likewise.
7603 * regformats/arm-with-vfpv3.dat Likewise.
7605 2016-09-30 Yao Qi <yao.qi@linaro.org>
7608 * target.c (target_stop_and_wait): Don't call
7609 target_continue_no_signal, use resume_stop instead.
7611 2016-09-26 Yao Qi <yao.qi@linaro.org>
7613 * linux-low.c (linux_wait_1): Call debug_exit.
7615 2016-09-23 Pedro Alves <palves@redhat.com>
7617 * Makefile.in (SFILES): Add common/new-op.c.
7618 (OBS): Add common/new-op.o.
7619 (new-op.o): New rule.
7621 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7623 * .gitinore: Ignore more files.
7625 2016-09-21 Yao Qi <yao.qi@linaro.org>
7627 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7630 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7632 * server.c (start_inferior): Call target_mourn_inferior instead of
7633 mourn_inferior; pass ptid_t argument to it.
7635 (handle_target_event): Likewise.
7636 * target.c (target_mourn_inferior): New function.
7637 * target.h (mourn_inferior): Delete macro.
7639 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7641 * linux-low.c (lwp_is_stepping): New function.
7643 2016-09-06 Carl Love <cel@us.ibm.com>
7645 * server.c (start_inferior): Fixed comment, requested comment change
7646 didn't get updated correctly. Removed reference to ptrace () call as
7647 it is only true on Linux systems.
7649 2016-09-06 Carl Love <cel@us.ibm.com>
7651 * server.c (start_inferior): Do not call
7652 function target_post_create_inferior () if the
7653 inferior process has already exited.
7655 2016-09-05 Pedro Alves <palves@redhat.com>
7657 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7658 (COMPILE.pre, CC_LD): Use CXX directly.
7659 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7660 * acinclude.m4: Don't include build-with-cxx.m4.
7661 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7662 * configure: Regenerate.
7664 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7667 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7668 call writing data to own_buf.
7670 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7672 * target.c (mywait): Call target_wait instead of
7674 (target_wait): New function.
7676 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7678 * server.c (start_inferior): New variable 'ptid'. Replace calls
7679 to the_target->resume by target_continue{,_no_signal}, depending
7681 * target.c (target_stop_and_wait): Call target_continue_no_signal
7682 instead of the_target->resume.
7683 (target_continue): New function.
7685 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7687 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7689 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7692 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7694 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7695 * linux-arm-low.c (ps_get_thread_area): Likewise.
7696 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7697 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7698 * linux-mips-low.c (ps_get_thread_area): Likewise.
7699 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7700 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7701 * linux-x86-low.c (ps_get_thread_area): Likewise.
7702 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7704 2016-08-19 Pedro Alves <palves@redhat.com>
7706 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7708 2016-08-19 Pedro Alves <palves@redhat.com>
7710 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7711 comment. Use memcpy instead of casting through unsigned long.
7713 2016-08-19 Pedro Alves <palves@redhat.com>
7715 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7716 allocating around 0x80000000.
7718 2016-08-19 Pedro Alves <palves@redhat.com>
7721 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7722 (x32-avx512-linux-ipa.o): New rules.
7723 * configure.ac (x86_64-*-linux*): New x32 check.
7724 * configure.srv (ipa_x32_linux_regobj): New.
7725 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7726 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7728 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7730 * configure: Regenerate.
7732 2016-08-09 Pedro Alves <palves@redhat.com>
7735 * Makefile.in (OBS): Add signals-state-save-restore.o.
7736 (signals-state-save-restore.o): New rule.
7737 * config.in: Regenerate.
7738 * configure: Regenerate.
7739 * linux-low.c: Include "signals-state-save-restore.h".
7740 (linux_create_inferior): Call
7741 restore_original_signals_state.
7742 * server.c: Include "dispositions-save-restore.h".
7743 (captured_main): Call save_original_signals_state.
7745 2016-08-05 Pedro Alves <palves@redhat.com>
7747 * configure: Regenerate.
7749 2016-08-04 Yao Qi <yao.qi@linaro.org>
7751 * linux-low.c (regsets_fetch_inferior_registers): Check
7752 errno is ESRCH or not.
7754 2016-08-02 Yao Qi <yao.qi@linaro.org>
7756 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7757 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7758 (thread_db_load_search): Update.
7759 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7760 td_ta_set_event and td_ta_event_getmsg.
7762 2016-07-26 Pedro Alves <palves@redhat.com>
7765 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7766 of unsigned long for 64-bit registers and use uint32_t instead of
7767 unsigned int for 32-bit registers.
7769 2016-07-26 Pedro Alves <palves@redhat.com>
7771 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7774 2016-07-21 Tom Tromey <tom@tromey.com>
7776 * configure: Rebuild.
7778 2016-07-21 Yao Qi <yao.qi@linaro.org>
7780 * mem-break.c (find_gdb_breakpoint): Cast bp to
7781 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7783 2016-07-21 Yao Qi <yao.qi@linaro.org>
7785 * server.c (handle_v_requests): Support s and S actions
7786 if target_supports_software_single_step return true.
7788 2016-07-21 Yao Qi <yao.qi@linaro.org>
7790 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7791 is resume_step, call maybe_hw_step.
7792 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7794 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7796 (proceed_one_lwp): If resume request is resume_step, install
7797 reinsert breakpoints and call maybe_hw_step.
7799 2016-07-21 Yao Qi <yao.qi@linaro.org>
7801 * linux-low.c (proceed_one_lwp): Declare.
7802 (linux_resume_one_thread): Remove local variable 'step'.
7803 Lift code enqueue signal. Call proceed_one_lwp instead of
7804 linux_resume_one_lwp.
7806 2016-07-21 Yao Qi <yao.qi@linaro.org>
7808 * linux-low.c (linux_resume_one_thread): Call
7809 enqueue_pending_signal.
7811 2016-07-21 Yao Qi <yao.qi@linaro.org>
7813 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7814 * inferiors.c (do_restore_current_thread_cleanup): New function.
7815 (make_cleanup_restore_current_thread): Likewise.
7816 * linux-low.c (install_software_single_step_breakpoints): Call
7817 make_cleanup_restore_current_thread. Switch current_thread to
7820 2016-07-21 Yao Qi <yao.qi@linaro.org>
7822 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7823 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7824 (clone_one_breakpoint): Likewise.
7825 (delete_reinsert_breakpoints): Change parameter to thread.
7827 (has_reinsert_breakpoints): Likewise.
7828 (uninsert_reinsert_breakpoints): Likewise.
7829 (reinsert_reinsert_breakpoints): Likewise.
7830 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7831 (delete_reinsert_breakpoints): Likewise.
7832 (reinsert_reinsert_breakpoints): Likewise.
7833 (uninsert_reinsert_breakpoints): Likewise.
7834 (has_reinsert_breakpoints): Likewise.
7836 2016-07-21 Yao Qi <yao.qi@linaro.org>
7838 * inferiors.c (get_thread_process): Make parameter const.
7839 * inferiors.h (get_thread_process): Update declaration.
7840 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7841 Add new parameters child_thread and parent_thread. Callers
7843 * mem-break.h (clone_all_breakpoints): Update declaration.
7845 2016-07-21 Yao Qi <yao.qi@linaro.org>
7847 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7848 <command_list, handler>: Remove.
7849 (struct gdb_breakpoint): New.
7850 (struct other_breakpoint): New.
7851 (struct reinsert_breakpoint): New.
7852 (is_gdb_breakpoint): New function.
7853 (any_persistent_commands): Update command_list if
7854 is_gdb_breakpoint returns true.
7855 (set_breakpoint): Create breakpoints according to their types.
7856 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7857 (set_gdb_breakpoint_1): Likewise.
7858 (set_gdb_breakpoint): Likewise.
7859 (clear_breakpoint_conditions): Change parameter type to
7860 'struct gdb_breakpoint *'.
7861 (clear_breakpoint_commands): Likewise.
7862 (clear_breakpoint_conditions_and_commands): Likewise.
7863 (add_condition_to_breakpoint): Likewise.
7864 (add_breakpoint_condition): Likewise.
7865 (add_commands_to_breakpoint): Likewise.
7866 (check_breakpoints): Check other_breakpoint.
7867 (clone_one_breakpoint): Clone breakpopint according to its type.
7868 * mem-break.h (struct gdb_breakpoint): Declare.
7869 (set_gdb_breakpoint): Update declaration.
7870 (clear_breakpoint_conditions_and_commands): Likewise.
7871 (add_breakpoint_condition): Likewise.
7872 (add_breakpoint_commands): Likewise.
7873 * server.c (process_point_options): Change parameter type to
7874 'struct gdb_breakpoint *'.
7876 2016-07-21 Yao Qi <yao.qi@linaro.org>
7878 * mem-break.c (set_breakpoint_at): Rename it to ...
7879 (set_breakpoint_type_at): ... it.
7880 (set_breakpoint_at): Call set_breakpoint_type_at.
7881 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7882 * mem-break.h (set_breakpoint_at): Update comments.
7884 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7886 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7888 (nios2_store_gregset): Likewise.
7890 2016-07-01 Pedro Alves <palves@redhat.com>
7891 Antoine Tremblay <antoine.tremblay@ericsson.com>
7893 * linux-low.c: Change interface to take the target lwp_info
7894 pointer directly and return void. Handle detaching from a zombie
7896 (linux_detach_lwp_callback): New function.
7897 (linux_detach): Detach from the leader thread after detaching from
7900 2016-06-28 Yao Qi <yao.qi@linaro.org>
7902 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7903 for variable new_offset.
7904 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7905 (aarch64_ftrace_insn_reloc_cb): Likewise.
7906 (aarch64_ftrace_insn_reloc_tb): Likewise.
7907 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7908 PRIx64 instead of PRIx32.
7910 2016-06-28 Yao Qi <yao.qi@linaro.org>
7912 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7913 (the_low_target): Install arm_get_syscall_trapinfo.
7915 2016-06-28 Yao Qi <yao.qi@linaro.org>
7917 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7919 (the_low_target): Install aarch64_get_syscall_trapinfo.
7921 2016-06-28 Yao Qi <yao.qi@linaro.org>
7923 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7925 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7926 Remove parameter sysno.
7927 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7930 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7932 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7933 (s390_emit_ne_goto): Likewise.
7934 (s390_emit_lt_goto): Likewise.
7935 (s390_emit_le_goto): Likewise.
7936 (s390_emit_gt_goto): Likewise.
7937 (s390_emit_ge_goto): Likewise.
7938 (s390x_emit_eq_goto): Likewise.
7939 (s390x_emit_ne_goto): Likewise.
7940 (s390x_emit_lt_goto): Likewise.
7941 (s390x_emit_le_goto): Likewise.
7942 (s390x_emit_gt_goto): Likewise.
7943 (s390x_emit_ge_goto): Likewise.
7944 (s390_emit_ops_impl): Mark variable static.
7945 (s390x_emit_ops): Likewise.
7947 2016-06-17 Yao Qi <yao.qi@linaro.org>
7949 * linux-low.c (handle_extended_wait): Call
7950 uninsert_reinsert_breakpoints for the parent process. Remove
7951 reinsert breakpoints from the child process. Reinsert them to
7952 the parent process when vfork is done.
7953 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7954 (reinsert_reinsert_breakpoints): New function.
7955 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7956 (reinsert_reinsert_breakpoints): Declare.
7958 2016-06-17 Yao Qi <yao.qi@linaro.org>
7960 * linux-low.c (handle_extended_wait): If the parent is doing
7961 step-over, remove the reinsert breakpoints from the forked child.
7963 2016-06-17 Yao Qi <yao.qi@linaro.org>
7965 * linux-low.c (unsuspend_all_lwps): Declare.
7966 (linux_low_filter_event): If thread exited, call finish_step_over.
7967 If step-over is finished, unsuspend other threads.
7969 2016-06-17 Yao Qi <yao.qi@linaro.org>
7971 * linux-low.c (linux_resume_one_lwp_throw): Assert
7972 has_reinsert_breakpoints returns false.
7973 * mem-break.c (delete_disabled_breakpoints): Assert
7974 bp type isn't reinsert_breakpoint.
7976 2016-06-17 Yao Qi <yao.qi@linaro.org>
7978 * linux-low.c (maybe_hw_step): New function.
7979 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7980 (finish_step_over): Switch current_thread to lwp temporarily,
7981 and assert has_reinsert_breakpoints returns true.
7982 (proceed_one_lwp): Call maybe_hw_step.
7983 * mem-break.c (has_reinsert_breakpoints): New function.
7984 * mem-break.h (has_reinsert_breakpoints): Declare.
7986 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
7988 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
7990 2016-05-17 Yao Qi <yao.qi@linaro.org>
7992 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
7993 instead of find_inferior.
7995 2016-05-05 Yao Qi <yao.qi@linaro.org>
7997 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
7998 Initialize res to zero.
8000 2016-05-05 Yao Qi <yao.qi@linaro.org>
8002 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8005 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8007 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8008 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8009 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8011 2016-04-28 Par Olsson <par.olsson@windriver.com>
8012 Simon Marchi <simon.marchi@ericsson.com>
8014 * tracepoint.c (write_inferior_int8): New function.
8015 (cmd_qtenable_disable): Write enable flag using
8016 write_inferior_int8.
8018 2016-04-25 Yao Qi <yao.qi@linaro.org>
8020 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8021 (need_step_over_p): Return zero if the LWP has pending signals
8022 can be delivered on software single step target.
8024 2016-04-25 Yao Qi <yao.qi@linaro.org>
8026 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8027 return instead of error.
8029 2016-04-22 Yao Qi <yao.qi@linaro.org>
8031 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8034 2016-04-22 Yao Qi <yao.qi@linaro.org>
8036 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8037 signal when stepping over breakpoint with software single
8040 2016-04-21 Pedro Alves <palves@redhat.com>
8042 * linux-s390-low.c (s390_collect_ptrace_register)
8043 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8045 (s390_check_regset): Use void * instead of gdb_byte *.
8047 2016-04-20 Pedro Alves <palves@redhat.com>
8049 * configure: Renegerate.
8051 2016-04-20 Yao Qi <yao.qi@linaro.org>
8053 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8054 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8056 (arm_store_gregset): Likewise.
8058 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8060 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8061 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8062 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8063 (amd64-avx-mpx-linux.c): New rules.
8064 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8065 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8066 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8067 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8068 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8069 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8070 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8071 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8072 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8073 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8074 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8075 * linux-x86-low.c (x86_linux_read_description): Add case for
8076 X86_XSTATE_AVX_MPX_MASK.
8077 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8078 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8079 init_registers_i386_avx_mpx_linux.
8080 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8081 (initialize_low_tracepoint): Call
8082 init_registers_i386_avx_mpx_linux.
8083 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8084 (initialize_low_tracepoint): Call
8085 init_registers_amd64_avx_mpx_linux.
8086 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8087 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8088 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8091 2016-04-18 Pedro Alves <palves@redhat.com>
8093 * configure: Regenerate.
8095 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8097 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8098 (aarch64_emit_sub): Likewise.
8100 2016-04-12 Pedro Alves <palves@redhat.com>
8102 * utils.c (prepare_to_throw_exception): Delete.
8104 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8106 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8108 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8110 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8112 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8114 * linux-aarch64-ipa.c: Add <elf.h> include.
8115 * linux-ppc-ipa.c: Add <elf.h> include.
8116 * linux-s390-ipa.c: Add <elf.h> include.
8118 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8120 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8121 (get_raw_reg_ptr): Likewise.
8122 (get_trace_state_variable_value_ptr): Likewise.
8123 (set_trace_state_variable_value_ptr): Likewise.
8124 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8127 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8128 Marcin Kościelnicki <koriakin@0x04.net>
8131 * linux-ppc-low.c (emit_insns): New function.
8132 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8133 (ppc_emit_prologue): New function.
8134 (ppc_emit_epilogue): New function.
8135 (ppc_emit_add): New function.
8136 (ppc_emit_sub): New function.
8137 (ppc_emit_mul): New function.
8138 (ppc_emit_lsh): New function.
8139 (ppc_emit_rsh_signed): New function.
8140 (ppc_emit_rsh_unsigned): New function.
8141 (ppc_emit_ext): New function.
8142 (ppc_emit_zero_ext): New function.
8143 (ppc_emit_log_not): New function.
8144 (ppc_emit_bit_and): New function.
8145 (ppc_emit_bit_or): New function.
8146 (ppc_emit_bit_xor): New function.
8147 (ppc_emit_bit_not): New function.
8148 (ppc_emit_equal): New function.
8149 (ppc_emit_less_signed): New function.
8150 (ppc_emit_less_unsigned): New function.
8151 (ppc_emit_ref): New function.
8152 (ppc_emit_const): New function.
8153 (ppc_emit_reg): New function.
8154 (ppc_emit_pop): New function.
8155 (ppc_emit_stack_flush): New function.
8156 (ppc_emit_swap): New function.
8157 (ppc_emit_stack_adjust): New function.
8158 (ppc_emit_call): New function.
8159 (ppc_emit_int_call_1): New function.
8160 (ppc_emit_void_call_2): New function.
8161 (ppc_emit_if_goto): New function.
8162 (ppc_emit_goto): New function.
8163 (ppc_emit_eq_goto): New function.
8164 (ppc_emit_ne_goto): New function.
8165 (ppc_emit_lt_goto): New function.
8166 (ppc_emit_le_goto): New function.
8167 (ppc_emit_gt_goto): New function.
8168 (ppc_emit_ge_goto): New function.
8169 (ppc_write_goto_address): New function.
8170 (ppc_emit_ops_impl): New static variable.
8171 (ppc64v1_emit_prologue): New function.
8172 (ppc64v2_emit_prologue): New function.
8173 (ppc64_emit_epilogue): New function.
8174 (ppc64_emit_add): New function.
8175 (ppc64_emit_sub): New function.
8176 (ppc64_emit_mul): New function.
8177 (ppc64_emit_lsh): New function.
8178 (ppc64_emit_rsh_signed): New function.
8179 (ppc64_emit_rsh_unsigned): New function.
8180 (ppc64_emit_ext): New function.
8181 (ppc64_emit_zero_ext): New function.
8182 (ppc64_emit_log_not): New function.
8183 (ppc64_emit_bit_and): New function.
8184 (ppc64_emit_bit_or): New function.
8185 (ppc64_emit_bit_xor): New function.
8186 (ppc64_emit_bit_not): New function.
8187 (ppc64_emit_equal): New function.
8188 (ppc64_emit_less_signed): New function.
8189 (ppc64_emit_less_unsigned): New function.
8190 (ppc64_emit_ref): New function.
8191 (ppc64_emit_const): New function.
8192 (ppc64v1_emit_reg): New function.
8193 (ppc64v2_emit_reg): New function.
8194 (ppc64_emit_pop): New function.
8195 (ppc64_emit_stack_flush): New function.
8196 (ppc64_emit_swap): New function.
8197 (ppc64v1_emit_call): New function.
8198 (ppc64v2_emit_call): New function.
8199 (ppc64v1_emit_int_call_1): New function.
8200 (ppc64v2_emit_int_call_1): New function.
8201 (ppc64v1_emit_void_call_2): New function.
8202 (ppc64v2_emit_void_call_2): New function.
8203 (ppc64_emit_if_goto): New function.
8204 (ppc64_emit_eq_goto): New function.
8205 (ppc64_emit_ne_goto): New function.
8206 (ppc64_emit_lt_goto): New function.
8207 (ppc64_emit_le_goto): New function.
8208 (ppc64_emit_gt_goto): New function.
8209 (ppc64_emit_ge_goto): New function.
8210 (ppc64v1_emit_ops_impl): New static variable.
8211 (ppc64v2_emit_ops_impl): New static variable.
8212 (ppc_emit_ops): New function.
8213 (linux_low_target): Wire in ppc_emit_ops.
8215 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8216 Marcin Kościelnicki <koriakin@0x04.net>
8219 * Makefile.in: Add powerpc-*-ipa.o
8220 * configure.srv: Add ipa_obj for powerpc*-linux.
8221 * linux-ppc-ipa.c: New file.
8222 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8224 (PPC_FIELD): New macro.
8225 (PPC_SEXT): New macro.
8226 (PPC_OP6): New macro.
8227 (PPC_BO): New macro.
8228 (PPC_LI): New macro.
8229 (PPC_BD): New macro.
8230 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8231 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8232 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8233 (ppc_get_thread_area): New function.
8234 (is_elfv2_inferior): New function.
8235 (gen_ds_form): New function.
8236 (GEN_STD): New macro.
8237 (GEN_STDU): New macro.
8238 (GEN_LD): New macro.
8239 (GEN_LDU): New macro.
8240 (gen_d_form): New function.
8241 (GEN_ADDI): New macro.
8242 (GEN_ADDIS): New macro.
8243 (GEN_LI): New macro.
8244 (GEN_LIS): New macro.
8245 (GEN_ORI): New macro.
8246 (GEN_ORIS): New macro.
8247 (GEN_LWZ): New macro.
8248 (GEN_STW): New macro.
8249 (GEN_STWU): New macro.
8250 (gen_xfx_form): New function.
8251 (GEN_MFSPR): New macro.
8252 (GEN_MTSPR): New macro.
8253 (GEN_MFCR): New macro.
8254 (GEN_MTCR): New macro.
8255 (GEN_SYNC): New macro.
8256 (GEN_LWSYNC): New macro.
8257 (gen_x_form): New function.
8258 (GEN_OR): New macro.
8259 (GEN_MR): New macro.
8260 (GEN_LWARX): New macro.
8261 (GEN_STWCX): New macro.
8262 (GEN_CMPW): New macro.
8263 (gen_md_form): New function.
8264 (GEN_RLDICL): New macro.
8265 (GEN_RLDICR): New macro.
8266 (gen_i_form): New function.
8268 (GEN_BL): New macro.
8269 (gen_b_form): New function.
8270 (GEN_BNE): New macro.
8271 (GEN_LOAD): New macro.
8272 (GEN_STORE): New macro.
8273 (gen_limm): New function.
8274 (gen_atomic_xchg): New function.
8275 (gen_call): New function.
8276 (ppc_relocate_instruction): New function.
8277 (ppc_install_fast_tracepoint_jump_pad): New function.
8278 (ppc_get_min_fast_tracepoint_insn_len): New function.
8279 (ppc_get_ipa_tdesc_idx): New function.
8280 (the_low_target): Wire in the new functions.
8281 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8283 * linux-ppc-tdesc.h: New file.
8285 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8287 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8288 (alloc_jump_pad_buffer): New function.
8289 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8290 (alloc_jump_pad_buffer): New function.
8291 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8292 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8293 (alloc_jump_pad_buffer): New function.
8294 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8295 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8296 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8297 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8299 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8301 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8302 * linux-amd64-ipa.c: Likewise.
8303 * linux-i386-ipa.c: Likewise.
8304 * linux-s390-ipa.c: Likewise.
8305 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8306 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8307 set_trace_state_variable_value_ptr.
8308 (struct ipa_sym_addresses): Likewise.
8309 (symbol_list): Likewise.
8310 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8311 accessing gdb_collect directly.
8312 (gdb_collect_ptr_type): New typedef.
8313 (get_raw_reg_ptr_type): New typedef.
8314 (get_trace_state_variable_value_ptr_type): New typedef.
8315 (set_trace_state_variable_value_ptr_type): New typedef.
8316 (gdb_collect_ptr): New global.
8317 (get_raw_reg_ptr): New global.
8318 (get_trace_state_variable_value_ptr): New global.
8319 (set_trace_state_variable_value_ptr): New global.
8320 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8321 accessing get_raw_reg directly.
8322 (get_get_tsv_func_addr): Likewise for
8323 get_trace_state_variable_value_ptr.
8324 (get_set_tsv_func_addr): Likewise for
8325 set_trace_state_variable_value_ptr.
8326 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8328 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8330 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8332 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8334 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8336 (relocate_instruction): Remove own_buf.
8337 * server.c (own_buf): Make global.
8338 (handle_v_requests): Make global.
8339 * server.h (own_buf): New declaration.
8340 (handle_v_requests): New prototype.
8342 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8345 * linux-s390-low.c (add_insns): New function.
8346 (s390_emit_prologue): New function.
8347 (s390_emit_epilogue): New function.
8348 (s390_emit_add): New function.
8349 (s390_emit_sub): New function.
8350 (s390_emit_mul): New function.
8351 (s390_emit_lsh): New function.
8352 (s390_emit_rsh_signed): New function.
8353 (s390_emit_rsh_unsigned): New function.
8354 (s390_emit_ext): New function.
8355 (s390_emit_log_not): New function.
8356 (s390_emit_bit_and): New function.
8357 (s390_emit_bit_or): New function.
8358 (s390_emit_bit_xor): New function.
8359 (s390_emit_bit_not): New function.
8360 (s390_emit_equal): New function.
8361 (s390_emit_less_signed): New function.
8362 (s390_emit_less_unsigned): New function.
8363 (s390_emit_ref): New function.
8364 (s390_emit_if_goto): New function.
8365 (s390_emit_goto): New function.
8366 (s390_write_goto_address): New function.
8367 (s390_emit_litpool): New function.
8368 (s390_emit_const): New function.
8369 (s390_emit_call): New function.
8370 (s390_emit_reg): New function.
8371 (s390_emit_pop): New function.
8372 (s390_emit_stack_flush): New function.
8373 (s390_emit_zero_ext): New function.
8374 (s390_emit_swap): New function.
8375 (s390_emit_stack_adjust): New function.
8376 (s390_emit_set_r2): New function.
8377 (s390_emit_int_call_1): New function.
8378 (s390_emit_void_call_2): New function.
8379 (s390_emit_eq_goto): New function.
8380 (s390_emit_ne_goto): New function.
8381 (s390_emit_lt_goto): New function.
8382 (s390_emit_le_goto): New function.
8383 (s390_emit_gt_goto): New function.
8384 (s390_emit_ge_goto): New function.
8385 (s390x_emit_prologue): New function.
8386 (s390x_emit_epilogue): New function.
8387 (s390x_emit_add): New function.
8388 (s390x_emit_sub): New function.
8389 (s390x_emit_mul): New function.
8390 (s390x_emit_lsh): New function.
8391 (s390x_emit_rsh_signed): New function.
8392 (s390x_emit_rsh_unsigned): New function.
8393 (s390x_emit_ext): New function.
8394 (s390x_emit_log_not): New function.
8395 (s390x_emit_bit_and): New function.
8396 (s390x_emit_bit_or): New function.
8397 (s390x_emit_bit_xor): New function.
8398 (s390x_emit_bit_not): New function.
8399 (s390x_emit_equal): New function.
8400 (s390x_emit_less_signed): New function.
8401 (s390x_emit_less_unsigned): New function.
8402 (s390x_emit_ref): New function.
8403 (s390x_emit_if_goto): New function.
8404 (s390x_emit_const): New function.
8405 (s390x_emit_call): New function.
8406 (s390x_emit_reg): New function.
8407 (s390x_emit_pop): New function.
8408 (s390x_emit_stack_flush): New function.
8409 (s390x_emit_zero_ext): New function.
8410 (s390x_emit_swap): New function.
8411 (s390x_emit_stack_adjust): New function.
8412 (s390x_emit_int_call_1): New function.
8413 (s390x_emit_void_call_2): New function.
8414 (s390x_emit_eq_goto): New function.
8415 (s390x_emit_ne_goto): New function.
8416 (s390x_emit_lt_goto): New function.
8417 (s390x_emit_le_goto): New function.
8418 (s390x_emit_gt_goto): New function.
8419 (s390x_emit_ge_goto): New function.
8420 (s390_emit_ops): New function.
8421 (struct linux_target_ops): Fill in emit_ops hook.
8423 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8426 * Makefile.in: Add s390 IPA files.
8427 * configure.srv: Build IPA for s390.
8428 * linux-s390-ipa.c: New file.
8429 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8430 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8431 (tdesc_s390_linux32): Likewise.
8432 (init_registers_s390_linux32v1): Likewise.
8433 (tdesc_s390_linux32v1): Likewise.
8434 (init_registers_s390_linux32v2): Likewise.
8435 (tdesc_s390_linux32v2): Likewise.
8436 (init_registers_s390_linux64): Likewise.
8437 (tdesc_s390_linux64): Likewise.
8438 (init_registers_s390_linux64v1): Likewise.
8439 (tdesc_s390_linux64v1): Likewise.
8440 (init_registers_s390_linux64v2): Likewise.
8441 (tdesc_s390_linux64v2): Likewise.
8442 (init_registers_s390_te_linux64): Likewise.
8443 (tdesc_s390_te_linux64): Likewise.
8444 (init_registers_s390_vx_linux64): Likewise.
8445 (tdesc_s390_vx_linux64): Likewise.
8446 (init_registers_s390_tevx_linux64): Likewise.
8447 (tdesc_s390_tevx_linux64): Likewise.
8448 (init_registers_s390x_linux64): Likewise.
8449 (tdesc_s390x_linux64): Likewise.
8450 (init_registers_s390x_linux64v1): Likewise.
8451 (tdesc_s390x_linux64v1): Likewise.
8452 (init_registers_s390x_linux64v2): Likewise.
8453 (tdesc_s390x_linux64v2): Likewise.
8454 (init_registers_s390x_te_linux64): Likewise.
8455 (tdesc_s390x_te_linux64): Likewise.
8456 (init_registers_s390x_vx_linux64): Likewise.
8457 (tdesc_s390x_vx_linux64): Likewise.
8458 (init_registers_s390x_tevx_linux64): Likewise.
8459 (tdesc_s390x_tevx_linux64): Likewise.
8460 (have_hwcap_s390_vx): New static variable.
8461 (s390_arch_setup): Fill have_hwcap_s390_vx.
8462 (s390_get_thread_area): New function.
8463 (s390_ft_entry_gpr_esa): New const.
8464 (s390_ft_entry_gpr_zarch): New const.
8465 (s390_ft_entry_misc): New const.
8466 (s390_ft_entry_fr): New const.
8467 (s390_ft_entry_vr): New const.
8468 (s390_ft_main_31): New const.
8469 (s390_ft_main_64): New const.
8470 (s390_ft_exit_fr): New const.
8471 (s390_ft_exit_vr): New const.
8472 (s390_ft_exit_misc): New const.
8473 (s390_ft_exit_gpr_esa): New const.
8474 (s390_ft_exit_gpr_zarch): New const.
8475 (append_insns): New function.
8476 (s390_relocate_instruction): New function.
8477 (s390_install_fast_tracepoint_jump_pad): New function.
8478 (s390_get_min_fast_tracepoint_insn_len): New function.
8479 (s390_get_ipa_tdesc_idx): New function.
8480 (struct linux_target_ops): Wire in the above functions.
8481 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8482 * linux-s390-tdesc.h: New file.
8484 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8486 * linux-s390-low.c (s390_supports_tracepoints): New function.
8487 (struct linux_target_ops): Fill supports_tracepoints hook.
8489 2016-03-18 Yao Qi <yao.qi@linaro.org>
8491 * linux-low.c (lwp_signal_can_be_delivered): New function.
8492 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8494 2016-03-18 Yao Qi <yao.qi@linaro.org>
8496 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8497 0 if signal is enqueued. Remove 'signal' from one debugging
8498 message. Move one debugging message to some lines below.
8499 Remove code setting 'signal' to 0.
8501 2016-03-18 Yao Qi <yao.qi@linaro.org>
8503 * linux-low.c (linux_low_filter_event): Remove redundant
8504 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8506 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8508 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8509 (struct linux_target_ops): Wire in the above.
8511 2016-03-03 Yao Qi <yao.qi@linaro.org>
8513 * linux-low.c: Update comments to start_step_over.
8515 2016-03-03 Yao Qi <yao.qi@linaro.org>
8518 * linux-low.c (handle_extended_wait): Set child suspended
8519 if event_lwp->bp_reinsert isn't zero.
8521 2016-03-02 Yao Qi <yao.qi@linaro.org>
8523 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8524 enqueue_pending_signal.
8526 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8528 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8531 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8533 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8534 (s390_regmap_3264) [!__s390x__]: New global.
8535 (s390_collect_ptrace_register): Skip map entries containing -1.
8536 (s390_supply_ptrace_register): Ditto.
8537 (s390_fill_gprs_high): New function.
8538 (s390_store_gprs_high): New function.
8539 (s390_regsets): Add NT_S390_HIGH_GPRS.
8540 (s390_get_hwcap): Enable on 31-bit.
8541 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8542 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8543 Detect NT_S390_HIGH_GPRS.
8544 (s390_usrregs_info_3264): Enable on 31-bit.
8545 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8546 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8548 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8551 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8552 * configure.srv: Ditto.
8553 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8554 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8555 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8556 (init_registers_amd64_linux): Remove prototype.
8557 (tdesc_amd64_linux): Remove declaration.
8558 (get_ipa_tdesc): New function.
8559 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8560 initialize remaining tdescs.
8561 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8562 (init_registers_i386_linux): Remove prototype.
8563 (tdesc_i386_linux): Remove declaration.
8564 (get_ipa_tdesc): New function.
8565 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8566 initialize remaining tdescs.
8567 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8568 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8569 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8570 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8571 (x86_get_ipa_tdesc_idx): New function.
8572 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8573 * linux-x86-tdesc.h: New file.
8574 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8575 (target_get_ipa_tdesc_idx): New macro.
8576 * tracepoint.c (ipa_tdesc_idx): New macro.
8577 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8578 (symbol_list): Add ipa_tdesc_idx.
8579 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8580 (ipa_tdesc): Remove.
8581 (ipa_tdesc_idx): New variable.
8582 (get_context_regcache): Use get_ipa_tdesc.
8583 (gdb_collect): Ditto.
8585 * tracepoint.h (get_ipa_tdesc): New prototype.
8586 (ipa_tdesc): Remove.
8588 2016-02-24 Pedro Alves <palves@redhat.com>
8590 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8591 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8592 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8593 Factor out common code between the USE_SIGTRAP_SIGINFO and
8594 !USE_SIGTRAP_SIGINFO blocks.
8595 (linux_low_filter_event): Call save_stop_reason instead of
8596 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8598 (linux_wait_1): Update comments.
8600 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8602 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8603 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8604 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8605 ppc_insert_point, ppc_remove_point.
8607 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8609 * linux-s390-low.c (s390_supports_z_point_type): New function.
8610 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8612 2016-02-16 Yao Qi <yao.qi@linaro.org>
8614 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8615 PC. Get pc from regcache_read_pc.
8617 2016-02-12 Yao Qi <yao.qi@linaro.org>
8619 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8620 or linux_get_pc_32bit.
8621 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8623 2016-02-12 Yao Qi <yao.qi@linaro.org>
8625 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8626 arm_linux_get_next_pcs_fixup.
8628 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8630 * tracepoint.c (x_tracepoint_action_download): Change
8631 write_inferior_data_ptr to write_inferior_data_pointer.
8632 (cmd_qtstart): Likewise.
8633 (write_inferior_data_ptr): Remove.
8634 (download_agent_expr): Change write_inferior_data_ptr to
8635 write_inferior_data_pointer.
8636 (download_tracepoint_1): Likewise.
8637 (download_tracepoint): Likewise.
8638 (download_trace_state_variables): Likewise.
8640 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8641 Marcin Kościelnicki <koriakin@0x04.net>
8643 * tracepoint.c (struct tracepoint_action_ops): Remove.
8644 (struct tracepoint_action): Remove ops.
8645 (m_tracepoint_action_download, r_tracepoint_action_download)
8646 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8647 size and offset accordingly.
8648 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8649 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8650 (tracepoint_action_send, tracepoint_action_download): New functions.
8651 Helpers for trace action handlers.
8652 (add_tracepoint_action): Remove setup actions ops.
8653 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8655 2016-02-10 Yao Qi <yao.qi@linaro.org>
8657 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8659 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8661 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8663 * configure: Regenerate.
8665 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8667 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8668 void * to gdb_byte *.
8669 * linux-low.c (siginfo_fixup): Likewise.
8670 (linux_xfer_siginfo): Likewise.
8671 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8673 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8675 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8677 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8679 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8681 * linux-x86-low.c [__x86_64__]: Include
8682 "nat/amd64-linux-siginfo.h".
8683 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8684 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8685 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8686 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8687 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8688 (cpt_si_fd, si_timerid, si_overrun): Move from
8689 nat/amd64-linux-siginfo.c.
8690 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8692 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8694 * server.c (skip_to_semicolon): Remove.
8695 (process_point_options): Use strchrnul instead of
8698 2016-01-26 Yao Qi <yao.qi@linaro.org>
8700 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8701 * linux-low.c (install_software_single_step_breakpoints): Don't
8702 call regcache_read_pc.
8703 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8706 2016-01-26 Yao Qi <yao.qi@linaro.org>
8708 * linux-low.c (install_software_single_step_breakpoints): Call
8709 regcache_read_pc instead of get_pc.
8711 2016-01-26 Yao Qi <yao.qi@linaro.org>
8713 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8714 (unblock_async_io): Rename to ...
8715 (block_unblock_async_io): ... it. New function.
8716 (enable_async_io): Don't install SIGIO handler. Unblock it
8718 (disable_async_io): Don't ignore SIGIO. Block it instead.
8719 (initialize_async_io): Install SIGIO handler. Don't call
8722 2016-01-26 Yao Qi <yao.qi@linaro.org>
8724 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8725 first character is '\003', call *the_target->request_interrupt.
8727 2016-01-25 Yao Qi <yao.qi@linaro.org>
8729 * remote-utils.c (new_thread_notify): Remove.
8730 (dead_thread_notify): Likewise.
8731 * remote-utils.h (new_thread_notify): Remove declaration.
8732 (dead_thread_notify): Likewise.
8734 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8736 * gdb.trace/pending.exp: Fix expected message on continue.
8738 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8740 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8741 it works properly on big-endian machines where sizeof (CORE_ADDR)
8744 2016-01-21 Pedro Alves <palves@redhat.com>
8746 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8747 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8748 * configure: Regenerate.
8750 2016-01-21 Yao Qi <yao.qi@linaro.org>
8752 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8753 is_thumb and set it according to CPSR saved on the stack.
8754 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8755 arm_sigreturn_next_pc.
8757 2016-01-18 Yao Qi <yao.qi@linaro.org>
8759 * linux-low.c (linux_set_pc_64bit): New function.
8760 (linux_get_pc_64bit): New function.
8761 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8763 * linux-sparc-low.c (debug_threads): Remove declaration.
8764 (sparc_get_pc): Remove.
8765 (the_low_target): Use linux_get_pc_64bit instead of
8767 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8768 (the_low_target): Use linux_get_pc_64bit and
8771 2016-01-18 Yao Qi <yao.qi@linaro.org>
8773 * linux-arm-low.c (debug_threads): Remove declaration.
8774 (arm_get_pc, arm_set_pc): Remove.
8775 (the_low_target): Use linux_get_pc_32bit and
8777 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8778 (the_low_target): Use linux_get_pc_32bit and
8780 * linux-cris-low.c (debug_threads): Remove declaration.
8781 (cris_get_pc, cris_set_pc,): Remove.
8782 (the_low_target): Use linux_get_pc_32bit and
8784 * linux-crisv32-low.c (debug_threads): Remove declaration.
8785 (cris_get_pc, cris_set_pc): Remove.
8786 (the_low_target): Use linux_get_pc_32bit and
8788 * linux-low.c: Include inttypes.h.
8789 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8790 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8791 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8792 (the_low_target): Use linux_get_pc_32bit and
8794 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8795 (the_low_target): Use linux_get_pc_32bit and
8797 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8798 (the_low_target): Use linux_get_pc_32bit and
8800 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8801 (the_low_target): Use linux_get_pc_32bit and
8803 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8804 (the_low_target): Use linux_get_pc_32bit and
8807 2016-01-18 Gary Benson <gbenson@redhat.com>
8809 * configure.ac (AC_FUNC_FORK): New check.
8810 * config.in: Regenerate.
8811 * configure: Likewise.
8813 2016-01-14 Yao Qi <yao.qi@linaro.org>
8815 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8816 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8817 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8818 arm_get_next_pcs_ctor.
8820 2016-01-12 Josh Stone <jistone@redhat.com>
8821 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8823 * inferiors.h: Include "gdb_vecs.h".
8824 (struct process_info): Add syscalls_to_catch.
8825 * inferiors.c (remove_process): Free syscalls_to_catch.
8826 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8827 syscall_return stops.
8828 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8829 * server.c (handle_general_set): Handle QCatchSyscalls.
8830 (handle_query): Report support for QCatchSyscalls.
8831 * target.h (struct target_ops): Add supports_catch_syscall.
8832 (target_supports_catch_syscall): New macro.
8833 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8834 (struct lwp_info): Add syscall_state.
8835 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8836 Maintain syscall_state and syscalls_to_catch across exec.
8837 (get_syscall_trapinfo): New function, proxy to the_low_target.
8838 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8839 (linux_low_filter_event): Toggle syscall_state entry/return for
8840 syscall traps, and set it ignored for all others.
8841 (gdb_catching_syscalls_p): New function.
8842 (gdb_catch_this_syscall_p): New function.
8843 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8844 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8845 (linux_supports_catch_syscall): New function.
8846 (linux_target_ops): Install it.
8847 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8848 (the_low_target): Install it.
8850 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8852 * acinclude.m4: Include new ../warning.m4 file.
8853 * configure: Regenerated.
8854 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8856 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8858 * ax.c (is_goto_target): Mark static.
8859 * linux-low.c (register_addr): Likewise.
8860 (linux_fetch_registers, linux_store_registers): Likewise.
8861 * mem-break.c (any_persistent_commands): Fix old prototype.
8862 (add_commands_to_breakpoint): Mark static.
8863 * regcache.c (find_register_by_name): Delete unused func.
8864 * remote-utils.c (hex_or_minus_one): Mark static.
8865 * server.c (monitor_show_help): Mark static.
8866 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8867 handle_v_requests): Likewise.
8869 2016-01-12 Pedro Alves <palves@redhat.com>
8871 Remove use of the registered trademark symbol throughout.
8873 2016-01-08 Yao Qi <yao.qi@linaro.org>
8875 * remote-utils.c (getpkt): If c is '\003', call target hook
8878 2016-01-06 Yao Qi <yao.qi@linaro.org>
8880 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8881 linux-aarch32-low.c.
8882 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8883 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8884 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8885 (thumb2_breakpoint): Declare.
8886 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8887 linux-aarch32-low.h.
8888 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8889 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8890 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8892 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8894 * gdbreplay.c (gdbreplay_version): Change copyright year in
8896 * server.c (gdbserver_version): Likewise.
8898 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8900 * server.c (crc32_table): Delete.
8901 (crc32): Use libiberty's xcrc32 function.
8903 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8905 * lynx-low.c (lynx_delete_thread_callback): New function.
8906 (lynx_mourn): Properly delete our process and all of its
8907 threads. Remove call to clear_inferiors.
8909 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8911 * target.c (thread_search_callback): Add check that
8912 the thread_stopped target callback is not NULL before
8915 2015-12-21 Yao Qi <yao.qi@linaro.org>
8917 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8920 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8922 * server.c (handle_query): Call target_supports_software_single_step.
8924 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8926 * linux-low.c (single_step): New function.
8927 (linux_resume_one_lwp_throw): Call single_step.
8928 (start_step_over): Likewise.
8930 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8932 * Makefile.in (SFILES): Append arch/arm-linux.c,
8933 arch/arm-get-next-pcs.c.
8934 (arm-linux.o): New rule.
8935 (arm-get-next-pcs.o): New rule.
8936 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8938 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8939 to linux-aarch32-low.c.
8940 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8941 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8942 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8943 (thumb2_breakpoint_len): Likewise.
8944 (arm_is_thumb_mode): Make non-static.
8945 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8946 from linux-aarch32-low.c.
8947 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8948 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8949 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8950 (thumb2_breakpoint_len): Likewise.
8951 (arm_is_thumb_mode): New declaration.
8952 * linux-arm-low.c: Include arch/arm-linux.h
8953 aarch/arm-get-next-pcs.h, sys/syscall.h.
8954 (get_next_pcs_ops): New struct.
8955 (get_next_pcs_addr_bits_remove): New function.
8956 (get_next_pcs_is_thumb): New function.
8957 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8958 (arm_sigreturn_next_pc): Likewise.
8959 (get_next_pcs_syscall_next_pc): Likewise.
8960 (arm_gdbserver_get_next_pcs): Likewise.
8961 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8963 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8964 * server.h: Include gdb_vecs.h.
8966 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8968 * Makefile.in (SFILES): Append common/common-regcache.c.
8969 (OBS): Append common-regcache.o.
8970 (common-regcache.o): New rule.
8971 * regcache.c (init_register_cache): Initialize cache to
8973 (regcache_raw_read_unsigned): New function.
8974 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8975 register_status enum.
8977 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8979 * linux-aarch64-low.c (the_low_targets): Rename
8980 breakpoint_reinsert_addr to get_next_pcs.
8981 * linux-arm-low.c (the_low_targets): Likewise.
8982 * linux-bfin-low.c (the_low_targets): Likewise.
8983 * linux-cris-low.c (the_low_targets): Likewise.
8984 * linux-crisv32-low.c (the_low_targets): Likewise.
8985 * linux-low.c (can_software_single_step): Likewise.
8986 (install_software_single_step_breakpoints): New function.
8987 (start_step_over): Use install_software_single_step_breakpoints.
8988 * linux-low.h: New CORE_ADDR vector.
8989 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
8991 * linux-mips-low.c (the_low_targets): Likewise.
8992 * linux-nios2-low.c (the_low_targets): Likewise.
8993 * linux-sparc-low.c (the_low_targets): Likewise.
8995 2015-12-17 Pedro Alves <palves@redhat.com>
8997 * linux-low.c (linux_kill_one_lwp): Remove references to
8999 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9001 (linux_init_signals): Delete.
9002 (initialize_low): Adjust.
9003 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9005 2015-12-16 Pedro Alves <palves@redhat.com>
9007 * configure.ac (compiler warning flags): When testing a
9008 -Wno-foo option, check whether -Wfoo works instead.
9009 * configure: Regenerate.
9011 2015-12-11 Don Breazeal <donb@codesourcery.com>
9013 * server.c (process_serial_event): Don't exit from gdbserver
9014 in remote mode if there are still active inferiors.
9016 2015-12-11 Yao Qi <yao.qi@linaro.org>
9018 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9019 arm_breakpoint_at if the process is 32-bit.
9021 2015-12-11 Yao Qi <yao.qi@linaro.org>
9023 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9026 2015-12-07 Yao Qi <yao.qi@linaro.org>
9028 * configure.srv: Append arm.o to srv_tgtobj for
9029 aarch64*-*-linux* target.
9030 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9031 from linux-arm-low.c.
9032 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9033 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9034 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9035 (thumb2_breakpoint_len): Likewise.
9036 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9037 (arm_breakpoint_kinds): Likewise.
9038 (arm_breakpoint_kind_from_pc): Likewise.
9039 (arm_sw_breakpoint_from_kind): Likewise.
9040 (arm_breakpoint_kind_from_current_state): Likewise.
9041 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9042 (arm_sw_breakpoint_from_kind): Declare.
9043 (arm_breakpoint_kind_from_current_state): Declare.
9044 (arm_breakpoint_at): Declare.
9045 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9046 arm_sw_breakpoint_from_kind if process is 32-bit.
9047 (aarch64_breakpoint_kind_from_pc): New function.
9048 (aarch64_breakpoint_kind_from_current_state): New function.
9049 (the_low_target): Initialize fields breakpoint_kind_from_pc
9050 and breakpoint_kind_from_current_state.
9051 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9052 linux-aarch32-low.c.
9053 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9054 (arm_breakpoint, arm_breakpoint_len): Likewise.
9055 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9056 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9057 (arm_is_thumb_mode): Likewise.
9058 (arm_breakpoint_at): Likewise.
9059 (arm_breakpoint_kind_from_pc): Likewise.
9060 (arm_sw_breakpoint_from_kind): Likewise.
9061 (arm_breakpoint_kind_from_current_state): Likewise.
9064 2015-08-04 Yao Qi <yao.qi@linaro.org>
9066 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9067 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9068 * server.c (extended_protocol): Remove "static".
9069 * server.h (extended_protocol): Declare it.
9071 2015-12-04 Josh Stone <jistone@redhat.com>
9073 * target.h (struct target_ops) <arch_setup>: Rename to ...
9074 (struct target_ops) <post_create_inferior>: ... this.
9075 (target_arch_setup): Rename to ...
9076 (target_post_create_inferior): ... this, calling post_create_inferior.
9077 * server.c (start_inferior): Update target_arch_setup calls to
9078 target_post_create_inferior.
9079 * linux-low.c (linux_low_ptrace_options): Forward declare.
9080 (linux_arch_setup): Update its comment for general use.
9081 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9082 (struct linux_target_ops): Use linux_post_create_inferior.
9083 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9084 to post_create_inferior.
9085 * nto-low.c (struct nto_target_ops): Likewise.
9086 * spu-low.c (struct spu_target_ops): Likewise.
9087 * win32-low.c (struct win32_target_ops): Likewise.
9089 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9091 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9093 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9095 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9096 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9097 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9098 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9099 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9100 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9101 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9102 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9103 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9104 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9105 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9106 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9108 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9110 * linux-low.c (linux_look_up_symbols): Don't call
9111 linux_supports_traceclone.
9112 * linux-low.h (thread_db_init): Remove use_events argument.
9113 * thread-db.c (thread_db_use_event): Remove global variable.
9114 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9115 (struct thread_db) <td_create_bp>: Remove field.
9116 (thread_db_create_event): Remove function.
9117 (thread_db_enable_reporting): Likewise.
9118 (find_one_thread): Don't check for thread_db_use_events.
9119 (attach_thread): Likewise.
9120 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9121 (try_thread_db_load_1): Don't check for thread_db_use_events.
9122 (thread_db_init): Remove use_events argument and thread events
9124 (remove_thread_event_breakpoints): Remove function.
9125 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9127 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9129 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9131 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9132 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9133 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9134 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9135 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9137 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9139 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9140 * linux-low.c (can_hardware_single_step): Use
9141 supports_hardware_single_step.
9142 (can_software_single_step): New function.
9143 (start_step_over): Call can_software_single_step.
9144 (linux_supports_hardware_single_step): New function.
9145 (struct target_ops) <supports_software_single_step>: Initialize.
9146 * linux-low.h (struct linux_target_ops)
9147 <supports_hardware_single_step>: Initialize.
9148 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9149 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9150 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9151 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9152 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9153 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9154 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9155 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9156 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9157 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9159 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9160 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9162 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9163 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9164 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9166 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9167 * target.h (struct target_ops): <supports_software_single_step>:
9169 (target_supports_software_single_step): New macro.
9171 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9173 * linux-low.c (linux_wait_1): Fix pc advance condition.
9174 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9175 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9177 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9179 * linux-arm-low.c (arm_is_thumb_mode): New function.
9180 (arm_breakpoint_at): Use arm_is_thumb_mode.
9181 (arm_breakpoint_kind_from_current_state): New function.
9182 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9184 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9185 (linux_breakpoint_kind_from_current_state): New function.
9186 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9187 * linux-low.h (struct linux_target_ops)
9188 <breakpoint_kind_from_current_state>: New field.
9189 * target.h (struct target_ops): Likewise.
9190 (target_breakpoint_kind_from_current_state): New macro.
9192 2015-11-30 Pedro Alves <palves@redhat.com>
9194 * linux-low.c (linux_resume): Wake up the event loop before
9197 2015-11-30 Pedro Alves <palves@redhat.com>
9199 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9201 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9203 * target.c (struct thread_search): New structure.
9204 (thread_search_callback): New function.
9205 (prev_general_thread): New global.
9206 (prepare_to_access_memory, done_accessing_memory): New functions.
9207 * target.h (prepare_to_access_memory, done_accessing_memory):
9208 Replace macros with function declarations.
9210 2015-11-30 Pedro Alves <palves@redhat.com>
9213 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9214 report TARGET_WAITKIND_NO_RESUMED.
9215 * remote-utils.c (prepare_resume_reply): Handle
9216 TARGET_WAITKIND_NO_RESUMED.
9217 * server.c (report_no_resumed): New global.
9218 (handle_query) <qSupported>: Handle "no-resumed+". Report
9219 "no-resumed+" support.
9220 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9221 return error if the client doesn't support no-resumed events.
9222 (push_stop_notification): New function.
9223 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9224 events if the client supports them.
9226 2015-11-30 Pedro Alves <palves@redhat.com>
9228 * linux-low.c (thread_still_has_status_pending_p): Don't check
9230 (lwp_resumed): New function.
9231 (status_pending_p_callback): Return early if the LWP is not
9232 supposed to be resumed.
9234 2015-11-30 Pedro Alves <palves@redhat.com>
9236 * linux-low.c (handle_extended_wait): Assert that the LWP's
9237 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9238 thread create events, leave the new child's status pending.
9239 (linux_low_filter_event): If GDB wants to hear about thread exit
9240 events, leave the LWP marked dead and don't delete it.
9241 (linux_wait_for_event_filtered): Don't check for thread exit.
9242 (filter_exit_event): New function.
9243 (linux_wait_1): Use it, when returning an exit event.
9244 (linux_resume_one_lwp_throw): Assert that the LWP's
9245 waitstatus is TARGET_WAITKIND_IGNORE.
9246 * remote-utils.c (prepare_resume_reply): Handle
9247 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9248 * server.c (report_thread_events): New global.
9249 (handle_general_set): Handle QThreadEvents.
9250 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9251 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9252 TARGET_WAITKIND_THREAD_EXITED.
9253 * server.h (report_thread_events): Declare.
9255 2015-11-30 Pedro Alves <palves@redhat.com>
9257 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9258 the thread's last_resume_kind was resume_stop.
9260 2015-11-30 Pedro Alves <palves@redhat.com>
9262 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9265 2015-11-30 Pedro Alves <palves@redhat.com>
9267 * server.c (handle_v_requests): Handle vCtrlC.
9269 2015-11-30 Pedro Alves <palves@redhat.com>
9271 * gdbthread.h (find_any_thread_of_pid): Declare.
9272 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9274 * server.c (handle_query): If current_thread is NULL, look for
9275 another thread of the selected process.
9277 2015-11-26 Daniel Colascione <dancol@dancol.org>
9278 Simon Marchi <simon.marchi@ericsson.com>
9280 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9281 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9283 * target.h (struct target_ops) <thread_name>: New field.
9284 (target_thread_name): New macro.
9286 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9288 * regcache.h (regcache_invalidate_pid): Add declaration.
9289 * regcache.c (regcache_invalidate_pid): New function, extracted
9290 from regcache_invalidate.
9291 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9292 Add trivial documentation comment.
9293 * lynx-low.c: Use regcache_invalidate_pid instead of
9294 regcache_invalidate.
9296 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9298 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9299 and Elf64_auxv_t if the target is Android.
9301 2015-11-22 Doug Evans <xdje42@gmail.com>
9303 * target.h: #include <sys/types.h>.
9305 2015-11-19 Pedro Alves <palves@redhat.com>
9307 * linux-low.c (linux_process_qsupported): Change prototype.
9309 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9311 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9312 and adjust to loop over all features.
9313 * server.c (handle_query) <qSupported>: Adjust to call
9314 target_process_qsupported once, passing it a vector of unprocessed
9316 * target.h (struct target_ops) <process_qsupported>: Change
9318 (target_process_qsupported): Adjust.
9320 2015-11-19 Pedro Alves <palves@redhat.com>
9322 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9324 * configure: Regenerate.
9326 2015-11-19 Pedro Alves <palves@redhat.com>
9328 * configure: Regenerate.
9330 2015-11-19 Yao Qi <yao.qi@linaro.org>
9332 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9335 2015-11-19 Yao Qi <yao.qi@linaro.org>
9337 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9338 (struct aarch64_operand): Move enum out.
9340 2015-11-19 Yao Qi <yao.qi@linaro.org>
9342 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9343 struct user_fpsimd_state *.
9344 (aarch64_store_fpregset): Likewise.
9346 2015-11-19 Yao Qi <yao.qi@linaro.org>
9348 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9349 struct user_pt_regs *.
9350 (aarch64_store_gregset): Likewise.
9352 2015-11-18 Pedro Alves <palves@redhat.com>
9354 * Makefile.in (all_object_files): Add $IPA_OBJS.
9356 2015-11-17 Pedro Alves <palves@redhat.com>
9358 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9359 GDB_SIGNAL_0 and gdb_signal_to_string.
9361 2015-11-17 Pedro Alves <palves@redhat.com>
9363 * win32-low.c (handle_output_debug_string): Remove parameter.
9364 (win32_kill): Remove our_status local and adjust call to
9365 handle_output_debug_string.
9366 (get_child_debug_event): Adjust call to
9367 handle_output_debug_string.
9369 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9371 * linux-mips-low.c (mips_fill_gregset): Add cast.
9372 (mips_store_gregset): Likewise.
9373 (mips_fill_fpregset): Likewise.
9374 (mips_store_fpregset): Likewise.
9376 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9378 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9381 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9383 * linux-mips-low.c (mips_linux_new_thread): Change type of
9384 watch_type to enum target_hw_bp_type.
9386 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9388 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9389 Change return type to arm_hwbp_type.
9391 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9393 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9394 (arm_store_gregset): Likewise.
9395 * linux-arm-low.c (arm_get_hwcap): Likewise.
9396 (arm_read_description): Likewise.
9398 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9400 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9402 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9404 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9405 (ppc_fill_vsxregset): Likewise.
9406 (ppc_store_vsxregset): Likewise.
9407 (ppc_fill_vrregset): Likewise.
9408 (ppc_store_vrregset): Likewise.
9409 (ppc_fill_evrregset): Likewise.
9410 (ppc_store_evrregset): Likewise.
9412 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9414 * linux-ppc-low.c (ppc_usrregs_info): Remove
9415 forward-declaration.
9416 (ppc_arch_setup): Move lower in file.
9418 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9420 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9421 (ps_pdwrite): Likewise.
9423 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9425 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9426 to after assert checks.
9428 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9430 * proc-service.c (ps_pdread): Add/adjust casts.
9431 (ps_pdwrite): Add/adjust casts.
9433 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9435 * server.c (handle_search_memory_1): Cast return value of
9438 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9440 * server.c (write_qxfer_response): Change type of data to
9443 2015-10-29 Pedro Alves <palves@redhat.com>
9445 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9447 2015-10-29 Pedro Alves <palves@redhat.com>
9449 * tracepoint.c (clear_installed_tracepoints): Add casts.
9451 2015-10-29 Pedro Alves <palves@redhat.com>
9453 * server.c (handle_v_cont, process_serial_event): Add enum
9454 gdb_signal casts to signal parsing code.
9456 2015-10-29 Pedro Alves <palves@redhat.com>
9458 * linux-low.h (NULL_REGSET): Define.
9459 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9460 * linux-arm-low.c (arm_regsets): Likewise.
9461 * linux-crisv32-low.c (cris_regsets): Likewise.
9462 * linux-m68k-low.c (m68k_regsets): Likewise.
9463 * linux-mips-low.c (mips_regsets): Likewise.
9464 * linux-nios2-low.c (nios2_regsets): Likewise.
9465 * linux-ppc-low.c (ppc_regsets): Likewise.
9466 * linux-s390-low.c (s390_regsets): Likewise.
9467 * linux-sh-low.c (sh_regsets): Likewise.
9468 * linux-sparc-low.c (sparc_regsets): Likewise.
9469 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9470 * linux-tile-low.c (tile_regsets): Likewise.
9471 * linux-x86-low.c (x86_regsets): Likewise.
9472 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9474 2015-10-29 Pedro Alves <palves@redhat.com>
9476 * linux-low.h (NULL_REGSET): Define.
9477 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9478 * linux-arm-low.c (arm_regsets): Likewise.
9479 * linux-crisv32-low.c (cris_regsets): Likewise.
9480 * linux-m68k-low.c (m68k_regsets): Likewise.
9481 * linux-mips-low.c (mips_regsets): Likewise.
9482 * linux-nios2-low.c (nios2_regsets): Likewise.
9483 * linux-ppc-low.c (ppc_regsets): Likewise.
9484 * linux-s390-low.c (s390_regsets): Likewise.
9485 * linux-sh-low.c (sh_regsets): Likewise.
9486 * linux-sparc-low.c (sparc_regsets): Likewise.
9487 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9488 * linux-tile-low.c (tile_regsets): Likewise.
9489 * linux-x86-low.c (x86_regsets): Likewise.
9490 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9492 2015-10-26 Doug Evans <dje@google.com>
9494 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9496 2015-10-26 Doug Evans <dje@google.com>
9498 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9500 2015-10-26 Doug Evans <dje@google.com>
9502 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9504 (attach_thread, find_new_threads_callback): Ditto.
9506 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9508 * mem-break.h (set_breakpoint_data): Remove.
9510 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9512 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9513 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9514 (initialize_low): Remove set_breakpoint_data call.
9515 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9516 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9517 (initialize_low): Remove set_breakpoint_data call.
9518 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9519 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9520 (initialize_low): Remove set_breakpoint_data call.
9522 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9524 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9525 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9526 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9527 * target.h (target_breakpoint_kind_from_pc): New macro.
9529 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9531 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9532 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9533 the default breakpoint kind.
9535 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9537 * linux-arm-low.c (arm_supports_z_point_type): Add software
9540 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9542 * linux-arm-low.c: Refactor breakpoint definitions.
9543 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9544 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9546 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9548 * Makefile.in: Add arm.c/o.
9549 * configure.srv: Likewise.
9550 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9551 (arm_breakpoint_kind_from_pc): New function.
9552 (arm_sw_breakpoint_from_kind): Return proper kind.
9553 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9555 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9557 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9559 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9560 (struct raw_breakpoint) <size>: Remove.
9561 (struct raw_breakpoint) <kind>: Add.
9562 (bp_size): New function.
9563 (bp_opcode): Likewise.
9564 (find_raw_breakpoint_at): Adjust for kind.
9565 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9566 (remove_memory_breakpoint): Adjust for kind call bp_size.
9567 (set_raw_breakpoint_at): Adjust for kind.
9568 (set_breakpoint): Likewise.
9569 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9570 (delete_raw_breakpoint): Adjust for kind.
9571 (delete_breakpoint): Likewise.
9572 (find_gdb_breakpoint): Likewise.
9573 (set_gdb_breakpoint_1): Likewise.
9574 (set_gdb_breakpoint): Likewise.
9575 (delete_gdb_breakpoint_1): Likewise.
9576 (delete_gdb_breakpoint): Likewise.
9577 (uninsert_raw_breakpoint): Likewise.
9578 (reinsert_raw_breakpoint): Likewise.
9579 (set_breakpoint_data): Remove.
9580 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9581 (check_mem_read): Adjust for kind call bp_size.
9582 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9583 (clone_one_breakpoint): Adjust for kind.
9584 * mem-break.h (set_gdb_breakpoint): Likewise.
9585 (delete_gdb_breakpoint): Likewise.
9586 * server.c (process_serial_event): Likewise.
9588 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9590 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9591 (struct linux_target_ops) <breakpoint>: Remove.
9592 (struct linux_target_ops) <breakpoint_len>: Remove.
9593 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9594 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9595 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9596 (arm_sw_breakpoint_from_kind): New function.
9597 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9598 (struct linux_target_ops) <breakpoint>: Remove.
9599 (struct linux_target_ops) <breakpoint_len>: Remove.
9600 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9601 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9602 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9603 (struct linux_target_ops) <breakpoint>: Remove.
9604 (struct linux_target_ops) <breakpoint_len>: Remove.
9605 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9606 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9607 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9608 (struct linux_target_ops) <breakpoint>: Remove.
9609 (struct linux_target_ops) <breakpoint_len>: Remove.
9610 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9611 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9612 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9613 and sw_breakpoint_from_kind to increment the pc.
9614 (linux_breakpoint_kind_from_pc): New function.
9615 (linux_sw_breakpoint_from_kind): New function.
9616 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9617 (initialize_low): Call breakpoint_kind_from_pc and
9618 sw_breakpoint_from_kind to replace breakpoint_data/len.
9619 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9621 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9622 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9623 (struct linux_target_ops) <breakpoint>: Remove.
9624 (struct linux_target_ops) <breakpoint_len>: Remove.
9625 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9626 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9627 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9628 (struct linux_target_ops) <breakpoint>: Remove.
9629 (struct linux_target_ops) <breakpoint_len>: Remove.
9630 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9631 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9632 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9633 (struct linux_target_ops) <breakpoint>: Remove.
9634 (struct linux_target_ops) <breakpoint_len>: Remove.
9635 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9636 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9637 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9638 (struct linux_target_ops) <breakpoint>: Remove.
9639 (struct linux_target_ops) <breakpoint_len>: Remove.
9640 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9641 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9642 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9643 (struct linux_target_ops) <breakpoint>: Remove.
9644 (struct linux_target_ops) <breakpoint_len>: Remove.
9645 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9646 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9647 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9648 (struct linux_target_ops) <breakpoint>: Remove.
9649 (struct linux_target_ops) <breakpoint_len>: Remove.
9650 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9651 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9652 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9653 (struct linux_target_ops) <breakpoint>: Remove.
9654 (struct linux_target_ops) <breakpoint_len>: Remove.
9655 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9656 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9657 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9658 (struct linux_target_ops) <breakpoint>: Remove.
9659 (struct linux_target_ops) <breakpoint_len>: Remove.
9660 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9661 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9662 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9663 (struct linux_target_ops) <breakpoint>: Remove.
9664 (struct linux_target_ops) <breakpoint_len>: Remove.
9665 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9666 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9667 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9668 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9669 (struct linux_target_ops) <breakpoint>: Remove.
9670 (struct linux_target_ops) <breakpoint_len>: Remove.
9671 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9672 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9673 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9674 (struct linux_target_ops) <breakpoint>: Remove.
9675 (struct linux_target_ops) <breakpoint_len>: Remove.
9676 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9677 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9679 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9681 * linux-cris-low.c (cris_get_pc): Remove void arg.
9683 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9685 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9688 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9690 * inferiors.c (thread_pid_matches_callback): New function.
9691 (find_thread_process): New function.
9692 (remove_thread): Reset current_thread.
9693 (remove_process): Assert threads have been removed first.
9695 2015-10-15 Yao Qi <yao.qi@linaro.org>
9697 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9699 (aarch64_remove_point): Likewise.
9700 * regcache.c (regcache_register_size): New function.
9702 2015-10-12 Yao Qi <yao.qi@linaro.org>
9704 * linux-aarch64-low.c: Update all callers as emit_load_store
9705 is renamed to aarch64_emit_load_store.
9707 2015-10-12 Yao Qi <yao.qi@linaro.org>
9709 * linux-aarch64-low.c: Update all callers of function renaming
9710 from emit_insn to aarch64_emit_insn.
9712 2015-10-12 Yao Qi <yao.qi@linaro.org>
9714 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9715 arch/aarch64-insn.h.
9716 (struct aarch64_memory_operand): Likewise.
9718 (emit_insn): Move to arch/aarch64-insn.c.
9719 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9720 (emit_load_store): Move to arch/aarch64-insn.c.
9721 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9722 (can_encode_int32): Remove.
9724 2015-10-12 Yao Qi <yao.qi@linaro.org>
9726 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9727 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9728 (aarch64_relocate_instruction): Likewise.
9729 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9730 (struct aarch64_insn_visitor): Likewise.
9732 2015-10-12 Yao Qi <yao.qi@linaro.org>
9734 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9735 (struct aarch64_insn_visitor): New.
9736 (struct aarch64_insn_relocation_data): New.
9737 (aarch64_ftrace_insn_reloc_b): New function.
9738 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9739 (aarch64_ftrace_insn_reloc_cb): Likewise.
9740 (aarch64_ftrace_insn_reloc_tb): Likewise.
9741 (aarch64_ftrace_insn_reloc_adr): Likewise.
9742 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9743 (aarch64_ftrace_insn_reloc_others): Likewise.
9745 (aarch64_relocate_instruction): Use visitor.
9747 2015-10-12 Yao Qi <yao.qi@linaro.org>
9749 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9750 int. Add argument buf.
9751 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9752 aarch64_relocate_instruction.
9754 2015-10-12 Yao Qi <yao.qi@linaro.org>
9756 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9757 argument insn. Remove local variable insn. Don't call
9759 (aarch64_install_fast_tracepoint_jump_pad): Call
9762 2015-09-30 Yao Qi <yao.qi@linaro.org>
9764 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9765 (emit_load_store_pair): Likewise.
9767 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9769 * dll.c (match_dll): Add cast(s).
9770 (unloaded_dll): Likewise.
9771 * linux-low.c (second_thread_of_pid_p): Likewise.
9772 (delete_lwp_callback): Likewise.
9773 (count_events_callback): Likewise.
9774 (select_event_lwp_callback): Likewise.
9775 (linux_set_resume_request): Likewise.
9776 * server.c (accumulate_file_name_length): Likewise.
9777 (emit_dll_description): Likewise.
9778 (handle_qxfer_threads_worker): Likewise.
9779 (visit_actioned_threads): Likewise.
9780 * thread-db.c (any_thread_of): Likewise.
9781 * tracepoint.c (same_process_p): Likewise.
9782 (match_blocktype): Likewise.
9783 (build_traceframe_info_xml): Likewise.
9785 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9787 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9789 (gdb_unparse_agent_expr): Likewise.
9790 * hostio.c (require_data): Likewise.
9791 (handle_pread): Likewise.
9792 * linux-low.c (disable_regset): Likewise.
9793 (fetch_register): Likewise.
9794 (store_register): Likewise.
9795 (get_dynamic): Likewise.
9796 (linux_qxfer_libraries_svr4): Likewise.
9797 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9798 (set_fast_tracepoint_jump): Likewise.
9799 (uninsert_fast_tracepoint_jumps_at): Likewise.
9800 (reinsert_fast_tracepoint_jumps_at): Likewise.
9801 (validate_inserted_breakpoint): Likewise.
9802 (clone_agent_expr): Likewise.
9803 * regcache.c (init_register_cache): Likewise.
9804 * remote-utils.c (putpkt_binary_1): Likewise.
9805 (decode_M_packet): Likewise.
9806 (decode_X_packet): Likewise.
9807 (look_up_one_symbol): Likewise.
9808 (relocate_instruction): Likewise.
9809 (monitor_output): Likewise.
9810 * server.c (handle_search_memory): Likewise.
9811 (handle_qxfer_exec_file): Likewise.
9812 (handle_qxfer_libraries): Likewise.
9813 (handle_qxfer): Likewise.
9814 (handle_query): Likewise.
9815 (handle_v_cont): Likewise.
9816 (handle_v_run): Likewise.
9817 (captured_main): Likewise.
9818 * target.c (write_inferior_memory): Likewise.
9819 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9820 * tracepoint.c (init_trace_buffer): Likewise.
9821 (add_tracepoint_action): Likewise.
9822 (add_traceframe): Likewise.
9823 (add_traceframe_block): Likewise.
9824 (cmd_qtdpsrc): Likewise.
9825 (cmd_qtdv): Likewise.
9826 (cmd_qtstatus): Likewise.
9827 (response_source): Likewise.
9828 (response_tsv): Likewise.
9829 (cmd_qtnotes): Likewise.
9830 (gdb_collect): Likewise.
9831 (initialize_tracepoint): Likewise.
9833 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9835 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9836 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9837 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9839 (enum aarch64_condition_codes): New enum.
9840 (w0): New static global.
9843 (struct aarch64_memory_operand) <type>: New
9844 MEMORY_OPERAND_POSTINDEX type.
9845 (postindex_memory_operand): New helper function.
9846 (emit_ret): New function.
9847 (emit_load_store_pair): New function, factored out of emit_stp
9848 with support for MEMORY_OPERAND_POSTINDEX.
9849 (emit_stp): Rewrite using emit_load_store_pair.
9850 (emit_ldp): New function.
9851 (emit_load_store): Likewise.
9852 (emit_ldr): Mention post-index instruction in comment.
9853 (emit_ldrh): New function.
9854 (emit_ldrb): New function.
9855 (emit_ldrsw): Mention post-index instruction in comment.
9856 (emit_str): Likewise.
9857 (emit_subs): New function.
9858 (emit_cmp): Likewise.
9859 (emit_and): Likewise.
9860 (emit_orr): Likewise.
9861 (emit_orn): Likewise.
9862 (emit_eor): Likewise.
9863 (emit_mvn): Likewise.
9864 (emit_lslv): Likewise.
9865 (emit_lsrv): Likewise.
9866 (emit_asrv): Likewise.
9867 (emit_mul): Likewise.
9868 (emit_sbfm): Likewise.
9869 (emit_sbfx): Likewise.
9870 (emit_ubfm): Likewise.
9871 (emit_ubfx): Likewise.
9872 (emit_csinc): Likewise.
9873 (emit_cset): Likewise.
9874 (emit_nop): Likewise.
9875 (emit_ops_insns): New helper function.
9876 (emit_pop): Likewise.
9877 (emit_push): Likewise.
9878 (aarch64_emit_prologue): New function.
9879 (aarch64_emit_epilogue): Likewise.
9880 (aarch64_emit_add): Likewise.
9881 (aarch64_emit_sub): Likewise.
9882 (aarch64_emit_mul): Likewise.
9883 (aarch64_emit_lsh): Likewise.
9884 (aarch64_emit_rsh_signed): Likewise.
9885 (aarch64_emit_rsh_unsigned): Likewise.
9886 (aarch64_emit_ext): Likewise.
9887 (aarch64_emit_log_not): Likewise.
9888 (aarch64_emit_bit_and): Likewise.
9889 (aarch64_emit_bit_or): Likewise.
9890 (aarch64_emit_bit_xor): Likewise.
9891 (aarch64_emit_bit_not): Likewise.
9892 (aarch64_emit_equal): Likewise.
9893 (aarch64_emit_less_signed): Likewise.
9894 (aarch64_emit_less_unsigned): Likewise.
9895 (aarch64_emit_ref): Likewise.
9896 (aarch64_emit_if_goto): Likewise.
9897 (aarch64_emit_goto): Likewise.
9898 (aarch64_write_goto_address): Likewise.
9899 (aarch64_emit_const): Likewise.
9900 (aarch64_emit_call): Likewise.
9901 (aarch64_emit_reg): Likewise.
9902 (aarch64_emit_pop): Likewise.
9903 (aarch64_emit_stack_flush): Likewise.
9904 (aarch64_emit_zero_ext): Likewise.
9905 (aarch64_emit_swap): Likewise.
9906 (aarch64_emit_stack_adjust): Likewise.
9907 (aarch64_emit_int_call_1): Likewise.
9908 (aarch64_emit_void_call_2): Likewise.
9909 (aarch64_emit_eq_goto): Likewise.
9910 (aarch64_emit_ne_goto): Likewise.
9911 (aarch64_emit_lt_goto): Likewise.
9912 (aarch64_emit_le_goto): Likewise.
9913 (aarch64_emit_gt_goto): Likewise.
9914 (aarch64_emit_ge_got): Likewise.
9915 (aarch64_emit_ops_impl): New static global variable.
9916 (aarch64_emit_ops): New target function, return
9917 &aarch64_emit_ops_impl.
9918 (struct linux_target_ops): Install it.
9920 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9922 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9923 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9925 * linux-aarch64-ipa.c: New file.
9926 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9928 (aarch64_get_thread_area): New target method.
9929 (extract_signed_bitfield): New helper function.
9930 (aarch64_decode_ldr_literal): New function.
9931 (enum aarch64_opcodes): New enum.
9932 (struct aarch64_register): New struct.
9933 (struct aarch64_operand): New struct.
9934 (x0): New static global.
9943 (aarch64_register): New helper function.
9944 (register_operand): Likewise.
9945 (immediate_operand): Likewise.
9946 (struct aarch64_memory_operand): New struct.
9947 (offset_memory_operand): New helper function.
9948 (preindex_memory_operand): Likewise.
9949 (enum aarch64_system_control_registers): New enum.
9950 (ENCODE): New macro.
9951 (emit_insn): New helper function.
9952 (emit_b): New function.
9953 (emit_bcond): Likewise.
9954 (emit_cb): Likewise.
9955 (emit_tb): Likewise.
9956 (emit_blr): Likewise.
9957 (emit_stp): Likewise.
9958 (emit_ldp_q_offset): Likewise.
9959 (emit_stp_q_offset): Likewise.
9960 (emit_load_store): Likewise.
9961 (emit_ldr): Likewise.
9962 (emit_ldrsw): Likewise.
9963 (emit_str): Likewise.
9964 (emit_ldaxr): Likewise.
9965 (emit_stxr): Likewise.
9966 (emit_stlr): Likewise.
9967 (emit_data_processing_reg): Likewise.
9968 (emit_data_processing): Likewise.
9969 (emit_add): Likewise.
9970 (emit_sub): Likewise.
9971 (emit_mov): Likewise.
9972 (emit_movk): Likewise.
9973 (emit_mov_addr): Likewise.
9974 (emit_mrs): Likewise.
9975 (emit_msr): Likewise.
9976 (emit_sevl): Likewise.
9977 (emit_wfe): Likewise.
9978 (append_insns): Likewise.
9979 (can_encode_int32_in): New helper function.
9980 (aarch64_relocate_instruction): New function.
9981 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
9982 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
9983 (struct linux_target_ops): Install aarch64_get_thread_area,
9984 aarch64_install_fast_tracepoint_jump_pad and
9985 aarch64_get_min_fast_tracepoint_insn_len.
9987 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9989 * Makefile.in (aarch64-insn.o): New rule.
9990 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
9992 2015-09-21 Yao Qi <yao.qi@linaro.org>
9994 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
9996 2015-09-21 Yao Qi <yao.qi@linaro.org>
9998 * tracepoint.c (max_jump_pad_size): Remove.
10000 2015-09-18 Yao Qi <yao.qi@linaro.org>
10002 * linux-aarch64-low.c: Don't include sys/uio.h.
10003 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10005 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10007 * tracepoint.c (eval_result_type): Change prototype.
10008 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10010 2015-09-15 Pedro Alves <palves@redhat.com>
10012 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10013 Check whether to report exec events instead of checking whether
10014 multiprocess is enabled.
10016 2015-09-15 Pedro Alves <palves@redhat.com>
10019 * remote-utils.c (prepare_resume_reply): Merge
10020 TARGET_WAITKIND_VFORK_DONE switch case with the
10021 TARGET_WAITKIND_FORKED case.
10023 2015-09-15 Yao Qi <yao.qi@linaro.org>
10025 * server.c (handle_query): Check string comparison using
10026 "else if" instead of "if".
10028 2015-09-15 Yao Qi <yao.qi@linaro.org>
10030 * server.c (vCont_supported): New global variable.
10031 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10032 matches. Append ";vContSupported+" to own_buf.
10033 (handle_v_requests): Append ";s;S" to own_buf if target supports
10034 hardware single step or vCont_supported is false.
10035 (capture_main): Set vCont_supported to zero.
10037 2015-09-15 Yao Qi <yao.qi@linaro.org>
10039 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10041 (linux_supports_hardware_single_step): ... New function.
10042 (linux_target_ops): Update.
10043 * lynx-low.c (lynx_target_ops): Set field
10044 supports_hardware_single_step to target_can_do_hardware_single_step.
10045 * nto-low.c (nto_target_ops): Likewise.
10046 * spu-low.c (spu_target_ops): Likewise.
10047 * win32-low.c (win32_target_ops): Likewise.
10048 * target.c (target_can_do_hardware_single_step): New function.
10049 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10050 Remove. <supports_hardware_single_step>: New field.
10051 (target_supports_conditional_breakpoints): Remove.
10052 (target_supports_hardware_single_step): New macro.
10053 (target_can_do_hardware_single_step): Declare.
10054 * server.c (handle_query): Use target_supports_hardware_single_step
10055 instead of target_supports_conditional_breakpoints.
10057 2015-09-15 Yao Qi <yao.qi@linaro.org>
10059 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10061 (struct linux_target_ops the_low_target): Install
10062 aarch64_linux_siginfo_fixup.
10064 2015-09-11 Don Breazeal <donb@codesourcery.com>
10065 Luis Machado <lgustavo@codesourcery.com>
10067 * linux-low.c (linux_mourn): Static declaration.
10068 (linux_arch_setup): Move in front of
10069 handle_extended_wait.
10070 (linux_arch_setup_thread): New function.
10071 (handle_extended_wait): Handle exec events. Call
10072 linux_arch_setup_thread. Make event_lwp argument a
10073 pointer-to-a-pointer.
10074 (check_zombie_leaders): Do not check stopped threads.
10075 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10076 (linux_low_filter_event): Add lwp and thread for exec'ing
10077 non-leader thread if leader thread has been deleted.
10078 Refactor code into linux_arch_setup_thread and call it.
10079 Pass child lwp pointer by reference to handle_extended_wait.
10080 (linux_wait_for_event_filtered): Update comment.
10081 (linux_wait_1): Prevent clobbering exec event status.
10082 (linux_supports_exec_events): New function.
10083 (linux_target_ops) <supports_exec_events>: Initialize new member.
10084 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10086 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10087 * server.c (report_exec_events): New global variable.
10088 (handle_query): Handle qSupported query for exec-events feature.
10089 (captured_main): Initialize report_exec_events.
10090 * server.h (report_exec_events): Declare new global variable.
10091 * target.h (struct target_ops) <supports_exec_events>: New
10093 (target_supports_exec_events): New macro.
10094 * win32-low.c (win32_target_ops) <supports_exec_events>:
10095 Initialize new member.
10097 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10099 * linux-low.c (linux_low_enable_btrace): Remove.
10100 (linux_target_ops): Replace linux_low_enable_btrace with
10101 linux_enable_btrace.
10103 2015-09-03 Yao Qi <yao.qi@linaro.org>
10105 * linux-aarch64-low.c (aarch64_insert_point): Call
10106 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10109 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10111 * linux-low.c (check_stopped_by_breakpoint): Use
10112 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10114 2015-08-27 Pedro Alves <palves@redhat.com>
10116 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10118 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10120 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10121 the XNEW-family equivalent.
10122 (compile_bytecodes): Likewise.
10123 * dll.c (loaded_dll): Likewise.
10124 * event-loop.c (append_callback_event): Likewise.
10125 (create_file_handler): Likewise.
10126 (create_file_event): Likewise.
10127 * hostio.c (handle_open): Likewise.
10128 * inferiors.c (add_thread): Likewise.
10129 (add_process): Likewise.
10130 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10131 * linux-arm-low.c (arm_new_process): Likewise.
10132 (arm_new_thread): Likewise.
10133 * linux-low.c (add_to_pid_list): Likewise.
10134 (linux_add_process): Likewise.
10135 (handle_extended_wait): Likewise.
10136 (add_lwp): Likewise.
10137 (enqueue_one_deferred_signal): Likewise.
10138 (enqueue_pending_signal): Likewise.
10139 (linux_resume_one_lwp_throw): Likewise.
10140 (linux_resume_one_thread): Likewise.
10141 (linux_read_memory): Likewise.
10142 (linux_write_memory): Likewise.
10143 * linux-mips-low.c (mips_linux_new_process): Likewise.
10144 (mips_linux_new_thread): Likewise.
10145 (mips_add_watchpoint): Likewise.
10146 * linux-x86-low.c (initialize_low_arch): Likewise.
10147 * lynx-low.c (lynx_add_process): Likewise.
10148 * mem-break.c (set_raw_breakpoint_at): Likewise.
10149 (set_breakpoint): Likewise.
10150 (add_condition_to_breakpoint): Likewise.
10151 (add_commands_to_breakpoint): Likewise.
10152 (clone_agent_expr): Likewise.
10153 (clone_one_breakpoint): Likewise.
10154 * regcache.c (new_register_cache): Likewise.
10155 * remote-utils.c (look_up_one_symbol): Likewise.
10156 * server.c (queue_stop_reply): Likewise.
10157 (start_inferior): Likewise.
10158 (queue_stop_reply_callback): Likewise.
10159 (handle_target_event): Likewise.
10160 * spu-low.c (fetch_ppc_memory): Likewise.
10161 (store_ppc_memory): Likewise.
10162 * target.c (set_target_ops): Likewise.
10163 * thread-db.c (thread_db_load_search): Likewise.
10164 (try_thread_db_load_1): Likewise.
10165 * tracepoint.c (add_tracepoint): Likewise.
10166 (add_tracepoint_action): Likewise.
10167 (create_trace_state_variable): Likewise.
10168 (cmd_qtdpsrc): Likewise.
10169 (cmd_qtro): Likewise.
10170 (add_while_stepping_state): Likewise.
10171 * win32-low.c (child_add_thread): Likewise.
10172 (get_image_name): Likewise.
10174 2015-08-25 Yao Qi <yao.qi@linaro.org>
10176 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10178 2015-08-25 Yao Qi <yao.qi@linaro.org>
10180 * Makefile.in (aarch64-linux.o): New rule.
10181 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10183 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10184 (aarch64_init_debug_reg_state): Make it extern.
10185 (aarch64_linux_prepare_to_resume): Remove.
10187 2015-08-25 Yao Qi <yao.qi@linaro.org>
10189 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10190 lwp_arch_private_info and ptid_of_lwp.
10192 2015-08-25 Yao Qi <yao.qi@linaro.org>
10194 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10195 Find proc_info by find_process_pid. All callers updated.
10197 2015-08-25 Yao Qi <yao.qi@linaro.org>
10199 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10201 (debug_reg_change_callback): Remove.
10202 (aarch64_notify_debug_reg_change): Remove.
10204 2015-08-25 Yao Qi <yao.qi@linaro.org>
10206 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10207 Call current_lwp_ptid.
10209 2015-08-25 Yao Qi <yao.qi@linaro.org>
10211 * linux-aarch64-low.c (debug_reg_change_callback): Use
10214 2015-08-25 Yao Qi <yao.qi@linaro.org>
10216 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10218 2015-08-25 Yao Qi <yao.qi@linaro.org>
10220 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10222 2015-08-25 Yao Qi <yao.qi@linaro.org>
10224 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10227 2015-08-25 Yao Qi <yao.qi@linaro.org>
10229 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10231 (debug_reg_change_callback): Remove argument entry and add argument
10232 lwp. Remove local variable thread. Don't print thread id in the
10233 debugging output. Don't check whether pid of thread equals to pid.
10234 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10235 iterate_over_lwps instead find_inferior.
10237 2015-08-24 Pedro Alves <palves@redhat.com>
10239 * inferiors.c (get_first_process): New function.
10240 * inferiors.h (get_first_process): New declaration.
10241 * remote-utils.c (read_ptid): Default to the first process in the
10242 list, instead of to the current thread's process.
10244 2015-08-24 Pedro Alves <palves@redhat.com>
10246 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10247 * event-loop.c: Likewise.
10248 * remote-utils.c: Likewise.
10249 * tracepoint.c: Likewise.
10251 2015-08-24 Pedro Alves <palves@redhat.com>
10253 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10256 2015-08-21 Pedro Alves <palves@redhat.com>
10258 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10259 instead of literal 1.
10261 2015-08-21 Pedro Alves <palves@redhat.com>
10263 * tdesc.c (default_description): Explicitly zero-initialize.
10265 2015-08-21 Pedro Alves <palves@redhat.com>
10268 * inferiors.c (remove_thread): Discard any pending stop reply for
10270 * server.c (remove_all_on_match_pid): Rename to ...
10271 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10273 (discard_queued_stop_replies): Change parameter to a ptid. Now
10275 (handle_v_kill, kill_inferior_callback, captured_main)
10276 (process_serial_event): Adjust.
10277 * server.h (discard_queued_stop_replies): Declare.
10279 2015-08-21 Pedro Alves <palves@redhat.com>
10281 * linux-low.c (wait_for_sigstop): Always switch to no thread
10282 selected if the previously current thread dies.
10283 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10284 process instead of the current thread's.
10285 * remote-utils.c (input_interrupt): Don't check if there's no
10287 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10288 current thread to the general thread fails, error out.
10289 (handle_qxfer_auxv, handle_qxfer_libraries)
10290 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10291 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10292 (handle_query): Check if there's a thread selected instead of
10293 checking whether there's any thread in the thread list.
10294 (handle_qxfer_threads, handle_qxfer_btrace)
10295 (handle_qxfer_btrace_conf): Don't error out early if there's no
10296 thread in the thread list.
10297 (handle_v_cont, myresume): Don't set the current thread to the
10299 (process_serial_event) <Hg handling>: Also set thread_id if the
10300 previous general thread is still alive.
10301 (process_serial_event) <g/G handling>: If setting the current
10302 thread to the general thread fails, error out.
10303 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10304 thread's lwp instead of the current thread's.
10305 * target.c (set_desired_thread): If the desired thread was not
10306 found, leave the current thread pointing to NULL. Return an int
10307 (boolean) indicating success.
10308 * target.h (set_desired_thread): Change return type to int.
10310 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10312 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10313 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10315 (ps_get_thread_area): New function.
10317 2015-08-19 Gary Benson <gbenson@redhat.com>
10319 * hostio.c (handle_pread): Do not attempt to read more data
10320 than hostio_reply_with_data can fit in a packet.
10322 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10324 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10326 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10328 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10330 2015-08-06 Pedro Alves <palves@redhat.com>
10332 * tracepoint.c (expr_eval_result): Now an int.
10334 2015-08-06 Pedro Alves <palves@redhat.com>
10336 * gdbthread.h (struct regcache): Forward declare.
10337 (struct thread_info) <regcache_data>: Now a struct regcache
10339 * inferiors.c (inferior_regcache_data)
10340 (set_inferior_regcache_data): Now work with struct regcache
10342 * inferiors.h (struct regcache): Forward declare.
10343 (inferior_regcache_data, set_inferior_regcache_data): Now work
10344 with struct regcache pointers.
10345 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10346 (free_register_cache_thread): Remove struct regcache pointer
10349 2015-08-06 Pedro Alves <palves@redhat.com>
10351 * server.c (captured_main): On error, print the exception message
10352 to stderr, and if run_once is set, throw a quit.
10354 2015-08-06 Pedro Alves <palves@redhat.com>
10356 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10357 the current thread.
10359 2015-08-06 Pedro Alves <palves@redhat.com>
10361 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10362 reading beyond the passed in buffer length.
10364 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10366 * tracepoint.c (symbol_list) <required>: Remove.
10368 2015-08-06 Pedro Alves <palves@redhat.com>
10370 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10371 count if stopping and suspending threads.
10372 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10373 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10374 (linux_detach): Complete an ongoing step-over.
10375 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10377 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10378 (linux_wait_1): If passing a signal to the inferior after
10379 finishing a step-over, unsuspend and re-resume all lwps. If we
10380 see a single-step event but the thread should be continuing, don't
10381 pass the trap to gdb.
10382 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10383 internal_error instead of gdb_assert.
10384 (enqueue_pending_signal): New function.
10385 (check_ptrace_stopped_lwp_gone): Add debug output.
10386 (start_step_over): Use internal_error instead of gdb_assert.
10387 (complete_ongoing_step_over): New function.
10388 (linux_resume_one_thread): Don't resume a suspended thread.
10389 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10392 2015-08-06 Pedro Alves <palves@redhat.com>
10394 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10395 (linux_thread_alive): Use lwp_is_marked_dead.
10396 (extended_event_reported): Delete.
10397 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10398 instead of extended_event_reported.
10399 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10401 (lwp_is_marked_dead): New function.
10402 (lwp_running): Use lwp_is_marked_dead.
10403 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10406 2015-08-06 Pedro Alves <palves@redhat.com>
10408 * linux-low.c (linux_wait_1): Move fork event output out of the
10409 !report_to_gdb check. Pass event_child->waitstatus to
10410 target_waitstatus_to_string instead of ourstatus.
10412 2015-08-04 Yao Qi <yao.qi@linaro.org>
10414 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10415 if current_thread is 32 bit.
10417 2015-08-04 Yao Qi <yao.qi@linaro.org>
10419 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10420 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10421 * server.c (extended_protocol): Remove "static".
10422 * server.h (extended_protocol): Declare it.
10424 2015-08-04 Yao Qi <yao.qi@linaro.org>
10426 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10427 both aarch64 and aarch32.
10428 (aarch64_set_pc): Likewise.
10430 2015-08-04 Yao Qi <yao.qi@linaro.org>
10432 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10433 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10434 arm-with-neon.xml to srv_xmlfiles.
10435 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10436 (is_64bit_tdesc): New function.
10437 (aarch64_linux_read_description): New function.
10438 (aarch64_arch_setup): Call aarch64_linux_read_description.
10439 (regs_info): Rename to regs_info_aarch64.
10440 (aarch64_regs_info): Return right regs_info.
10441 (initialize_low_arch): Call initialize_low_arch_aarch32.
10443 2015-08-04 Yao Qi <yao.qi@linaro.org>
10445 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10446 * linux-aarch32-low.c: New file.
10447 * linux-aarch32-low.h: New file.
10448 * linux-arm-low.c (arm_fill_gregset): Move it to
10449 linux-aarch32-low.c.
10450 (arm_store_gregset): Likewise.
10451 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10452 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10453 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10454 (regs_info): Rename to regs_info_arm.
10455 (arm_regs_info): Return regs_info_aarch32 if
10456 have_ptrace_getregset is 1 and target description is
10457 arm_with_neon or arm_with_vfpv3.
10458 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10459 Call initialize_low_arch_aarch32 instead.
10461 2015-08-04 Yao Qi <yao.qi@linaro.org>
10463 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10464 * linux-low.c: ... here.
10465 * linux-low.h (have_ptrace_getregset): Declare it.
10467 2015-08-04 Pedro Alves <palves@redhat.com>
10469 * thread-db.c (struct thread_db): Use new typedefs.
10470 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10472 (disable_thread_event_reporting): Cast result of dlsym to
10473 destination function pointer type.
10474 (thread_db_mourn): Use td_ta_delete_ftype.
10476 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10478 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10480 (CDX_BREAKPOINT): Define for R2.
10481 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10482 (the_low_target): Add comments.
10484 2015-07-30 Yao Qi <yao.qi@linaro.org>
10486 * linux-arm-low.c (arm_hwcap): Remove it.
10487 (arm_read_description): New local variable arm_hwcap. Don't
10488 set arm_hwcap to zero.
10490 2015-07-30 Yao Qi <yao.qi@linaro.org>
10492 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10493 Use regcache->tdesc instead.
10494 (arm_store_wmmxregset): Likewise.
10495 (arm_fill_vfpregset): Likewise.
10496 (arm_store_vfpregset): Likewise.
10498 2015-07-30 Yao Qi <yao.qi@linaro.org>
10500 * linux-arm-low.c: Include arch/arm.h.
10501 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10502 (arm_store_gregset): Likewise.
10504 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10506 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10507 ptrace's 4th parameter.
10509 2015-07-27 Yao Qi <yao.qi@linaro.org>
10511 * configure.srv (case aarch64*-*-linux*): Don't set
10514 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10516 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10518 * linux-arm-low.c: Likewise.
10519 * linux-cris-low.c: Likewise.
10520 * linux-crisv32-low.c: Likewise.
10521 * linux-low.c: Likewise.
10522 * linux-m68k-low.c: Likewise.
10523 * linux-mips-low.c: Likewise.
10524 * linux-nios2-low.c: Likewise.
10525 * linux-s390-low.c: Likewise.
10526 * linux-sparc-low.c: Likewise.
10527 * linux-tic6x-low.c: Likewise.
10528 * linux-tile-low.c: Likewise.
10529 * linux-x86-low.c: Likewise.
10531 2015-07-24 Pedro Alves <palves@redhat.com>
10533 * config.in: Regenerate.
10534 * configure: Regenerate.
10536 2015-07-24 Pedro Alves <palves@redhat.com>
10538 * acinclude.m4: Include ../ptrace.m4.
10539 * configure.ac: Call GDB_AC_PTRACE.
10540 * config.in, configure: Regenerate.
10542 2015-07-24 Yao Qi <yao.qi@linaro.org>
10544 * linux-low.c (linux_create_inferior): Remove setting to
10545 proc->priv->new_inferior.
10546 (linux_attach): Likewise.
10547 (linux_low_filter_event): Likewise.
10548 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10550 2015-07-24 Yao Qi <yao.qi@linaro.org>
10552 * linux-low.c (linux_arch_setup): New function.
10553 (linux_low_filter_event): If proc->tdesc is NULL and
10554 proc->attached is true, call the_low_target.arch_setup.
10555 Otherwise, keep status pending, and return.
10556 (linux_resume_one_lwp_throw): Don't call get_pc if
10557 thread->while_stepping isn't NULL. Don't call
10558 get_thread_regcache if proc->tdesc is NULL.
10559 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10560 (linux_target_ops): Install arch_setup.
10561 * server.c (start_inferior): Call the_target->arch_setup.
10562 * target.h (struct target_ops) <arch_setup>: New field.
10563 (target_arch_setup): New marco.
10564 * lynx-low.c (lynx_target_ops): Update.
10565 * nto-low.c (nto_target_ops): Update.
10566 * spu-low.c (spu_target_ops): Update.
10567 * win32-low.c (win32_target_ops): Update.
10569 2015-07-24 Yao Qi <yao.qi@linaro.org>
10571 * linux-low.c (linux_add_process): Don't set
10572 proc->priv->new_inferior.
10573 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10574 (linux_attach): Likewise.
10576 2015-07-24 Yao Qi <yao.qi@linaro.org>
10578 * server.c (start_inferior): Code refactor.
10580 2015-07-24 Yao Qi <yao.qi@linaro.org>
10582 * server.c (process_serial_event): Set general_thread.
10584 2015-07-21 Yao Qi <yao.qi@linaro.org>
10586 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10587 aarch64_linux_get_debug_reg_capacity.
10589 2015-07-17 Yao Qi <yao.qi@linaro.org>
10591 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10592 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10593 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10594 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10595 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10596 (AARCH64_HWP_ALIGNMENT): Likewise.
10597 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10598 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10599 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10600 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10601 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10602 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10603 (struct aarch64_debug_reg_state): Likewise.
10604 (struct arch_lwp_info): Likewise.
10605 (aarch64_align_watchpoint): Likewise.
10606 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10607 (aarch64_watchpoint_length): Likewise.
10608 (aarch64_point_encode_ctrl_reg): Likewise
10609 (aarch64_point_is_aligned): Likewise.
10610 (aarch64_align_watchpoint): Likewise.
10611 (aarch64_linux_set_debug_regs):
10612 (aarch64_dr_state_insert_one_point): Likewise.
10613 (aarch64_dr_state_remove_one_point): Likewise.
10614 (aarch64_handle_breakpoint): Likewise.
10615 (aarch64_handle_aligned_watchpoint): Likewise.
10616 (aarch64_handle_unaligned_watchpoint): Likewise.
10617 (aarch64_handle_watchpoint): Likewise.
10619 2015-07-17 Yao Qi <yao.qi@linaro.org>
10621 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10622 and don't aarch64_get_debug_reg_state. All callers update.
10623 (aarch64_handle_aligned_watchpoint): Likewise.
10624 (aarch64_handle_unaligned_watchpoint): Likewise.
10625 (aarch64_handle_watchpoint): Likewise.
10626 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10627 (aarch64_remove_point): Likewise.
10629 2015-07-17 Yao Qi <yao.qi@linaro.org>
10631 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10633 (aarch64_handle_unaligned_watchpoint): Likewise.
10635 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10637 Revert the previous 3 commits:
10638 Move gdb_regex* to common/
10639 Move linux_find_memory_regions_full & co.
10640 gdbserver build-id attribute generator
10642 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10643 Jan Kratochvil <jan.kratochvil@redhat.com>
10645 gdbserver build-id attribute generator.
10646 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10647 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10648 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10650 (get_dynamic): Use find_pdhr to traverse program headers.
10651 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10652 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10653 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10654 (get_hex_build_id): New.
10655 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10656 to reply XML document.
10658 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10659 Jan Kratochvil <jan.kratochvil@redhat.com>
10661 * target.c: Include target/target-utils.h and fcntl.h.
10662 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10663 (target_fileio_read_stralloc): New functions.
10665 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10667 * Makefile.in (OBS): Add gdb_regex.o.
10668 (gdb_regex.o): New.
10669 * config.in: Rebuilt.
10670 * configure: Rebuilt.
10672 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10673 Jan Kratochvil <jan.kratochvil@redhat.com>
10675 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10676 * Makefile.in (OBS): Add target-utils.o.
10677 (linux-maps.o, target-utils.o): New.
10678 * configure.srv (srv_linux_obj): Add linux-maps.o.
10680 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10682 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10683 function, return 1.
10684 (the_low_target): Install it.
10686 2015-07-14 Pedro Alves <palves@redhat.com>
10688 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10689 Instead, ignore ECHILD, and throw an error for other errnos.
10691 2015-07-10 Pedro Alves <palves@redhat.com>
10693 * event-loop.c (struct callback_event) <data>: Change type to
10694 gdb_client_data instance instead of gdb_client_data pointer.
10695 (append_callback_event): Adjust.
10697 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10699 * linux-aarch64-low.c: Add comments for each linux_target_ops
10700 method. Remove comments already covered in target_ops and
10701 linux_target_ops definitions.
10702 (the_low_target): Add comments for each unimplemented method.
10704 2015-07-09 Yao Qi <yao.qi@linaro.org>
10706 * linux-aarch64-low.c (aarch64_regmap): Remove.
10707 (aarch64_usrregs_info): Remove.
10708 (regs_info): Set field usrregs to NULL.
10710 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10712 * linux-low.c: Include "rsp-low.h"
10713 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10714 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10715 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10716 (handle_btrace_enable_pt): New.
10717 (handle_btrace_general_set): Support "pt".
10718 (handle_btrace_conf_general_set): Support "pt:size".
10720 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10722 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10725 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10727 * linux-aarch64-low.c: Remove comment about endianness.
10728 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10729 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10732 2015-06-24 Gary Benson <gbenson@redhat.com>
10734 * linux-i386-ipa.c (stdint.h): Do not include.
10735 * lynx-i386-low.c (stdint.h): Likewise.
10736 * lynx-ppc-low.c (stdint.h): Likewise.
10737 * mem-break.c (stdint.h): Likewise.
10738 * thread-db.c (stdint.h): Likewise.
10739 * tracepoint.c (stdint.h): Likewise.
10740 * win32-low.c (stdint.h): Likewise.
10742 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10744 * server.c (write_qxfer_response): Update call to
10745 remote_escape_output.
10747 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10748 Jan Kratochvil <jan.kratochvil@redhat.com>
10750 Merge multiple hex conversions.
10751 * gdbreplay.c (tohex): Rename to 'fromhex'.
10752 (logchar): Use fromhex.
10754 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10756 * server.c (handle_qxfer_libraries): Set `version' attribute for
10759 2015-06-10 Gary Benson <gbenson@redhat.com>
10761 * target.h (struct target_ops) <multifs_open>: New field.
10762 <multifs_unlink>: Likewise.
10763 <multifs_readlink>: Likewise.
10764 * linux-low.c (nat/linux-namespaces.h): New include.
10765 (linux_target_ops): Initialize the_target->multifs_open,
10766 the_target->multifs_unlink and the_target->multifs_readlink.
10767 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10768 * hostio.c (hostio_fs_pid): New static variable.
10769 (hostio_handle_new_gdb_connection): New function.
10770 (handle_setfs): Likewise.
10771 (handle_open): Use the_target->multifs_open as appropriate.
10772 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10773 (handle_readlink): Use the_target->multifs_readlink as
10775 (handle_vFile): Handle vFile:setfs packets.
10776 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10777 after target_handle_new_gdb_connection.
10779 2015-06-10 Gary Benson <gbenson@redhat.com>
10781 * configure.ac (AC_CHECK_FUNCS): Add setns.
10782 * config.in: Regenerate.
10783 * configure: Likewise.
10784 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10785 (linux-namespaces.o): New rule.
10786 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10788 2015-06-09 Gary Benson <gbenson@redhat.com>
10790 * hostio.c (handle_open): Process mode argument with
10791 fileio_to_host_mode.
10793 2015-06-01 Yao Qi <yao.qi@linaro.org>
10795 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10796 * linux-x86-low.c: Likewise.
10798 2015-05-28 Don Breazeal <donb@codesourcery.com>
10800 * linux-low.c (handle_extended_wait): Initialize
10801 thread_info.last_resume_kind for new fork children.
10803 2015-05-15 Pedro Alves <palves@redhat.com>
10805 * target.h (target_handle_new_gdb_connection): Rewrite using if
10806 wrapped in do/while.
10808 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10810 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10811 * configure, config.in: Regenerate.
10812 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10815 2015-05-12 Don Breazeal <donb@codesourcery.com>
10817 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10818 PTRACE_EVENT_VFORK_DONE.
10819 (linux_low_ptrace_options, extended_event_reported): Add vfork
10821 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10822 and "vforkdone" for RSP 'T' Stop Reply Packet.
10823 * server.h (report_vfork_events): Declare
10826 2015-05-12 Don Breazeal <donb@codesourcery.com>
10828 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10829 (the_low_target) <new_fork>: Initialize new member.
10830 * linux-arm-low.c (arm_new_fork): New function.
10831 (the_low_target) <new_fork>: Initialize new member.
10832 * linux-low.c (handle_extended_wait): Call new target function
10834 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10835 * linux-mips-low.c (mips_add_watchpoint): New function
10836 extracted from mips_insert_point.
10837 (the_low_target) <new_fork>: Initialize new member.
10838 (mips_linux_new_fork): New function.
10839 (mips_insert_point): Call mips_add_watchpoint.
10840 * linux-x86-low.c (x86_linux_new_fork): New function.
10841 (the_low_target) <new_fork>: Initialize new member.
10843 2015-05-12 Don Breazeal <donb@codesourcery.com>
10845 * linux-low.c (handle_extended_wait): Implement return value,
10846 rename argument 'event_child' to 'event_lwp', handle
10847 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10848 (linux_low_ptrace_options): New function.
10849 (linux_low_filter_event): Call linux_low_ptrace_options,
10850 use different argument fo linux_enable_event_reporting,
10851 use return value from handle_extended_wait.
10852 (extended_event_reported): New function.
10853 (linux_wait_1): Call extended_event_reported and set
10854 status to report fork events.
10855 (linux_write_memory): Add pid to debug message.
10856 (reset_lwp_ptrace_options_callback): New function.
10857 (linux_handle_new_gdb_connection): New function.
10858 (linux_target_ops): Initialize new structure member.
10859 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10860 * lynx-low.c: Initialize new structure member.
10861 * remote-utils.c (prepare_resume_reply): Implement stop reason
10862 "fork" for "T" stop message.
10863 * server.c (handle_query): Call handle_new_gdb_connection.
10864 * server.h (report_fork_events): Declare global flag.
10865 * target.h (struct target_ops) <handle_new_gdb_connection>:
10867 (target_handle_new_gdb_connection): New macro.
10868 * win32-low.c: Initialize new structure member.
10870 2015-05-12 Don Breazeal <donb@codesourcery.com>
10872 * mem-break.c (APPEND_TO_LIST): Define macro.
10873 (clone_agent_expr): New function.
10874 (clone_one_breakpoint): New function.
10875 (clone_all_breakpoints): New function.
10876 * mem-break.h: Declare new functions.
10878 2015-05-12 Don Breazeal <donb@codesourcery.com>
10880 * linux-low.c (linux_supports_fork_events): New function.
10881 (linux_supports_vfork_events): New function.
10882 (linux_target_ops): Initialize new structure members.
10883 (initialize_low): Call linux_check_ptrace_features.
10884 * lynx-low.c (lynx_target_ops): Initialize new structure
10886 * server.c (report_fork_events, report_vfork_events):
10888 (handle_query): Add new features to qSupported packet and
10890 (captured_main): Initialize new global variables.
10891 * target.h (struct target_ops) <supports_fork_events>:
10893 <supports_vfork_events>: New member.
10894 (target_supports_fork_events): New macro.
10895 (target_supports_vfork_events): New macro.
10896 * win32-low.c (win32_target_ops): Initialize new structure
10899 2015-05-12 Gary Benson <gbenson@redhat.com>
10901 * server.c (handle_qxfer_exec_file): Use current process
10904 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10906 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10907 Remove HAVE_PTRACE_GETREGS conditionals.
10908 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10909 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10911 2015-05-08 Yao Qi <yao.qi@linaro.org>
10913 * linux-low.c (linux_supports_conditional_breakpoints): New
10915 (linux_target_ops): Install new target method.
10916 * lynx-low.c (lynx_target_ops): Install NULL hook for
10917 supports_conditional_breakpoints.
10918 * nto-low.c (nto_target_ops): Likewise.
10919 * spu-low.c (spu_target_ops): Likewise.
10920 * win32-low.c (win32_target_ops): Likewise.
10921 * server.c (handle_query): Check
10922 target_supports_conditional_breakpoints.
10923 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10925 (target_supports_conditional_breakpoints): New macro.
10927 2015-05-06 Pedro Alves <palves@redhat.com>
10930 * server.c (start_inferior): If the process exits, mourn it.
10932 2015-04-21 Gary Benson <gbenson@redhat.com>
10934 * hostio.c (fileio_open_flags_to_host): Factored out to
10935 fileio_to_host_openflags in common/fileio.c. Single use
10938 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10940 * linux-xtensa-low.c (xtensa_fill_gregset)
10941 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10944 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10946 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10947 (regs_info): Replace usrregs pointer with NULL.
10949 2015-04-17 Gary Benson <gbenson@redhat.com>
10951 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10952 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10953 * server.c (handle_qxfer_exec_file): New function.
10954 (qxfer_packets): Add exec-file entry.
10955 (handle_query): Report qXfer:exec-file:read as supported packet.
10957 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10959 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10961 2015-04-09 Gary Benson <gbenson@redhat.com>
10963 * hostio-errno.c (errno_to_fileio_error): Remove function.
10964 Update caller to use remote_fileio_to_fio_error.
10966 2015-04-09 Yao Qi <yao.qi@linaro.org>
10968 * linux-low.c (linux_insert_point): Call
10969 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10970 (linux_remove_point): Call remove_memory_breakpoint if type is
10972 * linux-x86-low.c (x86_insert_point): Don't call
10973 insert_memory_breakpoint.
10974 (x86_remove_point): Don't call remove_memory_breakpoint.
10976 2015-04-01 Pedro Alves <palves@redhat.com>
10977 Cleber Rosa <crosa@redhat.com>
10979 * server.c (gdbserver_usage): Reorganize and extend the usage
10982 2015-03-24 Pedro Alves <palves@redhat.com>
10984 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
10985 output. Also dump TRAP_TRACE.
10986 (linux_low_filter_event): In debug output, distinguish a
10987 resume_stop SIGSTOP from a delayed SIGSTOP.
10989 2015-03-24 Gary Benson <gbenson@redhat.com>
10991 * linux-x86-low.c (x86_linux_new_thread): Moved to
10993 (x86_linux_prepare_to_resume): Likewise.
10995 2015-03-24 Gary Benson <gbenson@redhat.com>
10997 * Makefile.in (x86-linux-dregs.o): New rule.
10998 * configure.srv: Add x86-linux-dregs.o to relevant targets.
10999 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11000 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11001 (x86_linux_dr_get): Likewise.
11002 (x86_linux_dr_set): Likewise.
11003 (update_debug_registers_callback): Likewise.
11004 (x86_linux_dr_set_addr): Likewise.
11005 (x86_linux_dr_get_addr): Likewise.
11006 (x86_linux_dr_set_control): Likewise.
11007 (x86_linux_dr_get_control): Likewise.
11008 (x86_linux_dr_get_status): Likewise.
11009 (x86_linux_update_debug_registers): Likewise.
11011 2015-03-24 Gary Benson <gbenson@redhat.com>
11013 * linux-x86-low.c (x86_linux_update_debug_registers):
11014 New function, factored out from...
11015 (x86_linux_prepare_to_resume): ...this.
11017 2015-03-24 Gary Benson <gbenson@redhat.com>
11019 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11020 (x86_linux_dr_set): Likewise.
11021 (update_debug_registers_callback): Likewise.
11022 (x86_linux_dr_set_addr): Likewise.
11023 (x86_linux_dr_get_addr): Likewise.
11024 (x86_linux_dr_set_control): Likewise.
11025 (x86_linux_dr_get_control): Likewise.
11026 (x86_linux_dr_get_status): Likewise.
11027 (x86_linux_prepare_to_resume): Likewise.
11029 2015-03-24 Gary Benson <gbenson@redhat.com>
11031 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11032 Use perror_with_name. Pass string through gettext.
11033 (x86_linux_dr_set): Likewise.
11035 2015-03-24 Gary Benson <gbenson@redhat.com>
11037 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11038 (x86_linux_dr_set_addr): ...this.
11039 (x86_dr_low_get_addr): Rename to...
11040 (x86_linux_dr_get_addr): ...this.
11041 (x86_dr_low_set_control): Rename to...
11042 (x86_linux_dr_set_control): ...this.
11043 (x86_dr_low_get_control): Rename to...
11044 (x86_linux_dr_get_control): ...this.
11045 (x86_dr_low_get_status): Rename to...
11046 (x86_linux_dr_get_status): ...this.
11047 (x86_dr_low): Update with new function names.
11049 2015-03-24 Gary Benson <gbenson@redhat.com>
11051 * Makefile.in (x86-linux.o): New rule.
11052 * configure.srv: Add x86-linux.o to relevant targets.
11053 * linux-low.c (lwp_set_arch_private_info): New function.
11054 (lwp_arch_private_info): Likewise.
11055 * linux-x86-low.c: Include nat/x86-linux.h.
11056 (arch_lwp_info): Removed structure.
11057 (update_debug_registers_callback):
11058 Use lwp_set_debug_registers_changed.
11059 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11060 and lwp_set_debug_registers_changed.
11061 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11063 2015-03-24 Gary Benson <gbenson@redhat.com>
11065 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11066 * linux-arm-low.c (arm_new_thread): Likewise.
11067 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11068 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11069 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11070 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11072 2015-03-24 Gary Benson <gbenson@redhat.com>
11074 * linux-low.c (ptid_of_lwp): New function.
11075 (lwp_is_stopped): Likewise.
11076 (lwp_stop_reason): Likewise.
11077 * linux-x86-low.c (update_debug_registers_callback):
11078 Use lwp_is_stopped.
11079 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11082 2015-03-24 Gary Benson <gbenson@redhat.com>
11084 * linux-low.h (linux_stop_lwp): Remove declaration.
11086 2015-03-24 Gary Benson <gbenson@redhat.com>
11088 * linux-low.h: Include nat/linux-nat.h.
11089 * linux-low.c (iterate_over_lwps_args): New structure.
11090 (iterate_over_lwps_filter): New function.
11091 (iterate_over_lwps): Likewise.
11092 * linux-x86-low.c (update_debug_registers_callback):
11093 Update signature to what iterate_over_lwps expects.
11094 Remove PID check that iterate_over_lwps now performs.
11095 (x86_dr_low_set_addr): Use iterate_over_lwps.
11096 (x86_dr_low_set_control): Likewise.
11098 2015-03-24 Gary Benson <gbenson@redhat.com>
11100 * linux-x86-low.c (x86_debug_reg_state): New function.
11101 (x86_linux_prepare_to_resume): Use the above.
11103 2015-03-24 Gary Benson <gbenson@redhat.com>
11105 * linux-low.c (current_lwp_ptid): New function.
11106 * linux-x86-low.c: Include nat/linux-nat.h.
11107 (x86_dr_low_get_addr): Use current_lwp_ptid.
11108 (x86_dr_low_get_control): Likewise.
11109 (x86_dr_low_get_status): Likewise.
11111 2015-03-20 Pedro Alves <palves@redhat.com>
11113 * tracepoint.c (cmd_qtstatus): Make "str" const.
11115 2015-03-20 Pedro Alves <palves@redhat.com>
11117 * server.c (handle_general_set): Make "req_str" const.
11119 2015-03-19 Pedro Alves <palves@redhat.com>
11121 * linux-low.c (linux_resume_one_lwp): Rename to ...
11122 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11123 instead call perror_with_name.
11124 (check_ptrace_stopped_lwp_gone): New function.
11125 (linux_resume_one_lwp): Reimplement as wrapper around
11126 linux_resume_one_lwp_throw that swallows errors if the LWP is
11129 2015-03-19 Pedro Alves <palves@redhat.com>
11131 * linux-low.c (count_events_callback, select_event_lwp_callback):
11132 No longer check whether the thread has resume_stop as last resume
11135 2015-03-19 Pedro Alves <palves@redhat.com>
11137 * linux-low.c (count_events_callback, select_event_lwp_callback):
11138 Use the lwp's status_pending_p field, not the thread's.
11140 2015-03-19 Pedro Alves <palves@redhat.com>
11142 * linux-low.c (select_event_lwp_callback): Update comments to
11143 no longer mention SIGTRAP.
11145 2015-03-18 Gary Benson <gbenson@redhat.com>
11147 * server.c (handle_query): Do not report vFile:fstat as supported.
11149 2015-03-11 Gary Benson <gbenson@redhat.com>
11151 * hostio.c (sys/types.h): New include.
11152 (sys/stat.h): Likewise.
11153 (common-remote-fileio.h): Likewise.
11154 (handle_fstat): New function.
11155 (handle_vFile): Handle vFile:fstat packets.
11157 2015-03-11 Gary Benson <gbenson@redhat.com>
11159 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11160 struct stat.st_blocks and struct stat.st_blksize.
11161 * configure: Regenerate.
11162 * config.in: Likewise.
11163 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11164 (OBS): Add common-remote-fileio.o.
11165 (common-remote-fileio.o): New rule.
11167 2015-03-09 Pedro Alves <palves@redhat.com>
11169 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11170 'struct sockaddr' pointer in 'accept' call.
11172 2015-03-09 Pedro Alves <palves@redhat.com>
11175 2015-03-07 Pedro Alves <palves@redhat.com>
11176 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11177 or <winsock2.h> here. Instead include "gdb_socket.h".
11178 (remote_open): Use union gdb_sockaddr_u.
11179 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11180 or <winsock2.h> here. Instead include "gdb_socket.h".
11181 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11182 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11184 (init_named_socket, gdb_agent_helper_thread): Use union
11187 2015-03-07 Pedro Alves <palves@redhat.com>
11189 * configure.ac (build_warnings): Move
11190 -Wdeclaration-after-statement to the C-specific set.
11191 * configure: Regenerate.
11193 2015-03-07 Pedro Alves <palves@redhat.com>
11195 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11196 or <winsock2.h> here. Instead include "gdb_socket.h".
11197 (remote_open): Use union gdb_sockaddr_u.
11198 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11199 or <winsock2.h> here. Instead include "gdb_socket.h".
11200 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11201 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11203 (init_named_socket, gdb_agent_helper_thread): Use union
11206 2015-03-07 Pedro Alves <palves@redhat.com>
11208 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11211 2015-03-06 Yao Qi <yao.qi@linaro.org>
11213 * linux-aarch64-low.c (aarch64_insert_point): Use
11214 show_debug_regs as a boolean.
11215 (aarch64_remove_point): Likewise.
11217 2015-03-05 Pedro Alves <palves@redhat.com>
11219 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11220 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11221 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11222 * nto-low.c (nto_target_ops): Likewise.
11223 * spu-low.c (spu_target_ops): Likewise.
11224 * win32-low.c (win32_target_ops): Likewise.
11226 2015-03-04 Pedro Alves <palves@redhat.com>
11228 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11229 Decide whether a breakpoint triggered based on the SIGTRAP's
11231 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11232 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11233 (linux_low_filter_event): Check for breakpoints before checking
11235 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11237 (linux_stopped_by_sw_breakpoint)
11238 (linux_supports_stopped_by_sw_breakpoint)
11239 (linux_stopped_by_hw_breakpoint)
11240 (linux_supports_stopped_by_hw_breakpoint): New functions.
11241 (linux_target_ops): Install new target methods.
11243 2015-03-04 Pedro Alves <palves@redhat.com>
11245 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11246 * server.c (swbreak_feature, hwbreak_feature): New globals.
11247 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11248 (captured_main): Clear swbreak_feature and hwbreak_feature.
11249 * server.h (swbreak_feature, hwbreak_feature): Declare.
11250 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11251 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11252 supports_stopped_by_hw_breakpoint>: New fields.
11253 (target_supports_stopped_by_sw_breakpoint)
11254 (target_stopped_by_sw_breakpoint)
11255 (target_supports_stopped_by_hw_breakpoint)
11256 (target_stopped_by_hw_breakpoint): Declare.
11258 2015-03-04 Pedro Alves <palves@redhat.com>
11260 enum lwp_stop_reason -> enum target_stop_reason
11261 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11262 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11263 (linux_wait_1, stuck_in_jump_pad_callback)
11264 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11265 (linux_stopped_by_watchpoint):
11266 * linux-low.h (enum lwp_stop_reason): Delete.
11267 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11268 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11270 2015-03-04 Yao Qi <yao.qi@linaro.org>
11272 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11274 2015-03-03 Gary Benson <gbenson@redhat.com>
11276 * hostio.c (handle_vFile): Fix prefix lengths.
11278 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11280 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11283 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11285 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11286 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11287 (clean): Add "rm -f" for above C files.
11288 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11289 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11290 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11291 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11292 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11293 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11294 (init_registers_s390x_vx_linux64)
11295 (init_registers_s390x_tevx_linux64)
11296 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11297 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11299 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11300 (s390_store_vxrs_high): New functions.
11301 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11303 (s390_arch_setup): Add logic for selecting one of the new target
11304 descriptions. Activate the new vector regsets if applicable.
11305 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11306 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11307 and init_registers_s390x_tevx_linux64.
11309 2015-03-01 Pedro Alves <palves@redhat.com>
11311 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11314 2015-02-27 Pedro Alves <palves@redhat.com>
11316 * linux-x86-low.c (u_debugreg_offset): New function.
11317 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11319 2015-02-27 Pedro Alves <palves@redhat.com>
11321 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11322 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11323 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11324 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11325 (ps_lsetfpregs, ps_getpid)
11326 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11327 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11328 (ps_lsetxregs, ps_plog): Declare.
11330 2015-02-27 Pedro Alves <palves@redhat.com>
11332 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11333 IP_AGENT_EXPORT_FUNC.
11334 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11335 IP_AGENT_EXPORT_FUNC.
11336 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11337 (IP_AGENT_EXPORT): Delete.
11338 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11339 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11340 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11341 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11342 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11343 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11344 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11345 (traceframe_read_count, traceframe_write_count)
11346 (traceframes_created, trace_state_variables, get_raw_reg)
11347 (get_trace_state_variable_value, set_trace_state_variable_value)
11348 (ust_loaded, helper_thread_id, cmd_buf): Use
11349 IPA_SYM_EXPORTED_NAME.
11350 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11351 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11352 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11353 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11354 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11355 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11356 EXTERN_C_PUSH/EXTERN_C_POP.
11357 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11358 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11359 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11360 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11361 (traceframe_write_count, traceframe_read_count)
11362 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11363 (about_to_request_buffer_space, get_trace_state_variable_value)
11364 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11365 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11366 EXTERN_C_PUSH/EXTERN_C_POP.
11367 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11368 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11369 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11370 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11371 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11372 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11373 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11374 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11376 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11377 (IP_AGENT_EXPORT_VAR_DECL): Define.
11378 (tracing): Declare.
11379 (gdb_agent_get_raw_reg): Declare.
11381 2015-02-27 Tom Tromey <tromey@redhat.com>
11382 Pedro Alves <palves@redhat.com>
11384 Rename symbols whose names are reserved C++ keywords throughout.
11386 2015-02-27 Pedro Alves <palves@redhat.com>
11388 * Makefile.in (COMPILER): New, get it from autoconf.
11389 (CXX): Get from autoconf instead.
11390 (COMPILE.pre): Use COMPILER.
11391 (CC-LD): Rename to ...
11392 (CC_LD): ... this. Use COMPILER.
11393 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11394 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11395 * acinclude.m4: Include build-with-cxx.m4.
11396 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11397 Disable -Werror by default if building in C++ mode.
11398 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11399 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11400 the C++ compiler. Save/restore CXXFLAGS too.
11401 * configure: Regenerate.
11403 2015-02-27 Pedro Alves <palves@redhat.com>
11405 * acinclude.m4: Include libiberty.m4.
11406 * configure.ac: Call libiberty_INIT.
11407 * config.in, configure: Regenerate.
11409 2015-02-26 Pedro Alves <palves@redhat.com>
11411 * linux-low.c (linux_wait_1): When incrementing the PC past a
11412 program breakpoint always use the_low_target.breakpoint_len as
11413 increment, rather than the maximum between that and
11414 the_low_target.decr_pc_after_break.
11416 2015-02-23 Pedro Alves <palves@redhat.com>
11418 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11419 thread was doing a step-over; always adjust the PC if
11420 we stepped over a permanent breakpoint.
11421 (linux_wait_1): If we stepped over breakpoint that was on top of a
11422 permanent breakpoint, manually advance the PC past it.
11424 2015-02-23 Pedro Alves <palves@redhat.com>
11426 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11428 (x86_fill_gregset, x86_store_gregset): Use it when handling
11431 2015-02-20 Pedro Alves <palves@redhat.com>
11433 * thread-db.c: Include "nat/linux-procfs.h".
11434 (thread_db_init): Skip listing new threads if the kernel supports
11435 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11437 2015-02-20 Pedro Alves <palves@redhat.com>
11439 * linux-low.c (status_pending_p_callback): Use ptid_match.
11441 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11443 PR breakpoints/16812
11444 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11445 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11446 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11448 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11450 PR breakpoints/15956
11451 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11453 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11455 * linux-low.c (linux_low_btrace_conf): Print size.
11456 * server.c (handle_btrace_conf_general_set): New.
11457 (hanle_general_set): Call handle_btrace_conf_general_set.
11458 (handle_query): Report Qbtrace-conf:bts:size as supported.
11460 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11462 * linux-low.c (linux_low_enable_btrace): Update parameters.
11463 (linux_low_btrace_conf): New.
11464 (linux_target_ops)<to_btrace_conf>: Initialize.
11465 * server.c (current_btrace_conf): New.
11466 (handle_btrace_enable): Rename to ...
11467 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11468 to target_enable_btrace. Update comment. Update users.
11469 (handle_qxfer_btrace_conf): New.
11470 (qxfer_packets): Add btrace-conf entry.
11471 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11472 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11473 (target_ops)<read_btrace_conf>: New.
11474 (target_enable_btrace): Update parameters.
11475 (target_read_btrace_conf): New.
11477 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11479 * server.c (handle_btrace_general_set): Remove call to
11480 target_supports_btrace.
11481 (supported_btrace_packets): New.
11482 (handle_query): Call supported_btrace_packets.
11483 * target.h: include btrace-common.h.
11484 (btrace_target_info): Removed.
11485 (supports_btrace, target_supports_btrace): Update parameters.
11487 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11489 * Makefile.in (SFILES): Add common/btrace-common.c.
11490 (OBS): Add common/btrace-common.o.
11491 (btrace-common.o): Add build rules.
11492 * linux-low: Include btrace-common.h.
11493 (linux_low_read_btrace): Use struct btrace_data. Call
11494 btrace_data_init and btrace_data_fini.
11496 2015-02-06 Pedro Alves <palves@redhat.com>
11498 * thread-db.c (find_new_threads_callback): Add debug output.
11500 2015-02-04 Pedro Alves <palves@redhat.com>
11502 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11503 (resume_stopped_resumed_lwps): New function.
11504 (linux_wait_for_event_filtered): Use it.
11506 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11508 * Makefile.in (SFILES): Add linux-personality.c.
11509 (linux-personality.o): New rule.
11510 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11511 list of objects to be built.
11512 * linux-low.c: Include nat/linux-personality.h.
11513 (linux_create_inferior): Remove code to disable address space
11514 randomization (moved to ../nat/linux-personality.c). Create
11515 cleanup to disable address space randomization.
11517 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11519 * Makefile.in (posix-strerror.o): New rule.
11520 (mingw-strerror.o): Likewise.
11521 * configure: Regenerated.
11522 * configure.ac: Source file ../common/common.host. Initialize new
11523 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11525 2015-01-14 Yao Qi <yao@codesourcery.com>
11527 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11528 (ppc-linux.o): New rule.
11529 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11530 * configure.ac: AC_CHECK_FUNCS(getauxval).
11531 * config.in: Re-generated.
11532 * configure: Re-generated.
11533 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11534 ppc64_64bit_inferior_p
11536 2015-01-14 Yao Qi <yao@codesourcery.com>
11538 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11539 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11540 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11541 (PT_ORIG_R3, PT_TRAP): Likewise.
11542 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11543 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11544 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11546 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11548 * i387-fp.c (i387_cache_to_xsave): In look over
11549 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11550 zmmh_low_space field by use of zmmh_high_space.
11552 2015-01-09 Pedro Alves <palves@redhat.com>
11554 * linux-low.c (step_over_bkpt): Move higher up in the file.
11555 (handle_extended_wait): Don't store the stop_pc here.
11556 (get_stop_pc): Adjust comments and rename to ...
11557 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11558 stopped for a software breakpoint or hardware breakpoint.
11559 (thread_still_has_status_pending_p): New function.
11560 (status_pending_p_callback): Use
11561 thread_still_has_status_pending_p. If the event is no longer
11562 interesting, resume the LWP.
11563 (handle_tracepoints): Add assert.
11564 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11565 (wstatus_maybe_breakpoint): New function.
11566 (cancel_breakpoint): Delete function.
11567 (check_stopped_by_watchpoint): New function, factored out from
11568 linux_low_filter_event.
11569 (lp_status_maybe_breakpoint): Delete function.
11570 (linux_low_filter_event): Remove filter_ptid argument.
11571 Leave thread group exits pending here. Store the LWP's stop PC.
11572 Always leave events pending.
11573 (linux_wait_for_event_filtered): Pull all events out of the
11574 kernel, and leave them all pending.
11575 (count_events_callback, select_event_lwp_callback): Consider all
11577 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11578 (select_event_lwp): Only give preference to the stepping LWP in
11579 all-stop mode. Adjust comments.
11580 (ignore_event): New function.
11581 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11582 references to cancel_breakpoints. Adjust to renames. Also give
11583 equal priority to all LWPs that have had events in non-stop mode.
11584 If reporting a software breakpoint event, unadjust the LWP's PC.
11585 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11586 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11588 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11589 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11590 (linux_stopped_by_watchpoint): Adjust.
11591 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11592 * linux-low.h (enum lwp_stop_reason): New.
11593 (struct lwp_info) <stop_pc>: Adjust comment.
11594 <stopped_by_watchpoint>: Delete field.
11595 <stop_reason>: New field.
11596 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11597 * mem-break.c (software_breakpoint_inserted_here)
11598 (hardware_breakpoint_inserted_here): New function.
11599 * mem-break.h (software_breakpoint_inserted_here)
11600 (hardware_breakpoint_inserted_here): Declare.
11601 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11602 (cancel_breakpoints): Delete.
11603 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11604 (upload_fast_traceframes): Remove references to
11605 cancel_breakpoints.
11607 2015-01-09 Pedro Alves <palves@redhat.com>
11609 * thread-db.c (find_new_threads_callback): Ignore thread if the
11610 kernel thread ID is -1.
11612 2015-01-09 Pedro Alves <palves@redhat.com>
11614 * linux-low.c (linux_attach_fail_reason_string): Move to
11615 nat/linux-ptrace.c, and rename.
11616 (linux_attach_lwp): Update comment.
11617 (attach_proc_task_lwp_callback): New function.
11618 (linux_attach): Adjust to rename and use
11619 linux_proc_attach_tgid_threads.
11620 (linux_attach_fail_reason_string): Delete declaration.
11622 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11624 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11625 * server.c (gdbserver_version): Likewise.
11627 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11629 * remote-utils.c: Include ctype.h.
11630 (input_interrupt): Explicitly handle the case when the char
11631 received is the NUL byte. Improve the printing of non-ASCII
11634 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11636 * linux-low.c (linux_low_filter_event): Update call to
11637 linux_enable_event_reporting following the addition of
11638 a new parameter to that function.
11640 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11643 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11644 (AARCH64_FPCR_REGNO): Likewise.
11645 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11646 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11647 (aarch64_store_fpregset): Likewise.
11649 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11651 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11652 Remove FIXME comment about assumption about N.
11654 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11656 * configure.ac: If large-file support is disabled in GDBserver,
11657 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11658 * configure: Regenerate.
11660 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11662 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11663 warning upon ENODATA from ptrace.
11664 * linux-s390-low.c (s390_store_tdb): New.
11665 (s390_regsets): Add regset for NT_S390_TDB.
11667 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11669 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11670 without a fill_function.
11671 * linux-s390-low.c (s390_fill_last_break): Remove.
11672 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11673 (s390_arch_setup): Use regset's size instead of fill_function for
11674 loop end condition.
11676 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11678 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11679 the regset's store function when ptrace returned an error.
11680 * regcache.c (get_thread_regcache): Invalidate register cache
11681 before fetching inferior's registers.
11683 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11685 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11686 while-loop as for-loop.
11687 (regsets_store_inferior_registers): Likewise.
11689 2014-11-28 Yao Qi <yao@codesourcery.com>
11691 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11692 * config.in, configure: Re-generate.
11693 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11696 2014-11-21 Yao Qi <yao@codesourcery.com>
11698 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11699 (AC_CHECK_HEADERS): Remove malloc.h.
11700 * configure: Re-generated.
11701 * config.in: Re-generated.
11702 * server.h: Don't include alloca.h and malloc.h.
11703 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11704 Don't include malloc.h.
11706 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11708 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11709 corresponding ERRNO check in same block.
11711 2014-11-12 Pedro Alves <palves@redhat.com>
11713 * server.c (cont_thread): Update comment.
11714 (start_inferior, attach_inferior): No longer clear cont_thread.
11715 (handle_v_cont): No longer set cont_thread.
11716 (captured_main): Clear cont_thread each time a GDB connects.
11718 2014-11-12 Pedro Alves <palves@redhat.com>
11720 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11721 thread, and don't resume all threads if the Hc thread has exited.
11723 2014-11-12 Pedro Alves <palves@redhat.com>
11725 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11726 the process group instead of to a specific LWP.
11728 2014-10-15 Pedro Alves <palves@redhat.com>
11731 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11733 (arm_set_thread_context): Delete.
11734 (the_low_target): Adjust.
11735 * win32-i386-low.c (debug_registers_changed)
11736 (debug_registers_used): Delete.
11737 (update_debug_registers_callback): New function.
11738 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11739 needing to update their debug registers.
11740 (win32_get_current_dr): New function.
11741 (x86_dr_low_get_addr, x86_dr_low_get_control)
11742 (x86_dr_low_get_status): Fetch the debug register from the thread
11744 (i386_initial_stuff): Adjust.
11745 (i386_get_thread_context): Remove current_event parameter. Don't
11746 clear debug_registers_changed nor copy DR values to
11748 (i386_set_thread_context): Delete.
11749 (i386_prepare_to_resume): New function.
11750 (i386_thread_added): Mark the thread as needing to update irs
11752 (the_low_target): Remove i386_set_thread_context and install
11753 i386_prepare_to_resume.
11754 * win32-low.c (win32_get_thread_context): Adjust.
11755 (win32_set_thread_context): Use SetThreadContext
11757 (win32_prepare_to_resume): New function.
11758 (win32_require_context): New function, factored out from ...
11759 (thread_rec): ... this.
11760 (continue_one_thread): Call win32_prepare_to_resume on each thread
11761 we're about to continue.
11762 (win32_resume): Call win32_prepare_to_resume on the event thread.
11763 * win32-low.h (struct win32_thread_info)
11764 <debug_registers_changed>: New field.
11765 (struct win32_target_ops): Change prototype of set_thread_context,
11766 delete set_thread_context and add prepare_to_resume.
11767 (win32_require_context): New declaration.
11769 2014-10-08 Gary Benson <gbenson@redhat.com>
11771 * server.h: Do not include common-exceptions.h.
11773 2014-10-08 Gary Benson <gbenson@redhat.com>
11775 * server.h: Do not include cleanups.h.
11777 2014-09-30 James Hogan <james.hogan@imgtec.com>
11779 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11780 mips64-dsp-linux.c.
11782 2014-09-23 Yao Qi <yao@codesourcery.com>
11784 * linux-low.c (lp_status_maybe_breakpoint): New function.
11785 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11786 (count_events_callback): Likewise.
11787 (select_event_lwp_callback): Likewise.
11788 (cancel_breakpoints_callback): Likewise.
11790 2014-09-19 Don Breazeal <donb@codesourcery.com>
11792 * linux-low.c (handle_extended_wait): Call
11793 linux_ptrace_get_extended_event.
11794 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11795 linux_is_extended_waitstatus.
11797 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11799 * Makefile.in (CPPFLAGS): Define.
11800 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11801 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11803 2014-09-16 Gary Benson <gbenson@redhat.com>
11805 * inferiors.h (current_inferior): Renamed as...
11806 (current_thread): New variable. All uses updated.
11807 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11808 (maybe_move_out_of_jump_pad): Likewise.
11809 (cancel_breakpoint): Likewise.
11810 (linux_low_filter_event): Likewise.
11811 (wait_for_sigstop): Likewise.
11812 (linux_resume_one_lwp): Likewise.
11813 (need_step_over_p): Likewise.
11814 (start_step_over): Likewise.
11815 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11816 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11817 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11818 and save_inferior as saved_thread.
11819 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11821 (regcache_invalidate_thread): Likewise.
11822 * remote-utils.c (prepare_resume_reply): Likewise.
11823 * thread-db.c (thread_db_get_tls_address): Likewise.
11824 (disable_thread_event_reporting): Likewise.
11825 (remove_thread_event_breakpoints): Likewise.
11826 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11828 * target.h (set_desired_inferior): Renamed as...
11829 (set_desired_thread): New declaration. All uses updated.
11830 * server.c (myresume): Updated comment to reference thread instead
11832 (handle_serial_event): Likewise.
11833 (handle_target_event): Likewise.
11835 2014-09-12 Tom Tromey <tromey@redhat.com>
11836 Gary Benson <gbenson@redhat.com>
11838 * regcache.h: Include common-regcache.h.
11839 (regcache_read_pc): Don't declare.
11840 * regcache.c (get_thread_regcache_for_ptid): New function.
11842 2014-09-11 Tom Tromey <tromey@redhat.com>
11843 Gary Benson <gbenson@redhat.com>
11845 * symbol.c: New file.
11846 * Makefile.in (SFILES): Add symbol.c.
11847 (OBS): Add symbol.o.
11849 2014-09-11 Gary Benson <gbenson@redhat.com>
11851 * target.c (target_stop_ptid, target_continue_ptid): New
11854 2014-09-11 Tom Tromey <tromey@redhat.com>
11855 Gary Benson <gbenson@redhat.com>
11857 * target.h: Include target/target.h.
11858 * target.c (target_read_memory, target_read_uint32)
11859 (target_write_memory): New functions.
11861 2014-09-11 Gary Benson <gbenson@redhat.com>
11863 * server.h (debug_hw_points): Don't declare.
11864 * server.c (debug_hw_points): Don't define. Replace all uses
11865 with show_debug_regs.
11866 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11867 all uses with show_debug_regs.
11869 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11871 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11872 endianness into account.
11873 (ppc_supply_ptrace_register): Likewise.
11875 2014-09-03 James Hogan <james.hogan@imgtec.com>
11877 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11878 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11880 2014-09-03 Gary Benson <gbenson@redhat.com>
11882 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11883 ALL_DEBUG_ADDRESS_REGISTERS.
11885 2014-09-02 Gary Benson <gbenson@redhat.com>
11887 * i386-low.h: Renamed as...
11888 * x86-low.h: New file. All type, function and variable name
11889 prefixes changed from "i386_" to "x86_". All references updated.
11890 * i386-low.c: Renamed as...
11891 * x86-low.c: New file. All type, function and variable name
11892 prefixes changed from "i386_" to "x86_". All references updated.
11894 2014-09-02 Gary Benson <gbenson@redhat.com>
11896 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11897 (x86_linux_new_thread): Likewise.
11899 2014-08-29 Gary Benson <gbenson@redhat.com>
11901 * server.h (setjmp.h): Do not include.
11902 (toplevel): Do not declare.
11903 (common-exceptions.h): Include.
11904 (cleanups.h): Likewise.
11905 * server.c (toplevel): Do not define.
11906 (exit_code): New static global.
11907 (detach_or_kill_for_exit_cleanup): New function.
11908 (main): New function. Original main renamed to...
11909 (captured_main): New function.
11910 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11912 2014-08-29 Gary Benson <gbenson@redhat.com>
11914 * Makefile.in (SFILES): Add common/common-exceptions.c.
11915 (OBS): Add common-exceptions.o.
11916 (common-exceptions.o): New rule.
11917 * utils.c (prepare_to_throw_exception): New function.
11919 2014-08-29 Gary Benson <gbenson@redhat.com>
11921 * config.in: Regenerate.
11922 * configure: Likewise.
11924 2014-08-29 Gary Benson <gbenson@redhat.com>
11926 * Makefile.in (SFILES): Add common/cleanups.c.
11928 (cleanups.o): New rule.
11930 2014-08-29 Gary Benson <gbenson@redhat.com>
11932 * utils.c (internal_vwarning): New function.
11934 2014-08-28 Gary Benson <gbenson@redhat.com>
11936 * utils.h (fatal): Remove declaration.
11937 * utils.c (fatal): Remove function.
11939 2014-08-28 Gary Benson <gbenson@redhat.com>
11941 * tracepoint.c (gdb_agent_init): Replace fatal with
11943 (initialize_tracepoint): Likewise.
11945 2014-08-28 Gary Benson <gbenson@redhat.com>
11947 * remote-utils.c (remote_prepare): Replace fatal with error.
11949 2014-08-28 Gary Benson <gbenson@redhat.com>
11951 * linux-low.c (linux_async): Replace fatal with warning.
11952 Tidy up and return.
11953 (linux_start_non_stop): Return -1 if linux_async failed.
11955 2014-08-28 Gary Benson <gbenson@redhat.com>
11957 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11959 (i386_dr_low_get_addr): Remove vague comment.
11960 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11963 2014-08-28 Gary Benson <gbenson@redhat.com>
11965 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11966 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11968 (linux_resume_one_lwp): Likewise.
11969 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11971 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11972 with internal_error.
11973 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11974 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11975 (find_register_by_name): Replace fatal with internal_error.
11976 (find_regno): Likewise.
11977 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11978 * thread-db.c (thread_db_create_event): Likewise.
11979 (thread_db_load_search): Likewise.
11980 (try_thread_db_load_1): Likewise.
11981 * tracepoint.c (get_jump_space_head): Replace fatal with
11983 (claim_trampoline_space): Likewise.
11984 (have_fast_tracepoint_trampoline_buffer): Likewise.
11985 (cmd_qtstart): Likewise.
11986 (stop_tracing): Likewise.
11987 (fast_tracepoint_collecting): Likewise.
11988 (target_malloc): Likewise.
11989 (download_tracepoint): Likewise.
11990 (download_trace_state_variables): Replace check with gdb_assert.
11991 (upload_fast_traceframes): Replace fatal with internal_error.
11993 2014-08-19 Tom Tromey <tromey@redhat.com>
11994 Gary Benson <gbenson@redhat.com>
11996 * Makefile.in (SFILES): Add common/common-debug.c.
11997 (OBS): Add common-debug.o.
11998 (common-debug.o): New rule.
11999 * debug.h (debug_printf): Don't declare.
12000 * debug.c (debug_printf): Renamed and rewritten as...
12001 (debug_vprintf): New function.
12003 2014-08-19 Gary Benson <gbenson@redhat.com>
12005 * utils.h: Do not include print-utils.h.
12007 2014-08-19 Tom Tromey <tromey@redhat.com>
12008 Gary Benson <gbenson@redhat.com>
12010 * server.h: Add static assertion.
12011 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12013 2014-08-19 Tom Tromey <tromey@redhat.com>
12014 Gary Benson <gbenson@redhat.com>
12016 * Makefile.in (SFILES): Add common/errors.c.
12017 (OBS): Add errors.o.
12018 (IPA_OBS): Add errors-ipa.o.
12019 (errors.o): New rule.
12020 (errors-ipa.o): Likewise.
12021 * utils.h (perror_with_name, error, warning): Don't declare.
12022 * utils.c (warning): Renamed and rewritten as...
12023 (vwarning): New function.
12024 (error): Renamed and rewritten as...
12025 (verror): New function.
12026 (internal_error): Renamed and rewritten as...
12027 (internal_verror): New function.
12029 2014-08-07 Gary Benson <gbenson@redhat.com>
12031 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12032 * configure: Regenerate.
12033 * config.in: Likewise.
12034 * server.h: Do not include errno.h.
12035 * event-loop.c: Likewise.
12036 * hostio-errno.c: Likewise.
12037 * linux-low.c: Likewise.
12038 * remote-utils.c: Likewise.
12039 * spu-low.c: Likewise.
12040 * utils.c: Likewise.
12041 * gdbreplay.c: Unconditionally include errno.h.
12043 2014-08-07 Gary Benson <gbenson@redhat.com>
12045 * server.h: Do not include string.h.
12046 * event-loop.c: Likewise.
12047 * linux-low.c: Likewise.
12048 * regcache.c: Likewise.
12049 * remote-utils.c: Likewise.
12050 * spu-low.c: Likewise.
12051 * utils.c: Likewise.
12053 2014-08-07 Gary Benson <gbenson@redhat.com>
12055 * server.h: Do not include gdb_assert.h.
12057 2014-08-07 Gary Benson <gbenson@redhat.com>
12059 * server.h: Do not include common-utils.h.
12061 2014-08-07 Gary Benson <gbenson@redhat.com>
12063 * server.h: Do not include ptid.h.
12064 * notif.h: Likewise.
12066 2014-08-07 Gary Benson <gbenson@redhat.com>
12068 * server.h: Do not include gdb_locale.h.
12070 2014-08-07 Gary Benson <gbenson@redhat.com>
12072 * server.h: Do not include gdb/signals.h.
12073 * win32-low.c: Likewise.
12075 2014-08-07 Gary Benson <gbenson@redhat.com>
12077 * server.h: Do not include pathmax.h.
12079 2014-08-07 Gary Benson <gbenson@redhat.com>
12081 * server.h: Do not include libiberty.h.
12082 * linux-bfin-low.c: Likewise.
12084 2014-08-07 Gary Benson <gbenson@redhat.com>
12086 * server.h: Do not include ansidecl.h.
12088 2014-08-07 Gary Benson <gbenson@redhat.com>
12090 * linux-x86-low.c: Do not include stddef.h.
12091 * lynx-ppc-low.c: Likewise.
12092 * tracepoint.c: Likewise.
12094 2014-08-07 Gary Benson <gbenson@redhat.com>
12096 * server.h: Do not include stdarg.h.
12097 * nto-low.c: Likewise.
12099 2014-08-07 Gary Benson <gbenson@redhat.com>
12101 * server.h: Do not include stdlib.h.
12102 * inferiors.c: Likewise.
12103 * linux-low.c: Likewise.
12104 * regcache.c: Likewise.
12105 * spu-low.c: Likewise.
12106 * tracepoint.c: Likewise.
12107 * utils.c: Likewise.
12109 2014-08-07 Gary Benson <gbenson@redhat.com>
12111 * server.h: Do not include stdio.h.
12112 * linux-low.c: Likewise.
12113 * remote-utils.c: Likewise.
12114 * spu-low.c: Likewise.
12115 * utils.c: Likewise.
12116 * wincecompat.c: Likewise.
12118 2014-08-06 Gary Benson <gbenson@redhat.com>
12120 * regcache.c (init_register_cache): Move conditionals inside if.
12122 2014-08-06 Gary Benson <gbenson@redhat.com>
12124 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12126 2014-07-31 Gary Benson <gbenson@redhat.com>
12128 * ax.h: Do not include server.h.
12129 * gdbthread.h: Likewise.
12130 * lynx-low.h: Likewise.
12131 * notif.h: Likewise.
12133 2014-07-30 Gary Benson <gbenson@redhat.com>
12135 * server.h: Include common-defs.h.
12136 Do not include config.h or build-gnulib-gdbserver/config.h.
12138 2014-07-30 Gary Benson <gbenson@redhat.com>
12140 * hostio-errno.c: Move server.h to top of includes list.
12141 * inferiors.c: Likewise.
12142 * linux-x86-low.c: Likewise.
12143 * notif.c: Include server.h.
12145 2014-07-24 Tom Tromey <tromey@redhat.com>
12146 Gary Benson <gbenson@redhat.com>
12148 * server.h (CORE_ADDR): Now unsigned.
12150 2014-07-16 Pedro Alves <palves@redhat.com>
12152 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12154 2014-07-15 Pedro Alves <palves@redhat.com>
12156 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12159 2014-07-11 Pedro Alves <palves@redhat.com>
12161 * linux-low.c (kill_wait_lwp): New function, based on
12162 kill_one_lwp_callback, but use my_waitpid directly.
12163 (kill_one_lwp_callback, linux_kill): Use it.
12165 2014-06-23 Pedro Alves <palves@redhat.com>
12167 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12168 before setting DR0..DR3.
12170 2014-06-20 Gary Benson <gbenson@redhat.com>
12172 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12173 * configure: Regenerated.
12174 * config.in: Likewise.
12176 2014-06-20 Gary Benson <gbenson@redhat.com>
12178 * Makefile.in (SFILES): Update locations for files moved
12179 from common to nat.
12180 (object file files): Reordered.
12182 2014-06-20 Gary Benson <gbenson@redhat.com>
12184 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12185 (i386_dr_low_set_addr): Likewise.
12186 (i386_dr_low_get_addr): Likewise.
12187 (i386_dr_low_can_set_control): Likewise.
12188 (i386_dr_low_set_control): Likewise.
12189 (i386_dr_low_get_control): Likewise.
12190 (i386_dr_low_get_status): Likewise.
12191 (i386_get_debug_register_length): Likewise.
12192 * linux-x86-low.c (i386_dr_low_set_addr):
12193 Changed signature. Made static.
12194 (i386_dr_low_get_addr): Likewise.
12195 (i386_dr_low_set_control): Likewise.
12196 (i386_dr_low_get_control): Likewise.
12197 (i386_dr_low_get_status): Likewise.
12198 (i386_dr_low): New global variable.
12199 * win32-i386-low.c (i386_dr_low_set_addr):
12200 Changed signature. Made static.
12201 (i386_dr_low_get_addr): Likewise.
12202 (i386_dr_low_set_control): Likewise.
12203 (i386_dr_low_get_control): Likewise.
12204 (i386_dr_low_get_status): Likewise.
12205 (i386_dr_low): New global variable.
12207 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12209 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12210 * Makefile.in (AR, AR_FLAGS): Define.
12211 * configure: Regenerate.
12213 2014-06-19 Gary Benson <gbenson@redhat.com>
12215 * Makefile.in (i386-dregs.o): New rule.
12216 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12217 * i386-low.c (target.h): Remove include.
12218 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12219 (DR_CONTROL_SHIFT): Likewise.
12220 (DR_CONTROL_SIZE): Likewise.
12221 (DR_RW_EXECUTE): Likewise.
12222 (DR_RW_WRITE): Likewise.
12223 (DR_RW_READ): Likewise.
12224 (DR_RW_IORW): Likewise.
12225 (DR_LEN_1): Likewise.
12226 (DR_LEN_2): Likewise.
12227 (DR_LEN_4): Likewise.
12228 (DR_LEN_8): Likewise.
12229 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12230 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12231 (DR_ENABLE_SIZE): Likewise.
12232 (DR_LOCAL_SLOWDOWN): Likewise.
12233 (DR_GLOBAL_SLOWDOWN): Likewise.
12234 (DR_CONTROL_RESERVED): Likewise.
12235 (I386_DR_CONTROL_MASK): Likewise.
12236 (I386_DR_VACANT): Likewise.
12237 (I386_DR_LOCAL_ENABLE): Likewise.
12238 (I386_DR_GLOBAL_ENABLE): Likewise.
12239 (I386_DR_DISABLE): Likewise.
12240 (I386_DR_SET_RW_LEN): Likewise.
12241 (I386_DR_GET_RW_LEN): Likewise.
12242 (I386_DR_WATCH_HIT): Likewise.
12243 (i386_wp_op_t): Likewise.
12244 (i386_show_dr): Likewise.
12245 (i386_length_and_rw_bits): Likewise.
12246 (i386_insert_aligned_watchpoint): Likewise.
12247 (i386_remove_aligned_watchpoint): Likewise.
12248 (i386_handle_nonaligned_watchpoint): Likewise.
12249 i386_update_inferior_debug_regs(): Likewise.
12250 (i386_dr_insert_watchpoint): Likewise.
12251 (i386_dr_remove_watchpoint): Likewise.
12252 (i386_dr_region_ok_for_watchpoint): Likewise.
12253 (i386_dr_stopped_data_address): Likewise.
12254 (i386_dr_stopped_by_watchpoint): Likewise.
12256 2014-06-19 Gary Benson <gbenson@redhat.com>
12258 * i386-low.c (i386_dr_show): Renamed to
12259 i386_show_dr and made static. All uses updated.
12260 (i386_dr_length_and_rw_bits): Renamed to
12261 i386_length_and_rw_bits and made static.
12263 (i386_dr_insert_aligned_watchpoint): Renamed to
12264 i386_insert_aligned_watchpoint and made static.
12266 (i386_dr_remove_aligned_watchpoint): Renamed to
12267 i386_remove_aligned_watchpoint and made static.
12269 (i386_dr_update_inferior_debug_regs): Renamed to
12270 i386_update_inferior_debug_regs and made static.
12273 2014-06-18 Gary Benson <gbenson@redhat.com>
12275 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12276 (i386_dr_low_can_set_control): Likewise.
12277 (i386_get_debug_register_length): Likewise.
12278 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12279 (i386_dr_low_can_set_control): Likewise.
12280 (i386_get_debug_register_length): Likewise.
12282 2014-06-17 Gary Benson <gbenson@redhat.com>
12284 * i386-low.h (i386-dregs.h): New include.
12285 (DR_FIRSTADDR): Now in i386-dregs.h.
12286 (DR_LASTADDR): Likewise.
12287 (DR_NADDR): Likewise.
12288 (DR_STATUS): Likewise.
12289 (DR_CONTROL): Likewise.
12290 (i386_debug_reg_state): Likewise.
12291 (i386_dr_insert_watchpoint): Likewise.
12292 (i386_dr_remove_watchpoint): Likewise.
12293 (i386_dr_region_ok_for_watchpoint): Likewise.
12294 (i386_dr_stopped_data_address): Likewise.
12295 (i386_dr_stopped_by_watchpoint): Likewise.
12296 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12298 2014-06-18 Gary Benson <gbenson@redhat.com>
12300 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12301 i386_dr_insert_watchpoint.
12302 (i386_low_remove_watchpoint): Renamed to
12303 i386_dr_remove_watchpoint.
12304 (i386_low_region_ok_for_watchpoint): Renamed to
12305 i386_dr_region_ok_for_watchpoint.
12306 (i386_low_stopped_data_address): Renamed to
12307 i386_dr_stopped_data_address.
12308 (i386_low_stopped_by_watchpoint): Renamed to
12309 i386_dr_stopped_by_watchpoint.
12310 * i386-low.c (i386_show_dr): Renamed to
12311 i386_dr_show and made nonstatic. All uses updated.
12312 (i386_length_and_rw_bits): Renamed to
12313 i386_dr_length_and_rw_bits and made nonstatic.
12315 (i386_insert_aligned_watchpoint): Renamed to
12316 i386_dr_insert_aligned_watchpoint and made nonstatic.
12318 (i386_remove_aligned_watchpoint): Renamed to
12319 i386_dr_remove_aligned_watchpoint and made nonstatic.
12321 (i386_update_inferior_debug_regs): Renamed to
12322 i386_dr_update_inferior_debug_regs and made nonstatic.
12324 (i386_low_insert_watchpoint): Renamed to
12325 i386_dr_insert_watchpoint. All uses updated.
12326 (i386_low_remove_watchpoint): Renamed to
12327 i386_dr_remove_watchpoint. All uses updated.
12328 (i386_low_region_ok_for_watchpoint): Renamed to
12329 i386_dr_region_ok_for_watchpoint. All uses updated.
12330 (i386_low_stopped_data_address): Renamed to
12331 i386_dr_stopped_data_address. All uses updated.
12332 (i386_low_stopped_by_watchpoint): Renamed to
12333 i386_dr_stopped_by_watchpoint. All uses updated.
12335 2014-06-18 Gary Benson <gbenson@redhat.com>
12337 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12338 (i386_dr_low_can_set_control): Likewise.
12339 (i386_insert_aligned_watchpoint): New check.
12341 2014-06-18 Gary Benson <gbenson@redhat.com>
12343 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12346 2014-06-18 Gary Benson <gbenson@redhat.com>
12348 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12349 instead of fatal and error.
12350 (i386_handle_nonaligned_watchpoint): Likewise.
12352 2014-06-18 Gary Benson <gbenson@redhat.com>
12354 * i386-low.c (i386_get_debug_register_length): New macro.
12355 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12356 (i386_show_dr): Use debug_printf instead of fprintf. Use
12357 phex to format values.
12359 2014-06-18 Gary Benson <gbenson@redhat.com>
12361 * i386-low.h: Comment changes.
12362 * i386-low.c: Likewise.
12364 2014-06-18 Gary Benson <gbenson@redhat.com>
12366 * i386-low.c: Whitespace changes.
12368 2014-06-12 Tom Tromey <tromey@redhat.com>
12370 * utils.c (freeargv): Remove.
12372 2014-06-12 Tom Tromey <tromey@redhat.com>
12374 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12375 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12376 (parse_debug_format_options): Likewise.
12377 (gdbserver_usage): Likewise.
12378 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12379 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12380 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12382 ($(LIBGNU)): Depend on libiberty.
12383 (all-lib): Recurse into all subdirs.
12384 (install-only): Invoke "install" target in subdirs.
12385 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12387 * configure: Rebuild.
12388 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12389 for vasprintf, vsnprintf, or gettimeofday.
12390 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12393 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12395 * development.sh: Delete.
12396 * Makefile.in (config.status): Adjust dependency on development.sh.
12397 * configure.ac: Adjust development.sh source call.
12398 * configure: Regenerate.
12400 2014-06-02 Pedro Alves <palves@redhat.com>
12402 * ax.c (gdb_free_agent_expr): New function.
12403 * ax.h (gdb_free_agent_expr): New declaration.
12404 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12406 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12408 (clear_breakpoint_conditions_and_commands): New function.
12409 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12410 (clear_breakpoint_conditions_and_commands): New declaration.
12412 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12414 * linux-aarch64-low.c (asm/ptrace.h): Include.
12416 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12418 Fix TLS access for -static -pthread.
12419 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12420 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12421 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12423 2014-05-20 Pedro Alves <palves@redhat.com>
12425 * linux-aarch64-low.c (aarch64_insert_point)
12426 (aarch64_remove_point): No longer check whether the type is
12427 supported here. Adjust to new interface.
12428 (the_low_target): Install aarch64_supports_z_point_type as
12429 supports_z_point_type method.
12430 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12431 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12432 instead of a Z packet char. Adjust.
12433 (arm_supports_z_point_type): New function.
12434 (arm_insert_point, arm_remove_point): Adjust to new interface.
12435 (the_low_target): Install arm_supports_z_point_type.
12436 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12437 (cris_insert_point, cris_remove_point): Adjust to new interface.
12438 Don't check whether the type is supported here.
12439 (the_low_target): Install cris_supports_z_point_type.
12440 * linux-low.c (linux_supports_z_point_type): New function.
12441 (linux_insert_point, linux_remove_point): Adjust to new interface.
12442 * linux-low.h (struct linux_target_ops) <insert_point,
12443 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12444 raw_breakpoint pointer parameter.
12445 <supports_z_point_type>: New method.
12446 * linux-mips-low.c (mips_supports_z_point_type): New function.
12447 (mips_insert_point, mips_remove_point): Adjust to new interface.
12448 Use mips_supports_z_point_type.
12449 (the_low_target): Install mips_supports_z_point_type.
12450 * linux-ppc-low.c (the_low_target): Install NULL as
12451 supports_z_point_type method.
12452 * linux-s390-low.c (the_low_target): Install NULL as
12453 supports_z_point_type method.
12454 * linux-sparc-low.c (the_low_target): Install NULL as
12455 supports_z_point_type method.
12456 * linux-x86-low.c (x86_supports_z_point_type): New function.
12457 (x86_insert_point): Adjust to new insert_point interface. Use
12458 insert_memory_breakpoint. Adjust to new
12459 i386_low_insert_watchpoint interface.
12460 (x86_remove_point): Adjust to remove_point interface. Use
12461 remove_memory_breakpoint. Adjust to new
12462 i386_low_remove_watchpoint interface.
12463 (the_low_target): Install x86_supports_z_point_type.
12464 * lynx-low.c (lynx_target_ops): Install NULL as
12465 supports_z_point_type callback.
12466 * nto-low.c (nto_supports_z_point_type): New.
12467 (nto_insert_point, nto_remove_point): Adjust to new interface.
12468 (nto_target_ops): Install nto_supports_z_point_type.
12469 * mem-break.c: Adjust intro comment.
12470 (struct raw_breakpoint) <raw_type, size>: New fields.
12471 <inserted>: Update comment.
12472 <shlib_disabled>: Delete field.
12473 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12474 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12475 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12476 (raw_bkpt_type_to_target_hw_bp_type): New function.
12477 (find_enabled_raw_code_breakpoint_at): New function.
12478 (find_raw_breakpoint_at): New type and size parameters. Use them.
12479 (insert_memory_breakpoint): New function, based off
12480 set_raw_breakpoint_at.
12481 (remove_memory_breakpoint): New function.
12482 (set_raw_breakpoint_at): Reimplement.
12483 (set_breakpoint): New, based on set_breakpoint_at.
12484 (set_breakpoint_at): Reimplement.
12485 (delete_raw_breakpoint): Go through the_target->remove_point
12486 instead of assuming memory breakpoints.
12487 (find_gdb_breakpoint_at): Delete.
12488 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12489 (find_gdb_breakpoint): New function.
12490 (set_gdb_breakpoint_at): Delete.
12491 (z_type_supported): New function.
12492 (set_gdb_breakpoint_1): New function, loosely based off
12493 set_gdb_breakpoint_at.
12494 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12495 (delete_gdb_breakpoint_at): Delete.
12496 (delete_gdb_breakpoint_1): New function, loosely based off
12497 delete_gdb_breakpoint_at.
12498 (delete_gdb_breakpoint): New function.
12499 (clear_gdb_breakpoint_conditions): Rename to ...
12500 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12502 (add_condition_to_breakpoint): Make static.
12503 (add_breakpoint_condition): Take a struct breakpoint pointer
12504 instead of an address. Adjust.
12505 (gdb_condition_true_at_breakpoint): Rename to ...
12506 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12508 (gdb_condition_true_at_breakpoint): Reimplement.
12509 (add_breakpoint_commands): Take a struct breakpoint pointer
12510 instead of an address. Adjust.
12511 (gdb_no_commands_at_breakpoint): Rename to ...
12512 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12513 parameter. Return true if no breakpoint was found. Change debug
12515 (gdb_no_commands_at_breakpoint): Reimplement.
12516 (run_breakpoint_commands): Rename to ...
12517 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12518 and change return type to boolean.
12519 (run_breakpoint_commands): New function.
12520 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12521 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12522 breakpoint. Go through the_target->remove_point instead of
12523 assuming memory breakpoint.
12524 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12525 software and hardware breakpoints.
12526 (reinsert_raw_breakpoint): Go through the_target->insert_point
12527 instead of assuming memory breakpoint.
12528 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12529 software and hardware breakpoints.
12530 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12531 Check both software and hardware breakpoints.
12532 (validate_inserted_breakpoint): Assert the breakpoint is a
12533 software breakpoint. Set the inserted flag to -1 instead of
12534 setting shlib_disabled.
12535 (delete_disabled_breakpoints): Adjust.
12536 (validate_breakpoints): Only validate software breakpoints.
12537 Adjust to inserted flag change.
12538 (check_mem_read, check_mem_write): Skip breakpoint types other
12539 than software breakpoints. Adjust to inserted flag change.
12540 * mem-break.h (enum raw_bkpt_type): New enum.
12541 (raw_breakpoint, struct process_info): Forward declare.
12542 (Z_packet_to_target_hw_bp_type): Delete declaration.
12543 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12544 (set_gdb_breakpoint, delete_gdb_breakpoint)
12545 (clear_breakpoint_conditions): New declarations.
12546 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12547 (breakpoint_inserted_here): Update comment.
12548 (add_breakpoint_condition, add_breakpoint_commands): Replace
12549 address parameter with a breakpoint pointer parameter.
12550 (gdb_breakpoint_here): Update comment.
12551 (delete_gdb_breakpoint_at): Delete.
12552 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12553 * server.c (process_point_options): Take a struct breakpoint
12554 pointer instead of an address. Adjust.
12555 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12556 delete_gdb_breakpoint.
12557 * spu-low.c (spu_target_ops): Install NULL as
12558 supports_z_point_type method.
12559 * target.h: Include mem-break.h.
12560 (struct target_ops) <prepare_to_access_memory>: Update comment.
12561 <supports_z_point_type>: New field.
12562 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12563 instead of a char. Also take a raw breakpoint pointer.
12564 * win32-arm-low.c (the_low_target): Install NULL as
12565 supports_z_point_type.
12566 * win32-i386-low.c (i386_supports_z_point_type): New function.
12567 (i386_insert_point, i386_remove_point): Adjust to new interface.
12568 (the_low_target): Install i386_supports_z_point_type.
12569 * win32-low.c (win32_supports_z_point_type): New function.
12570 (win32_insert_point, win32_remove_point): Adjust to new interface.
12571 (win32_target_ops): Install win32_supports_z_point_type.
12572 * win32-low.h (struct win32_target_ops):
12573 <supports_z_point_type>: New method.
12574 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12575 instead of a char. Also take a raw breakpoint pointer.
12577 2014-05-20 Pedro Alves <palves@redhat.com>
12579 * mem-break.h: Include break-common.h.
12580 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12581 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12582 (Z_packet_to_target_hw_bp_type): New declaration.
12583 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12584 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12585 (Z_PACKET_ACCESS_WP): Delete macros.
12586 (Z_packet_to_hw_type): Delete function.
12587 * i386-low.h: Don't include break-common.h here.
12588 (Z_packet_to_hw_type): Delete declaration.
12589 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12590 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12591 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12592 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12593 * linux-aarch64-low.c: Don't include break-common.h here.
12594 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12595 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12596 (Z_packet_to_target_hw_bp_type): Delete function.
12597 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12599 (mips_insert_point, mips_remove_point): Use
12600 Z_packet_to_target_hw_bp_type.
12602 2014-05-20 Pedro Alves <palves@redhat.com>
12604 * linux-aarch64-low.c: Include break-common.h.
12605 (enum target_point_type): Delete.
12606 (Z_packet_to_point_type): Rename to ...
12607 (Z_packet_to_target_hw_bp_type): ... this, and return a
12608 target_hw_bp_type instead.
12609 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12610 instead of an enum target_point_type.
12611 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12613 (aarch64_dr_state_insert_one_point)
12614 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12615 (aarch64_handle_aligned_watchpoint)
12616 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12617 Take an enum target_hw_bp_type instead of an enum
12619 (aarch64_supports_z_point_type): New function.
12620 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12621 use Z_packet_to_target_hw_bp_type.
12623 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12625 * configure.ac: Only use -Werror by default when DEVELOPMENT
12627 * configure: Regenerate.
12629 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12631 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12632 * linux-x86-low.c (X86_64_USER_REGS): New.
12633 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12635 2014-04-28 Yao Qi <yao@codesourcery.com>
12637 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12640 2014-04-25 Pedro Alves <palves@redhat.com>
12643 * linux-low.c (linux_attach_fail_reason_string): New function.
12644 (linux_attach_lwp): Delete.
12645 (linux_attach_lwp_1): Rename to ...
12646 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12647 argument. Remove "initial" parameter. Return int instead of
12648 void. Don't error or warn here.
12649 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12650 failure to attach to the tgid. Call warning when failing to
12652 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12653 argument. Remove "initial" parameter. Return int instead of
12654 void. Don't error or warn here.
12655 (linux_attach_fail_reason_string): New declaration.
12656 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12657 interface change. Use linux_attach_fail_reason_string.
12659 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12660 Walfred Tedeschi <walfred.tedeschi@intel.com>
12662 * Makefile.in: Added rules to handle new files
12663 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12664 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12665 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12666 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12667 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12668 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12669 x32-avx512-linux.o.
12670 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12671 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12672 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12673 i386/x32-avx512.xml.
12674 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12675 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12676 i386/x32-avx512-linux.xml.
12677 * i387-fp.c (num_avx512_k_registers): New constant for number
12679 (num_avx512_zmmh_low_registers): New constant for number of
12680 lower ZMM registers (0-15).
12681 (num_avx512_zmmh_high_registers): New constant for number of
12682 higher ZMM registers (16-31).
12683 (num_avx512_ymmh_registers): New contant for number of higher
12684 YMM registers (ymm16-31 added by avx521 on x86_64).
12685 (num_avx512_xmm_registers): New constant for number of higher
12686 XMM registers (xmm16-31 added by AVX512 on x86_64).
12687 (struct i387_xsave): Add space for AVX512 registers.
12688 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12689 Add code to handle AVX512 registers.
12690 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12691 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12692 prototypei from generated file.
12693 (tdesc_amd64_avx512_linux): Likewise.
12694 (init_registers_x32_avx512_linux): Likewise.
12695 (tdesc_x32_avx512_linux): Likewise.
12696 (init_registers_i386_avx512_linux): Likewise.
12697 (tdesc_i386_avx512_linux): Likewise.
12698 (x86_64_regmap): Add AVX512 registers.
12699 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12701 (initialize_low_arch): Add code to initialize AVX512 registers.
12703 2014-04-23 Pedro Alves <palves@redhat.com>
12705 * mem-break.c (find_gdb_breakpoint_at): Make static.
12706 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12708 2014-04-23 Pedro Alves <palves@redhat.com>
12710 * i386-low.c: Don't include break-common.h here.
12711 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12712 prototype to take target_hw_bp_type as argument instead of a Z
12714 * i386-low.h: Include break-common.h here.
12715 (Z_packet_to_hw_type): Declare.
12716 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12718 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12719 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12720 (x86_remove_point): Convert the packet number to a
12721 target_hw_bp_type before calling i386_low_remove_watchpoint.
12722 * win32-i386-low.c (i386_insert_point): Convert the packet number
12723 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12724 (i386_remove_point): Convert the packet number to a
12725 target_hw_bp_type before calling i386_low_remove_watchpoint.
12727 2014-04-23 Pedro Alves <palves@redhat.com>
12729 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12731 2014-04-10 Pedro Alves <palves@redhat.com>
12733 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12734 Check if the condition or command is NULL before checking if the
12735 breakpoint is known. On success, return true.
12736 * mem-break.h (add_breakpoint_condition): Document return.
12737 (add_breakpoint_commands): Add describing comment.
12738 * server.c (skip_to_semicolon): New function.
12739 (process_point_options): Use it.
12741 2014-04-09 Pedro Alves <palves@redhat.com>
12743 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12746 2014-02-27 Pedro Alves <palves@redhat.com>
12749 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12751 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12753 (last_thread_of_process_p): Take a PID argument instead of a
12755 (linux_wait_for_lwp): Delete.
12756 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12758 (linux_low_filter_event): New function, party factored out from
12759 linux_wait_for_event.
12760 (linux_wait_for_event): Rename to ...
12761 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12762 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12763 sigsuspend. Check for zombie leaders.
12764 (linux_wait_for_event): Reimplement as wrapper around
12765 linux_wait_for_event_filtered.
12766 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12767 a normal or signal exit is seen, it's the whole process exiting.
12768 (wait_for_sigstop): No longer a for_each_inferior callback.
12769 Rewrite on top of linux_wait_for_event_filtered.
12770 (stop_all_lwps): Call wait_for_sigstop directly.
12771 * server.c (resume, handle_target_event): Handle
12772 TARGET_WAITKIND_NO_RESUMED.
12774 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12776 * win32-low.c (psapi_get_dll_name,
12777 * win32_CreateToolhelp32Snapshot): Delete.
12778 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12779 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12781 (handle_load_dll): Add function description.
12782 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12784 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12786 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12788 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12789 base address when calling win32_add_one_solib.
12790 (handle_load_dll): Delete local variable load_addr.
12791 Remove 0x1000 offset applied to DLL base address when calling
12792 win32_add_one_solib.
12793 (handle_unload_dll): Add comment.
12795 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12797 * win32-low.c (win32_add_all_dlls): Renames
12798 win32_ensure_ntdll_loaded. Rewrite function documentation.
12799 Adjust implementation to always load all DLLs.
12800 Add 0x1000 offset to DLL base address when calling
12801 win32_add_one_solib.
12802 (child_initialization_done): New static global.
12803 (do_initial_child_stuff): Set child_initialization_done to
12804 zero during child initialization, and 1 after. Replace call
12805 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12807 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12808 (handle_unload_dll): Add function documentation.
12809 (get_child_debug_event): Ignore load and unload DLL events
12810 during child initialization.
12812 2014-02-20 Doug Evans <dje@google.com>
12814 Remove global all_lwps.
12815 * inferiors.h (ptid_of): Move here from linux-low.h.
12816 (pid_of, lwpid_of): Ditto.
12817 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12818 parameter is a struct thread_info * now.
12819 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12820 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12821 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12823 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12824 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12825 * linux-arm-low.c (update_registers_callback): Update, "entry"
12826 parameter is a struct thread_info * now.
12827 Fetch lwpid from current_inferior directly.
12828 (arm_insert_point): Pass &all_threads to find_inferior instead of
12830 (arm_remove_point): Ditto.
12831 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12832 (arm_prepare_to_resume): Fetch pid from thread.
12833 (arm_read_description): Fetch lwpid from current_inferior directly.
12834 * linux-low.c (all_lwps): Delete.
12835 (delete_lwp): Delete call to remove_inferior.
12836 (handle_extended_wait): Fetch lwpid from thread.
12837 (add_lwp): Don't set lwp->entry.id. Remove call to
12838 add_inferior_to_list.
12839 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12840 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12841 (kill_one_lwp_callback): Ditto.
12842 (linux_kill): Don't dereference NULL pointer.
12843 Fetch ptid,lwpid from thread.
12844 (get_detach_signal): Fetch ptid from thread.
12845 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12846 Simplify call to regcache_invalidate_thread.
12847 (delete_lwp_callback): Update, "entry" parameter is a
12848 struct thread_info * now. Fetch pid from thread.
12849 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12850 (status_pending_p_callback): Update, "entry" parameter is a
12851 struct thread_info * now. Fetch ptid from thread.
12852 (find_lwp_pid): Update, "entry" parameter is a
12853 struct thread_info * now.
12854 (linux_wait_for_lwp): Fetch pid from thread.
12855 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12856 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12857 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12858 (dequeue_one_deferred_signal): Ditto.
12859 (cancel_breakpoint): Fetch ptid from current_inferior.
12860 (linux_wait_for_event): Pass &all_threads to find_inferior,
12861 not &all_lwps. Fetch ptid, lwpid from thread.
12862 (count_events_callback): Update, "entry" parameter is a
12863 struct thread_info * now.
12864 (select_singlestep_lwp_callback): Ditto.
12865 (select_event_lwp_callback): Ditto.
12866 (cancel_breakpoints_callback): Ditto.
12867 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12869 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12870 (unsuspend_one_lwp): Update, "entry" parameter is a
12871 struct thread_info * now.
12872 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12874 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12875 Fetch lwpid from thread, not lwp.
12876 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12877 Pass &all_threads to find_inferior, not &all_lwps.
12878 (send_sigstop): Fetch lwpid from thread, not lwp.
12879 (send_sigstop_callback): Update, "entry" parameter is a
12880 struct thread_info * now.
12881 (suspend_and_send_sigstop_callback): Ditto.
12882 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12883 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12884 struct thread_info * now.
12885 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12887 (lwp_running): Update, "entry" parameter is a
12888 struct thread_info * now.
12889 (stop_all_lwps): Fetch ptid from thread.
12890 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12891 (linux_resume_one_lwp): Fetch lwpid from thread.
12892 (linux_set_resume_request): Update, "entry" parameter is a
12893 struct thread_info * now. Fetch pid, lwpid from thread.
12894 (resume_status_pending_p): Update, "entry" parameter is a
12895 struct thread_info * now.
12896 (need_step_over_p): Ditto. Fetch lwpid from thread.
12897 (start_step_over): Fetch lwpid from thread.
12898 (linux_resume_one_thread): Update, "entry" parameter is a
12899 struct thread_info * now. Fetch lwpid from thread.
12900 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12901 (proceed_one_lwp): Update, "entry" parameter is a
12902 struct thread_info * now. Fetch lwpid from thread.
12903 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12904 struct thread_info * now.
12905 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12906 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12907 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12909 (regsets_store_inferior_registers): Ditto.
12910 (fetch_register, store_register): Ditto.
12911 (linux_read_memory, linux_write_memory): Ditto.
12912 (linux_request_interrupt): Ditto.
12913 (linux_read_auxv): Ditto.
12914 (linux_xfer_siginfo): Ditto.
12915 (linux_qxfer_spu): Ditto.
12916 (linux_qxfer_libraries_svr4): Ditto.
12917 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12918 moved to inferiors.h.
12920 (get_thread_lwp): Update.
12921 (struct lwp_info): Delete member "entry". Simplify comment for
12923 (all_lwps): Delete.
12924 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12925 current_inferior directly.
12926 (update_watch_registers_callback): Update, "entry" parameter is a
12927 struct thread_info * now. Fetch pid from thread.
12928 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12929 (mips_insert_point): Fetch lwpid from current_inferior.
12930 Pass &all_threads to find_inferior, not &all_lwps.
12931 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12932 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12934 (mips_stopped_data_address): Ditto.
12935 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12937 * linux-tile-low.c (tile_arch_setup): Ditto.
12938 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12939 (update_debug_registers_callback): Update, "entry" parameter is a
12940 struct thread_info * now. Fetch pid from thread.
12941 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12942 Pass &all_threads to find_inferior, not &all_lwps.
12943 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12944 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12945 Pass &all_threads to find_inferior, not &all_lwps.
12946 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12947 (i386_dr_low_get_status): Ditto.
12948 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12949 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12950 (x86_linux_read_description): Ditto.
12951 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12953 2014-02-20 Doug Evans <dje@google.com>
12955 * inferiors.c (get_first_inferior): Fix buglet.
12957 2014-02-19 Doug Evans <dje@google.com>
12959 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12960 * inferiors.c (add_thread): Change result type to struct thread_info *.
12961 All callers updated.
12962 (add_lwp): Call add_thread here instead of in callers.
12963 All callers updated.
12964 * linux-low.h (get_lwp_thread): Rewrite.
12965 (struct lwp_info): New member "thread".
12967 2014-02-19 Doug Evans <dje@google.com>
12969 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12970 All callers updated.
12972 2014-02-19 Doug Evans <dje@google.com>
12974 * inferiors.c (add_thread): Fix whitespace.
12976 2014-02-19 Doug Evans <dje@google.com>
12978 * dll.c (clear_dlls): Replace accessing list implemention details
12980 * gdbthread.h (get_first_thread): Declare.
12981 * inferiors.c (for_each_inferior_with_data): New function.
12982 (get_first_thread): New function.
12983 (find_thread_ptid): Simplify.
12984 (get_first_inferior): New function.
12985 (clear_list): Delete.
12986 (one_inferior_p): New function.
12987 (clear_inferior_list): New function.
12988 (clear_inferiors): Update.
12989 * inferiors.h (for_each_inferior_with_data): Declare.
12990 (clear_inferior_list): Declare.
12991 (one_inferior_p): Declare.
12992 (get_first_inferior): Declare.
12993 * linux-low.c (linux_wait_for_event): Replace accessing list
12994 implemention details with API function.
12995 * server.c (target_running): Ditto.
12996 (accumulate_file_name_length): New function.
12997 (emit_dll_description): New function.
12998 (handle_qxfer_libraries): Replace accessing list implemention
12999 details with API function.
13000 (handle_qxfer_threads_worker): New function.
13001 (handle_qxfer_threads_proper): Replace accessing list implemention
13002 details with API function.
13003 (handle_query): Ditto.
13004 (visit_actioned_threads_callback_ftype): New typedef.
13005 (visit_actioned_threads_data): New struct.
13006 (visit_actioned_threads): Rewrite to be find_inferior callback.
13007 (resume): Call find_inferior.
13008 (handle_status): Replace accessing list implemention
13009 details with API function.
13010 (process_serial_event): Replace accessing list implemention details
13012 * target.c (set_desired_inferior): Replace accessing list implemention
13013 details with API function.
13014 * tracepoint.c (same_process_p): New function.
13015 (gdb_agent_about_to_close): Replace accessing list implemention
13016 details with API function.
13017 * win32-low.c (child_delete_thread): Replace accessing list
13018 implemention details with API function.
13019 (match_dll_by_basename): New function.
13020 (dll_is_loaded_by_basename): New function.
13021 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13022 details call to dll_is_loaded_by_basename.
13024 2014-02-19 Doug Evans <dje@google.com>
13026 * dll.h (struct dll_info): Add comment.
13027 * gdbthread.h (struct thread_info): Add comment.
13028 (current_ptid): Simplify.
13029 * inferiors.c (add_process): Update.
13030 (remove_process): Update.
13031 * inferiors.h (struct process_info): Rename member "head" to "entry".
13032 * linux-low.c (delete_lwp): Update.
13034 (last_thread_of_process_p): Update.
13035 (kill_one_lwp_callback, linux_kill): Update.
13036 (status_pending_p_callback): Update.
13037 (wait_for_sigstop): Update. Simplify read of ptid.
13038 (start_step_over): Update.
13039 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13040 (get_lwp_thread): Update.
13041 (struct lwp_info): Rename member "head" to "entry".
13042 * regcache.h (inferior_list_entry): Delete.
13043 * server.c (kill_inferior_callback): Update.
13044 (detach_or_kill_inferior_callback): Update.
13045 (print_started_pid): Update.
13046 (print_attached_pid): Update.
13047 (process_serial_event): Simplify read of ptid.
13048 * thread-db.c (thread_db_create_event): Update.
13049 (thread_db_get_tls_address): Update.
13050 * win32-low.c (current_inferior_ptid): Simplify.
13052 2014-02-19 Tom Tromey <tromey@redhat.com>
13054 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13056 (target_supports_btrace): Update.
13058 2014-02-14 Yao Qi <yao@codesourcery.com>
13060 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13061 (rsp-low-ipa.o): New target.
13063 2014-02-12 Tom Tromey <tromey@redhat.com>
13065 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13066 convert_ascii_to_int.
13067 * regcache.c (registers_to_string): Likewise.
13068 * remote-utils.c (decode_M_packet): Likewise.
13069 * server.c (process_serial_event): Likewise.
13071 2014-02-12 Tom Tromey <tromey@redhat.com>
13073 * server.c (handle_query, handle_v_run): Use hex2bin, not
13075 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13077 2014-02-12 Tom Tromey <tromey@redhat.com>
13079 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13080 convert_int_to_ascii.
13081 * regcache.c (registers_to_string, collect_register_as_string):
13083 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13085 * server.c (process_serial_event): Likewise.
13086 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13087 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13089 2014-02-12 Tom Tromey <tromey@redhat.com>
13091 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13092 bin2hex, not hexify.
13093 * tracepoint.c (cmd_qtstatus): Likewise.
13095 2014-02-12 Tom Tromey <tromey@redhat.com>
13097 * remote-utils.c (monitor_output): Pass explicit length to
13100 2014-02-12 Tom Tromey <tromey@redhat.com>
13102 * tracepoint.c: Include rsp-low.h.
13103 * server.c: Include rsp-low.h.
13104 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13105 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13107 * remote-utils.c: Include rsp-low.h.
13108 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13109 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13110 (convert_int_to_ascii, convert_ascii_to_int): Move to
13112 * regcache.c: Include rsp-low.h.
13113 * ax.c: Include rsp-low.h.
13114 * Makefile.in (SFILES): Add common/rsp-low.c.
13115 (OBS): Add rsp-low.o.
13116 (rsp-low.o): New target.
13118 2014-02-12 Tom Tromey <tromey@redhat.com>
13120 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13121 Include print-utils.h.
13122 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13123 (plongest, thirty_two, phex_nz): Remove.
13124 * Makefile.in (SFILES): Add common/print-utils.c.
13125 (OBS): Add print-utils.o.
13126 (print-utils-ipa.o): New target.
13127 (print-utils.o): New target.
13128 (IPA_OBJS): Add print-utils-ipa.o.
13130 2014-02-06 Tom Tromey <tromey@redhat.com>
13132 * Makefile.in (SFILES): Fix indentation.
13134 2014-02-05 Doug Evans <dje@google.com>
13136 * linux-low.c (linux_wait_for_event): Improve comment.
13137 (linux_wait_1): Keep current_inferior in sync with event_child.
13139 2014-01-22 Doug Evans <dje@google.com>
13141 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13143 2014-01-22 Doug Evans <dje@google.com>
13145 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13146 * configure: Regenerate.
13147 * config.in: Regenerate.
13148 * Makefile.in (SFILES): Add debug.c.
13149 (OBS): Add debug.o.
13150 * debug.c: New file.
13151 * debug.h: New file.
13152 * linux-aarch64-low.c (*): Update all debugging printfs to use
13153 debug_printf instead of fprintf.
13154 * linux-arm-low.c (*): Ditto.
13155 * linux-cris-low.c (*): Ditto.
13156 * linux-crisv32-low.c (*): Ditto.
13157 * linux-m32r-low.c (*): Ditto.
13158 * linux-sparc-low.c (*): Ditto.
13159 * linux-x86.c (*): Ditto.
13160 * linux-low.c (*): Ditto.
13161 (linux_wait_1): Add calls to debug_enter, debug_exit.
13162 (linux_wait): Remove redundant debugging printf.
13163 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13164 (linux_resume, unstop_all_lwps): Ditto.
13165 * mem-break.c (*): Update all debugging printfs to use
13166 debug_printf instead of fprintf.
13167 * remote-utils.c (*): Ditto.
13168 * thread-db.c (*): Ditto.
13169 * server.c #include <ctype.h>, "gdb_vecs.h".
13170 (debug_threads): Moved to debug.c.
13171 (*): Update all debugging printfs to use debug_printf instead of
13173 (start_inferior): Replace call to fflush with call to debug_flush.
13174 (monitor_show_help): Mention set debug-format.
13175 (parse_debug_format_options): New function.
13176 (handle_monitor_command): Handle "monitor set debug-format".
13177 (gdbserver_usage): Mention --debug-format.
13178 (main): Parse --debug-format.
13179 * server.h (debug_threads): Declaration moved to debug.h.
13180 #include "debug.h".
13181 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13182 trace_debug_1 that uses debug_printf.
13183 (tracepoint_look_up_symbols): Update all debugging printfs to use
13184 debug_printf instead of fprintf.
13186 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13188 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13191 2014-01-17 Pedro Alves <palves@redhat.com>
13194 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13195 defined after including gdb_proc_service.h.
13197 2014-01-16 Doug Evans <dje@google.com>
13199 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13200 (match_dll): Use it.
13202 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13204 * target.h (target_ops) <read_btrace>: Change parameters and
13205 return type to allow error reporting.
13206 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13207 trace reading errors on.
13208 * linux-low.c (linux_low_read_btrace): Pass trace reading
13210 (linux_low_disable_btrace): New.
13212 2014-01-15 Doug Evans <dje@google.com>
13214 * inferiors.c (thread_id_to_gdb_id): Delete.
13215 * inferiors.h (thread_id_to_gdb_id): Delete.
13217 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13219 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13220 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13223 2014-01-08 Pedro Alves <palves@redhat.com>
13225 * server.c (handle_status): Don't discard previous queued stop
13226 replies or thread's pending status here.
13227 (main) <disconnection>: Do it here instead.
13229 2014-01-08 Pedro Alves <palves@redhat.com>
13231 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13232 * server.c (visit_actioned_threads, handle_pending_status): New
13234 (handle_v_cont): Factor out parts to ...
13235 (resume): ... this new function. If in all-stop, and a thread
13236 being resumed has a pending status, report it without actually
13238 (myresume): Adjust to use the new 'resume' function.
13239 (clear_pending_status_callback, set_pending_status_callback)
13240 (find_status_pending_thread_callback): New functions.
13241 (handle_status): Handle the case of multiple threads having
13242 interesting statuses to report. Report threads' real last signal
13243 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13244 with an interesting thread to report the status for, instead of
13245 always reporting the status of the first thread.
13247 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13249 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13250 * gdbreplay.c (gdbreplay_version): Likewise.
13252 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13254 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13255 iov.iov_len with the real length in use.
13257 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13259 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13260 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13261 for all targets that use win32-low.c.
13262 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13263 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13265 2013-12-13 Pedro Alves <palves@redhat.com>
13267 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13268 if equal to TARGET_WAITKIND_LOADED.
13269 * win32-low.c (cached_status): New static global.
13270 (win32_wait): Add declaration.
13271 (do_initial_child_stuff): Flush all initial pending debug events
13272 up to the initial breakpoint.
13273 (win32_wait): If CACHED_STATUS was set, return that instead
13274 of doing a real wait. Remove the code resuming the execution
13275 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13276 during the initial phase. Also remove the code changing
13277 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13278 TARGET_WAITKIND_STOPPED.
13280 2013-12-11 Yao Qi <yao@codesourcery.com>
13282 * notif.c (handle_notif_ack): Return 0 if no notification
13285 2013-11-20 Doug Evans <dje@google.com>
13287 * linux-low.c (linux_set_resume_request): Fix comment.
13289 2013-11-20 Doug Evans <dje@google.com>
13291 * linux-low.c (resume_status_pending_p): Tweak comment.
13293 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13295 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13296 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13297 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13298 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13299 (srv_amd64_regobj): Add amd64-mpx.o.
13300 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13301 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13302 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13303 * i387-fp.c (num_pl_bnd_register) Added constant.
13304 (num_pl_bnd_cfg_registers) Added constant.
13305 (struct i387_xsave) Added reserved area and MPX fields.
13306 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13307 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13309 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13310 (init_registers_amd64_mpx_linux): Declare new function.
13311 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13312 (x86_64_regmap): Add MPX registers.
13313 (x86_linux_read_description): Add MPX case.
13314 (initialize_low_arch): Initialize MPX targets.
13316 2013-11-18 Tom Tromey <tromey@redhat.com>
13318 * configure: Rebuild.
13319 * configure.ac: Don't check for stdlib.h.
13320 * gdbreplay.c: Unconditionally include stdlib.h.
13322 2013-11-18 Tom Tromey <tromey@redhat.com>
13324 * config.in: Rebuild.
13325 * configure: Rebuild.
13326 * configure.ac: Don't use AC_HEADER_DIRENT.
13328 2013-11-18 Tom Tromey <tromey@redhat.com>
13330 * server.h: Don't check HAVE_STRING_H.
13331 * gdbreplay.c: Don't check HAVE_STRING_H.
13332 * configure: Rebuild.
13334 2013-11-18 Tom Tromey <tromey@redhat.com>
13336 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13339 2013-11-08 Tom Tromey <tromey@redhat.com>
13341 * configure, config.in: Rebuild.
13342 * configure.ac: Remove unused configury.
13344 2013-11-08 Tom Tromey <tromey@redhat.com>
13346 * acinclude.m4: Include common.m4, codeset.m4.
13347 * configure, config.in: Rebuild.
13348 * configure.ac: Use GDB_AC_COMMON.
13350 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13352 * linux-s390-low.c (HWCAP_S390_TE): New define.
13353 (s390_arch_setup): Consider the TE field in the HWCAP for
13354 determining 'have_regset_tdb'.
13356 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13359 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13362 2013-10-02 Pedro Alves <palves@redhat.com>
13364 * server.c (process_serial_event): Don't output "GDBserver
13365 exiting" if GDB is connected through stdio.
13366 * target.c (mywait): Likewise, be silent if GDB is connected
13369 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13371 * lynx-low.c (lynx_add_threads_after_attach): New function.
13372 (lynx_attach): Remove call to add_thread. Add call to
13373 lynx_add_threads_after_attach instead.
13375 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13377 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13378 * config.in, configure: Regenerated.
13380 2013-09-18 Yao Qi <yao@codesourcery.com>
13383 * server.c (start_inferior): Clear 'resume_info'.
13385 2013-09-16 Jiong Wang <jiwang@tilera.com>
13387 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13390 2013-09-16 Jiong Wang <jiwang@tilera.com>
13392 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13393 linux-tile-low.o to srv_tgtobj.
13395 2013-09-16 Will Newton <will.newton@linaro.org>
13397 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13400 2013-09-06 Pedro Alves <palves@redhat.com>
13402 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13403 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13404 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13405 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13406 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13407 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13409 2013-09-06 Pedro Alves <palves@redhat.com>
13411 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13412 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13414 2013-09-06 Pedro Alves <palves@redhat.com>
13416 * linux-amd64-ipa.c: Include tracepoint.h.
13417 * linux-i386-ipa.c: Include tracepoint.h.
13419 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13421 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13422 (ps_get_thread_area): New function.
13424 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13426 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13427 (initialize_low_arch): Call init_registers_crisv32 rather than
13428 init_register_crisv32.
13430 2013-09-05 Pedro Alves <palves@redhat.com>
13432 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13434 * hostio.h: ... this new file.
13435 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13436 win32-low.c: Include hostio.h.
13438 2013-09-05 Pedro Alves <palves@redhat.com>
13440 * server.h (gdb_client_data, handler_func, callback_handler_func)
13441 (delete_file_handler, add_file_handler, append_callback_event)
13442 (delete_callback_event, start_event_loop, initialize_event_loop):
13443 Move to event-loop.h and include it.
13444 * event-loop.h: New file.
13446 2013-09-05 Pedro Alves <palves@redhat.com>
13448 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13449 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13450 (loaded_dll, unloaded_dll): Move to ...
13451 * dll.h: ... this new file.
13452 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13454 2013-09-05 Pedro Alves <palves@redhat.com>
13456 * server.h (current_process, get_thread_process, all_processes)
13457 (add_inferior_to_list, for_each_inferior, current_inferior)
13458 (remove_inferior, add_process, remove_process, find_process_pid)
13459 (have_started_inferiors_p, have_attached_inferiors_p)
13460 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13461 (clear_inferiors, find_inferior, find_inferior_id)
13462 (inferior_target_data, set_inferior_target_data)
13463 (inferior_regcache_data, set_inferior_regcache_data): Move to
13464 inferiors.h, and include it.
13465 * inferiors.h: New file.
13467 2013-09-05 Pedro Alves <palves@redhat.com>
13469 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13473 2013-09-05 Pedro Alves <palves@redhat.com>
13475 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13477 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13478 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13479 (handle_tracepoint_general_set, handle_tracepoint_query)
13480 (tracepoint_finished_step, tracepoint_was_hit)
13481 (release_while_stepping_state_list, current_traceframe)
13482 (in_readonly_region, traceframe_read_mem)
13483 (fetch_traceframe_registers, traceframe_read_sdata)
13484 (traceframe_read_info, struct fast_tpoint_collect_status)
13485 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13486 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13487 (supply_fast_tracepoint_registers)
13488 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13489 (ipa_tdesc, claim_trampoline_space)
13490 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13491 (agent_mem_read, agent_get_trace_state_variable_value)
13492 (agent_set_trace_state_variable_value, agent_tsv_read)
13493 (agent_mem_read_string, get_raw_reg_func_addr)
13494 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13495 * tracepoint.h: ... this new file.
13497 2013-09-05 Pedro Alves <palves@redhat.com>
13499 * server.h (perror_with_name, error, fatal, warning, paddress)
13500 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13502 * utils.h: New file.
13504 2013-09-05 Pedro Alves <palves@redhat.com>
13506 * server.h (remote_debug, noack_mode, transport_is_reliable)
13507 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13508 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13509 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13510 (write_enn, initialize_async_io, enable_async_io)
13511 (disable_async_io, check_remote_input_interrupt_request)
13512 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13513 (dead_thread_notify, prepare_resume_reply)
13514 (decode_address_to_semicolon, decode_address, decode_m_packet)
13515 (decode_M_packet, decode_X_packet, decode_xfer_write)
13516 (decode_search_memory_packet, unhexify, hexify)
13517 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13518 (look_up_one_symbol, relocate_instruction)
13519 (monitor_output): Move to remote-utils.h, and include it.
13520 * remote-utils.h: New file.
13522 2013-09-05 Pedro Alves <palves@redhat.com>
13524 * server.h (_): Delete.
13526 2013-09-02 Pedro Alves <palves@redhat.com>
13528 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13529 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13531 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13533 2013-09-02 Pierre Muller <muller@sourceware.org>
13535 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13536 or WriteProcessMemory complete successfully and handle
13537 ERROR_PARTIAL_COPY error.
13539 2013-09-02 Pedro Alves <palves@redhat.com>
13541 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13542 error instead of EIO.
13544 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13547 * linux-low.c: Include filestuff.h.
13548 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13549 * lynx-low.c: Include filestuff.h.
13550 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13551 * server.c: Include filestuff.h.
13552 (main): Call notice_open_fds.
13553 * spu-low.c: Include filestuff.h.
13554 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13556 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13558 * Makefile.in: Explain why ../target and ../nat are not
13559 listed as include file search paths.
13560 (linux-waitpid.o): New object file rule.
13561 * configure.srv (srv_native_linux_obj): New variable.
13562 Replace all occurrences of linux native object files with
13563 $srv_native_linux_obj.
13564 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13565 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13566 (linux_enable_event_reporting): Remove declaration.
13567 (my_waitpid): Moved to common/linux-waitpid.c.
13568 (linux_wait_for_event): Pass ptid when calling
13569 linux_enable_event_reporting.
13570 (linux_supports_tracefork_flag): Remove.
13571 (linux_enable_event_reporting): Likewise.
13572 (linux_tracefork_grandchild): Remove.
13573 (STACK_SIZE): Moved to common/linux-ptrace.c.
13574 (linux_tracefork_child): Remove.
13575 (linux_test_for_tracefork): Remove.
13576 (linux_look_up_symbols): Call linux_supports_traceclone.
13577 (initialize_low): Remove call to linux_test_for_tracefork.
13578 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13579 common/linux-ptrace.h.
13580 (PTRACE_TYPE_ARG4): Likewise.
13581 Include linux-ptrace.h.
13583 2013-08-21 Pedro Alves <palves@redhat.com>
13585 * config.in: Renegerate.
13587 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13589 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13590 (SFILES): Remove $(srcdir)/common/target-common.c and
13591 add $(srcdir)/target/waitstatus.c.
13592 (OBS): Remove target-common.o and add waitstatus.o.
13593 (server_h): Remove $(srcdir)/../common/target-common.h and
13594 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13595 and $(srcdir)/../target/waitstatus.h.
13596 (target-common.o): Remove.
13597 (waitstatus.o): New target object file.
13598 * target.h: Do not include target-common.h and
13599 include target/resume.h, target/wait.h and
13600 target/waitstatus.h.
13602 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13604 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13605 to PTRACE_TYPE_ARG3.
13606 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13607 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13609 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13610 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13612 2013-07-27 Jie Zhang <jie@codesourcery.com>
13613 Daniel Jacobowitz <dan@codesourcery.com>
13614 Yao Qi <yao@codesourcery.com>
13616 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13617 (mips-linux-watch.o): New rule.
13618 (mips_linux_watch_h): New variable.
13619 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13621 * linux-mips-low.c: Include mips-linux-watch.h.
13622 (struct arch_process_info, struct arch_lwp_info): New.
13623 (update_watch_registers_callback): New function.
13624 (mips_linux_new_process, mips_linux_new_thread) New functions.
13625 (mips_linux_prepare_to_resume, mips_insert_point): New
13627 (mips_remove_point, mips_stopped_by_watchpoint): New
13629 (rsp_bp_type_to_target_hw_bp_type): New function.
13630 (mips_stopped_data_address): New function.
13631 (the_low_target): Add watchpoint support functions.
13633 2013-07-27 Yao Qi <yao@codesourcery.com>
13635 * i386-low.c: Include break-common.h.
13636 (enum target_hw_bp_type): Remove.
13638 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13640 * Makefile.in (SFILES): /common/target-common.c.
13641 (OBS): Add target-common.o.
13642 (server_h): Add $(srcdir)/../common/target-common.h.
13643 (target-common.o): New target.
13644 * server.c (queue_stop_reply_callback): Free
13645 status string after use.
13646 * target.c (target_waitstatus_to_string): Remove.
13647 * target.h: Include target-common.h.
13648 (resume_kind): Likewise.
13649 (target_waitkind): Likewise.
13650 (target_waitstatus): Likewise.
13651 (TARGET_WNOHANG): Likewise.
13653 2013-07-04 Yao Qi <yao@codesourcery.com>
13655 * Makefile.in (host_alias): Use @host_noncanonical@.
13656 (target_alias): Use @target_noncanonical@.
13657 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13658 ACX_NONCANONICAL_HOST.
13659 * configure: Regenerated.
13662 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13664 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13665 * configure: Rebuild.
13666 * Makefile.in (version_host, version_target): Get from configure.
13667 (version.c): Use $(version_host) and $(version_target).
13669 2013-07-03 Pedro Alves <palves@redhat.com>
13671 * Makefile.in (config.status): Depend on development.sh.
13672 * acinclude.m4: Include libmcheck.m4.
13673 * configure: Regenerate.
13675 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13677 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13678 attribute inside the parentheses.
13679 (winapi_DebugSetProcessKillOnExit): Ditto.
13680 (winapi_DebugBreakProcess): Ditto.
13681 (winapi_GenerateConsoleCtrlEvent): Ditto.
13683 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13685 * notif.h (notif_event): Add a dummy member to avoid compiler
13688 2013-07-01 Pedro Alves <palves@redhat.com>
13690 * hostio.c (HOSTIO_PATH_MAX): Define.
13691 (require_filename, handle_open, handle_unlink, handle_readlink):
13694 2013-07-01 Pedro Alves <palves@redhat.com>
13696 * server.h: Include "pathmax.h".
13697 * linux-low.c: Don't include sys/param.h.
13698 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13700 * win32-low.c: Don't include sys/param.h.
13701 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13703 2013-07-01 Pedro Alves <palves@redhat.com>
13705 * event-loop.c: Don't check HAVE_UNISTD_H before including
13707 * gdbreplay.c: Likewise.
13708 * remote-utils.c: Likewise.
13709 * server.c: Likewise.
13710 * configure.ac: Don't check for unistd.h.
13711 * configure: Regenerate.
13713 2013-06-28 Tom Tromey <tromey@redhat.com>
13715 * Makefile.in (version.c): Use version.in, not
13718 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13720 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13721 * configure: Rebuild.
13722 * Makefile.in (version_host, version_target): Get from configure.
13723 (version.c): Use $(version_host) and $(version_target).
13725 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13727 Fix trace-status to output user name without trailing colon.
13728 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13730 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13732 Fix trace-status to output proper start-time and stop-time.
13733 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13734 output start time and stop time in hex as gdb expects.
13736 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13738 * tracepoint.c (build_traceframe_info_xml): Output trace state
13739 variables present in the trace buffer.
13741 2013-06-24 Tom Tromey <tromey@redhat.com>
13743 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13745 (version.o): Remove.
13746 * gdbreplay.c: Include version.h.
13747 (version, host_name): Don't declare.
13748 * server.h: Include version.h.
13749 (version, host_name): Don't declare.
13751 2013-06-12 Pedro Alves <palves@redhat.com>
13753 * linux-x86-low.c (linux_is_elf64): Delete global.
13754 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13755 with local linux_pid_exe_is_elf_64_file use.
13757 2013-06-11 Pedro Alves <palves@redhat.com>
13759 * linux-low.c (regset_disabled, disable_regset): New functions.
13760 (regsets_fetch_inferior_registers)
13761 (regsets_store_inferior_registers): Use them.
13762 (initialize_regsets_info); Don't allocate the disabled_regsets
13764 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13767 2013-06-11 Pedro Alves <palves@redhat.com>
13769 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13772 2013-06-11 Pedro Alves <palves@redhat.com>
13774 * linux-x86-low.c (initialize_low_arch): Call
13775 init_registers_x32_avx_linux.
13777 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13779 Fix compatibility with Android Bionic.
13780 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13783 2013-06-07 Pedro Alves <palves@redhat.com>
13786 * Makefile.in (OBS): Add tdesc.o.
13787 (IPA_OBJS): Add tdesc-ipa.o.
13788 (tdesc-ipa.o): New rule.
13789 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13791 * linux-low.c (new_inferior): Delete.
13792 (disabled_regsets, num_regsets): Delete.
13793 (linux_add_process): Adjust to set the new per-process
13795 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13796 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13797 was a stop. When calling arch_setup, switch the current inferior
13798 to the thread that got an event.
13799 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13800 (regsets_fetch_inferior_registers)
13801 (regsets_store_inferior_registers): New regsets_info parameter.
13803 (linux_register_in_regsets): New regs_info parameter. Adjust to
13805 (register_addr, fetch_register, store_register): New usrregs_info
13806 parameter. Adjust to use it.
13807 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13808 parameter regs_info. Adjust to use it.
13809 (linux_fetch_registers): Get the current inferior's regs_info, and
13811 (linux_store_registers): Ditto.
13812 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13813 (initialize_low): Don't initialize the target_regsets here. Call
13814 initialize_low_arch.
13815 * linux-low.h (target_regsets): Delete declaration.
13816 (struct regsets_info): New.
13817 (struct usrregs_info): New.
13818 (struct regs_info): New.
13819 (struct process_info_private) <new_inferior>: New field.
13820 (struct linux_target_ops): Delete the num_regs, regmap, and
13821 regset_bitmap fields. New field regs_info.
13822 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13823 * i387-fp.c (num_xmm_registers): Delete.
13824 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13825 calls to new interface.
13826 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13827 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13828 Infer the number of xmm registers from the regcache's target
13830 * i387-fp.h (num_xmm_registers): Delete.
13831 * inferiors.c (add_thread): Don't install the thread's regcache
13833 * proc-service.c (gregset_info): Fetch the current inferior's
13834 regs_info. Adjust to use it.
13835 * regcache.c: Include tdesc.h.
13836 (register_bytes, reg_defs, num_registers)
13837 (gdbserver_expedite_regs): Delete.
13838 (get_thread_regcache): If the thread doesn't have a regcache yet,
13839 create one, instead of aborting gdbserver.
13840 (regcache_invalidate_one): Rename to ...
13841 (regcache_invalidate_thread): ... this.
13842 (regcache_invalidate_one): New.
13843 (regcache_invalidate): Only invalidate registers of the current
13845 (init_register_cache): Add target_desc parameter, and use it.
13846 (new_register_cache): Ditto. Assert the target description has a
13847 non zero registers_size.
13848 (regcache_cpy): Add assertions. Adjust.
13849 (realloc_register_cache, set_register_cache): Delete.
13850 (registers_to_string, registers_from_string): Adjust.
13851 (find_register_by_name, find_regno, find_register_by_number)
13852 (register_cache_size): Add target_desc parameter, and use it.
13853 (free_register_cache_thread, free_register_cache_thread_one)
13854 (regcache_release, register_cache_size): New.
13855 (register_size): Add target_desc parameter, and use it.
13856 (register_data, supply_register, supply_register_zeroed)
13857 (supply_regblock, supply_register_by_name, collect_register)
13858 (collect_register_as_string, collect_register_by_name): Adjust.
13859 * regcache.h (struct target_desc): Forward declare.
13860 (struct regcache) <tdesc>: New field.
13861 (init_register_cache, new_register_cache): Add target_desc
13863 (regcache_invalidate_thread): Declare.
13864 (regcache_invalidate_one): Delete declaration.
13865 (regcache_release): Declare.
13866 (find_register_by_number, register_cache_size, register_size)
13867 (find_regno): Add target_desc parameter.
13868 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13870 * remote-utils.c: Include tdesc.h.
13871 (outreg, prepare_resume_reply): Adjust.
13872 * server.c: Include tdesc.h.
13873 (gdbserver_xmltarget): Delete declaration.
13874 (get_features_xml, process_serial_event): Adjust.
13875 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13877 (struct process_info) <tdesc>: New field.
13878 (ipa_tdesc): Declare.
13879 * tdesc.c: New file.
13880 * tdesc.h: New file.
13881 * tracepoint.c: Include tdesc.h.
13882 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13883 (get_context_regcache): Adjust to pass ipa_tdesc down.
13884 (do_action_at_tracepoint): Adjust to get the register cache size
13885 from the context regcache's description.
13886 (traceframe_walk_blocks): Adjust to get the register cache size
13887 from the current trace frame's description.
13888 (traceframe_get_pc): Adjust to get current trace frame's
13889 description and pass it down.
13890 (gdb_collect): Adjust to get the register cache size from the
13892 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13893 (gdbserver_xmltarget): Delete.
13894 (initialize_low_tracepoint): Set the ipa's target description.
13895 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13896 (initialize_low_tracepoint): Set the ipa's target description.
13897 * linux-x86-low.c: Include tdesc.h.
13898 [__x86_64__] (is_64bit_tdesc): New.
13899 (ps_get_thread_area, x86_get_thread_area): Use it.
13900 (i386_cannot_store_register): Rename to ...
13901 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13902 (i386_cannot_fetch_register): Rename to ...
13903 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13904 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13906 (target_regsets): Rename to ...
13907 (x86_regsets): ... this.
13908 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13910 (x86_siginfo_fixup): Use is_64bit_tdesc.
13911 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13912 (tdesc_x32_avx_linux, tdesc_x32_linux)
13913 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13915 (x86_linux_update_xmltarget): Delete.
13916 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13917 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13918 (AMD64_LINUX_USER64_CS): New.
13919 (x86_linux_read_description): New, based on
13920 x86_linux_update_xmltarget.
13921 (same_process_callback): New.
13922 (x86_arch_setup_process_callback): New.
13923 (x86_linux_update_xmltarget): New.
13924 (x86_regsets_info): New.
13925 (amd64_linux_regs_info): New.
13926 (i386_linux_usrregs_info): New.
13927 (i386_linux_regs_info): New.
13928 (x86_linux_regs_info): New.
13929 (x86_arch_setup): Reimplement.
13930 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13931 (x86_emit_ops): Ditto.
13932 (the_low_target): Adjust. Install x86_linux_regs_info,
13933 x86_cannot_fetch_register, and x86_cannot_store_register.
13934 (initialize_low_arch): New.
13935 * linux-ia64-low.c (tdesc_ia64): Declare.
13936 (ia64_fetch_register): Adjust.
13937 (ia64_usrregs_info, regs_info): New globals.
13938 (ia64_regs_info): New function.
13939 (the_low_target): Adjust.
13940 (initialize_low_arch): New function.
13941 * linux-sparc-low.c (tdesc_sparc64): Declare.
13942 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13944 (sparc_arch_setup): New function.
13945 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13946 (the_low_target): Adjust.
13947 (initialize_low_arch): New function.
13948 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13949 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13950 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13951 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13952 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13953 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13954 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13955 (tdesc_powerpc_isa205_vsx64l): Declare.
13956 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13957 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13958 (ppc_set_pc, ppc_get_hwcap): Adjust.
13959 (ppc_usrregs_info): Forward declare.
13960 (!__powerpc64__) ppc_regmap_adjusted: New global.
13961 (ppc_arch_setup): Adjust to the current process'es target
13963 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13964 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13965 (ppc_store_evrregset): Adjust.
13966 (target_regsets): Rename to ...
13967 (ppc_regsets): ... this, and make static.
13968 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13969 (ppc_regs_info): New function.
13970 (the_low_target): Adjust.
13971 (initialize_low_arch): New function.
13972 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13973 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13974 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13975 (tdesc_s390x_linux64v2): Declare.
13976 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13977 (s390_fill_gregset, s390_store_last_break): Adjust.
13978 (target_regsets): Rename to ...
13979 (s390_regsets): ... this, and make static.
13980 (s390_get_pc, s390_set_pc): Adjust.
13981 (s390_get_hwcap): New target_desc parameter, and use it.
13982 [__s390x__] (have_hwcap_s390_high_gprs): New global.
13983 (s390_arch_setup): Adjust to set the current process'es target
13984 description. Don't adjust the regmap.
13985 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
13986 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
13987 (regs_info_3264): New globals.
13988 (s390_regs_info): New function.
13989 (the_low_target): Adjust.
13990 (initialize_low_arch): New function.
13991 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
13992 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
13993 [__mips64] (init_registers_mips_linux)
13994 (init_registers_mips_dsp_linux): Delete defines.
13995 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
13996 (have_dsp): New global.
13997 (mips_read_description): New, based on mips_arch_setup.
13998 (mips_arch_setup): Reimplement.
13999 (get_usrregs_info): New function.
14000 (mips_cannot_fetch_register, mips_cannot_store_register)
14001 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14002 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14003 (target_regsets): Rename to ...
14004 (mips_regsets): ... this, and make static.
14005 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14006 (dsp_regs_info, regs_info): New globals.
14007 (mips_regs_info): New function.
14008 (the_low_target): Adjust.
14009 (initialize_low_arch): New function.
14010 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14011 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14013 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14014 (arm_read_description): New, with bits factored from
14016 (arm_arch_setup): Reimplement.
14017 (target_regsets): Rename to ...
14018 (arm_regsets): ... this, and make static.
14019 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14020 (arm_regs_info): New function.
14021 (the_low_target): Adjust.
14022 (initialize_low_arch): New function.
14023 * linux-m68k-low.c (tdesc_m68k): Declare.
14024 (target_regsets): Rename to ...
14025 (m68k_regsets): ... this, and make static.
14026 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14027 (m68k_regs_info): New function.
14028 (m68k_arch_setup): New function.
14029 (the_low_target): Adjust.
14030 (initialize_low_arch): New function.
14031 * linux-sh-low.c (tdesc_sharch): Declare.
14032 (target_regsets): Rename to ...
14033 (sh_regsets): ... this, and make static.
14034 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14035 (sh_regs_info, sh_arch_setup): New functions.
14036 (the_low_target): Adjust.
14037 (initialize_low_arch): New function.
14038 * linux-bfin-low.c (tdesc_bfin): Declare.
14039 (bfin_arch_setup): New function.
14040 (bfin_usrregs_info, regs_info): New globals.
14041 (bfin_regs_info): New function.
14042 (the_low_target): Adjust.
14043 (initialize_low_arch): New function.
14044 * linux-cris-low.c (tdesc_cris): Declare.
14045 (cris_arch_setup): New function.
14046 (cris_usrregs_info, regs_info): New globals.
14047 (cris_regs_info): New function.
14048 (the_low_target): Adjust.
14049 (initialize_low_arch): New function.
14050 * linux-cris-low.c (tdesc_crisv32): Declare.
14051 (cris_arch_setup): New function.
14052 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14053 (cris_regs_info): New function.
14054 (the_low_target): Adjust.
14055 (initialize_low_arch): New function.
14056 * linux-m32r-low.c (tdesc_m32r): Declare.
14057 (m32r_arch_setup): New function.
14058 (m32r_usrregs_info, regs_info): New globals.
14059 (m32r_regs_info): Adjust.
14060 (initialize_low_arch): New function.
14061 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14062 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14063 (tic6x_usrregs_info): Forward declare.
14064 (tic6x_read_description): New function, based on ...
14065 (tic6x_arch_setup): ... this. Reimplement.
14066 (target_regsets): Rename to ...
14067 (tic6x_regsets): ... this, and make static.
14068 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14069 (tic6x_regs_info): New function.
14070 (the_low_target): Adjust.
14071 (initialize_low_arch): New function.
14072 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14073 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14074 (target_regsets): Rename to ...
14075 (xtensa_regsets): ... this, and make static.
14076 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14078 (xtensa_arch_setup, xtensa_regs_info): New functions.
14079 (the_low_target): Adjust.
14080 (initialize_low_arch): New function.
14081 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14082 (nios2_arch_setup): Set the current process'es tdesc.
14083 (target_regsets): Rename to ...
14084 (nios2_regsets): ... this.
14085 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14086 (nios2_regs_info): New function.
14087 (the_low_target): Adjust.
14088 (initialize_low_arch): New function.
14089 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14090 (aarch64_arch_setup): Set the current process'es tdesc.
14091 (target_regsets): Rename to ...
14092 (aarch64_regsets): ... this.
14093 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14094 (aarch64_regs_info): New function.
14095 (the_low_target): Adjust.
14096 (initialize_low_arch): New function.
14097 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14099 (target_regsets): Rename to ...
14100 (tile_regsets): ... this.
14101 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14102 (tile_regs_info): New function.
14103 (tile_arch_setup): Set the current process'es tdesc.
14104 (the_low_target): Adjust.
14105 (initialize_low_arch): New function.
14106 * spu-low.c (tdesc_spu): Declare.
14107 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14108 * win32-arm-low.c (tdesc_arm): Declare.
14109 (arm_arch_setup): New function.
14110 (the_low_target): Install arm_arch_setup instead of
14111 init_registers_arm.
14112 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14113 (init_windows_x86): Rename to ...
14114 (i386_arch_setup): ... this. Set `win32_tdesc'.
14115 (the_low_target): Adjust.
14116 * win32-low.c (win32_tdesc): New global.
14117 (child_add_thread): Don't create the thread cache here.
14118 (do_initial_child_stuff): Set the new process'es tdesc.
14119 * win32-low.h (struct target_desc): Forward declare.
14120 (win32_tdesc): Declare.
14121 * lynx-i386-low.c (tdesc_i386): Declare global.
14122 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14123 * lynx-low.c (lynx_tdesc): New global.
14124 (lynx_add_process): Set the new process'es tdesc.
14125 * lynx-low.h (struct target_desc): Forward declare.
14126 (lynx_tdesc): Declare global.
14127 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14128 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14129 * nto-low.c (nto_tdesc): New global.
14130 (do_attach): Set the new process'es tdesc.
14131 * nto-low.h (struct target_desc): Forward declare.
14132 (nto_tdesc): Declare.
14133 * nto-x86-low.c (tdesc_i386): Declare.
14134 (nto_x86_arch_setup): Set `nto_tdesc'.
14136 2013-06-04 Gary Benson <gbenson@redhat.com>
14138 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14139 to qSupported response when appropriate.
14140 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14141 with nonzero-length annex.
14142 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14143 arguments supplied in annex.
14145 2013-05-31 Doug Evans <dje@google.com>
14148 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14149 64 bits in 64-cross-32 environment.
14151 2013-05-28 Pedro Alves <palves@redhat.com>
14153 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14154 (aarch64-without-fpu.c): Delete rule.
14155 * configure.srv (aarch64*-*-linux*): Remove references to
14156 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14157 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14160 2013-05-24 Pedro Alves <palves@redhat.com>
14162 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14163 instead of strchr/decode_address. Error if the range isn't split
14164 with a ','. Don't assume there's be a ':' in the action.
14166 2013-05-23 Yao Qi <yao@codesourcery.com>
14167 Pedro Alves <palves@redhat.com>
14169 * linux-low.c (lwp_in_step_range): New function.
14170 (linux_wait_1): If the thread was range stepping and stopped
14171 outside the stepping range, report the stop to GDB. Otherwise,
14172 continue stepping. Add range stepping debug output.
14173 (linux_set_resume_request): Copy the step range from the resume
14174 request to the lwp.
14175 (linux_supports_range_stepping): New.
14176 (linux_target_ops) <supports_range_stepping>: Set to
14177 linux_supports_range_stepping.
14178 * linux-low.h (struct linux_target_ops)
14179 <supports_range_stepping>: New field.
14180 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14181 * linux-x86-low.c (x86_supports_range_stepping): New.
14182 (the_low_target) <supports_range_stepping>: Set to
14183 x86_supports_range_stepping.
14184 * server.c (handle_v_cont): Handle 'r' action.
14185 (handle_v_requests): Append ";r" if the target supports range
14187 * target.h (struct thread_resume) <step_range_start,
14188 step_range_end>: New fields.
14189 (struct target_ops) <supports_range_stepping>:
14191 (target_supports_range_stepping): New macro.
14193 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14195 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14196 confusion in comment.
14198 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14200 * lynx-low.c (struct process_info_private): New type.
14201 (lynx_add_process): New function.
14202 (lynx_create_inferior, lynx_attach): Replace calls to
14203 add_process by calls to lynx_add_process.
14204 (lynx_resume): If PTID is null, then try using
14205 current_process()->private->last_wait_event_ptid.
14207 (lynx_clear_inferiors): Delete. The contents of that function
14208 has been inlined in lynx_mourn;
14209 (lynx_wait_1): Save the ptid in the process's private data.
14210 (lynx_mourn): Free the process' private data. Replace call
14211 to lynx_clear_inferiors by call to clear_inferiors.
14213 2013-05-17 Yao Qi <yao@codesourcery.com>
14215 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14218 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14220 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14221 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14222 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14223 PT_TEXT_END_ADDR guards. Update comments.
14224 (linux_target_op) <read_offsets>: Conditionally define to
14225 linux_read_offsets if the target is UCLIBC and if it defines
14226 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14228 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14229 Andrew Jenner <andrew@codesourcery.com>
14231 * Makefile.in (SFILES): Add linux-nios2-low.c.
14232 (clean): Add action to delete nios2-linux.c.
14233 (nios2-linux.c): New rule.
14234 * configure.srv: Add nios2*-*-linux*.
14235 * linux-nios2-low.c: New.
14237 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14239 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14241 2013-04-25 Hui Zhu <hui@codesourcery.com>
14244 * ax.c (ax_printf): Add fflush.
14246 2013-04-22 Tom Tromey <tromey@redhat.com>
14248 * Makefile.in (SFILES): Add filestuff.c.
14249 (OBS): Add filestuff.o.
14250 (filestuff.o): New target.
14251 * config.in, configure: Rebuild.
14252 * configure.ac: Check for fdwalk, pipe2.
14254 2013-04-17 Pedro Alves <palves@redhat.com>
14256 * configure.ac (USE_THREAD_DB): Delete variable.
14257 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14258 Don't AC_SUBST USE_THREAD_DB.
14259 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14260 * config.in, configure: Regenerate.
14262 2013-04-16 Pedro Alves <palves@redhat.com>
14264 * linux-low.h (struct lwp_info) <thread_known>: Move under
14265 the USE_THREAD_DB #ifdef.
14267 2013-04-16 Pedro Alves <palves@redhat.com>
14269 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14270 (linux-low.o): Delete rule.
14271 * linux-low.h: Always include "gdb_thread_db.h" instead of
14272 conditionally including thread_db.h.
14273 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14276 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14278 * Makefile.in (install-only): Fix make install regression.
14280 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14282 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14283 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14285 * gdbserver.1: Remove.
14287 2013-03-22 Pedro Alves <palves@redhat.com>
14289 * linux-low.c (handle_extended_wait): Don't call
14290 linux_enable_event_reporting.
14292 2013-03-15 Tony Theodore <tonyt@logyst.com>
14295 * Makefile.in (SHELL): Use @SHELL@.
14297 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14299 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14302 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14304 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14305 Remove extraneous NULL element.
14307 2013-03-13 Yao Qi <yao@codesourcery.com>
14309 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14310 'V' block in trace frame.
14312 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14314 * target.h (struct target_ops): Add btrace ops.
14315 (target_supports_btrace): New macro.
14316 (target_enable_btrace): New macro.
14317 (target_disable_btrace): New macro.
14318 (target_read_btrace): New macro.
14319 * gdbthread.h (struct thread_info): Add btrace field.
14320 * server.c: Include btrace-common.h.
14321 (handle_btrace_general_set): New function.
14322 (handle_btrace_enable): New function.
14323 (handle_btrace_disable): New function.
14324 (handle_general_set): Call handle_btrace_general_set.
14325 (handle_qxfer_btrace): New function.
14326 (struct qxfer qxfer_packets[]): Add btrace entry.
14327 * inferiors.c (remove_thread): Disable btrace.
14328 * linux-low: Include linux-btrace.h.
14329 (linux_low_enable_btrace): New function.
14330 (linux_low_read_btrace): New function.
14331 (linux_target_ops): Add btrace ops.
14332 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14333 Add srv_linux_btrace=yes.
14334 (x86_64-*-linux*): Add linux-btrace.o.
14335 Add srv_linux_btrace=yes.
14336 * configure.ac: Define HAVE_LINUX_BTRACE.
14337 * config.in: Regenerated.
14338 * configure: Regenerated.
14340 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14342 * server.c (handle_qxfer): Preserve error message if -3 is
14344 (qxfer): Document the -3 return value.
14346 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14348 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14349 (linux_btrace_h): New variable.
14350 (linux-btrace.o): New rule.
14352 2013-03-08 Stan Shebs <stan@codesourcery.com>
14353 Hafiz Abid Qadeer <abidh@codesourcery.com>
14355 * tracepoint.c (trace_buffer_size): New global.
14356 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14357 (init_trace_buffer): Change to one-argument function. Allocate
14358 trace buffer memory.
14359 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14360 handle QTBuffer:size packet.
14361 (cmd_bigqtbuffer_size): New function.
14362 (initialize_tracepoint): Call init_trace_buffer with
14363 DEFAULT_TRACE_BUFFER_SIZE.
14364 * server.c (handle_query): Add QTBuffer:size in the
14367 2013-03-07 Yao Qi <yao@codesourcery.com>
14369 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14370 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14372 (cmd_qtsp): Adjust condition. Do post increment.
14373 Set cur_action and cur_step_action back to 0.
14375 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14378 * linux-low.c (linux_write_memory): Return early success if LEN is
14381 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14383 * configure.srv: Add x86_64-*-cygwin* as target.
14385 2013-02-28 Tom Tromey <tromey@redhat.com>
14387 * configure.ac: Invoke AC_SYS_LARGEFILE.
14388 * configure, config.in: Rebuild.
14390 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14392 * win32-low.c: Throughout, fix format strings and casts of
14393 printf-like functions to avoid type related warnings on all
14395 (get_child_debug_event): Print dwDebugEventCode as hex since
14396 that's how it's usually documented.
14398 2013-02-28 Yao Qi <yao@codesourcery.com>
14400 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14403 2013-02-27 Jiong Wang <jiwang@tilera.com>
14405 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14406 (reg-tilegx32.c): New rule.
14407 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14408 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14409 different register info initializer according to elf class.
14410 (init_registers_tilgx32): New function. The tilegx32 register info
14412 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14413 (tile_store_gregset): Likewise.
14415 2013-02-27 Yao Qi <yao@codesourcery.com>
14417 * server.c (process_point_options): Print debug message when
14418 debug_threads is true.
14420 2013-02-26 Yao Qi <yao@codesourcery.com>
14422 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14424 2013-02-19 Pedro Alves <palves@redhat.com>
14425 Kai Tietz <ktietz@redhat.com>
14429 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14430 instead of strtoul to extract address from packet.
14431 (process_serial_event) <'z'>: Likewise.
14433 2013-02-18 Yao Qi <yao@codesourcery.com>
14435 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14437 2013-02-14 Pedro Alves <palves@redhat.com>
14441 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14442 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14444 2013-02-14 Pedro Alves <palves@redhat.com>
14446 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14448 2013-02-14 Pedro Alves <palves@redhat.com>
14450 * tracepoint.c (save_string): Delete.
14451 (add_tracepoint_action): Use savestring instead of save_string.
14453 2013-02-12 Pedro Alves <palves@redhat.com>
14455 * linux-xtensa-low.c: Ditto.
14456 * xtensa-xtregs.c: Ditto.
14458 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14460 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14463 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14465 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14466 aarch64_num_wp_regs and aarch64_num_bp_regs to
14467 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14469 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14471 * linux-aarch64-low.c (ps_get_thread_area): Replace
14472 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14474 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14475 Marcus Shawcroft <marcus.shawcroft@arm.com>
14476 Nigel Stephens <nigel.stephens@arm.com>
14477 Yufeng Zhang <yufeng.zhang@arm.com>
14479 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14480 (aarch64.c, aarch64-without-fpu.c): New targets.
14481 * configure.srv (aarch64*-*-linux*): New.
14482 * linux-aarch64-low.c: New file.
14484 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14486 * linux-low.c (handle_extended_wait, linux_create_inferior)
14487 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14488 (dequeue_one_deferred_signal, linux_resume_one_thread)
14489 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14490 (linux_tracefork_grandchild, linux_test_for_tracefork)
14491 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14492 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14493 where the argument is 0.
14495 2013-01-25 Yao Qi <yao@codesourcery.com>
14497 * event-loop.c: Include "queue.h".
14498 (gdb_event_p): New typedef.
14499 (struct gdb_event) <next_event>: Remove.
14500 (event_queue): Change to QUEUE(gdb_event_p).
14501 (async_queue_event): Remove.
14502 (gdb_event_xfree): New.
14503 (initialize_event_loop): New.
14504 (process_event): Use API from QUEUE.
14505 (wait_for_event): Likewise.
14506 * server.c (main): Call initialize_event_loop.
14507 * server.h (initialize_event_loop): Declare.
14509 2013-01-18 Yao Qi <yao@codesourcery.com>
14511 * ax.h (struct eval_agent_expr_context): New.
14512 (gdb_eval_agent_expr): Update declaration.
14513 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14514 TFRAME. Add new argument CTX.
14515 * server.h (struct eval_agent_expr_context): Declare.
14516 (agent_mem_read, agent_tsv_read): Update declaration.
14517 (agent_mem_read_string): Likewise.
14518 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14519 (add_traceframe_block): Add new argument TPOINT.
14520 Increase TPOINT->traceframe_usage.
14521 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14522 eval_tracepoint_agent_expr.
14523 (condition_true_at_tracepoint): Likewise.
14524 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14525 (agent_mem_read_string, agent_tsv_read): Likewise.
14527 2013-01-16 Yao Qi <yao@codesourcery.com>
14529 * linux-low.c (linux_resume_one_lwp): Don't check
14530 'lwp->bp_reinsert != 0'.
14532 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14533 Pedro Alves <palves@redhat.com>
14535 * lynx-low.c (ptrace_request_to_str): Define a temporary
14536 macro and use it to simplify this function's implementation.
14538 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14540 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14543 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14545 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14547 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14549 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14551 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14553 * lynx-low.c (lynx_resume): Use the resume_info parameter
14554 to determine the ptid for the lynx_ptrace call, unless
14555 it is equal to minus_one_ptid, in which case we use the
14556 ptid of the current_inferior.
14557 (lynx_wait_1): After having received a thread create/exit
14558 event, resume the inferior's execution using the signaling
14559 thread's ptid, rather than the old ptid.
14561 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14563 * lynx-low.c (lynx_resume): Delete variable ret.
14565 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14567 * gdbreplay.c (gdbreplay_version): Update copyright year.
14568 * server.c (gdbserver_version): Likewise.
14570 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14572 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14575 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14577 * lynx-low.c (ptrace_request_to_str): Add handling for
14578 PTRACE_GETTRACESIG.
14580 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14582 * lynx-low.c (lynx_attach): Delete variable new_process.
14584 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14586 * lynx-low.c (lynx_create_inferior): Delete variable
14589 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14591 * lynx-low.c (ptrace_request_to_str): Do not handle
14592 PTRACE_GETTHREADLIST if this macro does not exist.
14594 2012-12-15 Yao Qi <yao@codesourcery.com>
14596 * Makefile.in (OBS): Add notif.o.
14597 * notif.c, notif.h: New.
14598 * server.c: Include "notif.h".
14599 (struct vstop_notif) <next>: Remove.
14601 (queue_stop_reply): Update.
14602 (push_event, send_next_stop_reply): Remove.
14603 (discard_queued_stop_replies): Update.
14604 (notif_stop): New variable.
14605 (handle_v_stopped): Remove.
14606 (handle_v_requests): Don't call handle_v_stopped. Call
14607 handle_ack_notif instead.
14608 (queue_stop_reply_callback): Call notif_event_enque instead
14609 of queue_stop_reply.
14610 (handle_status): Don't call send_next_stop_reply, call
14611 notif_write_event instead.
14612 (kill_inferior_callback): Likewise.
14613 (detach_or_kill_inferior_callback): Likewise.
14614 (main): Call initialize_notif.
14615 (process_serial_event): Call QUEUE_is_empty.
14616 (handle_target_event): Call notif_push instead of push event.
14617 * server.h (push_event): Remove declaration.
14619 2012-12-10 Tom Tromey <tromey@redhat.com>
14621 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14622 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14625 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14626 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14627 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14628 (amd64-linux-ipa.o, ax.o): Rewrite.
14629 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14630 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14631 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14632 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14633 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14634 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14635 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14636 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14637 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14638 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14639 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14640 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14641 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14642 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14643 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14644 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14645 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14646 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14647 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14648 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14649 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14650 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14651 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14652 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14653 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14654 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14655 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14656 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14657 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14658 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14659 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14660 (reg-tilegx.o): Remove.
14661 (all_object_files): New macro.
14662 Include .deps files.
14663 * aclocal.m4, configure: Rebuild.
14664 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14665 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14666 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14668 2012-12-05 Tom Tromey <tromey@redhat.com>
14671 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14673 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14675 * configure.ac: Check for linux/perf_event.h.
14676 * config.in: Regenerated.
14677 * configure: Regenerated.
14679 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14681 * hostio.c (handle_readlink): Decrease buffer size
14682 parameter passed to readlink by one byte.
14684 2012-11-26 Yao Qi <yao@codesourcery.com>
14686 * configure.ac (build_warnings): Append '-Wempty-body'.
14687 * configure: Regenerated.
14688 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14691 2012-11-15 Pierre Muller <muller@sourceware.org>
14693 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14694 * config.in: Regenerate.
14695 * configure: Regenerate.
14696 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14697 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14698 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14699 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14701 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14702 instead of <sys/wait.h> header.
14703 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14705 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14707 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14708 (various make rules): Remove -DGDBSERVER
14710 2012-11-09 Yao Qi <yao@codesourcery.com>
14712 * spu-low.c (current_ptid): Move it to ..
14713 * gdbthread.h: ... here. New.
14714 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14715 * server.c (myresume, process_serial_event): Likewise.
14716 * thread-db.c (thread_db_find_new_threads): Likewise.
14717 * tracepoint.c (run_inferior_command): Likewise.
14719 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14721 * server.c (handle_search_memory_1): Include access length in
14724 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14726 * linux-crisv32-low.c: Fix compile errors.
14728 2012-09-04 Yao Qi <yao@codesourcery.com>
14730 * tracepoint.c (cmd_qtsv): Adjust debug message.
14731 Don't check CUR_TPOINT.
14733 2012-08-28 Yao Qi <yao@codesourcery.com>
14735 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14736 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14737 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14738 Remove declarations of xmalloc, xreallloc, xstrdup and
14740 * Makefile.in (libiberty_h): New.
14741 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14742 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14744 2012-08-23 Yao Qi <yao@codesourcery.com>
14746 * server.h: Remove declaration of 'xsnprintf'.
14748 2012-08-22 Keith Seitz <keiths@redhat.com>
14750 * server.h: Include build-gnulib-gbserver/config.h.
14751 * gdbreplay.c: Likewise.
14753 2012-08-08 Doug Evans <dje@google.com>
14755 * Makefile.in (SFILES): Add gdb_vecs.c.
14756 (OBS): Add gdb_vecs.o.
14757 (gdb_vecs_h, host_defs_h): New variables.
14758 (thread-db.o): Add $(gdb_vecs_h) dependency.
14759 (gdb_vecs.o): New rule.
14760 * thread-db.c: #include "gdb_vecs.h".
14761 (thread_db_load_search): Use a vector to iterate over path elements.
14762 Handle text appearing after "$pdir".
14764 * configure.ac: Add check for strstr.
14765 * config.in: Regenerate.
14766 * configure: Regenerate.
14768 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14770 * hostio.c (handle_pread): If pread fails, fall back to attempting
14772 (handle_pwrite): Likewise for pwrite.
14774 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14776 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14777 between unsupported TYPE and unimplementable ADDR/LEN combination.
14778 (arm_insert_point): Act on new return value.
14780 2012-07-31 Pedro Alves <palves@redhat.com>
14782 * server.c (process_point_options): Only skip tokens if we find
14783 one that is unrecognized. Don't treat 'X' specially while
14784 skipping unrecognized tokens.
14786 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14788 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14789 to 4-byte-align HW breakpoint addresses for Thumb.
14791 2012-07-27 Yao Qi <yao@codesourcery.com>
14795 * server.h: Declare gdb_agent_about_to_close.
14796 * target.c (kill_inferior): Include "agent.h".
14797 New. Send command 'kill'.
14798 * target.h (kill_inferior): Removed macro.
14799 * tracepoint.c (gdb_agent_about_to_close): New.
14800 (gdb_agent_helper_thread): Handle command 'close'.
14801 Wait endlessly until the inferior stops.
14802 Install gdb_agent_remove_socket to atexit hook.
14803 (agent_socket_name): New static variable.
14804 (gdb_agent_socket_init): Replace local variable 'name' with
14805 'agent_socket_name'.
14806 (gdb_agent_remove_socket): New.
14808 2012-07-27 Yao Qi <yao@codesourcery.com>
14810 * server.c (process_point_options): Stop at 'X' when parsing.
14812 2012-07-19 Michael Eager <eager@eagercon.com>
14814 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14816 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14817 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14818 hardware breakpoint.
14820 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14822 * gdbserver/linux-low.c (initialize_low): Call
14823 linux_ptrace_init_warnings.
14825 2012-07-02 Doug Evans <dje@google.com>
14827 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14830 2012-07-02 Stan Shebs <stan@codesourcery.com>
14832 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14833 (ax.o): Add it to build rule.
14835 (OBS): Add format.o.
14836 (IPA_OBS): Add format.o.
14837 * server.c (handle_query): Claim support for breakpoint commands.
14838 (process_point_options): Add command case.
14839 (process_serial_event): Leave running if there are printfs in
14841 * mem-break.h (any_persistent_commands): Declare.
14842 (add_breakpoint_commands): Declare.
14843 (gdb_no_commands_at_breakpoint): Declare.
14844 (run_breakpoint_commands): Declare.
14845 * mem-break.c (struct point_command_list): New struct.
14846 (struct breakpoint): New field command_list.
14847 (any_persistent_commands): New function.
14848 (add_commands_to_breakpoint): New function.
14849 (add_breakpoint_commands): New function.
14850 (gdb_no_commands_at_breakpoint): New function.
14851 (run_breakpoint_commands): New function.
14852 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14854 * ax.c: Include format.h.
14855 (ax_printf): New function.
14856 (gdb_eval_agent_expr): Add printf opcode.
14858 2012-06-13 Yao Qi <yao@codesourcery.com>
14860 * server.c (start_inferior): Remove duplicated writes to fields
14861 'last_resume_kind' and 'last_status' of 'current_inferior'.
14863 2012-06-12 Yao Qi <yao@codesourcery.com>
14864 Pedro Alves <palves@redhat.com>
14866 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14868 * server.c (handle_v_cont): Extend comment.
14870 2012-06-11 Yao Qi <yao@codesourcery.com>
14872 * linux-low.c (linux_attach): Add 'static'.
14874 2012-06-06 Yao Qi <yao@codesourcery.com>
14876 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14878 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14880 Fix gcc -flto compilation warning.
14881 * server.c (main): Make variable multi_mode and attach volatile.
14883 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14885 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14886 if the platform doesn't know about it.
14888 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14890 * Makefile.in (SFILES): Add linux-tile-low.c.
14891 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14892 * configure.srv: Handle tilegx-*-linux*.
14893 * linux-tile-low.c: New file.
14895 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14897 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14899 2012-05-24 Pedro Alves <palves@redhat.com>
14903 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14905 2012-05-24 Pedro Alves <palves@redhat.com>
14909 Replace target_signal with gdb_signal throughout.
14911 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14913 * linux-low.c (linux_store_registers): Avoid the copying sequence
14914 when no data has been retrieved by ptrace.
14916 2012-05-22 Will Deacon <will.deacon@arm.com>
14918 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14919 Include asm/ptrace.h.
14920 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14923 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14925 * linux-low.c (linux_store_registers): Don't re-retrieve data
14926 with ptrace that has already been obtained from /proc. Always
14927 copy any data retrieved with ptrace to the buffer supplied.
14929 2012-05-11 Yao Qi <yao@codesourcery.com>
14930 Pedro Alves <palves@redhat.com>
14932 * linux-low.c (enum stopping_threads_kind): New.
14933 (stopping_threads): Change type to `enum stopping_threads_kind'.
14934 (handle_extended_wait): If stopping and suspending threads, leave
14935 the new_lwp suspended too.
14936 (linux_wait_for_event): Adjust.
14937 (stop_all_lwps): Set `stopping_threads' to
14938 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14939 whether we're suspending threads or just stopping them. Assert no
14942 2012-04-29 Yao Qi <yao@codesourcery.com>
14944 * server.h: Move some code to ...
14945 * gdbthread.h: ... here. New.
14946 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14947 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14948 (nto-low.o, win32-low.o): Likewise.
14949 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14950 * regcache.c, remote-utils.c, server.c: Likewise.
14951 * target.c, tracepoint.c, win32-low.c: Likewise.
14953 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14955 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14956 (PTRACE_ARG4_TYPE): Likewise.
14957 (PTRACE_XFER_TYPE): Likewise.
14958 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14959 ptrace to PTRACE_ARG3_TYPE.
14960 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14961 (PTRACE_ARG4_TYPE): Likewise.
14962 (PTRACE_XFER_TYPE): Likewise.
14963 (linux_detach_one_lwp): Cast fourth argument of
14964 ptrace to long then PTRACE_ARG4_TYPE.
14965 (regsets_fetch_inferior_registers): Cast third argument of
14966 ptrace to long then PTRACE_ARG3_TYPE.
14967 (regsets_store_inferior_registers): Likewise.
14969 2012-04-20 Pedro Alves <palves@redhat.com>
14971 * configure: Regenerate.
14973 2012-04-19 Pedro Alves <palves@redhat.com>
14975 * Makefile.in (GNULIB_BUILDDIR): New.
14976 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14977 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14978 (all, install-only, uninstall, clean-info, all-lib, clean): No
14979 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14980 (maintainer-clean realclean distclean): Use subdir_do.
14982 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
14983 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
14984 * acinclude.m4: Include acx_configure_dir.m4.
14985 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
14986 calls. Call AC_PROG_RANLIB. Configure gnulib using
14989 (GNULIB_STDINT_H): Adjust.
14990 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
14991 * gdbreplay.c: Include build-gnulib/config.h.
14992 * server.h: Likewise.
14993 * aclocal.m4: Regenerate.
14994 * config.in: Regenerate.
14995 * configure: Regenerate.
14997 2012-04-19 Pedro Alves <palves@redhat.com>
14999 * Makefile.in (LIBGNU, INCGNU): Adjust.
15000 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15001 (all, install-only, uninstall, clean-info, all-lib, clean)
15002 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15003 * configure.ac: Adjust AC_OUTPUT output.
15004 * aclocal.m4: Regenerate.
15005 * configure: Regenerate.
15007 2012-04-19 Pedro Alves <palves@redhat.com>
15009 * Makefile.in (generated_files): New.
15010 (server_h): Remove the explicit dependency on config.h, and depend
15011 on $generated_files.
15013 2012-04-19 Pedro Alves <palves@redhat.com>
15015 * Makefile.in (INCGNU): Add -Ignulib.
15017 2012-04-19 Pedro Alves <palves@redhat.com>
15019 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15020 (INCGNU): ... this, and spell out -I here.
15021 (GNULIB_LIB): Rename to ...
15022 (LIBGNU): ... this.
15023 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15025 2012-04-19 Pedro Alves <palves@redhat.com>
15027 * config.in: Regenerate.
15029 2012-04-19 Pedro Alves <palves@redhat.com>
15031 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15032 * server.h (memmem): Remove declaration.
15033 * config.in: Regenerate.
15034 * configure: Regenerate.
15036 2012-04-19 Yao Qi <yao@codesourcery.com>
15038 * Makefile.in (SFILES): Add common/vec.c.
15042 2012-04-19 Yao Qi <yao@codesourcery.com>
15044 * remote-utils.c (prepare_resume_reply): Replace with macro
15045 target_core_of_thread.
15046 * server.c (handle_qxfer_threads_proper): Likewise.
15047 * target.h (traget_core_of_thread): New macro.
15049 2012-04-18 Pedro Alves <palves@redhat.com>
15051 * aclocal.m4: Regenerate.
15052 * configure: Regenerate.
15054 2012-04-16 Yao Qi <yao@codesourcery.com>
15056 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15057 duplicated on address.
15059 2012-04-16 Yao Qi <yao@codesourcery.com>
15061 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15062 (struct tracepoint_action_ops) <send>: New field.
15063 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15064 (agent_expr_send, x_tracepoint_action_send): New.
15065 (l_tracepoint_action_send): New.
15066 (cmd_qtdp): Download and install tracepoint
15067 according to `use_agent'.
15068 (run_inferior_command): Add one more parameter `len'.
15070 (tracepoint_send_agent): New.
15071 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15073 2012-04-16 Yao Qi <yao@codesourcery.com>
15075 * tracepoint.c (download_tracepoints): Moved to ...
15076 (cmd_qtstart): ... here.
15078 2012-04-14 Yao Qi <yao@codesourcery.com>
15080 * tracepoint.c: Include inttypes.h.
15081 (struct collect_memory_action): Use sized types.
15082 (struct tracepoint): Likewise.
15083 (cmd_qtdp, stop_tracing): Update print specifiers.
15084 (cmd_qtp, response_tracepoint): Likewise.
15085 (collect_data_at_tracepoint): Likewise.
15086 (collect_data_at_step): Likewise.
15088 2012-04-14 Yao Qi <yao@codesourcery.com>
15090 Import gnulib module inttypes.
15091 * aclocal.m4, config.in, configure: Regenerated.
15093 2012-04-14 Yao Qi <yao@codesourcery.com>
15095 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15096 Makefile and config.status at last.
15098 2012-04-13 Yao Qi <yao@codesourcery.com>
15100 * tracepoint.c: Include stdint.h unconditionally.
15102 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15104 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15105 on BFD_HAVE_SYS_PROCFS_TYPE.
15106 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15107 * configure: Regenerate.
15108 * config.in: Likewise.
15110 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15112 * Makefile.in (clean): Also remove x32.c x32-linux.c
15113 x32-avx.c x32-avx-linux.c.
15114 (x32.o): New target.
15116 (x32-linux.o): Likewise.
15117 (x32-linux.c): Likewise.
15118 (x32-avx.o): Likewise.
15119 (x32-avx.c): Likewise.
15120 (x32-avx-linux.o): Likewise.
15121 (x32-avx-linux.c): Likewise.
15123 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15124 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15125 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15126 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15127 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15128 i386/x32-avx-linux.xml.
15130 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15131 (init_registers_x32_avx_linux): Likwise.
15132 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15133 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15135 2012-04-13 Pedro Alves <palves@redhat.com>
15137 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15138 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15139 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15140 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15143 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15145 * linux-x86-low.c (compat_x32_clock_t): New.
15146 (compat_x32_siginfo_t): Likewise.
15147 (compat_x32_siginfo_from_siginfo): Likewise.
15148 (siginfo_from_compat_x32_siginfo): Likewise.
15149 (linux_is_elf64): Likewise.
15150 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15151 and siginfo_from_compat_x32_siginfo for x32.
15152 (x86_arch_setup): Set linux_is_elf64.
15154 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15157 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15159 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15160 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15161 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15162 compatible with process.
15164 2012-04-12 Yao Qi <yao@codesourcery.com>
15166 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15167 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15168 (install-only, install-info, clean): Handle sub dir gnulib.
15169 (all-lib, am--refresh): New targets.
15170 (memmem.o): Remove target.
15171 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15172 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15173 (AC_REPLACE_FUNCS): Remove memmem.
15174 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15175 (AC_OUTPUT): Generate Makefile in gnulib/.
15176 * aclocal.m4, config.in, configure: Regenerated.
15178 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15180 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15182 2012-04-05 Pedro Alves <palves@redhat.com>
15184 -Werror=strict-aliasing
15186 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15189 2012-04-04 Pedro Alves <palves@redhat.com>
15191 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15192 (sparc_store_gregset_from_stack, sparc_store_gregset)
15193 (sparc_breakpoint_at): Fix formatting.
15195 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15197 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15199 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15200 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15201 * config.in: Regenerate.
15202 * configure: Likewise.
15204 2012-03-29 Pedro Alves <palves@redhat.com>
15206 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15207 Correct ptrace arguments.
15209 2012-03-28 Pedro Alves <palves@redhat.com>
15211 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15212 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15213 (IA64_FR1_REGNUM): New defines.
15214 (ia64_fetch_register): New.
15215 (the_low_target): Install it.
15216 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15218 * linux-low.c (linux_fetch_registers): Try the
15219 the_low_target.fetch_register hook first.
15221 * linux-arm-low.c (the_low_target): Adjust.
15222 * linux-bfin-low.c (the_low_target): Adjust.
15223 * linux-cris-low.c (the_low_target): Adjust.
15224 * linux-crisv32-low.c (the_low_target): Adjust.
15225 * linux-m32r-low.c (the_low_target): Adjust.
15226 * linux-m68k-low.c (the_low_target): Adjust.
15227 * linux-mips-low.c (the_low_target): Adjust.
15228 * linux-ppc-low.c (the_low_target): Adjust.
15229 * linux-s390-low.c (the_low_target): Adjust.
15230 * linux-sh-low.c (the_low_target): Adjust.
15231 * linux-sparc-low.c (the_low_target): Adjust.
15232 * linux-tic6x-low.c (the_low_target): Adjust.
15233 * linux-x86-low.c (the_low_target): Adjust.
15234 * linux-xtensa-low.c (the_low_target): Adjust.
15236 2012-03-26 Pedro Alves <palves@redhat.com>
15238 * server.c (handle_qxfer_libraries): Don't bail early if
15239 the_target->qxfer_libraries_svr4 is not NULL.
15241 2012-03-26 Pedro Alves <palves@redhat.com>
15243 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15245 2012-03-23 Pedro Alves <palves@redhat.com>
15247 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15248 "library-list-svr4" element's start tag when the the DSO list is
15251 2012-03-23 Pedro Alves <palves@redhat.com>
15253 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15254 a variable whose type size is the same as the inferior's pointer
15257 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15259 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15261 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15262 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15263 * linux-low.h: Include <signal.h>.
15264 (struct siginfo): Remove forward declaration.
15265 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15268 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15270 * .gitignore: Ignore more files.
15272 2012-03-19 Pedro Alves <palves@redhat.com>
15273 Jan Kratochvil <jan.kratochvil@redhat.com>
15275 * server.c (cont_thread, general_thread): Add describing comments.
15276 (start_inferior): Clear `cont_thread'.
15277 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15280 2012-03-15 Yao Qi <yao@codesourcery.com>
15282 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15284 (cmd_qtdp): ... here.
15286 2012-03-15 Yao Qi <yao@codesourcery.com>
15288 * tracepoint.c (struct tracepoint_action_ops): New.
15289 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15290 (m_tracepoint_action_download): New.
15291 (r_tracepoint_action_download): New.
15292 (x_tracepoint_action_download): New.
15293 (l_tracepoint_action_download): New.
15294 (add_tracepoint_action): Install `action->ops' according type.
15295 (download_tracepoint_1): Move code `download' function pointer
15296 of various tracepoint_action_ops.
15298 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15300 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15301 linux_ptrace_attach_warnings.
15303 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15305 * Makefile.in (linux-ptrace.o): New.
15306 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15307 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15308 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15309 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15310 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15312 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15314 2012-03-08 Yao Qi <yao@codesourcery.com>
15315 Pedro Alves <palves@redhat.com>
15317 Fix PR server/13392.
15318 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15319 offset of JMP insn.
15320 * tracepoint.c (remove_tracepoint): New.
15321 (cmd_qtdp): Call remove_tracepoint when failed to install.
15323 2012-03-07 Pedro Alves <palves@redhat.com>
15325 * linux-low.c (get_detach_signal): New.
15326 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15327 Pass on pending signals to PTRACE_DETACH. Check the result of the
15329 * server.c (program_signals, program_signals_p): New.
15330 (handle_general_set): Handle QProgramSignals.
15331 * server.h (program_signals, program_signals_p): Declare.
15333 2012-03-05 Pedro Alves <palves@redhat.com>
15334 Jan Kratochvil <jan.kratochvil@redhat.com>
15336 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15339 2012-03-03 Yao Qi <yao@codesourcery.com>
15341 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15342 agent_look_up_symbols.
15344 2012-03-03 Yao Qi <yao@codesourcery.com>
15346 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15347 (linux-x86-low.o): Likewise.
15348 * server.h: Remove in_process_agent_loaded.
15349 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15353 2012-03-03 Yao Qi <yao@codesourcery.com>
15355 * tracepoint.c (gdb_agent_capability): New global.
15356 (in_process_agent_loaded_ust): Renamed to
15357 `in_process_agent_supports_ust'.
15359 (in_process_agent_supports_ust): Call agent_capability_check.
15360 (clear_installed_tracepoints): Assert that agent supports
15363 2012-03-03 Yao Qi <yao@codesourcery.com>
15365 * linux-low.c (linux_supports_agent): New.
15366 (linux_target_ops): Initialize field `supports_agent' with
15367 linux_supports_agent.
15368 * target.h (struct target_ops) <supports_agent>: New.
15369 (target_supports_agent): New macro.
15370 * server.c (handle_general_set): Handle packet 'QAgent'.
15371 (handle_query): Send `QAgent+'.
15372 * Makefile.in (server.o): Depends on agent.h.
15374 2012-03-03 Yao Qi <yao@codesourcery.com>
15376 * Makefile.in (OBS): Add agent.o.
15377 Add new rule for agent.o.
15378 Track dependence of tracepoint.c on agent.h.
15379 * tracepoint.c (run_inferior_command_1):
15380 (run_inferior_command): Call agent_run_command.
15381 (gdb_ust_connect_sync_socket): Deleted. Move it to
15383 (resume_thread, stop_thread): Likewise.
15384 (gdb_ust_socket_init): Renamed to ...
15385 (gdb_agent_socket_init): ... New.
15386 (gdb_ust_thread): Renamed to ...
15387 (gdb_agent_helper_thread): ... New.
15388 (gdb_ust_init): Move some code to ...
15389 (gdb_agent_init): ... here. New.
15390 [HAVE_UST]: Call gdb_ust_init.
15391 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15392 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15393 * config.in, configure: Regenerated.
15395 2012-03-02 Pedro Alves <palves@redhat.com>
15397 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15398 * linux-low.c (struct simple_pid_list): New.
15399 (stopped_pids): New a struct simple_pid_list pointer.
15400 (add_to_pid_list, pull_pid_from_list): New.
15401 (handle_extended_wait): Don't assume the first signal new children
15402 report is SIGSTOP. Adjust call to pull_pid_from_list.
15403 (linux_wait_for_lwp): Adjust.
15405 2012-03-02 Yao Qi <yao@codesourcery.com>
15407 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15410 2012-03-02 Yao Qi <yao@codesourcery.com>
15412 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15413 `stop_pc' and `tpoint'. Update caller.
15415 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15417 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15418 * linux-low.c (use_linux_regsets): New macro.
15419 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15420 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15421 (linux_register_in_regsets): New function.
15422 (usr_fetch_inferior_registers): Skip registers covered by
15424 (usr_store_inferior_registers): Likewise.
15425 (usr_fetch_inferior_registers): New macro.
15426 (usr_store_inferior_registers): Likewise.
15427 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15428 (linux_store_registers): Likewise.
15429 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15431 (init_registers_mips64_dsp_linux): Likewise.
15432 (init_registers_mips_linux): New macro.
15433 (init_registers_mips_dsp_linux): Likewise.
15434 (mips_dsp_num_regs): Likewise.
15435 (DSP_BASE, DSP_CONTROL): New fallback macros.
15436 (mips_base_regs): New macro.
15437 (mips_regmap): Use it. Fix the size.
15438 (mips_dsp_regmap): New variable.
15439 (mips_dsp_regset_bitmap): Likewise.
15440 (mips_arch_setup): New function.
15441 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15443 (mips_cannot_store_register): Likewise.
15444 (the_low_target): Update .arch_setup, .num_regs and .regmap
15445 initializers. Add .regset_bitmap initializer.
15446 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15448 * linux-bfin-low.c (the_low_target): Likewise.
15449 * linux-cris-low.c (the_low_target): Likewise.
15450 * linux-crisv32-low.c (the_low_target): Likewise.
15451 * linux-ia64-low.c (the_low_target): Likewise.
15452 * linux-m32r-low.c (the_low_target): Likewise.
15453 * linux-m68k-low.c (the_low_target): Likewise.
15454 * linux-ppc-low.c (the_low_target): Likewise.
15455 * linux-s390-low.c (the_low_target): Likewise.
15456 * linux-sh-low.c (the_low_target): Likewise.
15457 * linux-sparc-low.c (the_low_target): Likewise.
15458 * linux-tic6x-low.c (the_low_target): Likewise.
15459 * linux-x86-low.c (the_low_target): Likewise.
15460 * linux-xtensa-low.c (the_low_target): Likewise.
15461 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15462 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15463 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15465 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15466 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15468 2012-02-29 Yao Qi <yao@codesourcery.com>
15469 Pedro Alves <palves@redhat.com>
15471 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15472 `step_over_finished' is true.
15474 2012-02-27 Pedro Alves <palves@redhat.com>
15476 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15477 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15479 2012-02-27 Pedro Alves <palves@redhat.com>
15482 * linux-low.c (pid_is_stopped): New.
15483 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15485 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15487 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15490 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15492 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15494 2012-02-24 Luis Machado <lgustavo@codesourcery>
15496 * server.c (handle_query): Advertise support for target-side
15497 breakpoint condition evaluation.
15498 (process_point_options): New function.
15499 (process_serial_event): When inserting a breakpoint, check for
15500 a target-side condition that should be evaluated.
15502 * mem-break.c: Include regcache.h and ax.h.
15503 (point_cond_list_t): New data structure.
15504 (breakpoint) <cond_list>: New field.
15505 (find_gdb_breakpoint_at): Make non-static.
15506 (delete_gdb_breakpoint_at): Clear any target-side
15508 (clear_gdb_breakpoint_conditions): New function.
15509 (add_condition_to_breakpoint): Likewise.
15510 (add_breakpoint_condition): Likewise.
15511 (gdb_condition_true_at_breakpoint): Likewise.
15512 (gdb_breakpoint_here): Return result directly instead
15513 of going through a local variable.
15515 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15516 (clear_gdb_breakpoint_conditions): Likewise.
15517 (add_breakpoint_condition): Likewise.
15518 (gdb_condition_true_at_breakpoint): Likewise.
15520 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15521 (need_step_over_p): Take target-side breakpoint condition into
15524 2012-02-24 Luis Machado <lgustavo@codesourcery>
15526 * server.h: Include tracepoint.h.
15527 (agent_mem_read, agent_get_trace_state_variable_value,
15528 agent_set_trace_state_variable_value,
15529 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15530 get_set_tsv_func_addr): New prototypes.
15532 * ax.h: New include file.
15533 * ax.c: New source file.
15535 * tracepoint.c: Include ax.h.
15536 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15537 agent_expr, eval_result_type): Move to ax.h.
15538 (parse_agent_expr): Rename to ...
15539 (gdb_parse_agent_expr): ... this, make it non-static and move
15541 (unparse_agent_expr) Rename to ...
15542 (gdb_unparse_agent_expr): ... this, make it non-static and move
15544 (eval_agent_expr): Rename to ...
15545 (eval_tracepoint_agent_expr): ... this.
15546 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15547 forward declarations.
15548 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15549 (agent_get_trace_state_variable_value): New function.
15550 (agent_set_trace_state_variable_value): New function.
15551 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15552 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15553 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15554 (condition_true_at_tracepoint): Likewise.
15555 (parse_agent_expr): Rename to ...
15556 (gdb_parse_agent_expr): ... this and move to ax.c.
15557 (unparse_agent_expr): Rename to ...
15558 (gdb_unparse_agent_expr): ... this and move to ax.c.
15559 (gdb_agent_op_name): Move to ax.c.
15560 (eval_agent_expr): Rename to ...
15561 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15563 (eval_tracepoint_agent_expr): New function.
15564 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15566 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15568 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15569 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15570 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15571 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15572 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15573 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15574 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15575 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15576 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15577 (compile_bytecodes): Remove forward declaration.
15578 (is_goto_target): Move to ax.c.
15579 (compile_bytecodes): Move to ax.c and call
15580 agent_get_trace_state_variable_value (...) and
15581 agent_set_trace_state_variable_value (...).
15583 * Makefile.in: Update ax.c and IPA dependencies.
15585 2012-02-24 Pedro Alves <palves@redhat.com>
15587 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15588 (cmd_bigqtbuffer_circular): ... this. Only handle
15589 'QTBuffer:circular:'.
15590 (handle_tracepoint_general_set): Adjust.
15592 2012-02-16 Yao Qi <yao@codesourcery.com>
15594 * inferiors.c: Move code to ...
15595 * dll.c: .... here. New.
15596 * server.h: Declare clear_dlls.
15597 * Makefile.in (SFILES): Add dll.c.
15601 2012-02-11 Yao Qi <yao@codesourcery.com>
15603 * server.c: (handle_monitor_command): Add a new parameter
15605 (handle_query): Update caller.
15607 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15609 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15610 * configure, config.in: Regenerate.
15611 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15614 2012-02-02 Pedro Alves <palves@redhat.com>
15616 Try SIGKILL first, then PTRACE_KILL.
15617 * linux-low.c (linux_kill_one_lwp): New.
15618 (linux_kill_one_lwp): Rename to ...
15619 (kill_one_lwp_callback): ... this. Use the new
15620 linux_kill_one_lwp.
15622 2012-02-02 Pedro Alves <palves@redhat.com>
15624 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15627 2012-01-27 Pedro Alves <palves@redhat.com>
15629 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15630 (elf_64_file_p): Make static.
15631 (linux_pid_exe_is_elf_64_file): New.
15632 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15633 Delete declarations.
15634 (linux_pid_exe_is_elf_64_file): Declare.
15635 * linux-x86-low.c (x86_arch_setup): Use
15636 linux_pid_exe_is_elf_64_file.
15638 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15640 * linux-low.c (linux_wait_for_event_1): Rename to ...
15641 (linux_wait_for_event): ... here and merge it with former
15642 linux_wait_for_event - new variable wait_ptid, use it.
15643 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15645 2012-01-23 Pedro Alves <palves@redhat.com>
15647 * server.c (main): Avoid yet another case of infinite loop while
15648 detaching/killing after a longjmp.
15650 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15653 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15655 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15657 * hostio.c (handle_readlink): New function.
15658 (handle_vFile): Call it to handle "vFile:readlink" packets.
15660 2012-01-20 Pedro Alves <palves@redhat.com>
15661 Ulrich Weigand <ulrich.weigand@linaro.org>
15663 * server.c (handle_v_requests): Only support vAttach and vRun to
15664 start multiple processes when in extended protocol mode.
15666 2012-01-17 Pedro Alves <palves@redhat.com>
15668 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15669 memalign plus mprotect to allocate the scratch buffer.
15671 2012-01-13 Pedro Alves <palves@redhat.com>
15673 * server.c (attach_inferior): Clear `cont_thread'.
15675 2012-01-13 Pedro Alves <palves@redhat.com>
15677 * server.c (main): Avoid infinite loop while detaching/killing
15680 2012-01-09 Doug Evans <dje@google.com>
15682 * server.c (start_inferior): Set last_ptid in --wrapper case.
15684 2012-01-06 Yao Qi <yao@codesourcery.com>
15686 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15688 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15690 2012-01-04 Yao Qi <yao@codesourcery.com>
15692 * tracepoint.c (cmd_qtdp): Print debug message
15693 for static tracepoint.
15695 2012-01-04 Yao Qi <yao@codesourcery.com>
15697 * tracepoint.c (trace_vdebug): Differentiate debug message
15698 between gdbserver and IPA.
15700 2012-01-03 Yao Qi <yao@codesourcery.com>
15702 * tracepoint.c (tracepoint_was_hit): Don't collect for
15705 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15707 * terminal.h: Reformat copyright header.
15709 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15711 * server.c (gdbserver_version): Update copyright year.
15712 * gdbreplay.c (gdbreplay_version): Likewise.
15714 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15716 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15719 2011-12-18 Hui Zhu <teawater@gmail.com>
15720 * linux-low.c (linux_create_inferior): Save return value to ret.
15722 2011-12-18 Hui Zhu <teawater@gmail.com>
15724 * linux-low.c (linux_create_inferior): Save return value to ret.
15726 2011-12-16 Doug Evans <dje@google.com>
15728 * linux-low.c (linux_create_inferior): If stdio connection,
15729 redirect stdin from /dev/null, stdout to stderr.
15730 * remote-utils.c (remote_is_stdio): New static global.
15731 (remote_connection_is_stdio): New function.
15732 (remote_prepare): Handle stdio connection.
15733 (remote_open): Ditto.
15734 (remote_close): Don't close stdin for stdio connections.
15735 (read_prim,write_prim): New functions. Replace all calls to
15736 read/write to these.
15737 * server.c (main): Watch for "-" argument. Move call to
15738 remote_prepare before start_inferior.
15739 * server.h (STDIO_CONNECTION_NAME): New macro.
15740 (remote_connection_is_stdio): Declare.
15742 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15743 in debugging output.
15745 2011-12-15 Yao Qi <yao@codesourcery.com>
15747 * tracepoint.c: Include sys/syscall.h.
15748 (gdb_ust_thread): Remove preprocessor conditional.
15750 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15752 * linux-low.c (linux_detach_one_lwp): Call
15753 the_low_target.prepare_to_resume before detaching.
15755 2011-12-14 Yao Qi <yao@codesourcery.com>
15757 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15760 2011-12-14 Yao Qi <yao@codesourcery.com>
15762 * i386-low.c (i386_low_stopped_data_address): Initialize local
15763 variable `control'.
15765 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15769 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15770 DR_CONTROL unless necessary. Extend comments.
15771 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15772 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15774 2011-12-13 Yao Qi <yao@codesourcery.com>
15776 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15778 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15780 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15782 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15783 Print new debug message for such case.
15785 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15787 Fix overlapping memcpy.
15788 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15789 the read_inferior_memory transfer.
15790 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15791 write_inferior_memory transfer.
15792 (set_fast_tracepoint_jump): New variable buf. Use it for the
15793 read_inferior_memory and write_inferior_memory transfers.
15794 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15795 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15796 Use it for the write_inferior_memory transfer.
15797 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15800 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15802 * linux-low.c (fetch_register, store_register): Make code
15803 consistent, fix formatting.
15805 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15807 * linux-low.c (usr_store_inferior_registers): Factor out code
15808 to handle individual registers into...
15809 (store_register): ... this new function.
15811 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15813 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15814 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15815 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15816 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15817 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15818 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15819 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15820 (srv_xmlfiles): Add new XML files.
15822 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15824 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15825 (init_registers_s390_linux32v1): Add prototype.
15826 (init_registers_s390_linux32v2): Likewise.
15827 (init_registers_s390_linux64v1): Likewise.
15828 (init_registers_s390_linux64v2): Likewise.
15829 (init_registers_s390x_linux64v1): Likewise.
15830 (init_registers_s390x_linux64v2): Likewise.
15831 (s390_num_regs): Increment to 52.
15832 (s390_regmap): Add orig_r2 register.
15833 (s390_num_regs_3264): Increment to 68.
15834 (s390_regmap_3264): Add orig_r2 register.
15835 (s390_collect_ptrace_register): Handle orig_r2 register.
15836 (s390_supply_ptrace_register): Likewise.
15837 (s390_fill_last_break): New function.
15838 (s390_store_last_break): Likewise.
15839 (s390_fill_system_call): New function.
15840 (s390_store_system_call): Likewise.
15841 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15843 (s390_check_regset): New function.
15844 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15845 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15846 Update target_regsets for available register sets.
15848 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15849 Jan Kratochvil <jan.kratochvil@redhat.com>
15851 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15852 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15854 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15855 * linux-low.h (struct process_info_private): New member r_debug.
15856 * server.c (handle_qxfer_libraries): Call
15857 the_target->qxfer_libraries_svr4.
15858 (handle_qxfer_libraries_svr4): New function.
15859 (qxfer_packets): New entry "libraries-svr4".
15860 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15861 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15862 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15863 PACKET_qXfer_libraries_svr4.
15865 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15867 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15868 PSW address/mask between 8-byte and 16-byte formats.
15869 (s390_supply_ptrace_register): Likewise.
15870 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15871 basic addressing mode bit.
15873 2011-11-24 Stan Shebs <stan@codesourcery.com>
15875 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15877 2011-11-17 Stan Shebs <stan@codesourcery.com>
15879 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15880 (tracing_start_time): New global.
15881 (tracing_stop_time): New global.
15882 (tracing_user_name): New global.
15883 (tracing_notes): New global.
15884 (tracing_stop_note): New global.
15885 (cmd_qtstart): Set traceframe_usage, start_time.
15886 (stop_tracing): Set stop_time.
15887 (cmd_qtstatus): Report additional status.
15888 (cmd_qtp): New function.
15889 (handle_tracepoint_query): Call it.
15890 (cmd_qtnotes): New function.
15891 (handle_tracepoint_general_set): Call it.
15892 (get_timestamp): Rename from tsv_get_timestamp.
15894 2011-11-14 Stan Shebs <stan@codesourcery.com>
15895 Kwok Cheung Yeung <kcy@codesourcery.com>
15897 * linux-x86-low.c (small_jump_insn): New.
15898 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15899 trampoline and error message, build a trampoline and issue a small
15900 jump instruction to it.
15901 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15902 trampoline and error message.
15903 (x86_get_min_fast_tracepoint_insn_len): New.
15904 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15905 * linux-low.h (struct linux_target_ops): Add arguments to
15906 install_fast_tracepoint_jump_pad operation, add new operation.
15907 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15909 (linux_get_min_fast_tracepoint_insn_len): New function.
15910 (linux_target_op): Add new operation.
15911 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15912 (gdb_trampoline_buffer_end): Ditto.
15913 (gdb_trampoline_buffer_error): Ditto.
15914 (struct ipa_sym_addresses): Add fields for new IPA variables.
15915 (symbol_list): Add entries for new IPA variables.
15916 (struct tracepoint): Add fields to hold the address range of the
15917 trampoline used by the tracepoint.
15918 (trampoline_buffer_head): New static variable.
15919 (trampoline_buffer_tail): Ditto.
15920 (claim_trampoline_space): New function.
15921 (have_fast_tracepoint_trampoline_buffer): New function.
15922 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15924 (install_fast_tracepoint): Ditto, also add error buffer argument.
15925 (cmd_qtminftpilen): New function.
15926 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15927 (fast_tracepoint_from_trampoline_address): New function.
15928 (fast_tracepoint_collecting): Handle trampoline as part of jump
15930 (set_trampoline_buffer_space): New function.
15931 (initialize_tracepoint): Initialize new IPA variables.
15932 * target.h (struct target_ops): Add arguments to
15933 install_fast_tracepoint_jump_pad operation, add new
15934 get_min_fast_tracepoint_insn_len operation.
15935 (target_get_min_fast_tracepoint_insn_len): New.
15936 (install_fast_tracepoint_jump_pad): Add arguments.
15937 * server.h (IPA_BUFSIZ): Define.
15938 * linux-i386-ipa.c: Include extra header files.
15939 (initialize_fast_tracepoint_trampoline_buffer): New function.
15940 (initialize_low_tracepoint): Call it.
15941 * server.h (set_trampoline_buffer_space): Declare.
15942 (claim_trampoline_space): Ditto.
15943 (have_fast_tracepoint_trampoline_buffer): Ditto.
15945 2011-11-14 Yao Qi <yao@codesourcery.com>
15947 * server.c (handle_query): Handle InstallInTrace for qSupported.
15948 * tracepoint.c (add_tracepoint): Sort list.
15949 (install_tracepoint, download_tracepoint): New.
15950 (cmd_qtdp): Call them to install and download tracepoints.
15951 (sort_tracepoints): Removed.
15952 (cmd_qtstart): Update.
15954 2011-11-14 Yao Qi <yao@codesourcery.com>
15956 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15957 * mem-break.h: Declare.
15958 * tracepoint.c (cmd_qtstart): Move some code to ...
15959 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15961 (download_tracepoints): Move some code to ...
15962 (download_tracepoint_1): ... here. New.
15964 2011-11-08 Yao Qi <yao@codesourcery.com>
15966 * remote-utils.c (relocate_instruction): A comment fix.
15968 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15970 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15971 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15972 dr_status_mirror and dr_control_mirror from debug_reg_state.
15973 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15974 (i386_initial_stuff): Remove use of deleted globals.
15975 (i386_get_thread_context, i386_set_thread_context,
15976 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15977 from debug_reg_state.
15979 2011-11-05 Yao Qi <yao@codesourcery.com>
15981 * tracepoint.c (gdb_collect): Loop over tracepoints of same
15982 address as TPOINT's.
15984 2011-11-02 Stan Shebs <stan@codesourcery.com>
15986 * tracepoint.c (agent_mem_read_string): New function.
15987 (eval_agent_expr): Call it for tracenz.
15988 * server.c (handle_query): Report support for tracenz.
15990 2011-11-02 Yao Qi <yao@codesourcery.com>
15992 * tracepoint.c (cmd_qtstart): Remove unused local variables.
15994 2011-11-02 Yao Qi <yao@codesourcery.com>
15996 * target.h: Fix a typo in comment.
15998 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16000 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16001 clobber the breakpoints' shadows with fast tracepoint jumps.
16002 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16003 * target.c (write_inferior_memory): Also pass MYADDR down to
16006 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16008 * configure.ac: Check support for personality routine.
16009 * configure: Regenerate.
16010 * config.in: Likewise.
16011 * linux-low.c: Include <sys/personality.h>.
16012 Define ADDR_NO_RANDOMIZE if necessary.
16013 (linux_create_inferior): Disable address space randomization when
16014 forking inferior, if requested.
16015 (linux_supports_disable_randomization): New function.
16016 (linux_target_ops): Install it.
16017 * server.h (disable_randomization): Declare.
16018 * server.c (disable_randomization): New global variable.
16019 (handle_general_set): Handle QDisableRandomization.
16020 (handle_query): Likewise for qSupported.
16021 (main): Support --disable-randomization and --no-disable-randomization
16022 command line arguments.
16023 * target.h (struct target_ops): Add supports_disable_randomization.
16024 (target_supports_disable_randomization): New macro.
16026 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16028 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16030 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16031 [!PT_GETDSBT] (target_loadmap): New definition.
16032 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16033 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16034 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16035 and PT_GETDSBT to LINUX_LOADMAP.
16036 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16037 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16039 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16041 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16042 (arm_linux_hwbp_cap): New static variable.
16043 (arm_linux_get_hwbp_cap): Replace by ...
16044 (arm_linux_init_hwbp_cap): ... this new function.
16045 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16046 (arm_linux_get_hw_watchpoint_count): Likewise.
16047 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16048 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16049 (arm_prepare_to_resume): Use perror_with_name instead of error.
16051 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16053 * linux-arm-low.c: Include <signal.h>.
16054 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16055 (struct arm_linux_hwbp_cap): New data type.
16056 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16057 (struct arm_linux_hw_breakpoint): New data type.
16058 (MAX_BPTS, MAX_WPTS): Define.
16059 (struct arch_process_info, struct arch_lwp_info): New data types.
16060 (arm_linux_get_hwbp_cap): New function.
16061 (arm_linux_get_hw_breakpoint_count): Likewise.
16062 (arm_linux_get_hw_watchpoint_count): Likewise.
16063 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16064 (arm_hwbp_control_initialize): Likewise.
16065 (arm_hwbp_control_is_enabled): Likewise.
16066 (arm_hwbp_control_is_initialized): Likewise.
16067 (arm_hwbp_control_disable): Likewise.
16068 (arm_linux_hw_breakpoint_equal): Likewise.
16069 (arm_linux_hw_point_initialize): Likewise.
16070 (struct update_registers_data): New data structure.
16071 (update_registers_callback: New function.
16072 (arm_insert_point): Likewise.
16073 (arm_remove_point): Likewise.
16074 (arm_stopped_by_watchpoint): Likewise.
16075 (arm_stopped_data_address): Likewise.
16076 (arm_new_process): Likewise.
16077 (arm_new_thread): Likewise.
16078 (arm_prepare_to_resume): Likewise.
16079 (the_low_target): Register arm_insert_point, arm_remove_point,
16080 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16081 arm_new_thread, and arm_prepare_to_resume.
16083 2011-09-15 Stan Shebs <stan@codesourcery.com>
16085 * server.h (struct emit_ops): Add compare-goto fields.
16086 * tracepoint.c (gdb_agent_op_sizes): New table.
16087 (emit_eq_goto): New function.
16088 (emit_ne_goto): New function.
16089 (emit_lt_goto): New function.
16090 (emit_le_goto): New function.
16091 (emit_gt_goto): New function.
16092 (emit_ge_goto): New function.
16093 (is_goto_target): New function.
16094 (compile_bytecodes): Recognize special cases of compare-goto
16095 combinations and call specialized emitters for them.
16096 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16097 (amd64_emit_ne_goto): New function.
16098 (amd64_emit_lt_goto): New function.
16099 (amd64_emit_le_goto): New function.
16100 (amd64_emit_gt_goto): New function.
16101 (amd64_emit_ge_goto): New function.
16102 (amd64_emit_ops): Add the new functions.
16103 (i386_emit_eq_goto): New function.
16104 (i386_emit_ne_goto): New function.
16105 (i386_emit_lt_goto): New function.
16106 (i386_emit_le_goto): New function.
16107 (i386_emit_gt_goto): New function.
16108 (i386_emit_ge_goto): New function.
16109 (i386_emit_ops): Add the new functions.
16111 2011-09-08 Stan Shebs <stan@codesourcery.com>
16113 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16114 (i386_emit_epilogue): Restore %ebx.
16116 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16118 * server.c (step_thread): Remove definition.
16119 (process_serial_event): Don't handle Hs.
16120 * server.h (step_thread): Remove declaration.
16121 * target.c (set_desired_inferior): Remove use of step_thread.
16123 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16125 * linux-low.c: Include linux-procfs.h.
16126 (linux_attach_lwp_1): Update comments.
16127 (linux_attach): Scan for existing threads when attaching to a
16128 process that is the tgid.
16129 * Makefile.in: Update dependencies.
16131 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16133 * configure.srv: Add linux-procfs.o dependencies.
16135 2011-08-14 Yao Qi <yao@codesourcery.com>
16137 * target.h (struct target_ops): Fix indent.
16138 * win32-low.c (win32_target_ops): Fix comment.
16140 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16141 Yao Qi <yao@codesourcery.com>
16143 * Makefile.in (clean): Remove tic6x-*.c files.
16144 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16145 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16146 (tic6x-c64xp-linux.c): Likewise.
16147 * configure.srv: Add support for tic6x-*-uclinux.
16148 * linux-tic6x-low.c: New.
16149 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16151 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16152 Yao Qi <yao@codesourcery.com>
16154 * target.h (struct target_ops): Add read_loadmap.
16155 * linux-low.c (struct target_loadseg): New type.
16156 (struct target_loadmap): New type.
16157 (linux_read_loadmap): New function.
16158 (linux_target_ops): Add linux_read_loadmap.
16159 * server.c (handle_query): Support qXfer:fdpic:read packet.
16160 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16163 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16165 * win32-low.c: Include <stdint.h>.
16167 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16169 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16170 to the inferior here.
16171 (i386_remove_aligned_watchpoint): Ditto.
16172 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16173 fit part of the watchpoint in the debug registers.
16174 (i386_update_inferior_debug_regs): New.
16175 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16176 registers, and only update the inferior on success.
16177 (i386_low_remove_watchpoint): Ditto.
16179 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16181 * linux-low.c (compare_ints, unique, list_threads, show_process,
16182 linux_core_of_thread): Delete.
16183 (linux_target_ops): Change linux_core_of_thread to
16184 linux_common_core_of_thread.
16185 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16186 * utils.c (malloc_failure): Change type of argument.
16187 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16188 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16189 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16190 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16191 (IPA_OBJS): Add common-utils-ipa.o.
16192 (ptid_h, linux_osdata_h): New macros.
16193 (server_h): Add common/common-utils.h, common/xml-utils.h,
16194 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16196 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16197 ptid.o, buffer.o): New rules.
16198 (linux-low.o): Add common/linux-osdata.h as a dependency.
16199 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16200 * configure.ac: Add AC_HEADER_DIRENT check.
16201 * config.in: Regenerate.
16202 * configure: Regenerate.
16203 * remote-utils.c (xml_escape_text): Delete.
16204 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16205 buffer_xml_printf): Move to common/buffer.c.
16206 * server.c (main): Remove call to initialize_inferiors.
16207 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16208 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16209 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16210 internal_error, gdb_assert, gdb_assert_fail): Delete.
16211 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16212 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16214 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16215 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16216 initialize_inferiors): Delete.
16218 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16220 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16223 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16225 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16227 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16229 2011-05-26 Yao Qi <yao@codesourcery.com>
16231 * Makefile.in (thread-db.o): Track dependence to
16232 common/gdb_thread_db.h.
16233 * thread-db.c: include gdb_thread_db.h from right place.
16235 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16237 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16238 __FILE__ and __LINE__ to internal_error.
16240 2011-05-13 Doug Evans <dje@google.com>
16242 * thread-db.c (try_thread_db_load_from_sdir): New function.
16243 (try_thread_db_load_from_dir): New function.
16244 (thread_db_load_search): Handle $sdir, ignore $pdir.
16245 Remove trying of system directories if search of
16246 libthread-db-search-path fails, that is now done via $sdir.
16248 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16250 * server.c (handle_query): Add EnableDisableTracepoints to the list
16251 of supported features.
16252 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16254 (cmd_qtenable_disable): New.
16255 (cmd_qtstart): Install tracepoints even if disabled.
16256 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16257 receiving a QTEnable or QTDisable packet.
16258 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16259 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16261 (gdb_probe): Skip data collection if static tracepoint is disabled.
16263 2011-05-10 Doug Evans <dje@google.com>
16265 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16267 2011-05-04 Doug Evans <dje@google.com>
16269 * linux-low.c (linux_join): Skip process lookup.
16270 * spu-low.c (spu_join): Ditto.
16271 * server.c (join_inferiors_callback): Delete.
16272 (process_serial_event): For 'D' packet (detach) call join_inferior
16275 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16277 * README: Don't mention xscale*-*-linux*.
16278 * configure.srv (xscale*-*-linux*): Don't handle target.
16280 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16282 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16284 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16285 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16286 (i386_emit_void_call_2): Likewise.
16288 2011-04-26 Yao Qi <yao@codesourcery.com>
16290 * linux-low.c: Move common macros to linux-ptrace.h.
16291 Include linux-ptrace.h.
16292 * Makefile.in (linux_ptrace_h): New.
16293 (linux-low.o): Depends on linux-ptrace.h.
16295 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16297 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16298 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16299 (remote_prepare): New function with most of the TCP code from ...
16300 (remote_open): ... here. Detect PORT here unconditionally. Move also
16301 setting transport_is_reliable.
16302 * server.c (run_once): New variable.
16303 (gdbserver_usage): Document it.
16304 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16305 the first run if RUN_ONCE.
16306 * server.h (run_once, remote_prepare): New declarations.
16308 2011-04-19 Tom Tromey <tromey@redhat.com>
16310 * win32-low.c (handle_load_dll): Remove duplicate "the".
16312 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16314 Remove support for old Cygwin 1.5 versions.
16315 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16316 function to avoid warning.
16317 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16320 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16322 * gdbserver/server.h (Macro _): Define it if not available.
16324 2011-03-14 Michael Snyder <msnyder@vmware.com>
16326 * hostio.c (handle_close): Remove unnecessary null test.
16328 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16330 * Makefile.in (maintainer-clean realclean distclean): Remove
16331 "make ... subdir_do" command.
16333 2011-03-10 Michael Snyder <msnyder@vmware.com>
16335 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16337 * server.c (handle_v_run): Free alloced buffer on early return.
16339 2011-03-09 Yao Qi <yao@codesourcery.com>
16342 2011-03-04 Yao Qi <yao@codesourcery.com>
16344 * Makefile.in: Remove GNU make feature --directory.
16346 2011-03-05 Yao Qi <yao@codesourcery.com>
16348 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16349 (subdir_do): New make target. Copied from gdb/Makefile.
16350 (maintainer-clean, realclean, distclean, clean): Call corresponding
16351 make targets in common/Makefile.
16353 2011-02-11 Yao Qi <yao@codesourcery.com>
16355 * configure.ac: Call AC_PROG_RANLIB.
16356 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16357 * configure: Regenerate.
16359 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16361 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16363 2011-03-06 Yao Qi <yao@codesourcery.com>
16365 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16367 2011-03-05 Yao Qi <yao@codesourcery.com>
16369 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16370 (subdir_do): New make target. Copied from gdb/Makefile.
16371 (maintainer-clean, realclean, distclean, clean): Call corresponding
16372 make targets in common/Makefile.
16374 2011-03-04 Yao Qi <yao@codesourcery.com>
16376 * Makefile.in: Remove GNU make feature --directory.
16378 2011-03-04 Michael Snyder <msnyder@vmware.com>
16380 * server.c (queue_stop_reply): Call xmalloc not malloc.
16382 2011-03-02 Michael Snyder <msnyder@vmware.com>
16384 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16386 2011-02-28 Michael Snyder <msnyder@vmware.com>
16388 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16389 (cmd_qtframe): Ditto.
16390 (cmd_qtbuffer): Ditto.
16391 (cmd_bigqtbuffer): Ditto.
16393 * utils.c (decimal2str): Initialize 'width' to nine, then
16394 don't mess with it.
16396 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16398 * hostio.c (require_data): Free *data, not data.
16400 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16402 * hostio.c (require_data): Use free, not xfree.
16404 2011-02-27 Michael Snyder <msnyder@vmware.com>
16406 * server.c (handle_query): Discard unused value.
16408 * hostio.c (require_data): Free malloc memory before returning
16411 2011-02-26 Michael Snyder <msnyder@vmware.com>
16413 * linux-low.c (list_threads): Call closedir for dirent.
16415 2011-02-27 Michael Snyder <msnyder@vmware.com>
16417 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16418 a case statement falls through.
16420 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16422 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16425 2011-02-26 Michael Snyder <msnyder@vmware.com>
16427 * utils.c (decimal2str): Eliminate dead code and dead param.
16428 (pulongest): Drop dead param from call to decimal2str.
16431 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16433 Revert the following patch (not approved yet):
16434 2011-02-21 Hui Zhu <teawater@gmail.com>
16435 * tracepoint.c (tp_printf): New function.
16436 (eval_agent_expr): Handle gdb_agent_op_printf.
16438 2011-02-21 Hui Zhu <teawater@gmail.com>
16440 * tracepoint.c (tp_printf): New function.
16441 (eval_agent_expr): Handle gdb_agent_op_printf.
16443 2011-02-18 Tom Tromey <tromey@redhat.com>
16445 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16446 (tracepoint.o): Likewise.
16447 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16448 (gdb_agent_op_names): Likewise.
16450 2011-02-18 Tom Tromey <tromey@redhat.com>
16452 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16453 gdb_agent_op_rot>: New constants.
16454 (gdb_agent_op_names): Add pick and roll.
16455 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16458 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16460 * aclocal.m4: Regenerated with aclocal-1.11.1.
16462 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16464 * server.c (handle_qxfer_traceframe_info): New.
16465 (qxfer_packets): Register "traceframe-info".
16466 (handle_query): Report support for qXfer:traceframe-info:read+.
16467 * tracepoint.c (match_blocktype): New.
16468 (traceframe_find_block_type): Rename to ...
16469 (traceframe_walk_blocks): ... this. Add callback filter argument,
16471 (traceframe_find_block_type): New, reimplemented on top of
16472 traceframe_walk_blocks.
16473 (build_traceframe_info_xml): New.
16474 (traceframe_read_info): New.
16475 * server.h (traceframe_read_info): Declare.
16477 2011-02-11 Yao Qi <yao@codesourcery.com>
16479 * configure.ac: Call AC_PROG_RANLIB.
16480 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16481 * configure: Regenerate.
16483 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16485 * server.c (gdb_read_memory): Change return semantics to allow
16487 (handle_search_memory_1): Adjust.
16488 (process_serial_event) <'m' packet>: Handle partial transfers.
16489 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16491 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16493 * regcache.c (init_register_cache): Initialize
16494 regcache->register_status.
16495 (free_register_cache): Release regcache->register_status.
16496 (regcache_cpy): Copy register_status.
16497 (registers_to_string): Print 'x's for unavailable registers.
16498 (supply_register): Mark the register's status valid or
16499 unavailable, depending on whether a buffer was passed in or not.
16500 (supply_register_zeroed): New.
16501 (supply_regblock): Mark the registers' status valid or
16502 unavailable, depending on whether a buffer was passed in or not.
16503 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16504 (struct regcache): New `register_status' field.
16505 (supply_register_zeroed): Declare.
16506 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16507 supply_register_zeroed, rather than passing a NULL buffer to
16509 * tracepoint.c (fetch_traceframe_registers): Update comment.
16511 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16513 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16516 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16518 * server.h (decode_xfer_write): Change prototype.
16519 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16520 and don't extract the annex here.
16521 * server.c (decode_xfer_read): Remove `annex' parameter,
16522 and don't extract the annex here.
16523 (decode_xfer): New.
16524 (struct qxfer): New.
16525 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16526 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16527 (handle_qxfer_statictrace): New functions, abstracted out from
16528 handle_query, and made to use the struct qxfer interface.
16529 (handle_threads_qxfer_proper): Rename to ...
16530 (handle_qxfer_threads_proper): ... this.
16531 (handle_threads_qxfer): Rename to ...
16532 (handle_qxfer_threads): ... this. Adjust.
16533 (qxfer_packets): New array.
16534 (handle_qxfer): New function.
16535 (handle_query): Use handle_qxfer.
16537 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16539 * gdbreplay.c: Shorten lines of >= 80 columns.
16540 * linux-low.c: Ditto.
16541 * linux-ppc-low.c: Ditto.
16542 * linux-s390-low.c: Ditto.
16543 * linux-sparc-low.c: Ditto.
16544 * linux-x86-low.c: Ditto.
16545 * linux-xtensa-low.c: Ditto.
16546 * mem-break.c: Ditto.
16547 * nto-low.c: Ditto.
16548 * regcache.h: Ditto.
16549 * remote-utils.c: Ditto.
16552 * thread-db.c: Ditto.
16553 * tracepoint.c: Ditto.
16555 * win32-low.h: Ditto.
16557 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16559 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16562 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16564 * server.c (gdbserver_version): Update copyright year in version
16566 * gdbreplay.c (gdbreplay_version): Ditto.
16568 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16570 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16571 * linux-bfin-low.c: New file.
16572 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16573 PT_DATA_ADDR for BFIN targets.
16574 * Makefile.in (SFILES): Add linux-bfin-low.c.
16575 (clean): Remove reg-bfin.c.
16576 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16577 * README: Mention supported Blackfin targets.
16579 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16581 * .gitignore: New file.
16583 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16585 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16587 2010-10-22 Jie Zhang <jie@codesourcery.com>
16589 * Makefile.in: Add FLAGS_TO_PASS variable.
16590 (install): Remove dependency of install-only and recursively
16591 invoke make for install-only.
16593 2010-10-04 Doug Evans <dje@google.com>
16595 * Makefile.in (uninstall): Use $(DESTDIR).
16597 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16601 * linux-x86-low.c (compat_siginfo_from_siginfo)
16602 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16603 si_code is < 0. Check for si_code == SI_TIMER before checking for
16606 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16608 * lynx-i386-low.c: New file.
16609 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16611 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16613 * lynx-low.c (ptrace_request_to_str): Remove handling for
16614 request values that have been removed in LynxOS 5.x.
16616 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16618 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16621 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16623 * configure.ac: Add --enable-inprocess-agent option.
16624 * configure: Rebuilt.
16626 2010-09-06 Yao Qi <yao@codesourcery.com>
16628 * linux-low.c (linux_kill): Remove unused variable.
16629 (linux_stabilize_threads): Likewise.
16630 * server.c (start_inferior): Likewise.
16631 (queue_stop_reply_callback): Likewise.
16632 * tracepoint.c (do_action_at_tracepoint): Likewise.
16634 2010-09-06 Yao Qi <yao@codesourcery.com>
16636 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16639 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16641 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16643 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16645 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16648 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16650 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16651 gdbserver/lynx-ppc-low.c: New files.
16652 * Makefile.in (lynx_low_h): New variable.
16653 (lynx-low.o, lynx-ppc-low.o): New rules.
16654 * configure.ac: On LynxOS, link with -lnetinet.
16655 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16656 * configure: regenerate.
16658 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16660 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16661 * configure.ac: Add check for vasprintf and vsnprintf.
16662 * configure, config.in: Regenerate.
16663 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16665 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16667 * gdbreplay.c: Move include of alloca.h up, next to include of
16669 * server.h: Add include of malloc.h.
16670 * mem-break.c: Remove include of malloc.h.
16671 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16673 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16675 * Makefile.in (memmem.o): Build with -Wno-error.
16677 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16679 * utils.c (xsnprintf): Make non-static.
16680 * server.h: Add xsnprintf declaration.
16681 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16682 replace calls to snprintf by calls to xsnprintf throughout.
16684 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16686 * configure.ac: Add configure check for alloca.
16687 * configure, config.in: Regenerate.
16688 * server.h: Include alloca.h if it exists.
16689 * gdbreplay.c: Include alloca.h if it exists.
16691 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16693 * linux-low.c (__SIGRTMIN): Define if not already defined.
16694 (linux_create_inferior): Check for __ANDROID__ rather than
16696 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16697 are already deferred.
16698 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16699 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16700 stopped and already has a pending signal to report.
16701 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16702 a pending signal to report or is moving out of a jump pad.
16703 (linux_init_signals): Check for __ANDROID__ rather than
16706 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16708 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16709 debug_threads check. Avoid a linear search when not doing debug
16712 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16714 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16715 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16716 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16717 (process_event): Change local fd's type to gdb_fildes_t.
16718 (create_file_handler): Adjust prototype.
16719 (delete_file_handler): Adjust prototype.
16720 (handle_file_event): Adjust prototype. Use pfildes.
16721 (create_file_event): Adjsut prototype.
16722 * remote-utils.c (remote_desc, listen_desc): Change type to
16724 * server.h: New gdb_fildes_t typedef.
16725 [USE_WIN32API]: Include winsock2.h.
16726 (delete_file_handler, add_file_handler): Adjust prototypes.
16727 (pfildes): Declare.
16728 * utils.c (pfildes): New.
16730 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16732 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16733 * configure: Regenerate.
16735 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16737 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16738 (linux_done_accessing_memory): ... this.
16739 (linux_target_ops): Adjust.
16740 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16741 * nto-low.c (nto_target_ops): Adjust comment.
16742 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16743 * spu-low.c (spu_target_ops): Adjust comment.
16744 * target.h (target_ops): Rename unprepare_to_access_memory field
16745 to done_accessing_memory.
16746 (unprepare_to_access_memory): Rename to ...
16747 (done_accessing_memory): ... this.
16749 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16751 * linux-low.c (linux_prepare_to_access_memory): New.
16752 (linux_unprepare_to_access_memory): New.
16753 (linux_target_ops): Install them.
16754 * server.c (read_memory): Rename to ...
16755 (gdb_read_memory): ... this. Use
16756 prepare_to_access_memory/prepare_to_access_memory.
16757 (write_memory): Rename to ...
16758 (gdb_write_memory): ... this. Use
16759 prepare_to_access_memory/prepare_to_access_memory.
16760 (handle_search_memory_1): Adjust.
16761 (process_serial_event): Adjust.
16762 * target.h (struct target_ops): New fields
16763 prepare_to_access_memory and unprepare_to_access_memory.
16764 (prepare_to_access_memory, unprepare_to_access_memory): New.
16765 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16766 prepare_to_access_memory/prepare_to_access_memory.
16767 * nto-low.c (nto_target_ops): Adjust.
16768 * spu-low.c (spu_target_ops): Adjust.
16769 * win32-low.c (win32_target_ops): Adjust.
16771 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16773 * Makefile.in (WARN_CFLAGS): Get it from configure.
16774 (WERROR_CFLAGS): New.
16775 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16776 * configure.ac: Introduce --enable-werror, which adds -Werror to
16777 the compiler command line. Enabled by default. Disable with
16778 --disable-werror. Add -Wdeclaration-after-statement
16779 Wpointer-arith and -Wformat-nonliteral to warning flags.
16780 * configure: Regenerate.
16782 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16784 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16786 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16788 * gdbreplay.c (remote_error): New.
16790 (expect): Use gdbchar. Check for error reading from GDB.
16791 Clarify sync error output.
16792 (play): Check for errors writing to GDB.
16793 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16794 * remote-utils.c (getpkt): Check for errors writing to the remote
16797 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16799 * linux-low.c (linux_wait_1): Move non-debugging code out of
16800 `debug_threads' control.
16802 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16804 * linux-low.c (linux_wait_1): Don't set last_status here.
16805 * server.c (push_event, queue_stop_reply_callback): Assert we're
16806 not pushing a TARGET_WAITKIND_IGNORE event.
16807 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16808 (myresume, handle_target_event): Set the thread's last_resume_kind
16809 and last_status from the target returned status.
16811 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16815 * linux-x86-low.c (update_debug_registers_callback): New.
16816 (i386_dr_low_set_addr): Use it.
16817 (i386_dr_low_get_addr): New.
16818 (i386_dr_low_set_control): Use update_debug_registers_callback.
16819 (i386_dr_low_get_control): New.
16820 (i386_dr_low_get_status): Adjust.
16821 * linux-low.c (linux_stop_lwp): New.
16822 * linux-low.h (linux_stop_lwp): Declare.
16824 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16825 argument instead of a i386_debug_reg_state.
16826 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16827 a i386_debug_reg_state.
16828 (i386_insert_aligned_watchpoint): Adjust.
16829 (i386_remove_aligned_watchpoint): Adjust.
16830 (i386_low_stopped_data_address): Read the debug registers from the
16831 inferior instead of from the mirrors.
16832 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16833 (i386_dr_low_get_addr): Declare.
16834 (i386_dr_low_get_control): Declare.
16835 (i386_dr_low_get_status): Change prototype.
16837 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16838 (i386_dr_low_get_addr): New.
16839 (i386_dr_low_get_control): New.
16840 (i386_dr_low_get_status): Adjust prototype. Return
16842 (i386_initial_stuff): Clear dr_status_mirror and
16844 (i386_get_thread_context): Adjust.
16845 (i386_set_thread_context): Adjust.
16846 (i386_thread_added): Adjust.
16848 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16850 * linux-low.h (linux_thread_area): Delete declaration.
16852 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16854 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16855 after its termination.
16857 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16859 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16860 (gdb_wants_all_stopped): Delete.
16861 (linux_wait_1): Don't call them.
16862 * server.c (handle_v_cont): Tag all threads as want-stopped.
16863 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16864 stopped as "client-wants-stopped".
16866 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16868 * Makefile.in (signals_h): New.
16869 (server_h): Depend on it.
16870 (server.o): Don't depend on $(signals_def).
16871 (signals.o): Depend on $(signals_def).
16873 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16875 * Makefile.in (signals_def): New.
16876 (server_h): Append include/gdb/signals.h and signals_def.
16877 (server.o): Append signals_def.
16879 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16881 * server.c (handle_target_event): Use target_signal_to_host for
16882 resume_info.sig initialization.
16883 * target.h (struct thread_resume) <sig>: New comment.
16885 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16887 * server.c (handle_query): strcpy() the returned string from paddress()
16888 instead of sprintf().
16889 * utils.c (paddress): Return phex_nz().
16891 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16893 * server.c (handle_v_cont): Call mourn_inferior if process
16895 (myresume): Likewise.
16897 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16899 Static tracepoints, and integration with UST.
16901 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16902 * mem-break.c (uninsert_all_breakpoints)
16903 (reinsert_all_breakpoints): New.
16904 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16905 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16906 (gdb_agent_ust_loaded, helper_thread_id)
16907 (gdb_agent_helper_thread_id): New macros.
16908 (struct ipa_sym_addresses): Add addr_ust_loaded,
16909 addr_helper_thread_id, addr_cmd_buf.
16910 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16911 (in_process_agent_loaded_ust): New.
16912 (write_e_ust_not_loaded): New.
16913 (maybe_write_ipa_ust_not_loaded): New.
16914 (struct collect_static_trace_data_action): New.
16915 (enum tracepoint_type) <static_tracepoint>: New.
16916 (struct tracepoint) <handle>: Mention static tracepoints.
16917 (struct static_tracepoint_ctx): New.
16918 (CMD_BUF_SIZE): New.
16919 (add_tracepoint_action): Handle static tracepoint actions.
16920 (unprobe_marker_at): New.
16921 (clear_installed_tracepoints): Handle static tracepoints.
16922 (cmd_qtdp): Handle static tracepoints.
16923 (probe_marker_at): New.
16924 (cmd_qtstart): Handle static tracepoints.
16925 (response_tracepoint): Handle static tracepoints.
16926 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16927 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16928 (get_context_regcache): Handle static tracepoints.
16929 (do_action_at_tracepoint): Handle static tracepoint actions.
16930 (traceframe_find_block_type): Handle static trace data blocks.
16931 (traceframe_read_sdata): New.
16932 (download_tracepoints): Download static tracepoint actions.
16933 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16934 (GDB_PROBE_NAME): New.
16936 (GET_UST_SYM): New.
16939 (ust_marker_to_static_tracepoint): New.
16941 (collect_ust_data_at_tracepoint): New.
16942 (gdb_ust_probe): New.
16943 (UNIX_PATH_MAX, SOCK_DIR): New.
16944 (gdb_ust_connect_sync_socket): New.
16945 (resume_thread, stop_thread): New.
16946 (run_inferior_command): New.
16947 (init_named_socket): New.
16948 (gdb_ust_socket_init): New.
16949 (cstr_to_hexstr): New.
16951 (first_marker, next_marker): New.
16952 (response_ust_marker): New.
16953 (cmd_qtfstm, cmd_qtsstm): New.
16954 (unprobe_marker_at, probe_marker_at): New.
16955 (cmd_qtstmat, gdb_ust_thread): New.
16956 (gdb_ust_init): New.
16957 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16958 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16959 (ST_REGENTRY): New.
16960 (x86_64_st_collect_regmap): New.
16961 (X86_64_NUM_ST_COLLECT_GREGS): New.
16962 (AMD64_RIP_REGNUM): New.
16963 (supply_static_tracepoint_registers): New.
16964 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16965 (ST_REGENTRY): New.
16966 (i386_st_collect_regmap): New.
16967 (i386_NUM_ST_COLLECT_GREGS): New.
16968 (supply_static_tracepoint_registers): New.
16969 * server.c (handle_query): Handle qXfer:statictrace:read.
16970 <qSupported>: Report support for StaticTracepoints, and
16971 qXfer:statictrace:read features.
16972 * server.h (traceframe_read_sdata)
16973 (supply_static_tracepoint_registers): Declare.
16974 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16975 (unpack_varlen_hex): Include in IPA build.
16976 * Makefile.in (ustlibs, ustinc): New.
16977 (IPA_OBJS): Add remote-utils-ipa.o.
16978 ($(IPA_LIB)): Link -ldl and -lpthread.
16980 (IPAGENT_CFLAGS): Add UST_CFLAGS.
16981 * config.in, configure: Regenerate.
16983 2010-06-20 Ian Lance Taylor <iant@google.com>
16984 Pedro Alves <pedro@codesourcery.com>
16986 * linux-x86-low.c (always_true): Delete.
16987 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
16988 trying to fool the compiler with always_true.
16990 2010-06-20 Pedro Alves <pedro@codesourcery.com>
16992 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
16993 conditions in gdbserver.
16995 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
16997 * spu-low.c (spu_read_memory): Wrap around local store limit.
16998 (spu_write_memory): Likewise.
17000 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17002 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17003 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17005 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17007 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17008 uses with LONGEST uses.
17010 2010-06-14 Stan Shebs <stan@codesourcery.com>
17011 Pedro Alves <pedro@codesourcery.com>
17015 * linux-x86-low.c: Include limits.h.
17017 (always_true): New.
17020 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17021 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17022 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17023 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17024 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17025 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17026 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17027 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17028 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17029 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17030 (amd64_emit_void_call_2): New.
17031 (amd64_emit_ops): New.
17032 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17033 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17034 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17035 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17036 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17037 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17038 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17039 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17040 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17041 (i386_emit_stack_adjust, i386_emit_int_call_1)
17042 (i386_emit_void_call_2): New.
17043 (i386_emit_ops): New.
17044 (x86_emit_ops): New.
17045 (the_low_target): Install x86_emit_ops.
17046 * server.h (struct emit_ops): New.
17047 (get_raw_reg_func_addr): Declare.
17048 (current_insn_ptr, emit_error): Declare.
17049 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17050 (set_trace_state_variable_value): New defines.
17051 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17052 addr_get_trace_state_variable_value and
17053 addr_set_trace_state_variable_value.
17054 (symbol_list): New fields for get_raw_reg,
17055 get_trace_state_variable_value and set_trace_state_variable_value.
17056 (condfn): New typedef.
17057 (struct tracepoint): New field `compiled_cond'.
17058 (do_action_at_tracepoint): Clear compiled_cond.
17059 (get_trace_state_variable_value, set_trace_state_variable_value):
17061 (condition_true_at_tracepoint): If there's a compiled condition,
17063 (current_insn_ptr, emit_error): New globals.
17064 (struct bytecode_address): New.
17065 (get_raw_reg_func_addr): New.
17066 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17067 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17068 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17069 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17070 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17071 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17072 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17073 (compile_tracepoint_condition, compile_bytecodes): New.
17074 * target.h (emit_ops): Forward declare.
17075 (struct target_ops): New field emit_ops.
17076 (target_emit_ops): New.
17077 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17078 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17079 * linux-low.c (linux_emit_ops): New.
17080 (linux_target_ops): Install it.
17081 * linux-low.h (struct linux_target_ops): New field emit_ops.
17083 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17085 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17086 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17088 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17089 Stan Shebs <stan@codesourcery.com>
17091 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17092 (all): Depend on $(extra_libraries).
17093 (install-only): Install the IPA.
17094 (IPA_OBJS, IPA_LIB): New.
17095 (clean): Remove the IPA lib.
17096 (IPAGENT_CFLAGS): New.
17097 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17098 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17099 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17100 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17101 * configure.ac: Check for atomic builtins support in the compiler.
17102 (IPA_DEPFILES, extra_libraries): Define.
17103 * configure.srv (ipa_obj): Add description.
17104 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17105 (i[34567]86-*-linux*): Set ipa_obj.
17106 (x86_64-*-linux*): Set ipa_obj.
17107 * linux-low.c (stabilizing_threads): New.
17108 (supports_fast_tracepoints): New.
17109 (linux_detach): Stabilize threads before detaching.
17110 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17111 the lwp is either not stabilizing, or is moving out of a jump pad.
17112 (linux_fast_tracepoint_collecting): New.
17113 (maybe_move_out_of_jump_pad): New.
17114 (enqueue_one_deferred_signal): New.
17115 (dequeue_one_deferred_signal): New.
17116 (linux_wait_for_event_1): If moving out of a jump pad, defer
17117 pending signals to later.
17118 (linux_stabilize_threads): New.
17119 (linux_wait_1): Check if threads need moving out of jump pads, and
17121 (stuck_in_jump_pad_callback): New.
17122 (move_out_of_jump_pad_callback): New.
17123 (lwp_running): New.
17124 (linux_resume_one_lwp): Handle moving out of jump pads.
17125 (linux_set_resume_request): Dequeue deferred signals.
17126 (need_step_over_p): Also step over fast tracepoint jumps.
17127 (start_step_over): Also uninsert fast tracepoint jumps.
17128 (finish_step_over): Also reinsert fast tracepoint jumps.
17129 (linux_install_fast_tracepoint_jump): New.
17130 (linux_target_ops): Install linux_stabilize_threads and
17131 linux_install_fast_tracepoint_jump_pad.
17132 * linux-low.h (linux_target_ops) <get_thread_area,
17133 install_fast_tracepoint_jump_pad>: New fields.
17134 (struct lwp_info) <collecting_fast_tracepoint,
17135 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17136 (linux_get_thread_area): Declare.
17137 * linux-x86-low.c (jump_insn): New.
17138 (x86_get_thread_area): New.
17139 (append_insns): New.
17140 (push_opcode): New.
17141 (amd64_install_fast_tracepoint_jump_pad): New.
17142 (i386_install_fast_tracepoint_jump_pad): New.
17143 (x86_install_fast_tracepoint_jump_pad): New.
17144 (the_low_target): Install x86_get_thread_area and
17145 x86_install_fast_tracepoint_jump_pad.
17146 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17147 (struct fast_tracepoint_jump): New.
17148 (fast_tracepoint_jump_insn): New.
17149 (fast_tracepoint_jump_shadow): New.
17150 (find_fast_tracepoint_jump_at): New.
17151 (fast_tracepoint_jump_here): New.
17152 (delete_fast_tracepoint_jump): New.
17153 (set_fast_tracepoint_jump): New.
17154 (uninsert_fast_tracepoint_jumps_at): New.
17155 (reinsert_fast_tracepoint_jumps_at): New.
17156 (set_breakpoint_at): Use write_inferior_memory.
17157 (uninsert_raw_breakpoint): Use write_inferior_memory.
17158 (check_mem_read): Mask out fast tracepoint jumps.
17159 (check_mem_write): Mask out fast tracepoint jumps.
17160 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17161 (set_fast_tracepoint_jump): Declare.
17162 (delete_fast_tracepoint_jump)
17163 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17164 (reinsert_fast_tracepoint_jumps_at): Declare.
17165 * regcache.c: Don't compile many functions when building the
17166 in-process agent library.
17167 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17168 the register buffer in the heap.
17169 (free_register_cache): If the register buffer isn't owned by the
17170 regcache, don't free it.
17171 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17172 pre-existing register caches.
17173 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17175 (convert_ascii_to_int): : Constify `from' parameter type.
17176 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17177 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17178 the needed buffer in-place.
17179 (relocate_instruction): New.
17180 * server.c (handle_query) <qSymbols>: If the target supports
17181 tracepoints, give it a chance of looking up symbols. Report
17182 support for fast tracepoints.
17183 (handle_status): Stabilize threads.
17184 (process_serial_event): Adjust.
17185 * server.h (struct fast_tracepoint_jump): Forward declare.
17186 (struct process_info) <fast_tracepoint_jumps>: New field.
17187 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17188 (decode_X_packet, decode_M_packet): Adjust.
17189 (relocate_instruction): Declare.
17190 (in_process_agent_loaded): Declare.
17191 (tracepoint_look_up_symbols): Declare.
17192 (struct fast_tpoint_collect_status): Declare.
17193 (fast_tracepoint_collecting): Declare.
17194 (force_unlock_trace_buffer): Declare.
17195 (handle_tracepoint_bkpts): Declare.
17196 (initialize_low_tracepoint)
17197 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17198 * target.h (struct target_ops) <stabilize_threads,
17199 install_fast_tracepoint_jump_pad>: New fields.
17200 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17201 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17202 [HAVE_STDINT_H]: Include stdint.h.
17203 (trace_debug_1): Rename to ...
17204 (trace_vdebug): ... this.
17205 (trace_debug): Rename to ...
17206 (trace_debug_1): ... this. Add `level' parameter.
17207 (trace_debug): New.
17208 (ATTR_USED, ATTR_NOINLINE): New.
17209 (IP_AGENT_EXPORT): New.
17210 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17211 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17212 (about_to_request_buffer_space, trace_buffer_is_full)
17213 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17214 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17215 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17216 (traceframe_write_count, traceframes_created)
17217 (trace_state_variables)
17218 New renaming defines.
17219 (struct ipa_sym_addresses): New.
17220 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17221 (symbol_list): New.
17222 (ipa_sym_addrs): New.
17223 (all_tracepoint_symbols_looked_up): New.
17224 (in_process_agent_loaded): New.
17225 (write_e_ipa_not_loaded): New.
17226 (maybe_write_ipa_not_loaded): New.
17227 (tracepoint_look_up_symbols): New.
17228 (debug_threads) [IN_PROCESS_AGENT]: New.
17229 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17230 (UNKNOWN_SIDE_EFFECTS): New.
17231 (stop_tracing): New.
17232 (flush_trace_buffer): New.
17233 (stop_tracing_bkpt): New.
17234 (flush_trace_buffer_bkpt): New.
17235 (read_inferior_integer): New.
17236 (read_inferior_uinteger): New.
17237 (read_inferior_data_pointer): New.
17238 (write_inferior_data_pointer): New.
17239 (write_inferior_integer): New.
17240 (write_inferior_uinteger): New.
17241 (struct collect_static_trace_data_action): Delete.
17242 (enum tracepoint_type): New.
17243 (struct tracepoint) <type>: New field `type'.
17244 <actions_str, step_actions, step_actions_str>: Only include in
17246 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17247 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17248 (tracepoints): Use IP_AGENT_EXPORT.
17249 (last_tracepoint): Don't include in the IPA.
17250 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17251 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17252 (alloced_trace_state_variables): New.
17253 (trace_state_variables): Use IP_AGENT_EXPORT.
17254 (traceframe_t): Delete unused variable.
17255 (circular_trace_buffer): Don't include in the IPA.
17256 (trace_buffer_start): Delete.
17257 (struct trace_buffer_control): New.
17258 (trace_buffer_free): Delete.
17259 (struct ipa_trace_buffer_control): New.
17260 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17261 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17263 (trace_buffer_ctrl): New.
17264 (TRACE_BUFFER_CTRL_CURR): New.
17265 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17266 Reimplement as macros.
17267 (trace_buffer_wrap): Delete.
17268 (traceframe_write_count, traceframe_read_count)
17269 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17270 (struct tracepoint_hit_ctx) <type>: New field.
17271 (struct fast_tracepoint_ctx): New.
17272 (memory_barrier): New.
17274 (record_tracepoint_error): Update atomically in the IPA.
17275 (clear_inferior_trace_buffer): New.
17276 (about_to_request_buffer_space): New.
17277 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17278 updating the same buffer.
17279 (add_tracepoint): Default the tracepoint's type to trap
17280 tracepoint, and orig_size to -1.
17281 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17282 internal variables.
17283 (create_trace_state_variable): New parameter `gdb'. Handle it.
17284 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17285 (cmd_qtdp): Handle fast tracepoints.
17286 (cmd_qtdv): Adjust.
17287 (max_jump_pad_size): New.
17288 (gdb_jump_pad_head): New.
17289 (get_jump_space_head): New.
17290 (claim_jump_space): New.
17291 (sort_tracepoints): New.
17292 (MAX_JUMP_SIZE): New.
17293 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17295 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17296 support. Upload fast traceframes, and delete internal IPA
17298 (stop_tracing_handler): New.
17299 (flush_trace_buffer_handler): New.
17300 (cmd_qtstop): Upload fast tracepoints.
17301 (response_tracepoint): Handle fast tracepoints.
17302 (tracepoint_finished_step): Upload fast traceframes. Set the
17303 tracepoint hit context's tracepoint type.
17304 (handle_tracepoint_bkpts): New.
17305 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17306 type. Add comment about fast tracepoints.
17307 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17308 non-existing action_str field.
17309 (get_context_regcache): Handle fast tracepoints.
17310 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17312 (fast_tracepoint_from_jump_pad_address): New.
17313 (fast_tracepoint_from_ipa_tpoint_address): New.
17314 (collecting_t): New.
17315 (force_unlock_trace_buffer): New.
17316 (fast_tracepoint_collecting): New.
17318 (gdb_collect): New.
17319 (write_inferior_data_ptr): New.
17320 (target_tp_heap): New.
17321 (target_malloc): New.
17322 (download_agent_expr): New.
17324 (download_tracepoints): New.
17325 (download_trace_state_variables): New.
17326 (upload_fast_traceframes): New.
17327 (IPA_FIRST_TRACEFRAME): New.
17328 (IPA_NEXT_TRACEFRAME_1): New.
17329 (IPA_NEXT_TRACEFRAME): New.
17330 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17331 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17332 (gdb_jump_pad_buffer_end): New.
17333 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17334 (initialize_tracepoint): Adjust.
17335 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17336 buffer. Initialize the low module.
17337 * utils.c (PREFIX, TOOLNAME): New.
17338 (malloc_failure): Use PREFIX.
17339 (error): In the IPA, an error causes an exit.
17340 (fatal, warning): Use PREFIX.
17341 (internal_error): Use TOOLNAME.
17342 (NUMCELLS): Increase to 10.
17343 * configure, config.in: Regenerate.
17345 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17347 * server.c (handle_query) <qSupported>: Do two passes over the
17348 qSupported string to avoid nesting strtok.
17350 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17352 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17354 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17355 -Wl,--dynamic-list.
17356 * configure: Regenerate.
17357 * proc-service.list: New.
17359 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17361 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17364 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17366 * gdbreplay.c (remote_open): Check error return from socket() call by
17367 its equality to -1 not by it being negative.
17368 * remote-utils.c (remote_open): Likewise.
17370 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17372 * config.h: Regenerate.
17374 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17376 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17377 doesn't provide PTRACE_GET_THREAD_AREA.
17379 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17381 * linux-m68k-low.c: Include <asm/ptrace.h>
17382 (ps_get_thread_area): Implement.
17384 2010-05-03 Doug Evans <dje@google.com>
17386 * event-loop.c (struct callback_event): New struct.
17387 (callback_list): New global.
17388 (append_callback_event, delete_callback_event): New functions.
17389 (process_callback): New function.
17390 (start_event_loop): Call it.
17391 * remote-utils.c (NOT_SCHEDULED): Define.
17392 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17393 moved out of readchar.
17394 (readchar): Rewrite. Call reschedule before returning.
17395 (reset_readchar): New function.
17396 (remote_close): Call it.
17397 (process_remaining, reschedule): New functions.
17398 * server.h (callback_handler_func): New typedef.
17399 (append_callback_event, delete_callback_event): Declare.
17401 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17403 * proc-service.c (ps_pglobal_lookup): Use
17404 thread_db_look_up_one_symbol.
17405 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17406 parameter. Use it instead of all_symbols_looked_up.
17407 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17409 (all_symbols_looked_up): Don't declare.
17410 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17411 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17413 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17414 Set all_symbols_looked_up here.
17415 (thread_db_look_up_one_symbol): New.
17416 (thread_db_get_tls_address): Adjust.
17417 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17418 thread_db object on the heap, and tentatively set it in the
17420 (thread_db_init): Don't set all_symbols_looked_up here.
17421 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17423 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17425 * linux-low.c (linux_kill, linux_detach): Adjust.
17426 (status_pending_p_callback): Remove redundant statement. Check
17427 for !TARGET_WAITIKIND_IGNORE, instead of
17428 TARGET_WAITKIND_STOPPED.
17429 (handle_tracepoints): Make sure LWP is locked. Adjust.
17430 (linux_wait_for_event_1): Adjust.
17431 (linux_cancel_breakpoints): New.
17432 (unsuspend_one_lwp): New.
17433 (unsuspend_all_lwps): New.
17434 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17435 (send_sigstop_callback): Change return type to int, add new
17436 `except' parameter and handle it.
17437 (suspend_and_send_sigstop_callback): New.
17438 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17439 pass them down. If SUSPEND, also increment the lwp's suspend
17441 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17442 (need_step_over_p): Don't consider suspended LWPs.
17443 (start_step_over): Adjust.
17444 (proceed_one_lwp): Change return type to int, add new `except'
17445 parameter and handle it.
17446 (unsuspend_and_proceed_one_lwp): New.
17447 (proceed_all_lwps): Use find_inferior instead of
17449 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17450 also decrement the suspend count of LWPs. Pass `except' down,
17451 instead of hacking its suspend count.
17452 (linux_pause_all): Add `freeze' parameter. Adjust.
17453 (linux_unpause_all): New.
17454 (linux_target_ops): Install linux_unpause_all.
17455 * server.c (handle_status): Adjust.
17456 * target.h (struct target_ops): New fields `unpause_all' and
17457 `cancel_breakpoints'. Add new parameter to `pause_all'.
17458 (pause_all): Add new `freeze' parameter.
17459 (unpause_all): New.
17460 (cancel_breakpoints): New.
17461 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17462 cancel breakpoints.
17463 (cmd_qtstart): Pause threads.
17464 (stop_tracing): Pause threads, and cancel breakpoints.
17465 * win32-low.c (win32_target_ops): Adjust.
17467 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17469 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17470 the inferior right away from here...
17471 (linux_wait_1): ... to here, and adjust to check the thread's
17472 last_resume_kind instead of the lwp's step or stop_expected flags.
17474 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17476 * README: Use consistent `GDB' and `GDBserver' spellings.
17478 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17480 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17481 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17482 (linux_detach_one_lwp): Assume the lwp is stopped.
17483 (any_thread_of): Delete.
17484 (linux_detach): Stop all lwps here. Don't blindly delete all
17486 (delete_lwp_callback): New.
17487 (linux_mourn): Delete all lwps of the process that is gone.
17488 (linux_wait_1): Don't delete the last lwp of the process here.
17489 * mem-break.h (mark_breakpoints_out): Declare.
17490 * mem-break.c (mark_breakpoints_out): New.
17491 (free_all_breakpoints): Use it.
17492 * server.c (handle_target_event): If the process is gone, mark
17494 * thread-db.c (struct thread_db) <create_bp>: New field.
17495 (thread_db_enable_reporting): Fix prototype. Store a thread event
17496 breakpoint reference in the thread_db struct.
17497 (thread_db_load_search): Clear the thread_db object.
17498 (try_thread_db_load_1): Ditto.
17499 (switch_to_process): New.
17500 (disable_thread_event_reporting): Use it.
17501 (remove_thread_event_breakpoints): New.
17502 (thread_db_detach, thread_db_mourn): Use it.
17504 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17506 * linux-low.c (linux_enable_event_reporting): New.
17507 (linux_wait_for_event_1, handle_extended_wait): Use it.
17509 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17511 * linux-low.c (linux_kill_one_lwp, linux_kill)
17512 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17513 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17514 SIGSTOP even if the LWP is stopped.
17515 (send_sigstop_callback): New.
17516 (stop_all_lwps): Use send_sigstop_callback instead.
17517 (linux_resume_one_thread): Adjust.
17518 (proceed_one_lwp): Still proceed an LWP that the client has
17519 requested to stop, if we haven't reported it as stopped yet. Make
17520 sure that LWPs the client want stopped, have a pending SIGSTOP.
17522 2010-04-26 Doug Evans <dje@google.com>
17524 * server.c (handle_general_set): Make static.
17526 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17527 Print received char after testing for error/eof instead of before.
17528 (input_interrupt): Tweak comment.
17530 2010-04-23 Doug Evans <dje@google.com>
17532 * server.c (start_inferior): Print inferior argv if --debug.
17534 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17536 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17537 * nto-x86-low.c: Include server.h
17539 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17541 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17542 be consistent with other sources of this directory.
17543 (init_registers_amd64): Correct name of source file of this function
17546 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17548 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17549 64-bit executables.
17551 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17553 * win32-i386-low.c: Add 64-bit support.
17554 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17555 (init_registers_amd64): Declare.
17556 (mappings): Add 64-bit version of array.
17557 (init_windows_x86): New function.
17558 (the_low_target): Change init_arch field to init_windows_x86.
17560 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17562 * win32-low.c: Adapt to support also 64-bit architecture.
17563 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17564 (get_image_name): Use SIZE_T type for local variable `done'.
17565 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17566 (toolhelp_get_dll_name): Idem.
17567 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17568 Use uintptr_t typecast to avoid warning.
17569 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17570 (handle_exception): Use phex_nz to avoid warning.
17571 (win32_wait): Remove unused local variable `process'.
17573 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17575 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17578 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17580 * configure.ac: Use `ws2_32' library for srv_mingw.
17581 * configure: Regenerate.
17582 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17583 * remote-utils.c: Likewise.
17585 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17587 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17588 if __x86_64__ is defined.
17590 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17592 * configure: Regenerate.
17594 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17596 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17597 * target.h (target_ops): New get_tib_address field.
17598 * win32-low.h (win32_thread_info): Add thread_local_base field.
17599 * win32-low.c (child_add_thread): Add tlb argument.
17600 Set thread_local_base field to TLB.
17601 (get_child_debug_event): Adapt to child_add_thread change.
17602 (win32_get_tib_address): New function.
17603 (win32_target_ops): Set get_tib_address field to
17604 win32_get_tib_address.
17605 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17607 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17609 * linux-low.c (linux_mourn): Also remove the process.
17610 * server.c (handle_target_event): Don't remove the process here.
17611 * nto-low.c (nto_mourn): New.
17612 (nto_target_ops): Install it.
17613 * spu-low.c (spu_mourn): New.
17614 (spu_target_ops): Install it.
17615 * win32-low.c (win32_mourn): New.
17616 (win32_target_ops): Install it.
17618 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17620 * server.h (buffer_xml_printf): Remove redundant `;'.
17622 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17624 * regcache.c (set_register_cache): Invalidate regcaches before
17625 changing the register cache layout.
17626 (regcache_invalidate_one): Allow a NULL regcache.
17627 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17628 regcaches before changing the register cache layout or the target
17631 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17633 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17634 variable warning on Linux/x86-64.
17636 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17638 GDBserver disconnected tracing support.
17640 * linux-low.c (linux_remove_process): Delete.
17641 (add_lwp): Don't set last_resume_kind here.
17642 (linux_kill): Use `mourn'.
17643 (linux_detach): Use `thread_db_detach', and `mourn'.
17644 (linux_mourn): New.
17645 (linux_attach_lwp_1): Adjust comment.
17646 (linux_attach): last_resume_kind moved the thread_info; adjust.
17647 (status_pending_p_callback): Adjust.
17648 (linux_wait_for_event_1): Adjust.
17649 (count_events_callback, select_singlestep_lwp_callback)
17650 (select_event_lwp_callback, cancel_breakpoints_callback)
17651 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17652 (proceed_one_lwp): Adjust.
17653 (linux_async): Add debug output.
17654 (linux_thread_stopped): New.
17655 (linux_pause_all): New.
17656 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17658 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17659 (thread_db_free): Delete declaration.
17660 (thread_db_detach, thread_db_mourn): Declare.
17661 * thread-db.c (thread_db_init): Use thread_db_mourn.
17662 (thread_db_free): Delete, split in two.
17663 (disable_thread_event_reporting): New.
17664 (thread_db_detach): New.
17665 (thread_db_mourn): New.
17667 * server.h (struct thread_info) <last_resume_kind>: New field.
17668 <attached>: Add comment.
17669 <gdb_detached>: New field.
17670 (handler_func): Change return type to int.
17671 (handle_serial_event, handle_target_event): Ditto.
17672 (gdb_connected): Declare.
17674 (disconnected_tracing): Declare.
17675 (stop_tracing): Declare.
17677 * server.c (handle_query) <qSupported>: Report support for
17678 disconnected tracing.
17679 (queue_stop_reply_callback): Account for running threads.
17680 (gdb_wants_thread_stopped): New.
17681 (gdb_wants_all_threads_stopped): New.
17682 (gdb_reattached_process): New.
17683 (handle_status): Clear the `gdb_detached' flag of all processes.
17684 In all-stop, stop all threads.
17685 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17686 (process_serial_event): If the remote connection breaks, or if an
17687 exit was forced with "monitor exit", force an event loop exit.
17688 Handle disconnected tracing on detach.
17689 (handle_serial_event): Adjust.
17690 (handle_target_event): If GDB isn't connected, forward events back
17691 to the inferior, unless the last process exited, in which case,
17692 exit gdbserver. Adjust interface.
17694 * remote-utils.c (remote_open): Don't block in accept. Instead
17695 register an event loop source on the listen socket file
17696 descriptor. Refactor bits into ...
17697 (listen_desc): ... this new global.
17698 (gdb_connected): ... this new function.
17699 (enable_async_notification): ... this new function.
17700 (handle_accept_event): ... this new function.
17701 (remote_close): Clear remote_desc.
17703 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17705 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17707 (mourn_inferior): Define.
17708 (target_process_qsupported): Avoid the dangling else problem.
17709 (thread_stopped): Define.
17710 (pause_all): Define.
17711 (target_waitstatus_to_string): Declare.
17712 * target.c (target_waitstatus_to_string): New.
17714 * tracepoint.c (tracing): Make extern.
17715 (disconnected_tracing): New.
17716 (stop_tracing): Make extern. Handle tracing stops due to GDB
17718 (cmd_qtdisconnected): New.
17719 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17720 (handle_tracepoint_general_set): Handle QTDisconnected.
17722 * event-loop.c (event_handler_func): Change return type to int.
17723 (process_event): Bail out if the event handler wants the event
17725 (handle_file_event): Ditto.
17726 (start_event_loop): Bail out if the event handler wants the event
17729 * nto-low.c (nto_target_ops): Adjust.
17730 * spu-low.c (spu_wait): Don't remove the process here.
17731 (spu_target_ops): Adjust.
17732 * win32-low.c (win32_wait): Don't remove the process here.
17733 (win32_target_ops): Adjust.
17735 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17737 * regcache.c (realloc_register_cache): Invalidate inferior's
17738 regcache before recreating it.
17740 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17742 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17744 2010-04-09 Stan Shebs <stan@codesourcery.com>
17745 Pedro Alves <pedro@codesourcery.com>
17747 * server.h (LONGEST): New.
17748 (struct thread_info) <while_stepping>: New field.
17749 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17751 (initialize_tracepoint, handle_tracepoint_general_set)
17752 (handle_tracepoint_query, tracepoint_finished_step)
17753 (tracepoint_was_hit, release_while_stepping_state_list):
17754 (current_traceframe): Declare.
17755 * server.c (handle_general_set): Handle tracepoint packets.
17756 (read_memory): New.
17757 (write_memory): New.
17758 (handle_search_memory_1): Use read_memory.
17759 (handle_query): Report support for conditional tracepoints, trace
17760 state variables, and tracepoint sources. Handle tracepoint
17762 (main): Initialize the tracepoints module.
17763 (process_serial_event): Handle traceframe reads/writes.
17765 * linux-low.c (handle_tracepoints): New.
17766 (linux_wait_1): Call it.
17767 (linux_resume_one_lwp): Handle while-stepping.
17768 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17769 (linux_target_ops): Install them.
17770 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17772 * linux-x86-low.c (x86_supports_tracepoints): New.
17773 (the_low_target). Install it.
17775 * mem-break.h (delete_breakpoint): Declare.
17776 * mem-break.c (delete_breakpoint): Make external.
17778 * target.h (struct target_ops): Add `supports_tracepoints',
17779 `read_pc', and `write_pc' fields.
17780 (target_supports_tracepoints): Define.
17781 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17784 * regcache.h (struct regcache) <registers_owned>: New field.
17785 (init_register_cache, regcache_cpy): Declare.
17786 (regcache_read_pc, regcache_write_pc): Declare.
17787 (register_cache_size): Declare.
17788 (supply_regblock): Declare.
17789 * regcache.c (init_register_cache): New.
17790 (new_register_cache): Use it.
17791 (regcache_cpy): New.
17792 (register_cache_size): New.
17793 (supply_regblock): New.
17794 (regcache_read_pc, regcache_write_pc): New.
17796 * tracepoint.c: New.
17798 * Makefile.in (OBS): Add tracepoint.o.
17799 (tracepoint.o): New rule.
17801 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17803 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17805 (i386-mmx.c): Likewise.
17806 (i386-mmx-linux.o): Likewise.
17807 (i386-mmx-linux.c): Likewise.
17809 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17810 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17811 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17812 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17814 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17815 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17816 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17818 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17820 * Makefile.in (clean): Updated.
17822 (i386-avx.c): Likewise.
17823 (i386-avx-linux.o): Likewise.
17824 (i386-avx-linux.c): Likewise.
17825 (amd64-avx.o): Likewise.
17826 (amd64-avx.c): Likewise.
17827 (amd64-avx-linux.o): Likewise.
17828 (amd64-avx-linux.c): Likewise.
17830 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17831 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17832 (srv_amd64_regobj): Add amd64-avx.o.
17833 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17834 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17835 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17836 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17837 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17838 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17839 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17841 * i387-fp.c: Include "i386-xstate.h".
17843 (i387_cache_to_xsave): Likewise.
17844 (i387_xsave_to_cache): Likewise.
17845 (x86_xcr0): Likewise.
17847 * i387-fp.h (i387_cache_to_xsave): Likewise.
17848 (i387_xsave_to_cache): Likewise.
17849 (x86_xcr0): Likewise.
17851 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17852 * linux-crisv32-low.c (target_regsets): Likewise.
17853 * linux-m68k-low.c (target_regsets): Likewise.
17854 * linux-mips-low.c (target_regsets): Likewise.
17855 * linux-ppc-low.c (target_regsets): Likewise.
17856 * linux-s390-low.c (target_regsets): Likewise.
17857 * linux-sh-low.c (target_regsets): Likewise.
17858 * linux-sparc-low.c (target_regsets): Likewise.
17859 * linux-xtensa-low.c (target_regsets): Likewise.
17861 * linux-low.c: Include <sys/uio.h>.
17862 (regsets_fetch_inferior_registers): Support nt_type.
17863 (regsets_store_inferior_registers): Likewise.
17864 (linux_process_qsupported): New.
17865 (linux_target_ops): Add linux_process_qsupported.
17867 * linux-low.h (regset_info): Add nt_type.
17868 (linux_target_ops): Add process_qsupported.
17870 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17872 (init_registers_i386_avx_linux): New.
17873 (init_registers_amd64_avx_linux): Likewise.
17874 (xmltarget_i386_linux_no_xml): Likewise.
17875 (xmltarget_amd64_linux_no_xml): Likewise.
17876 (PTRACE_GETREGSET): Likewise.
17877 (PTRACE_SETREGSET): Likewise.
17878 (x86_fill_xstateregset): Likewise.
17879 (x86_store_xstateregset): Likewise.
17880 (use_xml): Likewise.
17881 (x86_linux_update_xmltarget): Likewise.
17882 (x86_linux_process_qsupported): Likewise.
17883 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17884 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17885 init_registers_i386_linux here. Call
17886 x86_linux_update_xmltarget.
17887 (the_low_target): Add x86_linux_process_qsupported.
17889 * server.c (handle_query): Call target_process_qsupported.
17891 * target.h (target_ops): Add process_qsupported.
17892 (target_process_qsupported): New.
17894 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17896 * inferiors.c (add_thread): Set last_status kind to
17897 TARGET_WAITKIND_IGNORE.
17898 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17899 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17900 (linux_wait_1): Move `thread' local definition to block that uses
17901 it. Don't NULL initialize `event_child'.
17902 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17903 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17904 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17906 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17908 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17909 an extended waitstatus, or by a watchpoint.
17910 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17911 thread was stepping or has been stopped by a watchpoint.
17913 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17915 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17916 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17917 of another, then delete the previous, and validate all
17919 (validate_inserted_breakpoint): New.
17920 (delete_disabled_breakpoints): New.
17921 (validate_breakpoints): New.
17922 (check_mem_read): Validate breakpoints before trusting their
17923 shadow. Delete disabled breakpoints.
17924 (check_mem_write): Validate breakpoints before trusting they
17925 should be inserted. Delete disabled breakpoints.
17926 * mem-break.h (validate_breakpoints):
17927 * server.c (handle_query): Validate breakpoints when we see a
17930 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17932 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17933 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17934 if we could tell there's a GDB breakpoint at stop_pc.
17935 (need_step_over_p): Don't do a step over if we find a GDB
17936 breakpoint at the resume PC.
17938 * mem-break.c (struct raw_breakpoint): New.
17939 (enum bkpt_type): New type `gdb_breakpoint'.
17940 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17941 fields. New field `raw'.
17942 (find_raw_breakpoint_at): New.
17943 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17944 breakpoint instead.
17945 (set_breakpoint_at): Adjust.
17946 (delete_raw_breakpoint): New.
17947 (release_breakpoint): New.
17948 (delete_breakpoint): Rename to...
17949 (delete_breakpoint_1): ... this. Add proc parameter. Use
17950 release_breakpoint. Return ENOENT.
17951 (delete_breakpoint): Reimplement.
17952 (find_breakpoint_at): Delete.
17953 (find_gdb_breakpoint_at): New.
17954 (delete_breakpoint_at): Delete.
17955 (set_gdb_breakpoint_at): New.
17956 (delete_gdb_breakpoint_at): New.
17957 (gdb_breakpoint_here): New.
17958 (set_reinsert_breakpoint): Use release_breakpoint.
17959 (uninsert_breakpoint): Rename to ...
17960 (uninsert_raw_breakpoint): ... this.
17961 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17962 (reinsert_raw_breakpoint): Change parameter type to
17964 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17966 (check_breakpoints): Adjust. Use release_breakpoint.
17967 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17968 (breakpoint_inserted_here): Ditto.
17969 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17970 Don't trust the breakpoint's shadow if it is not inserted.
17971 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17972 (delete_all_breakpoints): Adjust.
17973 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17974 use delete_breakpoint_1.
17976 * mem-break.h (breakpoints_supported): Delete declaration.
17977 (set_gdb_breakpoint_at): Declare.
17978 (gdb_breakpoint_here): Declare.
17979 (delete_breakpoint_at): Delete.
17980 (delete_gdb_breakpoint_at): Declare.
17982 * server.h (struct raw_breakpoint): Forward declare.
17983 (struct process_info): New field `raw_breakpoints'.
17985 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
17988 2010-03-24 Pedro Alves <pedro@codesourcery.com>
17990 * linux-low.c (status_pending_p_callback): Fix comment.
17991 (linux_wait_for_event_1): Move most of the internal breakpoint
17992 handling from here...
17993 (linux_wait_1): ... to here.
17994 (count_events_callback): New.
17995 (select_singlestep_lwp_callback): New.
17996 (select_event_lwp_callback): New.
17997 (cancel_breakpoints_callback): New.
17998 (select_event_lwp): New.
17999 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18000 priority to all LWPs that have had events that should be reported
18001 to the client. Cancel breakpoints when about to reporting the
18002 event to the client, not while stopping lwps. No longer cancel
18003 finished single-steps here.
18004 (cancel_finished_single_step): Delete.
18005 (cancel_finished_single_steps): Delete.
18007 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18009 * mem-break.c (enum bkpt_type): New.
18010 (struct breakpoint): New field `type'.
18011 (set_breakpoint_at): Change return type to struct breakpoint
18012 pointer. Set type to `other_breakpoint' by default.
18013 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18014 in the breakpoint list.
18015 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18016 (reinsert_breakpoint): Rename to ...
18017 (reinsert_raw_breakpoint): ... this.
18018 (reinsert_breakpoints_at): Adjust.
18019 * mem-break.h (struct breakpoint): Declare.
18020 (set_breakpoint_at): Change return type to struct breakpoint
18023 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18025 * server.c (handle_query): Assign, not compare.
18027 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18029 Teach linux gdbserver to step-over-breakpoints.
18031 * linux-low.c (can_hardware_single_step): New.
18032 (supports_breakpoints): New.
18033 (handle_extended_wait): If stopping threads, read the stop pc of
18034 the new cloned LWP.
18036 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18037 low target doesn't support retrieving the PC.
18038 (add_lwp): Set last_resume_kind to resume_continue.
18039 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18040 (linux_attach): Don't clear stop_expected. Set the lwp's
18041 last_resume_kind to resume_stop.
18042 (linux_detach_one_lwp): Don't check for removed breakpoints.
18043 (check_removed_breakpoint): Delete.
18044 (status_pending_p): Rename to ...
18045 (status_pending_p_callback): ... this. Don't check for removed
18046 breakpoints. Don't consider threads that are stopped from GDB's
18048 (linux_wait_for_lwp): Always read the stop_pc here.
18049 (cancel_breakpoint): New.
18050 (step_over_bkpt): New global.
18051 (linux_wait_for_event_1): Implement stepping over breakpoints.
18052 (gdb_wants_lwp_stopped): New.
18053 (gdb_wants_all_stopped): New.
18054 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18055 single-step traps here. Store the thread's last reported target
18057 (send_sigstop): Don't clear stop_expected. Always set it,
18059 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18060 (cancel_finished_single_step): New.
18061 (cancel_finished_single_steps): New.
18062 (wait_for_sigstop): Don't cancel finished single-step traps here.
18063 (linux_resume_one_lwp): Don't check for removed breakpoints.
18064 Don't set `step' on non-hardware step archs.
18065 (linux_set_resume_request): Ignore resume_stop requests if already
18066 stopping or stopped. Set the lwp's last_resume_kind.
18067 (resume_status_pending_p): Don't check for removed breakpoints.
18068 (need_step_over_p): New.
18069 (start_step_over): New.
18070 (finish_step_over): New.
18071 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18072 requests. Clear the thread's last reported target waitstatus.
18073 Don't use the `suspended' flag. Don't consider pending breakpoints.
18074 (linux_resume): Start a step-over if necessary.
18075 (proceed_one_lwp): New.
18076 (proceed_all_lwps): New.
18077 (unstop_all_lwps): New.
18078 * linux-low.h (struct lwp_info): Rewrite comment for the
18079 `suspended' flag. Add the `stop_pc' field. Delete the
18080 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18081 Add `'last_resume_kind' and `need_step_over' fields.
18082 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18083 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18084 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18085 (set_raw_breakpoint_at): New.
18086 (set_breakpoint_at): Rewrite to use it.
18087 (reinsert_breakpoint_handler): Delete.
18088 (set_reinsert_breakpoint): New.
18089 (reinsert_breakpoint_by_bp): Delete.
18090 (delete_reinsert_breakpoints): New.
18091 (uninsert_breakpoint): Rewrite.
18092 (uninsert_breakpoints_at): New.
18093 (reinsert_breakpoint): Rewrite.
18094 (reinsert_breakpoints_at): New.
18095 (check_breakpoints): Rewrite.
18096 (breakpoint_here): New.
18097 (breakpoint_inserted_here): New.
18098 (check_mem_read): Adjust.
18099 * mem-break.h (breakpoints_supported, breakpoint_here)
18100 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18101 (reinsert_breakpoint_by_bp): Delete declaration.
18102 (delete_reinsert_breakpoints): Declare.
18103 (reinsert_breakpoint): Delete declaration.
18104 (reinsert_breakpoints_at): Declare.
18105 (uninsert_breakpoint): Delete declaration.
18106 (uninsert_breakpoints_at): Declare.
18107 (check_breakpoints): Adjust prototype.
18108 * server.h: Adjust include order.
18109 (struct thread_info): Declare here. Add a `last_status' field.
18111 2010-03-23 Michael Snyder <msnyder@vmware.com>
18113 * server.c (crc32): New function.
18114 (handle_query): Add handling for 'qCRC:' request.
18116 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18118 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18119 lwp had been stopped by a watchpoint.
18121 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18123 * server.h (internal_error): Declare.
18124 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18125 * utils.c (internal_error): New function.
18127 2010-03-15 Andreas Schwab <schwab@redhat.com>
18129 * configure.srv: Fix typo setting srv_regobj.
18131 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18133 * linux-low.c (fetch_register): Avoid passing a non string literal
18135 (usr_store_inferior_registers): Ditto.
18137 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18139 * linux-low.c (linux_write_memory): Bail out early if peeking
18142 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18144 * linux-low.h (struct lwp_info): New fields
18145 `stopped_by_watchpoint' and `stopped_data_address'.
18146 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18147 here, and cache them in the lwp object.
18148 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18150 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18152 (linux_stopped_by_watchpoint): Rewrite.
18153 (linux_stopped_data_address): Rewrite.
18155 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18157 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18158 switching the current inferior, not before.
18160 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18162 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18163 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18164 i386-linux.c and amd64-linux.c.
18165 (reg-i386.o): Removed.
18166 (reg-i386.c): Likewise.
18167 (reg-i386-linux.o): Likewise.
18168 (reg-i386-linux.c): Likewise.
18169 (reg-x86-64.o): Likewise.
18170 (reg-x86-64.c): Likewise.
18171 (reg-x86-64-linux.o): Likewise.
18172 (reg-x86-64-linux.c): Likewise.
18174 (i386.c): Likewise.
18175 (i386-linux.o): Likewise.
18176 (i386-linux.c): Likewise.
18177 (amd64.o): Likewise.
18178 (amd64.c): Likewise.
18179 (amd64-linux.o): Likewise.
18180 (amd64-linux.c): Likewise.
18182 * configure.srv (srv_i386_regobj): New.
18183 (srv_i386_linux_regobj): Likewise.
18184 (srv_amd64_regobj): Likewise.
18185 (srv_amd64_linux_regobj): Likewise.
18186 (srv_i386_32bit_xmlfiles): Likewise.
18187 (srv_i386_64bit_xmlfiles): Likewise.
18188 (srv_i386_xmlfiles): Likewise.
18189 (srv_amd64_xmlfiles): Likewise.
18190 (srv_i386_linux_xmlfiles): Likewise.
18191 (srv_amd64_linux_xmlfiles): Likewise.
18192 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18193 srv_xmlfiles to $srv_i386_xmlfiles.
18194 (i[34567]86-*-mingw32ce*): Likewise.
18195 (i[34567]86-*-mingw*): Likewise.
18196 (i[34567]86-*-nto*): Likewise.
18197 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18198 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18199 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18200 (x86_64-*-linux*): Likewise.
18202 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18203 (init_registers_amd64_linux): New.
18204 (x86_arch_setup): Replace init_registers_x86_64_linux with
18205 init_registers_amd64_linux.
18207 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18209 * configure.ac: Check for libdl. If it is not available link against
18210 static libthread_db.
18211 * configure: Regenerate.
18213 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18217 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18218 handing a read watchpoint.
18219 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18221 2010-02-12 Doug Evans <dje@google.com>
18223 * linux-low.c (linux_supports_tracefork_flag): Document.
18224 (linux_look_up_symbols): Add comment.
18226 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18228 * regcache.c (supply_register): Clear regcache if buf is NULL.
18230 2010-02-02 Nicolas Roche <roche@sourceware.org>
18231 Joel Brobecker <brobecker@adacore.com>
18233 * inferiors.c (find_inferior): Add function documentation.
18234 (unloaded_dll): Handle the case where the unloaded dll has not
18235 been previously registered in the dll list.
18237 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18239 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18240 (thumb2_breakpoint): New.
18241 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18243 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18245 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18246 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18249 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18251 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18253 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18255 * linux-s390-low.c (s390_collect_ptrace_register)
18256 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18258 2010-01-21 Doug Evans <dje@google.com>
18260 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18261 (PTRACE_ARG4_TYPE): New macro.
18262 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18263 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18264 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18265 (usr_store_inferior_registers): Ditto.
18266 (linux_read_memory, linux_write_memory): Ditto.
18267 (linux_test_for_tracefork): Ditto.
18269 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18270 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18272 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18274 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18277 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18279 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18280 prototype to take a regcache. Adjust.
18282 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18284 * regcache.h (struct thread_info): Forward declare.
18285 (struct regcache): New.
18286 (new_register_cache): Adjust prototype.
18287 (get_thread_regcache): Declare.
18288 (free_register_cache): Adjust prototype.
18289 (registers_to_string, registers_from_string): Ditto.
18290 (supply_register, supply_register_by_name, collect_register)
18291 (collect_register_as_string, collect_register_by_name): Ditto.
18292 * regcache.c (struct inferior_regcache_data): Delete.
18293 (get_regcache): Rename to ...
18294 (get_thread_regcache): ... this. Adjust. Switch inferior before
18295 fetching registers.
18296 (regcache_invalidate_one): Adjust.
18297 (regcache_invalidate): Fix prototype.
18298 (new_register_cache): Return the new register cache.
18299 (free_register_cache): Change prototype.
18300 (realloc_register_cache): Adjust.
18301 (registers_to_string): Change prototype to take a regcache. Adjust.
18302 (registers_from_string): Ditto.
18303 (register_data): Ditto.
18304 (supply_register): Ditto.
18305 (supply_register_by_name): Ditto.
18306 (collect_register): Ditto.
18307 (collect_register_as_string): Ditto.
18308 (collect_register_by_name): Ditto.
18309 * server.c (process_serial_event): Adjust.
18310 * linux-low.h (regset_fill_func, regset_store_func): Change
18312 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18314 * linux-low.c (get_stop_pc): Adjust.
18315 (check_removed_breakpoint): Adjust.
18316 (linux_wait_for_event): Adjust.
18317 (linux_resume_one_lwp): Adjust.
18318 (fetch_register): Add regcache parameter. Adjust.
18319 (usr_store_inferior_registers): Ditto.
18320 (regsets_fetch_inferior_registers): Ditto.
18321 (regsets_store_inferior_registers): Ditto.
18322 (linux_fetch_registers, linux_store_registers): Ditto.
18323 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18325 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18327 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18328 prototype to take a regcache.
18329 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18330 * remote-utils.c (convert_ascii_to_int, outreg)
18331 (prepare_resume_reply): Change prototype to take a regcache.
18333 * target.h (struct target_ops) <fetch_registers, store_registers>:
18334 Change prototype to take a regcache.
18335 (fetch_inferior_registers, store_inferior_registers): Change
18336 prototype to take a regcache. Adjust.
18337 * proc-service.c (ps_lgetregs): Adjust.
18338 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18339 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18340 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18341 take a regcache. Adjust.
18342 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18343 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18344 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18345 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18346 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18347 (cris_cannot_fetch_register):
18348 (cris_breakpoint_at): Change prototype to take a regcache.
18350 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18351 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18352 to take a regcache. Adjust.
18353 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18355 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18356 take a regcache. Adjust.
18357 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18358 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18359 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18360 * linux-mips-low.c (mips_get_pc):
18361 (mips_set_pc): Change prototype to take a regcache. Adjust.
18362 (mips_reinsert_addr): Adjust.
18363 (mips_collect_register): Change prototype to take a regcache.
18365 (mips_supply_register):
18366 (mips_collect_register_32bit, mips_supply_register_32bit)
18367 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18368 (mips_store_fpregset): Ditto.
18369 * linux-ppc-low.c (ppc_supply_ptrace_register)
18370 (ppc_supply_ptrace_register): Ditto.
18371 (parse_spufs_run): Adjust.
18372 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18373 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18374 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18375 take a regcache. Adjust.
18376 * linux-s390-low.c (s390_collect_ptrace_register)
18377 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18378 (s390_set_pc): Change prototype to take a regcache. Adjust.
18379 (s390_arch_setup): Adjust.
18380 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18381 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18382 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18383 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18384 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18386 (sparc_breakpoint_at): Adjust.
18387 * linux-xtensa-low.c (xtensa_fill_gregset):
18388 (xtensa_store_gregset):
18389 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18390 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18391 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18392 prototype to take a regcache. Adjust.
18393 * win32-arm-low.c (arm_fetch_inferior_register)
18394 (arm_store_inferior_register): Change prototype to take a
18396 * win32-i386-low.c (i386_fetch_inferior_register)
18397 (i386_store_inferior_register): Change prototype to take a
18399 * win32-low.c (child_fetch_inferior_registers)
18400 (child_store_inferior_registers): Change prototype to take a
18402 (win32_wait): Adjust.
18403 (win32_fetch_inferior_registers): Change prototype to take a
18405 (win32_store_inferior_registers): Adjust.
18406 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18407 store_inferior_register>: Change prototype to take a regcache.
18409 2010-01-20 Doug Evans <dje@google.com>
18411 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18413 (linux_wait_for_event1, linux_init_signals): Ditto.
18414 (W_STOPCODE): Provide definition if missing.
18416 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18418 * linux-low.c (linux_core_of_thread): New.
18419 (compare_ints, show_process, list_threads): New.
18420 (linux_qxfer_osdata): Report threads and cores.
18421 (linux_target_op): Register linux_core_of_thread.
18422 * remote-utils.c (prepare_resume_reply): Report the core.
18423 (buffer_xml_printf): Support %d specifier.
18424 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18426 (handle_query): Handle qXfer:threads. Announce availability
18428 * target.h (struct target_ops): New field core_of_thread.
18430 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18432 * Makefile.in (clean): Remove new generated files.
18433 (reg-s390.o, reg-s390.c): Remove rules.
18434 (reg-s390x.o, reg-s390x.c): Likewise.
18435 (s390-linux32.o, s390-linux32.c): Add rules.
18436 (s390-linux64.o, s390-linux64.c): Likewise.
18437 (s390x-linux64.o, s390x-linux64.c): Likewise.
18438 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18439 * linux-s390-low.c: Include <elf.h>.
18440 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18441 (init_registers_s390): Remove prototype.
18442 (init_registers_s390x): Likewise.
18443 (init_registers_s390_linux32): Add prototype.
18444 (init_registers_s390_linux64): Likewise.
18445 (init_registers_s390x_linux64): Likewise.
18446 (s390_num_regs_3264): New define.
18447 (s390_regmap_3264): New global variable.
18448 (s390_cannot_fetch_register): Remove obsolete check.
18449 (s390_cannot_store_register): Likewise.
18450 (s390_collect_ptrace_register): Handle upper/lower register halves.
18451 (s390_supply_ptrace_register): Likewise.
18452 (s390_fill_gregset): Update to register number changes.
18453 (s390_get_hwcap): New routine.
18454 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18455 Install appropriate regmap and register set.
18457 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18459 * server.c (gdbserver_version): Update copyright year to 2010.
18460 * gdbreplay.c (gdbreplay_version): Likewise.
18462 2009-12-28 Doug Evans <dje@google.com>
18464 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18465 elf/external.h. Include <elf.h> instead but only if necessary.
18467 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18469 * linux-low.c (linux_remove_process): Remove `detaching'
18470 parameter. Don't release/detach from thread_db here.
18471 (linux_kill): Release/detach from thread_db here, ...
18472 (linux_detach): ... and here, before actually detaching.
18473 (linux_wait_1): ... and here, when a process exits.
18474 * thread-db.c (any_thread_of): New.
18475 (thread_db_free): Switch the current inferior to a thread of the
18478 2009-12-21 Doug Evans <dje@google.com>
18480 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18482 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18483 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18484 warning ifndef __NR_tkill. Move setting of errno there too.
18485 Delete unnecessary resetting of errno after syscall.
18486 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18488 * configure.ac: Check for dladdr.
18489 * config.in: Regenerate.
18490 * configure: Regenerate.
18491 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18492 (try_thread_db_load): Update.
18494 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18496 2009-12-18 Doug Evans <dje@google.com>
18498 * event-loop.c: Include unistd.h if it exists.
18500 * linux-low.c (my_waitpid): Move definition away from being in
18501 between linux_tracefork_child/linux_test_for_tracefork.
18503 * gdb_proc_service.h (psaddr_t): Fix type.
18504 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18505 signature to match glibc.
18507 2009-12-16 Doug Evans <dje@google.com>
18509 * linux-low.c (linux_read_memory): Fix argument to read.
18511 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18513 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18514 events, don't leave current_inferior pointing at null.
18516 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18518 * win32-low.c (LOG): Delete.
18519 (OUTMSG): Output to stderr.
18520 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18521 on compile time LOG macro.
18522 (win32_wait): Fix debug output.
18524 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18526 * win32-low.c (win32_add_one_solib): If the dll name is
18527 "ntdll.dll", prepend the system directory to the dll path.
18529 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18531 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18533 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18534 Vladimir Prus <vladimir@codesourcery.com>
18536 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18537 * configure.ac: Check for __mcoldfire__ and set
18538 gdb_cv_m68k_is_coldfire.
18539 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18540 reg-cf.o and reg-m68k.o.
18541 * configure: Regenerated.
18543 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18545 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18546 Pass it to thread_db_free.
18547 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18548 proper `detaching' argument to linux_remove_process.
18549 * linux-low.h (thread_db_free): Add `detaching' parameter.
18550 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18552 (thread_db_free): Add `detaching' parameter. Only
18553 call td_ta_clear_event if detaching from process.
18555 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18557 * thread-db.c (thread_db_free): Fix typo.
18559 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18562 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18564 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18566 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18567 with an i686 compiler.
18568 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18570 * configure: Rebuilt.
18572 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18576 * server.c (handle_search_memory_1): Correct read_addr initialization
18577 in loop for searching subsequent chunks.
18579 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18581 * configure.ac: New --with-libthread-db option.
18582 * thread-db.c: Allow direct dependence on libthread_db.
18583 (thread_db_free): Adjust.
18584 * config.in: Regenerate.
18585 * configure: Likewise.
18587 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18590 * thread-db.c (attach_thread): New function.
18591 (maybe_attach_thread): Return success/failure.
18592 (find_new_threads_callback): Adjust.
18593 (thread_db_find_new_threads): Loop until no new threads.
18595 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18597 * proc-service.c (ps_lgetregs): Formatting.
18599 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18601 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18602 * configure.ac: Adjust.
18603 * linux-low.h (struct process_info_private): Move members to struct
18605 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18606 * linux-low.c (linux_remove_process): Adjust.
18607 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18608 * server.c (handle_query): Move code ...
18609 (handle_monitor_command): ... here. New function.
18610 * target.h (struct target_ops): New member.
18611 * thread-db.c (struct thread_db): New.
18612 (libthread_db_search_path): New variable.
18613 (thread_db_create_event, thread_db_enable_reporting)
18614 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18615 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18616 (try_thread_db_load_1, dladdr_to_soname): New functions.
18617 (try_thread_db_load, thread_db_load_search): New functions.
18618 (thread_db_init): Search for libthread_db.
18619 (thread_db_free): New function.
18620 (thread_db_handle_monitor_command): Likewise.
18621 * config.in: Regenerate.
18622 * configure: Regenerate.
18624 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18626 * spu-low.c (spu_kill): Wait for inferior to terminate.
18627 Call clear_inferiors.
18628 (spu_detach): Call clear_inferiors.
18630 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18632 * aclocal.m4: Regenerate.
18633 * config.in: Likewise.
18634 * configure: Likewise.
18636 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18638 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18639 (parse_spufs_run): New function.
18640 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18641 (ppc_breakpoint_at): Handle SPU breakpoints.
18643 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18645 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18646 (SPUFS_MAGIC): Define.
18647 (spu_enumerate_spu_ids): New function.
18648 (linux_qxfer_spu): New function.
18649 (linux_target_ops): Install linux_qxfer_spu.
18651 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18653 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18654 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18655 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18656 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18657 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18658 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18659 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18660 (init_registers_powerpc_cell32l): Add prototype.
18661 (init_registers_powerpc_cell64l): Likewise.
18662 (ppc_arch_setup): Detect Cell/B.E. architecture.
18664 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18666 * Makefile.in (datarootdir): New variable.
18668 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18670 * linux-low.c (linux_write_memory): Update debugging output.
18671 * Makefile.in (clean): Add new descriptions.
18672 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18673 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18674 * configure.srv: Add new files for arm*-*-linux*.
18675 * linux-arm-low.c: Add new declarations.
18676 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18677 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18678 (HWCAP_VFPv3D16): New.
18679 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18680 instead of __IWMMXT__.
18681 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18682 (arm_arch_setup): New.
18683 (target_regsets): Remove #ifdef. Add VFP regset.
18684 (the_low_target): Use arm_arch_setup.
18686 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18688 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18689 the main thread again.
18691 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18693 Adding Neutrino gdbserver.
18694 * configure: Regenerated.
18695 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18696 * configure.srv (i[34567]86-*-nto*): New target.
18697 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18698 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18699 (nto_comctrl) [__QNX__]: New function.
18700 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18702 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18704 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18707 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18708 Pedro Alves <pedro@codesourcery.com>
18710 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18711 don't support CONTEXT_EXTENDED_REGISTERS.
18712 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18713 (the_low_target): Install them.
18714 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18715 failing with ERROR_PIPE_NOT_CONNECTED.
18717 2009-06-30 Doug Evans <dje@google.com>
18718 Pierre Muller <muller@ics.u-strasbg.fr>
18720 Add h/w watchpoint support to x86-linux, win32-i386.
18721 * Makefile.in (SFILES): Add i386-low.c
18722 (i386_low_h): Define.
18723 (i386-low.o): Add dependencies.
18724 (linux-x86-low.o): Add i386-low.h dependency.
18725 (win32-i386-low.o): Ditto.
18726 * i386-low.c: New file.
18727 * i386-low.h: New file.
18728 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18729 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18730 * linux-low.c (linux_add_process): Initialize arch_private.
18731 (linux_remove_process): Free arch_private.
18732 (add_lwp): Initialize arch_private.
18733 (delete_lwp): Free arch_private.
18734 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18736 * linux-low.h (process_info_private): New member arch_private.
18737 (lwp_info): New member arch_private.
18738 (linux_target_ops): New members new_process, new_thread,
18740 (ptid_of): New macro.
18741 * linux-x86-low.c: Include stddef.h, i386-low.h.
18742 (arch_process_info): New struct.
18743 (arch_lwp_info): New struct.
18744 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18745 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18746 (i386_dr_low_get_status): New function.
18747 (x86_insert_point, x86_remove_point): New functions.
18748 (x86_stopped_by_watchpoint): New function.
18749 (x86_stopped_data_address): New function.
18750 (x86_linux_new_process, x86_linux_new_thread): New functions.
18751 (x86_linux_prepare_to_resume): New function.
18752 (the_low_target): Add entries for insert_point, remove_point,
18753 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18755 * server.c (debug_hw_points): New global.
18756 (monitor_show_help): Document set debug-hw-points.
18757 (handle_query): Process "set debug-hw-points".
18758 * server.h (debug_hw_points): Declare.
18759 (paddress): Declare.
18760 * utils.c (NUMCELLS, CELLSIZE): New macros.
18761 (get_sell, xsnprintf, paddress): New functions.
18762 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18763 remove_point, stopped_by_watchpoint, stopped_data_address.
18764 * win32-i386-low.c: Include i386-low.h.
18765 (debug_reg_state): Replaces dr.
18766 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18767 (i386_dr_low_get_status): New function.
18768 (i386_insert_point, i386_remove_point): New functions.
18769 (i386_stopped_by_watchpoint): New function.
18770 (i386_stopped_data_address): New function.
18771 (i386_initial_stuff): Update.
18772 (get_thread_context,set_thread_context,i386_thread_added): Update.
18773 (the_low_target): Add entries for insert_point,
18774 remove_point, stopped_by_watchpoint, stopped_data_address.
18775 * win32-low.c (win32_insert_watchpoint): New function.
18776 (win32_remove_watchpoint): New function.
18777 (win32_stopped_by_watchpoint): New function.
18778 (win32_stopped_data_address): New function.
18779 (win32_target_ops): Add entries for insert_watchpoint,
18780 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18781 * win32-low.h (win32_target_ops): New members insert_point,
18782 remove_point, stopped_by_watchpoint, stopped_data_address.
18784 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18786 * server.c (process_serial_event): Re-return unsupported, not
18787 error, if the type isn't recognized. Re-allow supporting only
18788 insert or remove packets. Also call require_running for
18789 breakpoints. Add missing break statement to default case. Tidy.
18790 * target.h (struct target_ops): Rename insert_watchpoint to
18791 insert_point, and remove_watchpoint to remove_point.
18793 * linux-low.h (struct linux_target_ops): Likewise.
18794 * linux-low.c (linux_insert_watchpoint): Rename to ...
18795 (linux_insert_point): ... this. Adjust.
18796 (linux_remove_watchpoint): Rename to ...
18797 (linux_remove_point): ... this. Adjust.
18798 (linux_target_ops): Adjust.
18799 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18800 (cris_insert_point): ... this.
18801 (cris_remove_watchpoint): Rename to ...
18802 (cris_remove_point): ... this.
18803 (the_low_target): Adjust.
18805 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18807 * server.c (handle_v_kill): Pass signal_pid to
18808 kill_inferior if multi_process is zero.
18810 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18812 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18813 * target.h (target_ops): Comment for *_watchpoint to make it clear
18814 the functions can get types '0' and '1'.
18816 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18818 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18819 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18820 * regcache.c (get_regcache): Likewise.
18821 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18822 * win32-low.c (child_fetch_inferior_registers): Remove check for
18825 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18826 Pedro Alves <pedro@codesourcery.com>
18828 * target.h (struct target_ops) <supports_multi_process>: New
18830 (target_supports_multi_process): New.
18831 * server.c (handle_query): Even if GDB reports support, only
18832 enable multi-process if the target also supports it. Report
18833 multi-process support only if the target backend supports it.
18834 * linux-low.c (linux_supports_multi_process): New function.
18835 (linux_target_ops): Install it as target_supports_multi_process
18838 2009-05-24 Doug Evans <dje@google.com>
18840 Global renaming of find_thread_pid to find_thread_ptid.
18841 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18842 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18843 All callers updated.
18845 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18846 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18849 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18850 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18851 (linux_resume_one_lwp): Ditto.
18853 2009-05-23 Doug Evans <dje@google.com>
18855 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18856 from struct inferior_list_entry * to struct lwp_info *.
18857 All callers updated.
18859 2009-05-13 Doug Evans <dje@google.com>
18861 * linux-x86-low.c: Don't include assert.h.
18862 (x86_siginfo_fixup): Use fatal, not assert.
18863 (x86_arch_setup): Fix comment.
18865 2009-05-12 Doug Evans <dje@google.com>
18867 Biarch support for i386/amd64 gdbserver.
18868 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18869 Add linux-x86-low.c.
18870 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18871 (linux-x86-low.o): Add.
18872 * linux-x86-64-low.c: Delete.
18873 * linux-i386-low.c: Delete.
18874 * linux-x86-low.c: New file.
18875 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18877 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18879 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18880 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18881 (linux_child_pid_to_exec_file): New function.
18882 (elf_64_header_p, elf_64_file_p): New functions.
18883 (siginfo_fixup): New function.
18884 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18885 give target a chance to convert layout.
18886 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18887 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18889 2009-05-07 Doug Evans <dje@google.com>
18891 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18892 (regsets_store_inferior_registers): Ditto.
18894 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18898 * linux-low.c (must_set_ptrace_flags): Delete.
18899 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18901 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18902 `lwp->must_set_ptrace_flags' instead.
18903 (linux_wait_for_event_1): Set ptrace options here.
18904 (linux_wait_1): ... not here.
18906 2009-04-30 Doug Evans <dje@google.com>
18908 * inferiors.c (started_inferior_callback): New function.
18909 (attached_inferior_callback): New function.
18910 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18911 * server.c (print_started_pid, print_attached_pid): New functions.
18912 (detach_or_kill_for_exit): New function.
18913 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18914 * server.h (have_started_inferiors_p): Declare.
18915 (have_attached_inferiors_p): Declare.
18917 * inferiors.c (remove_process): Fix memory leak, free process.
18918 * linux-low.c (linux_remove_process): New function.
18919 (linux_kill): Call it instead of remove_process.
18920 (linux_detach, linux_wait_1): Ditto.
18922 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18924 * configure.srv: Add x86 Windows CE target.
18926 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18928 * inferiors.c (get_thread_process): Make global.
18929 * server.h (get_thread_process): Add prototype.
18930 * thread-db.c (find_one_thread): Use get_thread_process
18931 instead of current_process.
18932 (thread_db_get_tls_address): Do not crash if called when
18933 thread layer is not yet initialized.
18935 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18937 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18938 * spu-low.c (current_tid): Rename to ...
18939 (current_ptid): ... this.
18940 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18941 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18942 ptid_get_lwp (current_ptid) instead of current_tid.
18943 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18944 instead of current_tid. Use find_process_pid to verify pid
18945 argument is valid. Pass proper argument to remove_process.
18946 (spu_thread_alive): Compare current_ptid instead of current_tid.
18947 (spu_resume): Likewise.
18949 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18951 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18954 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18956 Implement the multiprocess extensions, and add linux multiprocess
18959 * server.h (ULONGEST): Declare.
18960 (struct ptid, ptid_t): New.
18961 (minus_one_ptid, null_ptid): Declare.
18962 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18963 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18964 (struct inferior_list_entry): Change `id' type from unsigned from
18966 (struct sym_cache, struct breakpoint, struct
18967 process_info_private): Forward declare.
18968 (struct process_info): Declare.
18969 (current_process): Declare.
18970 (all_processes): Declare.
18971 (initialize_inferiors): Declare.
18972 (add_thread): Adjust to use ptid_t.
18973 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18974 (add_process, remove_process, find_thread_pid): Declare.
18975 (find_inferior_id): Adjust to use ptid_t.
18976 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18977 (multi_process): Declare.
18978 (push_event): Adjust to use ptid_t.
18979 (read_ptid, write_ptid): Declare.
18980 (prepare_resume_reply): Adjust to use ptid_t.
18981 (clear_symbol_cache): Declare.
18982 * inferiors.c (all_processes): New.
18983 (null_ptid, minus_one_ptid): New.
18984 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18985 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
18986 (add_thread): Change unsigned long to ptid. Remove gdb_id
18988 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
18989 (gdb_id_to_thread): Rename to ...
18990 (find_thread_pid): ... this. Change unsigned long to ptid.
18991 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
18992 (loaded_dll, pull_pid_from_list): Adjust.
18993 (add_process, remove_process, find_process_pid)
18994 (get_thread_process, current_process, initialize_inferiors): New.
18995 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
18996 (struct target_waitstatus) <related_pid>: Ditto.
18997 (struct target_ops) <kill, detach>: Add `pid' argument. Change
18998 return type to int.
18999 (struct target_ops) <join>: Add `pid' argument.
19000 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19001 (struct target_ops) <wait>: Add `ptid' field. Change return type
19003 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19004 (mywait): Add `ptid' argument. Change return type to ptid_t.
19005 (target_pid_to_str): Declare.
19006 * target.c (set_desired_inferior): Adjust to use ptids.
19007 (mywait): Add new `ptid' argument. Adjust.
19008 (target_pid_to_str): New.
19009 * mem-break.h (free_all_breakpoints): Declare.
19010 * mem-break.c (breakpoints): Delelete.
19011 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19012 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19013 to use per-process breakpoint list.
19014 (free_all_breakpoints): New.
19015 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19016 (symbol_cache, all_symbols_looked_up): Delete.
19018 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19020 (prepare_resume_reply): Change ptid argument's type from unsigned
19021 long to ptid_t. Adjust. Implement W;process and X;process.
19022 (free_sym_cache, clear_symbol_cache): New.
19023 (look_up_one_symbol): Adjust to per-process symbol cache. *
19024 * server.c (cont_thread, general_thread, step_thread): Change type
19026 (attached): Delete.
19027 (multi_process): New.
19028 (last_ptid): Change type to ptid_t.
19029 (struct vstop_notif) <ptid>: Change type to ptid_t.
19030 (queue_stop_reply, push_event): Change `ptid' argument's type to
19032 (discard_queued_stop_replies): Add `pid' argument.
19033 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19034 changes. Don't reference the `attached' global.
19035 (attach_inferior): Adjust to mywait interface changes.
19036 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19037 features. Handle and report "multiprocess+". Handle
19039 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19041 (handle_v_kill): New.
19042 (handle_v_stopped): Adjust to use target_pid_to_str.
19043 (handle_v_requests): Allow multiple attaches and runs when
19044 multiprocess extensions are in effect. Handle "vKill".
19045 (myresume): Adjust to use ptids.
19046 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19047 (handle_status): Adjust to discard_queued_stop_replies interface
19049 (first_thread_of, kill_inferior_callback)
19050 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19051 (main): Call initialize_inferiors. Adjust to use ptids, killing
19052 and detaching from all inferiors. Handle multiprocess packet
19054 * linux-low.h: Include gdb_proc_service.h.
19055 (struct process_info_private): New.
19056 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19057 <lwpid_of>: Use ptid_get_lwp.
19058 (get_lwp_thread): Adjust.
19059 (struct lwp_info): Add `dead' member.
19060 (find_lwp_pid): Declare.
19061 * linux-low.c (thread_db_active): Delete.
19062 (new_inferior): Adjust comment.
19063 (inferior_pid): Delete.
19064 (linux_add_process): New.
19065 (handle_extended_wait): Adjust.
19066 (add_lwp): Change unsigned long to ptid.
19067 (linux_create_inferior): Add process to processes table. Adjust
19068 to use ptids. Don't set new_inferior here.
19069 (linux_attach_lwp): Rename to ...
19070 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19071 it. Adjust to use ptids.
19072 (linux_attach_lwp): New.
19073 (linux_attach): Add process to processes table. Don't set
19075 (struct counter): New.
19076 (second_thread_of_pid_p, last_thread_of_process_p): New.
19077 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19078 multiple processes.
19079 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19080 processes. Remove process from process table.
19081 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19082 to multiple processes.
19083 (any_thread_of): New.
19084 (linux_detach): Add `pid' argument, and handle it. Remove process
19085 from processes table.
19086 (linux_join): Add `pid' argument. Handle it.
19087 (linux_thread_alive): Change unsighed long argument to ptid_t.
19088 Consider dead lwps as not being alive.
19089 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19090 threads we're not interested in.
19091 (same_lwp, find_lwp_pid): New.
19092 (linux_wait_for_lwp): Change `pid' argument's type from int to
19094 (linux_wait_for_event): Rename to ...
19095 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19096 from int to ptid_t. Adjust.
19097 (linux_wait_for_event): New.
19098 (linux_wait_1): Add `ptid' argument. Change return type to
19099 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19100 that exit from the process table.
19101 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19103 (mark_lwp_dead): New.
19104 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19105 stopping all threads, mark its main lwp as dead.
19106 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19108 (fetch_register, usr_store_inferior_registers)
19109 (regsets_fetch_inferior_registers)
19110 (regsets_store_inferior_registers, linux_read_memory)
19111 (linux_write_memory): Inline `inferior_pid'.
19112 (linux_look_up_symbols): Adjust to use per-process
19113 `thread_db_active'.
19114 (linux_request_interrupt): Adjust to use ptids.
19115 (linux_read_auxv): Inline `inferior_pid'.
19116 (initialize_low): Don't reference thread_db_active.
19117 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19118 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19119 (ps_getpid): Return the pid of the current inferior.
19120 * thread-db.c (proc_handle, thread_agent): Delete.
19121 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19123 (find_one_thread): Change argument type to ptid_t. Adjust to
19125 (maybe_attach_thread): Adjust to per-process data and ptids.
19126 (thread_db_find_new_threads): Ditto.
19127 (thread_db_init): Ditto.
19128 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19129 processes table. Adjust to use ptids.
19130 (spu_kill, spu_detach): Adjust interface. Remove process from
19132 (spu_join, spu_thread_alive): Adjust interface.
19133 (spu_wait): Adjust interface. Remove process from processes
19134 table. Adjust to use ptids.
19135 * win32-low.c (current_inferior_tid): Delete.
19136 (current_inferior_ptid): New.
19137 (debug_event_ptid): New.
19138 (thread_rec): Take a ptid. Adjust.
19139 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19140 (child_delete_thread): Ditto.
19141 (do_initial_child_stuff): Add `attached' argument. Add process to
19143 (child_fetch_inferior_registers, child_store_inferior_registers):
19145 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19146 (win32_attach): Pass 1 to do_initial_child_stuff.
19147 (win32_kill): Adjust interface. Remove process from processes
19149 (win32_detach): Ditto.
19150 (win32_join): Adjust interface.
19151 (win32_thread_alive): Take a ptid.
19152 (win32_resume): Adjust to use ptids.
19153 (get_child_debug_event): Ditto.
19154 (win32_wait): Adjust interface. Remove exiting process from
19157 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19159 Non-stop mode support.
19161 * server.h (non_stop): Declare.
19162 (gdb_client_data, handler_func): Declare.
19163 (delete_file_handler, add_file_handler, start_event_loop):
19165 (handle_serial_event, handle_target_event, push_event)
19166 (putpkt_notif): Declare.
19167 * target.h (enum resume_kind): New.
19168 (struct thread_resume): Replace `step' field by `kind' field.
19169 (TARGET_WNOHANG): Define.
19170 (struct target_ops) <wait>: Add `options' argument.
19171 <supports_non_stop, async, start_non_stop>: New fields.
19172 (target_supports_non_stop, target_async): New.
19173 (start_non_stop): Declare.
19174 (mywait): Add `options' argument.
19175 * target.c (mywait): Add `options' argument. Print child exit
19176 notifications here.
19177 (start_non_stop): New.
19178 * server.c (non_stop, own_buf, mem_buf): New globals.
19179 (struct vstop_notif): New.
19180 (notif_queue): New global.
19181 (queue_stop_reply, push_event, discard_queued_stop_replies)
19182 (send_next_stop_reply): New.
19183 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19185 (attach_inferior): In non-stop mode, don't wait for the target
19187 (handle_general_set): Handle QNonStop.
19188 (handle_query): When handling qC, return the current general
19189 thread, instead of the first thread of the list.
19190 (handle_query): If the backend supports non-stop mode, include
19191 QNonStop+ in the qSupported query response.
19192 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19194 (handle_v_attach, handle_v_run): Handle non-stop mode.
19195 (handle_v_stopped): New.
19196 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19197 (myresume): Adjust to use resume_kind. Handle non-stop.
19198 (queue_stop_reply_callback): New.
19199 (handle_status): Handle non-stop mode.
19200 (main): Clear non_stop flag on reconnection. Use the event-loop.
19201 Refactor serial protocol handling from here ...
19202 (process_serial_event): ... to this new function. When GDB
19203 selects any thread, select one here. In non-stop mode, wait until
19204 GDB acks all pending events before exiting.
19205 (handle_serial_event, handle_target_event): New.
19206 * remote-utils.c (remote_open): Install remote_desc in the event
19208 (remote_close): Remove remote_desc from the event loop.
19209 (putpkt_binary): Rename to...
19210 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19211 (putpkt_binary): New as wrapper around putpkt_binary_1.
19212 (putpkt_notif): New.
19213 (prepare_resume_reply): In non-stop mode, don't change the
19215 * event-loop.c: New.
19216 * Makefile.in (OBJ): Add event-loop.o.
19217 (event-loop.o): New rule.
19219 * linux-low.h (pid_of): Moved here.
19221 (get_lwp_thread): Use lwpid_of.
19222 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19223 * linux-low.c (pid_of): Delete.
19224 (inferior_pid): Use lwpid_of.
19225 (linux_event_pipe): New.
19226 (target_is_async_p): New.
19228 (handle_extended_wait): Use lwpid_of.
19229 (add_lwp): Don't set lwpid field.
19230 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19231 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19232 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19233 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19234 first. Adjust to linux_wait_for_event interface changes. Use
19236 (linux_detach): Don't delete the main lwp here.
19237 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19238 (status_pending_p): Don't consider explicitly suspended lwps.
19239 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19240 pointer. Add OPTIONS argument. Change return type to int. Use
19241 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19242 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19243 pointer. Add status pointer argument. Return a pid instead of a
19244 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19245 changes. In non-stop mode, don't switch to a random thread.
19246 (linux_wait): Rename to...
19247 (linux_wait_1): ... this. Add target_options argument, and handle
19248 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19249 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19250 clean exit and signal exit code. Don't stop all threads in
19251 non-stop mode. In all-stop mode, only stop all threads when
19252 reporting a stop to GDB. Handle explicit thread stop requests.
19253 (async_file_flush, async_file_mark): New.
19255 (send_sigstop): Use lwpid_of.
19256 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19257 interface changes. In non-stop mode, don't switch to a random
19259 (linux_resume_one_lwp): Use lwpid_of.
19260 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19261 (linux_resume_one_thread): ... this. Handle resume_stop. In
19262 non-stop mode, don't look for pending flag in all threads.
19263 (resume_status_pending_p): Don't consider explicitly suspended
19265 (my_waitpid): Reimplement. Emulate __WALL.
19266 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19268 (sigchld_handler, linux_supports_non_stop, linux_async)
19269 (linux_start_non_stop): New.
19270 (linux_target_ops): Register linux_supports_non_stop, linux_async
19271 and linux_start_non_stop.
19272 (initialize_low): Install SIGCHLD handler.
19273 * thread-db.c (thread_db_create_event, find_one_thread)
19274 (thread_db_get_tls_address): Use lwpid_of.
19275 * win32-low.c (win32_detach): Adjust to use resume_kind.
19276 (win32_wait): Add `options' argument.
19277 * spu-low.c (spu_resume): Adjust to use resume_kind.
19278 (spu_wait): Add `options' argument.
19280 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19282 Decouple target code from remote protocol.
19284 * target.h (enum target_waitkind): New.
19285 (struct target_waitstatus): New.
19286 (struct target_ops) <wait>: Return an unsigned long. Take a
19287 target_waitstatus pointer instead of a char pointer.
19288 (mywait): Likewise.
19289 * target.c (mywait): Change prototype to return an unsigned long.
19290 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19291 * server.h (thread_from_wait, old_thread_from_wait): Delete
19293 (prepare_resume_reply): Change prototype to take a
19295 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19296 (last_status, last_ptid): New.
19297 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19298 pid instead of a signal.
19299 (attach_inferior): Remove "status" and "signal" parameters.
19301 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19303 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19304 (handle_v_requests, myresume): Remove "status" and "signal"
19305 parameters. Adjust.
19306 (handle_status): New.
19307 (main): Delete local `status'. Adjust.
19308 * remote-utils.c: Include target.h.
19309 (prepare_resume_reply): Change prototype to take a
19310 target_waitstatus. Adjust.
19312 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19314 * spu-low.c (spu_wait): Adjust.
19315 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19317 (win32_wait): Adjust.
19319 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19321 * target.h (struct thread_resume): Delete leave_stopped member.
19322 (struct target_ops): Add a `n' argument to the `resume' callback.
19323 * server.c (start_inferior): Adjust.
19324 (handle_v_cont, myresume): Adjust.
19325 * linux-low.c (check_removed_breakpoint): Adjust to resume
19326 interface change, and to removed leave_stopped field.
19327 (resume_ptr): Delete.
19328 (struct thread_resume_array): New.
19329 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19330 resume interface change.
19331 (linux_continue_one_thread, linux_queue_one_thread)
19332 (resume_status_pending_p): Check if the resume field is NULL
19333 instead of checking the leave_stopped member.
19334 (linux_resume): Adjust to the target resume interface change.
19335 * spu-low.c (spu_resume): Adjust to the target resume interface
19337 * win32-low.c (win32_detach, win32_resume): Ditto.
19339 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19341 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19343 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19345 (linux_continue_one_thread): Only preserve the stepping flag if
19346 there's a pending breakpoint.
19348 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19350 * server.c (main): After the inferior having exited, call
19351 remote_close before exiting gdbserver.
19353 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19355 Fix size of FPSCR in Power 7 processors.
19356 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19357 (PPC_FEATURE_HAS_DFP): New #define.
19358 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19361 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19363 * server.c (handle_query) Whitespace and formatting.
19365 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19367 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19368 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19369 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19370 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19371 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19372 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19373 Makefile.in, configure.ac: Fix whitespace throughout.
19374 * configure: Regenerate.
19376 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19378 * inferiors.c (find_inferior): Make it safe for the callback
19379 function to delete the currently iterated inferior.
19381 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19383 * Makefile.in (linuw_low_h): Move higher.
19384 (thread-db.o): Depend on $(linux_low_h).
19386 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19388 Rename "process" to "lwp" throughout.
19390 * linux-low.c (all_processes): Rename to...
19391 (all_lwps): ... this.
19392 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19393 (add_process): Rename to ...
19394 (add_lwp): ... this. Adjust.
19395 (linux_create_inferior): Adjust.
19396 (linux_attach_lwp): Adjust.
19397 (linux_attach): Adjust.
19398 (linux_kill_one_process): Rename to ...
19399 (linux_kill_one_lwp): ... this. Adjust.
19400 (linux_kill): Adjust.
19401 (linux_detach_one_process): Rename to ...
19402 (linux_detach_one_lwp): ... this. Adjust.
19403 (linux_detach): Adjust.
19404 (check_removed_breakpoint): Adjust.
19405 (status_pending_p): Adjust.
19406 (linux_wait_for_process): Rename to ...
19407 (linux_wait_for_lwp): ... this. Adjust.
19408 (linux_wait_for_event): Adjust.
19409 (send_sigstop): Adjust.
19410 (wait_for_sigstop): Adjust.
19411 (stop_all_processes): Rename to ...
19412 (stop_all_lwps): ... this.
19413 (linux_resume_one_process): Rename to ...
19414 (linux_resume_one_lwp): ... this. Adjust.
19415 (linux_set_resume_request, linux_continue_one_thread)
19416 (linux_queue_one_thread, resume_status_pending_p)
19417 (usr_store_inferior_registers, regsets_store_inferior_registers)
19418 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19420 * linux-low.h (get_process): Rename to ...
19421 (get_lwp): ... this. Adjust.
19422 (get_thread_process): Rename to ...
19423 (get_thread_lwp): ... this. Adjust.
19424 (get_process_thread): Rename to ...
19425 (get_lwp_thread): ... this. Adjust.
19426 (struct process_info): Rename to ...
19427 (struct lwp_info): ... this.
19428 (all_processes): Rename to ...
19429 (all_lwps): ... this.
19430 * proc-service.c (ps_lgetregs): Adjust.
19431 * thread-db.c (thread_db_create_event, find_one_thread)
19432 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19434 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19436 * server.c (handle_query): Handle "qAttached".
19438 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19440 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19441 GPLv3, update license URL.
19443 2009-03-01 Doug Evans <dje@google.com>
19445 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19446 (server_h): Add gdb_signals.h.
19447 (signals.o): Update.
19448 * server.h (target_signal_from_host,target_signal_to_host_p)
19449 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19451 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19453 * remote-utils.c (getpkt): Also generate remote-debug
19454 information if noack_mode is set.
19456 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19458 * server.c (handle_query): Report qXfer:siginfo:read and
19459 qXfer:siginfo:write as supported and handle them.
19460 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19461 * linux-low.c (linux_xfer_siginfo): New.
19462 (linux_target_ops): Set it.
19464 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19466 * server.c (gdbserver_usage): Mention --remote-debug.
19467 (main): Accept '--remote-debug' switch.
19469 2009-01-18 Doug Evans <dje@google.com>
19471 * regcache.c (new_register_cache): No need to check result of xcalloc.
19472 * server.c (handle_search_memory): Back out calls to xmalloc,
19473 result is checked and error is returned to user upon failure.
19474 (handle_query): Ditto. Add more checks for result of malloc.
19475 (handle_v_cont): Check result of malloc, report error back to
19477 (handle_v_run): Ditto. Call freeargv.
19478 * server.h (freeargv): Declare.
19479 * utils.c (freeargv): New fn.
19481 2009-01-15 Doug Evans <dje@google.com>
19483 * gdbreplay.c (perror_with_name): Make arg const char *.
19484 * server.h (target_signal_to_name): Make return type const char *.
19485 * thread-db.c (thread_db_err_str): Make return type const char *.
19486 * utils.c (perror_with_name): Make arg const char *.
19488 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19490 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19491 when handling a EXIT_PROCESS_DEBUG_EVENT.
19493 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19495 * gdbreplay.c (gdbreplay_version): Update copyright year.
19496 * server.c (gdbserver_version): Likewise.
19498 2009-01-05 Doug Evans <dje@google.com>
19500 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19501 (handle_extended_wait): Improve comment.
19503 2008-12-13 Doug Evans <dje@google.com>
19505 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19506 * server.h (ATTR_MALLOC): New macro.
19507 (xmalloc,xcalloc,xstrdup): Declare.
19508 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19509 * inferiors.c: Ditto.
19510 * linux-low.c: Ditto.
19511 * mem-break.c: Ditto.
19512 * regcache.c: Ditto.
19513 * remote-utils.c: Ditto.
19516 * win32-low.c: Ditto.
19518 2008-12-12 Doug Evans <dje@google.com>
19520 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19521 in debugging printf.
19523 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19525 2008-12-09 Doug Evans <dje@google.com>
19527 * linux-low.h (struct process_info): Delete member tid, unused.
19528 * thread-db.c (find_one_thread): Update.
19529 (maybe_attach_thread): Update.
19531 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19533 * target.h (struct target_ops): Add qxfer_osdata member.
19534 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19536 (linux_qxfer_osdata): New functions.
19537 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19539 * server.c (handle_query): Handle "qXfer:osdata:read:".
19540 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19541 (buffer_xml_printf): New functions.
19542 * server.h (struct buffer): New.
19543 (buffer_grow_str, buffer_grow_str0): New macros.
19544 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19545 (buffer_xml_printf): Declare.
19547 2008-11-24 Doug Evans <dje@google.com>
19549 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19551 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19553 * server.c (handle_v_run): Always use the supplied argument list.
19555 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19557 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19558 (xtensa_regmap_table): Add entry for scompare1.
19560 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19562 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19563 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19564 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19565 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19566 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19567 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19568 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19569 XML target descriptions.
19570 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19571 when inferior is running on an ISA 2.05 or later processor. Add
19572 special case to return offset for full 64-bit slot of FPSCR when
19575 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19577 * Makefile.in (SFILES, clean): Added sparc64 files.
19578 (reg-sparc64.o, reg-sparc64.c): New.
19579 * configure.srv (sparc*-*-linux*): New configuration.
19580 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19581 syscall arguments for SPARC.
19582 (regsets_store_inferior_registers): Likewise.
19583 * linux-sparc-low.c: New file.
19585 2008-10-21 Doug Evans <dje@google.com>
19587 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19588 (READLINE_DIR,READLINE_DEP): Delete.
19589 (INTERNAL_CFLAGS): Update.
19590 (LINTFLAGS): Update.
19592 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19594 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19595 whole argv from the last run, not just argv[0].
19597 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19599 * regcache.c (new_register_cache): Return NULL if the register
19600 cache size isn't known yet.
19601 (free_register_cache): Avoid dereferencing a NULL regcache.
19603 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19605 * configure.srv: Merge MIPS and MIPS64.
19607 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19609 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19611 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19613 * Makefile.in: Add required vsx dependencies.
19615 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19616 Declare init_registers_powerpc_vsx32l.
19617 Declare init_registers_powerpc_vsx64l.
19618 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19619 (ppc_arch_setup): Check for VSX in hwcap.
19620 (ppc_fill_vsxregset): New function.
19621 (ppc_store_vsxregset): New function.
19622 Add new VSX entry in regset_info target_regsets.
19624 * configure.srv: Add new VSX dependencies.
19626 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19628 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19629 (remote_open): Set or clear transport_is_reliable.
19630 (putpkt_binary): Don't expect acks in noack mode.
19631 (getpkt): Don't send ack/nac in noack mode.
19632 * server.c (handle_general_set): Handle QStartNoAckMode.
19633 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19635 (main): Reset noack_mode on every connection.
19636 * server.h (noack_mode): Declare.
19638 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19640 * Makefile.in (GDBREPLAY_OBS): New variable.
19641 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19643 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19644 Daniel Jacobowitz <dan@codesourcery.com>
19646 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19647 (usr_store_inferior_registers): Likewise.
19648 (regsets_store_inferior_registers): Likewise.
19650 2008-07-31 Rolf Jansen <rj@surtec.com>
19651 Pedro Alves <pedro@codesourcery.com>
19653 * configure.ac: Check for memmem declaration.
19654 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19655 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19656 (disable_packet_qfThreadInfo): Unconditionally compile.
19657 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19658 * configure, config.in: Regenerate.
19660 2008-07-28 Doug Kwan <dougkwan@google.com>
19662 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19663 (linux_write_memory): Remove declaration of errno.
19665 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19667 * linux-low.c (handle_extended_wait): Do not use "status"
19668 variable uninitialized.
19670 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19672 * server.c (handle_v_attach): Inhibit reporting dll changes.
19674 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19676 * remote-utils.c (prepare_resume_reply): If requested, don't
19677 output "thread:TID" in the T stop reply.
19679 * server.c (disable_packet_vCont, disable_packet_Tthread)
19680 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19681 (handle_query): If requested, disable support for qC, qfThreadInfo
19683 (handle_v_requests): If requested, disable support for vCont.
19684 (gdbserver_show_disableable): New.
19685 (main): Handle --disable-packet and --disable-packet=LIST.
19687 * server.h (disable_packet_vCont, disable_packet_Tthread)
19688 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19690 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19692 * server.c (gdbserver_usage): Mention --version.
19694 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19696 * Makefile.in (gdbreplay.o): New rule.
19698 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19700 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19701 message, not gdbserver.
19703 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19704 Nathan Sidwell <nathan@codesourcery.com>
19705 Joseph Myers <joseph@codesourcery.com>
19707 * acinclude.m4: Include ../../config/acx.m4.
19708 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19709 * configure, config.in: Regenerate.
19710 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19711 * server.c (gdbserver_version): Print PKGVERSION.
19712 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19713 (main): Adjust gdbserver_usage calls.
19714 * gdbreplay.c (version, host_name): Add declarations.
19715 (gdbreplay_version, gdbreplay_usage): New.
19716 (main): Accept --version and --help options.
19718 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19720 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19721 (arm_breakpoint_at): Handle Thumb.
19722 (the_low_target): Add comment.
19724 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19726 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19728 2008-05-09 Doug Evans <dje@google.com>
19730 * server.h (decode_search_memory_packet): Declare.
19731 * remote-utils.c (decode_search_memory_packet): New fn.
19732 * server.c (handle_search_memory_1): New fn.
19733 (handle_search_memory): New fn.
19734 (handle_query): Process qSearch:memory packets.
19736 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19738 * regcache.c (registers_length): Remove.
19739 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19740 full register packet.
19741 * regcache.h (registers_length): Remove prototype.
19742 * server.h (PBUFSIZ): Define to 16384.
19744 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19746 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19747 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19748 powerpc-64l.o, and powerpc-altivec64l.o.
19749 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19750 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19751 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19752 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19753 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19756 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19757 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19758 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19759 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19760 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19761 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19762 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19763 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19764 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19765 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19768 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19769 (init_registers_powerpc_32l): ... this new prototype.
19770 (init_registers_powerpc_32): Remove, replace by ...
19771 (init_registers_powerpc_altivec32l): ... this new prototype.
19772 (init_registers_powerpc_e500): Remove, replace by ...
19773 (init_registers_powerpc_e500l): ... this new prototype.
19774 (init_registers_ppc64): Remove, replace by ...
19775 (init_registers_powerpc_64l): ... this new prototype.
19776 (init_registers_powerpc_64): Remove, replace by ...
19777 (init_registers_powerpc_altivec64l): ... this new prototype.
19778 (ppc_num_regs): Set to 73.
19779 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19780 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19781 (ppc_cannot_store_register): Handle orig_r3 and trap.
19782 (ppc_arch_setup): Update init_registers_... calls.
19783 (ppc_fill_gregset): Handle orig_r3 and trap.
19785 * inferiors.c (clear_inferiors): Reset current_inferior.
19787 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19789 * acinclude.m4: Add override.m4.
19790 * configure: Regenerate.
19792 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19794 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19795 initial call to init_register_ppc64.
19797 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19799 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19800 single powerpc*-*-linux* case.
19801 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19803 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19805 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19806 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19808 * linux-ppc-low.c: Include <elf.h>.
19809 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19810 (ppc_hwcap): New global variable.
19811 (ppc_regmap): Remove __SPE__ #ifdef sections.
19812 (ppc_regmap_e500): New global variable.
19813 (ppc_cannot_store_register): Update __SPE__ special case.
19814 (ppc_get_hwcap): New function.
19815 (ppc_arch_setup): Use it to determine whether inferior supports
19816 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19817 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19818 Do not access registers if target does not support AltiVec.
19819 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19820 Do not access registers if target does not support SPE.
19821 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19823 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19825 * linux-low.c (disabled_regsets, num_regsets): New.
19826 (use_regsets_p): Delete.
19827 (linux_wait_for_process): Clear disabled_regsets.
19828 (regsets_fetch_inferior_registers): Check and set it.
19829 (regsets_store_inferior_registers): Likewise.
19830 (linux_fetch_registers, linux_store_registers): Do not use
19832 (initialize_low): Allocate disabled_regsets.
19834 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19836 * Makefile.in (LIBOBJS): New.
19837 (OBS): Use LIBOBJS.
19838 (memmem.o): New rule.
19839 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19840 * configure: Regenerated.
19842 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19844 * server.c (handle_query): Never return "unsupported" for
19845 qXfer:features:read queries.
19847 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19849 * server.c (get_features_xml): Fix inverted condition.
19850 (handle_query): Always support qXfer:feature:read.
19852 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19854 * server.c (wrapper_argv): New.
19855 (start_inferior): Handle wrapper_argv. If set, expect an extra
19857 (gdbserver_usage): Document --wrapper.
19858 (main): Parse --wrapper.
19860 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19862 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19863 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19864 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19865 (ppc_set_pc): Likewise.
19866 (ppc_arch_setup): New function.
19867 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19868 of collect_register.
19869 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19871 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19873 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19874 instead of linux-ppc64-low.o.
19875 * linux-ppc64-low.c: Remove file.
19876 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19877 (linux-ppc64-low.o): Remove rule.
19879 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19880 (init_registers_powerpc_64): Likewise.
19881 (ppc_regmap): Conditionally define depending on __powerpc64__.
19882 (ppc_cannot_store_register): Do not special-case "fpscr" when
19883 compiled on __powerpc64__.
19884 (ppc_collect_ptrace_register): New function.
19885 (ppc_supply_ptrace_register): New function.
19886 (ppc_breakpoint): Change type to "unsigned int".
19887 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19888 (the_low_target): Conditionally provide initializers for the
19889 arch_setup member depending on __powerpc64__. Install
19890 collect_ptrace_register and supply_ptrace_register members.
19892 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19894 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19895 * server.c (gdbserver_xmltarget): Define.
19896 (get_features_xml): Use it to replace "target.xml" and arch_string.
19898 * configure.srv: Remove srv_xmltarget. Add XML files that were
19899 mentioned there to srv_xmlfiles instead. Remove conditional tests
19900 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19901 srv_xmlfiles and srv_regobj to include all possible choices.
19902 * configure.ac (srv_xmltarget): Remove.
19903 (srv_xmlfiles): Do not add "target.xml".
19904 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19905 checks for supplementary target information.
19906 * configure: Regenerate.
19907 * Makefile.in (XML_TARGET): Remove.
19908 (target.xml): Remove rule.
19909 (clean): Do not clean up target.xml.
19910 (.PRECIOUS): Do not mention target.xml.
19912 * target.h (struct target_ops): Remove arch_string member.
19913 * linux-low.c (linux_arch_string): Remove.
19914 (linux_target_ops): Remove arch_string initializer.
19915 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19916 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19917 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19918 * spu-low.c (spu_arch_string): Remove.
19919 (spu_target_ops): Remove arch_string initializer.
19920 * win32-low.c (win32_arch_string): Remove.
19921 (win32_target_ops): Remove arch_string initializer.
19922 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19923 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19924 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19926 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19928 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19929 by collect_ptrace_register and supply_ptrace_register hooks.
19930 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19931 instead of checking for the_low_target.left_pad_xfer.
19932 (usr_store_inferior_registers): Use collect_ptrace_register callback
19933 instead of checking for the_low_target.left_pad_xfer.
19935 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19936 (s390_supply_ptrace_register): Likewise.
19937 (s390_fill_gregset): Call s390_collect_ptrace_register.
19938 (the_low_target): Update.
19940 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19941 (ppc_supply_ptrace_register): Likewise.
19942 (the_low_target): Update.
19944 * linux-i386-low.c (the_low_target): Update.
19945 * linux-x86-64-low.c (the_low_target): Update.
19947 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19949 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19950 reg-s390.o and reg-s390x.o.
19952 * linux-low.c (new_inferior): New global variable.
19953 (linux_create_inferior, linux_attach): Set it.
19954 (linux_wait_for_process): Call the_low_target.arch_setup after the
19955 target has stopped for the first time.
19956 (initialize_low): Do not call the_low_target.arch_setup.
19958 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19959 (s390_set_pc): Likewise.
19960 (s390_arch_setup): New function.
19961 (the_low_target): Use s390_arch_setup as arch_setup routine.
19963 * regcache.c (realloc_register_cache): New function.
19964 (set_register_cache): Call it for each existing regcache.
19966 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19968 * server.h (init_registers): Remove prototype.
19970 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19971 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19972 instead of init_registers ().
19973 * linux-arm-low.c (init_registers_arm): Add prototype.
19974 (init_registers_arm_with_iwmmxt): Likewise.
19975 (the_low_target): Add initializer for arch_setup field.
19976 * linux-cris-low.c (init_registers_cris): Add prototype.
19977 (the_low_target): Add initializer for arch_setup field.
19978 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19979 (the_low_target): Add initializer for arch_setup field.
19980 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
19981 (the_low_target): Add initializer for arch_setup field.
19982 * linux-ia64-low.c (init_registers_ia64): Add prototype.
19983 (the_low_target): Add initializer for arch_setup field.
19984 * linux-m32r-low.c (init_registers_m32r): Add prototype.
19985 (the_low_target): Add initializer for arch_setup field.
19986 * linux-m68k-low.c (init_registers_m68k): Add prototype.
19987 (the_low_target): Add initializer for arch_setup field.
19988 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
19989 (init_registers_mips64_linux): Likewise.
19990 (the_low_target): Add initializer for arch_setup field.
19991 * linux-ppc-low.c (init_registers_ppc): Add prototype.
19992 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
19993 (the_low_target): Add initializer for arch_setup field.
19994 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
19995 (init_registers_powerpc_64): Likewise.
19996 (the_low_target): Add initializer for arch_setup field.
19997 * linux-s390-low.c (init_registers_s390): Add prototype.
19998 (init_registers_s390x): Likewise.
19999 (the_low_target): Add initializer for arch_setup field.
20000 * linux-sh-low.c (init_registers_sh): Add prototype.
20001 (the_low_target): Add initializer for arch_setup field.
20002 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20003 (the_low_target): Add initializer for arch_setup field.
20004 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20005 (the_low_target): Add initializer for arch_setup field.
20007 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20008 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20009 instead of init_registers ().
20010 * win32-arm-low.c (init_registers_arm): Add prototype.
20011 (the_low_target): Add initializer for arch_setup field.
20012 * win32-i386-low.c (init_registers_i386): Add prototype.
20013 (the_low_target): Add initializer for arch_setup field.
20015 * spu-low.c (init_registers_spu): Add prototype.
20016 (initialize_low): Call initialie_registers_spu () instead of
20017 initialize_registers ().
20019 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20021 * server.c (handle_v_requests): When handling the vRun and vAttach
20022 packets, if already debugging a process, don't kill it. Return an
20025 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20027 * server.c (handle_query): Correct length check.
20029 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20031 * win32-low.c (do_initial_child_stuff): Add process handle
20032 parameter. Set current_process_handle and current_process_id from the
20033 parameters. Clear globals.
20034 (win32_create_inferior): Don't set current_process_handle and
20035 current_process_id here. Instead pass them on the call to
20036 do_initial_child_stuff.
20037 (win32_attach): Likewise.
20038 (win32_clear_inferiors): New.
20039 (win32_kill): Don't close the current process handle or the
20040 current thread handle here. Instead call win32_clear_inferiors.
20041 (win32_detach): Don't open a new handle to the process. Call
20042 win32_clear_inferiors.
20043 (win32_join): Don't rely on current_process_handle; open a new
20044 handle using the process id.
20045 (win32_wait): Call win32_clear_inferiors when the inferior process
20048 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20050 * server.c (monitor_show_help): Add "exit".
20052 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20054 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20055 (clean): Add reg-xtensa.c.
20056 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20057 * configure.srv (xtensa*-*-linux*) New target.
20058 * linux-xtensa-low.c: New.
20059 * xtensa-xtregs.c: New.
20061 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20063 * hostio.c: Don't include errno.h.
20064 (errno_to_fileio_errno): Move to hostio-errno.
20065 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20066 error number outputting to the target->hostio_last_error callback.
20067 (hostio_packet_error): Use FILEIO_EINVAL directly.
20068 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20069 calls to hostio_error.
20070 * hostio-errno.c: New.
20071 * server.h (hostio_last_error_from_errno): Declare.
20072 * target.h (target_ops): Add hostio_last_error member.
20073 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20074 as hostio_last_error handler.
20075 * spu-low.c (spu_target_ops): Likewise.
20076 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20077 (wince_hostio_last_error): New functions.
20078 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20079 as hostio_last_error handler.
20080 (win32_target_ops) [!_WIN32_WCE]: Register
20081 hostio_last_error_from_errno as hostio_last_error handler.
20082 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20083 (hostio-errno.o): New rule.
20084 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20085 * configure.srv (srv_hostio_err_objs): New variable. Default to
20087 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20088 * configure: Regenerate.
20090 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20092 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20093 (linux_kill, linux_detach): Clean up the process list.
20094 * remote-utils.c (remote_open): Improve port number parsing.
20095 (putpkt_binary, input_interrupt): Only send interrupts if the target
20097 * server.c (extended_protocol): Make static.
20098 (attached): Define earlier.
20099 (exit_requested, response_needed, program_argv): New variables.
20100 (target_running): New.
20101 (start_inferior): Clear attached here.
20102 (attach_inferior): Set attached here.
20103 (require_running): Define.
20104 (handle_query): Use require_running and target_running. Implement
20106 (handle_v_attach, handle_v_run): New.
20107 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20108 (gdbserver_usage): Update.
20109 (main): Redo argument parsing. Handle --debug and --multi. Handle
20110 --attach along with other options or after the port. Save
20111 program_argv. Support no initial program. Resynchronize
20112 communication with GDB after an error. Handle "monitor exit".
20113 Use require_running and target_running. Always allow the extended
20114 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20115 restart in extended mode.
20116 * README: Refer to the GDB manual. Update --attach usage.
20118 2007-12-20 Andreas Schwab <schwab@suse.de>
20120 * linux-low.c (STACK_SIZE): Define.
20121 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20122 (linux_test_for_tracefork): Likewise.
20124 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20126 * linux-low.c (linux_wait_for_event): Update messages. Do not
20127 reinsert auto-delete breakpoints.
20128 * mem-break.c (struct breakpoint): Change return type of handler to
20130 (set_breakpoint_at): Update handler type.
20131 (reinsert_breakpoint_handler): Return 1 instead of calling
20133 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20135 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20136 * mem-break.h (set_breakpoint_at): Update handler type.
20137 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20138 * win32-low.c (auto_delete_breakpoint): New.
20139 (get_child_debug_event): Use it.
20141 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20143 * configure.ac: Check for pread and pwrite.
20144 * hostio.c (handle_pread): Fall back to lseek and read.
20145 (handle_pwrite): Fall back to lseek and write.
20146 * config.in, configure: Regenerated.
20148 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20150 * server.c (myresume): Add own_buf argument.
20151 (main): Update calls.
20153 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20155 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20156 * remote-utils.c (remote_open): Do not call disable_async_io.
20157 (block_async_io): Delete.
20158 (unblock_async_io): Make static.
20159 (initialize_async_io): New.
20160 * server.c (handle_v_cont): Handle async I/O here.
20161 (myresume): Likewise. Move other common resume tasks here...
20162 (main): ... from here. Call initialize_async_io. Disable async
20163 I/O before the main loop.
20164 * server.h (initialize_async_io): Declare.
20165 (block_async_io, unblock_async_io): Delete prototypes.
20166 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20168 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20170 * remote-utils.c (readchar): Allow binary data in received messages.
20172 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20174 * win32-low.c (attaching): New global.
20175 (win32_create_inferior): Clear the `attaching' global.
20176 (win32_attach): Set the `attaching' global.
20177 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20178 attaching. Only set a breakpoint at the entry point if not
20181 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20183 * server.c (main): Don't report dll events on the initial
20184 connection on attaches.
20186 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20188 * server.c (main): Relax numerical bases supported for the pid of
20189 the --attach command line argument.
20191 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20193 * win32-low.c (win32_attach): Call OpenProcess before
20194 DebugActiveProcess, not after. Add last error output to error
20197 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20199 * win32-low.c (win32_get_thread_context)
20200 (win32_set_thread_context): New functions.
20201 (thread_rec): Use win32_get_thread_context.
20202 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20203 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20206 2007-12-03 Leo Zayas
20207 Pedro Alves <pedro_alves@portugalmail.pt>
20209 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20211 (child_add_thread): Minor cleanup.
20212 (child_continue): Resume artificially suspended threads before
20213 calling ContinueDebugEvent.
20214 (suspend_one_thread): New.
20215 (fake_breakpoint_event): New.
20216 (get_child_debug_event): Change return type to int. Check here if
20217 gdb sent an interrupt request. If a soft interrupt was requested,
20218 fake a breakpoint event. Return 0 if there is no event to handle,
20220 (win32_wait): Don't check here if gdb sent an interrupt request.
20221 Ensure there is a valid event to handle.
20222 (win32_request_interrupt): Add soft interruption method as last
20225 2007-12-03 Leo Zayas
20226 Pedro Alves <pedro_alves@portugalmail.pt>
20228 * win32-low.h (win32_thread_info): Add descriptions to the
20229 structure members. Replace `suspend_count' counter by a
20231 * win32-low.c (thread_rec): Update condition of when to get the
20232 context from the inferior. Rely on ContextFlags being set if it
20233 has already been retrieved. Only suspend the inferior thread if
20234 we haven't already. Warn if that fails.
20235 (continue_one_thread): s/suspend_count/suspended/. Only call
20236 ResumeThread once. Warn if that fails.
20238 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20240 * win32-low.c (win32_wait): Don't read from the inferior when it
20241 has already exited.
20243 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20245 * Makefile.in (win32_low_h): New variable.
20246 (win32-low.o): Add dependency on $(win32_low_h).
20247 (win32-arm-low.o, win32-i386-low.o): New rules.
20249 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20251 * hostio.c: Correct copyright year.
20253 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20255 * Makefile.in (OBS): Add hostio.o.
20256 (hostio.o): New rule.
20257 * server.h (handle_vFile): Declare.
20258 * hostio.c: New file.
20259 * server.c (handle_v_requests): Take packet_len and new_packet_len
20260 for binary packets. Call handle_vFile.
20261 (main): Update call to handle_v_requests.
20263 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20265 * linux-low.c: Include <sched.h>.
20267 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20269 * linux-low.c (linux_tracefork_grandchild): New.
20270 (linux_tracefork_child): Use clone.
20271 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20273 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20275 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20277 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20279 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20281 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20283 * inferiors.c (change_inferior_id): Delete.
20284 (add_pid_to_list, pull_pid_from_list): New.
20285 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20286 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20287 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20288 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20289 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20290 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20291 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20292 (using_threads): Always set to 1.
20293 (handle_extended_wait): New.
20294 (add_process): Do not set TID.
20295 (linux_create_inferior): Set must_set_ptrace_flags.
20296 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20297 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20298 (linux_thread_alive): Rename TID argument to LWPID.
20299 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20300 (linux_wait_for_event): Do not use TID or check using_threads. Update
20301 call to dead_thread_notify. Call handle_extended_wait.
20302 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20303 (send_sigstop): Delete sigstop_sent.
20304 (wait_for_sigstop): Avoid TID.
20305 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20306 (linux_test_for_tracefork): New.
20307 (linux_lookup_signals): Use thread_db_active and
20308 linux_supports_tracefork_flag.
20309 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20310 * linux-low.h (get_process_thread): Avoid TID.
20311 (struct process_ifo): Move thread_known and tid to the end. Remove
20313 (linux_attach_lwp, thread_db_init): Update prototypes.
20314 * server.h (change_inferior_id): Delete prototype.
20315 (add_pid_to_list, pull_pid_from_list): New prototypes.
20316 * thread-db.c (thread_db_use_events): New.
20317 (find_first_thread): Rename to...
20318 (find_one_thread): ...this. Update callers and messages. Do not
20319 call fatal. Check thread_db_use_events. Do not call
20320 change_inferior_id or new_thread_notify.
20321 (maybe_attach_thread): Update. Do not call new_thread_notify.
20322 (thread_db_init): Set thread_db_use_events. Check use_events.
20323 * utils.c (fatal, warning): Correct message prefix.
20325 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20327 * Makefile.in (clean): Remove new files.
20328 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20329 (powerpc-64.o, powerpc-64.c): New rules.
20330 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20331 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20333 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20335 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20336 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20337 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20338 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20339 (target_regsets): Add AltiVec and SPE register sets.
20340 * configure.ac: Check for AltiVec and SPE.
20341 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20342 (ppc_fill_vrregset, ppc_store_vrregset): New.
20343 (target_regsets): Add AltiVec register set.
20344 * configure: Regenerated.
20346 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20348 * linux-low.c (O_LARGEFILE): Define.
20349 (linux_read_memory): Use /proc/PID/mem.
20350 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20351 * configure, config.in: Regenerated.
20353 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20355 * linux-low.c (linux_wait_for_event): Do not pass signals while
20358 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20360 * win32-low.c (create_process): New.
20361 (win32_create_inferior): Use create_process instead of
20362 CreateProcess. If create_process failed retry appending an ".exe"
20363 suffix. Store the GetLastError result immediatelly after
20364 create_process calls and use it on the call to error.
20366 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20368 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20370 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20372 * configure.ac: Switch license to GPLv3.
20374 2007-08-01 Michael Snyder <msnyder@access-company.com>
20376 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20378 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20380 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20382 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20383 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20384 CloseToolhelp32Snapshot.
20385 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20386 CloseToolhelp32Snapshot.
20388 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20390 * server.c (main): Check for inferior exit before main loop.
20392 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20394 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20395 instead of on tmp_desc.
20397 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20398 Daniel Jacobowitz <dan@codesourcery.com>
20400 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20401 (add_thread): Minor cleanups.
20402 (clear_inferiors): Move lower in the file. Clear the DLL
20404 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20405 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20406 (xml_escape_text): New.
20407 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20409 (handle_v_cont): Report errors.
20410 (gdbserver_version): Update.
20411 (main): Correct size of own_buf. Do not report initial DLL events.
20412 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20413 (unloaded_dll, xml_escape_text): New.
20414 * win32-low.c (enum target_waitkind): Update comments.
20415 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20416 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20417 (win32_EnumProcessModules, win32_GetModuleInformation)
20418 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20419 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20420 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20421 (win32_Module32First, win32_Module32Next, load_toolhelp)
20422 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20423 (get_child_debug_event): Handle DLL events.
20424 (win32_wait): Likewise.
20426 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20428 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20429 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20431 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20433 * win32-low.c (handle_output_debug_string): Ignore event if not
20436 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20438 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20440 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20442 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20444 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20446 * inferiors.c (change_inferior_id): Add comment.
20447 * linux-low.c (check_removed_breakpoint): Add an early
20448 prototype. Improve debug output.
20449 (linux_attach): Doc update.
20450 (linux_detach_one_process, linux_detach): Clean up before releasing
20452 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20453 * linux-low.h (struct process_info): Doc improvement.
20454 * mem-break.c (delete_all_breakpoints): New.
20455 * mem-break.h (delete_all_breakpoints): New prototype.
20456 * thread-db.c (find_first_thread): New.
20457 (thread_db_create_event): Call it instead of
20458 thread_db_find_new_threads. Clean up unused variables.
20459 (maybe_attach_thread): Remove first thread handling.
20460 (thread_db_find_new_threads): Use find_first_thread.
20461 (thread_db_get_tls_address): Likewise.
20463 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20465 * thread-db.c (thread_db_find_new_threads): Add prototype.
20466 (thread_db_create_event): Check for the main thread before adding
20468 (maybe_attach_thread): Only enable event reporting if TID == 0.
20469 (thread_db_get_tls_address): Check for new threads.
20471 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20473 * linux-low.c (linux_create_inferior): Try execv before execvp.
20474 * spu-low.c (spu_create_inferior): Likewise.
20476 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20478 * linux-low.c (linux_create_inferior): Change execv to execvp.
20479 * spu-low.c (spu_create_inferior): Likewies.
20481 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20483 * Makefile.in (clean): Clean new files instead of deleted ones.
20484 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20485 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20487 * configure.srv: Specify XML files and new regformats for MIPS and
20489 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20490 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20491 an entry for the restart register.
20492 (mips_cannot_fetch_register, mips_cannot_store_register)
20493 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20494 register names to match the XML descriptions.
20495 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20496 restart register instead of $0.
20498 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20499 Markus Deuling <deuling@de.ibm.com>
20501 * remote-utils.c (decode_xfer_write): New function.
20502 * server.h (decode_xfer_write): Add prototype.
20503 * server.c (handle_query): Add PACKET_LEN argument. Support
20504 qXfer:spu:read and qXfer:spu:write packets.
20505 (main): Pass packet_len to handle_query.
20506 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20507 * target.h (target_ops): Add qxfer_spu.
20509 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20511 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20512 accessing non-seekable spufs files.
20514 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20516 * server.c (handle_query): Add reply for qC packet.
20518 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20519 Leo Zayas <lerele@champenstudios@com>
20521 * server.h (check_remote_input_interrupt_request): New function.
20522 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20523 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20524 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20525 (check_remote_input_interrupt_request): New function.
20526 * server.h (check_remote_input_interrupt_request): Declare.
20527 * win32-low.c (winapi_DebugBreakProcess,
20528 winapi_GenerateConsoleCtrlEvent): New typedefs.
20529 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20531 (win32_wait): Check for remote interrupt request
20532 with check_remote_input_interrupt_request.
20533 (win32_request_interrupt): New function.
20534 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20536 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20538 * win32-low.c (debug_registers_changed,
20539 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20540 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20541 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20542 (thread_rec): Get context using the low target.
20543 (child_add_thread): Call thread_added on the low target,
20544 which does the same thing.
20546 (do_initial_child_stuff): Remove debug registers references.
20547 Set context using the low target. Resume threads after
20548 setting the contexts.
20549 (child_continue): Remove dead variable. Remove debug
20550 registers references.
20551 (child_fetch_inferior_registers): Go through the low target.
20552 (do_child_store_inferior_registers): Remove.
20553 (child_store_inferior_registers): Go through the low target.
20554 (win32_resume): Remove debug registers references.
20555 Set context using the low target.
20556 (handle_exception): Change return type to void. Don't record
20557 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20558 first chance exception.
20559 (get_child_debug_event): Change return type to void. Remove
20560 goto loop. Always return after waiting for debug event.
20561 (win32_wait): Convert to switch statement. Handle spurious
20564 * win32-i386-low.c (debug_registers_changed,
20565 debug_registers_used): New.
20566 (initial_stuff): Rename to ...
20567 (i386_initial_stuff): ... this. Clear debug registers
20569 (store_debug_registers): Delete.
20570 (i386_get_thread_context): New.
20571 (load_debug_registers): Delete.
20572 (i386_set_thread_context): New.
20573 (i386_thread_added): New.
20574 (single_step): Rename to ...
20575 (i386_single_step): ... this.
20576 (do_fetch_inferior_registers): Rename to ...
20577 (i386_fetch_inferior_register): ... this.
20578 (i386_store_inferior_register): New.
20579 (the_low_target): Adapt to new interface.
20581 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20582 (arm_get_thread_context): New.
20583 (arm_set_thread_context): New.
20585 (do_fetch_inferior_registers): Rename to ...
20586 (arm_fetch_inferior_register): ... this.
20587 (arm_store_inferior_register): New.
20588 (arm_wince_breakpoint): Reimplement as unsigned long.
20589 (arm_wince_breakpoint_len): Define.
20590 (the_low_target): Adapt to new interface.
20592 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20593 load_debug_registers. Add get_thread_context, set_thread_context,
20594 thread_added and store_inferior_register. Rename
20595 fetch_inferior_registers to fetch_inferior_register.
20596 (regptr): Remove declaration.
20598 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20600 * linux-low.c (linux_detach): Change return type to int. Return 0.
20601 * spu-low.c (spu_detach): Likewise.
20603 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20605 * target.h (target_ops): Change return type of detach to int.
20607 (join_inferior): New.
20608 * server.c (main): Don't skip detach support on mingw32.
20609 If the inferior doesn't support detaching return error.
20610 Call join_inferior instead of using waitpid.
20611 * linux-low.c (linux_join): New.
20612 (linux_target_op): Add linux_join.
20613 * spu-low.c (spu_join): New.
20614 (spu_target_ops): Add spu_join.
20615 * win32-low.c (win32_detach): Adapt to new interface.
20616 Reopen current_process_handle before detaching. Issue a child
20617 resume before detaching.
20619 (win32_target_op): Add win32_join.
20621 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20623 * win32-low.c (win32-attach): Fix return value.
20624 * target.h (target_ops): Describe ATTACH return values.
20626 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20628 * win32-low.c (GETPROCADDRESS): Define.
20629 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20630 (winapi_DebugSetProcessKillOnExit): Likewise.
20631 (win32_create_inferior): Force usage of ansi CreateProcessA.
20632 (win32_attach): Use GETPROCADDRESS.
20633 (win32_detach): Likewise.
20635 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20637 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20639 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20641 * win32-low.c: Commit leftover changes from 2007-03-29.
20643 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20645 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20646 fields short instead of int. Add explicit padding.
20647 (i387_cache_to_fsave): Remove unnecessary casts.
20648 (i387_fsave_to_cache): Doc fix.
20649 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20651 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20653 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20654 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20656 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20658 * configure.srv (arm*-*-mingw32ce*): Move near the other
20661 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20663 * configure.ac: Add errno checking.
20664 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20665 sys/file.h and malloc.h.
20666 (AC_CHECK_DECLS): Add perror.
20667 (srv_mingwce): Handle.
20668 * configure.srv (i[34567]86-*-cygwin*): Add
20669 win32-i386-low.o to srv_tgtobj.
20670 (i[34567]86-*-mingw*): Likewise.
20671 (arm*-*-mingw32ce*): Add case.
20672 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20673 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20674 [__MINGW32CE__] (strerror): New function.
20675 [__MINGW32CE__] (errno): Define to GetLastError.
20676 [__MINGW32CE__] (COUNTOF): New macro.
20677 (remote_open): Remove extra close call.
20678 * mem-break.c (delete_breakpoint_at): New function.
20679 * mem-break.h (delete_breakpoint_at): Declare.
20680 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20681 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20682 [USE_WIN32API] (read, write): Add char* casts.
20683 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20684 * server.h: Include wincecompat.h on Windows CE.
20685 [HAVE_ERRNO_H]: Check.
20686 (perror): Declare if not declared.
20687 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20688 (perror_with_name): Remove errno declaration.
20689 * wincecompat.h: New.
20690 * wincecompat.c: New.
20691 * win32-low.h: New.
20692 * win32-arm-low.c: New.
20693 * win32-i386-low.c: New.
20694 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20695 (OUTMSG2): Make it safe.
20697 (COUNTOF): New macro.
20698 (NUM_REGS): Get it from the low target.
20699 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20700 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20701 (thread_rec): Let low target handle debug registers.
20702 (child_add_thread): Likewise.
20703 (child_init_thread_list): Likewise.
20704 (continue_one_thread): Likewise.
20706 (do_child_fetch_inferior_registers): Move to ...
20707 * win32-i386-low.c: ... here, and rename to ...
20708 (do_fetch_inferior_registers): ... this.
20709 * win32-low.c (child_fetch_inferior_registers):
20710 Go through the low target.
20711 (do_child_store_inferior_registers): Use regptr.
20712 (strwinerror): New function.
20713 (win32_create_inferior): Handle Windows CE.
20714 Use strwinerror instead of strerror on Windows error
20715 codes. Add program to the error output.
20716 Don't close the main thread handle on Windows CE.
20717 (win32_attach): Use coredll.dll on Windows CE.
20718 (win32_kill): Close current process and current
20720 (win32_detach): Use coredll.dll on Windows CE.
20721 (win32_resume): Let low target handle debug registers, and
20723 (handle_exception): Add/Remove initial breakpoint. Avoid
20724 non-existant WSTOPSIG on Windows CE.
20725 (win32_read_inferior_memory): Cast to remove warning.
20726 (win32_arch_string): Go through the low target.
20727 (initialize_low): Call set_breakpoint_data with the low
20728 target's breakpoint.
20729 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20730 FOP_REGNUM, mappings): Move to ...
20731 * win32-i386-low.c: ... here.
20732 * win32-low.c (win32_thread_info): Move to ...
20733 * win32-low.h: ... here.
20734 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20735 win32-arm-low.c and wincecompat.c.
20736 (all:): Add $EXEEXT.
20737 (install-only:): Likewise.
20738 (gdbserver:): Likewise.
20739 (gdbreplay:): Likewise.
20740 * config.in: Regenerate.
20741 * configure: Regenerate.
20743 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20745 * win32-low.c: Rename typedef thread_info to
20746 win32_thread_info throughout.
20748 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20750 * win32-i386-low.c: Rename to ...
20751 * win32-low.c: ... this.
20752 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20753 * Makefile.in: Likewise.
20755 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20757 * remote-utils.c (monitor_output): Constify msg parameter.
20758 * server.h (monitor_output): Likewise.
20759 * win32-i386-low.c (handle_output_debug_string): New.
20760 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20761 handle_output_debug_string.
20762 (get_child_debug_event): Likewise.
20764 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20766 * server.c (main): Correct strtoul check.
20768 2007-03-27 Jon Ringle <jon@ringle.org>
20770 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20772 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20774 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20776 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20778 * terminal.h: Check HAVE_SGTTY_H.
20780 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20782 * remote-utils.c (remote_open): Print out the assigned port number.
20784 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20786 * remote-utils.c (monitor_output): New function.
20787 * server.c (debug_threads): Define here.
20788 (monitor_show_help): New function.
20789 (handle_query): Handle qRcmd.
20790 (main): Do not handle 'd' packet.
20791 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20792 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20795 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20797 * Makefile.in (EXEEXT): New.
20798 (clean): Use $(EXEEXT).
20800 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20802 * target.h (target_ops): Rename send_signal to request_interrupt,
20803 and remove enum target_signal parameter.
20804 * linux-low.c (linux_request_interrupt): Rename from
20805 linux_send_signal, and always send SIGINT.
20806 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20807 and always send SIGINT.
20808 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20810 (input_interrupt): Likewise.
20812 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20814 * server.c (get_features_xml): Check if target implemented
20816 * win32-i386-low.c (win32_arch_string): New.
20817 (win32_target_ops): Add win32_arch_string as arch_string member.
20819 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20821 * spu-low.c (spu_arch_string): New.
20822 (spu_target_ops): Add spu_arch_string.
20824 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20826 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20827 * configure.ac: Do not check for terminal.h.
20828 * configure, config.in: Regenerated.
20830 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20832 * Makefile.in (OBS): Add $(XML_BUILTIN).
20833 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20835 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20836 (arm-with-iwmmxt.c): New.
20837 * config.in, configure: Regenerate.
20838 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20839 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20840 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20841 (arm*-*-linux*): Add iWMMXt and regset support.
20842 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20843 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20844 (arm_store_wmmxregset, target_regsets): New.
20845 * server.c (get_features_xml): Take annex argument. Check builtin
20847 (handle_query): Handle multiple annexes.
20849 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20851 * remote-utils.c [USE_WIN32API] (read, write): Define.
20852 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20855 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20857 * linux-i386-low.c (the_low_target): Set arch_string.
20858 * linux-x86-64-low.c (the_low_target): Likewise.
20859 * linux-low.c (linux_arch_string): New.
20860 (linux_target_ops): Add it.
20861 * linux-low.h (struct linux_target_ops): Add arch_string.
20862 * server.c (write_qxfer_response): Use const void * for DATA.
20863 (get_features_xml): New.
20864 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20865 * target.h (struct target_ops): Add arch_string method.
20867 2007-01-03 Denis Pilat <denis.pilat@st.com>
20868 Daniel Jacobowitz <dan@codesourcery.com>
20870 * linux-low.c (linux_kill): Handle being called with no threads.
20871 * win32-i386-low.c (win32_kill): Likewise.
20872 (get_child_debug_event): Clear current_process_handle.
20874 2006-12-30 Denis PILAT <denis.pilat@st.com>
20875 Daniel Jacobowitz <dan@codesourcery.com>
20877 * remote-utils.c (remote_open): Check the type of specified
20878 serial port devices before opening them.
20879 * server.c (main): Kill the inferior if an error occurs during
20880 the first remote_open.
20882 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20884 * README: Update supported targets.
20886 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20888 * Makefile.in (clean): Remove reg-mips64.c.
20889 (reg-mips64.c, reg-mips64.o): New rules.
20890 * configure.srv: Handle mips64. Include regset support for mips.
20891 * linux-mips-low.c (union mips_register): New.
20892 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20893 (mips_breakpoint, mips_breakpoint_at): Use int.
20894 (mips_collect_register, mips_supply_register)
20895 (mips_collect_register_32bit, mips_supply_register_32bit)
20896 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20897 (mips_store_fpregset, target_regsets): New.
20898 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20900 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20902 * configure.srv: Add target "spu*-*-*".
20903 * Makefile.in (clean): Remove reg-spu.c.
20904 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20905 * spu-low.c: New file.
20907 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20909 * configure.ac: Correct td_thr_tls_get_addr test.
20910 * configure: Regenerated.
20912 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20914 * linux-low.c (linux_wait_for_event): Reformat. Use the
20915 pass_signals array.
20916 * remote-utils.c (decode_address_to_semicolon): New.
20917 * server.c (pass_signals, handle_general_set): New.
20918 (handle_query): Mention QPassSignals for qSupported.
20919 (main): Call handle_general_set.
20920 * server.h (pass_signals, decode_address_to_semicolon): New.
20922 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20924 * server.c (handle_query): Correct error handling for read_auxv.
20926 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20928 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20929 and srv_linux_thread_db to yes.
20930 * linux-s390-low.c (s390_fill_gregset): New function.
20931 (target_regsets): Define data structure.
20933 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20935 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20936 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20937 * config.in, configure: Regenerated.
20938 * inferiors.c (gdb_id_to_thread): New function.
20939 (gdb_id_to_thread_id): Use it.
20940 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20941 * linux-low.h (struct process_info): Add th member.
20942 (thread_db_get_tls_address): New prototype.
20943 * remote-utils.c (decode_address): Make non-static.
20944 * server.c (handle_query): Handle qGetTLSAddr.
20945 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20946 * target.h (struct target_ops): Add get_tls_address.
20947 * thread-db.c (maybe_attach_thread): Save the thread handle.
20948 (thread_db_get_tls_address): New.
20950 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20952 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20953 (linux_resume_one_process): Take a siginfo_t *. Update all
20954 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20955 (struct pending_signals): Add a siginfo_t.
20956 (linux_wait_for_process): Always set last_status.
20957 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20958 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20959 * linux-low.h (struct process_info): Add last_status.
20961 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20963 * remote-utils.c (try_rle): New function.
20964 (putpkt_binary): Use it.
20966 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20968 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20969 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20970 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20971 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20972 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20975 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20977 * server.c (terminal_fd): New variable.
20978 (old_foreground_pgrp): Likewise.
20979 (restore_old_foreground_pgrp): New function.
20980 (start_inferior): Record the terminal file descriptor in terminal_fd
20981 and its original foreground group in old_foreground_pgrp. Register
20982 restore_old_foreground_pgrp with atexit().
20984 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
20986 * server.c (handle_query): Correct qPart to qXfer.
20988 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
20990 * configure.ac: Check for more headers which are missing on
20991 Windows. Automatically supply -lwsock32 and USE_WIN32API.
20992 * configure.srv: Add Cygwin and mingw32.
20993 * remote-utils.c: Don't include headers unconditionally which
20994 are missing on mingw32. Include <winsock.h> for mingw32.
20995 (remote_open): Adjust for mingw32 support. Flush
20996 standard error after writing to it.
20997 (remote_close, putpkt_binary, input_interrupt, block_async_io)
20998 (unblock_async_io, enable_async_io, disable_async_io)
20999 (readchar, getpkt): Update for Winsock support.
21000 (prepare_resume_reply): Expect a protocol signal number.
21001 * server.c: Disable <sys/wait.h> on mingw32.
21002 (start_inferior): Adjust for mingw32 support. Flush
21003 standard error after writing to it.
21004 (attach_inferior): Likewise. Use protocol signal
21006 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21008 * win32-i386-low.c: New file.
21009 * Makefile.in (XM_CLIBS): Set.
21010 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21011 (win32-i386-low.o): New dependency rule.
21012 * linux-low.c (linux_wait): Use target signal numbers.
21013 * target.h (struct target_ops): Doc fix.
21014 * server.h (target_signal_to_name): New prototype.
21015 * gdbreplay.c: Don't include headers unconditionally which
21016 are missing on mingw32. Include <winsock.h> for mingw32.
21017 (remote_close, remote_open): Adjust for Winsock support.
21018 * configure, config.in: Regenerated.
21020 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21022 * server.c (decode_xfer_read, write_qxfer_response): New.
21023 (handle_query): Take a packet length argument. Handle
21024 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21025 the qSupported response.
21026 (main): Update call to handle_query.
21028 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21030 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21031 (putpkt_binary): Renamed from putpkt and adjusted for binary
21033 (putpkt): New wrapper for putpkt_binary.
21034 (readchar): Don't mask off the high bit.
21035 (decode_X_packet): New function.
21036 * server.c (main): Call putpkt_binary if a handler sets the packet
21037 length. Save the length of the incoming packet. Handle 'X'.
21038 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21040 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21042 * server.c (handle_query): Handle qSupported.
21044 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21046 * remote-utils.c (all_symbols_looked_up): New variable.
21047 (look_up_one_symbol): Check it.
21048 * server.h (look_up_one_symbol): New declaration.
21049 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21051 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21053 * Makefile.in (linux-arm-low.o): Update dependencies.
21054 * linux-arm-low.c: Include "gdb_proc_service.h".
21055 (PTRACE_GET_THREAD_AREA): Define.
21056 (ps_get_thread_area): New function.
21058 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21060 * configure.srv (m68k*-*-uclinux*): New target.
21061 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21062 (linux_resume_one_process): Remove extraneous cast.
21063 (linux_read_offsets): New.
21064 (linux_target_op): Add linux_read_offsets on mmuless systems.
21065 * server.c (handle_query): Add qOffsets logic.
21066 * target.h (struct target_ops): Add read_offsets.
21068 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21070 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21071 (PTRACE_GET_THREAD_AREA): Define.
21072 (ps_get_thread_area): New function.
21073 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21074 (linux-x86-64-low.o): Update.
21076 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21078 * configure.ac: Remove checks for prfpregset_t.
21079 * gdb_proc_service.h: New file.
21080 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21081 new "gdb_proc_service.h".
21082 * proc-service.c: Likewise.
21083 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21084 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21085 * Makefile.in (gdb_proc_service_h): Updated.
21086 * configure, config.in: Regenerated.
21088 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21090 * remote-utils.c (prepare_resume_reply): Move declaration
21091 of gdb_id_from_wait to the top of the block.
21093 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21095 * linux-low.c (regsets_store_inferior_registers): Read the regset
21096 from the target before filling it.
21098 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21100 * server.c (attach_inferior): Return SIGTRAP for a successful
21103 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21105 * Makefile.in (OBS): Add version.o.
21106 (STAGESTUFF): Delete.
21107 (version.o): Add dependencies.
21108 (version.c): Replace rule.
21109 (clean): Remove version.c.
21110 * server.c (gdbserver_version): New.
21111 (gdbserver_usage): Use printf.
21112 (main): Handle --version and --help.
21113 * server.h (version, host_name): Add declarations.
21115 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21127 * linux-x86-64-low.c:
21129 * linux-s390-low.c:
21130 * linux-ppc64-low.c:
21132 * linux-mips-low.c:
21133 * linux-m68k-low.c:
21134 * linux-m32r-low.c:
21137 * linux-ia64-low.c:
21138 * linux-i386-low.c:
21139 * linux-crisv32-low.c:
21151 * gdbserver.1: Add (C) after Copyright. Update the FSF
21154 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21156 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21157 (arm_breakpoint_at): Recognize both breakpoints.
21158 (the_low_target): Use the correct breakpoint instruction.
21160 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21162 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21163 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21164 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21165 (the_low_target): Update.
21167 2005-10-25 Andreas Schwab <schwab@suse.de>
21169 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21171 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21172 (ia64_num_regs): Reduce to 462.
21174 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21176 * acinclude.m4: Correct quoting.
21177 * aclocal.m4: Regenerated.
21179 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21180 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21181 (thread_db_init): Call thread_db_err_str.
21182 * configure.ac: Check for TD_VERSION.
21183 * config.in, configure: Regenerated.
21185 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21187 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21189 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21191 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21192 is not available. Define HAVE_PTRACE_GETREGS if it is.
21193 * config.in, configure: Regenerated.
21194 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21195 * linux-i386-low.c, linux-m68k-low.c: Update to use
21196 HAVE_PTRACE_GETREGS.
21197 * linux-low.c (regsets_fetch_inferior_registers)
21198 (regsets_store_inferior_registers): Only return 0 if we processed
21200 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21201 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21203 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21205 * inferiors.c (struct thread_info): Add gdb_id.
21206 (add_thread): Add gdb_id argument.
21207 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21208 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21209 calls to add_thread.
21210 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21211 * server.c (handle_query): Use thread_to_gdb_id.
21212 (handle_v_cont, main): Use gdb_id_to_thread_id.
21213 * server.h (add_thread): Update prototype.
21214 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21217 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21219 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21220 left-padded registers.
21221 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21222 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21224 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21226 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21227 * configure: Regenerate.
21228 * config.in: Regenerate.
21229 * server.h (NEED_DECLARATION_STRERROR):
21230 Replace with !HAVE_DECL_STRERROR.
21232 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21234 * linux-low.c (linux_wait, linux_send_signal): Don't test
21235 an unsigned long variable for > 0 if it could be MAX_ULONG.
21236 * server.c (myresume): Likewise.
21237 * target.c (set_desired_inferior): Likewise.
21239 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21241 * configure.ac: Simplify and improve check for socklen_t.
21242 * configure, config.in: Regenerate.
21244 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21246 * acconfig.h: Remove.
21247 * configure.ac: Add a test for socklen_t. Use three-argument
21248 AC_DEFINE throughout.
21249 * config.in: Regenerated using autoheader 2.59.
21250 * configure: Regenerated.
21252 * gdbreplay.c (socklen_t): Provide a default.
21253 (remote_open): Use socklen_t.
21254 * remote-utils.c (socklen_t): Provide a default.
21255 (remote_open): Use socklen_t.
21256 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21259 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21261 * linux-low.c (linux_read_memory, linux_write_memory)
21262 (linux_read_auxv): Likewise.
21263 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21264 (check_mem_write): Likewise.
21265 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21267 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21268 (registers_from_string, register_data): Likewise.
21269 * server.c (handle_query, main): Likewise.
21270 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21271 (decode_M_packet): Likewise.
21272 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21273 * target.h (struct target_ops): Update read_memory, write_memory,
21275 (read_inferior_memory, write_inferior_memory): Update.
21276 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21277 to unsigned char *.
21278 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21279 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21280 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21281 linux-s390-low.c, linux-sh-low.c: Update for changes in
21282 read_inferior_memory and the_low_target->breakpoint.
21284 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21286 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21287 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21288 * configure.srv: Add powerpc64-*-linux*.
21289 * linux-ppc64-low.c: New file.
21291 2005-05-23 Orjan Friberg <orjanf@axis.com>
21293 * linux-cris-low.c: New file with support for CRIS.
21294 * linux-crisv32-low.c: Ditto for CRISv32.
21295 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21296 (clean): Add reg-cris.c and reg-crisv32.c.
21297 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21298 reg-crisv32.o, and reg-crisv32.c to make rules.
21299 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21300 recognized targets.
21302 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21304 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21305 of sizeof (PTRACE_XFER_TYPE).
21306 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21308 2005-05-12 Orjan Friberg <orjanf@axis.com>
21310 * target.h (struct target_ops): Add insert_watchpoint,
21311 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21312 pointers for hardware watchpoint support.
21313 * linux-low.h (struct linux_target_ops): Ditto.
21314 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21315 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21316 to linux_target_ops.
21317 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21319 * server.c (main): Recognize 'Z' and 'z' packets.
21321 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21323 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21324 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21325 (the_low_target): Add new members.
21327 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21329 * proc-service.c (ps_lgetregs): Search all_processes instead of
21332 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21334 * server.c (start_inferior): Change return type to int.
21335 (attach_inferior): Change sigptr to int *.
21336 (handle_v_cont, handle_v_requests): Change signal to int *.
21337 (main): Change signal to int.
21339 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21341 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21342 * configure.srv: Add m32r*-*-linux*.
21343 * linux-m32r-low.c: New file.
21345 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21347 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21349 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21351 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21352 Take unsigned long arguments for PIDs.
21353 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21354 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21355 (wait_for_sigstop, linux_resume_one_process)
21356 (regsets_fetch_inferior_registers, linux_send_signal)
21357 (linux_read_auxv): Likewise. Update the types of variables holding
21358 PIDs. Update format string specifiers.
21359 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21360 * remote-utils.c (prepare_resume_reply): Likewise.
21361 * server.c (cont_thread, general_thread, step_thread)
21362 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21364 (handle_query): Update format specifiers.
21365 (handle_v_cont, main): Use strtoul for thread IDs.
21366 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21367 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21368 (general_thread, step_thread, thread_from_wait)
21369 (old_thread_from_wait): Update.
21370 * target.h (struct thread_resume): Use unsigned long for THREAD.
21371 (struct target_ops): Use unsigned long for arguments to attach and
21374 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21376 * acinclude.m4: Include bfd/bfd.m4 directly.
21377 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21378 <agriffis@toolchain.org>.
21379 * aclocal.m4, configure: Regenerated.
21381 2005-01-07 Andrew Cagney <cagney@gnu.org>
21383 * configure.ac: Rename configure.in, require autoconf 2.59.
21384 * configure: Re-generate.
21386 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21388 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21389 LIBS when finished.
21390 * aclocal.m4: Regenerated.
21391 * configure: Regenerated.
21393 2004-11-21 Andreas Schwab <schwab@suse.de>
21395 * linux-m68k-low.c (m68k_num_gregs): Define.
21396 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21397 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21398 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21399 (m68k_breakpoint_at): New. Add to the_low_target.
21401 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21402 srv_linux_thread_db to yes.
21404 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21406 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21407 (ARCH_SET_FS): Likewise.
21408 (ARCH_GET_FS): Likewise.
21409 (ARCH_GET_GS): Likewise.
21411 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21413 * linux-i386-low.c (ps_get_thread_area): New.
21414 * linux-x86-64-low.c (ps_get_thread_area): New.
21415 * linux-low.c: Include <sys/syscall.h>.
21416 (linux_kill_one_process): Don't kill the first thread here.
21417 (linux_kill): Kill the first thread here.
21418 (kill_lwp): New function.
21419 (send_sigstop, linux_send_signal): Use it.
21420 * proc-service.c: Clean up #ifdefs.
21421 (fpregset_info): Delete.
21422 (ps_lgetregs): Update and enable implementation.
21423 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21425 * remote-utils.c (struct sym_cache, symbol_cache): New.
21426 (input_interrupt): Print a clearer message.
21427 (async_io_enabled): New variable.
21428 (enable_async_io, disable_async_io): Use it. Update comments.
21429 (look_up_one_symbol): Use the symbol cache.
21430 * thread-db.c (thread_db_look_up_symbols): New function.
21431 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21433 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21435 * configure.in: Test for -rdynamic.
21436 * configure: Regenerated.
21437 * Makefile (INTERNAL_LDFLAGS): New.
21438 (gdbserver, gdbreplay): Use it.
21440 2004-09-02 Andrew Cagney <cagney@gnu.org>
21442 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21444 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21446 * linux-low.c (linux_wait): Clear all_processes list also.
21448 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21450 * linux-low.c: Include <errno.h>. Remove extern declaration of
21453 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21455 * gdbreplay.c, server.h, utils.c: Update copyright years.
21457 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21459 * server.c (main): Print child status or termination signal from
21460 variable 'signal', not 'sig'.
21462 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21464 * linux-low.c (linux_read_memory): Change return type to
21465 int. Check for and return error from ptrace().
21466 * target.c (read_inferior_memory): Change return type to int. Pass
21467 back return status from the_target->read_memory().
21468 * target.h (struct target_ops): Adapt *read_memory() prototype.
21470 (read_inferior_memory): Adapt prototype.
21471 * server.c (main): Return an error packet if
21472 read_inferior_memory() returns an error.
21474 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21476 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21477 Unify with other clean targets.
21479 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21481 * server.c (handle_v_cont): Call set_desired_inferior.
21483 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21485 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21487 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21489 * linux-low.c (linux_wait): Unblock async I/O.
21490 (linux_resume): Block and enable async I/O.
21491 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21492 * server.h (block_async_io, unblock_async_io): Add prototypes.
21494 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21496 * remote-utils.c (remote_open): Print a status notice after
21497 opening a TCP port.
21498 * server.c (attach_inferior): Print a status notice after
21501 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21503 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21505 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21507 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21509 * server.c, target.h: Update copyright years.
21511 2004-02-25 Roland McGrath <roland@redhat.com>
21513 * target.h (struct target_ops): New member `read_auxv'.
21514 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21515 * linux-low.c (linux_read_auxv): New function.
21516 (linux_target_ops): Initialize `read_auxv' member to that.
21518 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21520 Committed by Jim Blandy <jimb@redhat.com>.
21522 * linux-s390-low.c (s390_num_regs): Update.
21523 (s390_regmap): Remove control registers. Use __s390x__ predefine
21524 instead of GPR_SIZE to distiguish s390 and s390x targets.
21526 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21528 * linux-low.c: Update copyright year.
21529 (check_removed_breakpoint): Clear pending_is_breakpoint.
21530 (linux_set_resume_request, linux_queue_one_thread)
21531 (resume_status_pending_p): New functions.
21532 (linux_continue_one_thread): Use process->resume.
21533 (linux_resume): Only resume threads if there are no pending events.
21534 * linux-low.h (struct process_info): Add resume request
21537 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21539 * regcache.c (new_register_cache): Clear the allocated register
21540 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21542 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21544 * linux-low.c (linux_resume): Take a struct thread_resume *
21546 (linux_wait): Update call.
21547 (resume_ptr): New static variable.
21548 (linux_continue_one_thread): Renamed from
21549 linux_continue_one_process. Use resume_ptr.
21550 (linux_resume): Use linux_continue_one_thread.
21551 * server.c (handle_v_cont, handle_v_requests): New functions.
21552 (myresume): New function.
21553 (main): Handle 'v' case.
21554 * target.h (struct thread_resume): New type.
21555 (struct target_ops): Change argument of "resume" to struct
21557 (myresume): Delete macro.
21559 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21561 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21562 (uninstall): Support DESTDIR.
21564 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21566 * configure.srv: Add xscale*linux copy of arm*linux entry.
21568 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21570 * linux-arm-low.c (arm_reinsert_addr): New function.
21571 (the_low_target): Add arm_reinsert_addr.
21573 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21575 * mem-break.c: Remove whitespace at end of file.
21577 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21579 * configure.in: Check whether we need to prototype strerror.
21580 * server.h: Optionally prototype strerror.
21581 * gdbreplay.c (perror_with_name): Use strerror.
21582 * linux-low.c (linux_attach_lwp): Use strerror.
21583 * utils.c (perror_with_name): Use strerror.
21584 * config.in, configure: Regenerated.
21586 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21588 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21589 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21591 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21593 * Makefile.in (SFILES): Update.
21594 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21595 low-sun3.c: Remove files.
21597 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21599 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21600 (linux_detach_one_process, linux_detach): New functions.
21601 (linux_target_ops): Add linux_detach.
21602 * server.c (main): Handle 'D' packet.
21603 * target.h (struct target_ops): Add "detach" member.
21604 (detach_inferior): Define.
21606 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21608 From Kelley Cook <kelleycook@wideopenwest.com>:
21609 * configure.srv: Accept i[34567]86 variants.
21611 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21613 * linux-low.c (linux_wait_for_event): Correct comment typos.
21614 (linux_resume_one_process): Call check_removed_breakpoint.
21615 (linux_send_signal): New function.
21616 (linux_target_ops): Add linux_send_signal.
21617 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21619 * target.h (struct target_ops): Add send_signal.
21621 2003-05-29 Jim Blandy <jimb@redhat.com>
21623 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21624 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21625 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21626 away part of the register's value.
21628 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21630 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21631 (linux_wait_for_event, linux_init_signals): Likewise.
21633 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21635 * configure.in: Check for stdlib.h.
21636 * configure: Regenerated.
21637 * config.in: Regenerated.
21639 2003-01-04 Andreas Schwab <schwab@suse.de>
21641 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21643 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21645 * Makefile.in: Remove obsolete code.
21647 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21649 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21650 defined(PT_FPR0_HI).
21652 2002-11-17 Stuart Hughes <seh@zee2.com>
21654 * linux-arm-low.c (arm_num_regs): Increase.
21655 (arm_regmap): Include status register.
21657 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21659 * linux-low.c (register_addr): Remove incorrect -1 check.
21661 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21663 * linux-low.c (linux_create_inferior): Call setpgid. Return
21665 (unstopped_p, linux_signal_pid): Remove.
21666 (linux_target_ops): Remove linux_signal_pid.
21667 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21668 global instead of target method.
21669 * target.h (struct target_ops): Remove signal_pid. Update comment
21670 for create_inferior.
21671 * server.c (signal_pid): New variable.
21672 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21673 gdbserver. Set the child to be the foreground process group.
21674 (attach_inferior): Set signal_pid.
21676 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21678 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21680 2002-08-20 Jim Blandy <jimb@redhat.com>
21682 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21685 2002-08-01 Andrew Cagney <cagney@redhat.com>
21687 * Makefile.in: Make chill references obsolete.
21689 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21691 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21692 * configure: Regenerate.
21693 * config.in: Regenerate.
21695 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21697 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21698 (perror_with_name, remote_close, remote_open, expect, play): Static.
21700 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21702 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21703 byte offsets instead of an array of indexes.
21704 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21706 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21708 * regcache.c: Add comment.
21710 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21712 * thread-db.c: New file.
21713 * proc-service.c: New file.
21714 * acinclude.m4: New file.
21715 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21716 proc-service.o, and thread-db.o.
21717 (linux-low.o): Add USE_THREAD_DB.
21718 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21719 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21720 * aclocal.m4: Regenerated.
21721 * config.in: Regenerated.
21722 * configure: Regenerated.
21723 * configure.in: Check for proc_service.h, sys/procfs.h,
21724 thread_db.h, and linux/elf.h headrs.
21725 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21726 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21727 Check for -lthread_db and thread support.
21728 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21729 PowerPC, and SuperH.
21730 * i387-fp.c: Constify arguments.
21731 * i387-fp.h: Likewise.
21732 * inferiors.c: (struct thread_info): Renamed from
21733 `struct inferior_info'. Remove PID member. Use generic inferior
21734 list header. All uses updated.
21735 (inferiors, signal_pid): Removed.
21736 (all_threads): New variable.
21737 (get_thread): Define.
21738 (add_inferior_to_list): New function.
21739 (for_each_inferior): New function.
21740 (change_inferior_id): New function.
21741 (add_inferior): Removed.
21742 (remove_inferior): New function.
21743 (add_thread): New function.
21744 (free_one_thread): New function.
21745 (remove_thread): New function.
21746 (clear_inferiors): Use for_each_inferior and free_one_thread.
21747 (find_inferior): New function.
21748 (find_inferior_id): New function.
21749 (inferior_target_data): Update argument type.
21750 (set_inferior_target_data): Likewise.
21751 (inferior_regcache_data): Likewise.
21752 (set_inferior_regcache_data): Likewise.
21753 * linux-low.c (linux_bp_reinsert): Remove.
21754 (all_processes, stopping_threads, using_thrads)
21755 (struct pending_signals, debug_threads, pid_of): New.
21756 (inferior_pid): Replace with macro.
21757 (struct inferior_linux_data): Remove.
21758 (get_stop_pc, add_process): New functions.
21759 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21760 Use add_process and add_thread.
21761 (linux_attach_lwp): New function, based on old linux_attach. Use
21762 add_process and add_thread. Set stop_expected for new threads.
21763 (linux_attach): New function.
21764 (linux_kill_one_process): New function.
21765 (linux_kill): Kill all LWPs.
21766 (linux_thread_alive): Use find_inferior_id.
21767 (check_removed_breakpoints, status_pending_p): New functions.
21768 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21769 Update. Use WNOHANG. Wait for cloned processes also. Update process
21770 struct for the found process.
21771 (linux_wait_for_event): New function.
21772 (linux_wait): Use it. Support LWPs.
21773 (send_sigstop, wait_for_sigstop, stop_all_processes)
21774 (linux_resume_one_process, linux_continue_one_process): New functions.
21775 (linux_resume): Support LWPs.
21776 (REGISTER_RAW_SIZE): Remove.
21777 (fetch_register): Use register_size instead. Call supply_register.
21778 (usr_store_inferior_registers): Likewise. Call collect_register.
21779 Fix recursive case.
21780 (regsets_fetch_inferior_registers): Improve error message.
21781 (regsets_store_inferior_registers): Add debugging.
21782 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21783 (unstopped_p, linux_signal_pid): New functions.
21784 (linux_target_ops): Add linux_signal_pid.
21785 (linux_init_signals): New function.
21786 (initialize_low): Call it. Initialize using_threads.
21787 * regcache.c (inferior_regcache_data): Add valid
21789 (get_regcache): Fetch registers lazily. Add fetch argument
21790 and update all callers.
21791 (regcache_invalidate_one, regcache_invalidate): New
21793 (new_register_cache): Renamed from create_register_cache.
21794 Return the new regcache.
21795 (free_register_cache): Change argument to a void *.
21796 (registers_to_string, registers_from_string): Call get_regcache
21797 with fetch flag set.
21798 (register_data): Make static. Pass fetch flag to get_regcache.
21799 (supply_register): Call get_regcache with fetch flag clear.
21800 (collect_register): Call get_regcache with fetch flag set.
21801 (collect_register_as_string): New function.
21802 * regcache.h: Update.
21803 * remote-utils.c (putpkt): Flush after debug output and use
21805 Handle input interrupts while waiting for an ACK.
21806 (input_interrupt): Use signal_pid method.
21807 (getpkt): Flush after debug output and use stderr.
21808 (outreg): Use collect_register_as_string.
21809 (new_thread_notify, dead_thread_notify): New functions.
21810 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21811 and general_thread.
21812 (look_up_one_symbol): Flush after debug output.
21813 * server.c (step_thread, server_waiting): New variables.
21814 (start_inferior): Don't use signal_pid. Update call to mywait.
21815 (attach_inferior): Update call to mywait.
21816 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21817 (main): Don't fetch/store registers explicitly. Use
21818 set_desired_inferior. Support proposed ``Hs'' packet. Update
21820 * server.h: Update.
21821 (struct inferior_list, struct_inferior_list_entry): New.
21822 * target.c (set_desired_inferior): New.
21823 (write_inferior_memory): Constify.
21824 (mywait): New function.
21825 * target.h: Update.
21826 (struct target_ops): New signal_pid method.
21827 (mywait): Removed macro, added prototype.
21829 * linux-low.h (regset_func): Removed.
21830 (regset_fill_func, regset_store_func): New.
21831 (enum regset_type): New.
21832 (struct regset_info): Add type field. Use new operation types.
21833 (struct linux_target_ops): stop_pc renamed to get_pc.
21834 Add decr_pc_after_break and breakpoint_at.
21835 (get_process, get_thread_proess, get_process_thread)
21836 (strut process_info, all_processes, linux_attach_lwp)
21837 (thread_db_init): New.
21839 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21840 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21841 (the_low_target): Add new members.
21842 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21843 (i386_store_fpxregset): Constify.
21844 (target_regsets): Add new kind identifier.
21845 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21846 (i386_set_pc): Add debugging.
21847 (i386_breakpoint_at): New function.
21848 (the_low_target): Add new members.
21849 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21850 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21851 (mips_breakpoint_at): New.
21852 (the_low_target): Add new members.
21853 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21854 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21855 (the_low_target): Add new members.
21856 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21857 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21858 (the_low_target): Add new members.
21859 * linux-x86-64-low.c (target_regsets): Add new kind
21862 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21864 From Martin Pool <mbp@samba.org>:
21865 * server.c (gdbserver_usage): New function.
21868 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21870 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21871 stop_at -> stop_pc.
21873 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21875 * Makefile.in: Remove obsolete code.
21877 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21879 * linux-low.c (regsets_fetch_inferior_registers),
21880 (regsets_store_inferior_registers): Removed cast to int from
21882 * regcache.h: Added declaration of struct inferior_info.
21884 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21886 * inferiors.c (struct inferior_info): Add regcache_data.
21887 (add_inferior): Call create_register_cache.
21888 (clear_inferiors): Call free_register_cache.
21889 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21890 * regcache.c (struct inferior_regcache_data): New.
21891 (registers): Remove.
21892 (get_regcache): New function.
21893 (create_register_cache, free_register_cache): New functions.
21894 (set_register_cache): Don't initialize the register cache here.
21895 (registers_to_string, registers_from_string, register_data): Call
21897 * regcache.h: Add prototypes.
21898 * server.h: Likewise.
21900 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21902 * mem-break.c: New file.
21903 * mem-break.h: New file.
21904 * Makefile.in: Add mem-break.o rule; update server.h
21906 * inferiors.c (struct inferior_info): Add target_data
21908 (clear_inferiors): Free target_data member if set.
21909 (inferior_target_data, set_inferior_target_data): New functions.
21910 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21911 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21912 * linux-low.c (linux_bp_reinsert): New variable.
21913 (struct inferior_linux_data): New.
21914 (linux_create_inferior): Use set_inferior_target_data.
21915 (linux_attach): Likewise. Call add_inferior.
21916 (linux_wait_for_one_inferior): New function.
21917 (linux_wait): Call it.
21918 (linux_write_memory): Add const.
21919 (initialize_low): Call set_breakpoint_data.
21920 * linux-low.h (struct linux_target_ops): Add breakpoint
21922 * server.c (attach_inferior): Remove extra add_inferior
21924 * server.h: Include mem-break.h. Update inferior.c
21926 * target.c (read_inferior_memory)
21927 (write_inferior_memory): New functions.
21928 * target.h (read_inferior_memory)
21929 (write_inferior_memory): Change macros to prototypes.
21930 (struct target_ops): Update comments. Add const to write_memory
21933 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21935 * linux-low.c (usr_store_inferior_registers): Support
21936 registers which are allowed to fail to store.
21937 * linux-low.h (linux_target_ops): Likewise.
21938 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21939 (ppc_cannot_store_register): FPSCR may not be storable.
21941 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21943 * server.h: Include <string.h> if HAVE_STRING_H.
21944 * ChangeLog: Correct paths in last ChangeLog entry.
21946 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21948 * linux-low.h: Remove obsolete prototypes.
21949 (struct linux_target_ops): New.
21950 (extern the_low_target): New.
21951 * linux-low.c (num_regs, regmap): Remove declarations.
21952 (register_addr): Use the_low_target explicitly.
21953 (fetch_register): Likewise.
21954 (usr_fetch_inferior_registers): Likewise.
21955 (usr_store_inferior_registers): Likewise.
21956 * linux-arm-low.c (num_regs): Remove.
21957 (arm_num_regs): Define.
21958 (arm_regmap): Renamed from regmap, made static.
21959 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21961 (arm_cannot_store_register): Renamed from cannot_store_register,
21963 (the_low_target): New.
21964 * linux-i386-low.c (num_regs): Remove.
21965 (i386_num_regs): Define.
21966 (i386_regmap): Renamed from regmap, made static.
21967 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21969 (i386_cannot_store_register): Renamed from cannot_store_register,
21971 (the_low_target): New.
21972 * linux-ia64-low.c (num_regs): Remove.
21973 (ia64_num_regs): Define.
21974 (ia64_regmap): Renamed from regmap, made static.
21975 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21977 (ia64_cannot_store_register): Renamed from cannot_store_register,
21979 (the_low_target): New.
21980 * linux-m68k-low.c (num_regs): Remove.
21981 (m68k_num_regs): Define.
21982 (m68k_regmap): Renamed from regmap, made static.
21983 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
21985 (m68k_cannot_store_register): Renamed from cannot_store_register,
21987 (the_low_target): New.
21988 * linux-mips-low.c (num_regs): Remove.
21989 (mips_num_regs): Define.
21990 (mips_regmap): Renamed from regmap, made static.
21991 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
21993 (mips_cannot_store_register): Renamed from cannot_store_register,
21995 (the_low_target): New.
21996 * linux-ppc-low.c (num_regs): Remove.
21997 (ppc_num_regs): Define.
21998 (ppc_regmap): Renamed from regmap, made static.
21999 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22001 (ppc_cannot_store_register): Renamed from cannot_store_register,
22003 (the_low_target): New.
22004 * linux-s390-low.c (num_regs): Remove.
22005 (s390_num_regs): Define.
22006 (s390_regmap): Renamed from regmap, made static.
22007 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22009 (s390_cannot_store_register): Renamed from cannot_store_register,
22011 (the_low_target): New.
22012 * linux-sh-low.c (num_regs): Remove.
22013 (sh_num_regs): Define.
22014 (sh_regmap): Renamed from regmap, made static.
22015 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22017 (sh_cannot_store_register): Renamed from cannot_store_register,
22019 (the_low_target): New.
22020 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22021 (the_low_target): New.
22023 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22025 * Makefile.in: Add stamp-h target.
22026 * configure.in: Create stamp-h.
22027 * configure: Regenerated.
22029 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22031 * inferiors.c: New file.
22032 * target.c: New file.
22033 * target.h: New file.
22034 * Makefile.in: Add target.o and inferiors.o. Update
22036 * linux-low.c (inferior_pid): New static variable,
22037 moved from server.c.
22038 (linux_create_inferior): Renamed from create_inferior.
22039 Call add_inferior. Return 0 on success instead of a PID.
22040 (linux_attach): Renamed from myattach.
22041 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22042 (linux_thread_alive): Renamed from mythread_alive.
22043 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22045 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22046 (regsets_store_inferior_registers): Correct error message.
22047 Add missing ``return 0''.
22048 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22049 (linux_store_registers): Renamed from store_inferior_registers.
22050 (linux_read_memory): Renamed from read_inferior_memory.
22051 (linux_write_memory): Renamed from write_inferior_memory.
22052 (linux_target_ops): New structure.
22053 (initialize_low): Call set_target_ops ().
22054 * remote-utils.c (unhexify): New function.
22055 (hexify): New function.
22056 (input_interrupt): Send signals to ``signal_pid''.
22057 * server.c (inferior_pid): Remove.
22058 (start_inferior): Update create_inferior call.
22059 (attach_inferior): Call add_inferior.
22060 (handle_query): New function.
22061 (main): Call handle_query for `q' packets.
22062 * server.h: Include "target.h". Remove obsolete prototypes.
22063 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22065 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22067 * Makefile.in: Add WARN_CFLAGS. Update configury
22069 * configure.in: Check for <string.h>
22070 * configure: Regenerate.
22071 * config.in: Regenerate.
22072 * gdbreplay.c: Include needed system headers.
22073 (remote_open): Remove strchr prototype.
22074 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22075 * regcache.c (supply_register): Change buf argument to const void *.
22076 (supply_register_by_name): Likewise.
22077 (collect_register): Change buf argument to void *.
22078 (collect_register_by_name): Likewise.
22079 * regcache.h: Add missing prototypes.
22080 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22081 * server.c (handle_query): New function.
22082 (attached): New static variable, moved out of main.
22083 (main): Quiet longjmp clobber warnings.
22084 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22085 * utils.c (error): Remove NORETURN.