1 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
3 * configure.ac: Remove check for fs_base/gs_base in
5 * configure: Re-generate.
6 * config.in: Re-generate.
7 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
8 x86_store_gregset): Adjust.
10 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
12 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
15 2020-04-16 Tom Tromey <tromey@adacore.com>
17 * win32-low.cc (windows_nat::handle_access_violation): New
20 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
22 * win32-low.cc (get_child_debug_event): Fix format string warning.
24 2020-04-13 Tom Tromey <tom@tromey.com>
26 * server.h (gdb_fildes_t): Remove typedef.
27 * remote-utils.c (remote_desc, list_desc): Now int.
28 (INVALID_DESCRIPTOR): Remove.
29 (gdb_connected, remote_close)
30 (check_remote_input_interrupt_request): Update.
31 * utils.h (pfildes): Don't declare.
32 * utils.c (pfildes): Remove.
34 2020-04-13 Tom Tromey <tom@tromey.com>
36 * server.h (handle_serial_event, handle_target_event): Update.
37 * server.c: Don't call initialize_event_loop.
38 (keep_processing_events): New global.
39 (handle_serial_event): Return void. Set keep_processing_events.
40 (handle_target_event): Return void.
41 (start_event_loop): Move from event-loop.c. Rewrite.
42 * remote-utils.c (handle_accept_event): Return void.
43 (reset_readchar): Use delete_timer.
44 (process_remaining): Return void.
45 (reschedule): Use create_timer.
46 * event-loop.h: Remove.
47 * event-loop.cc: Remove.
48 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
50 2020-04-13 Tom Tromey <tom@tromey.com>
52 * server.c (invoke_async_signal_handlers)
53 (check_async_event_handlers, flush_streams, gdb_select): New
56 2020-04-13 Tom Tromey <tom@tromey.com>
61 2020-04-08 Tom Tromey <tromey@adacore.com>
64 * win32-low.c (child_continue): Call matching_pending_stop.
65 (get_child_debug_event): Call fetch_pending_stop. Push pending
68 2020-04-08 Tom Tromey <tromey@adacore.com>
70 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
71 (win32_process_target::supports_stopped_by_sw_breakpoint):
73 * win32-low.c (win32_supports_z_point_type): Always handle
75 (win32_insert_point): Call insert_memory_breakpoint when needed.
76 (win32_remove_point): Call remove_memory_breakpoint when needed.
77 (win32_process_target::stopped_by_sw_breakpoint)
78 (win32_process_target::supports_stopped_by_sw_breakpoint): New
80 (win32_target_ops): Update.
81 (maybe_adjust_pc): New function.
82 (win32_wait): Call maybe_adjust_pc.
84 2020-04-08 Tom Tromey <tromey@adacore.com>
86 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
88 * win32-i386-low.c (the_low_target): Update.
89 * win32-arm-low.c (the_low_target): Update.
91 2020-04-08 Tom Tromey <tromey@adacore.com>
93 * win32-low.h (win32_process_target::read_pc)
94 (win32_process_target::write_pc): Declare.
95 * win32-low.c (win32_process_target::read_pc)
96 (win32_process_target::write_pc): New methods.
97 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
99 (the_low_target): Update.
100 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
102 (the_low_target): Update.
104 2020-04-08 Tom Tromey <tromey@adacore.com>
106 * win32-low.c (win32_kill, get_child_debug_event): Use
107 wait_for_debug_event.
109 2020-04-08 Tom Tromey <tromey@adacore.com>
111 * win32-low.c (child_continue): Call continue_last_debug_event.
113 2020-04-08 Tom Tromey <tromey@adacore.com>
115 * win32-low.c (handle_exception): Remove.
116 (windows_nat::handle_ms_vc_exception): New function.
117 (get_child_debug_event): Add "continue_status" parameter.
119 (win32_wait): Update.
121 2020-04-08 Tom Tromey <tromey@adacore.com>
123 * win32-low.c (windows_nat::handle_load_dll): Rename from
124 handle_load_dll. No longer static.
125 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
128 2020-04-08 Tom Tromey <tromey@adacore.com>
130 * win32-low.c (handle_output_debug_string): Add parameter. Change
132 (win32_kill, get_child_debug_event): Update.
134 2020-04-08 Tom Tromey <tromey@adacore.com>
136 * win32-low.c (current_process_handle, current_process_id)
137 (main_thread_id, last_sig, current_event, siginfo_er): Move to
140 2020-04-08 Tom Tromey <tromey@adacore.com>
142 * win32-low.c (get_image_name): Remove.
143 (handle_load_dll): Update.
145 2020-04-08 Tom Tromey <tromey@adacore.com>
147 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
148 No longer static. Change parameters.
149 (child_add_thread, child_fetch_inferior_registers)
150 (child_store_inferior_registers, win32_resume)
151 (win32_get_tib_address): Update.
153 2020-04-08 Tom Tromey <tromey@adacore.com>
155 * win32-low.h (struct win32_target_ops): Use qualified names where
157 * win32-i386-low.c: Add "using namespace".
158 * win32-low.c: Add "using namespace".
159 * win32-arm-low.c: Add "using namespace".
161 2020-04-08 Tom Tromey <tromey@adacore.com>
163 * win32-low.c (delete_thread_info): Don't call CloseHandle.
165 2020-04-08 Tom Tromey <tromey@adacore.com>
167 * win32-low.c (win32_require_context, suspend_one_thread): Use
168 windows_thread_info::suspend.
169 (continue_one_thread): Use windows_thread_info::resume.
170 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
172 2020-04-08 Tom Tromey <tromey@adacore.com>
174 * win32-i386-low.c (update_debug_registers)
175 (i386_prepare_to_resume, i386_thread_added): Update.
177 2020-04-08 Tom Tromey <tromey@adacore.com>
179 * win32-low.c (child_add_thread): Use new.
180 (delete_thread_info): Use delete.
182 2020-04-08 Tom Tromey <tromey@adacore.com>
184 * win32-low.h (struct windows_thread_info): Remove.
186 2020-04-08 Tom Tromey <tromey@adacore.com>
188 * win32-low.h (struct windows_thread_info): Rename from
189 win32_thread_info. Remove typedef.
190 (struct win32_target_ops, win32_require_context): Update.
191 * win32-low.c (win32_get_thread_context)
192 (win32_set_thread_context, win32_prepare_to_resume)
193 (win32_require_context, thread_rec, child_add_thread)
194 (delete_thread_info, continue_one_thread)
195 (child_fetch_inferior_registers, child_store_inferior_registers)
196 (win32_resume, suspend_one_thread, win32_get_tib_address):
198 * win32-i386-low.c (update_debug_registers)
199 (win32_get_current_dr, i386_get_thread_context)
200 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
201 (i386_fetch_inferior_register, i386_store_inferior_register):
203 * win32-arm-low.c (arm_get_thread_context)
204 (arm_fetch_inferior_register, arm_store_inferior_register):
207 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
209 * linux-low.h (struct linux_target_ops): Remove.
210 (the_low_target): Remove.
211 * linux-x86-low.cc (the_low_target): Remove.
212 * linux-aarch64-low.cc (the_low_target): Ditto.
213 * linux-arm-low.cc (the_low_target): Ditto.
214 * linux-bfin-low.cc (the_low_target): Ditto.
215 * linux-cris-low.cc (the_low_target): Ditto.
216 * linux-crisv32-low.cc (the_low_target): Ditto.
217 * linux-ia64-low.cc (the_low_target): Ditto.
218 * linux-m32r-low.cc (the_low_target): Ditto.
219 * linux-m68k-low.cc (the_low_target): Ditto.
220 * linux-mips-low.cc (the_low_target): Ditto.
221 * linux-nios2-low.cc (the_low_target): Ditto.
222 * linux-ppc-low.cc (the_low_target): Ditto.
223 * linux-riscv-low.cc (the_low_target): Ditto.
224 * linux-s390-low.cc (the_low_target): Ditto.
225 * linux-sh-low.cc (the_low_target): Ditto.
226 * linux-sparc-low.cc (the_low_target): Ditto.
227 * linux-tic6x-low.cc (the_low_target): Ditto.
228 * linux-tile-low.cc (the_low_target): Ditto.
229 * linux-xtensa-low.cc (the_low_target): Ditto.
231 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
233 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
234 linux target define the op by overriding the declaration in
235 process_stratum_target.
237 * linux-low.h (struct linux_target_ops): Remove the op.
238 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
239 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
240 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
241 (x86_get_ipa_tdesc_idx): Turn into...
242 (x86_target::get_ipa_tdesc_idx): ...this.
243 (the_low_target): Remove the op field.
244 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
245 (ppc_get_ipa_tdesc_idx): Turn into...
246 (ppc_target::get_ipa_tdesc_idx): ...this.
247 (the_low_target): Remove the op field.
248 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
249 (s390_get_ipa_tdesc_idx): Turn into...
250 (s390_target::get_ipa_tdesc_idx): ...this.
251 (the_low_target): Remove the op field.
253 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
255 Turn the 'get_syscall_trapinfo' linux target op into a method
256 of process_stratum_target.
258 * linux-low.h (struct linux_target_ops): Remove the op.
259 (class linux_process_target) <get_syscall_trapinfo>
260 <gdb_catch_this_syscall>
261 <low_supports_catch_syscall>
262 <low_get_syscall_trapinfo>: Declare.
263 * linux-low.cc (get_syscall_trapinfo): Turn into...
264 (linux_process_target::get_syscall_trapinfo): ...this.
265 (linux_process_target::low_get_syscall_trapinfo): Define.
266 (gdb_catch_this_syscall_p): Turn into...
267 (linux_process_target::gdb_catch_this_syscall): ...this.
268 (linux_process_target::low_supports_catch_syscall): Define.
270 Update the callers below.
272 (linux_process_target::wait_1)
273 (linux_process_target::supports_catch_syscall)
275 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
276 <low_get_syscall_trapinfo>: Declare.
277 (x86_target::low_supports_catch_syscall): Define.
278 (x86_get_syscall_trapinfo): Turn into...
279 (x86_target::low_get_syscall_trapinfo): ...this.
280 (the_low_target): Remove the op field.
281 * linux-aarch64-low.cc (class aarch64_target)
282 <low_supports_catch_syscall>
283 <low_get_syscall_trapinfo>: Declare.
284 (aarch64_target::low_supports_catch_syscall): Define.
285 (aarch64_get_syscall_trapinfo): Turn into...
286 (aarch64_target::low_get_syscall_trapinfo): ...this.
287 (the_low_target): Remove the op field.
288 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
289 <low_get_syscall_trapinfo>: Declare.
290 (arm_target::low_supports_catch_syscall): Define.
291 (arm_get_syscall_trapinfo): Turn into...
292 (arm_target::low_get_syscall_trapinfo): ...this.
293 (the_low_target): Remove the op field.
294 * linux-ppc-low.cc (the_low_target): Remove the op field.
295 * linux-s390-low.cc (the_low_target): Remove the op field.
297 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
299 Remove the 'supports_hardware_single_step' linux target op and
300 override the process_stratum_target's op definition in
301 linux_process_target to return true.
303 * linux-low.h (struct linux_target_ops): Remove the op.
304 (class linux_process_target) <finish_step_over>
305 <maybe_hw_step>: Declare.
306 * linux-low.cc (can_hardware_single_step): Remove.
307 (maybe_hw_step): Turn into...
308 (linux_process_target::maybe_hw_step): ...this.
309 (finish_step_over): Turn into...
310 (linux_process_target::finish_step_over): ...this.
311 (linux_process_target::supports_hardware_single_step): Update
314 Update the callers below.
316 (linux_process_target::single_step)
317 (linux_process_target::resume_one_lwp_throw)
319 * linux-arm-low.cc (class arm_target)
320 <supports_hardware_single_step>: Declare.
321 (arm_supports_hardware_single_step): Turn into...
322 (arm_target::supports_hardware_single_step): ...this.
323 (the_low_target): Remove the op field.
324 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
325 (the_low_target): Remove the op field.
326 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
328 (the_low_target): Remove the op field.
329 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
330 (the_low_target): Remove the op field.
331 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
332 (the_low_target): Remove the op field.
333 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
334 (the_low_target): Remove the op field.
335 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
336 (the_low_target): Remove the op field.
337 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
338 (the_low_target): Remove the op field.
339 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
340 (the_low_target): Remove the op field.
341 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
342 (the_low_target): Remove the op field.
343 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
344 (the_low_target): Remove the op field.
345 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
346 (the_low_target): Remove the op field.
347 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
349 (the_low_target): Remove the op field.
351 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
353 Turn the 'supports_range_stepping' linux target op into a method
354 of linux_process_target.
356 * linux-low.h (struct linux_target_ops): Remove the op.
357 (class linux_process_target) <low_supports_range_stepping>: Declare.
358 * linux-low.cc (linux_process_target::low_supports_range_stepping):
360 (linux_process_target::supports_range_stepping): Update the call
362 * linux-x86-low.cc (class x86_target)
363 <low_supports_range_stepping>: Declare.
364 (x86_supports_range_stepping): Turn into...
365 (x86_target::low_supports_range_stepping): ...this.
366 (the_low_target): Remove the op field.
367 * linux-aarch64-low.cc (class aarch64_target)
368 <low_supports_range_stepping>: Declare.
369 (aarch64_supports_range_stepping): Turn into...
370 (aarch64_target::low_supports_range_stepping): ...this.
371 (the_low_target): Remove the op field.
372 * linux-arm-low.cc (the_low_target): Remove the op field.
373 * linux-bfin-low.cc (the_low_target): Ditto.
374 * linux-crisv32-low.cc (the_low_target): Ditto.
375 * linux-m32r-low.cc (the_low_target): Ditto.
376 * linux-m68k-low.cc (the_low_target): Ditto.
377 * linux-ppc-low.cc (the_low_target): Ditto.
378 * linux-s390-low.cc (the_low_target): Ditto.
379 * linux-sh-low.cc (the_low_target): Ditto.
380 * linux-tic6x-low.cc (the_low_target): Ditto.
381 * linux-tile-low.cc (the_low_target): Ditto.
382 * linux-xtensa-low.cc (the_low_target): Ditto.
384 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
386 Remove the 'emit_ops' linux target ops and let the concrete
387 linux target define the op by overriding the declaration of
388 process_stratum_target.
390 * linux-low.h (struct linux_target_ops): Remove the op.
391 (class linux_process_target) <emit_ops>: Remove.
392 * linux-low.cc (linux_process_target::emit_ops): Remove.
393 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
394 (x86_emit_ops): Turn into...
395 (x86_target::emit_ops): ...this.
396 (the_low_target): Remove the op field.
397 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
398 (aarch64_emit_ops): Turn into...
399 (aarch64_target::emit_ops): ...this.
400 (the_low_target): Remove the op field.
401 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
402 (ppc_emit_ops): Turn into...
403 (ppc_target::emit_ops): ...this.
404 (the_low_target): Remove the op field.
405 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
406 (s390_emit_ops): Turn into...
407 (s390_target::emit_ops): ...this.
408 (the_low_target): Remove the op field.
409 * linux-arm-low.cc (the_low_target): Remove the op field.
410 * linux-bfin-low.cc (the_low_target): Ditto.
411 * linux-crisv32-low.cc (the_low_target): Ditto.
412 * linux-m32r-low.cc (the_low_target): Ditto.
413 * linux-m68k-low.cc (the_low_target): Ditto.
414 * linux-sh-low.cc (the_low_target): Ditto.
415 * linux-tic6x-low.cc (the_low_target): Ditto.
416 * linux-tile-low.cc (the_low_target): Ditto.
417 * linux-xtensa-low.cc (the_low_target): Ditto.
419 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421 Remove the 'install_fast_tracepoint_jump_pad' and
422 'get_min_fast_tracepoint_insn_len' linux target ops to let the
423 concrete linux target define the ops by overriding the declarations
424 of process_stratum_target.
426 * linux-low.h (struct linux_target_ops): Remove the ops.
427 (class linux_process_target) <supports_fast_tracepoints>
428 <install_fast_tracepoint_jump_pad>
429 <get_min_fast_tracepoint_insn_len>: Remove.
430 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
431 (linux_process_target::install_fast_tracepoint_jump_pad)
432 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
433 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
434 <install_fast_tracepoint_jump_pad>
435 <get_min_fast_tracepoint_insn_len>: Declare.
436 (x86_target::supports_fast_tracepoints): Define.
437 (x86_install_fast_tracepoint_jump_pad): Turn into...
438 (x86_target::install_fast_tracepoint_jump_pad): ...this.
439 (x86_get_min_fast_tracepoint_insn_len): Turn into...
440 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
441 (the_low_target): Remove the op fields.
442 * linux-aarch64-low.cc (class aarch64_target)
443 <supports_fast_tracepoints>
444 <install_fast_tracepoint_jump_pad>
445 <get_min_fast_tracepoint_insn_len>: Declare.
446 (aarch64_target::supports_fast_tracepoints): Define.
447 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
448 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
449 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
450 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
451 (the_low_target): Remove the op fields.
452 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
453 <install_fast_tracepoint_jump_pad>
454 <get_min_fast_tracepoint_insn_len>: Declare.
455 (ppc_target::supports_fast_tracepoints): Define.
456 (ppc_install_fast_tracepoint_jump_pad): Turn into...
457 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
458 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
459 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
460 (the_low_target): Remove the op fields.
461 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
462 <install_fast_tracepoint_jump_pad>
463 <get_min_fast_tracepoint_insn_len>: Declare.
464 (s390_target::supports_fast_tracepoints): Define.
465 (s390_install_fast_tracepoint_jump_pad): Turn into...
466 (s390_target::install_fast_tracepoint_jump_pad): ...this.
467 (s390_get_min_fast_tracepoint_insn_len): Turn into...
468 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
469 (the_low_target): Remove the op fields.
470 * linux-arm-low.cc (the_low_target): Remove the op fields.
471 * linux-bfin-low.cc (the_low_target): Ditto.
472 * linux-crisv32-low.cc (the_low_target): Ditto.
473 * linux-m32r-low.cc (the_low_target): Ditto.
474 * linux-m68k-low.cc (the_low_target): Ditto.
475 * linux-sh-low.cc (the_low_target): Ditto.
476 * linux-tic6x-low.cc (the_low_target): Ditto.
477 * linux-tile-low.cc (the_low_target): Ditto.
478 * linux-xtensa-low.cc (the_low_target): Ditto.
480 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
482 Turn the 'get_thread_area' linux target op into a method of
483 process_stratum_target.
485 * linux-low.h (struct linux_target_ops): Remove the op.
486 (class linux_process_target) <stuck_in_jump_pad>
487 <linux_fast_tracepoint_collecting>
488 <low_get_thread_area>: Declare.
489 * linux-low.cc (supports_fast_tracepoints): Remove.
490 (linux_fast_tracepoint_collecting): Turn into...
491 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
492 (linux_process_target::low_get_thread_area): Define.
493 (stuck_in_jump_pad_callback): Turn into...
494 (linux_process_target::stuck_in_jump_pad): ...this.
496 Update the caller below.
498 (linux_process_target::stabilize_threads)
500 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
502 (x86_get_thread_area): Turn into...
503 (x86_target::low_get_thread_area): ...this.
504 (the_low_target): Remove the op field.
505 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
507 (aarch64_get_thread_area): Turn into...
508 (aarch64_target::low_get_thread_area): ...this.
509 (the_low_target): Remove the op field.
510 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
512 (ppc_get_thread_area): Turn into...
513 (ppc_target::low_get_thread_area): ...this.
514 (the_low_target): Remove the op field.
515 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
517 (s390_get_thread_area): Turn into...
518 (s390_target::low_get_thread_area): ...this.
519 (the_low_target): Remove the op field.
520 * linux-arm-low.cc (the_low_target): Remove the op field.
521 * linux-bfin-low.cc (the_low_target): Ditto.
522 * linux-crisv32-low.cc (the_low_target): Ditto.
523 * linux-m32r-low.cc (the_low_target): Ditto.
524 * linux-m68k-low.cc (the_low_target): Ditto.
525 * linux-sh-low.cc (the_low_target): Ditto.
526 * linux-tic6x-low.cc (the_low_target): Ditto.
527 * linux-tile-low.cc (the_low_target): Ditto.
528 * linux-xtensa-low.cc (the_low_target): Ditto.
530 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
532 Remote the 'supports_tracepoints' linux target op and let the
533 concrete linux target define it by overriding the op declared in
534 process_stratum_target.
536 * linux-low.h (struct linux_target_ops): Remove the op.
537 (class linux_process_target) <supports_tracepoints>: Remove.
538 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
539 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
541 (x86_supports_tracepoints): Turn into...
542 (x86_target::supports_tracepoints): ...this.
543 (the_low_target): Remove the op field.
544 * linux-aarch64-low.cc (class aarch64_target)
545 <supports_tracepoints>: Declare.
546 (aarch64_supports_tracepoints): Turn into...
547 (aarch64_target::supports_tracepoints): ...this.
548 (the_low_target): Remove the op field.
549 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
551 (ppc_supports_tracepoints): Turn into...
552 (ppc_target::supports_tracepoints): ...this.
553 (the_low_target): Remove the op field.
554 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
556 (s390_supports_tracepoints): Turn into...
557 (s390_target::supports_tracepoints): ...this.
558 (the_low_target): Remove the op field.
559 * linux-arm-low.cc (the_low_target): Remove the op field.
560 * linux-bfin-low.cc (the_low_target): Ditto.
561 * linux-crisv32-low.cc (the_low_target): Ditto.
562 * linux-m32r-low.cc (the_low_target): Ditto.
563 * linux-m68k-low.cc (the_low_target): Ditto.
564 * linux-sh-low.cc (the_low_target): Ditto.
565 * linux-tic6x-low.cc (the_low_target): Ditto.
566 * linux-tile-low.cc (the_low_target): Ditto.
567 * linux-xtensa-low.cc (the_low_target): Ditto.
569 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
571 Remove the 'process_qsupported' linux target op and let a concrete
572 linux target define the op by overriding the op declaration in
573 process_stratum_target.
575 * linux-low.h (struct linux_target_ops): Remove the op.
576 (class linux_process_target) <process_qsupported>: Remove.
577 * linux-low.cc (linux_process_target::process_qsupported): Remove.
578 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
579 (x86_linux_process_qsupported): Turn into...
580 (x86_target::process_qsupported): ...this.
581 (the_low_target): Remove the op field.
582 * linux-aarch64-low.cc (the_low_target): Remove the op
584 * linux-arm-low.cc (the_low_target): Ditto.
585 * linux-bfin-low.cc (the_low_target): Ditto.
586 * linux-crisv32-low.cc (the_low_target): Ditto.
587 * linux-m32r-low.cc (the_low_target): Ditto.
588 * linux-m68k-low.cc (the_low_target): Ditto.
589 * linux-ppc-low.cc (the_low_target): Ditto.
590 * linux-s390-low.cc (the_low_target): Ditto.
591 * linux-sh-low.cc (the_low_target): Ditto.
592 * linux-tic6x-low.cc (the_low_target): Ditto.
593 * linux-tile-low.cc (the_low_target): Ditto.
594 * linux-xtensa-low.cc (the_low_target): Ditto.
596 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
598 Turn the 'prepare_to_resume' linux target op into a method of
599 linux_process_target.
601 * linux-low.h (struct linux_target_ops): Remove the op.
602 (class linux_process_target) <low_prepare_to_resume>: Declare.
603 * linux-low.cc (linux_process_target::low_prepare_to_resume):
606 Update the callers below:
608 (linux_process_target::resume_one_lwp_throw)
609 (linux_process_target::low_prepare_to_resume)
611 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
613 (x86_target::low_prepare_to_resume): Define.
614 (the_low_target): Remove the op field.
615 * linux-aarch64-low.cc (class aarch64_target)
616 <low_prepare_to_resume>: Declare.
617 (aarch64_target::low_prepare_to_resume): Define.
618 (the_low_target): Remove the op field.
619 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
621 (arm_prepare_to_resume): Turn into...
622 (arm_target::low_prepare_to_resume): ...this.
623 (the_low_target): Remove the op field.
624 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
626 (mips_linux_prepare_to_resume): Turn into...
627 (mips_target::low_prepare_to_resume): ...this.
628 (the_low_target): Remove the op field.
629 * linux-bfin-low.cc (the_low_target): Remove the op field.
630 * linux-crisv32-low.cc (the_low_target): Ditto.
631 * linux-m32r-low.cc (the_low_target): Ditto.
632 * linux-m68k-low.cc (the_low_target): Ditto.
633 * linux-ppc-low.cc (the_low_target): Ditto.
634 * linux-s390-low.cc (the_low_target): Ditto.
635 * linux-sh-low.cc (the_low_target): Ditto.
636 * linux-tic6x-low.cc (the_low_target): Ditto.
637 * linux-tile-low.cc (the_low_target): Ditto.
638 * linux-xtensa-low.cc (the_low_target): Ditto.
640 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
642 Turn the 'new_process', 'delete_process', 'new_thread',
643 'delete_thread', and 'new_fork' linux target ops into methods
644 of linux_process_target.
646 * linux-low.h (struct linux_target_ops): Remove the ops.
647 (class linux_process_target) <add_linux_process>
652 <check_zombie_leaders>
658 <low_new_fork>: Declare.
659 * linux-low.cc (delete_lwp): Turn into...
660 (linux_process_target::delete_lwp): ...this.
661 (linux_process_target::low_delete_thread): Define.
662 (linux_add_process): Turn into...
663 (linux_process_target::add_linux_process): ...this.
664 (linux_process_target::low_new_process): Define.
665 (linux_process_target::low_delete_process): Define.
666 (linux_process_target::low_new_fork): Define.
667 (add_lwp): Turn into...
668 (linux_process_target::add_lwp): ...this.
669 (linux_process_target::low_new_thread): Define.
670 (linux_attach_lwp): Turn into...
671 (linux_process_target::attach_lwp): ...this.
672 (linux_detach_one_lwp): Turn into...
673 (linux_process_target::detach_one_lwp): ...this.
674 (linux_detach_lwp_callback): Remove and inline...
675 (linux_process_target::detach): ...here.
676 (check_zombie_leaders): Turn into...
677 (linux_process_target::check_zombie_leaders): ...this.
678 (filter_exit_event): Turn into...
679 (linux_process_target::filter_exit_event): ...this.
681 Update the callers below.
683 (linux_process_target::handle_extended_wait)
684 (linux_process_target::create_inferior)
685 (attach_proc_task_lwp_callback)
686 (linux_process_target::attach)
687 (linux_process_target::detach)
688 (linux_process_target::mourn)
689 * thread-db.cc (attach_thread)
691 * linux-x86-low.cc (class x86_target) <low_new_process>
695 <low_new_fork>: Declare.
696 (x86_linux_new_process): Turn into...
697 (x86_target::low_new_process): ...this.
698 (x86_linux_delete_process): Turn into...
699 (x86_target::low_delete_process): ...this.
700 (x86_target::low_new_thread): Define.
701 (x86_target::low_delete_thread): Define.
702 (x86_linux_new_fork): Turn into...
703 (x86_target::low_new_fork): ...this.
704 (the_low_target): Remove the op fields.
705 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
709 <low_new_fork>: Declare.
710 (aarch64_linux_new_process): Turn into...
711 (aarch64_target::low_new_process): ...this.
712 (aarch64_linux_delete_process): Turn into...
713 (aarch64_target::low_delete_process): ...this.
714 (aarch64_target::low_new_thread): Define.
715 (aarch64_target::low_delete_thread): Define.
716 (aarch64_linux_new_fork): Turn into...
717 (aarch64_target::low_new_fork): ...this.
718 (the_low_target): Remove the op fields.
719 * linux-arm-low.cc (class arm_target) <low_new_process>
723 <low_new_fork>: Declare.
724 (arm_new_process): Turn into...
725 (arm_target::low_new_process): ...this.
726 (arm_delete_process): Turn into...
727 (arm_target::low_delete_process): ...this.
728 (arm_new_thread): Turn into...
729 (arm_target::low_new_thread): ...this.
730 (arm_delete_thread): Turn into...
731 (arm_target::low_delete_thread): ...this.
732 (arm_new_fork): Turn into...
733 (arm_target::low_new_fork): ...this.
734 (the_low_target): Remove the op fields.
735 * linux-mips-low.cc (class mips_target) <low_new_process>
739 <low_new_fork>: Declare.
740 (mips_linux_new_process): Turn into...
741 (mips_target::low_new_process): ...this.
742 (mips_linux_delete_process): Turn into...
743 (mips_target::low_delete_process): ...this.
744 (mips_linux_new_thread): Turn into...
745 (mips_target::low_new_thread): ...this.
746 (mips_linux_delete_thread): Turn into...
747 (mips_target::low_delete_thread): ...this.
748 (mips_linux_new_fork): Turn into...
749 (mips_target::low_new_fork): ...this.
750 (the_low_target): Remove the op fields.
751 * linux-bfin-low.cc (the_low_target): Remove the op fields.
752 * linux-crisv32-low.cc (the_low_target): Ditto.
753 * linux-m32r-low.cc (the_low_target): Ditto.
754 * linux-m68k-low.cc (the_low_target): Ditto.
755 * linux-ppc-low.cc (the_low_target): Ditto.
756 * linux-s390-low.cc (the_low_target): Ditto.
757 * linux-sh-low.cc (the_low_target): Ditto.
758 * linux-tic6x-low.cc (the_low_target): Ditto.
759 * linux-tile-low.cc (the_low_target): Ditto.
760 * linux-xtensa-low.cc (the_low_target): Ditto.
762 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
764 Turn the 'siginfo_fixup' linux target op into a method of
765 linux_process_target.
767 * linux-low.h (struct linux_target_ops): Remove the op.
768 (class linux_process_target) <siginfo_fixup>
769 <low_siginfo_fixup>: Declare.
770 * linux-low.cc (siginfo_fixup): Turn into...
771 (linux_process_target::siginfo_fixup): ...this.
772 (linux_process_target::low_siginfo_fixup): Define.
773 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
774 (x86_siginfo_fixup): Turn into...
775 (x86_target::low_siginfo_fixup): ...this.
776 (the_low_target): Remove the op field.
777 * linux-aarch64-low.cc (class aarch64_target):
778 <low_siginfo_fixup>: Declare.
779 (aarch64_linux_siginfo_fixup): Turn into...
780 (aarch64_target::low_siginfo_fixup): ...this.
781 (the_low_target): Remove the op field.
782 * linux-arm-low.cc (the_low_target): Remove the op field.
783 * linux-bfin-low.cc (the_low_target): Ditto.
784 * linux-crisv32-low.cc (the_low_target): Ditto.
785 * linux-m32r-low.cc (the_low_target): Ditto.
786 * linux-m68k-low.cc (the_low_target): Ditto.
787 * linux-mips-low.cc (the_low_target): Ditto.
788 * linux-ppc-low.cc (the_low_target): Ditto.
789 * linux-s390-low.cc (the_low_target): Ditto.
790 * linux-sh-low.cc (the_low_target): Ditto.
791 * linux-tic6x-low.cc (the_low_target): Ditto.
792 * linux-tile-low.cc (the_low_target): Ditto.
793 * linux-xtensa-low.cc (the_low_target): Ditto.
795 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
797 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
798 linux target ops into methods of linux_process_target.
800 * linux-low.h (struct linux_target_ops): Remove the ops.
801 (class linux_process_target) <low_collect_ptrace_register>
802 <low_store_ptrace_register>: Declare.
803 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
804 (linux_process_target::low_supply_ptrace_register): Define.
806 Update the callers below.
808 (linux_process_target::fetch_register)
809 (linux_process_target::store_register)
811 * linux-x86-low.cc (the_low_target): Remove the op fields.
812 * linux-aarch64-low.cc (the_low_target): Ditto.
813 * linux-arm-low.cc (the_low_target): Ditto.
814 * linux-bfin-low.cc (the_low_target): Ditto.
815 * linux-crisv32-low.cc (the_low_target): Ditto.
816 * linux-m32r-low.cc (the_low_target): Ditto.
817 * linux-m68k-low.cc (the_low_target): Ditto.
818 * linux-sh-low.cc (the_low_target): Ditto.
819 * linux-sparc-low.cc (the_low_target): Ditto.
820 * linux-tic6x-low.cc (the_low_target): Ditto.
821 * linux-tile-low.cc (the_low_target): Ditto.
822 * linux-xtensa-low.cc (the_low_target): Ditto.
823 * linux-mips-low.cc (class mips_target)
824 <low_collect_ptrace_register>
825 <low_supply_ptrace_register>: Declare.
826 (mips_collect_ptrace_register): Turn into ...
827 (mips_target::low_collect_ptrace_register): ...this.
828 (mips_supply_ptrace_register): Turn into...
829 (mips_target::low_supply_ptrace_register): ...this.
830 (the_low_target): Remove the op fields.
831 * linux-ppc-low.cc (class ppc_target)
832 <low_collect_ptrace_register>
833 <low_supply_ptrace_register>: Declare.
834 (ppc_collect_ptrace_register): Turn into ...
835 (ppc_target::low_collect_ptrace_register): ...this.
836 (ppc_supply_ptrace_register): Turn into ...
837 (ppc_target::low_supply_ptrace_register): ...this.
838 (ppc_fill_gregset): Update for the calls to
839 low_collect_ptrace_register.
840 (the_low_target): Remove the op fields.
841 * linux-s390-low.cc (class s390_target)
842 <low_collect_ptrace_register>
843 <low_supply_ptrace_register>: Declare.
844 (s390_collect_ptrace_register): Turn into ...
845 (s390_target::low_collect_ptrace_register): ...this.
846 (s390_supply_ptrace_register): Turn into ...
847 (s390_target::low_supply_ptrace_register): ...this.
848 (s390_fill_gregset): Update for the calls to
849 low_collect_ptrace_register.
850 (the_low_target): Remove the op fields.
852 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
854 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
855 target ops into methods of linux_process_target.
857 * linux-low.h (struct linux_target_ops): Remove the ops.
858 (class linux_process_target) <check_stopped_by_watchpoint>
859 <low_stopped_by_watchpoint>
860 <low_stopped_data_address>: Declare.
861 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
862 (linux_process_target::check_stopped_by_watchpoint): ...this.
863 (linux_process_target::low_stopped_by_watchpoint): Define.
864 (linux_process_target::low_stopped_data_address): Define.
865 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
866 <low_stopped_data_address>: Declare.
867 (x86_stopped_by_watchpoint): Turn into...
868 (x86_target::low_stopped_by_watchpoint): ...this.
869 (x86_stopped_data_address): Turn into...
870 (x86_target::low_stopped_data_address): ...this.
871 (the_low_target): Remove the op fields.
872 * linux-aarch64-low.cc (class aarch64_target)
873 <low_stopped_by_watchpoint>
874 <low_stopped_data_address>: Declare.
875 (aarch64_stopped_by_watchpoint): Turn into...
876 (aarch64_target::low_stopped_by_watchpoint): ...this.
877 (aarch64_stopped_data_address): Turn into...
878 (aarch64_target::low_stopped_data_address): ...this.
879 (the_low_target): Remove the op fields.
880 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
881 <low_stopped_data_address>: Declare.
882 (arm_stopped_by_watchpoint): Turn into...
883 (arm_target::low_stopped_by_watchpoint): ...this.
884 (arm_stopped_data_address): Turn into...
885 (arm_target::low_stopped_data_address): ...this.
886 (the_low_target): Remove the op fields.
887 * linux-crisv32-low.cc (class crisv32_target)
888 <low_stopped_by_watchpoint>
889 <low_stopped_data_address>: Declare.
890 (cris_stopped_by_watchpoint): Turn into...
891 (crisv32_target::low_stopped_by_watchpoint): ...this.
892 (cris_stopped_data_address): Turn into...
893 (crisv32_target::low_stopped_data_address): ...this.
894 (the_low_target): Remove the op fields.
895 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
896 <low_stopped_data_address>: Declare.
897 (mips_stopped_by_watchpoint): Turn into...
898 (mips_target::low_stopped_by_watchpoint): ...this.
899 (mips_stopped_data_address): Turn into...
900 (mips_target::low_stopped_data_address): ...this.
901 (the_low_target): Remove the op fields.
902 * linux-bfin-low.cc (the_low_target): Remove the op fields.
903 * linux-m32r-low.cc (the_low_target): Ditto.
904 * linux-m68k-low.cc (the_low_target): Ditto.
905 * linux-ppc-low.cc (the_low_target): Ditto.
906 * linux-s390-low.cc (the_low_target): Ditto.
907 * linux-sh-low.cc (the_low_target): Ditto.
908 * linux-sparc-low.cc (the_low_target): Ditto.
909 * linux-tic6x-low.cc (the_low_target): Ditto.
910 * linux-tile-low.cc (the_low_target): Ditto.
911 * linux-xtensa-low.cc (the_low_target): Ditto.
913 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
915 Turn the 'insert_point' and 'remove_point' linux target ops into
916 methods of linux_process_target.
918 * linux-low.h (struct linux_target_ops): Remove the ops.
919 (class linux_process_target) <low_insert_point>
920 <low_remove_point>: Declare.
921 * linux-low.cc (linux_process_target::low_insert_point)
922 (linux_process_target::low_remove_point): Define.
923 (linux_process_target::insert_point)
924 (linux_process_target::remove_point): Update for calls to
925 low_insert_point and low_remove_point.
926 * linux-x86-low.cc (class x86_target) <low_insert_point>
927 <low_remove_point>: Declare.
928 (x86_insert_point): Turn into...
929 (x86_target::low_insert_point): ...this.
930 (x86_remove_point): Turn into...
931 (x86_target::low_remove_point): ...this.
932 (the_low_target): Remove the op fields.
933 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
934 <low_remove_point>: Declare.
935 (aarch64_insert_point): Turn into...
936 (aarch64_target::low_insert_point): ...this.
937 (aarch64_remove_point): Turn into...
938 (aarch64_target::low_remove_point): ...this.
939 (the_low_target): Remove the op fields.
940 * linux-arm-low.cc (class arm_target) <low_insert_point>
941 <low_remove_point>: Declare.
942 (arm_insert_point): Turn into...
943 (arm_target::low_insert_point): ...this.
944 (arm_remove_point): Turn into...
945 (arm_target::low_remove_point): ...this.
946 (the_low_target): Remove the op fields.
947 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
948 <low_remove_point>: Declare.
949 (crisv32_insert_point): Turn into...
950 (crisv32_target::low_insert_point): ...this.
951 (crisv32_remove_point): Turn into...
952 (crisv32_target::low_remove_point): ...this.
953 (the_low_target): Remove the op fields.
954 * linux-mips-low.cc (class mips_target) <low_insert_point>
955 <low_remove_point>: Declare.
956 (mips_insert_point): Turn into...
957 (mips_target::low_insert_point): ...this.
958 (mips_remove_point): Turn into...
959 (mips_target::low_remove_point): ...this.
960 (the_low_target): Remove the op fields.
961 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
962 <low_remove_point>: Declare.
963 (ppc_insert_point): Turn into...
964 (ppc_target::low_insert_point): ...this.
965 (ppc_remove_point): Turn into...
966 (ppc_target::low_remove_point): ...this.
967 (the_low_target): Remove the op fields.
968 * linux-bfin-low.cc (the_low_target): Remove the op fields.
969 * linux-m32r-low.cc (the_low_target): Ditto.
970 * linux-m68k-low.cc (the_low_target): Ditto.
971 * linux-s390-low.cc (the_low_target): Ditto.
972 * linux-sh-low.cc (the_low_target): Ditto.
973 * linux-sparc-low.cc (the_low_target): Ditto.
974 * linux-tic6x-low.cc (the_low_target): Ditto.
975 * linux-tile-low.cc (the_low_target): Ditto.
976 * linux-xtensa-low.cc (the_low_target): Ditto.
978 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
980 Remove the 'supports_z_point_type' linux target op and let the
981 concrete linux target define it by overriding the op declared in
982 process_stratum_target.
984 * linux-low.cc (linux_process_target::supports_z_point_type):
986 * linux-low.h (struct linux_target_ops): Remove the op.
987 (class linux_process_target) <supports_z_point_type>: Remove.
988 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
990 (x86_supports_z_point_type): Turn into...
991 (x86_target::supports_z_point_type): ...this.
992 (the_low_target): Remove the op field.
993 * linux-aarch64-low.cc (class aarch64_target)
994 <supports_z_point_type>: Declare.
995 (aarch64_supports_z_point_type): Turn into...
996 (aarch64_target::supports_z_point_type): ...this.
997 (the_low_target): Remove the op field.
998 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1000 (arm_supports_z_point_type): Turn into...
1001 (arm_target::supports_z_point_type): ...this.
1002 (the_low_target): Remove the op field.
1003 * linux-crisv32-low.cc (class crisv32_target)
1004 <supports_z_point_type>: Declare.
1005 (cris_supports_z_point_type): Turn into...
1006 (crisv32_target::supports_z_point_type): ...this.
1007 (the_low_target): Remove the op field.
1008 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1010 (mips_supports_z_point_type): Turn into...
1011 (mips_target::supports_z_point_type): ...this.
1012 (the_low_target): Remove the op field.
1013 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1015 (ppc_supports_z_point_type): Turn into...
1016 (ppc_target::supports_z_point_type): ...this.
1017 (the_low_target): Remove the op field.
1018 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1020 (s390_supports_z_point_type): Turn into...
1021 (s390_target::supports_z_point_type): ...this.
1022 (the_low_target): Remove the op field.
1023 * linux-bfin-low.cc (the_low_target): Remove the op field.
1024 * linux-m32r-low.cc (the_low_target): Ditto.
1025 * linux-m68k-low.cc (the_low_target): Ditto.
1026 * linux-sh-low.cc (the_low_target): Ditto.
1027 * linux-sparc-low.cc (the_low_target): Ditto.
1028 * linux-tic6x-low.cc (the_low_target): Ditto.
1029 * linux-tile-low.cc (the_low_target): Ditto.
1030 * linux-xtensa-low.cc (the_low_target): Ditto.
1032 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1034 Turn the 'breakpoint_at' linux target op into a method of
1035 linux_process_target.
1037 * linux-low.h (struct linux_target_ops): Remove the op.
1038 (class linux_process_target) <low_breakpoint_at>: Declare.
1040 Update the callers below:
1042 * linux-low.cc (linux_process_target::save_stop_reason)
1043 (linux_process_target::thread_still_has_status_pending)
1044 (linux_process_target::wait_1)
1046 * linux-x86-low.cc (class x86_target)
1047 <low_breakpoint_at>: Declare.
1048 (x86_breakpoint_at): Turn into...
1049 (x86_target::low_breakpoint_at): ...this.
1050 (the_low_target): Remove the op field.
1051 * linux-aarch64-low.cc (class aarch64_target)
1052 <low_breakpoint_at>: Declare.
1053 (aarch64_breakpoint_at): Turn into...
1054 (aarch64_target::low_breakpoint_at): ...this.
1055 (the_low_target): Remove the op field.
1056 * linux-arm-low.cc (class arm_target)
1057 <low_breakpoint_at>: Declare.
1058 (arm_target::low_breakpoint_at): Define.
1059 (the_low_target): Remove the op field.
1060 * linux-bfin-low.cc (class bfin_target)
1061 <low_breakpoint_at>: Declare.
1062 (bfin_breakpoint_at): Turn into...
1063 (bfin_target::low_breakpoint_at): ...this.
1064 (the_low_target): Remove the op field.
1065 * linux-cris-low.cc (class cris_target)
1066 <low_breakpoint_at>: Declare.
1067 (cris_breakpoint_at): Turn into...
1068 (cris_target::low_breakpoint_at): ...this.
1069 (the_low_target): Remove the op field.
1070 * linux-crisv32-low.cc (class crisv32_target)
1071 <low_breakpoint_at>: Declare.
1072 (crisv32_breakpoint_at): Turn into...
1073 (crisv32_target::low_breakpoint_at): ...this.
1074 (the_low_target): Remove the op field.
1075 * linux-ia64-low.cc (class ia64_target)
1076 <low_breakpoint_at>: Declare.
1077 (ia64_target::low_breakpoint_at): Define.
1078 * linux-m32r-low.cc (class m32r_target)
1079 <low_breakpoint_at>: Declare.
1080 (m32r_breakpoint_at): Turn into...
1081 (m32r_target::low_breakpoint_at): ...this.
1082 (the_low_target): Remove the op field.
1083 * linux-m68k-low.cc (class m68k_target)
1084 <low_breakpoint_at>: Declare.
1085 (m68k_breakpoint_at): Turn into...
1086 (m68k_target::low_breakpoint_at): ...this.
1087 (the_low_target): Remove the op field.
1088 * linux-mips-low.cc (class mips_target)
1089 <low_breakpoint_at>: Declare.
1090 (mips_breakpoint_at): Turn into...
1091 (mips_target::low_breakpoint_at): ...this.
1092 (the_low_target): Remove the op field.
1093 * linux-nios2-low.cc (class nios2_target)
1094 <low_breakpoint_at>: Declare.
1095 (nios2_breakpoint_at): Turn into...
1096 (nios2_target::low_breakpoint_at): ...this.
1097 (the_low_target): Remove the op field.
1098 * linux-ppc-low.cc (class ppc_target)
1099 <low_breakpoint_at>: Declare.
1100 (ppc_breakpoint_at): Turn into...
1101 (ppc_target::low_breakpoint_at): ...this.
1102 (the_low_target): Remove the op field.
1103 * linux-riscv-low.cc (class riscv_target)
1104 <low_breakpoint_at>: Declare.
1105 (riscv_breakpoint_at): Turn into...
1106 (riscv_target::low_breakpoint_at): ...this.
1107 (the_low_target): Remove the op field.
1108 * linux-s390-low.cc (class s390_target)
1109 <low_breakpoint_at>: Declare.
1110 (s390_breakpoint_at): Turn into...
1111 (s390_target::low_breakpoint_at): ...this.
1112 (the_low_target): Remove the op field.
1113 * linux-sh-low.cc (class sh_target)
1114 <low_breakpoint_at>: Declare.
1115 (sh_breakpoint_at): Turn into...
1116 (sh_target::low_breakpoint_at): ...this.
1117 (the_low_target): Remove the op field.
1118 * linux-sparc-low.cc (class sparc_target)
1119 <low_breakpoint_at>: Declare.
1120 (sparc_breakpoint_at): Turn into...
1121 (sparc_target::low_breakpoint_at): ...this.
1122 (the_low_target): Remove the op field.
1123 * linux-tic6x-low.cc (class tic6x_target)
1124 <low_breakpoint_at>: Declare.
1125 (tic6x_breakpoint_at): Turn into...
1126 (tic6x_target::low_breakpoint_at): ...this.
1127 (the_low_target): Remove the op field.
1128 * linux-tile-low.cc (class tile_target)
1129 <low_breakpoint_at>: Declare.
1130 (tile_breakpoint_at): Turn into...
1131 (tile_target::low_breakpoint_at): ...this.
1132 (the_low_target): Remove the op field.
1133 * linux-xtensa-low.cc (class xtensa_target)
1134 <low_breakpoint_at>: Declare.
1135 (xtensa_breakpoint_at): Turn into...
1136 (xtensa_target::low_breakpoint_at): ...this.
1137 (the_low_target): Remove the op field.
1139 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1141 Turn the 'decr_pc_after_break' linux_target_ops field into
1142 a method of linux_process_target.
1144 * linux-low.h (struct linux_target_ops)
1145 <decr_pc_after_break>: Remove.
1146 (class linux_process_target) <low_decr_pc_after_break>: New method
1148 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1149 New method implementation.
1151 Update the users below.
1153 (linux_process_target::save_stop_reason)
1154 (linux_process_target::wait_1)
1155 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1157 (x86_target::low_decr_pc_after_break): New method implementation.
1158 (the_low_target): Remove the field.
1159 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1161 (bfin_target::low_decr_pc_after_break): New method implementation.
1162 (the_low_target): Remove the field.
1163 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1165 (m68k_target::low_decr_pc_after_break): New method implementation.
1166 (the_low_target): Remove the field.
1167 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1169 (s390_target::low_decr_pc_after_break): New method implementation.
1170 (the_low_target): Remove the field.
1171 * linux-aarch64-low.cc (the_low_target): Remove the field.
1172 * linux-arm-low.cc (the_low_target): Remove the field.
1173 * linux-cris-low.cc (the_low_target): Remove the field.
1174 * linux-crisv32-low.cc (the_low_target): Remove the field.
1175 * linux-m32r-low.cc (the_low_target): Remove the field.
1176 * linux-mips-low.cc (the_low_target): Remove the field.
1177 * linux-nios2-low.cc (the_low_target): Remove the field.
1178 * linux-ppc-low.cc (the_low_target): Remove the field.
1179 * linux-riscv-low.cc (the_low_target): Remove the field.
1180 * linux-sh-low.cc (the_low_target): Remove the field.
1181 * linux-sparc-low.cc (the_low_target): Remove the field.
1182 * linux-tic6x-low.cc (the_low_target): Remove the field.
1183 * linux-tile-low.cc (the_low_target): Remove the field.
1184 * linux-xtensa-low.cc (the_low_target): Remove the field.
1186 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1188 Remove the 'supports_software_single_step' linux target op and let
1189 the concrete linux target define it by overriding the op in
1190 process_stratum_target.
1191 Turn the 'get_next_pcs' linux target op into a method of
1192 linux_process_target.
1194 * linux-low.h (struct linux_target_ops): Remove the ops.
1195 (class linux_process_target) <supports_software_single_step>:
1197 <low_get_next_pcs>: Declare.
1198 * linux-low.cc (can_software_single_step): Remove.
1199 (linux_process_target::low_get_next_pcs): Define.
1200 (linux_process_target::supports_software_single_step): Remove.
1202 Update the callers below.
1204 (linux_process_target::handle_extended_wait)
1205 (linux_process_target::wait_1)
1206 (linux_process_target::install_software_single_step_breakpoints)
1207 (linux_process_target::single_step)
1208 (linux_process_target::thread_needs_step_over)
1209 (linux_process_target::proceed_one_lwp)
1210 (linux_process_target::supports_range_stepping)
1212 * linux-x86-low.cc (the_low_target): Remove the op field.
1213 * linux-aarch64-low.cc (the_low_target): Ditto.
1214 * linux-bfin-low.cc (the_low_target): Ditto.
1215 * linux-cris-low.cc (the_low_target): Ditto.
1216 * linux-crisv32-low.cc (the_low_target): Ditto.
1217 * linux-m32r-low.cc (the_low_target): Ditto.
1218 * linux-m68k-low.cc (the_low_target): Ditto.
1219 * linux-mips-low.cc (the_low_target): Ditto.
1220 * linux-nios2-low.cc (the_low_target): Ditto.
1221 * linux-ppc-low.cc (the_low_target): Ditto.
1222 * linux-riscv-low.cc (the_low_target): Ditto.
1223 * linux-s390-low.cc (the_low_target): Ditto.
1224 * linux-sh-low.cc (the_low_target): Ditto.
1225 * linux-sparc-low.cc (the_low_target): Ditto.
1226 * linux-tic6x-low.cc (the_low_target): Ditto.
1227 * linux-tile-low.cc (the_low_target): Ditto.
1228 * linux-xtensa-low.cc (the_low_target): Ditto.
1229 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1230 <supports_software_single_step>: Declare.
1231 (arm_target::supports_software_single_step): Define.
1232 (arm_gdbserver_get_next_pcs): Turn into...
1233 (arm_target::low_get_next_pcs): ...this.
1234 (the_low_target): Remove the op field.
1236 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1238 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1239 the concrete linux target define it by overriding the op
1240 in process_stratum_target.
1242 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1244 * linux-low.h (struct linux_target_ops): Remove the op.
1245 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1246 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1248 (x86_sw_breakpoint_from_kind): Turn into...
1249 (x86_target::sw_breakpoint_from_kind): ...this.
1250 (the_low_target): Remove the op field.
1251 * linux-aarch64-low.cc (class aarch64_target)
1252 <sw_breakpoint_from_kind>: Declare.
1253 (aarch64_sw_breakpoint_from_kind): Turn into...
1254 (aarch64_target::sw_breakpoint_from_kind): ...this.
1255 (the_low_target): Remove the op field.
1256 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1258 (arm_target::sw_breakpoint_from_kind): Define.
1259 (the_low_target): Remove the op field.
1260 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1262 (bfin_sw_breakpoint_from_kind): Turn into...
1263 (bfin_target::sw_breakpoint_from_kind): ...this.
1264 (the_low_target): Remove the op field.
1265 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1267 (cris_sw_breakpoint_from_kind): Turn into...
1268 (cris_target::sw_breakpoint_from_kind): ...this.
1269 (the_low_target): Remove the op field.
1270 * linux-crisv32-low.cc (class crisv32_target)
1271 <sw_breakpoint_from_kind>: Declare.
1272 (cris_sw_breakpoint_from_kind): Turn into...
1273 (crisv32_target::sw_breakpoint_from_kind): ...this.
1274 (the_low_target): Remove the op field.
1275 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1277 (ia64_target::sw_breakpoint_from_kind): Define.
1278 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1280 (m32r_sw_breakpoint_from_kind): Turn into...
1281 (m32r_target::sw_breakpoint_from_kind): ...this.
1282 (the_low_target): Remove the op field.
1283 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1285 (m68k_sw_breakpoint_from_kind): Turn into...
1286 (m68k_target::sw_breakpoint_from_kind): ...this.
1287 (the_low_target): Remove the op field.
1288 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1290 (mips_sw_breakpoint_from_kind): Turn into...
1291 (mips_target::sw_breakpoint_from_kind): ...this.
1292 (the_low_target): Remove the op field.
1293 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1295 (nios2_sw_breakpoint_from_kind): Turn into...
1296 (nios2_target::sw_breakpoint_from_kind): ...this.
1297 (the_low_target): Remove the op field.
1298 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1300 (ppc_sw_breakpoint_from_kind): Turn into...
1301 (ppc_target::sw_breakpoint_from_kind): ...this.
1302 (the_low_target): Remove the op field.
1303 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1305 (riscv_sw_breakpoint_from_kind): Turn into...
1306 (riscv_target::sw_breakpoint_from_kind): ...this.
1307 (the_low_target): Remove the op field.
1308 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1310 (s390_sw_breakpoint_from_kind): Turn into...
1311 (s390_target::sw_breakpoint_from_kind): ...this.
1312 (the_low_target): Remove the op field.
1313 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1315 (sh_sw_breakpoint_from_kind): Turn into...
1316 (sh_target::sw_breakpoint_from_kind): ...this.
1317 (the_low_target): Remove the op field.
1318 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1320 (sparc_sw_breakpoint_from_kind): Turn into...
1321 (sparc_target::sw_breakpoint_from_kind): ...this.
1322 (the_low_target): Remove the op field.
1323 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1325 (tic6x_sw_breakpoint_from_kind): Turn into...
1326 (tic6x_target::sw_breakpoint_from_kind): ...this.
1327 (the_low_target): Remove the op field.
1328 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1330 (tile_sw_breakpoint_from_kind): Turn into...
1331 (tile_target::sw_breakpoint_from_kind): ...this.
1332 (the_low_target): Remove the op field.
1333 * linux-xtensa-low.cc (class xtensa_target)
1334 <sw_breakpoint_from_kind>: Declare.
1335 (xtensa_sw_breakpoint_from_kind): Turn into...
1336 (xtensa_target::sw_breakpoint_from_kind): ...this.
1337 (the_low_target): Remove the op field.
1339 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1341 Remove the 'breakpoint_kind_from_pc' and
1342 'breakpoint_kind_from_current_state' linux target ops, and let the
1343 concrete linux target define them by overriding the ops of
1344 process_stratum_target.
1346 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1348 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1349 * linux-low.h (struct linux_target_ops): Remove ops.
1350 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1351 <breakpoint_kind_from_current_state>: Remove.
1352 * linux-x86-low.cc (the_low_target): Remove the op fields.
1353 * linux-bfin-low.cc (the_low_target): Ditto.
1354 * linux-cris-low.cc (the_low_target): Ditto.
1355 * linux-crisv32-low.cc (the_low_target): Ditto.
1356 * linux-m32r-low.cc (the_low_target): Ditto.
1357 * linux-m68k-low.cc (the_low_target): Ditto.
1358 * linux-mips-low.cc (the_low_target): Ditto.
1359 * linux-nios2-low.cc (the_low_target): Ditto.
1360 * linux-ppc-low.cc (the_low_target): Ditto.
1361 * linux-s390-low.cc (the_low_target): Ditto.
1362 * linux-sh-low.cc (the_low_target): Ditto.
1363 * linux-sparc-low.cc (the_low_target): Ditto.
1364 * linux-tic6x-low.cc (the_low_target): Ditto.
1365 * linux-tile-low.cc (the_low_target): Ditto.
1366 * linux-xtensa-low.cc (the_low_target): Ditto.
1367 * linux-aarch64-low.cc (class aarch64_target)
1368 <breakpoint_kind_from_pc>
1369 <breakpoint_kind_from_current_state>: Declare.
1370 (aarch64_breakpoint_kind_from_pc): Turn into...
1371 (aarch64_target::breakpoint_kind_from_pc): ...this.
1372 (aarch64_breakpoint_kind_from_current_state): Turn into...
1373 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1374 (the_low_target): Remove the op fields.
1375 * linux-arm-low.cc (class arm_target):
1376 <breakpoint_kind_from_pc>
1377 <breakpoint_kind_from_current_state>: Declare.
1378 (arm_target::breakpoint_kind_from_pc): Define.
1379 (arm_target::breakpoint_kind_from_current_state): Define.
1380 (the_low_target): Remove the op fields.
1381 * linux-riscv-low.cc (class riscv_target):
1382 <breakpoint_kind_from_pc>: Declare.
1383 (riscv_breakpoint_kind_from_pc): Turn into...
1384 (riscv_target::breakpoint_kind_from_pc): ...this.
1385 (the_low_target): Remove the op fields.
1387 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1389 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1390 of linux_process_target.
1392 * linux-low.h (struct linux_target_ops): Remove the ops.
1393 (class linux_process_target) <low_supports_breakpoints>
1395 <low_set_pc>: Declare.
1396 * linux-low.cc (supports_breakpoints): Turn into...
1397 (linux_process_target::low_supports_breakpoints): ...this.
1398 (linux_process_target::low_get_pc): Define.
1399 (linux_process_target::low_set_pc): Define.
1401 Update the callers below.
1403 (linux_process_target::get_pc)
1404 (linux_process_target::save_stop_reason)
1405 (linux_process_target::maybe_move_out_of_jump_pad)
1406 (linux_process_target::wait_1)
1407 (linux_process_target::resume_one_lwp_throw)
1408 (linux_process_target::resume)
1409 (linux_process_target::proceed_all_lwps)
1410 (linux_process_target::read_pc)
1411 (linux_process_target::write_pc)
1413 * linux-x86-low.cc (class linux_process_target)
1414 <low_supports_breakpoints>
1416 <low_set_pc>: Declare.
1417 (x86_target::low_supports_breakpoints): Define.
1418 (x86_get_pc): Turn into...
1419 (x86_target::low_get_pc): ...this.
1420 (x86_set_pc): Turn into...
1421 (x86_target::low_set_pc): ...this.
1422 (the_low_target): Remove the op fields.
1423 * linux-arm-low.cc (class arm_target)
1424 <low_supports_breakpoints>
1426 <low_set_pc>: Declare.
1427 (arm_target::low_supports_breakpoints)
1428 (arm_target::low_get_pc)
1429 (arm_target::low_set_pc): Define.
1430 (the_low_target): Remove the op fields.
1431 * linux-bfin-low.cc (class bfin_target)
1432 <low_supports_breakpoints>
1434 <low_set_pc>: Declare.
1435 (bfin_target::low_supports_breakpoints)
1436 (bfin_target::low_get_pc)
1437 (bfin_target::low_set_pc): Define.
1438 (the_low_target): Remove the op fields.
1439 * linux-cris-low.cc (class cris_target)
1440 <low_supports_breakpoints>
1442 <low_set_pc>: Declare.
1443 (cris_target::low_supports_breakpoints)
1444 (cris_target::low_get_pc)
1445 (cris_target::low_set_pc): Define.
1446 (the_low_target): Remove the op fields.
1447 * linux-crisv32-low.cc (class crisv32_target)
1448 <low_supports_breakpoints>
1450 <low_set_pc>: Declare.
1451 (crisv32_target::low_supports_breakpoints)
1452 (crisv32_target::low_get_pc)
1453 (crisv32_target::low_set_pc): Define.
1454 (the_low_target): Remove the op fields.
1455 * linux-m32r-low.cc (class m32r_target)
1456 <low_supports_breakpoints>
1458 <low_set_pc>: Declare.
1459 (m32r_target::low_supports_breakpoints)
1460 (m32r_target::low_get_pc)
1461 (m32r_target::low_set_pc): Define.
1462 (the_low_target): Remove the op fields.
1463 * linux-m68k-low.cc (class m68k_target)
1464 <low_supports_breakpoints>
1466 <low_set_pc>: Declare.
1467 (m68k_target::low_supports_breakpoints)
1468 (m68k_target::low_get_pc)
1469 (m68k_target::low_set_pc): Define.
1470 (the_low_target): Remove the op fields.
1471 * linux-nios2-low.cc (class nios2_target)
1472 <low_supports_breakpoints>
1474 <low_set_pc>: Declare.
1475 (nios2_target::low_supports_breakpoints)
1476 (nios2_target::low_get_pc)
1477 (nios2_target::low_set_pc): Define.
1478 (the_low_target): Remove the op fields.
1479 * linux-sh-low.cc (class sh_target)
1480 <low_supports_breakpoints>
1482 <low_set_pc>: Declare.
1483 (sh_target::low_supports_breakpoints)
1484 (sh_target::low_get_pc)
1485 (sh_target::low_set_pc): Define.
1486 (the_low_target): Remove the op fields.
1487 * linux-xtensa-low.cc (class xtensa_target)
1488 <low_supports_breakpoints>
1490 <low_set_pc>: Declare.
1491 (xtensa_target::low_supports_breakpoints)
1492 (xtensa_target::low_get_pc)
1493 (xtensa_target::low_set_pc): Define.
1494 (the_low_target): Remove the op fields.
1495 * linux-sparc-low.cc (class sparc_target)
1496 <low_supports_breakpoints>
1497 <low_get_pc>: Declare.
1498 (sparc_target::low_supports_breakpoints)
1499 (sparc_target::low_get_pc): Define.
1500 (the_low_target): Remove the op fields.
1501 * linux-tile-low.cc (class tile_target)
1502 <low_supports_breakpoints>
1504 <low_set_pc>: Declare.
1505 (tile_target::low_supports_breakpoints)
1506 (tile_target::low_get_pc)
1507 (tile_target::low_set_pc): Define.
1508 (the_low_target): Remove the op fields.
1509 * linux-aarch64-low.cc (class aarch64_target)
1510 <low_supports_breakpoints>
1512 <low_set_pc>: Declare.
1513 (aarch64_target::low_supports_breakpoints): Define.
1514 (aarch64_get_pc): Turn into...
1515 (aarch64_target::low_get_pc): ...this.
1516 (aarch64_set_pc): Turn into...
1517 (aarch64_target::low_set_pc): ...this.
1518 (the_low_target): Remove the op fields.
1519 * linux-mips-low.cc (class mips_target)
1520 <low_supports_breakpoints>
1522 <low_set_pc>: Declare.
1523 (mips_target::low_supports_breakpoints): Define.
1524 (mips_get_pc): Turn into...
1525 (mips_target::low_get_pc): ...this.
1526 (mips_set_pc): Turn into...
1527 (mips_target::low_set_pc): ...this.
1528 (the_low_target): Remove the op fields.
1529 * linux-ppc-low.cc (class ppc_target)
1530 <low_supports_breakpoints>
1532 <low_set_pc>: Declare.
1533 (ppc_target::low_supports_breakpoints): Define.
1534 (ppc_get_pc): Turn into...
1535 (ppc_target::low_get_pc): ...this.
1536 (ppc_set_pc): Turn into...
1537 (ppc_target::low_set_pc): ...this.
1538 (the_low_target): Remove the op fields.
1539 * linux-riscv-low.cc (class riscv_target)
1540 <low_supports_breakpoints>
1542 <low_set_pc>: Declare.
1543 (riscv_target::low_supports_breakpoints): Define.
1544 (riscv_get_pc): Turn into...
1545 (riscv_target::low_get_pc): ...this.
1546 (riscv_set_pc): Turn into...
1547 (riscv_target::low_set_pc): ...this.
1548 (the_low_target): Remove the op fields.
1549 * linux-s390-low.cc (class s390_target)
1550 <low_supports_breakpoints>
1552 <low_set_pc>: Declare.
1553 (s390_target::low_supports_breakpoints): Define.
1554 (s390_get_pc): Turn into...
1555 (s390_target::low_get_pc): ...this.
1556 (s390_set_pc): Turn into...
1557 (s390_target::low_set_pc): ...this.
1558 (the_low_target): Remove the op fields.
1559 * linux-tic6x-low.cc (class tic6x_target)
1560 <low_supports_breakpoints>
1562 <low_set_pc>: Declare.
1563 (tic6x_target::low_supports_breakpoints): Define.
1564 (tic6x_get_pc): Turn into...
1565 (tic6x_target::low_get_pc): ...this.
1566 (tic6x_set_pc): Turn into...
1567 (tic6x_target::low_set_pc): ...this.
1568 (the_low_target): Remove the op fields.
1570 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1572 Turn some more static methods in linux-low into private methods
1573 of linux_process_target.
1575 * linux-low.cc (get_pc): Turn into...
1576 (linux_process_target::get_pc): ...this.
1577 (save_stop_reason): Turn into...
1578 (linux_process_target::save_stop_reason): ...this.
1579 (thread_still_has_status_pending_p): Turn into...
1580 (linux_process_target::thread_still_has_status_pending): ...this.
1581 (status_pending_p_callback): Turn into...
1582 (linux_process_target::status_pending_p_callback): ...this.
1583 (resume_stopped_resumed_lwps): Turn into...
1584 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1585 (install_software_single_step_breakpoints): Turn into...
1586 (linux_process_target::install_software_single_step_breakpoints):
1588 (single_step): Turn into...
1589 (linux_process_target::single_step): ...this.
1590 (linux_resume_one_lwp_throw): Turn into...
1591 (linux_process_target::resume_one_lwp_throw): ...this.
1592 (linux_resume_one_lwp): Turn into...
1593 (linux_process_target::resume_one_lwp): ...this.
1594 (resume_status_pending_p): Turn into...
1595 (linux_process_target::resume_status_pending): ...this.
1596 (need_step_over_p): Turn into...
1597 (linux_process_target::thread_needs_step_over): ...this.
1598 (linux_resume_one_thread): Turn into...
1599 (linux_process_target::resume_one_thread): ...this.
1600 (proceed_one_lwp): Turn into...
1601 (linux_process_target::proceed_one_lwp): ...this.
1602 (unsuspend_and_proceed_one_lwp): Turn into...
1603 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1605 Update the calls/references to the above functions below.
1607 (linux_process_target::handle_extended_wait)
1608 (linux_process_target::filter_event)
1609 (linux_process_target::wait_for_event_filtered)
1610 (linux_process_target::wait_1)
1611 (linux_process_target::move_out_of_jump_pad)
1612 (linux_process_target::start_step_over)
1613 (linux_process_target::resume)
1614 (linux_process_target::proceed_all_lwps)
1615 (regsets_store_inferior_registers)
1616 (linux_process_target::store_register)
1618 * linux-low.h (class linux_process_target)
1621 <thread_still_has_status_pending>
1622 <status_pending_p_callback>
1623 <resume_stopped_resumed_lwps>
1624 <install_software_single_step_breakpoints>
1626 <resume_one_lwp_throw>
1628 <resume_status_pending>
1629 <thread_needs_step_over>
1632 <unsuspend_and_proceed_one_lwp>: Declare.
1634 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1636 Turn the 'fetch_register' linux target op into a method of
1637 linux_process_target.
1639 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1640 (class linux_process_target) <low_fetch_register>: Declare.
1641 * linux-x86-low.cc (the_low_target)
1642 * linux-aarch64-low.cc (the_low_target)
1643 * linux-arm-low.cc (the_low_target)
1644 * linux-bfin-low.cc (the_low_target)
1645 * linux-cris-low.cc (the_low_target)
1646 * linux-crisv32-low.cc (the_low_target)
1647 * linux-m32r-low.cc (the_low_target)
1648 * linux-m68k-low.cc (the_low_target)
1649 * linux-nios2-low.cc (the_low_target)
1650 * linux-ppc-low.cc (the_low_target)
1651 * linux-s390-low.cc (the_low_target)
1652 * linux-sh-low.cc (the_low_target)
1653 * linux-sparc-low.cc (the_low_target)
1654 * linux-tic6x-low.cc (the_low_target)
1655 * linux-tile-low.cc (the_low_target)
1656 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1657 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1659 (ia64_fetch_register): Turn into...
1660 (ia64_target::low_fetch_register): ...this.
1661 (the_low_target): Remove the op field.
1662 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1664 (mips_fetch_register): Turn into...
1665 (mips_target::low_fetch_register): ...this.
1666 (the_low_target): Remove the op field.
1667 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1669 (riscv_fetch_register): Turn into...
1670 (riscv_target::low_fetch_register): ...this.
1671 (the_low_target): Remove the op field.
1673 Update the callers below.
1675 * linux-low.cc (linux_process_target::fetch_registers)
1676 (linux_process_target::low_fetch_register)
1678 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1680 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1681 linux target ops into methods of linux_process_target.
1683 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1684 (class linux_process_target) <fetch_register>
1686 <usr_fetch_inferior_registers>
1687 <usr_store_inferior_registers>
1688 <low_cannot_fetch_register>
1689 <low_cannot_fetch_register> Declare.
1690 * linux-low.cc (fetch_register): Turn into...
1691 (linux_process_target::fetch_register): ...this.
1692 (store_register): Turn into ...
1693 (linux_process_target::store_register): ...this.
1694 (usr_fetch_inferior_registers): Turn into...
1695 (linux_process_target::usr_fetch_inferior_registers): ...this.
1696 (usr_store_inferior_registers): Turn into...
1697 (linux_process_target::usr_store_inferior_registers): ...this.
1698 * linux-x86-low.cc (class x86_target)
1699 <low_cannot_fetch_register>
1700 <low_cannot_store_register>: Declare.
1701 (x86_cannot_store_register): Turn into...
1702 (x86_target::low_cannot_store_register): ...this.
1703 (x86_cannot_fetch_register): Turn into...
1704 (x86_target::low_cannot_fetch_register): ...this.
1705 (the_low_target): Remove the target op fields.
1706 * linux-aarch64-low.cc (class aarch64_target)
1707 <low_cannot_fetch_register>
1708 <low_cannot_store_register>: Declare.
1709 (aarch64_target::low_cannot_fetch_register)
1710 (aarch64_target::low_cannot_store_register): Define.
1711 (the_low_target): Remove the op fields.
1712 * linux-arm-low.cc (class arm_target)
1713 <low_cannot_fetch_register>
1714 <low_cannot_store_register>: Declare.
1715 (arm_cannot_fetch_register): Turn into...
1716 (arm_target::low_cannot_fetch_register): ...this.
1717 (arm_cannot_store_register): Turn into...
1718 (arm_target::low_cannot_store_register): ...this.
1719 (the_low_target): Remove the op fields.
1720 * linux-bfin-low.cc (class bfin_target)
1721 <low_cannot_fetch_register>
1722 <low_cannot_store_register>: Declare.
1723 (bfin_cannot_fetch_register): Turn into...
1724 (bfin_target::low_cannot_fetch_register): ...this.
1725 (bfin_cannot_store_register): Turn into...
1726 (bfin_target::low_cannot_store_register): ...this.
1727 (the_low_target): Remove the op fields.
1728 * linux-cris-low.cc (class cris_target)
1729 <low_cannot_fetch_register>
1730 <low_cannot_store_register>: Declare.
1731 (cris_cannot_fetch_register): Turn into...
1732 (cris_target::low_cannot_fetch_register): ...this.
1733 (cris_cannot_store_register): Turn into...
1734 (cris_target::low_cannot_store_register): ...this.
1735 (the_low_target): Remove the op fields.
1736 * linux-crisv32-low.cc (class crisv32_target)
1737 <low_cannot_fetch_register>
1738 <low_cannot_store_register>: Declare.
1739 (crisv32_target::low_cannot_fetch_register)
1740 (crisv32_target::low_cannot_store_register): Define.
1741 (the_low_target): Remove the op fields.
1742 * linux-ia64-low.cc (class ia64_target)
1743 <low_cannot_fetch_register>
1744 <low_cannot_store_register>: Declare.
1745 (ia64_cannot_fetch_register): Turn into...
1746 (ia64_target::low_cannot_fetch_register): ...this.
1747 (ia64_cannot_store_register): Turn into...
1748 (ia64_target::low_cannot_store_register): ...this.
1749 (the_low_target): Remove the op fields.
1750 * linux-m32r-low.cc (class m32r_target)
1751 <low_cannot_fetch_register>
1752 <low_cannot_store_register>: Declare.
1753 (m32r_cannot_fetch_register): Turn into...
1754 (m32r_target::low_cannot_fetch_register): ...this.
1755 (m32r_cannot_store_register): Turn into...
1756 (m32r_target::low_cannot_store_register): ...this.
1757 (the_low_target): Remove the op fields.
1758 * linux-m68k-low.cc (class m68k_target)
1759 <low_cannot_fetch_register>
1760 <low_cannot_store_register>: Declare.
1761 (m68k_cannot_fetch_register): Turn into...
1762 (m68k_target::low_cannot_fetch_register): ...this.
1763 (m68k_cannot_store_register): Turn into...
1764 (m68k_target::low_cannot_store_register): ...this.
1765 (the_low_target): Remove the op fields.
1766 * linux-mips-low.cc (class mips_target)
1767 <low_cannot_fetch_register>
1768 <low_cannot_store_register>: Declare.
1769 (mips_cannot_fetch_register): Turn into...
1770 (mips_target::low_cannot_fetch_register): ...this.
1771 (mips_cannot_store_register): Turn into...
1772 (mips_target::low_cannot_store_register): ...this.
1773 (get_usrregs_info): Inline at the call sites in
1774 low_cannot_fetch_register and low_cannot_store_register,
1776 (the_low_target): Remove the op fields.
1777 * linux-nios2-low.cc (class nios2_target)
1778 <low_cannot_fetch_register>
1779 <low_cannot_store_register>: Declare.
1780 (nios2_cannot_fetch_register): Turn into...
1781 (nios2_target::low_cannot_fetch_register): ...this.
1782 (nios2_cannot_store_register): Turn into...
1783 (nios2_target::low_cannot_store_register): ...this.
1784 (the_low_target): Remove the op fields.
1785 * linux-ppc-low.cc (class ppc_target)
1786 <low_cannot_fetch_register>
1787 <low_cannot_store_register>: Declare.
1788 (ppc_cannot_fetch_register): Turn into...
1789 (ppc_target::low_cannot_fetch_register): ...this.
1790 (ppc_cannot_store_register): Turn into...
1791 (ppc_target::low_cannot_store_register): ...this.
1792 (the_low_target): Remove the op fields.
1793 * linux-riscv-low.cc (class riscv_target)
1794 <low_cannot_fetch_register>
1795 <low_cannot_store_register>: Declare.
1796 (riscv_target::low_cannot_fetch_register)
1797 (riscv_target::low_cannot_store_register): Define.
1798 (the_low_target): Remove the op fields.
1799 * linux-s390-low.cc (class s390_target)
1800 <low_cannot_fetch_register>
1801 <low_cannot_store_register>: Declare.
1802 (s390_cannot_fetch_register): Turn into...
1803 (s390_target::low_cannot_fetch_register): ...this.
1804 (s390_cannot_store_register): Turn into...
1805 (s390_target::low_cannot_store_register): ...this.
1806 (the_low_target): Remove the op fields.
1807 * linux-sh-low.cc (class sh_target)
1808 <low_cannot_fetch_register>
1809 <low_cannot_store_register>: Declare.
1810 (sh_cannot_fetch_register): Turn into...
1811 (sh_target::low_cannot_fetch_register): ...this.
1812 (sh_cannot_store_register): Turn into...
1813 (sh_target::low_cannot_store_register): ...this.
1814 (the_low_target): Remove the op fields.
1815 * linux-sparc-low.cc (class sparc_target)
1816 <low_cannot_fetch_register>
1817 <low_cannot_store_register>: Declare.
1818 (sparc_cannot_fetch_register): Turn into...
1819 (sparc_target::low_cannot_fetch_register): ...this.
1820 (sparc_cannot_store_register): Turn into...
1821 (sparc_target::low_cannot_store_register): ...this.
1822 (the_low_target): Remove the op fields.
1823 * linux-tic6x-low.cc (class tic6x_target)
1824 <low_cannot_fetch_register>
1825 <low_cannot_store_register>: Declare.
1826 (tic6x_cannot_fetch_register): Turn into...
1827 (tic6x_target::low_cannot_fetch_register): ...this.
1828 (tic6x_cannot_store_register): Turn into...
1829 (tic6x_target::low_cannot_store_register): ...this.
1830 (the_low_target): Remove the op fields.
1831 * linux-tile-low.cc (class tile_target)
1832 <low_cannot_fetch_register>
1833 <low_cannot_store_register>: Declare.
1834 (tile_cannot_fetch_register): Turn into...
1835 (tile_target::low_cannot_fetch_register): ...this.
1836 (tile_cannot_store_register): Turn into...
1837 (tile_target::low_cannot_store_register): ...this.
1838 (the_low_target): Remove the op fields.
1839 * linux-xtensa-low.cc (class xtensa_target)
1840 <low_cannot_fetch_register>
1841 <low_cannot_store_register>: Declare.
1842 (xtensa_target::low_cannot_fetch_register)
1843 (xtensa_target::low_cannot_store_register): Define.
1844 (the_low_target): Remove the op fields.
1846 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1848 Turn the 'regs_info' linux target op into a method of
1849 linux_process_target.
1851 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1852 (class linux_process_target) <get_regs_info>: Define.
1854 Update the callers below.
1856 * linux-low.cc (linux_process_target::fetch_registers)
1857 (linux_process_target::store_registers)
1858 * proc-service.cc (gregset_info)
1860 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1861 (x86_linux_regs_info): Turn into ...
1862 (x86_target::get_regs_info): ...this.
1863 (the_low_target): Remove the op field.
1864 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
1866 (aarch64_regs_info): Turn into ...
1867 (aarch64_target::get_regs_info): ...this.
1868 (the_low_target): Remove the op field.
1869 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
1870 (arm_regs_info): Turn into ...
1871 (arm_target::get_regs_info): ...this.
1872 (the_low_target): Remove the op field.
1873 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
1874 (bfin_regs_info): Turn into ...
1875 (bfin_target::get_regs_info): ...this.
1876 (the_low_target): Remove the op field.
1877 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
1878 (cris_regs_info): Turn into ...
1879 (cris_target::get_regs_info): ...this.
1880 (the_low_target): Remove the op field.
1881 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
1883 (crisv32_regs_info): Turn into ...
1884 (crisv32_target::get_regs_info): ...this.
1885 (the_low_target): Remove the op field.
1886 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
1887 (ia64_regs_info): Turn into ...
1888 (ia64_target::get_regs_info): ...this.
1889 (the_low_target): Remove the op field.
1890 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
1891 (m32r_regs_info): Turn into ...
1892 (m32r_target::get_regs_info): ...this.
1893 (the_low_target): Remove the op field.
1894 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
1895 (m68k_regs_info): Turn into ...
1896 (m68k_target::get_regs_info): ...this.
1897 (the_low_target): Remove the op field.
1898 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
1899 (mips_regs_info): Turn into ...
1900 (mips_target::get_regs_info): ...this.
1901 (the_low_target): Remove the op field.
1902 (get_usrregs_info): Update the call to the op.
1903 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
1904 (nios2_regs_info): Turn into ...
1905 (nios2_target::get_regs_info): ...this.
1906 (the_low_target): Remove the op field.
1907 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
1908 (ppc_regs_info): Turn into ...
1909 (ppc_target::get_regs_info): ...this.
1910 (the_low_target): Remove the op field.
1911 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
1912 (riscv_regs_info): Turn into ...
1913 (riscv_target::get_regs_info): ...this.
1914 (the_low_target): Remove the op field.
1915 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
1916 (s390_regs_info): Turn into ...
1917 (s390_target::get_regs_info): ...this.
1918 (the_low_target): Remove the op field.
1919 (s390_collect_ptrace_register)
1920 (s390_supply_ptrace_register)
1921 (s390_fill_gregset): Update the call to the op.
1922 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
1923 (sh_regs_info): Turn into ...
1924 (sh_target::get_regs_info): ...this.
1925 (the_low_target): Remove the op field.
1926 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
1927 (sparc_regs_info): Turn into ...
1928 (sparc_target::get_regs_info): ...this.
1929 (the_low_target): Remove the op field.
1930 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
1931 (tic6x_regs_info): Turn into ...
1932 (tic6x_target::get_regs_info): ...this.
1933 (the_low_target): Remove the op field.
1934 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
1935 (tile_regs_info): Turn into ...
1936 (tile_target::get_regs_info): ...this.
1937 (the_low_target): Remove the op field.
1938 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
1940 (xtensa_regs_info): Turn into ...
1941 (xtensa_target::get_regs_info): ...this.
1942 (the_low_target): Remove the op field.
1944 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1946 Turn the 'arch_setup' linux target op into a method of
1947 linux_process_target.
1949 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
1950 (class linux_process_target) <arch_setup_thread>
1951 <low_arch_setup>: New declarations.
1952 * linux-low.cc (linux_arch_setup): Delete.
1953 (linux_arch_setup_thread): Turn into...
1954 (linux_process_target::arch_setup_thread): ... this.
1956 Update the callers below.
1958 (linux_process_target::handle_extended_wait)
1959 (linux_process_target::post_create_inferior)
1960 (linux_process_target::filter_event)
1962 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
1964 (x86_linux_update_xmltarget): Turn into...
1965 (x86_target::update_xmltarget): ...this.
1966 (x86_linux_process_qsupported): Update the call to
1967 x86_linux_update_xmltarget.
1968 (x86_arch_setup): Turn into ...
1969 (x86_target::low_arch_setup): ...this.
1970 (the_low_target): Remove the op field.
1971 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
1973 (aarch64_arch_setup): Turn into ...
1974 (aarch64_target::low_arch_setup): ...this.
1975 (the_low_target): Remove the op field.
1976 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
1978 (arm_arch_setup): Turn into ...
1979 (arm_target::low_arch_setup): ...this.
1980 (the_low_target): Remove the op field.
1981 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
1983 (bfin_arch_setup): Turn into ...
1984 (bfin_target::low_arch_setup): ...this.
1985 (the_low_target): Remove the op field.
1986 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
1988 (cris_arch_setup): Turn into ...
1989 (cris_target::low_arch_setup): ...this.
1990 (the_low_target): Remove the op field.
1991 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
1993 (crisv32_arch_setup): Turn into ...
1994 (crisv32_target::low_arch_setup): ...this.
1995 (the_low_target): Remove the op field.
1996 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
1998 (ia64_arch_setup): Turn into ...
1999 (ia64_target::low_arch_setup): ...this.
2000 (the_low_target): Remove the op field.
2001 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2003 (m32r_arch_setup): Turn into ...
2004 (m32r_target::low_arch_setup): ...this.
2005 (the_low_target): Remove the op field.
2006 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2008 (m68k_arch_setup): Turn into ...
2009 (m68k_target::low_arch_setup): ...this.
2010 (the_low_target): Remove the op field.
2011 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2013 (mips_arch_setup): Turn into ...
2014 (mips_target::low_arch_setup): ...this.
2015 (the_low_target): Remove the op field.
2016 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2018 (nios2_arch_setup): Turn into ...
2019 (nios2_target::low_arch_setup): ...this.
2020 (the_low_target): Remove the op field.
2021 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2023 (ppc_arch_setup): Turn into ...
2024 (ppc_target::low_arch_setup): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2028 (riscv_arch_setup): Turn into ...
2029 (riscv_target::low_arch_setup): ...this.
2030 (the_low_target): Remove the op field.
2031 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2033 (s390_arch_setup): Turn into ...
2034 (s390_target::low_arch_setup): ...this.
2035 (the_low_target): Remove the op field.
2036 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2038 (sh_arch_setup): Turn into ...
2039 (sh_target::low_arch_setup): ...this.
2040 (the_low_target): Remove the op field.
2041 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2043 (sparc_arch_setup): Turn into ...
2044 (sparc_target::low_arch_setup): ...this.
2045 (the_low_target): Remove the op field.
2046 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2048 (tic6x_arch_setup): Turn into ...
2049 (tic6x_target::low_arch_setup): ...this.
2050 (the_low_target): Remove the op field.
2051 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2053 (tile_arch_setup): Turn into ...
2054 (tile_target::low_arch_setup): ...this.
2055 (the_low_target): Remove the op field.
2056 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2058 (xtensa_arch_setup): Turn into ...
2059 (xtensa_target::low_arch_setup): ...this.
2060 (the_low_target): Remove the op field.
2062 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2064 * linux-low.h (the_linux_target): New extern declaration.
2065 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2067 (the_linux_target): Remove.
2068 * linux-x86-low.cc (class x86_target): New class.
2069 (the_x86_target): New static object.
2070 (the_linux_target): Define as pointer to the_x86_target.
2071 * linux-aarch64-low.cc (class aarch64_target): New class.
2072 (the_aarch64_target): New static object.
2073 (the_linux_target): Define as pointer to the_aarch64_target.
2074 * linux-arm-low.cc (class arm_target): New class.
2075 (the_arm_target): New static object.
2076 (the_linux_target): Define as pointer to the_arm_target.
2077 * linux-bfin-low.cc (class bfin_target): New class.
2078 (the_bfin_target): New static object.
2079 (the_linux_target): Define as pointer to the_bfin_target.
2080 * linux-cris-low.cc (class cris_target): New class.
2081 (the_cris_target): New static object.
2082 (the_linux_target): Define as pointer to the_cris_target.
2083 * linux-crisv32-low.cc (class crisv32_target): New class.
2084 (the_crisv32_target): New static object.
2085 (the_linux_target): Define as pointer to the_crisv32_target.
2086 * linux-ia64-low.cc (class ia64_target): New class.
2087 (the_ia64_target): New static object.
2088 (the_linux_target): Define as pointer to the_ia64_target.
2089 * linux-m32r-low.cc (class m32r_target): New class.
2090 (the_m32r_target): New static object.
2091 (the_linux_target): Define as pointer to the_m32r_target.
2092 * linux-m68k-low.cc (class m68k_target): New class.
2093 (the_m68k_target): New static object.
2094 (the_linux_target): Define as pointer to the_m68k_target.
2095 * linux-mips-low.cc (class mips_target): New class.
2096 (the_mips_target): New static object.
2097 (the_linux_target): Define as pointer to the_mips_target.
2098 * linux-nios2-low.cc (class nios2_target): New class.
2099 (the_nios2_target): New static object.
2100 (the_linux_target): Define as pointer to the_nios2_target.
2101 * linux-ppc-low.cc (class ppc_target): New class.
2102 (the_ppc_target): New static object.
2103 (the_linux_target): Define as pointer to the_ppc_target.
2104 * linux-riscv-low.cc (class riscv_target): New class.
2105 (the_riscv_target): New static object.
2106 (the_linux_target): Define as pointer to the_riscv_target.
2107 * linux-s390-low.cc (class s390_target): New class.
2108 (the_s390_target): New static object.
2109 (the_linux_target): Define as pointer to the_s390_target.
2110 * linux-sh-low.cc (class sh_target): New class.
2111 (the_sh_target): New static object.
2112 (the_linux_target): Define as pointer to the_sh_target.
2113 * linux-sparc-low.cc (class sparc_target): New class.
2114 (the_sparc_target): New static object.
2115 (the_linux_target): Define as pointer to the_sparc_target.
2116 * linux-tic6x-low.cc (class tic6x_target): New class.
2117 (the_tic6x_target): New static object.
2118 (the_linux_target): Define as pointer to the_tic6x_target.
2119 * linux-tile-low.cc (class tile_target): New class.
2120 (the_tile_target): New static object.
2121 (the_linux_target): Define as pointer to the_tile_target.
2122 * linux-xtensa-low.cc (class xtensa_target): New class.
2123 (the_xtensa_target): New static object.
2124 (the_linux_target): Define as pointer to the_xtensa_target.
2126 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2128 Turn some static functions in linux-low.cc into private methods of
2129 linux_process_target.
2131 * linux-low.cc (handle_extended_wait): Turn into ...
2132 (linux_process_target::handle_extended_wait): ...this. Call
2133 'mourn' on 'this' object instead of 'the_target'.
2134 (maybe_move_out_of_jump_pad): Turn into...
2135 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2136 (linux_low_filter_event): Turn into...
2137 (linux_process_target::filter_event): ...this.
2138 (linux_wait_for_event_filtered): Turn into...
2139 (linux_process_target::wait_for_event_filtered): ...this.
2140 (linux_wait_for_event): Turn into...
2141 (linux_process_target::wait_for_event): ...this.
2142 (linux_wait_1): Turn into...
2143 (linux_process_target::wait_1): ...this.
2144 (wait_for_sigstop): Turn into...
2145 (linux_process_target::wait_for_sigstop): ...this.
2146 (move_out_of_jump_pad_callback): Turn into...
2147 (linux_process_target::move_out_of_jump_pad): ...this.
2148 (stop_all_lwps): Turn into...
2149 (linux_process_target::stop_all_lwps): ...this.
2150 (start_step_over): Turn into...
2151 (linux_process_target::start_step_over): ...this.
2152 (complete_ongoing_step_over): Turn into...
2153 (linux_process_target::complete_ongoing_step_over): ...this.
2154 (proceed_all_lwps): Turn into...
2155 (linux_process_target::proceed_all_lwps): ...this.
2156 (unstop_all_lwps): Turn into...
2157 (linux_process_target::unstop_all_lwps): ...this.
2159 * linux-low.h (class linux_process_target)
2160 <handle_extended_wait>
2161 <maybe_move_out_of_jump_pad>
2163 <wait_for_event_filtered>
2167 <move_out_of_jump_pad>
2170 <complete_ongoing_step_over>
2172 <unstop_all_lwps>: Declare.
2174 Update the callers below.
2176 * linux-low.cc (linux_process_target::attach): Update.
2177 (linux_process_target::stabilize_threads): Ditto.
2178 (linux_process_target::wait): Ditto.
2180 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2182 * linux-low.h (struct linux_target_ops): Update the comment for
2183 'cannot_store_register' to return 0 or 1.
2184 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2187 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2189 * config.in: Re-generate.
2190 * configure: Re-generate.
2192 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2194 * regcache.cc (find_register_by_number): Update.
2195 * tdesc.cc (init_target_desc): Likewise.
2196 * tdesc.h (target_desc::reg_defs): Likewise.
2198 2020-03-12 Tom Tromey <tom@tromey.com>
2200 * configure: Rebuild.
2201 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2202 (WIN32APILIBS): New subst.
2203 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2205 (gdbsupport/%.o): Remove target.
2206 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2207 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2208 (WIN32APILIBS): New variable.
2209 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2210 (gdbreplay$(EXEEXT)): Likewise.
2212 2020-03-12 Tom Tromey <tom@tromey.com>
2214 * config.in, configure: Rebuild.
2215 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2216 * acinclude.m4: Include gettext-sister.m4.
2217 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2219 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2220 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2222 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2224 * acinclude.m4: Update path to selftest.m4.
2226 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2228 * configure.ac: Don't source bfd/development.sh, move
2229 GDB_AC_COMMON higher.
2230 * configure: Re-generate.
2232 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2234 * configure: Re-generate.
2236 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2238 * configure: Re-generate.
2240 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2242 * .dir-locals.el: New file.
2244 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2246 * .gitattributes: New file.
2248 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2250 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2251 reply into an S reply.
2252 * server.cc (disable_packet_T): New global.
2253 (captured_main): Set new global when appropriate.
2254 * server.h (disable_packet_T): Declare.
2256 2020-02-21 Tom Tromey <tom@tromey.com>
2258 * Makefile.in (mostlyclean): New target.
2260 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2262 * target.h (struct process_stratum_target): Remove.
2263 (class process_target): Rename to ...
2264 (class process_stratum_target): ... this.
2265 * linux-low.h (class linux_process_target): Derive from
2266 'process_stratum_target'.
2267 * linux-low.cc (linux_target_ops): Remove.
2268 (initialize_low): Set the_target to the singleton instance of
2269 linux_process_target.
2270 * lynx-low.h (class lynx_process_target): Derive from
2271 'process_stratum_target'.
2272 * lynx-low.cc (lynx_target_ops): Remove.
2273 (initialize_low): Set the_target to the singleton instance of
2274 lynx_process_target.
2275 * nto-low.h (class nto_process_target): Derive from
2276 'process_stratum_target'.
2277 * nto-low.cc (nto_target_ops): Remove.
2278 (initialize_low): Set the_target to the singleton instance of
2280 * win32-low.h (class win32_process_target): Derive from
2281 'process_stratum_target'.
2282 * win32-low.cc (win32_target_ops): Remove.
2283 (initialize_low): Set the_target to the singleton instance of
2284 win32_process_target.
2286 Replace 'the_target->pt' with 'the_target' in the uses below.
2288 * hostio.cc (hostio_error)
2293 * linux-aarch32-low.cc (arm_breakpoint_at)
2294 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2295 * linux-arm-low.cc (arm_sigreturn_next_pc)
2297 (arm_get_syscall_trapinfo)
2298 * linux-cris-low.cc (cris_breakpoint_at)
2299 * linux-crisv32-low.cc (cris_breakpoint_at)
2300 * linux-low.cc (handle_extended_wait)
2303 (linux_process_target::breakpoint_kind_from_pc)
2305 * linux-m32r-low.cc (m32r_breakpoint_at)
2306 * linux-mips-low.cc (mips_breakpoint_at)
2307 * linux-nios2-low.cc (nios2_breakpoint_at)
2308 * linux-ppc-low.cc (ppc_breakpoint_at)
2309 * linux-s390-low.cc (s390_get_hwcap)
2310 * linux-sh-low.cc (sh_breakpoint_at)
2311 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2312 (sparc_store_gregset_from_stack)
2313 (sparc_breakpoint_at)
2314 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2315 * linux-tile-low.cc (tile_breakpoint_at)
2316 * linux-x86-low.cc (x86_breakpoint_at)
2317 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2318 * mem-break.cc (bp_size)
2320 (insert_memory_breakpoint)
2321 (set_raw_breakpoint_at)
2322 (delete_raw_breakpoint)
2324 (uninsert_raw_breakpoint)
2325 (reinsert_raw_breakpoint)
2326 (validate_inserted_breakpoint)
2327 * regcache.cc (regcache_read_pc)
2329 * remote-utils.cc (putpkt_binary_1)
2332 (prepare_resume_reply)
2333 * server.cc (handle_general_set)
2336 (handle_qxfer_exec_file)
2337 (handle_qxfer_libraries_svr4)
2338 (handle_qxfer_osdata)
2339 (handle_qxfer_siginfo)
2340 (handle_qxfer_fdpic)
2344 (queue_stop_reply_callback)
2346 * target.cc (prepare_to_access_memory)
2347 (done_accessing_memory)
2348 (read_inferior_memory)
2349 (target_write_memory)
2350 (target_stop_and_wait)
2352 (target_mourn_inferior)
2353 (target_continue_no_signal)
2355 (target_supports_multi_process)
2358 (target_create_inferior)
2359 (target_post_create_inferior)
2361 (target_supports_fork_events)
2362 (target_supports_vfork_events)
2363 (target_supports_exec_events)
2364 (target_handle_new_gdb_connection)
2367 (fetch_inferior_registers)
2368 (store_inferior_registers)
2370 (target_supports_non_stop)
2372 (target_process_qsupported)
2373 (target_supports_catch_syscall)
2374 (target_get_ipa_tdesc_idx)
2375 (target_supports_tracepoints)
2376 (target_supports_fast_tracepoints)
2377 (target_get_min_fast_tracepoint_insn_len)
2378 (target_thread_stopped)
2380 (target_unpause_all)
2381 (target_stabilize_threads)
2382 (target_install_fast_tracepoint_jump_pad)
2384 (target_supports_disable_randomization)
2385 (target_supports_agent)
2386 (target_enable_btrace)
2387 (target_disable_btrace)
2388 (target_read_btrace)
2389 (target_read_btrace_conf)
2390 (target_supports_range_stepping)
2391 (target_supports_stopped_by_sw_breakpoint)
2392 (target_stopped_by_sw_breakpoint)
2393 (target_supports_stopped_by_hw_breakpoint)
2394 (target_supports_hardware_single_step)
2395 (target_stopped_by_hw_breakpoint)
2396 (target_breakpoint_kind_from_pc)
2397 (target_breakpoint_kind_from_current_state)
2398 (target_supports_software_single_step)
2399 (target_core_of_thread)
2400 (target_thread_name)
2401 (target_thread_handle)
2402 * win32-low.cc (do_initial_child_stuff)
2404 Rename target op default definitions listed below.
2406 * target.cc (process_target::post_create_inferior): Rename as ...
2407 (process_stratum_target::post_create_inferior): ... this.
2408 (process_target::prepare_to_access_memory): Rename as ...
2409 (process_stratum_target::prepare_to_access_memory): ... this.
2410 (process_target::done_accessing_memory): Rename as ...
2411 (process_stratum_target::done_accessing_memory): ... this.
2412 (process_target::look_up_symbols): Rename as ...
2413 (process_stratum_target::look_up_symbols): ... this.
2414 (process_target::supports_read_auxv): Rename as ...
2415 (process_stratum_target::supports_read_auxv): ... this.
2416 (process_target::read_auxv): Rename as ...
2417 (process_stratum_target::read_auxv): ... this.
2418 (process_target::supports_z_point_type): Rename as ...
2419 (process_stratum_target::supports_z_point_type): ... this.
2420 (process_target::insert_point): Rename as ...
2421 (process_stratum_target::insert_point): ... this.
2422 (process_target::remove_point): Rename as ...
2423 (process_stratum_target::remove_point): ... this.
2424 (process_target::stopped_by_sw_breakpoint): Rename as ...
2425 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2426 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2427 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2428 (process_target::stopped_by_hw_breakpoint): Rename as ...
2429 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2430 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2431 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2432 (process_target::supports_hardware_single_step): Rename as ...
2433 (process_stratum_target::supports_hardware_single_step): ... this.
2434 (process_target::stopped_by_watchpoint): Rename as ...
2435 (process_stratum_target::stopped_by_watchpoint): ... this.
2436 (process_target::stopped_data_address): Rename as ...
2437 (process_stratum_target::stopped_data_address): ... this.
2438 (process_target::supports_read_offsets): Rename as ...
2439 (process_stratum_target::supports_read_offsets): ... this.
2440 (process_target::read_offsets): Rename as ...
2441 (process_stratum_target::read_offsets): ... this.
2442 (process_target::supports_get_tls_address): Rename as ...
2443 (process_stratum_target::supports_get_tls_address): ... this.
2444 (process_target::get_tls_address): Rename as ...
2445 (process_stratum_target::get_tls_address): ... this.
2446 (process_target::hostio_last_error): Rename as ...
2447 (process_stratum_target::hostio_last_error): ... this.
2448 (process_target::supports_qxfer_osdata): Rename as ...
2449 (process_stratum_target::supports_qxfer_osdata): ... this.
2450 (process_target::qxfer_osdata): Rename as ...
2451 (process_stratum_target::qxfer_osdata): ... this.
2452 (process_target::supports_qxfer_siginfo): Rename as ...
2453 (process_stratum_target::supports_qxfer_siginfo): ... this.
2454 (process_target::qxfer_siginfo): Rename as ...
2455 (process_stratum_target::qxfer_siginfo): ... this.
2456 (process_target::supports_non_stop): Rename as ...
2457 (process_stratum_target::supports_non_stop): ... this.
2458 (process_target::async): Rename as ...
2459 (process_stratum_target::async): ... this.
2460 (process_target::start_non_stop): Rename as ...
2461 (process_stratum_target::start_non_stop): ... this.
2462 (process_target::supports_multi_process): Rename as ...
2463 (process_stratum_target::supports_multi_process): ... this.
2464 (process_target::supports_fork_events): Rename as ...
2465 (process_stratum_target::supports_fork_events): ... this.
2466 (process_target::supports_vfork_events): Rename as ...
2467 (process_stratum_target::supports_vfork_events): ... this.
2468 (process_target::supports_exec_events): Rename as ...
2469 (process_stratum_target::supports_exec_events): ... this.
2470 (process_target::handle_new_gdb_connection): Rename as ...
2471 (process_stratum_target::handle_new_gdb_connection): ... this.
2472 (process_target::handle_monitor_command): Rename as ...
2473 (process_stratum_target::handle_monitor_command): ... this.
2474 (process_target::core_of_thread): Rename as ...
2475 (process_stratum_target::core_of_thread): ... this.
2476 (process_target::supports_read_loadmap): Rename as ...
2477 (process_stratum_target::supports_read_loadmap): ... this.
2478 (process_target::read_loadmap): Rename as ...
2479 (process_stratum_target::read_loadmap): ... this.
2480 (process_target::process_qsupported): Rename as ...
2481 (process_stratum_target::process_qsupported): ... this.
2482 (process_target::supports_tracepoints): Rename as ...
2483 (process_stratum_target::supports_tracepoints): ... this.
2484 (process_target::read_pc): Rename as ...
2485 (process_stratum_target::read_pc): ... this.
2486 (process_target::write_pc): Rename as ...
2487 (process_stratum_target::write_pc): ... this.
2488 (process_target::supports_thread_stopped): Rename as ...
2489 (process_stratum_target::supports_thread_stopped): ... this.
2490 (process_target::thread_stopped): Rename as ...
2491 (process_stratum_target::thread_stopped): ... this.
2492 (process_target::supports_get_tib_address): Rename as ...
2493 (process_stratum_target::supports_get_tib_address): ... this.
2494 (process_target::get_tib_address): Rename as ...
2495 (process_stratum_target::get_tib_address): ... this.
2496 (process_target::pause_all): Rename as ...
2497 (process_stratum_target::pause_all): ... this.
2498 (process_target::unpause_all): Rename as ...
2499 (process_stratum_target::unpause_all): ... this.
2500 (process_target::stabilize_threads): Rename as ...
2501 (process_stratum_target::stabilize_threads): ... this.
2502 (process_target::supports_fast_tracepoints): Rename as ...
2503 (process_stratum_target::supports_fast_tracepoints): ... this.
2504 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2505 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2506 (process_target::emit_ops): Rename as ...
2507 (process_stratum_target::emit_ops): ... this.
2508 (process_target::supports_disable_randomization): Rename as ...
2509 (process_stratum_target::supports_disable_randomization): ... this.
2510 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2511 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2512 (process_target::qxfer_libraries_svr4): Rename as ...
2513 (process_stratum_target::qxfer_libraries_svr4): ... this.
2514 (process_target::supports_agent): Rename as ...
2515 (process_stratum_target::supports_agent): ... this.
2516 (process_target::enable_btrace): Rename as ...
2517 (process_stratum_target::enable_btrace): ... this.
2518 (process_target::disable_btrace): Rename as ...
2519 (process_stratum_target::disable_btrace): ... this.
2520 (process_target::read_btrace): Rename as ...
2521 (process_stratum_target::read_btrace): ... this.
2522 (process_target::read_btrace_conf): Rename as ...
2523 (process_stratum_target::read_btrace_conf): ... this.
2524 (process_target::supports_range_stepping): Rename as ...
2525 (process_stratum_target::supports_range_stepping): ... this.
2526 (process_target::supports_pid_to_exec_file): Rename as ...
2527 (process_stratum_target::supports_pid_to_exec_file): ... this.
2528 (process_target::pid_to_exec_file): Rename as ...
2529 (process_stratum_target::pid_to_exec_file): ... this.
2530 (process_target::supports_multifs): Rename as ...
2531 (process_stratum_target::supports_multifs): ... this.
2532 (process_target::multifs_open): Rename as ...
2533 (process_stratum_target::multifs_open): ... this.
2534 (process_target::multifs_unlink): Rename as ...
2535 (process_stratum_target::multifs_unlink): ... this.
2536 (process_target::multifs_readlink): Rename as ...
2537 (process_stratum_target::multifs_readlink): ... this.
2538 (process_target::breakpoint_kind_from_pc): Rename as ...
2539 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2540 (process_target::breakpoint_kind_from_current_state): Rename as ...
2541 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2542 (process_target::thread_name): Rename as ...
2543 (process_stratum_target::thread_name): ... this.
2544 (process_target::thread_handle): Rename as ...
2545 (process_stratum_target::thread_handle): ... this.
2546 (process_target::supports_software_single_step): Rename as ...
2547 (process_stratum_target::supports_software_single_step): ... this.
2548 (process_target::supports_catch_syscall): Rename as ...
2549 (process_stratum_target::supports_catch_syscall): ... this.
2550 (process_target::get_ipa_tdesc_idx): Rename as ...
2551 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2553 2020-02-20 Pedro Alves <palves@redhat.com>
2555 * target.cc (set_target_ops): Simply copy the given target pointer
2556 instead of creating a copy of the pointed object.
2558 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2560 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2563 * target.h (struct process_stratum_target): Remove the target op.
2564 (class process_target): Add the target op.
2565 (target_get_ipa_tdesc_idx): Update the macro.
2566 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2568 Update the derived classes and callers below.
2570 * linux-low.cc (linux_target_ops): Update.
2571 (linux_get_ipa_tdesc_idx): Turn into ...
2572 (linux_process_target::get_ipa_tdesc_idx): ... this.
2573 * linux-low.h (class linux_process_target): Update.
2574 * lynx-low.cc (lynx_target_ops): Update.
2575 * nto-low.cc (nto_target_ops): Update.
2576 * win32-low.cc (win32_target_ops): Update.
2578 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2580 Turn process_stratum_target's supports_catch_syscall op into a
2581 method of process_target.
2583 * target.h (struct process_stratum_target): Remove the target op.
2584 (class process_target): Add the target op.
2585 (target_supports_catch_syscall): Update the macro.
2586 * target.cc (process_target::supports_catch_syscall): Define.
2588 Update the derived classes and callers below.
2590 * linux-low.cc (linux_target_ops): Update.
2591 (linux_supports_catch_syscall): Turn into ...
2592 (linux_process_target::supports_catch_syscall): ... this.
2593 * linux-low.h (class linux_process_target): Update.
2594 * lynx-low.cc (lynx_target_ops): Update.
2595 * nto-low.cc (nto_target_ops): Update.
2596 * win32-low.cc (win32_target_ops): Update.
2598 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2600 Turn process_stratum_target's supports_software_single_step op
2601 into a method of process_target.
2603 * target.h (struct process_stratum_target): Remove the target op.
2604 (class process_target): Add the target op.
2605 (target_supports_software_single_step): Update the macro.
2606 * target.cc (process_target::supports_software_single_step): Define.
2608 Update the derived classes and callers below.
2610 * linux-low.cc (linux_target_ops): Update.
2611 (linux_supports_software_single_step): Turn into ...
2612 (linux_process_target::supports_software_single_step): ... this.
2613 * linux-low.h (class linux_process_target): Update.
2614 * lynx-low.cc (lynx_target_ops): Update.
2615 * nto-low.cc (nto_target_ops): Update.
2616 * win32-low.cc (win32_target_ops): Update.
2618 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2620 Turn process_stratum_target's thread_name and thread_handle ops
2621 into methods of process_target.
2623 * target.h (struct process_stratum_target): Remove the target ops.
2624 (class process_target): Add the target ops.
2625 (target_thread_name): Update the macro.
2626 (target_thread_handle): Update the macro.
2627 * target.cc (process_target::thread_name): Define.
2628 (process_target::thread_handle): Define.
2630 Update the derived classes and callers below.
2632 * linux-low.cc (linux_target_ops): Update.
2633 (linux_process_target::thread_name): Define.
2634 (linux_process_target::thread_handle): Define.
2635 * linux-low.h (class linux_process_target): Update.
2636 * lynx-low.cc (lynx_target_ops): Update.
2637 * nto-low.cc (nto_target_ops): Update.
2638 * win32-low.cc (win32_target_ops): Update.
2640 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2642 Turn process_stratum_target's breakpoint_kind_from_pc,
2643 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2644 ops into methods of process_target.
2646 * target.h (struct process_stratum_target): Remove the target op.
2647 (class process_target): Add the target op.
2648 (target_breakpoint_kind_from_pc): Update the macro.
2649 (target_breakpoint_kind_from_current_state): Update the macro.
2650 (default_breakpoint_kind_from_pc): Remove declaration.
2651 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2652 (process_target::breakpoint_kind_from_pc): ... this.
2653 (process_target::breakpoint_kind_from_current_state): Define.
2655 Update the derived classes and callers below.
2657 * mem-break.cc (bp_size): Update.
2658 (bp_opcode): Update.
2659 * linux-low.cc (linux_target_ops): Update.
2660 (linux_wait_1): Update.
2661 (linux_breakpoint_kind_from_pc): Turn into ...
2662 (linux_process_target::breakpoint_kind_from_pc): ... this.
2663 (linux_sw_breakpoint_from_kind): Turn into ...
2664 (linux_process_target::sw_breakpoint_from_kind): ... this.
2665 (linux_breakpoint_kind_from_current_state): Turn into ...
2666 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2667 * linux-low.h (class linux_process_target): Update.
2668 * lynx-low.cc (lynx_target_ops): Update.
2669 (lynx_process_target::sw_breakpoint_from_kind): Define.
2670 * lynx-low.h (class lynx_process_target): Update.
2671 * nto-low.cc (nto_target_ops): Update.
2672 (nto_sw_breakpoint_from_kind): Turn into ...
2673 (nto_process_target::sw_breakpoint_from_kind): ... this.
2674 * nto-low.h (class nto_process_target): Update.
2675 * win32-low.cc (win32_target_ops): Update.
2676 (win32_sw_breakpoint_from_kind): Turn into ...
2677 (win32_process_target::sw_breakpoint_from_kind): ... this.
2678 * win32-low.h (class win32_process_target): Update.
2680 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2682 Turn process_stratum_target's multifs_open, multifs_readlink,
2683 multifs_unlink ops into methods of process_target.
2685 * target.h (struct process_stratum_target): Remove the target ops.
2686 (class process_target): Add the target ops. Also add
2688 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2690 (process_target::supports_multifs): Define.
2691 (process_target::multifs_open): Define.
2692 (process_target::multifs_readlink): Define.
2693 (process_target::multifs_unlink): Define.
2695 Update the derived classes and callers below.
2697 * hostio.cc (handle_setfs): Update.
2698 (handle_open): Update.
2699 (handle_unlink): Update.
2700 (handle_readlink): Update.
2701 * linux-low.cc (linux_target_ops): Update.
2702 (linux_process_target::supports_multifs): Define.
2703 (linux_process_target::multifs_open): Define.
2704 (linux_process_target::multifs_readlink): Define.
2705 (linux_process_target::multifs_unlink): Define.
2706 * linux-low.h (class linux_process_target): Update.
2707 * lynx-low.cc (lynx_target_ops): Update.
2708 * nto-low.cc (nto_target_ops): Update.
2709 * win32-low.cc (win32_target_ops): Update.
2711 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2713 Turn process_stratum_target's pid_to_exec_file op into a method
2716 * target.h (struct process_stratum_target): Remove the target op.
2717 (class process_target): Add the target op. Also add
2718 'supports_pid_to_exec_file'.
2719 * target.cc (process_target::pid_to_exec_file): Define.
2720 (process_target::supports_pid_to_exec_file): Define.
2722 Update the derived classes and callers below.
2724 * server.cc (handle_qxfer_exec_file): Update.
2725 (handle_query): Update.
2726 * linux-low.cc (linux_target_ops): Update.
2727 (linux_process_target::supports_pid_to_exec_file): Define.
2728 (linux_process_target::pid_to_exec_file): Define.
2729 * linux-low.h (class linux_process_target): Update.
2730 * lynx-low.cc (lynx_target_ops): Update.
2731 * nto-low.cc (nto_target_ops): Update.
2732 * win32-low.cc (win32_target_ops): Update.
2734 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2736 Turn process_stratum_target's supports_range_stepping op into a
2737 method of process_target.
2739 * target.h (struct process_stratum_target): Remove the target op.
2740 (class process_target): Add the target op.
2741 (target_supports_range_stepping): Update the macro.
2742 * target.cc (process_target::supports_range_stepping): Define.
2744 Update the derived classes and callers below.
2746 * linux-low.cc (linux_target_ops): Update.
2747 (linux_supports_range_stepping): Turn into ...
2748 (linux_process_target::supports_range_stepping): ... this.
2749 * linux-low.h (class linux_process_target): Update.
2750 * lynx-low.cc (lynx_target_ops): Update.
2751 * nto-low.cc (nto_target_ops): Update.
2752 * win32-low.cc (win32_target_ops): Update.
2754 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2756 Turn process_stratum_target's btrace-related ops (enable_btrace,
2757 disable_btrace, read_btrace, read_btrace_conf) into methods of
2760 * target.h (struct process_stratum_target): Remove the target ops.
2761 (class process_target): Add the target ops.
2762 (target_enable_btrace): Update.
2763 (target_disable_btrace): Update.
2764 (target_read_btrace): Update.
2765 (target_read_btrace_conf): Update.
2766 * target.cc (process_target::enable_btrace): Define.
2767 (process_target::disable_btrace): Define.
2768 (process_target::read_btrace): Define.
2769 (process_target::read_btrace_conf): Define.
2771 Update the derived classes and callers below.
2773 * linux-low.cc (linux_target_ops): Update.
2774 (linux_process_target:enable_btrace): Define as a wrapper around
2775 linux_enable_btrace.
2776 (linux_low_disable_btrace): Turn into ...
2777 (linux_process_target::disable_btrace): ... this.
2778 (linux_low_read_btrace): Turn into ...
2779 (linux_process_target::read_btrace): ... this.
2780 (linux_low_btrace_conf): Turn into ...
2781 (linux_process_target::read_btrace_conf): ... this.
2782 * linux-low.h (class linux_process_target): Update.
2783 * lynx-low.cc (lynx_target_ops): Update.
2784 * nto-low.cc (nto_target_ops): Update.
2785 * win32-low.cc (win32_target_ops): Update.
2787 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2789 Turn process_stratum_target's supports_agent op into a method of
2792 * target.h (struct process_stratum_target): Remove the target op.
2793 (class process_target): Add the target op.
2794 (target_supports_agent): Update the macro.
2795 * target.cc (process_target::supports_agent): Define.
2797 Update the derived classes and callers below.
2799 * linux-low.cc (linux_target_ops): Update.
2800 (linux_supports_agent): Turn into ...
2801 (linux_process_target::supports_agent): ... this.
2802 * linux-low.h (class linux_process_target): Update.
2803 * lynx-low.cc (lynx_target_ops): Update.
2804 * nto-low.cc (nto_target_ops): Update.
2805 * win32-low.cc (win32_target_ops): Update.
2807 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2809 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2810 method of process_target.
2812 * target.h (struct process_stratum_target): Remove the target op.
2813 (class process_target): Add the target op. Also add
2814 'supports_qxfer_libraries_svr4'.
2815 * target.cc (process_target::qxfer_libraries_svr4): Define.
2816 (process_target::supports_qxfer_libraries_svr4): Define.
2818 Update the derived classes and callers below.
2820 * server.cc (handle_qxfer_libraries_svr4): Update.
2821 (handle_query): Update.
2822 * linux-low.cc (linux_target_ops): Update.
2823 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2824 (linux_qxfer_libraries_svr4): Turn into ...
2825 (linux_process_target::qxfer_libraries_svr4): ... this.
2826 * linux-low.h (class linux_process_target): Update.
2827 * lynx-low.cc (lynx_target_ops): Update.
2828 * nto-low.cc (nto_target_ops): Update.
2829 * win32-low.cc (win32_target_ops): Update.
2831 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2833 Turn process_stratum_target's supports_disable_randomization op
2834 into a method of process_target.
2836 * target.h (struct process_stratum_target): Remove the target op.
2837 (class process_target): Add the target op.
2838 (target_supports_disable_randomization): Update the macro.
2839 * target.cc (process_target::supports_disable_randomization): Define.
2841 Update the derived classes and callers below.
2843 * linux-low.cc (linux_target_ops): Update.
2844 (linux_supports_disable_randomization): Turn into ...
2845 (linux_process_target::supports_disable_randomization): ... this.
2846 * linux-low.h (class linux_process_target): Update.
2847 * lynx-low.cc (lynx_target_ops): Update.
2848 * nto-low.cc (nto_target_ops): Update.
2849 * win32-low.cc (win32_target_ops): Update.
2851 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2853 Turn process_stratum_target's emit_ops op into a method of
2856 * target.h (struct process_stratum_target): Remove the target op.
2857 (class process_target): Add the target op.
2858 (target_emit_ops): Update the macro.
2859 * target.cc (process_target::emit_ops): Define.
2861 Update the derived classes and callers below.
2863 * linux-low.cc (linux_target_ops): Update.
2864 (linux_emit_ops): Turn into ...
2865 (linux_process_target::emit_ops): ... this.
2866 * linux-low.h (class linux_process_target): Update.
2867 * lynx-low.cc (lynx_target_ops): Update.
2868 * nto-low.cc (nto_target_ops): Update.
2869 * win32-low.cc (win32_target_ops): Update.
2871 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2873 Turn process_stratum_target's install_fast_tracepoint_jump_pad
2874 and get_min_fast_tracepoint_insn_len ops into methods of
2877 * target.h (struct process_stratum_target): Remove the target ops.
2878 (class process_target): Add the target ops. Also add
2879 'supports_fast_tracepoints'.
2880 (target_supports_fast_tracepoints): Update the macro.
2881 (target_get_min_fast_tracepoint_insn_len): Update the macro.
2882 (install_fast_tracepoint_jump_pad): Update and rename the macro
2884 (target_install_fast_tracepoint_jump_pad): ... this.
2885 * target.cc (process_target::supports_fast_tracepoints): Define.
2886 (process_target::install_fast_tracepoint_jump_pad): Define.
2887 (process_target::get_min_fast_tracepoint_insn_len): Define.
2889 Update the derived classes and callers below.
2891 * tracepoint.cc (install_fast_tracepoint): Update.
2892 * linux-low.cc (linux_target_ops): Update.
2893 (linux_process_target::supports_fast_tracepoints): Define.
2894 (linux_install_fast_tracepoint_jump_pad): Turn into ...
2895 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
2896 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
2897 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
2898 * linux-low.h (class linux_process_target): Update.
2899 * lynx-low.cc (lynx_target_ops): Update.
2900 * nto-low.cc (nto_target_ops): Update.
2901 * win32-low.cc (win32_target_ops): Update.
2903 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2905 Turn process_stratum_target's stabilize_threads op into a
2906 method of process_target.
2908 * target.h (struct process_stratum_target): Remove the target op.
2909 (class process_target): Add the target op.
2910 (target_stabilize_threads): Update the macro.
2911 * target.cc (process_target::stabilize_threads): Define.
2913 Update the derived classes and callers below.
2915 * server.cc (handle_status): Update.
2916 * tracepoint.cc (cmd_qtdp): Update.
2917 (cmd_qtstart): Update.
2918 * linux-low.cc (linux_target_ops): Update.
2919 (linux_stabilize_threads): Turn into ...
2920 (linux_process_target::stabilize_threads): ... this.
2921 (linux_wait_1): Update.
2922 * linux-low.h (class linux_process_target): Update.
2923 * lynx-low.cc (lynx_target_ops): Update.
2924 * nto-low.cc (nto_target_ops): Update.
2925 * win32-low.cc (win32_target_ops): Update.
2927 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2929 Turn process_stratum_target's pause_all and unpause_all ops
2930 into methods of process_target.
2932 * target.h (struct process_stratum_target): Remove the target ops.
2933 (class process_target): Add the target ops.
2934 (pause_all): Update the macro and rename to...
2935 (target_pause_all): ... this.
2936 (unpause_all): Update the macro and rename to...
2937 (target_unpause_all): ... this.
2938 * target.cc (process_target::pause_all): Define.
2939 (process_target::unpause_all): Define.
2941 Update the derived classes and callers below.
2943 * server.cc (handle_status): Update.
2944 * tracepoint.cc (clear_installed_tracepoints): Update.
2946 (cmd_qtstart): Update.
2947 (stop_tracing): Update.
2948 (cmd_qtstatus): Update.
2949 (upload_fast_traceframes): Update.
2950 (run_inferior_command): Update.
2951 * linux-low.cc (linux_target_ops): Update.
2952 (linux_pause_all): Turn into ...
2953 (linux_process_target::pause_all): ... this.
2954 (linux_unpause_all): Turn into ...
2955 (linux_process_target::unpause_all): ... this.
2956 (linux_process_target::prepare_to_access_memory): Update.
2957 (linux_process_target::done_accessing_memory): Update.
2958 * linux-low.h (class linux_process_target): 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.
2963 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2965 Turn process_stratum_target's get_tib_address op into a method of
2968 * target.h (struct process_stratum_target): Remove the target op.
2969 (class process_target): Add the target op. Also add
2970 'supports_get_tib_address'.
2971 * target.cc (process_target::get_tib_address): Define.
2972 (process_target::supports_get_tib_address): Define.
2974 Update the derived classes and callers below.
2976 * server.cc (handle_query): Update.
2977 * linux-low.cc (win32_target_ops): Update.
2978 * lynx-low.cc (lynx_target_ops): Update.
2979 * nto-low.cc (nto_target_ops): Update.
2980 * win32-low.cc (win32_target_ops): Update.
2981 (win32_process_target::supports_get_tib_address): Define.
2982 (win32_get_tib_address): Turn into ...
2983 (win32_process_target::get_tib_address): ... this.
2984 * win32-low.h (class win32_process_target): Update.
2986 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2988 Turn process_stratum_target's thread_stopped op into a method of
2991 * target.h (struct process_stratum_target): Remove the target op.
2992 (class process_target): Add the target op. Also add
2993 'supports_thread_stopped'.
2994 (target_thread_stopped): Update the macro.
2995 * target.cc (process_target::thread_stopped): Define.
2996 (process_target::supports_thread_stopped): Define.
2997 (prepare_to_access_memory): Update.
2999 Update the derived classes and callers below.
3001 * server.cc (queue_stop_reply_callback): Update.
3002 * linux-low.cc (linux_target_ops): Update.
3003 (linux_process_target::supports_thread_stopped): Define.
3004 (linux_thread_stopped): Turn into ...
3005 (linux_process_target::thread_stopped): ... this.
3006 * linux-low.h (class linux_process_target): Update.
3007 * lynx-low.cc (lynx_target_ops): Update.
3008 * nto-low.cc (nto_target_ops): Update.
3009 * win32-low.cc (win32_target_ops): Update.
3011 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3013 Turn process_stratum_target's read_pc and write_pc ops into
3014 methods of process_target.
3016 * target.h (struct process_stratum_target): Remove the target ops.
3017 (class process_target): Add the target ops.
3018 * target.cc (process_target::read_pc): Define.
3019 (process_target::write_pc): Define.
3021 Update the derived classes and callers below.
3023 * regcache.cc (regcache_read_pc): Update.
3024 (regcache_write_pc): Update.
3025 * linux-low.cc (linux_target_ops): Update.
3026 (linux_read_pc): Turn into ...
3027 (linux_process_target::read_pc): ... this.
3028 (linux_write_pc): Turn into ...
3029 (linux_process_target::write_pc): ... this.
3030 * linux-low.h (class linux_process_target): Update.
3031 * lynx-low.cc (lynx_target_ops): Update.
3032 * nto-low.cc (nto_target_ops): Update.
3033 * win32-low.cc (win32_target_ops): Update.
3035 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3037 Turn process_stratum_target's supports_tracepoints op into a
3038 method of process_target.
3040 * target.h (struct process_stratum_target): Remove the target op.
3041 (class process_target): Add the target op.
3042 (target_supports_tracepoints): Update the macro.
3043 * target.cc (process_target::supports_tracepoints): Define.
3045 Update the derived classes and callers below.
3047 * linux-low.cc (linux_target_ops): Update.
3048 (linux_supports_tracepoints): Turn into ...
3049 (linux_process_target::supports_tracepoints): ... this.
3050 * linux-low.h (class linux_process_target): Update.
3051 * lynx-low.cc (lynx_target_ops): Update.
3052 * nto-low.cc (nto_target_ops): Update.
3053 * win32-low.cc (win32_target_ops): Update.
3055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3057 Turn process_stratum_target's process_qsupported op into a method
3060 * target.h (struct process_stratum_target): Remove the target op.
3061 (class process_target): Add the target op.
3062 (target_process_qsupported): Update the macro.
3063 * target.cc (process_target::process_qsupported): Define.
3065 Update the derived classes and callers below.
3067 * linux-low.cc (linux_target_ops): Update.
3068 (linux_process_qsupported): Turn into ...
3069 (linux_process_target::process_qsupported): ... this.
3070 * linux-low.h (class linux_process_target): Update.
3071 * lynx-low.cc (lynx_target_ops): Update.
3072 * nto-low.cc (nto_target_ops): Update.
3073 * win32-low.cc (win32_target_ops): Update.
3075 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3077 Turn process_stratum_target's read_loadmap op into a method of
3080 * target.h (struct process_stratum_target): Remove the target op.
3081 (class process_target): Add the target op. Also add
3082 'supports_read_loadmap'.
3083 * target.cc (process_target::read_loadmap): Define.
3084 (process_target::supports_read_loadmap): Define.
3086 Update the derived classes and callers below.
3088 * server.cc (handle_qxfer_fdpic): Update.
3089 (handle_query): Update.
3090 * linux-low.cc (linux_target_ops): Update.
3091 (linux_process_target::supports_read_loadmap): Define.
3092 (linux_read_loadmap): Turn into ...
3093 (linux_process_target::read_loadmap): ... this.
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 core_of_thread op into a method of
3104 * target.h (struct process_stratum_target): Remove the target op.
3105 (class process_target): Add the target op.
3106 (target_core_of_thread): Update the macro.
3107 * target.cc (process_target::core_of_thread): Define.
3109 Update the derived classes and callers below.
3111 * linux-low.cc (linux_target_ops): Update.
3112 (linux_process_target::core_of_thread): Define.
3113 * linux-low.h (class linux_process_target): Update.
3114 * lynx-low.cc (lynx_target_ops): Update.
3115 * nto-low.cc (nto_target_ops): Update.
3116 * win32-low.cc (win32_target_ops): Update.
3118 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3120 Turn process_stratum_target's handle_monitor_command op into a
3121 method of process_target.
3123 * target.h (struct process_stratum_target): Remove the target op.
3124 (class process_target): Add the target op.
3125 (target_handle_monitor_command): Update the macro.
3126 * target.cc (process_target::handle_monitor_command): Define.
3128 Update the derived classes and callers below.
3130 * server.cc (handle_query): Update.
3131 * linux-low.cc (linux_target_ops): Update.
3132 (linux_process_target::handle_monitor_command): Define.
3133 * linux-low.h (class linux_process_target): Update.
3134 * lynx-low.cc (lynx_target_ops): Update.
3135 * nto-low.cc (nto_target_ops): Update.
3136 * win32-low.cc (win32_target_ops): Update.
3138 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3140 Turn process_stratum_target's handle_new_gdb_connection op into a
3141 method of process_target.
3143 * target.h (struct process_stratum_target): Remove the target op.
3144 (class process_target): Add the target op.
3145 (target_handle_new_gdb_connection): Update the macro.
3146 * target.cc (process_target::handle_new_gdb_connection): Define.
3148 Update the derived classes and callers below.
3150 * linux-low.cc (linux_target_ops): Update.
3151 (linux_handle_new_gdb_connection): Turn into ...
3152 (linux_process_target::handle_new_gdb_connection): ... this.
3153 * linux-low.h (class linux_process_target): Update.
3154 * lynx-low.cc (lynx_target_ops): Update.
3155 * nto-low.cc (nto_target_ops): Update.
3156 * win32-low.cc (win32_target_ops): Update.
3158 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3160 Turn process_stratum_target's supports_fork_events,
3161 supports_vfork_events, and supports_exec_events ops into methods
3164 * target.h (struct process_stratum_target): Remove the target ops.
3165 (class process_target): Add the target ops.
3166 (target_supports_fork_events): Update the macro.
3167 (target_supports_vfork_events): Update the macro.
3168 (target_supports_exec_events): Update the macro.
3169 * target.cc (process_target::supports_fork_events): Define.
3170 (process_target::supports_vfork_events): Define.
3171 (process_target::supports_exec_events): Define.
3173 Update the derived classes and callers below.
3175 * linux-low.cc (linux_target_ops): Update.
3176 (linux_supports_fork_events): Turn into ...
3177 (linux_process_target::supports_fork_events): ... this.
3178 (linux_supports_vfork_events): Turn into ...
3179 (linux_process_target::supports_vfork_events): ... this.
3180 (linux_supports_exec_events): Turn into ...
3181 (linux_process_target::supports_exec_events): ... this.
3182 * linux-low.h (class linux_process_target): Update.
3183 * lynx-low.cc (lynx_target_ops): Update.
3184 * nto-low.cc (nto_target_ops): Update.
3185 * win32-low.cc (win32_target_ops): Update.
3187 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3189 Turn process_stratum_target's supports_multi_process op into a
3190 method of process_target.
3192 * target.h (struct process_stratum_target): Remove the target op.
3193 (class process_target): Add the target op.
3194 * target.cc (process_target::supports_multi_process): Define.
3195 (target_supports_multi_process): Update.
3197 Update the derived classes and callers below.
3199 * linux-low.cc (linux_target_ops): Update.
3200 (linux_supports_multi_process): Turn into ...
3201 (linux_process_target::supports_multi_process): ... this.
3202 * linux-low.h (class linux_process_target): Update.
3203 * lynx-low.cc (lynx_target_ops): Update.
3204 * nto-low.cc (nto_target_ops): Update.
3205 * win32-low.cc (win32_target_ops): Update.
3207 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3209 Turn process_stratum_target's supports_non_stop, async, and
3210 start_non_stop ops into methods of process_target.
3212 * target.h (struct process_stratum_target): Remove the target ops.
3213 (class process_target): Add the target ops.
3214 (target_supports_non_stop): Update the macro.
3215 (target_async): Update the macro.
3216 (start_non_stop): Remove declaration.
3217 * target.cc (process_target::supports_non_stop): Define.
3218 (process_target::async): Define.
3219 (process_target::start_non_stop): Define.
3220 (start_non_stop): Remove.
3222 Update the derived classes and callers below.
3224 * server.cc (handle_qxfer_siginfo): Update.
3225 (handle_query): Update.
3226 * linux-low.cc (linux_target_ops): Update.
3227 (linux_supports_non_stop): Turn into ...
3228 (linux_process_target::supports_non_stop): ... this.
3229 (linux_async): Turn into ...
3230 (linux_process_target::async): ... this.
3231 (linux_start_non_stop): Turn into ...
3232 (linux_process_target::start_non_stop): ... this.
3233 * linux-low.h (class linux_process_target): Update.
3234 * lynx-low.cc (lynx_target_ops): Update.
3235 * nto-low.cc (nto_target_ops): Update.
3236 (nto_supports_non_stop): Remove; rely on the default behavior
3238 * win32-low.cc (win32_target_ops): Update.
3240 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3242 Turn process_stratum_target's qxfer_siginfo op into a method of
3245 * target.h (struct process_stratum_target): Remove the target op.
3246 (class process_target): Add the target op. Also add
3247 'supports_qxfer_siginfo'.
3248 * target.cc (process_target::qxfer_siginfo): Define.
3249 (process_target::supports_qxfer_siginfo): Define.
3251 Update the derived classes and callers below.
3253 * server.cc (handle_qxfer_siginfo): Update.
3254 (handle_query): Update.
3255 * linux-low.cc (linux_target_ops): Update.
3256 (linux_process_target::supports_qxfer_siginfo): Define.
3257 (linux_xfer_siginfo): Turn into ...
3258 (linux_process_target::qxfer_siginfo): ... this.
3259 * linux-low.h (class linux_process_target): Update.
3260 * lynx-low.cc (lynx_target_ops): Update.
3261 * nto-low.cc (nto_target_ops): Update.
3262 * win32-low.cc (win32_target_ops): Update.
3264 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3266 Turn process_stratum_target's qxfer_osdata op into a method of
3269 * target.h (struct process_stratum_target): Remove the target op.
3270 (class process_target): Add the target op. Also add
3271 'supports_qxfer_osdata'.
3272 * target.cc (process_target::qxfer_osdata): Define.
3273 (process_target::supports_qxfer_osdata): Define.
3275 Update the derived classes and callers below.
3277 * server.cc (handle_qxfer_osdata): Update.
3278 (handle_query): Update.
3279 * linux-low.cc (linux_target_ops): Update.
3280 (linux_process_target::supports_qxfer_osdata): Define.
3281 (linux_qxfer_osdata): Turn into ...
3282 (linux_process_target::qxfer_osdata): ... this.
3283 * linux-low.h (class linux_process_target): Update.
3284 * lynx-low.cc (lynx_target_ops): Update.
3285 * nto-low.cc (nto_target_ops): Update.
3286 * win32-low.cc (win32_target_ops): Update.
3288 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3290 Turn process_stratum_target's hostio_last_error op into a
3291 method of process_target.
3293 * target.h (struct process_stratum_target): Remove the target op.
3294 (class process_target): Add the target op.
3295 * target.cc: Add "hostio.h" to includes.
3296 (process_target::hostio_last_error): Define.
3298 Update the derived classes and callers below.
3300 * hostio.cc (hostio_error): Update.
3301 * linux-low.cc: Remove "hostio.h" from includes.
3302 (linux_target_ops): Update.
3303 * lynx-low.cc (lynx_target_ops): Update.
3304 * nto-low.cc (nto_target_ops): Update.
3305 * win32-low.h (class win32_process_target): Update.
3306 * win32-low.cc (win32_target_ops): Update.
3307 (wince_hostio_last_error): Turn into ...
3308 (win32_process_target::hostio_last_error): ... this.
3310 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3312 Turn process_stratum_target's get_tls_address op into a method of
3315 * target.h (struct process_stratum_target): Remove the target op.
3316 (class process_target): Add the target op. Also add
3317 'supports_get_tls_address'.
3318 * target.cc (process_target::get_tls_address): Define.
3319 (process_target::supports_get_tls_address): Define.
3321 Update the derived classes and callers below.
3323 * server.cc (handle_query): Update.
3324 * linux-low.cc (linux_target_ops): Update.
3325 (linux_process_target::supports_get_tls_address): Define.
3326 (linux_process_target::get_tls_address): Define.
3327 * linux-low.h (class linux_process_target): Update.
3328 * lynx-low.cc (lynx_target_ops): Update.
3329 * nto-low.cc (nto_target_ops): Update.
3330 * win32-low.cc (win32_target_ops): Update.
3332 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3334 Turn process_stratum_target's read_offsets op into a method of
3337 * target.h (struct process_stratum_target): Remove the target op.
3338 (class process_target): Add the target op. Also add
3339 'supports_read_offsets'.
3340 * target.cc (process_target::read_offsets): Define.
3341 (process_target::supports_read_offsets): Define.
3343 Update the derived classes and callers below.
3345 * server.cc (handle_query): Update.
3346 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3347 (linux_target_ops): Update.
3348 (linux_process_target::supports_read_offsets): Define.
3349 (linux_read_offsets): Turn into ...
3350 (linux_process_target::read_offsets): ... this.
3351 * linux-low.h (class linux_process_target): Update.
3352 * lynx-low.cc (lynx_target_ops): Update.
3353 * nto-low.cc (nto_target_ops): Update.
3354 * win32-low.cc (win32_target_ops): Update.
3356 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3358 Turn process_stratum_target's stopped_by_watchpoint and
3359 stopped_data_address ops into methods of process_target.
3361 * target.h (struct process_stratum_target): Remove the target ops.
3362 (class process_target): Add the target ops.
3363 * target.cc (process_target::stopped_by_watchpoint): Define.
3364 (process_target::stopped_data_address): Define.
3366 Update the derived classes and callers below.
3368 * remote-utils.cc (prepare_resume_reply): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_stopped_by_watchpoint): Turn into ...
3371 (linux_process_target::stopped_by_watchpoint): ... this.
3372 (linux_stopped_data_address): Turn into ...
3373 (linux_process_target::stopped_data_address): ... this.
3374 * linux-low.h (class linux_process_target): Update.
3375 * lynx-low.cc (lynx_target_ops): Update.
3376 * nto-low.cc (nto_target_ops): Update.
3377 (nto_stopped_by_watchpoint): Turn into ...
3378 (nto_process_target::stopped_by_watchpoint): ... this.
3379 (nto_stopped_data_address): Turn into ...
3380 (nto_process_target::stopped_data_address): ... this.
3381 * nto-low.h (class nto_process_target): Update.
3382 * win32-low.cc (win32_target_ops): Update.
3383 (win32_stopped_by_watchpoint): Turn into ...
3384 (win32_process_target::stopped_by_watchpoint): ... this.
3385 (win32_stopped_data_address): Turn into ...
3386 (win32_process_target::stopped_data_address): ... this.
3387 * win32-low.h (class win32_process_target): Update.
3389 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3391 Turn process_stratum_target's supports_hardware_single_step op into
3392 a method of process_target.
3394 * target.h (struct process_stratum_target): Remove the target op.
3395 (class process_target): Add the target op.
3396 (target_supports_hardware_single_step): Update the macro.
3397 (target_can_do_hardware_single_step): Remove declaration.
3398 * target.cc (process_target::supports_hardware_single_step): Define.
3399 (target_can_do_hardware_single_step): Remove.
3401 Update the derived classes and callers below.
3403 * linux-low.h (class linux_process_target): Update.
3404 * linux-low.cc (linux_target_ops): Update.
3405 (linux_supports_hardware_single_step): Turn into ...
3406 (linux_process_target::supports_hardware_single_step): ... this.
3407 * lynx-low.h (class lynx_process_target): Update.
3408 * lynx-low.cc (lynx_target_ops): Update.
3409 (lynx_process_target::supports_hardware_single_step): Define.
3410 * nto-low.h (class nto_process_target): Update.
3411 * nto-low.cc (nto_target_ops): Update.
3412 (nto_process_target::supports_hardware_single_step): Define.
3413 * win32-low.h (class win32_process_target): Update.
3414 * win32-low.cc (win32_target_ops): Update.
3415 (win32_process_target::supports_hardware_single_step): Define.
3417 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3419 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3420 ops into methods of process_target.
3422 * target.h (struct process_stratum_target): Remove the target ops.
3423 (class process_target): Add the target ops.
3424 (target_stopped_by_hw_breakpoint): Update the macro.
3425 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3426 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3427 (process_target::supports_stopped_by_hw_breakpoint): Define.
3429 Update the derived classes and callers below.
3431 * linux-low.cc (linux_target_ops): Update.
3432 (linux_stopped_by_hw_breakpoint): Turn into ...
3433 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3434 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3435 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3436 * linux-low.h (class linux_process_target): Update.
3437 * lynx-low.cc (lynx_target_ops): Update.
3438 * nto-low.cc (nto_target_ops): Update.
3439 * win32-low.cc (win32_target_ops): Update.
3441 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3443 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3444 ops into methods of process_target.
3446 * target.h (struct process_stratum_target): Remove the target ops.
3447 (class process_target): Add the target ops.
3448 (target_stopped_by_sw_breakpoint): Update the macro.
3449 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3450 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3451 (process_target::supports_stopped_by_sw_breakpoint): Define.
3453 Update the derived classes and callers below.
3455 * linux-low.cc (linux_target_ops): Update.
3456 (linux_stopped_by_sw_breakpoint): Turn into ...
3457 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3458 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3459 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3460 * linux-low.h (class linux_process_target): Update.
3461 * lynx-low.cc (lynx_target_ops): Update.
3462 * nto-low.cc (nto_target_ops): Update.
3463 * win32-low.cc (win32_target_ops): Update.
3465 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3467 Turn process_stratum_target's insert_point and remove_point ops
3468 into methods of process_target.
3470 * target.h (struct process_stratum_target): Remove the target ops.
3471 (class process_target): Add the target ops.
3472 * target.cc (process_target::insert_point): Define.
3473 (process_target::remove_point): Define.
3475 Update the derived classes and callers below.
3477 * mem-break.cc (set_raw_breakpoint_at): Update.
3478 (delete_raw_breakpoint): Update.
3479 (uninsert_raw_breakpoint): Update.
3480 (reinsert_raw_breakpoint): Update.
3481 * linux-low.cc (linux_target_ops): Update.
3482 (linux_insert_point): Turn into ...
3483 (linux_process_target::insert_point): ... this.
3484 (linux_remove_point): Turn into ...
3485 (linux_process_target::remove_point): ... this.
3486 * linux-low.h (class linux_process_target): Update.
3487 * lynx-low.cc (lynx_target_ops): Update.
3488 * nto-low.cc (nto_target_ops): Update.
3489 (nto_insert_point): Turn into ...
3490 (nto_process_target::insert_point): ... this.
3491 (nto_remove_point): Turn into ...
3492 (nto_process_target::remove_point): ... this.
3493 * nto-low.h (class nto_process_target): Update.
3494 * win32-low.cc (win32_target_ops): Update.
3495 (win32_insert_point): Turn into ...
3496 (win32_process_target::insert_point): ... this.
3497 (win32_remove_point): Turn into ...
3498 (win32_process_target::remove_point): ... this.
3499 * win32-low.h (class win32_process_target): Update.
3501 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3503 Turn process_stratum_target's supports_z_point_type op into a
3504 method of process_target.
3506 * target.h (struct process_stratum_target): Remove the target op.
3507 (class process_target): Add the target op.
3508 * target.cc (process_target::supports_z_point_type): Define.
3510 Update the derived classes and callers below.
3512 * mem-break.cc (z_type_supported): Update.
3513 * linux-low.cc (linux_target_ops): Update.
3514 (linux_supports_z_point_type): Turn into ...
3515 (linux_process_target::supports_z_point_type): ... this.
3516 * linux-low.h (class linux_process_target): Update.
3517 * lynx-low.cc (lynx_target_ops): Update.
3518 * nto-low.cc (nto_target_ops): Update.
3519 (nto_supports_z_point_type): Turn into ...
3520 (nto_process_target::supports_z_point_type): ... this.
3521 * nto-low.h (class nto_process_target): Update.
3522 * win32-low.cc (win32_target_ops): Update.
3523 (win32_supports_z_point_type): Turn into ...
3524 (win32_process_target::supports_z_point_type): ... this.
3525 * win32-low.h (class win32_process_target): Update.
3527 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3529 Turn process_stratum_target's read_auxv op into a method of
3532 * target.h (class process_stratum_target): Remove the target op.
3533 (struct process_target): Add the target op. Also add
3534 'supports_read_auxv'.
3535 * target.cc (process_target::read_auxv): Define.
3536 (process_target::supports_read_auxv): Define.
3538 Update the derived classes and callers below.
3540 * server.cc (handle_qxfer_auxv): Update.
3541 (handle_query): Update.
3542 * linux-low.cc (linux_target_ops): Update.
3543 (linux_process_target::supports_read_auxv): Define.
3544 (linux_read_auxv): Turn into ...
3545 (linux_process_target::read_auxv): ... this.
3546 * linux-low.h (class linux_process_target): Update.
3547 * lynx-low.cc (lynx_target_ops): Update.
3548 * nto-low.cc (nto_target_ops): Update.
3549 (nto_process_target::supports_read_auxv): Define.
3550 (nto_read_auxv): Turn into ...
3551 (nto_process_target::read_auxv): ... this.
3552 * nto-low.h (class nto_process_target): Update.
3553 * win32-low.cc (win32_target_ops): Update.
3555 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3557 Turn process_stratum_target's request_interrupt op into a method of
3560 * target.h (struct process_stratum_target): Remove the target op.
3561 (class process_target): Add the target op.
3563 Update the derived classes and callers below.
3565 * remote-utils.cc (putpkt_binary_1): Update.
3566 (input_interrupt): Update.
3568 * server.cc (handle_v_requests): Update.
3569 * linux-low.cc (linux_target_ops): Update.
3570 (linux_request_interrupt): Turn into ...
3571 (linux_process_target::request_interrupt): ... this.
3572 * linux-low.h (class linux_process_target): Update.
3573 * lynx-low.cc (lynx_target_ops): Update.
3574 (lynx_request_interrupt): Turn into ...
3575 (lynx_process_target::request_interrupt): ... this.
3576 * lynx-low.h (class lynx_process_target): Update.
3577 * nto-low.cc (nto_target_ops): Update.
3578 (nto_request_interrupt): Turn into ...
3579 (nto_process_target::request_interrupt): ... this.
3580 * nto-low.h (class nto_process_target): Update.
3581 * win32-low.cc (win32_target_ops): Update.
3582 (win32_request_interrupt): Turn into ...
3583 (win32_process_target::request_interrupt): ... this.
3584 * win32-low.h (class win32_process_target): Update.
3586 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3588 Turn process_stratum_target's look_up_symbols op into a method of
3591 * target.h (struct process_stratum_target): Remove the target op.
3592 (class process_target): Add the target op.
3593 * target.cc (process_target::look_up_symbols): Define.
3595 Update the derived classes and callers below.
3597 * server.cc (handle_query): Update.
3598 * linux-low.cc (linux_target_ops): Update.
3599 (linux_look_up_symbols): Turn into ...
3600 (linux_process_target::look_up_symbols): ... this.
3601 * linux-low.h (class linux_process_target): Update.
3602 * lynx-low.cc (lynx_target_ops): Update.
3603 * nto-low.cc (nto_target_ops): Update.
3604 * win32-low.cc (win32_target_ops): Update.
3606 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3608 Turn process_stratum_target's read_memory and write_memory
3609 ops into methods of process_target.
3611 * target.h (struct process_stratum_target): Remove the target ops.
3612 (class process_target): Add the target ops.
3614 Update the derived classes and callers below.
3616 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3617 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3618 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3619 (arm_get_syscall_trapinfo): Update.
3620 * linux-cris-low.cc (cris_breakpoint_at): Update.
3621 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3622 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3623 * linux-mips-low.cc (mips_breakpoint_at): Update.
3624 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3625 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3626 * linux-sh-low.cc (sh_breakpoint_at): Update.
3627 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3628 (sparc_store_gregset_from_stack): Update.
3629 (sparc_breakpoint_at): Update.
3630 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3631 * linux-tile-low.cc (tile_breakpoint_at): Update.
3632 * linux-x86-low.cc (x86_breakpoint_at): Update.
3633 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3634 * mem-brea.cc (insert_memory_breakpoint): Update.
3635 (validate_inserted_breakpoint): Update.
3636 * target.cc (read_inferior_memory): Update.
3637 (target_write_memory): Update.
3638 * linux-low.cc (linux_target_ops): Update.
3639 (linux_read_memory): Make a wrapper around the read_memory target
3641 (linux_process_target::read_memory): Rename from linux_read_memory.
3642 (linux_write_memory): Turn into ...
3643 (linux_process_target::write_memory): ... this.
3644 * linux-low.h (class linux_process_target): Update.
3645 * lynx-low.cc (lynx_target_ops): Update.
3646 (lynx_read_memory): Turn into ...
3647 (lynx_process_target::read_memory): ... this.
3648 (lynx_write_memory): Turn into ...
3649 (lynx_process_target::write_memory): ... this.
3650 * lynx-low.h (class lynx_process_target): Update.
3651 * nto-low.cc (nto_target_ops): Update.
3652 (nto_read_memory): Turn into ...
3653 (nto_process_target::read_memory): ... this.
3654 (nto_write_memory): Turn into ...
3655 (nto_process_target::write_memory): ... this.
3656 * nto-low.h (class nto_process_target): Update.
3657 * win32-low.cc (win32_target_ops): Update.
3658 (win32_read_inferior_memory): Turn into ...
3659 (win32_process_target::read_memory): ... this.
3660 (win32_write_inferior_memory): Turn into ...
3661 (win32_process_target::write_memory): ... this.
3662 * win32-low.h (class win32_process_target): Update.
3664 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3666 Turn process_stratum_target's prepare_to_access_memory and
3667 done_accessing_memory ops into methods of process_target.
3669 * target.h (struct process_stratum_target): Remove the target ops.
3670 (class process_target): Add the target ops.
3671 * target.cc (process_target::prepare_to_access_memory): Define.
3672 (process_target::done_accessing_memory): Define.
3673 (prepare_to_access_memory): Update.
3674 (done_accessing_memory): Update.
3676 Update the derived classes and callers below.
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_prepare_to_access_memory): Turn into ...
3680 (linux_process_target::prepare_to_access_memory): ... this.
3681 (linux_done_accessing_memory): Turn into ...
3682 (linux_process_target::done_accessing_memory): ... this.
3683 * linux-low.h (class linux_process_target): Update.
3684 * lynx-low.cc (lynx_target_ops): Update.
3685 * nto-low.cc (nto_target_ops): Update.
3686 * win32-low.cc (win32_target_ops): Update.
3688 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3690 Turn process_stratum_target's fetch_registers and store_registers
3691 ops into methods of process_target.
3693 * target.h (struct process_stratum_target): Remove the target ops.
3694 (class process_target): Add the target ops.
3695 (fetch_inferior_registers): Update the macro.
3696 (store_inferior_registers): Update the macro.
3698 Update the derived classes and callers below.
3700 * linux-low.cc (linux_target_ops): Update.
3701 (linux_fetch_registers): Turn into ...
3702 (linux_process_target::fetch_registers): ... this.
3703 (linux_store_registers): Turn into ...
3704 (linux_process_target::store_registers): ... this.
3705 * linux-low.h (class linux_process_target): Update.
3706 * lynx-low.cc (lynx_target_ops): Update.
3707 (lynx_fetch_registers): Turn into ...
3708 (lynx_process_target::fetch_registers): ... this.
3709 (lynx_store_registers): Turn into ...
3710 (lynx_process_target::store_registers): ... this.
3711 * lynx-low.h (class lynx_process_target): Update.
3712 * nto-low.cc (nto_target_ops): Update.
3713 (nto_fetch_registers): Turn into ...
3714 (nto_process_target::fetch_registers): ... this.
3715 (nto_store_registers): Turn into ...
3716 (nto_process_target::store_registers): ... this.
3717 * nto-low.h (class nto_process_target): Update.
3718 * win32-low.cc (win32_target_ops): Update.
3719 (win32_fetch_inferior_registers): Turn into ...
3720 (win32_process_target::fetch_registers): ... this.
3721 (win32_store_inferior_registers): Turn into ...
3722 (win32_process_target::store_registers): ... this.
3723 * win32-low.h (class win32_process_target): Update.
3725 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3727 Turn process_stratum_target's wait op into a method of
3730 * target.h (struct process_stratum_target): Remove the target op.
3731 (class process_target): Add the target op.
3733 Update the derived classes and callers below.
3735 * target.cc (target_wait): Update.
3736 * linux-low.cc (linux_target_ops): Update.
3737 (linux_wait): Turn into ...
3738 (linux_process_target::wait): ... this.
3739 * linux-low.h (class linux_process_target): Update.
3740 * lynx-low.cc (lynx_target_ops): Update.
3741 (lynx_wait): Turn into ...
3742 (lynx_process_target::wait): ... this.
3743 * lynx-low.h (class lynx_process_target): Update.
3744 * nto-low.cc (nto_target_ops): Update.
3745 (nto_wait): Turn into ...
3746 (nto_process_target::wait): ... this.
3747 * nto-low.h (class nto_process_target): Update.
3748 * win32-low.cc (win32_target_ops): Update.
3749 (win32_wait): Turn into ...
3750 (win32_process_target::wait): ... this.
3751 (do_initial_child_stuff): Update.
3752 * win32-low.h (class win32_process_target): Update.
3754 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3756 Turn process_stratum_target's resume op into a method of
3759 * target.h (struct process_stratum_target): Remove the target op.
3760 (class process_target): Add the target op.
3762 Update the derived classes and callers below.
3764 * server.cc (resume): Update.
3765 * target.cc (target_stop_and_wait): Update.
3766 (target_continue_no_signal): Update.
3767 (target_continue): Update.
3768 * linux-low.cc (linux_target_ops): Update.
3769 (linux_resume): Turn into ...
3770 (linux_process_target::resume): ... this.
3771 * linux-low.h (class linux_process_target): Update.
3772 * lynx-low.cc (lynx_target_ops): Update.
3773 (lynx_resume): Turn into ...
3774 (lynx_process_target::resume): ... this.
3775 * lynx-low.h (class lynx_process_target): Update.
3776 * nto-low.cc (nto_target_ops): Update.
3777 (nto_resume): Turn into ...
3778 (nto_process_target::resume): ... this.
3779 * nto-low.h (class nto_process_target): Update.
3780 * win32-low.cc (win32_target_ops): Update.
3781 (win32_resume): Turn into ...
3782 (win32_process_target::resume): ... this.
3783 (win32_process_target::detach): Update.
3784 (do_initial_child_stuff): Update.
3785 * win32-low.h (class win32_process_target): Update.
3787 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3789 Turn process_stratum_target's thread_alive op into a method of
3792 * target.h (struct process_stratum_target): Remove the target op.
3793 (class process_target): Add the target op.
3794 (mythread_alive): Update the macro.
3796 Update the derived classes and callers below.
3798 * linux-low.cc (linux_target_ops): Update.
3799 (linux_thread_alive): Turn into ...
3800 (linux_process_target::thread_alive): ... this.
3801 (wait_for_sigstop): Update.
3802 * linux-low.h (class linux_process_target): Update.
3803 * lynx-low.cc (lynx_target_ops): Update.
3804 (lynx_thread_alive): Turn into ...
3805 (lynx_process_target::thread_alive): ... this.
3806 * lynx-low.h (class lynx_process_target): Update.
3807 * nto-low.cc (nto_target_ops): Update.
3808 (nto_thread_alive): Turn into ...
3809 (nto_process_target::thread_alive): ... this.
3810 * nto-low.h (class nto_process_target): Update.
3811 * win32-low.cc (win32_target_ops): Update.
3812 (win32_thread_alive): Turn into ...
3813 (win32_process_target::thread_alive): ... this.
3814 * win32-low.h (class win32_process_target): Update.
3816 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3818 Turn process_stratum_target's join op into a method of
3821 * target.h (struct process_stratum_target): Remove the target op.
3822 (class process_target): Add the target op.
3823 (join_inferior): Update the macro.
3825 Update the derived classes and callers below.
3827 * linux-low.cc (linux_target_ops): Update.
3828 (linux_join): Turn into ...
3829 (linux_process_target::join): ... this.
3830 * linux-low.h (class linux_process_target): Update.
3831 * lynx-low.cc (lynx_target_ops): Update.
3832 (lynx_join): Turn into ...
3833 (lynx_process_target::join): ... this.
3834 * lynx-low.h (class lynx_process_target): Update.
3835 * nto-low.cc (nto_target_ops): Update.
3836 (nto_process_target::join): Define.
3837 * nto-low.h (class nto_process_target): Update.
3838 * win32-low.cc (win32_target_ops): Update.
3839 (win32_join): Turn into ...
3840 (win32_process_target::join): ... this.
3841 * win32-low.h (class win32_process_target): Update.
3843 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3845 Turn process_stratum_target's mourn op into a method of
3848 * target.h (struct process_stratum_target): Remove the target op.
3849 (class process_target): Add the target op.
3851 Update the derived classes and callers below.
3853 * target.cc (target_mourn_inferior): Update.
3854 * linux-low.cc (linux_target_ops): Update.
3855 (linux_mourn): Turn into ...
3856 (linux_process_target::mourn): ... this.
3857 (handle_extended_wait): Update.
3858 (linux_process_target::kill): Update.
3859 (linux_process_target::detach): Update.
3860 * linux-low.h (class linux_process_target): Update.
3861 * lynx-low.cc (lynx_target_ops): Update.
3862 (lynx_mourn): Turn into ...
3863 (lynx_process_target::mourn): ... this.
3864 * lynx-low.h (class lynx_process_target): Update.
3865 * nto-low.cc (nto_target_ops): Update.
3866 (nto_mourn): Turn into ...
3867 (nto_process_target::mourn): ... this.
3868 * nto-low.h (class nto_process_target): Update.
3869 * win32-low.cc (win32_target_ops): Update.
3870 (win32_mourn): Turn into ...
3871 (win32_process_target::mourn): ... this.
3872 * win32-low.h (class win32_process_target): Update.
3874 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3876 Turn process_stratum_target's detach op into a method of
3879 * target.h (struct process_stratum_target): Remove the target op.
3880 (class process_target): Add the target op.
3881 (detach_inferior): Update the macro.
3883 Update the derived classes and callers below.
3885 * linux-low.cc (linux_target_ops): Update.
3886 (linux_detach): Turn into ...
3887 (linux_process_target::detach): ... this.
3888 * linux-low.h (class linux_process_target): Update.
3889 * lynx-low.cc (lynx_target_ops): Update.
3890 (lynx_detach): Turn into ...
3891 (lynx_process_target::detach): ... this.
3892 * lynx-low.h (class lynx_process_target): Update.
3893 * nto-low.cc (nto_target_ops): Update.
3894 (nto_detach): Turn into ...
3895 (nto_process_target::detach): ... this.
3896 * nto-low.h (class nto_process_target): Update.
3897 * win32-low.cc (win32_target_ops): Update.
3898 (win32_detach): Turn into ...
3899 (win32_process_target::detach): ... this.
3900 * win32-low.h (class win32_process_target): Update.
3902 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3904 Turn process_stratum_target's kill op into a method of
3907 * target.h (struct process_stratum_target): Remove the target op.
3908 (class process_target): Add the target op.
3910 Update the derived classes and callers below.
3912 * target.cc (kill_inferior): Update.
3913 * linux-low.cc (linux_target_ops): Update.
3914 (linux_kill): Turn into ...
3915 (linux_process_target::kill): ... this.
3916 * linux-low.h (class linux_process_target): Update.
3917 * lynx-low.cc (lynx_target_ops): Update.
3918 (lynx_kill): Turn into ...
3919 (lynx_process_target::kill): ... this.
3920 * lynx-low.h (class lynx_process_target): Update.
3921 * nto-low.cc (nto_target_ops): Update.
3922 (nto_kill): Turn into ...
3923 (nto_process_target::kill): ... this.
3924 * nto-low.h (class nto_process_target): Update.
3925 * win32-low.cc (win32_target_ops): Update.
3926 (win32_kill): Turn into ...
3927 (win32_process_target::kill): ... this.
3928 * win32-low.h (class win32_process_target): Update.
3930 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3932 Turn process_stratum_target's attach op into a method of
3935 * target.h (struct process_stratum_target): Remove the target op.
3936 (class process_target): Add the target op.
3937 (myattach): Update the macro.
3939 Update the derived classes and callers below.
3941 * linux-low.cc (linux_target_ops): Update.
3942 (linux_attach): Turn into ...
3943 (linux_process_target::attach): ... this.
3944 * linux-low.h (class linux_process_target): Update.
3945 * lynx-low.cc (lynx_target_ops): Update.
3946 (lynx_attach): Turn into ...
3947 (lynx_process_target::attach): ... this.
3948 * lynx-low.h (class lynx_process_target): Update.
3949 * nto-low.cc (nto_target_ops): Update.
3950 (nto_attach): Turn into ...
3951 (nto_process_target::attach): ... this.
3952 * nto-low.h (class nto_process_target): Update.
3953 * win32-low.cc (win32_target_ops): Update.
3954 (win32_attach): Turn into ...
3955 (win32_process_target::attach): ... this.
3956 * win32-low.h (class win32_process_target): Update.
3958 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3960 Turn process_stratum_target's post_create_inferior op into a method
3963 * target.h (struct process_stratum_target): Remove the target op.
3964 (class process_target): Add the target op.
3965 (target_post_create_inferior): Update the macro.
3966 * target.cc (process_target::post_create_inferior): Define.
3968 Update the derived classes and callers below.
3970 * linux-low.cc (linux_target_ops): Update.
3971 (linux_post_create_inferior): Turn into ...
3972 (linux_process_target::post_create_inferior): ... this.
3973 * linux-low.h (class linux_process_target): Update.
3974 * lynx-low.cc (lynx_target_ops): Update.
3975 * nto-low.cc (nto_target_ops): Update.
3976 * win32-low.cc (win32_target_ops): Update.
3978 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3980 Turn process_stratum_target's create_inferior op into a method of
3983 * target.h (struct process_stratum_target): Remove the target op.
3984 (class process_target): Add the target op.
3985 (create_inferior): Rename the macro to ...
3986 (target_create_inferior): ... this.
3988 Update the derived classes and callers below.
3990 * server.cc (handle_v_run): Update.
3991 (captured_main): Update.
3992 (process_serial_event): Update.
3993 * linux-low.cc (linux_target_ops): Update.
3994 (linux_create_inferior): Turn into ...
3995 (linux_process_target::create_inferior): ... this.
3996 * linux-low.h (class linux_process_target): Update.
3997 * lynx-low.cc (lynx_target_ops): Update.
3998 (lynx_create_inferior): Turn into ...
3999 (lynx_process_target::create_inferior): ... this.
4000 * lynx-low.h (class lynx_process_target): Update.
4001 * nto-low.cc (nto_target_ops): Update.
4002 (nto_create_inferior): Turn into ...
4003 (nto_process_target::create_inferior): ... this.
4004 * nto-low.h (class nto_process_target): Update.
4005 * win32-low.cc (win32_target_ops): Update.
4006 (win32_create_inferior): Turn into ...
4007 (win32_process_target::create_inferior): ... this.
4008 * win32-low.h (class win32_process_target): Update.
4010 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4012 * target.h (class process_target): New class definition.
4013 (struct process_stratum_target) <pt>: New field with type
4015 * linux-low.h (class linux_process_target): Define as a derived
4016 class of 'process_target'.
4017 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4019 * lynx-low.h (class lynx_process_target): Define as a derived
4020 class of 'process_target'.
4021 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4023 * nto-low.h (class nto_process_target): Define as a derived
4024 class of 'process_target'.
4025 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4027 * win32-low.h (class win32_process_target): Define as a derived
4028 class of 'process_target'.
4029 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4032 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4034 * configure: Regenerate.
4036 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4037 Andrew Burgess <andrew.burgess@embecosm.com>
4039 * linux-riscv-low.cc: New file.
4040 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4041 and nat/riscv-linux-tdesc.c.
4042 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4043 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4046 2020-02-14 Tom Tromey <tom@tromey.com>
4048 * acinclude.m4: Don't include acx_configure_dir.m4.
4049 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4050 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4051 (all, install-only, uninstall, clean-info, clean)
4052 (maintainer-clean): Don't recurse.
4053 (subdir_do, all-lib): Remove.
4054 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4056 (generated_files): Update.
4057 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4058 * configure: Rebuild.
4059 * configure.ac: Don't configure gnulib or libiberty.
4062 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4064 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4065 preparing the command line for CreateProcess.
4066 (win32_create_inferior): Reflect the program name in debugging
4067 output that shows the process and its command line.
4069 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4071 * Makefile.in: Rename source files from .c to .cc.
4072 * %.c: Rename to %.cc.
4073 * configure.ac: Rename server.c to server.cc.
4074 * configure: Re-generate.
4076 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4078 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4080 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4082 * win32-low.c (win32_create_inferior): Set signal_pid.
4084 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4085 Pedro Alves <palves@redhat.com>
4087 Skip building gdbserver in a cross-configuration.
4088 * configure.srv: Set $gdbserver_host depending on whether $target
4089 is $host. Use $gdbserver_host instead of $host.
4091 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4093 * configure: Re-generate.
4095 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4097 * configure: Re-generate.
4099 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4101 * acinclude.m4: Update warning.m4 path.
4103 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4105 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4106 (handle_exception): Set siginfo_er.
4107 (win32_xfer_siginfo): New function.
4109 2020-02-07 Tom Tromey <tom@tromey.com>
4110 Pedro Alves <palves@redhat.com>
4112 * README: Update build documentation.
4113 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4115 * configure.ac: Update paths.
4116 * configure: Rebuild.
4117 * acinclude.m4: Update paths.
4118 * Makefile.in: Update include paths.
4119 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4120 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4121 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4122 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4123 (%-generated.c): Update paths.
4124 * Move entire directory from ../gdb/gdbserver.
4126 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4128 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4130 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4132 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4133 assignment instead of srv_linux_obj.
4135 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4137 * server.c (handle_qxfer_libraries): Write segment-address with
4140 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4142 * Makefile.in (install-strip): New target.
4143 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4144 * aclocal.m4: Regenerate.
4145 * configure: Regenerate.
4146 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4148 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4150 * Makefile.in (SFILES): Adjust paths to point to real files.
4151 (OBS): Move waitstatus.o to target/waitstatus.o.
4152 (TAGS): Transform paths appropriately.
4154 (nat/%.o): ... this pattern rule.
4156 (target/%.o): ... this pattern rule.
4157 * configure.srv: Adjust paths throughout to include nat/ prefix
4158 with the revant files.
4159 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4160 * configure: Regenerate.
4162 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4164 * Makefile.in (TAGS): Remove config files from the recipe.
4166 2020-01-14 Tom Tromey <tom@tromey.com>
4168 * configure: Rebuild.
4169 * configure.ac: Remove any checks that were added to common.m4.
4170 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4173 2020-01-14 Tom Tromey <tom@tromey.com>
4175 * server.h: Include config.h.
4176 * gdbreplay.c: Include config.h.
4177 * configure: Rebuild.
4178 * configure.ac: Don't source common.host.
4179 * acinclude.m4: Update path.
4180 * Makefile.in (INCSUPPORT): New variable.
4181 (INCLUDE_CFLAGS): Add INCSUPPORT.
4182 (SFILES): Update paths.
4183 (version-generated.c): Update path to create-version.sh.
4184 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4186 2020-01-14 Tom Tromey <tom@tromey.com>
4188 * configure.ac (LIBS): Use WIN32APILIBS.
4189 (USE_WIN32API): Don't define.
4190 * configure: Rebuild.
4192 2020-01-14 Tom Tromey <tom@tromey.com>
4194 * configure: Rebuild.
4196 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4198 * Makefile.in (%-generated.c): Remove rule for files from
4201 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4203 * configure: Re-generate.
4205 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4207 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4209 * tracepoint.c (stop_tracing, flush_trace_buffer,
4210 about_to_request_buffer_space, get_trace_state_variable_value,
4211 set_trace_state_variable_value, gdb_collect): Add declaration.
4213 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4215 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4216 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4217 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4218 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4219 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4222 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4224 * inferiors.c: Include gdbsupport/common-inferior.h.
4226 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4228 * hostio-errno.c: Include hostio.h.
4230 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4232 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4235 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4237 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4238 * linux-arm-tdesc.h: Include arch/arm.h.
4240 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4242 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4244 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4246 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4247 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4249 2020-01-10 Pedro Alves <palves@redhat.com>
4251 * fork-child.c (post_fork_inferior): Pass target down to
4253 * inferiors.c (switch_to_thread): Add process_stratum_target
4255 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4256 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4257 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4258 * remote-utils.c (prepare_resume_reply): Pass the target to
4260 * target.c (the_target): Now a process_stratum_target.
4261 (done_accessing_memory): Pass the target to switch_to_thread.
4262 (set_target_ops): Ajust to use process_stratum_target.
4263 * target.h (struct target_ops): Rename to ...
4264 (struct process_stratum_target): ... this.
4265 (the_target, set_target_ops): Adjust.
4266 (prepare_to_access_memory): Adjust comment.
4267 * win32-low.c (child_xfer_memory): Adjust to use
4268 process_stratum_target.
4269 (win32_target_ops): Now a process_stratum_target.
4271 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4272 Pedro Alves <palves@redhat.com>
4274 * win32-low.c (get_child_debug_event): Extract the fatal exception
4275 from the exit status and convert to the equivalent Posix signal
4277 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4278 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4280 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4282 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4284 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4286 * server.c (gdbserver_version): Change copyright year to 2020.
4287 * gdbreplay.c (gdbreplay_version): Likewise.
4289 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4291 * configure: Regenerate.
4292 * configure.ac: Quote variable arguments of test.
4294 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4296 * Makefile.in: Fix build with GNU Make 3.81
4298 2019-12-16 Tom Tromey <tromey@adacore.com>
4300 * server.c (get_exec_file): Constify result.
4302 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4304 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4305 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4306 * config.in: Regenerate.
4307 * configure: Regenerate.
4308 * configure.ac: Don't check for strerror.
4309 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4310 Call safe_strerror instead of strerror.
4311 * server.h (strerror): Remove this now-unnecessary declaration.
4312 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4314 (gdb_agent_helper_thread): Likewise.
4315 * utils.c (perror_with_name): Likewise.
4317 2019-11-26 Tom Tromey <tom@tromey.com>
4319 * configure, config.in: Rebuild.
4321 2019-11-26 Tom Tromey <tom@tromey.com>
4323 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4324 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4326 * configure, config.in: Rebuild.
4328 2019-11-26 Tom Tromey <tom@tromey.com>
4330 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4331 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4332 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4333 * acinclude.m4: Include ax_pthread.m4.
4334 * config.in, configure: Rebuild.
4336 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4338 * debug.c (debug_set_output): Call safe_strerror instead of
4340 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4341 (linux_kill_one_lwp): Likewise.
4342 (linux_detach_one_lwp): Likewise.
4343 (linux_wait_for_event_filtered): Likewise.
4344 (store_register): Likewise.
4345 * lynx-low.c (lynx_attach): Likewise.
4346 * mem-break.c (insert_memory_breakpoint): Likewise.
4347 (remove_memory_breakpoint): Likewise.
4348 (delete_fast_tracepoint_jump): Likewise.
4349 (set_fast_tracepoint_jump): Likewise.
4350 (uninsert_fast_tracepoint_jumps_at): Likewise.
4351 (reinsert_fast_tracepoint_jumps_at): Likewise.
4352 * nto-low.c (nto_xfer_memory): Likewise.
4353 (nto_resume): Likewise.
4355 2019-11-20 Luis Machado <luis.machado@linaro.org>
4357 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4358 instead of register count.
4359 * tdesc.c (tdesc_contains_feature): New function.
4360 * tdesc.h (tdesc_contains_feature): New prototype.
4362 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4364 * Makefile.in: Add safe-strerror.c.
4365 * configure: Regenerate.
4366 * configure.ac: Don't source common.host.
4368 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4370 * config.in: Regenerate.
4371 * configure: Regenerate.
4373 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4375 * ax.c (ax_printf): Handle size_t_arg.
4377 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4379 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4380 * mi/mi-main.c (output_cores): Likewise.
4381 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4382 (linux_xfer_osdata_modules): Likewise.
4383 * remote.c (register_remote_support_xml): Likewise.
4384 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4385 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4387 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4389 * configure: Regenerate.
4390 * configure.ac: Remove check for strerror_r.
4392 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4394 * config.in: Regenerate.
4395 * configure: Regenerate.
4396 * configure.ac: Also check for strerror_r.
4398 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4400 * ax.h (debug_agent): Remove duplicate declaration.
4402 2019-10-26 Tom de Vries <tdevries@suse.de>
4404 * linux-aarch64-low.c: Fix typos in comments.
4405 * linux-arm-low.c: Same.
4406 * linux-low.c: Same.
4407 * linux-ppc-low.c: Same.
4408 * proc-service.c: Same.
4411 * tracepoint.c: Same.
4412 * win32-low.c: Same.
4414 2019-10-25 Tom Tromey <tromey@adacore.com>
4416 * utils.c (xstrdup): Remove.
4418 2019-10-23 Tom Tromey <tom@tromey.com>
4420 * configure, config.in: Rebuild.
4422 2019-10-23 Tom Tromey <tom@tromey.com>
4424 * configure: Rebuild.
4425 * acinclude.m4: Use m4_include, not sinclude.
4427 2019-10-17 Tom Tromey <tromey@adacore.com>
4429 * configure: Rebuild.
4430 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4431 in AC_CONFIG_FILES invocation.
4432 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4435 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4437 * server.c: Include xml-builtin.h.
4438 (get_xml_features): Don't declare xml_builtins here.
4440 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4442 * Makefile.in: Remove references to vec-ipa.o.
4444 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4446 * Makefile.in: Remove references to vec.c.
4448 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4450 * server.c (server_waiting): Change to bool.
4451 (extended_protocol): Likewise.
4452 (response_needed): Likewise.
4453 (exit_requested): Likewise.
4454 (run_once): Likewise.
4455 (report_no_resumed): Likewise.
4456 (non_stop): Likewise.
4457 (disable_packet_vCont): Likewise.
4458 (disable_packet_Tthread): Likewise.
4459 (disable_packet_qC): Likewise.
4460 (disable_packet_qfThreadInfo): Likewise.
4461 (handle_general_set): Update.
4462 (handle_detach): Update.
4463 (handle_monitor_command): Update.
4464 (handle_query): Update.
4465 (captured_main): Update.
4466 (process_serial_event): Update.
4467 * server.h (server_waiting): Change to bool.
4468 (disable_packet_vCont): Likewise.
4469 (disable_packet_Tthread): Likewise.
4470 (disable_packet_qC): Likewise.
4471 (disable_packet_qfThreadInfo): Likewise.
4472 (run_once): Likewise.
4473 (non_stop): Likewise.
4474 * target.c (target_stop_and_wait): Update.
4476 2019-10-02 Tom Tromey <tromey@adacore.com>
4478 * Makefile.in (SFILES): Add common-inferior.c.
4479 (OBS): Add common-inferior.o.
4480 * server.c (startup_with_shell): Don't define.
4482 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4484 * linux-low.c (linux_low_read_btrace): Update for change to
4487 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4489 * debug.c (debug_threads): Remove comment in favor of the header.
4490 * debug.h (using_threads): Add declaration.
4491 (debug_threads): Add comment.
4492 * linux-aarch64-low.c: Include debug.h and remove declaration of
4494 * nto-low.c: Likewise.
4495 * remote-utils.c: Likewise.
4496 * thread-db.c: Likewise.
4498 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4500 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4501 and powerpc-cell64l-ipa.o.
4502 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4503 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4504 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4507 * spu-low.c: Remove file.
4509 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4510 (parse_spufs_run): Remove.
4511 (ppc_get_pc): Remove Cell/B.E. support.
4512 (ppc_set_pc): Likewise.
4513 (ppc_breakpoint_at): Likewise.
4514 (ppc_arch_setup): Likewise.
4515 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4516 tdesc_powerpc_cell32l.
4517 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4518 or init_registers_powerpc_cell32l.
4519 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4520 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4521 or init_registers_powerpc_cell32l.
4522 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4523 (init_registers_powerpc_cell32l): Remove prototype.
4524 (init_registers_powerpc_cell64l): Likewise.
4526 * target.h (struct target_ops): Remove qxfer_spu member.
4527 * server.c (handle_qxfer_spu): Remove.
4528 (qxfer_packets): Remove entry for "spu".
4529 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4530 * linux-low.c (SPUFS_MAGIC): Remove.
4531 (spu_enumerate_spu_ids): Remove.
4532 (linux_qxfer_spu): Remove.
4533 (linux_target_ops): Remove qxfer_spu member.
4534 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4535 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4536 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4538 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4540 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4541 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4542 * config.in: Regenerate.
4543 * configure: Regenerate.
4545 2019-08-15 Tom Tromey <tromey@adacore.com>
4547 * target.c (target_write_memory): Use gdb::byte_vector.
4549 2019-08-15 Tom Tromey <tromey@adacore.com>
4551 * tracepoint.c (write_inferior_data_pointer)
4552 (write_inferior_integer, write_inferior_int8)
4553 (write_inferior_uinteger, m_tracepoint_action_download)
4554 (r_tracepoint_action_download, x_tracepoint_action_download)
4555 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4556 (download_agent_expr, download_tracepoint_1)
4557 (download_trace_state_variables, upload_fast_traceframes): Update.
4558 * server.c (gdb_write_memory): Update.
4559 * remote-utils.c (relocate_instruction): Update.
4560 * proc-service.c (ps_pdwrite): Update.
4561 * mem-break.c (remove_memory_breakpoint)
4562 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4563 (uninsert_fast_tracepoint_jumps_at)
4564 (reinsert_fast_tracepoint_jumps_at): Update.
4565 * linux-x86-low.c (append_insns)
4566 (i386_install_fast_tracepoint_jump_pad)
4567 (amd64_write_goto_address, i386_write_goto_address): Update.
4568 * linux-s390-low.c (append_insns, s390_write_goto_address):
4570 * linux-ppc-low.c (ppc_relocate_instruction)
4571 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4572 (ppc_write_goto_address): Update.
4573 * linux-aarch64-low.c (append_insns): Update.
4574 * target.h (struct target_ops): Update.
4575 (write_inferior_memory): Don't declare.
4576 * target.c (target_write_memory): Rename from
4577 write_inferior_memory. Remove old target_write_memory.
4579 2019-08-15 Tom Tromey <tromey@adacore.com>
4581 * target.c (write_inferior_memory): Use std::vector.
4583 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4586 * configure.ac: Drop enable-libmcheck support.
4587 * configure, config.in: Rebuild.
4588 * acinclude.m4: Don't include it.
4590 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4592 * configure.srv: Remove Arm xml files.
4594 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4596 * configure.srv: Add new files. Remove xml generated files.
4597 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4599 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4600 * linux-aarch32-tdesc.c: New file.
4601 * linux-aarch32-tdesc.h: New file.
4602 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4603 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4604 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4605 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4606 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4607 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4608 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4609 (arm_read_description): Call arm_linux_read_description.
4610 (initialize_low_arch): Don't init registers.
4611 * linux-arm-tdesc.c: New file.
4612 * linux-arm-tdesc.h: New file.
4614 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4616 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4617 Move counter inside for.
4618 (arm_read_description): Check ptrace earlier.
4619 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4621 2019-07-09 Tom Tromey <tom@tromey.com>
4623 * configure: Rebuild.
4624 * configure.ac: Change common to gdbsupport.
4625 * acinclude.m4: Change common to gdbsupport.
4626 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4627 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4628 common to gdbsupport.
4629 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4630 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4631 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4632 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4633 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4634 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4635 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4636 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4637 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4638 common to gdbsupport.
4640 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4642 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4644 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4646 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4648 * configure.srv: Remove legacy xml.
4649 * linux-aarch64-low.c (initialize_low_arch): Remove
4650 initialize_low_tdesc call.
4651 * linux-aarch64-tdesc-selftest.c: Remove file.
4652 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4653 * linux-x86-low.c (initialize_low_arch): Remove
4654 initialize_low_tdesc call.
4655 * linux-x86-tdesc-selftest.c: Remove file.
4656 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4658 2019-06-20 Tom de Vries <tdevries@suse.de>
4660 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4661 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4663 2019-06-19 Tom de Vries <tdevries@suse.de>
4665 * debug.h (debug_write): Change return type to ssize_t.
4666 * debug.c (debug_write): Same.
4668 2019-06-14 Tom Tromey <tom@tromey.com>
4670 * configure.ac: Use new path to gnulib.
4671 * configure: Rebuild.
4672 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4675 2019-06-11 Tom Tromey <tom@tromey.com>
4677 * Makefile.in (SFILES): Add alloc.c.
4679 (IPA_OBJS): Add alloc-ipa.o.
4680 (alloc-ipa.o): New target.
4681 (%.o: ../%.c): New pattern rule.
4683 2019-06-10 Tom Tromey <tromey@adacore.com>
4685 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4686 end warning with a newline.
4687 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4689 * thread-db.c (attach_thread): Don't end warning with a newline.
4690 (thread_db_notice_clone): Likewise.
4691 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4693 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4694 end warning with a newline.
4696 2019-06-04 Pedro Alves <palves@redhat.com>
4698 * server.c (captured_main): Use make_unique_xstrdup.
4700 2019-06-02 Tom Tromey <tom@tromey.com>
4702 * gdbreplay.c (fromhex): Remove.
4703 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4705 2019-05-29 Tom Tromey <tromey@adacore.com>
4707 * configure: Rebuild.
4709 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4711 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4712 sign extension code on 32-bit builds.
4714 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4717 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4719 2019-04-19 Tom Tromey <tom@tromey.com>
4721 * server.c (struct vstop_notif): Derive from notif_event.
4723 (queue_stop_reply): Update.
4724 (remove_all_on_match_ptid): Change type. Rewrite.
4725 (discard_queued_stop_replies): Rewrite.
4726 (in_queued_stop_replies_ptid): Change type.
4727 (in_queued_stop_replies): Rewrite.
4728 (notif_stop): Update.
4729 (queue_stop_reply_callback): Update.
4730 (captured_main): Don't call initialize_notif.
4731 (push_stop_notification): Update.
4732 * notif.c (notif_write_event, handle_notif_ack)
4733 (notif_event_enque, notif_push): Update.
4734 (notif_event_xfree, initialize_notif): Remove.
4735 * notif.h (struct notif_event): Include <list>, not
4737 (struct notif_server) <queue>: Now a std::list.
4738 (notif_event_p): Remove typedef.
4739 (initialize_notif): Don't declare.
4740 (struct notif_event): Add virtual destructor.
4742 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4744 * ax.c (ax_vdebug): Call debug_printf.
4745 * debug.c (debug_write): New function.
4746 * debug.h (debug_write): New declaration.
4747 * linux-low.c (sigchld_handler): Call debug_write.
4749 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4751 * debug.c (debug_set_output): New function.
4752 (debug_vprintf): Send output to debug_file.
4753 (debug_flush): Likewise.
4754 * debug.h (debug_set_output): New declaration.
4755 * server.c (handle_monitor_command): Add debug-file option.
4756 (captured_main): Likewise.
4758 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4760 * debug.c (remote_debug): Add definition.
4761 * debug.h (remote_debug): Add declaration.
4762 * hostio.c (remote_debug): Remove declaration.
4763 * remote-utils.c (struct ui_file): Likewise.
4764 (remote_debug): Likewise.
4765 * remote-utils.h (remote_debug): Likewise,
4766 * server.c (remote_debug): Remove definition.
4768 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4770 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4771 when using a 64-bit gdbserver.
4773 2019-04-09 Tom Tromey <tromey@adacore.com>
4775 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4777 2019-04-08 Tom Tromey <tom@tromey.com>
4779 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4781 (linux_resume_one_lwp): Likewise.
4783 2019-04-08 Tom Tromey <tom@tromey.com>
4785 * gdbreplay.c: Update.
4786 * linux-low.c: Update.
4789 2019-04-08 Tom Tromey <tom@tromey.com>
4791 * server.c: Use C++ exception handling.
4792 * linux-low.c: Use C++ exception handling.
4793 * gdbreplay.c: Use C++ exception handling.
4795 2019-04-08 Tom Tromey <tom@tromey.com>
4797 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4798 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4799 (captured_main, main): Update.
4800 * gdbreplay.c (main): Update.
4802 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4804 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4805 value in argument pointer, return 1 if the entry is found and 0
4806 otherwise. Move comment.
4807 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4808 * linux-low.h (linux_get_auxv): Declare.
4809 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4811 2019-04-05 Tom Tromey <tromey@adacore.com>
4813 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4816 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4818 * linux-low.c (AT_HWCAP2): Add define if not already included.
4820 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4822 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4823 (aarch64_arch_setup): Call linux_get_hwcap.
4824 * linux-arm-low.c (arm_get_hwcap): Remove function.
4825 (arm_read_description): Call linux_get_hwcap.
4826 * linux-low.c (linux_get_auxv): New function.
4827 (linux_get_hwcap): Likewise.
4828 (linux_get_hwcap2): Likewise.
4829 * linux-low.h (linux_get_hwcap): New declaration.
4830 (linux_get_hwcap2): Likewise.
4831 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4832 (ppc_arch_setup): Call linux_get_hwcap.
4833 * linux-s390-low.c (s390_get_hwcap): Remove function.
4834 (s390_arch_setup): Call linux_get_hwcap.
4836 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4837 Jiong Wang <jiong.wang@arm.com>
4839 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4840 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4842 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4844 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4845 Jiong Wang <jiong.wang@arm.com>
4847 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4848 (aarch64_get_hwcap): New function.
4849 (aarch64_arch_setup): Read APIA hwcap.
4851 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4852 Jiong Wang <jiong.wang@arm.com>
4854 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4855 (initialize_low_tracepoint): Likewise.
4856 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4857 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4858 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4859 (aarch64_linux_read_description): Likewise.
4860 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4862 2019-03-12 John Baldwin <jhb@FreeBSD.org>
4864 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
4865 i386_create_target_description for 'segments' parameter.
4866 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
4867 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
4868 * win32-i386-low.c (i386_arch_setup): Likewise.
4870 2019-03-12 Tom Tromey <tromey@adacore.com>
4872 * linux-low.c (iterate_over_lwps): Update.
4874 2019-03-06 Tom Tromey <tom@tromey.com>
4876 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
4877 (captured_main): Use SCOPE_EXIT.
4879 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
4881 * configure.srv: Use '$enable_unittest' instead of '$development'
4882 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
4885 2019-02-27 Tom Tromey <tromey@adacore.com>
4887 * gdbreplay.c (logchar): Handle \r\n.
4889 2019-02-07 Alan Hayward <alan.hayward@arm.com>
4891 * linux-low.c (linux_attach): Add process before lwp.
4892 * server.c (attach_inferior): Check if already attached.
4894 2019-02-07 Tom Tromey <tom@tromey.com>
4896 * x86-tdesc.h: Rename include guard.
4897 * x86-low.h: Add include guard.
4898 * wincecompat.h: Rename include guard.
4899 * win32-low.h: Add include guard.
4900 * utils.h: Rename include guard.
4901 * tracepoint.h: Rename include guard.
4902 * tdesc.h: Rename include guard.
4903 * target.h: Rename include guard.
4904 * server.h: Rename include guard.
4905 * remote-utils.h: Rename include guard.
4906 * regcache.h: Rename include guard.
4907 * nto-low.h: Rename include guard.
4908 * notif.h: Add include guard.
4909 * mem-break.h: Rename include guard.
4910 * lynx-low.h: Add include guard.
4911 * linux-x86-tdesc.h: Add include guard.
4912 * linux-s390-tdesc.h: Add include guard.
4913 * linux-ppc-tdesc-init.h: Add include guard.
4914 * linux-low.h: Add include guard.
4915 * linux-aarch64-tdesc.h: Add include guard.
4916 * linux-aarch32-low.h: Add include guard.
4917 * inferiors.h: Rename include guard.
4918 * i387-fp.h: Rename include guard.
4919 * hostio.h: Rename include guard.
4920 * gdbthread.h: Rename include guard.
4921 * gdb_proc_service.h: Rename include guard.
4922 * event-loop.h: Rename include guard.
4923 * dll.h: Rename include guard.
4924 * debug.h: Rename include guard.
4925 * ax.h: Rename include guard.
4927 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
4930 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
4931 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
4933 2019-01-25 Tom Tromey <tom@tromey.com>
4935 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
4937 2019-01-25 Tom Tromey <tom@tromey.com>
4939 * win32-low.c: Fix common/ includes.
4940 * win32-i386-low.c: Fix common/ includes.
4941 * tracepoint.c: Fix common/ includes.
4942 * thread-db.c: Fix common/ includes.
4943 * target.h: Fix common/ includes.
4944 * symbol.c: Fix common/ includes.
4945 * spu-low.c: Fix common/ includes.
4946 * server.h: Fix common/ includes.
4947 * server.c: Fix common/ includes.
4948 * remote-utils.c: Fix common/ includes.
4949 * regcache.h: Fix common/ includes.
4950 * regcache.c: Fix common/ includes.
4951 * nto-x86-low.c: Fix common/ includes.
4952 * notif.h: Fix common/ includes.
4953 * mem-break.h: Fix common/ includes.
4954 * lynx-low.c: Fix common/ includes.
4955 * lynx-i386-low.c: Fix common/ includes.
4956 * linux-x86-tdesc-selftest.c: Fix common/ includes.
4957 * linux-x86-low.c: Fix common/ includes.
4958 * linux-low.c: Fix common/ includes.
4959 * inferiors.h: Fix common/ includes.
4960 * i387-fp.c: Fix common/ includes.
4961 * hostio.c: Fix common/ includes.
4962 * hostio-errno.c: Fix common/ includes.
4963 * gdbthread.h: Fix common/ includes.
4964 * gdbreplay.c: Fix common/ includes.
4965 * fork-child.c: Fix common/ includes.
4966 * event-loop.c: Fix common/ includes.
4968 (enum gdb_agent_op): Fix common/ includes.
4970 2019-01-21 Tom Tromey <tom@tromey.com>
4972 * tracepoint.c: Fix includes.
4973 * remote-utils.c: Fix includes.
4974 * linux-x86-low.c: Fix includes.
4976 2019-01-01 Joel Brobecker <brobecker@adacore.com>
4978 * gdbreplay.c (gdbreplay_version): Update copyright year in
4980 * server.c (gdbserver_version): Likewise.
4982 2018-12-05 Alan Hayward <alan.hayward@arm.com>
4984 * linux-low.c (add_lwp): Switch ordering.
4986 2018-11-29 Tom Tromey <tom@tromey.com>
4988 * win32-low.c (win32_join): Take pid, not process.
4989 * target.h (struct target_ops) <join>: Change argument type.
4990 (join_inferior): Change argument name.
4991 * spu-low.c (spu_join): Take pid, not process.
4992 * server.c (handle_detach): Preserve pid before destroying
4994 * lynx-low.c (lynx_join): Take pid, not process.
4995 * linux-low.c (linux_join): Take pid, not process.
4997 2018-11-23 Alan Hayward <alan.hayward@arm.com>
4999 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5000 (aarch64_cannot_fetch_register): Likewise.
5001 (struct linux_target_ops): Update references.
5003 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5005 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5007 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5009 * configure.srv (ipa_ppc_linux_regobj): Add
5010 powerpc-isa207-htm-vsx32l-ipa.o and
5011 powerpc-isa207-htm-vsx64l-ipa.o.
5012 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5013 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5014 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5015 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5016 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5017 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5018 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5019 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5020 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5021 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5022 (init_registers_powerpc_isa207_htm_vsx32l)
5023 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5024 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5025 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5026 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5027 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5028 (ppc_store_tm_ctarregset): New functions.
5029 (ppc_regsets): Add entries for HTM regsets.
5030 (ppc_arch_setup): Set htm in features struct when needed. Set
5031 sizes for the HTM regsets.
5032 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5033 (initialize_low_arch): Call
5034 init_registers_powerpc_isa207_htm_vsx32l and
5035 init_registers_powerpc_isa207_htm_vsx64l.
5036 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5037 PPC_TDESC_ISA207_HTM_VSX.
5038 (initialize_low_tracepoint): Call
5039 init_registers_powerpc_isa207_htm_vsx32l and
5040 init_registers_powerpc_isa207_htm_vsx64l.
5042 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5044 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5045 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5046 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5047 (ppc_store_pmuregset): New functions.
5048 (ppc_regsets): Add entries for ebb and pmu regsets.
5049 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5050 pmu regsets are available. Set sizes for these regsets.
5052 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5054 * configure.srv (ipa_ppc_linux_regobj): Add
5055 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5056 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5057 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5058 rs6000/powerpc-isa207-vsx32l.xml, and
5059 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5060 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5061 <PPC_TDESC_ISA207_VSX>: New enum value.
5062 (init_registers_powerpc_isa207_vsx32l): Declare.
5063 (init_registers_powerpc_isa207_vsx64l): Declare.
5064 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5065 (ppc_store_tarregset): New function.
5066 (ppc_regsets): Add entry for the TAR regset.
5067 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5068 size for the TAR regsets.
5069 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5070 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5071 and init_registers_powerpc_isa207_vsx64l.
5072 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5073 (initialize_low_tracepoint): Call
5074 init_registers_powerpc_isa207_vsx32l and
5075 init_registers_powerpc_isa207_vsx64l.
5077 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5078 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5080 * configure.srv (ipa_ppc_linux_regobj): Add
5081 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5082 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5083 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5084 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5085 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5086 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5087 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5088 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5089 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5090 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5091 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5092 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5093 (ppc_hwcap): Add comment.
5094 (ppc_hwcap2): New global.
5095 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5096 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5097 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5098 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5099 when needed. Set sizes for the the DSCR and PPR regsets.
5100 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5101 (initialize_low_arch): Call
5102 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5103 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5104 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5105 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5106 (initialize_low_tracepoint): Call
5107 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5108 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5110 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5112 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5114 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5115 Simon Marchi <simark@simark.ca>
5117 * acinclude.m4: Include "../selftest.m4".
5118 * configure: Regenerate.
5119 * configure.ac: Use "GDB_AC_SELFTEST".
5120 * configure.srv: Use "$enable_unittests" instead of
5121 "$development" when checking whether unit tests have been
5123 * server.c (captured_main): Update message informing that
5124 selftests have been disabled.
5126 2018-10-04 Tom Tromey <tom@tromey.com>
5128 * configure: Rebuild.
5130 2018-10-04 Tom Tromey <tom@tromey.com>
5132 * server.c (handle_status): Rename inner "thread".
5133 (process_serial_event): Declare "res" in 'm' case.
5134 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5135 (iterate_over_lwps): Rename inner "thread".
5136 (linux_qxfer_libraries_svr4): Rename inner "len".
5137 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5139 2018-10-01 Gary Benson <gbenson@redhat.com>
5141 * gdb_proc_service.h: Moved common code to
5142 common/gdb_proc_service.h.
5144 2018-10-01 Gary Benson <gbenson@redhat.com>
5146 * gdb_proc_service.h: Synchronize comments and whitespace with
5147 GDB's version of this file.
5149 2018-09-25 Tom Tromey <tom@tromey.com>
5151 * configure: Rebuild.
5152 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5154 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5156 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5157 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5158 ($(IPA_LIB)): Sort IPA_OBJS.
5160 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5162 * Makefile.in: Remove references to $(ADD_DEPS).
5164 2018-09-16 Tom Tromey <tom@tromey.com>
5166 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5168 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5171 2018-09-05 Tom Tromey <tom@tromey.com>
5173 * configure: Rebuild.
5175 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5178 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5180 2018-08-27 Tom Tromey <tom@tromey.com>
5183 * configure: Rebuild.
5185 2018-08-27 Tom Tromey <tom@tromey.com>
5187 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5188 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5189 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5190 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5191 (s390x_emit_stack_adjust): Add casts to unsigned char.
5193 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5197 * server.h (struct client_state) <disable_randomization>:
5200 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5202 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5204 (mips_supply_ptrace_register): Likewise.
5206 2018-07-22 Tom Tromey <tom@tromey.com>
5208 * configure: Rebuild.
5210 2018-07-22 Tom Tromey <tom@tromey.com>
5212 * win32-low.c (win32_create_inferior): Remove unused variables.
5213 * gdbreplay.c (remote_open): Remove unused variable.
5214 * remote-utils.c (remote_prepare): Remove unused variable.
5215 * x86-tdesc.h (X86_TDESC_H): Define.
5216 (amd64_expedite_regs): Define conditionally.
5217 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5218 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5219 * remote-utils.c (readchar): Remove unused variable.
5221 2018-07-13 Pedro Alves <palves@redhat.com>
5223 * linux-low.c (linux_kill): Change parameter to process_info
5224 pointer instead of pid. Adjust.
5225 * lynx-low.c (lynx_kill): Likewise.
5226 * nto-low.c (nto_kill): Likewise.
5227 * spu-low.c (spu_kill): Likewise.
5228 * win32-low.c (win32_kill): Likewise.
5229 * server.c (handle_v_kill, kill_inferior_callback)
5230 (detach_or_kill_for_exit): Adjust.
5231 * target.c (kill_inferior): Change parameter to process_info
5232 pointer instead of pid. Adjust.
5233 * target.h (struct target_ops) <kill>: Change parameter to
5234 process_info pointer instead of pid. Adjust all implementations
5236 (kill_inferior): Likewise.
5238 2018-07-13 Pedro Alves <palves@redhat.com>
5240 * linux-low.c (linux_detach, linux_join): Change parameter to
5241 process_info pointer instead of pid. Adjust.
5242 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5243 * nto-low.c (nto_detach): Likewise.
5244 * spu-low.c (spu_detach, spu_join): Likewise.
5245 * win32-low.c (win32_detach, win32_join): Likewise.
5246 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5247 * target.h (struct target_ops) <detach, join>: Change parameter to
5248 process_info pointer instead of pid. Adjust all implementations
5250 (detach_inferior, join_inferior): Rename 'pid' parameter to
5253 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5254 Jan Kratochvil <jan.kratochvil@redhat.com>
5255 Paul Fertser <fercerpav@gmail.com>
5256 Tsutomu Seki <sekiriki@gmail.com>
5258 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5259 (OBS): Add 'common/netstuff.o'.
5260 (GDBREPLAY_OBS): Likewise.
5261 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5262 (remote_open): Implement support for IPv6
5264 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5266 (handle_accept_event): Accept connections from IPv6 sources.
5267 (remote_prepare): Handle IPv6-style hostnames; implement
5268 support for IPv6 connections.
5269 (remote_open): Implement support for printing connections from
5272 2018-07-11 Pedro Alves <palves@redhat.com>
5275 * mem-break.c (any_persistent_commands): Add process_info
5276 parameter and use it instead of relying on the current process.
5277 Change return type to bool.
5278 * mem-break.h (any_persistent_commands): Add process_info
5279 parameter and change return type to bool.
5280 * server.c (handle_detach): Remove require_running_or_return call.
5281 Look up the process_info for the process we're about to detach.
5282 If not found, return back error to GDB. Adjust
5283 any_persistent_commands call to pass down a process pointer.
5285 2018-07-11 Pedro Alves <palves@redhat.com>
5287 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5288 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5289 instead of collect_register_by_name.
5290 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5291 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5293 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5294 Pedro Alves <palves@redhat.com>
5296 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5298 2018-07-03 Tom Tromey <tom@tromey.com>
5300 * linux-low.c: Update.
5301 * lynx-low.c: Update.
5302 * mem-break.c: Update.
5303 * nto-low.c: Update.
5304 * remote-utils.c: Update.
5306 * spu-low.c: Update.
5308 * win32-low.c: Update.
5310 2018-07-03 Tom Tromey <tom@tromey.com>
5314 2018-07-03 Tom Tromey <tom@tromey.com>
5316 * linux-low.c: Update.
5318 2018-07-03 Tom Tromey <tom@tromey.com>
5322 2018-07-03 Tom Tromey <tom@tromey.com>
5324 * linux-low.c: Update.
5325 * linux-mips-low.c: Update.
5326 * lynx-low.c: Update.
5327 * nto-low.c: Update.
5328 * remote-utils.c: Update.
5330 * spu-low.c: Update.
5332 * thread-db.c: Update.
5334 2018-07-03 Tom Tromey <tom@tromey.com>
5336 * linux-low.c: Update.
5337 * linux-mips-low.c: Update.
5338 * lynx-low.c: Update.
5339 * mem-break.c: Update.
5340 * nto-low.c: Update.
5341 * remote-utils.c: Update.
5343 * spu-low.c: Update.
5345 * tracepoint.c: Update.
5347 2018-07-03 Tom Tromey <tom@tromey.com>
5349 * linux-low.c: Update.
5350 * linux-ppc-low.c: Update.
5351 * linux-x86-low.c: Update.
5352 * proc-service.c: Update.
5354 * spu-low.c: Update.
5355 * thread-db.c: Update.
5356 * win32-low.c: Update.
5358 2018-07-03 Tom Tromey <tom@tromey.com>
5360 * linux-low.c: Update.
5361 * lynx-low.c: Update.
5362 * nto-low.c: Update.
5363 * remote-utils.c: Update.
5364 * spu-low.c: Update.
5365 * thread-db.c: Update.
5366 * win32-low.c: Update.
5368 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5370 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5371 parameter in call to 'amd64_create_target_description'.
5373 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5375 * x86-tdesc.h: Remove executable permission flag.
5377 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5379 * configure.ac: Remove AC_PREREQ, add missing quoting.
5380 * configure: Re-generate.
5381 * config.in: Re-generate.
5382 * aclocal.m4: Re-generate.
5384 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5386 * tracepoint.h (current_traceframe): Remove declaration.
5388 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5390 * linux-aarch64-low.c (is_sve_tdesc): New function.
5391 (aarch64_sve_regs_copy_to_regcache): Likewise.
5392 (aarch64_sve_regs_copy_from_regcache): Likewise.
5393 (aarch64_regs_info): Add SVE checks.
5394 (initialize_low_arch): Initialize SVE.
5396 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5398 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5400 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5402 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5403 (initialize_low_tracepoint): Likewise
5404 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5405 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5407 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5409 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5411 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5413 * server.h (PBUFSIZ): Increase size
5415 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5417 * regcache.c (regcache::raw_compare): New function.
5418 * regcache.h (regcache::raw_compare): New declaration.
5420 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5422 * regcache.c (new_register_cache): Use new.
5423 (free_register_cache): Use delete.
5424 (register_data): Use const.
5425 (supply_register): Move body inside regcache.
5426 (regcache::raw_supply): New override function.
5427 (collect_register): Move body inside regcache.
5428 (regcache::raw_collect): New override function.
5429 (regcache::get_register_status): New override function.
5430 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5432 2018-06-09 Tom Tromey <tom@tromey.com>
5434 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5436 (event_queue): Use std::queue.
5437 (gdb_event_xfree): Remove.
5438 (initialize_event_loop, process_event, wait_for_event): Update.
5440 2018-06-08 Stan Cox <scox@redhat.com>
5442 * win32-low.c (win32_create_inferior): last_ptid and last_status
5443 moved to client_state.
5445 2018-06-08 Pedro Alves <palves@redhat.com>
5447 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5448 common/common-exceptions.o, common/common-utils.o,
5449 common/errors.o, common/print-utils.o and utils.o.
5450 * gdbreplay.c: Include "common-defs.h" instead of the two
5451 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5452 string.h or alloca.h.
5453 (perror_with_name): Delete.
5454 (remote_open): Use xstrdup instead of strdup.
5455 (main): Rename to ...
5456 (captured_main): ... this.
5459 2018-06-08 Tom Tromey <tom@tromey.com>
5461 * linux-low.c (linux_low_read_btrace): Update.
5463 2018-06-04 Stan Cox <scox@redhat.com>
5465 * server.h (struct client_state): New.
5466 * server.c (cont_thread, general_thread, multi_process)
5467 (report_fork_events, report_vfork_events, report_exec_events)
5468 (report_thread_events, swbreak_feature, hwbreak_feature)
5469 (vCont_supported, disable_randomization, pass_signals)
5470 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5471 Moved to client_state.
5472 * remote-utils.c (remote_debug, noack_mode)
5473 (transport_is_reliable): Moved to client_state.
5474 * tracepoint.c (current_traceframe): Moved to client_state.
5477 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5478 linux-low.c, remote-utils.h, target.c: Use client_state.
5480 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5482 * configure.srv: Add new c/h file.
5484 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5486 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5489 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5491 * gdb.arch/mips-fpregset-core.exp: New test.
5492 * gdb.arch/mips-fpregset-core.c: New test source.
5494 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5497 * hostio.c (require_int): Do not report overflow for integers
5498 between 0xfffffff and 0x7fffffff.
5500 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5502 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5503 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5504 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5506 (the_low_target): Wire them.
5508 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5510 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5511 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5512 mode. Call collect_register_by_name with vscr using
5513 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5514 (ppc_store_vrregset): Add and set vscr_offset variable as in
5515 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5518 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5520 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5521 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5522 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5524 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5526 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5527 (ppc_store_vsxregset): Likewise.
5528 (ppc_fill_vrregset): Likewise.
5529 (ppc_store_vrregset): Likewise.
5530 (ppc_fill_evrregset): Likewise.
5531 (ppc_store_evrregset): Likewise.
5532 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5533 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5536 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5538 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5539 wordsize of the inferior. Call ppc_linux_target_wordsize.
5541 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5543 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5544 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5545 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5546 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5547 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5548 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5549 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5550 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5551 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5552 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5553 (tdesc_powerpc_e500l): Remove.
5554 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5555 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5556 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5557 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5559 (ppc_arch_setup): Remove target description matching code. Fill a
5560 ppc_linux_features struct and call ppc_linux_match_description
5563 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5565 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5566 width of the requested register exceeds the width of the
5568 (mips_cannot_store_register): Likewise.
5570 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5572 * linux-mips-low.c (mips_fetch_register): New function. Update
5574 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5575 (the_low_target): Wire `mips_fetch_register'.
5577 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5579 * lynx-i386-low.c (LYNXOS_178): New macro.
5580 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5581 the layout on LynxOS-178.
5582 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5583 handle floating point registers that are not supported by
5586 2018-05-10 Tom Tromey <tom@tromey.com>
5588 * configure: Rebuild.
5590 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5593 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5594 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5595 Use it to set the expedite_regs field in the given tdesc.
5596 * x86-tdesc.h: New file.
5597 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5598 Adjust following the addition of the new expedite_regs parameter
5599 to init_target_desc.
5600 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5601 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5602 (i386_linux_read_description, amd64_linux_read_description):
5603 Adjust following the addition of the new expedite_regs parameter
5604 to init_target_desc.
5605 * lynx-i386-low.c: #include "x86-tdesc.h".
5606 (lynx_i386_arch_setup): Adjust following the addition of the new
5607 expedite_regs parameter to init_target_desc.
5608 * nto-x86-low.c: #include "x86-tdesc.h".
5609 (nto_x86_arch_setup): Adjust following the addition of the new
5610 expedite_regs parameter to init_target_desc.
5611 * win32-i386-low.c: #include "x86-tdesc.h".
5612 (i386_arch_setup): Adjust following the addition of the new
5613 expedite_regs parameter to init_target_desc.
5615 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5618 * win32-low.c (win32_create_inferior): Add call to my_wait
5619 setting last_status global.
5621 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5624 * win32-low.c (create_process): Only call gdb_tilde_expand if
5625 inferior_cwd is not NULL.
5627 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5629 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5630 registers to the cache if their values have changed.
5631 (i387_xsave_to_cache): Provide default values for x87 control
5632 registers when these features are available, but disabled.
5633 * regcache.c (supply_register_by_name_zeroed): New function.
5634 * regcache.h (supply_register_by_name_zeroed): Declare new
5637 2018-05-07 Tom Tromey <tom@tromey.com>
5639 * configure: Rebuild.
5641 2018-05-04 Tom Tromey <tom@tromey.com>
5643 * configure: Rebuild.
5645 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5646 Pedro Alves <palves@redhat.com>
5648 * linux-aarch64-low.c (aarch64_stopped_data_address):
5651 2018-04-27 Tom Tromey <tom@tromey.com>
5653 * configure: Rebuild.
5655 2018-04-23 Tom Tromey <tom@tromey.com>
5657 * configure: Rebuild.
5659 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5661 * Makefile.in (depcomp): Add "..".
5662 (all_deps_files): New and use it.
5664 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5666 * configure.srv (aarch64*-*-linux*): Don't include xml.
5667 (i[34567]86-*-cygwin*): Likewise.
5668 (i[34567]86-*-linux*): Likewise.
5669 (i[34567]86-*-lynxos*): Likewise.
5670 (i[34567]86-*-mingw32ce*): Likewise.
5671 (i[34567]86-*-mingw*): Likewise.
5672 (i[34567]86-*-nto*): Likewise.
5673 (tic6x-*-uclinux): Likewise.
5674 (x86_64-*-linux*): Likewise.
5675 (x86_64-*-mingw*): Likewise.
5676 (x86_64-*-cygwin*): Likewise.
5678 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5680 * tdesc.c: Remove xml parameter.
5682 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5684 * server.c (get_features_xml): Remove cast.
5685 * tdesc.c (void target_desc::accept): Fill in function.
5686 (tdesc_get_features_xml): Remove old xml creation.
5687 (print_xml_feature::visit_pre): Add xml vistor.
5688 * tdesc.h (struct target_desc): Make xmltarget mutable.
5689 (tdesc_get_features_xml): Remove declaration.
5691 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5693 * tdesc.c (tdesc_architecture_name): Add new function.
5694 (tdesc_osabi_name): Likewise.
5695 (tdesc_get_features_xml): Use new functions.
5697 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5699 * tdesc.c (tdesc_create_flags): Remove.
5700 (tdesc_add_flag): Likewise.
5701 (tdesc_named_type): Likewise.
5702 (tdesc_create_union): Likewise.
5703 (tdesc_create_struct): Likewise.
5704 (tdesc_create_vector): Likewise.
5705 (tdesc_add_bitfield): Likewise.
5706 (tdesc_add_field): Likewise.
5707 (tdesc_set_struct_size): Likewise.
5709 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5711 * tdesc.c (~target_desc): Remove implictly deleted items.
5712 (init_target_desc): Iterate all features.
5713 (tdesc_get_features_xml): Use vector.
5714 (tdesc_create_feature): Create feature.
5715 * tdesc.h (tdesc_feature) Remove
5716 (target_desc): Add features.
5718 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5720 * Makefile.in: Add common/tdesc.c
5721 * tdesc.c (init_target_desc): init all reg_defs from register
5723 (tdesc_create_reg): Create tdesc_reg.
5724 * tdesc.h (tdesc_feature): Add register vector.
5726 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5728 * tdesc.h (struct target_desc) <features>: Change type to
5729 std::vector<std::string>.
5730 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5732 (tdesc_get_features_xml): Likewise.
5733 (tdesc_create_feature): Likewise.
5735 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5737 * regcache.c (find_register_by_number): Return a ref.
5738 (find_regno): Use references.
5739 (register_size): Likewise.
5740 (register_data): Likewise.
5741 * tdesc.c (target_desc::~target_desc): Remove free calls.
5742 (target_desc::operator==): Use std::vector compare.
5743 (init_target_desc): Use reference.
5744 (tdesc_create_reg): Use reg constructors.
5745 * tdesc.h (struct target_desc): Replace pointer with object.
5747 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5749 * regcache.c (find_register_by_number): Make static.
5750 (find_regno): Use find_register_by_number
5751 * regcache.h (struct reg): Remove declaration.
5753 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5755 * tdesc.c (target_desc::~target_desc): Move to here.
5756 (target_desc::operator==): Likewise.
5757 * tdesc.h (target_desc::~target_desc): Move from here.
5758 (target_desc::operator==): Likewise.
5760 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5762 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5764 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5766 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5768 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5769 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5770 and init_registers_s390_gs_linux64.
5772 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5774 * linux-s390-low.c (s390_fill_gs): Remove function.
5775 (s390_fill_gsbc): Remove function.
5776 (s390_regsets): Set fill functions for the guarded storage regsets
5779 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5781 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5782 the word size. Add comment.
5783 (s390_get_wordsize): New function.
5784 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5785 pswm with it. Instead, use s390_get_wordsize to determine the
5786 word size first and derive the correct tdesc from that directly.
5788 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5790 * Makefile.in: Include silent-rules.mk.
5791 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5792 (COMPILE): Add ECHO_CXX.
5793 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5794 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5795 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5796 (version-generated.c): Add ECHO_GEN.
5797 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5798 (IPAGENT_COMPILE): Add ECHO_CXX.
5799 (%-generated.c): Add ECHO_REGDAT.
5801 2018-03-14 Tom Tromey <tom@tromey.com>
5804 * ax.c (ax_printf): Special case for NULL.
5806 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5808 * linux-low.c (linux_qxfer_libraries_svr4): Use
5809 xml_escape_text_append.
5811 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5813 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5815 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5817 * server.c (handle_general_set): Remove unnecessary xstrdup.
5819 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5821 * server.c (parse_debug_format_options): Adjust to
5822 delim_string_to_char_ptr_vec changes.
5823 * thread-db.c (thread_db_load_search): Adjust to
5824 dirnames_to_char_ptr_vec changes.
5826 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5828 * target.h (target_enable_btrace, target_disable_btrace)
5829 (target_read_btrace, target_read_btrace_conf): Turn macro into
5830 inline function. Throw error if target method is not defined.
5831 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5832 check for btrace target method. Be prepared to handle exceptions
5833 from btrace target methods.
5835 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5837 * server.c (captured_main): Change order of error message printed
5838 when the current working directory cannot be found.
5840 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5842 * server.c: Include "filenames.h" and "pathstuff.h".
5843 (program_name): Delete variable.
5844 (program_path): New anonymous class.
5845 (get_exec_wrapper): Use "program_path" instead of
5847 (handle_v_run): Likewise.
5848 (captured_main): Likewise.
5849 (process_serial_event): Likewise.
5851 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5853 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5854 (OBJS): Add "pathstuff.o".
5855 * server.c (current_directory): New global variable.
5856 (captured_main): Initialize "current_directory".
5858 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5860 * tdesc.c: Use common/tdesc.h.
5861 * tdesc.h: Likewise.
5863 2018-02-20 Alan Hayward <alan.hayward@arm.com>
5864 Simon Marchi <simon.marchi@ericsson.com>
5866 * Makefile.in: Switch order of make rules.
5868 2018-02-19 Alan Hayward <alan.hayward@arm.com>
5870 * Makefile.in: Add common directory in build.
5871 * configure.ac: Add common reference.
5872 * configure: Regenerate.
5874 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5876 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
5877 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
5878 * spu-low.c (spu_target_ops): Likewise.
5879 * win32-low.c (win32_target_ops): Likewise.
5880 * server.c (supported_btrace_packets): Report packets unconditionally.
5881 * target.h (target_ops) <supports_btrace>: Remove.
5882 (target_supports_btrace): Remove.
5884 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
5886 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
5887 (handle_btrace_disable): Change return type to void. Use exceptions
5889 (handle_btrace_general_set): Catch exception and copy message to
5892 2018-02-08 Tom Tromey <tom@tromey.com>
5894 * linux-low.c (install_software_single_step_breakpoints): Use
5895 make_scoped_restore.
5896 * inferiors.c (make_cleanup_restore_current_thread): Remove.
5897 (do_restore_current_thread_cleanup): Remove.
5898 * gdbthread.h (make_cleanup_restore_current_thread): Don't
5901 2018-02-08 Tom Tromey <tom@tromey.com>
5903 * mem-break.c (set_raw_breakpoint_at): Use
5904 gdb::unique_xmalloc_ptr.
5906 2018-01-30 Pedro Alves <palves@redhat.com>
5909 * target.c (target_terminal::terminal_state): Rename to ...
5910 (target_terminal::m_terminal_state): ... this.
5912 2018-01-19 James Clarke <jrtc27@jrtc27.com>
5914 * linux-low.c (handle_extended_wait): Surround call to
5915 thread_db_notice_clone with #ifdef USE_THREAD_DB.
5917 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
5919 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
5920 linux_ptrace_attach_fail_reason_string now returning an
5922 (linux_attach): Likewise.
5923 * thread-db.c (attach_thread): Likewise.
5925 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
5928 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
5929 checking for fs_base/gs_base fields in struct user_regs_struct.
5930 * configure: Regenerate.
5932 2018-01-16 Yao Qi <yao.qi@linaro.org>
5935 * linux-low.c (fetch_register): Call supply_register instead of
5938 2018-01-08 Yao Qi <yao.qi@linaro.org>
5939 Simon Marchi <simon.marchi@ericsson.com>
5941 * Makefile.in (OBS): Remove selftest.o.
5942 * configure.ac: Set srv_selftest_objs if $development is true.
5943 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
5944 * configure: Re-generated.
5945 * server.c (captured_main): Wrap variable selftest_filter with
5948 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
5950 * server.c (parse_debug_format_options): Return std::string.
5951 (handle_monitor_command, captured_main): Adjust.
5953 2018-01-05 Pedro Alves <palves@redhat.com>
5956 * server.c (captured_main): Pass quiet=false to
5957 save_original_signals_state.
5959 2018-01-01 Joel Brobecker <brobecker@adacore.com>
5961 * gdbreplay.c (gdbreplay_version): Update copyright year in
5963 * server.c (gdbserver_version): Likewise.
5965 2017-12-08 Tom Tromey <tom@tromey.com>
5967 * ax.c (ax_printf): Update.
5969 2017-12-07 Yao Qi <yao.qi@linaro.org>
5971 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
5972 aarch64_linux_read_description.
5973 * linux-amd64-ipa.c (idx2mask): New array.
5974 (get_ipa_tdesc): Move idx2mask out.
5975 (initialize_low_tracepoint): Initialize target descriptions.
5976 * linux-i386-ipa.c (idx2mask): New array.
5977 (get_ipa_tdesc): Move idx2mask out.
5978 (initialize_low_tracepoint): Initialize target descriptions.
5980 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
5982 * tdesc.c (struct tdesc_type): Change return type.
5983 (tdesc_add_flag): Change parameter type.
5984 (tdesc_add_bitfield): Likewise.
5985 (tdesc_add_field): Likewise.
5986 (tdesc_set_struct_size): Likewise.
5988 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
5990 * regcache.c (registers_to_string): Remove unused variable.
5992 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
5994 * inferiors.c (for_each_inferior_with_data): Remove.
5995 * inferiors.h (for_each_inferior_with_data): Remove.
5996 * server.c (handle_qxfer_threads_worker): Change parameter type.
5997 (handle_qxfer_threads_proper): Use for_each_thread.
5999 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6001 * inferiors.c (for_each_inferior): Remove.
6002 (clear_inferiors): Use for_each_thread.
6003 * inferiors.h (for_each_inferior): Remove.
6004 * linux-low.c (linux_wait_for_event_filtered): Use
6006 (linux_stabilize_threads): Likewise.
6007 * regcache.c (regcache_release): Likewise.
6008 * server.c (gdb_wants_all_threads_stopped): Likewise.
6009 (clear_pending_status_callback): Remove.
6010 (handle_status): Use for_each_thread.
6011 (captured_main): Likewise.
6012 * win32-low.c (child_init_thread_list): Likewise.
6013 (win32_clear_inferiors): Likewise.
6014 (fake_breakpoint_event): Likewise.
6016 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6018 * inferiors.h (find_inferior): Remove.
6019 * inferiors.c (find_inferior): Remove.
6021 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6023 * linux-low.c (resume_status_pending_p): Update comment.
6024 (need_step_over_p): Update comment.
6026 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6028 * linux-low.c (proceed_one_lwp): Return void, change parameter
6030 (unsuspend_and_proceed_one_lwp): Likewise.
6031 (proceed_all_lwps): Use for_each_thread.
6032 (unstop_all_lwps): Likewise.
6034 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6036 * linux-low.c (linux_resume_one_thread): Return void, take
6038 (linux_resume): Use for_each_thread.
6040 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6042 * linux-low.c (send_sigstop_callback): Return void, change
6043 parameter type. Rename to...
6044 (send_sigstop): ... this.
6045 (suspend_and_send_sigstop_callback): Return void, change parameter
6047 (suspend_and_send_sigstop): ... this.
6048 (stop_all_lwps): Use for_each_thread.
6050 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6052 * linux-low.c (lwp_running): Return bool, remove unused
6054 (linux_stabilize_threads): Use find_thread.
6056 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6058 * linux-low.c (select_singlestep_lwp_callback): Remove.
6059 (count_events_callback): Remove.
6060 (select_event_lwp_callback): Remove.
6061 (select_event_lwp): Use find_thread/for_each_thread.
6063 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6065 * linux-low.c (not_stopped_callback): Return bool, take filter
6067 (linux_wait_for_event_filtered): Use find_thread.
6068 (linux_wait_1): Likewise.
6070 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6072 * linux-low.c (same_lwp): Remove.
6073 (find_lwp_pid): Use find_thread.
6075 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6077 * linux-low.c (delete_lwp_callback): Remove.
6078 (linux_mourn): Use for_each_thread.
6080 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6082 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6083 args parameter, don't check for pid.
6084 (linux_detach): Use for_each_thread.
6086 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6088 * linux-low.c (struct counter): Remove.
6089 (second_thread_of_pid_p): Remove.
6090 (last_thread_of_process_p): Use find_thread.
6092 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6094 * inferiors.c (find_inferior_in_random): Remove.
6095 * inferiors.h (find_inferior_in_random): Remove.
6096 * linux-low.c (status_pending_p_callback): Return bool, accept
6097 parameter ptid directly.
6098 (linux_wait_for_event_filtered): Use find_thread_in_random.
6099 (linux_wait_1): Likewise.
6101 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6103 * inferiors.c (find_inferior_id): Remove.
6104 (find_thread_ptid): Move implemention from find_inferior_id to
6106 * inferiors.h (find_inferior_id): Remove.
6107 * server.c (handle_status): Use find_thread_ptid.
6108 (process_serial_event): Likewise.
6109 * thread-db.c (find_one_thread): Likewise.
6110 (thread_db_thread_handle): Likewise.
6111 * win32-low.c (thread_rec): Likewise.
6112 (child_delete_thread): Likewise.
6113 (win32_thread_alive): Likewise.
6114 (get_child_debug_event): Likewise.
6116 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6118 * linux-mips-low.c (update_watch_registers_callback): Return
6119 void, remove pid_p parameter, don't check for pid.
6120 (mips_insert_point, mips_remove_point): Use for_each_thread.
6122 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6124 * lynx.low (lynx_delete_thread_callback): Remove.
6125 (lynx_mourn): Use for_each_thread.
6127 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6129 * regcache.c (regcache_invalidate_one): Remove.
6130 (regcache_invalidate_pid): use for_each_thread.
6132 2017-11-26 Tom Tromey <tom@tromey.com>
6134 * linux-low.c (linux_create_inferior): Update.
6136 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6138 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6140 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6142 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6143 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6144 * linux-aarch64-tdesc-selftest.c: New file.
6145 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6147 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6149 * configure.srv: Add new file.
6150 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6151 * linux-aarch64-tdesc-selftest.c: New file.
6152 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6154 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6156 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6157 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6158 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6160 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6162 * configure.srv: Add new files.
6163 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6164 aarch64_linux_read_description.
6165 * linux-aarch64-low.c (aarch64_linux_read_description):
6166 Merge with aarch64_arch_setup.
6167 (aarch64_arch_setup): Call aarch64_linux_read_description.
6168 * linux-aarch64-tdesc.c: New file.
6169 * linux-aarch64-tdesc.h: New file.
6171 2017-11-24 Yao Qi <yao.qi@linaro.org>
6173 * configure.srv: Set $srv_regobj for tic6x-linux.
6174 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6175 (tic6x_read_description): Move some code to tic6x_arch_setup.
6176 (tic6x_tdesc_test): New function.
6177 (initialize_low_arch): Call selftests::register_test.
6179 2017-11-22 Yao Qi <yao.qi@linaro.org>
6181 * remote-utils.c (prepare_resume_reply): Use memcpy.
6183 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6185 * linux-low.c (kill_one_lwp_callback): Return void, take
6186 argument directly, don't filter on pid.
6187 (linux_kill): Use for_each_thread.
6189 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6191 * linux-low.c (need_step_over_p): Return bool, remove dummy
6193 (linux_resume, proceed_all_lwps): Use find_thread.
6195 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6197 * linux-low.c (resume_status_pending_p): Return bool, remove
6199 (linux_resume): Use find_thread.
6201 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6203 * linux-low.c (struct thread_resume_array): Remove.
6204 (linux_set_resume_request): Return void, take arguments
6206 (linux_resume): Use for_each_thread.
6208 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6210 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6211 return bool, remove data argument.
6212 (linux_stabilize_threads): Use find_thread.
6214 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6216 * linux-low.c (unsuspend_one_lwp): Remove.
6217 (unsuspend_all_lwps): Use for_each_thread, inline code from
6220 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6222 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6223 * linux-low.c (struct iterate_over_lwps_args): Remove.
6224 (iterate_over_lwps_filter): Remove.
6225 (iterate_over_lwps): Use find_thread.
6227 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6229 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6230 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6231 code from reset_lwp_ptrace_options_callback.
6233 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6235 * linux-arm-low.c (struct update_registers_data): Remove.
6236 (update_registers_callback): Return void, take arguments
6237 directly, don't check thread's pid.
6238 (arm_insert_point, arm_remove_point): Use for_each_thread.
6240 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6242 * win32-low.c (continue_one_thread): Return void, take argument
6244 (child_continue): Use for_each_thread.
6246 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6248 * win32-i386-low.c (update_debug_registers_callback): Rename
6250 (update_debug_registers): ... this, return void, remove pid_p arg.
6251 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6253 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6255 * inferiors.h (struct process_info): Add constructor, initialize
6257 <syscalls_to_catch>: Change type to std::vector<int>.
6258 * inferiors.c (add_process): Allocate process_info with new.
6259 (remove_process): Free process_info with delete.
6260 * linux-low.c (handle_extended_wait): Adjust.
6261 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6262 * server.c (handle_general_set): Adjust.
6264 2017-11-16 Pedro Alves <palves@redhat.com>
6266 * remote-utils.c (remote_close): Block SIGIO signals instead of
6267 uninstalling the SIGIO handler.
6269 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6271 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6273 2017-11-16 Yao Qi <yao.qi@linaro.org>
6275 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6276 (tic6x_store_gregset): Likewise.
6277 (tic6x_usrregs_info): Move it up.
6279 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6281 * Makefile.in: Update arch rules.
6282 * configure.srv: Explicitly mark arch/ files.
6284 2017-11-13 Andreas Schwab <schwab@suse.de>
6286 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6288 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6290 2017-11-06 Pedro Alves <palves@redhat.com>
6292 * config.in, configure: Regenerate.
6294 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6296 * target.c (struct thread_search): Remove.
6297 (thread_search_callback): Remove.
6298 (prepare_to_access_memory): Use for_each_thread instead of
6299 find_inferior. Inline code from thread_search_callback.
6301 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6303 * server.c (struct visit_actioned_threads_data): Remove.
6304 (visit_actioned_threads): Change prototype to take arguments
6306 (resume): Use find_thread instead of find_inferior.
6308 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6310 * server.c (queue_stop_reply_callback): Change prototype, return
6312 (find_status_pending_thread_callback): Remove.
6313 (handle_status): Replace find_inferior with find_thread and
6316 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6318 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6320 (aarch64_store_gregset): Likewise.
6321 (aarch64_fill_fpregset): Likewise.
6322 (aarch64_store_fpregset): Likewise.
6324 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6326 * gdbthread.h (find_thread, for_each_thread): New functions.
6327 * inferiors.c (thread_of_pid): Remove.
6328 (find_any_thread_of_pid): Use find_thread.
6329 * linux-low.c (num_lwps): Use for_each_thread.
6331 2017-10-17 Yao Qi <yao.qi@linaro.org>
6333 * Makefile.in: Remove one rule.
6334 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6336 2017-10-17 Yao Qi <yao.qi@linaro.org>
6338 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6339 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6341 2017-10-17 Yao Qi <yao.qi@linaro.org>
6343 * configure.srv: Rename arm.o with arch/arm.o.
6345 2017-10-17 Yao Qi <yao.qi@linaro.org>
6347 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6348 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6349 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6350 (arch-i386.o, arch-amd64.o): Remove rules.
6351 (arch/%.o): New rule.
6352 Update POSTCOMPILE and COMPILE.pre.
6353 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6354 * configure: Re-generated.
6355 * configure.srv: Replace arch-i386.o with arch/i386.o.
6356 Replace arch-amd64.o with arch/amd64.o.
6358 2017-10-16 Yao Qi <yao.qi@linaro.org>
6360 * configure: Regenerated.
6362 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6364 * inferiors.h: (struct inferior_list): Remove.
6365 (struct inferior_list_entry); Remove.
6366 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6367 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6368 get_first_inferior): Remove.
6369 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6370 find_inferior_id, find_inferior_in_random): Change signature.
6371 * inferiors.c (all_threads): Change type to
6372 std::list<thread_info *>.
6373 (get_thread): Remove macro.
6374 (find_inferior, find_inferior_id): Change signature, implement
6376 (find_inferior_in_random): Change signature, implement using
6377 find_thread_in_random.
6378 (for_each_inferior, for_each_inferior_with_data): Change
6379 signature, implement using for_each_thread.
6380 (add_inferior_to_list, remove_inferior): Remove.
6381 (add_thread, get_first_thread, thread_of_pid,
6382 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6383 (get_first_inferior, one_inferior_p, clear_inferior_list):
6385 (clear_inferiors, get_thread_process): Update.
6386 * gdbthread.h: Include <list>.
6387 (struct thread_info) <entry>: Remove field.
6389 (all_threads): Change type to std::list<thread_info *>.
6390 (get_first_inferior): Add doc.
6391 (find_thread, for_each_thread, find_thread_in_random): New
6393 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6394 * linux-arm-low.c (update_registers_callback): Update.
6395 * linux-low.c (second_thread_of_pid_p): Update.
6396 (kill_one_lwp_callback, linux_detach_lwp_callback,
6397 delete_lwp_callback, status_pending_p_callback, same_lwp,
6398 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6399 iterate_over_lwps, not_stopped_callback,
6400 resume_stopped_resumed_lwps, count_events_callback,
6401 select_singlestep_lwp_callback, select_event_lwp_callback,
6402 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6403 suspend_and_send_sigstop_callback, wait_for_sigstop,
6404 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6405 lwp_running, linux_set_resume_request, resume_status_pending_p,
6406 need_step_over_p, start_step_over, linux_resume_one_thread,
6407 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6408 reset_lwp_ptrace_options_callback): Update.
6409 * linux-mips-low.c (update_watch_registers_callback): Update.
6410 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6412 (free_register_cache_thread_one): Remove.
6413 (regcache_release): Update.
6414 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6415 handle_qxfer_threads_worker): Update.
6416 (handle_query): Update, use list iterator.
6417 (visit_actioned_threads, handle_pending_status,
6418 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6419 clear_pending_status_callback, set_pending_status_callback,
6420 find_status_pending_thread_callback, handle_status,
6421 process_serial_event): Update.
6422 * target.c (thread_search_callback): Update.
6423 * thread-db.c (thread_db_get_tls_address): Update.
6424 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6426 * win32-i386-low.c (update_debug_registers_callback): Update.
6427 * win32-low.c (delete_thread_info, child_delete_thread,
6428 continue_one_thread, suspend_one_thread,
6429 get_child_debug_event): Adjust.
6431 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6433 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6434 * inferiors.h: Include <list>.
6435 (struct process_info) <entry>: Remove field.
6437 (pid_of): Change macro to function.
6438 (ptid_of, lwpid_of): Remove macro.
6439 (all_processes): Change type to std::list<process_info *>.
6440 (ALL_PROCESSES): Remove macro.
6441 (for_each_process, find_process): New function.
6442 * inferiors.c (all_processes): Change type to
6443 std::list<process_info *>.
6444 (find_thread_process): Adjust.
6445 (add_process): Likewise.
6446 (remove_process): Likewise.
6447 (find_process_pid): Likewise.
6448 (get_first_process): Likewise.
6449 (started_inferior_callback): Remove.
6450 (have_started_inferiors_p): Adjust.
6451 (attached_inferior_callback): Remove.
6452 (have_attached_inferiors_p): Adjust.
6453 * linux-low.c (check_zombie_leaders): Likewise.
6454 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6455 (x86_linux_update_xmltarget): Adjust.
6456 * server.c (handle_query): Likewise.
6457 (gdb_reattached_process): Remove.
6458 (handle_status): Adjust.
6459 (kill_inferior_callback): Likewise.
6460 (detach_or_kill_inferior): Remove.
6461 (print_started_pid): Likewise.
6462 (print_attached_pid): Likewise.
6463 (detach_or_kill_for_exit): Update.
6464 (process_serial_event): Likewise.
6465 * linux-arm-low.c (arm_new_fork): Likewise.
6467 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6469 * dll.h: Include <list>.
6470 (struct dll_info): Add constructor.
6471 <entry>: Remove field.
6472 (all_dlls): Change type to std::list<dll_info>.
6473 * dll.c: Include <algorithm>.
6474 (get_dll): Remove macro.
6475 (all_dlls): Change type to std::list<dll_info *>.
6476 (free_one_dll): Remove.
6477 (match_dll): Likewise.
6478 (loaded_dll): Adjust.
6479 (unloaded_dll): Adjust to all_dlls type change, use
6480 std::find_if. Inline code from match_dll.
6481 (clear_dlls): Adjust to all_dlls type change.
6482 * server.c (emit_dll_description): Remove.
6483 (handle_qxfer_libraries): Adjust to all_dlls type change,
6484 integrate emit_dll_description's functionality.
6486 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6488 * linux-low.h (struct linux_target_ops) <delete_process>: New
6490 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6491 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6492 (struct linux_target_ops): Add delete_process callback.
6493 * linux-arm-low.c (arm_delete_process): New.
6494 (struct linux_target_ops): Add delete_process callback.
6495 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6496 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6497 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6498 * linux-mips-low.c (mips_linux_delete_process): New.
6499 (struct linux_target_ops): Add delete_process callback.
6500 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6501 * linux-s390-low.c (struct linux_target_ops): Likewise.
6502 * linux-sh-low.c (struct linux_target_ops): Likewise.
6503 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6504 * linux-tile-low.c (struct linux_target_ops): Likewise.
6505 * linux-x86-low.c (x86_linux_delete_process): New.
6506 (struct linux_target_ops): Add delete_process callback.
6507 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6509 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6511 * linux-aarch64-low.c (the_low_target): Add thread delete
6513 * linux-arm-low.c (arm_delete_thread): New function.
6514 (the_low_target): Add thread delete callback.
6515 * linux-bfin-low.c (the_low_target): Likewise.
6516 * linux-crisv32-low.c (the_low_target): Likewise.
6517 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6519 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6521 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6522 * linux-mips-low.c (mips_linux_delete_thread): New function.
6523 (the_low_target): Add thread delete callback.
6524 * linux-ppc-low.c (the_low_target): Likewise.
6525 * linux-s390-low.c (the_low_target): Likewise.
6526 * linux-sh-low.c (the_low_target): Likewise.
6527 * linux-tic6x-low.c (the_low_target): Likewise.
6528 * linux-tile-low.c (the_low_target): Likewise.
6529 * linux-x86-low.c (the_low_target): Likewise.
6530 * linux-xtensa-low.c (the_low_target): Likewise.
6532 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6534 * win32-low.c: Include "common-inferior.h".
6536 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6538 * inferiors.c (set_inferior_cwd): New function.
6539 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6540 (handle_query): Inform that QSetWorkingDir is supported.
6541 * win32-low.c (create_process): Pass the inferior's cwd to
6544 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6546 * inferiors.c (current_inferior_cwd): New global variable.
6547 (get_inferior_cwd): New function.
6548 * inferiors.h (struct process_info) <cwd>: New field.
6550 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6552 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6553 (OBS): Add gdb_tilde_expand.o.
6555 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6557 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6558 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6560 2017-09-29 Pedro Alves <palves@redhat.com>
6562 * ax.c (gdb_parse_agent_expr): Constify.
6563 * ax.h (gdb_parse_agent_expr): Constify.
6564 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6566 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6567 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6568 * remote-utils.h (read_ptid): Constify.
6569 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6570 (process_point_options, process_serial_event): Constify.
6571 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6572 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6573 (cmd_qtbuffer): Constify.
6575 2017-09-29 Pedro Alves <palves@redhat.com>
6577 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6580 2017-09-29 Pedro Alves <palves@redhat.com>
6582 * linux-low.c (handle_extended_wait): Pass parent thread instead
6583 of process to thread_db_notice_clone.
6584 * linux-low.h (thread_db_notice_clone): Replace parent process
6585 parameter with parent thread parameter.
6586 * thread-db.c (find_one_thread): Add comment.
6587 (thread_db_notice_clone): Replace parent process parameter with
6588 parent thread parameter. Temporarily switch to the parent thread.
6590 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6592 * gdbthread.h: Include "common-gdbthread.h".
6593 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6594 "if" when validating the ptid.
6595 * remote-utils.c: Include "gdbthread.h".
6596 (prepare_resume_reply): Use "switch_to_thread".
6597 * target.c (done_accessing_memory): Likewise.
6599 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6601 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6602 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6603 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6604 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6605 s390x-gs-linux64-ipa.o to ipa_obj.
6606 * linux-s390-low.c (HWCAP_S390_GS): New define.
6607 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6609 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6610 (s390_arch_setup): Check for guarded-storage support and choose
6612 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6613 init_registers_s390x_gs_linux64.
6614 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6616 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6617 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6619 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6621 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6623 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6625 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6626 (thread_db_thread_handle): Declare.
6627 * linux-low.c (linux_target_ops): Initialize thread_handle.
6628 * server.c (handle_qxfer_threads_worker): Add support for
6630 * target.h (struct target_ops): Add new function pointer,
6632 (target_thread_handle): Define.
6633 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6635 (thread_db_thread_handle): New function.
6637 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6639 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6640 * linux-low.h (thread_db_notice_clone): Declare.
6641 * thread-db.c (thread_db_notice_clone): New function.
6643 2017-09-21 Pedro Alves <palves@redhat.com>
6645 * server.c (gdb_read_memory, handle_status, process_serial_event)
6646 (handle_serial_event, handle_target_event): Adjust to
6647 set_desired_thread prototype change.
6648 * target.c (set_desired_thread): Remove 'use_general' parameter
6650 * target.h (set_desired_thread): Remove 'use_general' parameter.
6652 2017-09-20 Tom Tromey <tom@tromey.com>
6654 * target.c (target_terminal::terminal_state): Define.
6655 (target_terminal::init): Rename from target_terminal_init.
6656 (target_terminal::inferior): Rename from
6657 target_terminal_inferior.
6658 (target_terminal::ours): Rename from target_terminal_ours.
6659 (target_terminal::ours_for_output, target_terminal::info): New.
6661 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6663 * server.c (accumulate_file_name_length): Remove.
6664 (emit_dll_description): Adjust to std::string change.
6665 (handle_qxfer_libraries): Use std::string to hold document.
6667 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6669 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6670 return type of xml_escape_text.
6671 * server.c (emit_dll_description): Likewise.
6673 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6675 * server.c (captured_main): Accept argument for --selftest.
6676 Update run_tests call.
6677 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6678 when registering selftests.
6680 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6682 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6683 instead of "VEC" for "target_desc.reg_defs".
6684 (regcache_cpy): Likewise.
6685 (registers_to_string): Likewise.
6686 (registers_from_string): Likewise.
6687 (find_regno): Likewise.
6688 (supply_regblock): Likewise.
6689 (regcache_raw_read_unsigned): Likewise.
6690 * tdesc.c (init_target_desc): Likewise.
6691 (tdesc_create_reg): Likewise.
6692 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6693 (struct target_desc) <reg_defs>: Convert to "std::vector".
6694 (target_desc): Do not initialize "reg_defs".
6695 (~target_desc): Update code to use "std::vector" instead of "VEC"
6696 for "target_desc.reg_defs".
6697 (operator==): Likewise.
6699 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6701 * inferiors.h (thread_to_gdb_id): Remove.
6702 * inferiors.c (thread_to_gdb_id): Remove.
6703 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6704 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6705 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6707 * nto-low.c (nto_fetch_registers, nto_store_registers,
6708 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6710 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6712 * inferiors.h (gdb_id_to_thread_id): Remove.
6713 * inferiors.c (gdb_id_to_thread_id): Remove.
6714 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6715 removal. Move pid declaration closer to where it's used.
6717 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6719 * server.c (handle_detach): New function.
6720 (process_serial_event): Move code out, call handle_detach.
6722 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6724 * server.c (require_running): Rename to ...
6725 (require_running_or_return): ... this ...
6726 (require_running_or_break): ... and this.
6727 (handle_query, process_serial_event): Adjust.
6729 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6731 * linux-low.c (linux_set_resume_request): Remove unused
6734 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6736 * server.c (first_thread_of): Remove.
6737 (process_serial_event): Replace usage of first_thread_of with
6738 find_any_thread_of_pid.
6739 * tracepoint.c (same_process_p): Remove.
6740 (gdb_agent_about_to_close): Replace usage of same_process_p with
6741 find_any_thread_of_pid.
6742 * linux-x86-low.c (same_process_callback): Remove.
6743 (x86_arch_setup_process_callback): Replace usage of
6744 same_process_callback with find_any_thread_of_pid.
6745 * thread-db.c (any_thread_of): Remove.
6746 (switch_to_process): Replace usage of any_thread_of with
6747 find_any_thread_of_pid.
6748 * inferiors.c (thread_pid_matches_callback): Remove.
6749 (find_thread_process): Adjust to use find_any_thread_of_pid.
6751 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6753 * regcache.c (get_thread_regcache): Guard calls to "memset"
6756 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6758 * linux-low.c (handle_extended_wait): Use
6759 "allocate_target_description" instead of "XNEW".
6760 * linux-x86-low.c (initialize_low_arch): Likewise.
6762 2017-09-05 Yao Qi <yao.qi@linaro.org>
6764 * configure.srv (srv_i386_regobj): Remove.
6765 (srv_amd64_regobj): Remove.
6766 (srv_regobj): Set it to "" for x86 non-linux targets.
6767 * linux-x86-tdesc.c (i386_linux_read_description):
6768 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6769 (init_registers_i386): Remove the declaration.
6770 (tdesc_i386): Remove the declaration.
6771 (lynx_i386_arch_setup): Call i386_create_target_description.
6772 * nto-x86-low.c: Likewise.
6773 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6774 [!__x86_64__]: include arch/i386.h.
6775 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6777 2017-09-05 Yao Qi <yao.qi@linaro.org>
6779 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6780 i386/amd64-XXX-linux from it.
6782 2017-09-05 Yao Qi <yao.qi@linaro.org>
6784 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6786 (ipa_amd64_linux_regobj): Remove.
6787 (ipa_x32_linux_regobj): Remove.
6789 2017-09-05 Yao Qi <yao.qi@linaro.org>
6791 * Makefile.in (arch-amd64.o): New rule.
6792 * configure.srv: Append arch-amd64.o.
6793 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6794 (get_ipa_tdesc): Call amd64_linux_read_description.
6795 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6796 and init_registers_amd64_XXX.
6797 * linux-x86-low.c (x86_linux_read_description): Call
6798 amd64_linux_read_description.
6799 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6800 (initialize_low_arch): Don't call init_registers_x32_XXX and
6801 init_registers_amd64_XXX.
6802 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6803 and tdesc_amd64_XXX.
6804 [__x86_64__] (amd64_tdesc_test): New function.
6805 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6806 and init_registers_amd64_XXX.
6807 * linux-x86-tdesc.c: Include arch/amd64.h.
6808 (xcr0_to_tdesc_idx): New function.
6809 (i386_linux_read_description): New function.
6810 (amd64_get_ipa_tdesc_idx): New function.
6811 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6812 (amd64_get_ipa_tdesc): Declare.
6814 2017-09-05 Yao Qi <yao.qi@linaro.org>
6816 * configure.srv (srv_i386_linux_xmlfiles): Remove
6817 i386/i386-XXX-linux.xml from it.
6819 2017-09-05 Yao Qi <yao.qi@linaro.org>
6821 * configure.srv: Set srv_i386_linux_regobj empty if $development
6823 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6824 initialize_low_tdesc.
6825 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6826 with #if initialize_low_tdesc.
6827 * linux-x86-tdesc-selftest.c: New file.
6828 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6830 2017-09-05 Yao Qi <yao.qi@linaro.org>
6832 * Makefile.in (arch-i386.o): New rule.
6833 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6834 (x86_64-*-linux*): Likewise.
6835 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6836 include arch/i386.h.
6837 (i386_linux_read_description): Remove code and call
6838 i386_create_target_description.
6839 * tdesc.c (allocate_target_description): New function.
6840 * tdesc.h (set_tdesc_architecture): Remove declaration.
6841 (set_tdesc_osabi): Likewise.
6843 2017-09-05 Yao Qi <yao.qi@linaro.org>
6845 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6846 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6847 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6849 * server.c (get_features_xml): Call tdesc_get_features_xml.
6850 * tdesc.c (set_tdesc_architecture): New function.
6851 (set_tdesc_osabi): New function.
6852 (tdesc_get_features_xml): New function.
6853 (tdesc_create_feature): Add an argument.
6854 * tdesc.h (struct target_desc) <features>: New field.
6855 <arch, osabi>: New field.
6856 (~target_desc): xfree features, arch, and osabi.
6857 (target_desc::oerator==): Don't compare .xmltarget.
6858 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6859 (set_tdesc_osabi): Likewise.
6860 (tdesc_get_features_xml): Likewise.
6862 2017-09-05 Yao Qi <yao.qi@linaro.org>
6864 * linux-x86-tdesc.c: Include selftest.h.
6865 (i386_tdesc_test): New function.
6866 (initialize_low_tdesc): Call selftests::register_test.
6867 * tdesc.h: Include regdef.h.
6868 (target_desc): Override operator == and !=.
6870 2017-09-05 Yao Qi <yao.qi@linaro.org>
6872 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
6873 (ipa_obj): Likewise.
6874 * linux-i386-ipa.c: Include common/x86-xstate.h
6875 (get_ipa_tdesc): Call i386_linux_read_description.
6876 (initialize_low_tracepoint): Don't call init_registers_XXX
6877 functions, call initialize_low_tdesc instead.
6878 * linux-x86-low.c (x86_linux_read_description): Call
6879 i386_linux_read_description.
6880 (initialize_low_arch): Don't call init_registers_i386_XXX
6881 functions, call initialize_low_tdesc.
6882 * linux-x86-tdesc.c: New file.
6883 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
6884 (i386_get_ipa_tdesc_idx): Declare.
6885 (i386_get_ipa_tdesc): Declare.
6886 (initialize_low_tdesc): Declare.
6888 2017-09-05 Yao Qi <yao.qi@linaro.org>
6890 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
6893 2017-09-05 Yao Qi <yao.qi@linaro.org>
6895 * Makefile.in (IPA_OBJS): Add vec-ipa.o
6896 * regcache.c (get_thread_regcache): Use VEC_length.
6897 (init_register_cache): Likewise.
6898 (regcache_cpy): Likewise.
6899 (registers_to_string): Iterate reg_defs via VEC_iterate.
6900 (find_regno): Likewise.
6901 (find_register_by_number): Use VEC_index.
6902 (register_size): Call find_register_by_number.
6903 (register_data): Call find_register_by_number.
6904 (supply_regblock): Use VEC_length.
6905 (regcache_raw_read_unsigned): Likewise.
6906 * tdesc.c (init_target_desc): Iterate reg_defs via
6908 (default_description): Update initializer.
6909 (copy_target_description): Don't update field num_registers.
6910 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
6911 <num_registers>: Remove.
6913 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
6915 * Makefile.in (.SECONDARY): Define target.
6917 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
6919 * linux-low.c (linux_wait_1): Adjust.
6920 * server.c (queue_stop_reply_callback): Adjust.
6922 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
6924 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
6925 QEnvironmentUnset and QEnvironmentReset packets.
6926 (handle_query): Inform remote that QEnvironmentHexEncoded,
6927 QEnvironmentUnset and QEnvironmentReset are supported.
6929 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
6931 * inferiors.h (inferior_target_data): Rename to ...
6932 (thread_target_data): ... this.
6933 (inferior_regcache_data): Rename to ...
6934 (thread_regcache_data): ... this.
6935 (set_inferior_regcache_data): Rename to ...
6936 (set_thread_regcache_data): ... this.
6937 * inferiors.c (inferior_target_data): Rename to ...
6938 (thread_target_data): ... this.
6939 (inferior_regcache_data): Rename to ...
6940 (thread_regcache_data): ... this.
6941 (set_inferior_regcache_data): Rename to ...
6942 (set_thread_regcache_data): ... this.
6943 (free_one_thread): Update.
6944 * linux-low.h (get_thread_lwp): Update.
6945 * regcache.c (get_thread_regcache): Update.
6946 (regcache_invalidate_thread): Update.
6947 (free_register_cache_thread): Update.
6948 * win32-i386-low.c (update_debug_registers_callback): Update.
6949 (win32_get_current_dr): Update.
6950 * win32-low.c (thread_rec): Update.
6951 (delete_thread_info): Update.
6952 (continue_one_thread): Update.
6953 (suspend_one_thread): Update.
6955 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
6957 * inferiors.c (set_inferior_target_data): Remove.
6958 * inferiors.h (set_inferior_target_data): Remove.
6960 2017-08-18 Yao Qi <yao.qi@linaro.org>
6962 * Makefile.in (OBS): Add selftest.o.
6963 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
6964 * configure, config.in: Re-generated.
6965 * server.c: Include common/sefltest.h.
6966 (captured_main): Handle option --selftest.
6968 2017-08-09 Yao Qi <yao.qi@linaro.org>
6970 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
6971 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
6972 i386-avx-mpx.o and i386-mmx.o.
6973 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
6974 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
6975 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
6976 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
6977 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
6978 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
6979 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
6980 i386/amd64-avx-mpx.xml.
6982 2017-08-09 Yao Qi <yao.qi@linaro.org>
6984 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
6985 and x32-avx-avx512.o.
6986 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
6987 i386/x32-avx-avx512.xml.
6989 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
6991 * tracepoint.h (enum class fast_tpoint_collect_result): New
6993 (fast_tracepoint_collecting): Change return type to
6994 fast_tpoint_collect_result.
6995 * tracepoint.c (fast_tracepoint_collecting): Likewise.
6996 * linux-low.h: Include tracepoint.h.
6997 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
6998 fast_tpoint_collect_result.
6999 * linux-low.c (handle_tracepoints): Adjust.
7000 (linux_fast_tracepoint_collecting): Change return type to
7001 fast_tpoint_collect_result.
7002 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7003 linux_wait_1, stuck_in_jump_pad_callback,
7004 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7005 proceed_one_lwp): Adjust to type change.
7007 2017-07-10 Yao Qi <yao.qi@linaro.org>
7009 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7011 2017-06-29 Yao Qi <yao.qi@linaro.org>
7013 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7015 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7017 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7019 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7021 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7023 * linux-low.c (linux_create_inferior): Adjust code to access the
7024 environment information via 'gdb_environ' class.
7025 * lynx-low.c (lynx_create_inferior): Likewise.
7026 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7027 (get_environ): Return a pointer to 'our_environ'.
7028 (captured_main): Initialize 'our_environ'.
7029 * server.h (get_environ): Adjust prototype.
7030 * spu-low.c (spu_create_inferior): Adjust code to access the
7031 environment information via 'gdb_environ' class.
7033 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7035 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7036 usage of "register" keyword.
7038 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7040 * configure: Re-generate.
7042 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7044 * configure: Re-generate.
7046 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7048 * Makefile.in (COMPILE.pre): Add "-x c++".
7050 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7052 * fork-child.c: Conditionally include <signal.h>.
7054 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7056 * server.c (handle_general_set): Handle new packet
7057 "QStartupWithShell".
7058 (handle_query): Add "QStartupWithShell" to the list of supported
7060 (gdbserver_usage): Add help text explaining the
7061 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7063 (captured_main): Recognize and act upon the presence of the new
7066 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7067 Pedro Alves <palves@redhat.com>
7069 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7070 * configure: Regenerate.
7071 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7073 (i[34567]86-*-lynxos*): Likewise.
7074 (spu*-*-*): Likewise.
7075 * fork-child.c: New file.
7076 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7078 (linux_ptrace_fun): New function.
7079 (linux_create_inferior): Adjust function prototype to reflect
7080 change on "target.h". Adjust function code to use
7082 (linux_request_interrupt): Delete "signal_pid".
7083 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7084 (lynx_ptrace_fun): New function.
7085 (lynx_create_inferior): Adjust function prototype to reflect
7086 change on "target.h". Adjust function code to use
7088 * nto-low.c (nto_create_inferior): Adjust function prototype and
7089 code to reflect change on "target.h". Update comments.
7090 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7091 "common-terminal.h" and "environ.h".
7092 (terminal_fd): Moved to fork-child.c.
7093 (old_foreground_pgrp): Likewise.
7094 (restore_old_foreground_pgrp): Likewise.
7095 (last_status): Make it global.
7096 (last_ptid): Likewise.
7097 (our_environ): New variable.
7098 (startup_with_shell): Likewise.
7099 (program_name): Likewise.
7100 (program_argv): Rename to...
7101 (program_args): ...this.
7102 (wrapper_argv): New variable.
7103 (start_inferior): Delete function.
7104 (get_exec_wrapper): New function.
7105 (get_exec_file): Likewise.
7106 (get_environ): Likewise.
7107 (prefork_hook): Likewise.
7108 (post_fork_inferior): Likewise.
7109 (postfork_hook): Likewise.
7110 (postfork_child_hook): Likewise.
7111 (handle_v_run): Update code to deal with arguments coming from the
7112 remote host. Update calls from "start_inferior" to
7114 (captured_main): Likewise. Initialize environment variable. Call
7116 * server.h (post_fork_inferior): New prototype.
7117 (get_environ): Likewise.
7118 (last_status): Declare.
7119 (last_ptid): Likewise.
7120 (signal_pid): Likewise.
7121 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7122 (spu_ptrace_fun): New function.
7123 (spu_create_inferior): Adjust function prototype to reflect change
7124 on "target.h". Adjust function code to use "fork_inferior".
7125 * target.c (target_terminal_init): New function.
7126 (target_terminal_inferior): Likewise.
7127 (target_terminal_ours): Likewise.
7128 * target.h: Include <vector>.
7129 (struct target_ops) <create_inferior>: Update prototype.
7130 (create_inferior): Update macro.
7131 * utils.c (gdb_flush_out_err): New function.
7132 * win32-low.c (win32_create_inferior): Adjust function prototype
7133 and code to reflect change on "target.h".
7135 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7137 * inferiors.c (switch_to_thread): New function.
7139 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7141 * Makefile.in (SFILE): Add "common/job-control.c".
7142 (OBS): Add "job-control.o".
7144 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7146 * Makefile: Remove "@host_makefile_frag@".
7148 2017-05-05 Pedro Alves <palves@redhat.com>
7150 * configure: Regenerate.
7152 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7154 * configure: Regenerate.
7156 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7158 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7159 software_single_step change of return type to
7160 std::vector<CORE_ADDR>.
7161 * linux-low.c (install_software_single_step_breakpoints):
7163 * linux-low.h (install_software_single_step_breakpoints):
7166 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7168 * remote-utils.c: Include "gdb_termios.h" instead of
7170 * terminal.h: Delete file.
7172 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7174 * server.c: Include <vector>.
7175 <program_argv, wrapper_argv>: Convert to std::vector.
7176 (start_inferior): Rewrite function to use C++.
7177 (handle_v_run): Likewise. Update code that calculates the argv
7178 based on the vRun packet; use C++.
7179 (captured_main): Likewise.
7181 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7183 * server.c (handle_v_cont): Initialize thread_resume::thread
7186 2017-04-05 Pedro Alves <palves@redhat.com>
7188 * configure: Regenerate.
7190 2017-04-05 Pedro Alves <palves@redhat.com>
7192 * gdbreplay.c (sync_error): Constify.
7193 * linux-x86-low.c (push_opcode): Constify.
7195 2017-04-05 Pedro Alves <palves@redhat.com>
7197 * win32-low.c (get_child_debug_event)
7198 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7199 Report TARGET_WAITKIND_SPURIOUS instead.
7201 2017-04-05 Pedro Alves <palves@redhat.com>
7203 * remote-utils.c (remote_prepare, remote_open): Constify.
7204 * remote-utils.h (remote_prepare, remote_open): Constify.
7205 * server.c (captured_main): Constify 'port' handling.
7207 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7209 * Makefile.in (clean): Clear .deps.
7211 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7213 * .gitignore: Remove generated files, replace with wildcard.
7214 * (clean): Replace removal of generated files with wildcard.
7215 (version.c): Replace with...
7216 (version-generated.c): ...this.
7217 (xml-builtin.c): Replace with...
7218 (xml-builtin-generated.c): ...this.
7219 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7220 (%.c: *regformats*): Replace with...
7221 (%-generated.c: *regformats*): ...this.
7223 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7225 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7226 (xtensa_fill_gregset): Call collect_register_by_name for
7228 (xtensa_store_gregset): Call supply_register_by_name for
7231 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7233 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7234 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7235 (xtensa_store_gregset): Call supply_register for all registers in
7236 a0_regnum..a0_regnum + C0_NREGS range.
7238 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7240 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7241 (ax-ipa.o: ax.c): Remove.
7242 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7243 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7244 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7245 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7246 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7248 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7250 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7251 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7252 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7253 (errors-ipa.o: ../common/errors.c): Remove.
7254 (format-ipa.o: ../common/format.c): Remove.
7255 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7257 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7259 * Makefile.in (%-ipa.o: %.c): New rule.
7260 (tracepoint-ipa.o: tracepoint.c): Remove.
7261 (utils-ipa.o: utils.c): Remove.
7262 (remote-utils-ipa.o: remote-utils.c): Remove.
7263 (regcache-ipa.o: regcache.c): Remove.
7264 (i386-linux-ipa.o: i386-linux.c): Remove.
7265 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7266 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7267 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7268 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7269 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7270 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7271 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7272 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7273 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7274 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7275 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7276 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7277 (aarch64-ipa.o: aarch64.c): Remove.
7278 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7279 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7280 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7281 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7282 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7283 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7284 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7285 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7286 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7287 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7288 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7289 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7290 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7291 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7292 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7293 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7294 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7295 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7296 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7297 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7298 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7299 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7300 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7301 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7302 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7303 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7304 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7305 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7306 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7307 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7308 (tdesc-ipa.o: tdesc.c): Remove.
7309 (x32-linux-ipa.o: x32-linux.c): Remove.
7310 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7311 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7313 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7315 * Makefile.in (%.o: ../arch/%.c): New rule.
7316 (arm.o: ../arch/arm.c): Remove.
7317 (arm-linux.o: ../arch/arm-linux.c): Remove.
7318 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7319 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7321 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7323 * Makefile.in (%.o: ../nat/%.c): New rule.
7324 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7325 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7326 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7327 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7328 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7329 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7330 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7331 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7332 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7333 (linux-personality.o: ../nat/linux-personality.c): Remove.
7334 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7335 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7336 (x86-linux.o: ../nat/x86-linux.c): Remove.
7337 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7338 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7340 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7342 * Makefile.in (%.o: ../common/%.c): New rule.
7343 (signals.o: ../common/signals.c): Remove.
7344 (print-utils.o: ../common/print-utils.c): Remove.
7345 (rsp-low.o: ../common/rsp-low.c): Remove.
7346 (common-utils.o: ../common/common-utils.c): Remove.
7347 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7348 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7349 (vec.o: ../common/vec.c): Remove.
7350 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7351 (xml-utils.o: ../common/xml-utils.c): Remove.
7352 (ptid.o: ../common/ptid.c): Remove.
7353 (buffer.o: ../common/buffer.c): Remove.
7354 (format.o: ../common/format.c): Remove.
7355 (filestuff.o: ../common/filestuff.c): Remove.
7356 (agent.o: ../common/agent.c): Remove.
7357 (errors.o: ../common/errors.c): Remove.
7358 (environ.o: ../common/environ.c): Remove.
7359 (common-debug.o: ../common/common-debug.c): Remove.
7360 (cleanups.o: ../common/cleanups.c): Remove.
7361 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7362 (fileio.o: ../common/fileio.c): Remove.
7363 (common-regcache.o: ../common/common-regcache.c): Remove.
7364 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7365 (new-op.o: ../common/new-op.c): Remove.
7366 (btrace-common.o: ../common/btrace-common.c): Remove.
7368 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7370 * Makefile.in (%.o: ../target/%.c): New rule.
7371 (waitstatus.o: ../target/waitstatus.c): Remove.
7373 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7376 (%.c: ../regformats/%.dat,
7377 (%.c: ../regformats/arm/%.dat,
7378 (%.c: ../regformats/i386/%.dat,
7379 (%.c: ../regformats/rs6000/%.dat): New rules.
7380 (aarch64.c): Remove.
7381 (reg-arm.c): Remove.
7382 (arm-with-iwmmxt.c): Remove.
7383 (arm-with-vfpv2.c): Remove.
7384 (arm-with-vfpv3.c): Remove.
7385 (arm-with-neon.c): Remove.
7386 (reg-bfin.c): Remove.
7387 (reg-cris.c): Remove.
7388 (reg-crisv32.c): Remove.
7390 (i386-linux.c): Remove.
7391 (i386-avx.c): Remove.
7392 (i386-avx-linux.c): Remove.
7393 (i386-avx-avx512.c): Remove.
7394 (i386-avx-avx512-linux.c): Remove.
7395 (i386-mpx.c): Remove.
7396 (i386-mpx-linux.c): Remove.
7397 (i386-avx-mpx-avx512-pku.c): Remove.
7398 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7399 (i386-avx-mpx.c): Remove.
7400 (i386-avx-mpx-linux.c): Remove.
7401 (i386-mmx.c): Remove.
7402 (i386-mmx-linux.c): Remove.
7403 (reg-ia64.c): Remove.
7404 (reg-m32r.c): Remove.
7405 (reg-m68k.c): Remove.
7407 (mips-linux.c): Remove.
7408 (mips-dsp-linux.c): Remove.
7409 (mips64-linux.c): Remove.
7410 (mips64-dsp-linux.c): Remove.
7411 (nios2-linux.c): Remove.
7412 (powerpc-32.c): Remove.
7413 (powerpc-32l.c): Remove.
7414 (powerpc-altivec32l.c): Remove.
7415 (powerpc-cell32l.c): Remove.
7416 (powerpc-vsx32l.c): Remove.
7417 (powerpc-isa205-32l.c): Remove.
7418 (powerpc-isa205-altivec32l.c): Remove.
7419 (powerpc-isa205-vsx32l.c): Remove.
7420 (powerpc-e500l.c): Remove.
7421 (powerpc-64l.c): Remove.
7422 (powerpc-altivec64l.c): Remove.
7423 (powerpc-cell64l.c): Remove.
7424 (powerpc-vsx64l.c): Remove.
7425 (powerpc-isa205-64l.c): Remove.
7426 (powerpc-isa205-altivec64l.c): Remove.
7427 (powerpc-isa205-vsx64l.c): Remove.
7428 (s390-linux32.c): Remove.
7429 (s390-linux32v1.c): Remove.
7430 (s390-linux32v2.c): Remove.
7431 (s390-linux64.c): Remove.
7432 (s390-linux64v1.c): Remove.
7433 (s390-linux64v2.c): Remove.
7434 (s390-te-linux64.c): Remove.
7435 (s390-vx-linux64.c): Remove.
7436 (s390-tevx-linux64.c): Remove.
7437 (s390x-linux64.c): Remove.
7438 (s390x-linux64v1.c): Remove.
7439 (s390x-linux64v2.c): Remove.
7440 (s390x-te-linux64.c): Remove.
7441 (s390x-vx-linux64.c): Remove.
7442 (s390x-tevx-linux64.c): Remove.
7443 (tic6x-c64xp-linux.c): Remove.
7444 (tic6x-c64x-linux.c): Remove.
7445 (tic6x-c62x-linux.c): Remove.
7447 (reg-sparc64.c): Remove.
7448 (reg-spu.c): Remove.
7450 (amd64-linux.c): Remove.
7451 (amd64-avx.c): Remove.
7452 (amd64-avx-linux.c): Remove.
7453 (amd64-avx-avx512.c): Remove.
7454 (amd64-avx-avx512-linux.c): Remove.
7455 (amd64-mpx.c): Remove.
7456 (amd64-mpx-linux.c): Remove.
7457 (amd64-avx-mpx-avx512-pku.c): Remove.
7458 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7459 (amd64-avx-mpx.c): Remove.
7460 (amd64-avx-mpx-linux.c): Remove.
7462 (x32-linux.c): Remove.
7463 (x32-avx.c): Remove.
7464 (x32-avx-linux.c): Remove.
7465 (x32-avx-avx512.c): Remove.
7466 (x32-avx-avx512-linux.c): Remove.
7467 (reg-xtensa.c): Remove.
7468 (reg-tilegx.c): Remove.
7469 (reg-tilegx32.c): Remove.
7471 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7473 * Makefile.in (SFILES): Add "common/environ.c".
7474 (OBJS): Add "common/environ.h".
7476 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7478 * configure.ac: Check if the fs_base and gs_base members of
7479 `struct user_regs_struct' exist.
7480 * config.in: Regenerated.
7481 * configure: Likewise.
7483 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7485 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7487 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7488 (get_next_pcs_syscall_next_pc): Likewise.
7490 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7492 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7493 * nto-x86-low.c: Likewise.
7495 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7497 * Makefile.in: Include disable-implicit-rules.mk.
7499 2016-11-23 Pedro Alves <palves@redhat.com>
7501 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7502 (debug_vprintf): Use std::chrono::steady_clock instead of
7503 gettimeofday. Use '.' instead of ':'.
7504 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7505 (get_timestamp): Use std::chrono::steady_clock instead of
7508 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7510 * Makefile.in: Fix whitespace formatting.
7512 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7514 * Makefile.in (SFILES, OBS): Flatten list and order
7517 2016-11-23 Pedro Alves <palves@redhat.com>
7519 * event-loop.c (handle_file_event): Use warning.
7520 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7521 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7524 2016-11-23 Pedro Alves <palves@redhat.com>
7526 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7528 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7529 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7530 debug_printf and debug_flush for debug output.
7531 * server.c (handle_general_set): Likewise.
7532 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7535 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7537 * Makefile.in (.c.o): Replace rule with ...
7538 (%.o: %.c): ... this one.
7540 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7542 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7543 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7545 * configure.ac: Remove checks for the make program.
7546 * configure: Re-generate.
7548 2016-10-28 Pedro Alves <palves@redhat.com>
7550 * Makefile.in (CXX_DIALECT): Get from configure.
7551 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7552 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7553 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7554 * config.in: Regenerate.
7555 * configure: Regenerate.
7557 2016-10-27 Yao Qi <yao.qi@linaro.org>
7559 * linux-low.c (linux_supports_range_stepping): Return true if
7560 can_software_single_step return true.
7562 2016-10-27 Yao Qi <yao.qi@linaro.org>
7564 * inferiors.c (find_inferior_in_random): New function.
7565 * inferiors.h (find_inferior_in_random): Declare.
7566 * linux-low.c (linux_wait_for_event_filtered): Call
7567 find_inferior_in_random instead of find_inferior.
7569 2016-10-27 Yao Qi <yao.qi@linaro.org>
7571 * linux-low.c (linux_wait_1): If single-step breakpoints are
7572 inserted, remove them.
7574 2016-10-26 Pedro Alves <palves@redhat.com>
7576 * linux-low.c (handle_extended_wait): Link parent/child fork
7578 (linux_wait_1): Unlink them.
7579 (linux_set_resume_request): Ignore resume requests for
7580 already-resumed and unhandled fork child threads.
7581 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7582 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7584 (handle_v_requests) <vCont>: Don't call require_running.
7585 * server.h (in_queued_stop_replies): New declaration.
7587 2016-10-24 Yao Qi <yao.qi@linaro.org>
7590 * linux-aarch64-low.c (append_insns): Cast the return value to
7593 2016-10-10 Yao Qi <yao.qi@linaro.org>
7595 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7597 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7599 * target.c (target_supports_multi_process): New function, moved
7601 * target.h (target_supports_multi_process): ... here. Remove
7604 2016-10-05 Tom Tromey <tom@tromey.com>
7607 * tracepoint.c (handle_tracepoint_bkpts): Check
7608 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7610 2016-10-05 Yao Qi <yao.qi@linaro.org>
7612 * configure.srv: Update the path of arm-*.xml files.
7614 2016-10-05 Terry Guo <terry.guo@arm.com>
7615 Yao Qi <yao.qi@linaro.org>
7617 * Makefile.in: Adjust the path of rules.
7618 * configure.srv: Update the path of xml files.
7619 * regformats/arm-with-iwmmxt.dat: Regenerated.
7620 * regformats/arm-with-neon.dat: Likewise.
7621 * regformats/arm-with-vfpv2.dat: Likewise.
7622 * regformats/arm-with-vfpv3.dat Likewise.
7624 2016-09-30 Yao Qi <yao.qi@linaro.org>
7627 * target.c (target_stop_and_wait): Don't call
7628 target_continue_no_signal, use resume_stop instead.
7630 2016-09-26 Yao Qi <yao.qi@linaro.org>
7632 * linux-low.c (linux_wait_1): Call debug_exit.
7634 2016-09-23 Pedro Alves <palves@redhat.com>
7636 * Makefile.in (SFILES): Add common/new-op.c.
7637 (OBS): Add common/new-op.o.
7638 (new-op.o): New rule.
7640 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7642 * .gitinore: Ignore more files.
7644 2016-09-21 Yao Qi <yao.qi@linaro.org>
7646 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7649 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7651 * server.c (start_inferior): Call target_mourn_inferior instead of
7652 mourn_inferior; pass ptid_t argument to it.
7654 (handle_target_event): Likewise.
7655 * target.c (target_mourn_inferior): New function.
7656 * target.h (mourn_inferior): Delete macro.
7658 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7660 * linux-low.c (lwp_is_stepping): New function.
7662 2016-09-06 Carl Love <cel@us.ibm.com>
7664 * server.c (start_inferior): Fixed comment, requested comment change
7665 didn't get updated correctly. Removed reference to ptrace () call as
7666 it is only true on Linux systems.
7668 2016-09-06 Carl Love <cel@us.ibm.com>
7670 * server.c (start_inferior): Do not call
7671 function target_post_create_inferior () if the
7672 inferior process has already exited.
7674 2016-09-05 Pedro Alves <palves@redhat.com>
7676 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7677 (COMPILE.pre, CC_LD): Use CXX directly.
7678 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7679 * acinclude.m4: Don't include build-with-cxx.m4.
7680 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7681 * configure: Regenerate.
7683 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7686 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7687 call writing data to own_buf.
7689 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7691 * target.c (mywait): Call target_wait instead of
7693 (target_wait): New function.
7695 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7697 * server.c (start_inferior): New variable 'ptid'. Replace calls
7698 to the_target->resume by target_continue{,_no_signal}, depending
7700 * target.c (target_stop_and_wait): Call target_continue_no_signal
7701 instead of the_target->resume.
7702 (target_continue): New function.
7704 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7706 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7708 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7711 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7713 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7714 * linux-arm-low.c (ps_get_thread_area): Likewise.
7715 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7716 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7717 * linux-mips-low.c (ps_get_thread_area): Likewise.
7718 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7719 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7720 * linux-x86-low.c (ps_get_thread_area): Likewise.
7721 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7723 2016-08-19 Pedro Alves <palves@redhat.com>
7725 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7727 2016-08-19 Pedro Alves <palves@redhat.com>
7729 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7730 comment. Use memcpy instead of casting through unsigned long.
7732 2016-08-19 Pedro Alves <palves@redhat.com>
7734 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7735 allocating around 0x80000000.
7737 2016-08-19 Pedro Alves <palves@redhat.com>
7740 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7741 (x32-avx512-linux-ipa.o): New rules.
7742 * configure.ac (x86_64-*-linux*): New x32 check.
7743 * configure.srv (ipa_x32_linux_regobj): New.
7744 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7745 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7747 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7749 * configure: Regenerate.
7751 2016-08-09 Pedro Alves <palves@redhat.com>
7754 * Makefile.in (OBS): Add signals-state-save-restore.o.
7755 (signals-state-save-restore.o): New rule.
7756 * config.in: Regenerate.
7757 * configure: Regenerate.
7758 * linux-low.c: Include "signals-state-save-restore.h".
7759 (linux_create_inferior): Call
7760 restore_original_signals_state.
7761 * server.c: Include "dispositions-save-restore.h".
7762 (captured_main): Call save_original_signals_state.
7764 2016-08-05 Pedro Alves <palves@redhat.com>
7766 * configure: Regenerate.
7768 2016-08-04 Yao Qi <yao.qi@linaro.org>
7770 * linux-low.c (regsets_fetch_inferior_registers): Check
7771 errno is ESRCH or not.
7773 2016-08-02 Yao Qi <yao.qi@linaro.org>
7775 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7776 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7777 (thread_db_load_search): Update.
7778 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7779 td_ta_set_event and td_ta_event_getmsg.
7781 2016-07-26 Pedro Alves <palves@redhat.com>
7784 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7785 of unsigned long for 64-bit registers and use uint32_t instead of
7786 unsigned int for 32-bit registers.
7788 2016-07-26 Pedro Alves <palves@redhat.com>
7790 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7793 2016-07-21 Tom Tromey <tom@tromey.com>
7795 * configure: Rebuild.
7797 2016-07-21 Yao Qi <yao.qi@linaro.org>
7799 * mem-break.c (find_gdb_breakpoint): Cast bp to
7800 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7802 2016-07-21 Yao Qi <yao.qi@linaro.org>
7804 * server.c (handle_v_requests): Support s and S actions
7805 if target_supports_software_single_step return true.
7807 2016-07-21 Yao Qi <yao.qi@linaro.org>
7809 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7810 is resume_step, call maybe_hw_step.
7811 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7813 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7815 (proceed_one_lwp): If resume request is resume_step, install
7816 reinsert breakpoints and call maybe_hw_step.
7818 2016-07-21 Yao Qi <yao.qi@linaro.org>
7820 * linux-low.c (proceed_one_lwp): Declare.
7821 (linux_resume_one_thread): Remove local variable 'step'.
7822 Lift code enqueue signal. Call proceed_one_lwp instead of
7823 linux_resume_one_lwp.
7825 2016-07-21 Yao Qi <yao.qi@linaro.org>
7827 * linux-low.c (linux_resume_one_thread): Call
7828 enqueue_pending_signal.
7830 2016-07-21 Yao Qi <yao.qi@linaro.org>
7832 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7833 * inferiors.c (do_restore_current_thread_cleanup): New function.
7834 (make_cleanup_restore_current_thread): Likewise.
7835 * linux-low.c (install_software_single_step_breakpoints): Call
7836 make_cleanup_restore_current_thread. Switch current_thread to
7839 2016-07-21 Yao Qi <yao.qi@linaro.org>
7841 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7842 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7843 (clone_one_breakpoint): Likewise.
7844 (delete_reinsert_breakpoints): Change parameter to thread.
7846 (has_reinsert_breakpoints): Likewise.
7847 (uninsert_reinsert_breakpoints): Likewise.
7848 (reinsert_reinsert_breakpoints): Likewise.
7849 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7850 (delete_reinsert_breakpoints): Likewise.
7851 (reinsert_reinsert_breakpoints): Likewise.
7852 (uninsert_reinsert_breakpoints): Likewise.
7853 (has_reinsert_breakpoints): Likewise.
7855 2016-07-21 Yao Qi <yao.qi@linaro.org>
7857 * inferiors.c (get_thread_process): Make parameter const.
7858 * inferiors.h (get_thread_process): Update declaration.
7859 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7860 Add new parameters child_thread and parent_thread. Callers
7862 * mem-break.h (clone_all_breakpoints): Update declaration.
7864 2016-07-21 Yao Qi <yao.qi@linaro.org>
7866 * mem-break.c (struct breakpoint) <cond_list>: Remove.
7867 <command_list, handler>: Remove.
7868 (struct gdb_breakpoint): New.
7869 (struct other_breakpoint): New.
7870 (struct reinsert_breakpoint): New.
7871 (is_gdb_breakpoint): New function.
7872 (any_persistent_commands): Update command_list if
7873 is_gdb_breakpoint returns true.
7874 (set_breakpoint): Create breakpoints according to their types.
7875 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
7876 (set_gdb_breakpoint_1): Likewise.
7877 (set_gdb_breakpoint): Likewise.
7878 (clear_breakpoint_conditions): Change parameter type to
7879 'struct gdb_breakpoint *'.
7880 (clear_breakpoint_commands): Likewise.
7881 (clear_breakpoint_conditions_and_commands): Likewise.
7882 (add_condition_to_breakpoint): Likewise.
7883 (add_breakpoint_condition): Likewise.
7884 (add_commands_to_breakpoint): Likewise.
7885 (check_breakpoints): Check other_breakpoint.
7886 (clone_one_breakpoint): Clone breakpopint according to its type.
7887 * mem-break.h (struct gdb_breakpoint): Declare.
7888 (set_gdb_breakpoint): Update declaration.
7889 (clear_breakpoint_conditions_and_commands): Likewise.
7890 (add_breakpoint_condition): Likewise.
7891 (add_breakpoint_commands): Likewise.
7892 * server.c (process_point_options): Change parameter type to
7893 'struct gdb_breakpoint *'.
7895 2016-07-21 Yao Qi <yao.qi@linaro.org>
7897 * mem-break.c (set_breakpoint_at): Rename it to ...
7898 (set_breakpoint_type_at): ... it.
7899 (set_breakpoint_at): Call set_breakpoint_type_at.
7900 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
7901 * mem-break.h (set_breakpoint_at): Update comments.
7903 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
7905 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
7907 (nios2_store_gregset): Likewise.
7909 2016-07-01 Pedro Alves <palves@redhat.com>
7910 Antoine Tremblay <antoine.tremblay@ericsson.com>
7912 * linux-low.c: Change interface to take the target lwp_info
7913 pointer directly and return void. Handle detaching from a zombie
7915 (linux_detach_lwp_callback): New function.
7916 (linux_detach): Detach from the leader thread after detaching from
7919 2016-06-28 Yao Qi <yao.qi@linaro.org>
7921 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
7922 for variable new_offset.
7923 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
7924 (aarch64_ftrace_insn_reloc_cb): Likewise.
7925 (aarch64_ftrace_insn_reloc_tb): Likewise.
7926 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
7927 PRIx64 instead of PRIx32.
7929 2016-06-28 Yao Qi <yao.qi@linaro.org>
7931 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
7932 (the_low_target): Install arm_get_syscall_trapinfo.
7934 2016-06-28 Yao Qi <yao.qi@linaro.org>
7936 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
7938 (the_low_target): Install aarch64_get_syscall_trapinfo.
7940 2016-06-28 Yao Qi <yao.qi@linaro.org>
7942 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
7944 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
7945 Remove parameter sysno.
7946 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
7949 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
7951 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
7952 (s390_emit_ne_goto): Likewise.
7953 (s390_emit_lt_goto): Likewise.
7954 (s390_emit_le_goto): Likewise.
7955 (s390_emit_gt_goto): Likewise.
7956 (s390_emit_ge_goto): Likewise.
7957 (s390x_emit_eq_goto): Likewise.
7958 (s390x_emit_ne_goto): Likewise.
7959 (s390x_emit_lt_goto): Likewise.
7960 (s390x_emit_le_goto): Likewise.
7961 (s390x_emit_gt_goto): Likewise.
7962 (s390x_emit_ge_goto): Likewise.
7963 (s390_emit_ops_impl): Mark variable static.
7964 (s390x_emit_ops): Likewise.
7966 2016-06-17 Yao Qi <yao.qi@linaro.org>
7968 * linux-low.c (handle_extended_wait): Call
7969 uninsert_reinsert_breakpoints for the parent process. Remove
7970 reinsert breakpoints from the child process. Reinsert them to
7971 the parent process when vfork is done.
7972 * mem-break.c (uninsert_reinsert_breakpoints): New function.
7973 (reinsert_reinsert_breakpoints): New function.
7974 * mem-break.h (uninsert_reinsert_breakpoints): Declare
7975 (reinsert_reinsert_breakpoints): Declare.
7977 2016-06-17 Yao Qi <yao.qi@linaro.org>
7979 * linux-low.c (handle_extended_wait): If the parent is doing
7980 step-over, remove the reinsert breakpoints from the forked child.
7982 2016-06-17 Yao Qi <yao.qi@linaro.org>
7984 * linux-low.c (unsuspend_all_lwps): Declare.
7985 (linux_low_filter_event): If thread exited, call finish_step_over.
7986 If step-over is finished, unsuspend other threads.
7988 2016-06-17 Yao Qi <yao.qi@linaro.org>
7990 * linux-low.c (linux_resume_one_lwp_throw): Assert
7991 has_reinsert_breakpoints returns false.
7992 * mem-break.c (delete_disabled_breakpoints): Assert
7993 bp type isn't reinsert_breakpoint.
7995 2016-06-17 Yao Qi <yao.qi@linaro.org>
7997 * linux-low.c (maybe_hw_step): New function.
7998 (linux_resume_one_lwp_throw): Call maybe_hw_step.
7999 (finish_step_over): Switch current_thread to lwp temporarily,
8000 and assert has_reinsert_breakpoints returns true.
8001 (proceed_one_lwp): Call maybe_hw_step.
8002 * mem-break.c (has_reinsert_breakpoints): New function.
8003 * mem-break.h (has_reinsert_breakpoints): Declare.
8005 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8007 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8009 2016-05-17 Yao Qi <yao.qi@linaro.org>
8011 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8012 instead of find_inferior.
8014 2016-05-05 Yao Qi <yao.qi@linaro.org>
8016 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8017 Initialize res to zero.
8019 2016-05-05 Yao Qi <yao.qi@linaro.org>
8021 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8024 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8026 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8027 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8028 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8030 2016-04-28 Par Olsson <par.olsson@windriver.com>
8031 Simon Marchi <simon.marchi@ericsson.com>
8033 * tracepoint.c (write_inferior_int8): New function.
8034 (cmd_qtenable_disable): Write enable flag using
8035 write_inferior_int8.
8037 2016-04-25 Yao Qi <yao.qi@linaro.org>
8039 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8040 (need_step_over_p): Return zero if the LWP has pending signals
8041 can be delivered on software single step target.
8043 2016-04-25 Yao Qi <yao.qi@linaro.org>
8045 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8046 return instead of error.
8048 2016-04-22 Yao Qi <yao.qi@linaro.org>
8050 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8053 2016-04-22 Yao Qi <yao.qi@linaro.org>
8055 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8056 signal when stepping over breakpoint with software single
8059 2016-04-21 Pedro Alves <palves@redhat.com>
8061 * linux-s390-low.c (s390_collect_ptrace_register)
8062 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8064 (s390_check_regset): Use void * instead of gdb_byte *.
8066 2016-04-20 Pedro Alves <palves@redhat.com>
8068 * configure: Renegerate.
8070 2016-04-20 Yao Qi <yao.qi@linaro.org>
8072 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8073 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8075 (arm_store_gregset): Likewise.
8077 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8079 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8080 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8081 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8082 (amd64-avx-mpx-linux.c): New rules.
8083 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8084 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8085 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8086 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8087 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8088 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8089 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8090 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8091 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8092 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8093 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8094 * linux-x86-low.c (x86_linux_read_description): Add case for
8095 X86_XSTATE_AVX_MPX_MASK.
8096 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8097 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8098 init_registers_i386_avx_mpx_linux.
8099 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8100 (initialize_low_tracepoint): Call
8101 init_registers_i386_avx_mpx_linux.
8102 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8103 (initialize_low_tracepoint): Call
8104 init_registers_amd64_avx_mpx_linux.
8105 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8106 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8107 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8110 2016-04-18 Pedro Alves <palves@redhat.com>
8112 * configure: Regenerate.
8114 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8116 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8117 (aarch64_emit_sub): Likewise.
8119 2016-04-12 Pedro Alves <palves@redhat.com>
8121 * utils.c (prepare_to_throw_exception): Delete.
8123 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8125 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8127 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8129 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8131 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8133 * linux-aarch64-ipa.c: Add <elf.h> include.
8134 * linux-ppc-ipa.c: Add <elf.h> include.
8135 * linux-s390-ipa.c: Add <elf.h> include.
8137 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8139 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8140 (get_raw_reg_ptr): Likewise.
8141 (get_trace_state_variable_value_ptr): Likewise.
8142 (set_trace_state_variable_value_ptr): Likewise.
8143 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8146 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8147 Marcin Kościelnicki <koriakin@0x04.net>
8150 * linux-ppc-low.c (emit_insns): New function.
8151 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8152 (ppc_emit_prologue): New function.
8153 (ppc_emit_epilogue): New function.
8154 (ppc_emit_add): New function.
8155 (ppc_emit_sub): New function.
8156 (ppc_emit_mul): New function.
8157 (ppc_emit_lsh): New function.
8158 (ppc_emit_rsh_signed): New function.
8159 (ppc_emit_rsh_unsigned): New function.
8160 (ppc_emit_ext): New function.
8161 (ppc_emit_zero_ext): New function.
8162 (ppc_emit_log_not): New function.
8163 (ppc_emit_bit_and): New function.
8164 (ppc_emit_bit_or): New function.
8165 (ppc_emit_bit_xor): New function.
8166 (ppc_emit_bit_not): New function.
8167 (ppc_emit_equal): New function.
8168 (ppc_emit_less_signed): New function.
8169 (ppc_emit_less_unsigned): New function.
8170 (ppc_emit_ref): New function.
8171 (ppc_emit_const): New function.
8172 (ppc_emit_reg): New function.
8173 (ppc_emit_pop): New function.
8174 (ppc_emit_stack_flush): New function.
8175 (ppc_emit_swap): New function.
8176 (ppc_emit_stack_adjust): New function.
8177 (ppc_emit_call): New function.
8178 (ppc_emit_int_call_1): New function.
8179 (ppc_emit_void_call_2): New function.
8180 (ppc_emit_if_goto): New function.
8181 (ppc_emit_goto): New function.
8182 (ppc_emit_eq_goto): New function.
8183 (ppc_emit_ne_goto): New function.
8184 (ppc_emit_lt_goto): New function.
8185 (ppc_emit_le_goto): New function.
8186 (ppc_emit_gt_goto): New function.
8187 (ppc_emit_ge_goto): New function.
8188 (ppc_write_goto_address): New function.
8189 (ppc_emit_ops_impl): New static variable.
8190 (ppc64v1_emit_prologue): New function.
8191 (ppc64v2_emit_prologue): New function.
8192 (ppc64_emit_epilogue): New function.
8193 (ppc64_emit_add): New function.
8194 (ppc64_emit_sub): New function.
8195 (ppc64_emit_mul): New function.
8196 (ppc64_emit_lsh): New function.
8197 (ppc64_emit_rsh_signed): New function.
8198 (ppc64_emit_rsh_unsigned): New function.
8199 (ppc64_emit_ext): New function.
8200 (ppc64_emit_zero_ext): New function.
8201 (ppc64_emit_log_not): New function.
8202 (ppc64_emit_bit_and): New function.
8203 (ppc64_emit_bit_or): New function.
8204 (ppc64_emit_bit_xor): New function.
8205 (ppc64_emit_bit_not): New function.
8206 (ppc64_emit_equal): New function.
8207 (ppc64_emit_less_signed): New function.
8208 (ppc64_emit_less_unsigned): New function.
8209 (ppc64_emit_ref): New function.
8210 (ppc64_emit_const): New function.
8211 (ppc64v1_emit_reg): New function.
8212 (ppc64v2_emit_reg): New function.
8213 (ppc64_emit_pop): New function.
8214 (ppc64_emit_stack_flush): New function.
8215 (ppc64_emit_swap): New function.
8216 (ppc64v1_emit_call): New function.
8217 (ppc64v2_emit_call): New function.
8218 (ppc64v1_emit_int_call_1): New function.
8219 (ppc64v2_emit_int_call_1): New function.
8220 (ppc64v1_emit_void_call_2): New function.
8221 (ppc64v2_emit_void_call_2): New function.
8222 (ppc64_emit_if_goto): New function.
8223 (ppc64_emit_eq_goto): New function.
8224 (ppc64_emit_ne_goto): New function.
8225 (ppc64_emit_lt_goto): New function.
8226 (ppc64_emit_le_goto): New function.
8227 (ppc64_emit_gt_goto): New function.
8228 (ppc64_emit_ge_goto): New function.
8229 (ppc64v1_emit_ops_impl): New static variable.
8230 (ppc64v2_emit_ops_impl): New static variable.
8231 (ppc_emit_ops): New function.
8232 (linux_low_target): Wire in ppc_emit_ops.
8234 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8235 Marcin Kościelnicki <koriakin@0x04.net>
8238 * Makefile.in: Add powerpc-*-ipa.o
8239 * configure.srv: Add ipa_obj for powerpc*-linux.
8240 * linux-ppc-ipa.c: New file.
8241 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8243 (PPC_FIELD): New macro.
8244 (PPC_SEXT): New macro.
8245 (PPC_OP6): New macro.
8246 (PPC_BO): New macro.
8247 (PPC_LI): New macro.
8248 (PPC_BD): New macro.
8249 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8250 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8251 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8252 (ppc_get_thread_area): New function.
8253 (is_elfv2_inferior): New function.
8254 (gen_ds_form): New function.
8255 (GEN_STD): New macro.
8256 (GEN_STDU): New macro.
8257 (GEN_LD): New macro.
8258 (GEN_LDU): New macro.
8259 (gen_d_form): New function.
8260 (GEN_ADDI): New macro.
8261 (GEN_ADDIS): New macro.
8262 (GEN_LI): New macro.
8263 (GEN_LIS): New macro.
8264 (GEN_ORI): New macro.
8265 (GEN_ORIS): New macro.
8266 (GEN_LWZ): New macro.
8267 (GEN_STW): New macro.
8268 (GEN_STWU): New macro.
8269 (gen_xfx_form): New function.
8270 (GEN_MFSPR): New macro.
8271 (GEN_MTSPR): New macro.
8272 (GEN_MFCR): New macro.
8273 (GEN_MTCR): New macro.
8274 (GEN_SYNC): New macro.
8275 (GEN_LWSYNC): New macro.
8276 (gen_x_form): New function.
8277 (GEN_OR): New macro.
8278 (GEN_MR): New macro.
8279 (GEN_LWARX): New macro.
8280 (GEN_STWCX): New macro.
8281 (GEN_CMPW): New macro.
8282 (gen_md_form): New function.
8283 (GEN_RLDICL): New macro.
8284 (GEN_RLDICR): New macro.
8285 (gen_i_form): New function.
8287 (GEN_BL): New macro.
8288 (gen_b_form): New function.
8289 (GEN_BNE): New macro.
8290 (GEN_LOAD): New macro.
8291 (GEN_STORE): New macro.
8292 (gen_limm): New function.
8293 (gen_atomic_xchg): New function.
8294 (gen_call): New function.
8295 (ppc_relocate_instruction): New function.
8296 (ppc_install_fast_tracepoint_jump_pad): New function.
8297 (ppc_get_min_fast_tracepoint_insn_len): New function.
8298 (ppc_get_ipa_tdesc_idx): New function.
8299 (the_low_target): Wire in the new functions.
8300 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8302 * linux-ppc-tdesc.h: New file.
8304 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8306 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8307 (alloc_jump_pad_buffer): New function.
8308 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8309 (alloc_jump_pad_buffer): New function.
8310 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8311 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8312 (alloc_jump_pad_buffer): New function.
8313 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8314 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8315 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8316 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8318 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8320 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8321 * linux-amd64-ipa.c: Likewise.
8322 * linux-i386-ipa.c: Likewise.
8323 * linux-s390-ipa.c: Likewise.
8324 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8325 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8326 set_trace_state_variable_value_ptr.
8327 (struct ipa_sym_addresses): Likewise.
8328 (symbol_list): Likewise.
8329 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8330 accessing gdb_collect directly.
8331 (gdb_collect_ptr_type): New typedef.
8332 (get_raw_reg_ptr_type): New typedef.
8333 (get_trace_state_variable_value_ptr_type): New typedef.
8334 (set_trace_state_variable_value_ptr_type): New typedef.
8335 (gdb_collect_ptr): New global.
8336 (get_raw_reg_ptr): New global.
8337 (get_trace_state_variable_value_ptr): New global.
8338 (set_trace_state_variable_value_ptr): New global.
8339 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8340 accessing get_raw_reg directly.
8341 (get_get_tsv_func_addr): Likewise for
8342 get_trace_state_variable_value_ptr.
8343 (get_set_tsv_func_addr): Likewise for
8344 set_trace_state_variable_value_ptr.
8345 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8347 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8349 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8351 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8353 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8355 (relocate_instruction): Remove own_buf.
8356 * server.c (own_buf): Make global.
8357 (handle_v_requests): Make global.
8358 * server.h (own_buf): New declaration.
8359 (handle_v_requests): New prototype.
8361 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8364 * linux-s390-low.c (add_insns): New function.
8365 (s390_emit_prologue): New function.
8366 (s390_emit_epilogue): New function.
8367 (s390_emit_add): New function.
8368 (s390_emit_sub): New function.
8369 (s390_emit_mul): New function.
8370 (s390_emit_lsh): New function.
8371 (s390_emit_rsh_signed): New function.
8372 (s390_emit_rsh_unsigned): New function.
8373 (s390_emit_ext): New function.
8374 (s390_emit_log_not): New function.
8375 (s390_emit_bit_and): New function.
8376 (s390_emit_bit_or): New function.
8377 (s390_emit_bit_xor): New function.
8378 (s390_emit_bit_not): New function.
8379 (s390_emit_equal): New function.
8380 (s390_emit_less_signed): New function.
8381 (s390_emit_less_unsigned): New function.
8382 (s390_emit_ref): New function.
8383 (s390_emit_if_goto): New function.
8384 (s390_emit_goto): New function.
8385 (s390_write_goto_address): New function.
8386 (s390_emit_litpool): New function.
8387 (s390_emit_const): New function.
8388 (s390_emit_call): New function.
8389 (s390_emit_reg): New function.
8390 (s390_emit_pop): New function.
8391 (s390_emit_stack_flush): New function.
8392 (s390_emit_zero_ext): New function.
8393 (s390_emit_swap): New function.
8394 (s390_emit_stack_adjust): New function.
8395 (s390_emit_set_r2): New function.
8396 (s390_emit_int_call_1): New function.
8397 (s390_emit_void_call_2): New function.
8398 (s390_emit_eq_goto): New function.
8399 (s390_emit_ne_goto): New function.
8400 (s390_emit_lt_goto): New function.
8401 (s390_emit_le_goto): New function.
8402 (s390_emit_gt_goto): New function.
8403 (s390_emit_ge_goto): New function.
8404 (s390x_emit_prologue): New function.
8405 (s390x_emit_epilogue): New function.
8406 (s390x_emit_add): New function.
8407 (s390x_emit_sub): New function.
8408 (s390x_emit_mul): New function.
8409 (s390x_emit_lsh): New function.
8410 (s390x_emit_rsh_signed): New function.
8411 (s390x_emit_rsh_unsigned): New function.
8412 (s390x_emit_ext): New function.
8413 (s390x_emit_log_not): New function.
8414 (s390x_emit_bit_and): New function.
8415 (s390x_emit_bit_or): New function.
8416 (s390x_emit_bit_xor): New function.
8417 (s390x_emit_bit_not): New function.
8418 (s390x_emit_equal): New function.
8419 (s390x_emit_less_signed): New function.
8420 (s390x_emit_less_unsigned): New function.
8421 (s390x_emit_ref): New function.
8422 (s390x_emit_if_goto): New function.
8423 (s390x_emit_const): New function.
8424 (s390x_emit_call): New function.
8425 (s390x_emit_reg): New function.
8426 (s390x_emit_pop): New function.
8427 (s390x_emit_stack_flush): New function.
8428 (s390x_emit_zero_ext): New function.
8429 (s390x_emit_swap): New function.
8430 (s390x_emit_stack_adjust): New function.
8431 (s390x_emit_int_call_1): New function.
8432 (s390x_emit_void_call_2): New function.
8433 (s390x_emit_eq_goto): New function.
8434 (s390x_emit_ne_goto): New function.
8435 (s390x_emit_lt_goto): New function.
8436 (s390x_emit_le_goto): New function.
8437 (s390x_emit_gt_goto): New function.
8438 (s390x_emit_ge_goto): New function.
8439 (s390_emit_ops): New function.
8440 (struct linux_target_ops): Fill in emit_ops hook.
8442 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8445 * Makefile.in: Add s390 IPA files.
8446 * configure.srv: Build IPA for s390.
8447 * linux-s390-ipa.c: New file.
8448 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8449 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8450 (tdesc_s390_linux32): Likewise.
8451 (init_registers_s390_linux32v1): Likewise.
8452 (tdesc_s390_linux32v1): Likewise.
8453 (init_registers_s390_linux32v2): Likewise.
8454 (tdesc_s390_linux32v2): Likewise.
8455 (init_registers_s390_linux64): Likewise.
8456 (tdesc_s390_linux64): Likewise.
8457 (init_registers_s390_linux64v1): Likewise.
8458 (tdesc_s390_linux64v1): Likewise.
8459 (init_registers_s390_linux64v2): Likewise.
8460 (tdesc_s390_linux64v2): Likewise.
8461 (init_registers_s390_te_linux64): Likewise.
8462 (tdesc_s390_te_linux64): Likewise.
8463 (init_registers_s390_vx_linux64): Likewise.
8464 (tdesc_s390_vx_linux64): Likewise.
8465 (init_registers_s390_tevx_linux64): Likewise.
8466 (tdesc_s390_tevx_linux64): Likewise.
8467 (init_registers_s390x_linux64): Likewise.
8468 (tdesc_s390x_linux64): Likewise.
8469 (init_registers_s390x_linux64v1): Likewise.
8470 (tdesc_s390x_linux64v1): Likewise.
8471 (init_registers_s390x_linux64v2): Likewise.
8472 (tdesc_s390x_linux64v2): Likewise.
8473 (init_registers_s390x_te_linux64): Likewise.
8474 (tdesc_s390x_te_linux64): Likewise.
8475 (init_registers_s390x_vx_linux64): Likewise.
8476 (tdesc_s390x_vx_linux64): Likewise.
8477 (init_registers_s390x_tevx_linux64): Likewise.
8478 (tdesc_s390x_tevx_linux64): Likewise.
8479 (have_hwcap_s390_vx): New static variable.
8480 (s390_arch_setup): Fill have_hwcap_s390_vx.
8481 (s390_get_thread_area): New function.
8482 (s390_ft_entry_gpr_esa): New const.
8483 (s390_ft_entry_gpr_zarch): New const.
8484 (s390_ft_entry_misc): New const.
8485 (s390_ft_entry_fr): New const.
8486 (s390_ft_entry_vr): New const.
8487 (s390_ft_main_31): New const.
8488 (s390_ft_main_64): New const.
8489 (s390_ft_exit_fr): New const.
8490 (s390_ft_exit_vr): New const.
8491 (s390_ft_exit_misc): New const.
8492 (s390_ft_exit_gpr_esa): New const.
8493 (s390_ft_exit_gpr_zarch): New const.
8494 (append_insns): New function.
8495 (s390_relocate_instruction): New function.
8496 (s390_install_fast_tracepoint_jump_pad): New function.
8497 (s390_get_min_fast_tracepoint_insn_len): New function.
8498 (s390_get_ipa_tdesc_idx): New function.
8499 (struct linux_target_ops): Wire in the above functions.
8500 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8501 * linux-s390-tdesc.h: New file.
8503 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8505 * linux-s390-low.c (s390_supports_tracepoints): New function.
8506 (struct linux_target_ops): Fill supports_tracepoints hook.
8508 2016-03-18 Yao Qi <yao.qi@linaro.org>
8510 * linux-low.c (lwp_signal_can_be_delivered): New function.
8511 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8513 2016-03-18 Yao Qi <yao.qi@linaro.org>
8515 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8516 0 if signal is enqueued. Remove 'signal' from one debugging
8517 message. Move one debugging message to some lines below.
8518 Remove code setting 'signal' to 0.
8520 2016-03-18 Yao Qi <yao.qi@linaro.org>
8522 * linux-low.c (linux_low_filter_event): Remove redundant
8523 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8525 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8527 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8528 (struct linux_target_ops): Wire in the above.
8530 2016-03-03 Yao Qi <yao.qi@linaro.org>
8532 * linux-low.c: Update comments to start_step_over.
8534 2016-03-03 Yao Qi <yao.qi@linaro.org>
8537 * linux-low.c (handle_extended_wait): Set child suspended
8538 if event_lwp->bp_reinsert isn't zero.
8540 2016-03-02 Yao Qi <yao.qi@linaro.org>
8542 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8543 enqueue_pending_signal.
8545 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8547 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8550 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8552 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8553 (s390_regmap_3264) [!__s390x__]: New global.
8554 (s390_collect_ptrace_register): Skip map entries containing -1.
8555 (s390_supply_ptrace_register): Ditto.
8556 (s390_fill_gprs_high): New function.
8557 (s390_store_gprs_high): New function.
8558 (s390_regsets): Add NT_S390_HIGH_GPRS.
8559 (s390_get_hwcap): Enable on 31-bit.
8560 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8561 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8562 Detect NT_S390_HIGH_GPRS.
8563 (s390_usrregs_info_3264): Enable on 31-bit.
8564 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8565 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8567 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8570 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8571 * configure.srv: Ditto.
8572 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8573 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8574 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8575 (init_registers_amd64_linux): Remove prototype.
8576 (tdesc_amd64_linux): Remove declaration.
8577 (get_ipa_tdesc): New function.
8578 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8579 initialize remaining tdescs.
8580 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8581 (init_registers_i386_linux): Remove prototype.
8582 (tdesc_i386_linux): Remove declaration.
8583 (get_ipa_tdesc): New function.
8584 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8585 initialize remaining tdescs.
8586 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8587 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8588 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8589 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8590 (x86_get_ipa_tdesc_idx): New function.
8591 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8592 * linux-x86-tdesc.h: New file.
8593 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8594 (target_get_ipa_tdesc_idx): New macro.
8595 * tracepoint.c (ipa_tdesc_idx): New macro.
8596 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8597 (symbol_list): Add ipa_tdesc_idx.
8598 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8599 (ipa_tdesc): Remove.
8600 (ipa_tdesc_idx): New variable.
8601 (get_context_regcache): Use get_ipa_tdesc.
8602 (gdb_collect): Ditto.
8604 * tracepoint.h (get_ipa_tdesc): New prototype.
8605 (ipa_tdesc): Remove.
8607 2016-02-24 Pedro Alves <palves@redhat.com>
8609 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8610 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8611 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8612 Factor out common code between the USE_SIGTRAP_SIGINFO and
8613 !USE_SIGTRAP_SIGINFO blocks.
8614 (linux_low_filter_event): Call save_stop_reason instead of
8615 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8617 (linux_wait_1): Update comments.
8619 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8621 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8622 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8623 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8624 ppc_insert_point, ppc_remove_point.
8626 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8628 * linux-s390-low.c (s390_supports_z_point_type): New function.
8629 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8631 2016-02-16 Yao Qi <yao.qi@linaro.org>
8633 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8634 PC. Get pc from regcache_read_pc.
8636 2016-02-12 Yao Qi <yao.qi@linaro.org>
8638 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8639 or linux_get_pc_32bit.
8640 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8642 2016-02-12 Yao Qi <yao.qi@linaro.org>
8644 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8645 arm_linux_get_next_pcs_fixup.
8647 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8649 * tracepoint.c (x_tracepoint_action_download): Change
8650 write_inferior_data_ptr to write_inferior_data_pointer.
8651 (cmd_qtstart): Likewise.
8652 (write_inferior_data_ptr): Remove.
8653 (download_agent_expr): Change write_inferior_data_ptr to
8654 write_inferior_data_pointer.
8655 (download_tracepoint_1): Likewise.
8656 (download_tracepoint): Likewise.
8657 (download_trace_state_variables): Likewise.
8659 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8660 Marcin Kościelnicki <koriakin@0x04.net>
8662 * tracepoint.c (struct tracepoint_action_ops): Remove.
8663 (struct tracepoint_action): Remove ops.
8664 (m_tracepoint_action_download, r_tracepoint_action_download)
8665 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8666 size and offset accordingly.
8667 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8668 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8669 (tracepoint_action_send, tracepoint_action_download): New functions.
8670 Helpers for trace action handlers.
8671 (add_tracepoint_action): Remove setup actions ops.
8672 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8674 2016-02-10 Yao Qi <yao.qi@linaro.org>
8676 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8678 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8680 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8682 * configure: Regenerate.
8684 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8686 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8687 void * to gdb_byte *.
8688 * linux-low.c (siginfo_fixup): Likewise.
8689 (linux_xfer_siginfo): Likewise.
8690 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8692 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8694 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8696 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8698 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8700 * linux-x86-low.c [__x86_64__]: Include
8701 "nat/amd64-linux-siginfo.h".
8702 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8703 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8704 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8705 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8706 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8707 (cpt_si_fd, si_timerid, si_overrun): Move from
8708 nat/amd64-linux-siginfo.c.
8709 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8711 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8713 * server.c (skip_to_semicolon): Remove.
8714 (process_point_options): Use strchrnul instead of
8717 2016-01-26 Yao Qi <yao.qi@linaro.org>
8719 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8720 * linux-low.c (install_software_single_step_breakpoints): Don't
8721 call regcache_read_pc.
8722 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8725 2016-01-26 Yao Qi <yao.qi@linaro.org>
8727 * linux-low.c (install_software_single_step_breakpoints): Call
8728 regcache_read_pc instead of get_pc.
8730 2016-01-26 Yao Qi <yao.qi@linaro.org>
8732 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8733 (unblock_async_io): Rename to ...
8734 (block_unblock_async_io): ... it. New function.
8735 (enable_async_io): Don't install SIGIO handler. Unblock it
8737 (disable_async_io): Don't ignore SIGIO. Block it instead.
8738 (initialize_async_io): Install SIGIO handler. Don't call
8741 2016-01-26 Yao Qi <yao.qi@linaro.org>
8743 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8744 first character is '\003', call *the_target->request_interrupt.
8746 2016-01-25 Yao Qi <yao.qi@linaro.org>
8748 * remote-utils.c (new_thread_notify): Remove.
8749 (dead_thread_notify): Likewise.
8750 * remote-utils.h (new_thread_notify): Remove declaration.
8751 (dead_thread_notify): Likewise.
8753 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8755 * gdb.trace/pending.exp: Fix expected message on continue.
8757 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8759 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8760 it works properly on big-endian machines where sizeof (CORE_ADDR)
8763 2016-01-21 Pedro Alves <palves@redhat.com>
8765 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8766 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8767 * configure: Regenerate.
8769 2016-01-21 Yao Qi <yao.qi@linaro.org>
8771 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8772 is_thumb and set it according to CPSR saved on the stack.
8773 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8774 arm_sigreturn_next_pc.
8776 2016-01-18 Yao Qi <yao.qi@linaro.org>
8778 * linux-low.c (linux_set_pc_64bit): New function.
8779 (linux_get_pc_64bit): New function.
8780 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8782 * linux-sparc-low.c (debug_threads): Remove declaration.
8783 (sparc_get_pc): Remove.
8784 (the_low_target): Use linux_get_pc_64bit instead of
8786 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8787 (the_low_target): Use linux_get_pc_64bit and
8790 2016-01-18 Yao Qi <yao.qi@linaro.org>
8792 * linux-arm-low.c (debug_threads): Remove declaration.
8793 (arm_get_pc, arm_set_pc): Remove.
8794 (the_low_target): Use linux_get_pc_32bit and
8796 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8797 (the_low_target): Use linux_get_pc_32bit and
8799 * linux-cris-low.c (debug_threads): Remove declaration.
8800 (cris_get_pc, cris_set_pc,): Remove.
8801 (the_low_target): Use linux_get_pc_32bit and
8803 * linux-crisv32-low.c (debug_threads): Remove declaration.
8804 (cris_get_pc, cris_set_pc): Remove.
8805 (the_low_target): Use linux_get_pc_32bit and
8807 * linux-low.c: Include inttypes.h.
8808 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8809 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8810 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8811 (the_low_target): Use linux_get_pc_32bit and
8813 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8814 (the_low_target): Use linux_get_pc_32bit and
8816 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8817 (the_low_target): Use linux_get_pc_32bit and
8819 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8820 (the_low_target): Use linux_get_pc_32bit and
8822 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8823 (the_low_target): Use linux_get_pc_32bit and
8826 2016-01-18 Gary Benson <gbenson@redhat.com>
8828 * configure.ac (AC_FUNC_FORK): New check.
8829 * config.in: Regenerate.
8830 * configure: Likewise.
8832 2016-01-14 Yao Qi <yao.qi@linaro.org>
8834 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8835 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8836 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8837 arm_get_next_pcs_ctor.
8839 2016-01-12 Josh Stone <jistone@redhat.com>
8840 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8842 * inferiors.h: Include "gdb_vecs.h".
8843 (struct process_info): Add syscalls_to_catch.
8844 * inferiors.c (remove_process): Free syscalls_to_catch.
8845 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8846 syscall_return stops.
8847 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8848 * server.c (handle_general_set): Handle QCatchSyscalls.
8849 (handle_query): Report support for QCatchSyscalls.
8850 * target.h (struct target_ops): Add supports_catch_syscall.
8851 (target_supports_catch_syscall): New macro.
8852 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8853 (struct lwp_info): Add syscall_state.
8854 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8855 Maintain syscall_state and syscalls_to_catch across exec.
8856 (get_syscall_trapinfo): New function, proxy to the_low_target.
8857 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8858 (linux_low_filter_event): Toggle syscall_state entry/return for
8859 syscall traps, and set it ignored for all others.
8860 (gdb_catching_syscalls_p): New function.
8861 (gdb_catch_this_syscall_p): New function.
8862 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8863 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
8864 (linux_supports_catch_syscall): New function.
8865 (linux_target_ops): Install it.
8866 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
8867 (the_low_target): Install it.
8869 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8871 * acinclude.m4: Include new ../warning.m4 file.
8872 * configure: Regenerated.
8873 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
8875 2016-01-12 Mike Frysinger <vapier@gentoo.org>
8877 * ax.c (is_goto_target): Mark static.
8878 * linux-low.c (register_addr): Likewise.
8879 (linux_fetch_registers, linux_store_registers): Likewise.
8880 * mem-break.c (any_persistent_commands): Fix old prototype.
8881 (add_commands_to_breakpoint): Mark static.
8882 * regcache.c (find_register_by_name): Delete unused func.
8883 * remote-utils.c (hex_or_minus_one): Mark static.
8884 * server.c (monitor_show_help): Mark static.
8885 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
8886 handle_v_requests): Likewise.
8888 2016-01-12 Pedro Alves <palves@redhat.com>
8890 Remove use of the registered trademark symbol throughout.
8892 2016-01-08 Yao Qi <yao.qi@linaro.org>
8894 * remote-utils.c (getpkt): If c is '\003', call target hook
8897 2016-01-06 Yao Qi <yao.qi@linaro.org>
8899 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
8900 linux-aarch32-low.c.
8901 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8902 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8903 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8904 (thumb2_breakpoint): Declare.
8905 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
8906 linux-aarch32-low.h.
8907 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8908 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
8909 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
8911 2016-01-01 Joel Brobecker <brobecker@adacore.com>
8913 * gdbreplay.c (gdbreplay_version): Change copyright year in
8915 * server.c (gdbserver_version): Likewise.
8917 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
8919 * server.c (crc32_table): Delete.
8920 (crc32): Use libiberty's xcrc32 function.
8922 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8924 * lynx-low.c (lynx_delete_thread_callback): New function.
8925 (lynx_mourn): Properly delete our process and all of its
8926 threads. Remove call to clear_inferiors.
8928 2015-12-22 Joel Brobecker <brobecker@adacore.com>
8930 * target.c (thread_search_callback): Add check that
8931 the thread_stopped target callback is not NULL before
8934 2015-12-21 Yao Qi <yao.qi@linaro.org>
8936 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
8939 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8941 * server.c (handle_query): Call target_supports_software_single_step.
8943 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8945 * linux-low.c (single_step): New function.
8946 (linux_resume_one_lwp_throw): Call single_step.
8947 (start_step_over): Likewise.
8949 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8951 * Makefile.in (SFILES): Append arch/arm-linux.c,
8952 arch/arm-get-next-pcs.c.
8953 (arm-linux.o): New rule.
8954 (arm-get-next-pcs.o): New rule.
8955 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
8957 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
8958 to linux-aarch32-low.c.
8959 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8960 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8961 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8962 (thumb2_breakpoint_len): Likewise.
8963 (arm_is_thumb_mode): Make non-static.
8964 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
8965 from linux-aarch32-low.c.
8966 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
8967 (arm_breakpoint_len, thumb_breakpoint): Likewise.
8968 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
8969 (thumb2_breakpoint_len): Likewise.
8970 (arm_is_thumb_mode): New declaration.
8971 * linux-arm-low.c: Include arch/arm-linux.h
8972 aarch/arm-get-next-pcs.h, sys/syscall.h.
8973 (get_next_pcs_ops): New struct.
8974 (get_next_pcs_addr_bits_remove): New function.
8975 (get_next_pcs_is_thumb): New function.
8976 (get_next_pcs_read_memory_unsigned_integer): Likewise.
8977 (arm_sigreturn_next_pc): Likewise.
8978 (get_next_pcs_syscall_next_pc): Likewise.
8979 (arm_gdbserver_get_next_pcs): Likewise.
8980 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
8982 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
8983 * server.h: Include gdb_vecs.h.
8985 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8987 * Makefile.in (SFILES): Append common/common-regcache.c.
8988 (OBS): Append common-regcache.o.
8989 (common-regcache.o): New rule.
8990 * regcache.c (init_register_cache): Initialize cache to
8992 (regcache_raw_read_unsigned): New function.
8993 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
8994 register_status enum.
8996 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
8998 * linux-aarch64-low.c (the_low_targets): Rename
8999 breakpoint_reinsert_addr to get_next_pcs.
9000 * linux-arm-low.c (the_low_targets): Likewise.
9001 * linux-bfin-low.c (the_low_targets): Likewise.
9002 * linux-cris-low.c (the_low_targets): Likewise.
9003 * linux-crisv32-low.c (the_low_targets): Likewise.
9004 * linux-low.c (can_software_single_step): Likewise.
9005 (install_software_single_step_breakpoints): New function.
9006 (start_step_over): Use install_software_single_step_breakpoints.
9007 * linux-low.h: New CORE_ADDR vector.
9008 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9010 * linux-mips-low.c (the_low_targets): Likewise.
9011 * linux-nios2-low.c (the_low_targets): Likewise.
9012 * linux-sparc-low.c (the_low_targets): Likewise.
9014 2015-12-17 Pedro Alves <palves@redhat.com>
9016 * linux-low.c (linux_kill_one_lwp): Remove references to
9018 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9020 (linux_init_signals): Delete.
9021 (initialize_low): Adjust.
9022 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9024 2015-12-16 Pedro Alves <palves@redhat.com>
9026 * configure.ac (compiler warning flags): When testing a
9027 -Wno-foo option, check whether -Wfoo works instead.
9028 * configure: Regenerate.
9030 2015-12-11 Don Breazeal <donb@codesourcery.com>
9032 * server.c (process_serial_event): Don't exit from gdbserver
9033 in remote mode if there are still active inferiors.
9035 2015-12-11 Yao Qi <yao.qi@linaro.org>
9037 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9038 arm_breakpoint_at if the process is 32-bit.
9040 2015-12-11 Yao Qi <yao.qi@linaro.org>
9042 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9045 2015-12-07 Yao Qi <yao.qi@linaro.org>
9047 * configure.srv: Append arm.o to srv_tgtobj for
9048 aarch64*-*-linux* target.
9049 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9050 from linux-arm-low.c.
9051 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9052 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9053 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9054 (thumb2_breakpoint_len): Likewise.
9055 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9056 (arm_breakpoint_kinds): Likewise.
9057 (arm_breakpoint_kind_from_pc): Likewise.
9058 (arm_sw_breakpoint_from_kind): Likewise.
9059 (arm_breakpoint_kind_from_current_state): Likewise.
9060 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9061 (arm_sw_breakpoint_from_kind): Declare.
9062 (arm_breakpoint_kind_from_current_state): Declare.
9063 (arm_breakpoint_at): Declare.
9064 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9065 arm_sw_breakpoint_from_kind if process is 32-bit.
9066 (aarch64_breakpoint_kind_from_pc): New function.
9067 (aarch64_breakpoint_kind_from_current_state): New function.
9068 (the_low_target): Initialize fields breakpoint_kind_from_pc
9069 and breakpoint_kind_from_current_state.
9070 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9071 linux-aarch32-low.c.
9072 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9073 (arm_breakpoint, arm_breakpoint_len): Likewise.
9074 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9075 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9076 (arm_is_thumb_mode): Likewise.
9077 (arm_breakpoint_at): Likewise.
9078 (arm_breakpoint_kind_from_pc): Likewise.
9079 (arm_sw_breakpoint_from_kind): Likewise.
9080 (arm_breakpoint_kind_from_current_state): Likewise.
9083 2015-08-04 Yao Qi <yao.qi@linaro.org>
9085 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9086 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9087 * server.c (extended_protocol): Remove "static".
9088 * server.h (extended_protocol): Declare it.
9090 2015-12-04 Josh Stone <jistone@redhat.com>
9092 * target.h (struct target_ops) <arch_setup>: Rename to ...
9093 (struct target_ops) <post_create_inferior>: ... this.
9094 (target_arch_setup): Rename to ...
9095 (target_post_create_inferior): ... this, calling post_create_inferior.
9096 * server.c (start_inferior): Update target_arch_setup calls to
9097 target_post_create_inferior.
9098 * linux-low.c (linux_low_ptrace_options): Forward declare.
9099 (linux_arch_setup): Update its comment for general use.
9100 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9101 (struct linux_target_ops): Use linux_post_create_inferior.
9102 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9103 to post_create_inferior.
9104 * nto-low.c (struct nto_target_ops): Likewise.
9105 * spu-low.c (struct spu_target_ops): Likewise.
9106 * win32-low.c (struct win32_target_ops): Likewise.
9108 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9110 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9112 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9114 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9115 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9116 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9117 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9118 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9119 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9120 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9121 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9122 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9123 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9124 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9125 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9127 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9129 * linux-low.c (linux_look_up_symbols): Don't call
9130 linux_supports_traceclone.
9131 * linux-low.h (thread_db_init): Remove use_events argument.
9132 * thread-db.c (thread_db_use_event): Remove global variable.
9133 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9134 (struct thread_db) <td_create_bp>: Remove field.
9135 (thread_db_create_event): Remove function.
9136 (thread_db_enable_reporting): Likewise.
9137 (find_one_thread): Don't check for thread_db_use_events.
9138 (attach_thread): Likewise.
9139 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9140 (try_thread_db_load_1): Don't check for thread_db_use_events.
9141 (thread_db_init): Remove use_events argument and thread events
9143 (remove_thread_event_breakpoints): Remove function.
9144 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9146 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9148 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9150 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9151 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9152 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9153 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9154 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9156 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9158 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9159 * linux-low.c (can_hardware_single_step): Use
9160 supports_hardware_single_step.
9161 (can_software_single_step): New function.
9162 (start_step_over): Call can_software_single_step.
9163 (linux_supports_hardware_single_step): New function.
9164 (struct target_ops) <supports_software_single_step>: Initialize.
9165 * linux-low.h (struct linux_target_ops)
9166 <supports_hardware_single_step>: Initialize.
9167 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9168 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9169 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9170 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9171 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9172 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9173 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9174 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9175 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9176 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9178 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9179 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9181 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9182 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9183 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9185 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9186 * target.h (struct target_ops): <supports_software_single_step>:
9188 (target_supports_software_single_step): New macro.
9190 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9192 * linux-low.c (linux_wait_1): Fix pc advance condition.
9193 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9194 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9196 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9198 * linux-arm-low.c (arm_is_thumb_mode): New function.
9199 (arm_breakpoint_at): Use arm_is_thumb_mode.
9200 (arm_breakpoint_kind_from_current_state): New function.
9201 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9203 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9204 (linux_breakpoint_kind_from_current_state): New function.
9205 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9206 * linux-low.h (struct linux_target_ops)
9207 <breakpoint_kind_from_current_state>: New field.
9208 * target.h (struct target_ops): Likewise.
9209 (target_breakpoint_kind_from_current_state): New macro.
9211 2015-11-30 Pedro Alves <palves@redhat.com>
9213 * linux-low.c (linux_resume): Wake up the event loop before
9216 2015-11-30 Pedro Alves <palves@redhat.com>
9218 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9220 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9222 * target.c (struct thread_search): New structure.
9223 (thread_search_callback): New function.
9224 (prev_general_thread): New global.
9225 (prepare_to_access_memory, done_accessing_memory): New functions.
9226 * target.h (prepare_to_access_memory, done_accessing_memory):
9227 Replace macros with function declarations.
9229 2015-11-30 Pedro Alves <palves@redhat.com>
9232 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9233 report TARGET_WAITKIND_NO_RESUMED.
9234 * remote-utils.c (prepare_resume_reply): Handle
9235 TARGET_WAITKIND_NO_RESUMED.
9236 * server.c (report_no_resumed): New global.
9237 (handle_query) <qSupported>: Handle "no-resumed+". Report
9238 "no-resumed+" support.
9239 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9240 return error if the client doesn't support no-resumed events.
9241 (push_stop_notification): New function.
9242 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9243 events if the client supports them.
9245 2015-11-30 Pedro Alves <palves@redhat.com>
9247 * linux-low.c (thread_still_has_status_pending_p): Don't check
9249 (lwp_resumed): New function.
9250 (status_pending_p_callback): Return early if the LWP is not
9251 supposed to be resumed.
9253 2015-11-30 Pedro Alves <palves@redhat.com>
9255 * linux-low.c (handle_extended_wait): Assert that the LWP's
9256 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9257 thread create events, leave the new child's status pending.
9258 (linux_low_filter_event): If GDB wants to hear about thread exit
9259 events, leave the LWP marked dead and don't delete it.
9260 (linux_wait_for_event_filtered): Don't check for thread exit.
9261 (filter_exit_event): New function.
9262 (linux_wait_1): Use it, when returning an exit event.
9263 (linux_resume_one_lwp_throw): Assert that the LWP's
9264 waitstatus is TARGET_WAITKIND_IGNORE.
9265 * remote-utils.c (prepare_resume_reply): Handle
9266 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9267 * server.c (report_thread_events): New global.
9268 (handle_general_set): Handle QThreadEvents.
9269 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9270 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9271 TARGET_WAITKIND_THREAD_EXITED.
9272 * server.h (report_thread_events): Declare.
9274 2015-11-30 Pedro Alves <palves@redhat.com>
9276 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9277 the thread's last_resume_kind was resume_stop.
9279 2015-11-30 Pedro Alves <palves@redhat.com>
9281 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9284 2015-11-30 Pedro Alves <palves@redhat.com>
9286 * server.c (handle_v_requests): Handle vCtrlC.
9288 2015-11-30 Pedro Alves <palves@redhat.com>
9290 * gdbthread.h (find_any_thread_of_pid): Declare.
9291 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9293 * server.c (handle_query): If current_thread is NULL, look for
9294 another thread of the selected process.
9296 2015-11-26 Daniel Colascione <dancol@dancol.org>
9297 Simon Marchi <simon.marchi@ericsson.com>
9299 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9300 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9302 * target.h (struct target_ops) <thread_name>: New field.
9303 (target_thread_name): New macro.
9305 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9307 * regcache.h (regcache_invalidate_pid): Add declaration.
9308 * regcache.c (regcache_invalidate_pid): New function, extracted
9309 from regcache_invalidate.
9310 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9311 Add trivial documentation comment.
9312 * lynx-low.c: Use regcache_invalidate_pid instead of
9313 regcache_invalidate.
9315 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9317 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9318 and Elf64_auxv_t if the target is Android.
9320 2015-11-22 Doug Evans <xdje42@gmail.com>
9322 * target.h: #include <sys/types.h>.
9324 2015-11-19 Pedro Alves <palves@redhat.com>
9326 * linux-low.c (linux_process_qsupported): Change prototype.
9328 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9330 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9331 and adjust to loop over all features.
9332 * server.c (handle_query) <qSupported>: Adjust to call
9333 target_process_qsupported once, passing it a vector of unprocessed
9335 * target.h (struct target_ops) <process_qsupported>: Change
9337 (target_process_qsupported): Adjust.
9339 2015-11-19 Pedro Alves <palves@redhat.com>
9341 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9343 * configure: Regenerate.
9345 2015-11-19 Pedro Alves <palves@redhat.com>
9347 * configure: Regenerate.
9349 2015-11-19 Yao Qi <yao.qi@linaro.org>
9351 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9354 2015-11-19 Yao Qi <yao.qi@linaro.org>
9356 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9357 (struct aarch64_operand): Move enum out.
9359 2015-11-19 Yao Qi <yao.qi@linaro.org>
9361 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9362 struct user_fpsimd_state *.
9363 (aarch64_store_fpregset): Likewise.
9365 2015-11-19 Yao Qi <yao.qi@linaro.org>
9367 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9368 struct user_pt_regs *.
9369 (aarch64_store_gregset): Likewise.
9371 2015-11-18 Pedro Alves <palves@redhat.com>
9373 * Makefile.in (all_object_files): Add $IPA_OBJS.
9375 2015-11-17 Pedro Alves <palves@redhat.com>
9377 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9378 GDB_SIGNAL_0 and gdb_signal_to_string.
9380 2015-11-17 Pedro Alves <palves@redhat.com>
9382 * win32-low.c (handle_output_debug_string): Remove parameter.
9383 (win32_kill): Remove our_status local and adjust call to
9384 handle_output_debug_string.
9385 (get_child_debug_event): Adjust call to
9386 handle_output_debug_string.
9388 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9390 * linux-mips-low.c (mips_fill_gregset): Add cast.
9391 (mips_store_gregset): Likewise.
9392 (mips_fill_fpregset): Likewise.
9393 (mips_store_fpregset): Likewise.
9395 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9397 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9400 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9402 * linux-mips-low.c (mips_linux_new_thread): Change type of
9403 watch_type to enum target_hw_bp_type.
9405 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9407 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9408 Change return type to arm_hwbp_type.
9410 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9412 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9413 (arm_store_gregset): Likewise.
9414 * linux-arm-low.c (arm_get_hwcap): Likewise.
9415 (arm_read_description): Likewise.
9417 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9419 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9421 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9423 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9424 (ppc_fill_vsxregset): Likewise.
9425 (ppc_store_vsxregset): Likewise.
9426 (ppc_fill_vrregset): Likewise.
9427 (ppc_store_vrregset): Likewise.
9428 (ppc_fill_evrregset): Likewise.
9429 (ppc_store_evrregset): Likewise.
9431 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9433 * linux-ppc-low.c (ppc_usrregs_info): Remove
9434 forward-declaration.
9435 (ppc_arch_setup): Move lower in file.
9437 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9439 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9440 (ps_pdwrite): Likewise.
9442 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9444 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9445 to after assert checks.
9447 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9449 * proc-service.c (ps_pdread): Add/adjust casts.
9450 (ps_pdwrite): Add/adjust casts.
9452 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9454 * server.c (handle_search_memory_1): Cast return value of
9457 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9459 * server.c (write_qxfer_response): Change type of data to
9462 2015-10-29 Pedro Alves <palves@redhat.com>
9464 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9466 2015-10-29 Pedro Alves <palves@redhat.com>
9468 * tracepoint.c (clear_installed_tracepoints): Add casts.
9470 2015-10-29 Pedro Alves <palves@redhat.com>
9472 * server.c (handle_v_cont, process_serial_event): Add enum
9473 gdb_signal casts to signal parsing code.
9475 2015-10-29 Pedro Alves <palves@redhat.com>
9477 * linux-low.h (NULL_REGSET): Define.
9478 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9479 * linux-arm-low.c (arm_regsets): Likewise.
9480 * linux-crisv32-low.c (cris_regsets): Likewise.
9481 * linux-m68k-low.c (m68k_regsets): Likewise.
9482 * linux-mips-low.c (mips_regsets): Likewise.
9483 * linux-nios2-low.c (nios2_regsets): Likewise.
9484 * linux-ppc-low.c (ppc_regsets): Likewise.
9485 * linux-s390-low.c (s390_regsets): Likewise.
9486 * linux-sh-low.c (sh_regsets): Likewise.
9487 * linux-sparc-low.c (sparc_regsets): Likewise.
9488 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9489 * linux-tile-low.c (tile_regsets): Likewise.
9490 * linux-x86-low.c (x86_regsets): Likewise.
9491 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9493 2015-10-29 Pedro Alves <palves@redhat.com>
9495 * linux-low.h (NULL_REGSET): Define.
9496 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9497 * linux-arm-low.c (arm_regsets): Likewise.
9498 * linux-crisv32-low.c (cris_regsets): Likewise.
9499 * linux-m68k-low.c (m68k_regsets): Likewise.
9500 * linux-mips-low.c (mips_regsets): Likewise.
9501 * linux-nios2-low.c (nios2_regsets): Likewise.
9502 * linux-ppc-low.c (ppc_regsets): Likewise.
9503 * linux-s390-low.c (s390_regsets): Likewise.
9504 * linux-sh-low.c (sh_regsets): Likewise.
9505 * linux-sparc-low.c (sparc_regsets): Likewise.
9506 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9507 * linux-tile-low.c (tile_regsets): Likewise.
9508 * linux-x86-low.c (x86_regsets): Likewise.
9509 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9511 2015-10-26 Doug Evans <dje@google.com>
9513 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9515 2015-10-26 Doug Evans <dje@google.com>
9517 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9519 2015-10-26 Doug Evans <dje@google.com>
9521 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9523 (attach_thread, find_new_threads_callback): Ditto.
9525 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9527 * mem-break.h (set_breakpoint_data): Remove.
9529 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9531 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9532 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9533 (initialize_low): Remove set_breakpoint_data call.
9534 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9535 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9536 (initialize_low): Remove set_breakpoint_data call.
9537 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9538 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9539 (initialize_low): Remove set_breakpoint_data call.
9541 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9543 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9544 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9545 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9546 * target.h (target_breakpoint_kind_from_pc): New macro.
9548 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9550 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9551 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9552 the default breakpoint kind.
9554 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9556 * linux-arm-low.c (arm_supports_z_point_type): Add software
9559 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9561 * linux-arm-low.c: Refactor breakpoint definitions.
9562 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9563 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9565 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9567 * Makefile.in: Add arm.c/o.
9568 * configure.srv: Likewise.
9569 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9570 (arm_breakpoint_kind_from_pc): New function.
9571 (arm_sw_breakpoint_from_kind): Return proper kind.
9572 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9574 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9576 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9578 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9579 (struct raw_breakpoint) <size>: Remove.
9580 (struct raw_breakpoint) <kind>: Add.
9581 (bp_size): New function.
9582 (bp_opcode): Likewise.
9583 (find_raw_breakpoint_at): Adjust for kind.
9584 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9585 (remove_memory_breakpoint): Adjust for kind call bp_size.
9586 (set_raw_breakpoint_at): Adjust for kind.
9587 (set_breakpoint): Likewise.
9588 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9589 (delete_raw_breakpoint): Adjust for kind.
9590 (delete_breakpoint): Likewise.
9591 (find_gdb_breakpoint): Likewise.
9592 (set_gdb_breakpoint_1): Likewise.
9593 (set_gdb_breakpoint): Likewise.
9594 (delete_gdb_breakpoint_1): Likewise.
9595 (delete_gdb_breakpoint): Likewise.
9596 (uninsert_raw_breakpoint): Likewise.
9597 (reinsert_raw_breakpoint): Likewise.
9598 (set_breakpoint_data): Remove.
9599 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9600 (check_mem_read): Adjust for kind call bp_size.
9601 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9602 (clone_one_breakpoint): Adjust for kind.
9603 * mem-break.h (set_gdb_breakpoint): Likewise.
9604 (delete_gdb_breakpoint): Likewise.
9605 * server.c (process_serial_event): Likewise.
9607 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9609 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9610 (struct linux_target_ops) <breakpoint>: Remove.
9611 (struct linux_target_ops) <breakpoint_len>: Remove.
9612 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9613 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9614 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9615 (arm_sw_breakpoint_from_kind): New function.
9616 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9617 (struct linux_target_ops) <breakpoint>: Remove.
9618 (struct linux_target_ops) <breakpoint_len>: Remove.
9619 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9620 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9621 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9622 (struct linux_target_ops) <breakpoint>: Remove.
9623 (struct linux_target_ops) <breakpoint_len>: Remove.
9624 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9625 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9626 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9627 (struct linux_target_ops) <breakpoint>: Remove.
9628 (struct linux_target_ops) <breakpoint_len>: Remove.
9629 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9630 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9631 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9632 and sw_breakpoint_from_kind to increment the pc.
9633 (linux_breakpoint_kind_from_pc): New function.
9634 (linux_sw_breakpoint_from_kind): New function.
9635 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9636 (initialize_low): Call breakpoint_kind_from_pc and
9637 sw_breakpoint_from_kind to replace breakpoint_data/len.
9638 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9640 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9641 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9642 (struct linux_target_ops) <breakpoint>: Remove.
9643 (struct linux_target_ops) <breakpoint_len>: Remove.
9644 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9645 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9646 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9647 (struct linux_target_ops) <breakpoint>: Remove.
9648 (struct linux_target_ops) <breakpoint_len>: Remove.
9649 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9650 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9651 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9652 (struct linux_target_ops) <breakpoint>: Remove.
9653 (struct linux_target_ops) <breakpoint_len>: Remove.
9654 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9655 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9656 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9657 (struct linux_target_ops) <breakpoint>: Remove.
9658 (struct linux_target_ops) <breakpoint_len>: Remove.
9659 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9660 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9661 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9662 (struct linux_target_ops) <breakpoint>: Remove.
9663 (struct linux_target_ops) <breakpoint_len>: Remove.
9664 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9665 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9666 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9667 (struct linux_target_ops) <breakpoint>: Remove.
9668 (struct linux_target_ops) <breakpoint_len>: Remove.
9669 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9670 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9671 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9672 (struct linux_target_ops) <breakpoint>: Remove.
9673 (struct linux_target_ops) <breakpoint_len>: Remove.
9674 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9675 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9676 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9677 (struct linux_target_ops) <breakpoint>: Remove.
9678 (struct linux_target_ops) <breakpoint_len>: Remove.
9679 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9680 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9681 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9682 (struct linux_target_ops) <breakpoint>: Remove.
9683 (struct linux_target_ops) <breakpoint_len>: Remove.
9684 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9685 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9686 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9687 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9688 (struct linux_target_ops) <breakpoint>: Remove.
9689 (struct linux_target_ops) <breakpoint_len>: Remove.
9690 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9691 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9692 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9693 (struct linux_target_ops) <breakpoint>: Remove.
9694 (struct linux_target_ops) <breakpoint_len>: Remove.
9695 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9696 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9698 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9700 * linux-cris-low.c (cris_get_pc): Remove void arg.
9702 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9704 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9707 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9709 * inferiors.c (thread_pid_matches_callback): New function.
9710 (find_thread_process): New function.
9711 (remove_thread): Reset current_thread.
9712 (remove_process): Assert threads have been removed first.
9714 2015-10-15 Yao Qi <yao.qi@linaro.org>
9716 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9718 (aarch64_remove_point): Likewise.
9719 * regcache.c (regcache_register_size): New function.
9721 2015-10-12 Yao Qi <yao.qi@linaro.org>
9723 * linux-aarch64-low.c: Update all callers as emit_load_store
9724 is renamed to aarch64_emit_load_store.
9726 2015-10-12 Yao Qi <yao.qi@linaro.org>
9728 * linux-aarch64-low.c: Update all callers of function renaming
9729 from emit_insn to aarch64_emit_insn.
9731 2015-10-12 Yao Qi <yao.qi@linaro.org>
9733 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9734 arch/aarch64-insn.h.
9735 (struct aarch64_memory_operand): Likewise.
9737 (emit_insn): Move to arch/aarch64-insn.c.
9738 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9739 (emit_load_store): Move to arch/aarch64-insn.c.
9740 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9741 (can_encode_int32): Remove.
9743 2015-10-12 Yao Qi <yao.qi@linaro.org>
9745 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9746 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9747 (aarch64_relocate_instruction): Likewise.
9748 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9749 (struct aarch64_insn_visitor): Likewise.
9751 2015-10-12 Yao Qi <yao.qi@linaro.org>
9753 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9754 (struct aarch64_insn_visitor): New.
9755 (struct aarch64_insn_relocation_data): New.
9756 (aarch64_ftrace_insn_reloc_b): New function.
9757 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9758 (aarch64_ftrace_insn_reloc_cb): Likewise.
9759 (aarch64_ftrace_insn_reloc_tb): Likewise.
9760 (aarch64_ftrace_insn_reloc_adr): Likewise.
9761 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9762 (aarch64_ftrace_insn_reloc_others): Likewise.
9764 (aarch64_relocate_instruction): Use visitor.
9766 2015-10-12 Yao Qi <yao.qi@linaro.org>
9768 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9769 int. Add argument buf.
9770 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9771 aarch64_relocate_instruction.
9773 2015-10-12 Yao Qi <yao.qi@linaro.org>
9775 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9776 argument insn. Remove local variable insn. Don't call
9778 (aarch64_install_fast_tracepoint_jump_pad): Call
9781 2015-09-30 Yao Qi <yao.qi@linaro.org>
9783 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9784 (emit_load_store_pair): Likewise.
9786 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9788 * dll.c (match_dll): Add cast(s).
9789 (unloaded_dll): Likewise.
9790 * linux-low.c (second_thread_of_pid_p): Likewise.
9791 (delete_lwp_callback): Likewise.
9792 (count_events_callback): Likewise.
9793 (select_event_lwp_callback): Likewise.
9794 (linux_set_resume_request): Likewise.
9795 * server.c (accumulate_file_name_length): Likewise.
9796 (emit_dll_description): Likewise.
9797 (handle_qxfer_threads_worker): Likewise.
9798 (visit_actioned_threads): Likewise.
9799 * thread-db.c (any_thread_of): Likewise.
9800 * tracepoint.c (same_process_p): Likewise.
9801 (match_blocktype): Likewise.
9802 (build_traceframe_info_xml): Likewise.
9804 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9806 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9808 (gdb_unparse_agent_expr): Likewise.
9809 * hostio.c (require_data): Likewise.
9810 (handle_pread): Likewise.
9811 * linux-low.c (disable_regset): Likewise.
9812 (fetch_register): Likewise.
9813 (store_register): Likewise.
9814 (get_dynamic): Likewise.
9815 (linux_qxfer_libraries_svr4): Likewise.
9816 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9817 (set_fast_tracepoint_jump): Likewise.
9818 (uninsert_fast_tracepoint_jumps_at): Likewise.
9819 (reinsert_fast_tracepoint_jumps_at): Likewise.
9820 (validate_inserted_breakpoint): Likewise.
9821 (clone_agent_expr): Likewise.
9822 * regcache.c (init_register_cache): Likewise.
9823 * remote-utils.c (putpkt_binary_1): Likewise.
9824 (decode_M_packet): Likewise.
9825 (decode_X_packet): Likewise.
9826 (look_up_one_symbol): Likewise.
9827 (relocate_instruction): Likewise.
9828 (monitor_output): Likewise.
9829 * server.c (handle_search_memory): Likewise.
9830 (handle_qxfer_exec_file): Likewise.
9831 (handle_qxfer_libraries): Likewise.
9832 (handle_qxfer): Likewise.
9833 (handle_query): Likewise.
9834 (handle_v_cont): Likewise.
9835 (handle_v_run): Likewise.
9836 (captured_main): Likewise.
9837 * target.c (write_inferior_memory): Likewise.
9838 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9839 * tracepoint.c (init_trace_buffer): Likewise.
9840 (add_tracepoint_action): Likewise.
9841 (add_traceframe): Likewise.
9842 (add_traceframe_block): Likewise.
9843 (cmd_qtdpsrc): Likewise.
9844 (cmd_qtdv): Likewise.
9845 (cmd_qtstatus): Likewise.
9846 (response_source): Likewise.
9847 (response_tsv): Likewise.
9848 (cmd_qtnotes): Likewise.
9849 (gdb_collect): Likewise.
9850 (initialize_tracepoint): Likewise.
9852 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9854 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9855 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9856 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9858 (enum aarch64_condition_codes): New enum.
9859 (w0): New static global.
9862 (struct aarch64_memory_operand) <type>: New
9863 MEMORY_OPERAND_POSTINDEX type.
9864 (postindex_memory_operand): New helper function.
9865 (emit_ret): New function.
9866 (emit_load_store_pair): New function, factored out of emit_stp
9867 with support for MEMORY_OPERAND_POSTINDEX.
9868 (emit_stp): Rewrite using emit_load_store_pair.
9869 (emit_ldp): New function.
9870 (emit_load_store): Likewise.
9871 (emit_ldr): Mention post-index instruction in comment.
9872 (emit_ldrh): New function.
9873 (emit_ldrb): New function.
9874 (emit_ldrsw): Mention post-index instruction in comment.
9875 (emit_str): Likewise.
9876 (emit_subs): New function.
9877 (emit_cmp): Likewise.
9878 (emit_and): Likewise.
9879 (emit_orr): Likewise.
9880 (emit_orn): Likewise.
9881 (emit_eor): Likewise.
9882 (emit_mvn): Likewise.
9883 (emit_lslv): Likewise.
9884 (emit_lsrv): Likewise.
9885 (emit_asrv): Likewise.
9886 (emit_mul): Likewise.
9887 (emit_sbfm): Likewise.
9888 (emit_sbfx): Likewise.
9889 (emit_ubfm): Likewise.
9890 (emit_ubfx): Likewise.
9891 (emit_csinc): Likewise.
9892 (emit_cset): Likewise.
9893 (emit_nop): Likewise.
9894 (emit_ops_insns): New helper function.
9895 (emit_pop): Likewise.
9896 (emit_push): Likewise.
9897 (aarch64_emit_prologue): New function.
9898 (aarch64_emit_epilogue): Likewise.
9899 (aarch64_emit_add): Likewise.
9900 (aarch64_emit_sub): Likewise.
9901 (aarch64_emit_mul): Likewise.
9902 (aarch64_emit_lsh): Likewise.
9903 (aarch64_emit_rsh_signed): Likewise.
9904 (aarch64_emit_rsh_unsigned): Likewise.
9905 (aarch64_emit_ext): Likewise.
9906 (aarch64_emit_log_not): Likewise.
9907 (aarch64_emit_bit_and): Likewise.
9908 (aarch64_emit_bit_or): Likewise.
9909 (aarch64_emit_bit_xor): Likewise.
9910 (aarch64_emit_bit_not): Likewise.
9911 (aarch64_emit_equal): Likewise.
9912 (aarch64_emit_less_signed): Likewise.
9913 (aarch64_emit_less_unsigned): Likewise.
9914 (aarch64_emit_ref): Likewise.
9915 (aarch64_emit_if_goto): Likewise.
9916 (aarch64_emit_goto): Likewise.
9917 (aarch64_write_goto_address): Likewise.
9918 (aarch64_emit_const): Likewise.
9919 (aarch64_emit_call): Likewise.
9920 (aarch64_emit_reg): Likewise.
9921 (aarch64_emit_pop): Likewise.
9922 (aarch64_emit_stack_flush): Likewise.
9923 (aarch64_emit_zero_ext): Likewise.
9924 (aarch64_emit_swap): Likewise.
9925 (aarch64_emit_stack_adjust): Likewise.
9926 (aarch64_emit_int_call_1): Likewise.
9927 (aarch64_emit_void_call_2): Likewise.
9928 (aarch64_emit_eq_goto): Likewise.
9929 (aarch64_emit_ne_goto): Likewise.
9930 (aarch64_emit_lt_goto): Likewise.
9931 (aarch64_emit_le_goto): Likewise.
9932 (aarch64_emit_gt_goto): Likewise.
9933 (aarch64_emit_ge_got): Likewise.
9934 (aarch64_emit_ops_impl): New static global variable.
9935 (aarch64_emit_ops): New target function, return
9936 &aarch64_emit_ops_impl.
9937 (struct linux_target_ops): Install it.
9939 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9941 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
9942 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
9944 * linux-aarch64-ipa.c: New file.
9945 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
9947 (aarch64_get_thread_area): New target method.
9948 (extract_signed_bitfield): New helper function.
9949 (aarch64_decode_ldr_literal): New function.
9950 (enum aarch64_opcodes): New enum.
9951 (struct aarch64_register): New struct.
9952 (struct aarch64_operand): New struct.
9953 (x0): New static global.
9962 (aarch64_register): New helper function.
9963 (register_operand): Likewise.
9964 (immediate_operand): Likewise.
9965 (struct aarch64_memory_operand): New struct.
9966 (offset_memory_operand): New helper function.
9967 (preindex_memory_operand): Likewise.
9968 (enum aarch64_system_control_registers): New enum.
9969 (ENCODE): New macro.
9970 (emit_insn): New helper function.
9971 (emit_b): New function.
9972 (emit_bcond): Likewise.
9973 (emit_cb): Likewise.
9974 (emit_tb): Likewise.
9975 (emit_blr): Likewise.
9976 (emit_stp): Likewise.
9977 (emit_ldp_q_offset): Likewise.
9978 (emit_stp_q_offset): Likewise.
9979 (emit_load_store): Likewise.
9980 (emit_ldr): Likewise.
9981 (emit_ldrsw): Likewise.
9982 (emit_str): Likewise.
9983 (emit_ldaxr): Likewise.
9984 (emit_stxr): Likewise.
9985 (emit_stlr): Likewise.
9986 (emit_data_processing_reg): Likewise.
9987 (emit_data_processing): Likewise.
9988 (emit_add): Likewise.
9989 (emit_sub): Likewise.
9990 (emit_mov): Likewise.
9991 (emit_movk): Likewise.
9992 (emit_mov_addr): Likewise.
9993 (emit_mrs): Likewise.
9994 (emit_msr): Likewise.
9995 (emit_sevl): Likewise.
9996 (emit_wfe): Likewise.
9997 (append_insns): Likewise.
9998 (can_encode_int32_in): New helper function.
9999 (aarch64_relocate_instruction): New function.
10000 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10001 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10002 (struct linux_target_ops): Install aarch64_get_thread_area,
10003 aarch64_install_fast_tracepoint_jump_pad and
10004 aarch64_get_min_fast_tracepoint_insn_len.
10006 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10008 * Makefile.in (aarch64-insn.o): New rule.
10009 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10011 2015-09-21 Yao Qi <yao.qi@linaro.org>
10013 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10015 2015-09-21 Yao Qi <yao.qi@linaro.org>
10017 * tracepoint.c (max_jump_pad_size): Remove.
10019 2015-09-18 Yao Qi <yao.qi@linaro.org>
10021 * linux-aarch64-low.c: Don't include sys/uio.h.
10022 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10024 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10026 * tracepoint.c (eval_result_type): Change prototype.
10027 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10029 2015-09-15 Pedro Alves <palves@redhat.com>
10031 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10032 Check whether to report exec events instead of checking whether
10033 multiprocess is enabled.
10035 2015-09-15 Pedro Alves <palves@redhat.com>
10038 * remote-utils.c (prepare_resume_reply): Merge
10039 TARGET_WAITKIND_VFORK_DONE switch case with the
10040 TARGET_WAITKIND_FORKED case.
10042 2015-09-15 Yao Qi <yao.qi@linaro.org>
10044 * server.c (handle_query): Check string comparison using
10045 "else if" instead of "if".
10047 2015-09-15 Yao Qi <yao.qi@linaro.org>
10049 * server.c (vCont_supported): New global variable.
10050 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10051 matches. Append ";vContSupported+" to own_buf.
10052 (handle_v_requests): Append ";s;S" to own_buf if target supports
10053 hardware single step or vCont_supported is false.
10054 (capture_main): Set vCont_supported to zero.
10056 2015-09-15 Yao Qi <yao.qi@linaro.org>
10058 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10060 (linux_supports_hardware_single_step): ... New function.
10061 (linux_target_ops): Update.
10062 * lynx-low.c (lynx_target_ops): Set field
10063 supports_hardware_single_step to target_can_do_hardware_single_step.
10064 * nto-low.c (nto_target_ops): Likewise.
10065 * spu-low.c (spu_target_ops): Likewise.
10066 * win32-low.c (win32_target_ops): Likewise.
10067 * target.c (target_can_do_hardware_single_step): New function.
10068 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10069 Remove. <supports_hardware_single_step>: New field.
10070 (target_supports_conditional_breakpoints): Remove.
10071 (target_supports_hardware_single_step): New macro.
10072 (target_can_do_hardware_single_step): Declare.
10073 * server.c (handle_query): Use target_supports_hardware_single_step
10074 instead of target_supports_conditional_breakpoints.
10076 2015-09-15 Yao Qi <yao.qi@linaro.org>
10078 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10080 (struct linux_target_ops the_low_target): Install
10081 aarch64_linux_siginfo_fixup.
10083 2015-09-11 Don Breazeal <donb@codesourcery.com>
10084 Luis Machado <lgustavo@codesourcery.com>
10086 * linux-low.c (linux_mourn): Static declaration.
10087 (linux_arch_setup): Move in front of
10088 handle_extended_wait.
10089 (linux_arch_setup_thread): New function.
10090 (handle_extended_wait): Handle exec events. Call
10091 linux_arch_setup_thread. Make event_lwp argument a
10092 pointer-to-a-pointer.
10093 (check_zombie_leaders): Do not check stopped threads.
10094 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10095 (linux_low_filter_event): Add lwp and thread for exec'ing
10096 non-leader thread if leader thread has been deleted.
10097 Refactor code into linux_arch_setup_thread and call it.
10098 Pass child lwp pointer by reference to handle_extended_wait.
10099 (linux_wait_for_event_filtered): Update comment.
10100 (linux_wait_1): Prevent clobbering exec event status.
10101 (linux_supports_exec_events): New function.
10102 (linux_target_ops) <supports_exec_events>: Initialize new member.
10103 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10105 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10106 * server.c (report_exec_events): New global variable.
10107 (handle_query): Handle qSupported query for exec-events feature.
10108 (captured_main): Initialize report_exec_events.
10109 * server.h (report_exec_events): Declare new global variable.
10110 * target.h (struct target_ops) <supports_exec_events>: New
10112 (target_supports_exec_events): New macro.
10113 * win32-low.c (win32_target_ops) <supports_exec_events>:
10114 Initialize new member.
10116 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10118 * linux-low.c (linux_low_enable_btrace): Remove.
10119 (linux_target_ops): Replace linux_low_enable_btrace with
10120 linux_enable_btrace.
10122 2015-09-03 Yao Qi <yao.qi@linaro.org>
10124 * linux-aarch64-low.c (aarch64_insert_point): Call
10125 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10128 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10130 * linux-low.c (check_stopped_by_breakpoint): Use
10131 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10133 2015-08-27 Pedro Alves <palves@redhat.com>
10135 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10137 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10139 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10140 the XNEW-family equivalent.
10141 (compile_bytecodes): Likewise.
10142 * dll.c (loaded_dll): Likewise.
10143 * event-loop.c (append_callback_event): Likewise.
10144 (create_file_handler): Likewise.
10145 (create_file_event): Likewise.
10146 * hostio.c (handle_open): Likewise.
10147 * inferiors.c (add_thread): Likewise.
10148 (add_process): Likewise.
10149 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10150 * linux-arm-low.c (arm_new_process): Likewise.
10151 (arm_new_thread): Likewise.
10152 * linux-low.c (add_to_pid_list): Likewise.
10153 (linux_add_process): Likewise.
10154 (handle_extended_wait): Likewise.
10155 (add_lwp): Likewise.
10156 (enqueue_one_deferred_signal): Likewise.
10157 (enqueue_pending_signal): Likewise.
10158 (linux_resume_one_lwp_throw): Likewise.
10159 (linux_resume_one_thread): Likewise.
10160 (linux_read_memory): Likewise.
10161 (linux_write_memory): Likewise.
10162 * linux-mips-low.c (mips_linux_new_process): Likewise.
10163 (mips_linux_new_thread): Likewise.
10164 (mips_add_watchpoint): Likewise.
10165 * linux-x86-low.c (initialize_low_arch): Likewise.
10166 * lynx-low.c (lynx_add_process): Likewise.
10167 * mem-break.c (set_raw_breakpoint_at): Likewise.
10168 (set_breakpoint): Likewise.
10169 (add_condition_to_breakpoint): Likewise.
10170 (add_commands_to_breakpoint): Likewise.
10171 (clone_agent_expr): Likewise.
10172 (clone_one_breakpoint): Likewise.
10173 * regcache.c (new_register_cache): Likewise.
10174 * remote-utils.c (look_up_one_symbol): Likewise.
10175 * server.c (queue_stop_reply): Likewise.
10176 (start_inferior): Likewise.
10177 (queue_stop_reply_callback): Likewise.
10178 (handle_target_event): Likewise.
10179 * spu-low.c (fetch_ppc_memory): Likewise.
10180 (store_ppc_memory): Likewise.
10181 * target.c (set_target_ops): Likewise.
10182 * thread-db.c (thread_db_load_search): Likewise.
10183 (try_thread_db_load_1): Likewise.
10184 * tracepoint.c (add_tracepoint): Likewise.
10185 (add_tracepoint_action): Likewise.
10186 (create_trace_state_variable): Likewise.
10187 (cmd_qtdpsrc): Likewise.
10188 (cmd_qtro): Likewise.
10189 (add_while_stepping_state): Likewise.
10190 * win32-low.c (child_add_thread): Likewise.
10191 (get_image_name): Likewise.
10193 2015-08-25 Yao Qi <yao.qi@linaro.org>
10195 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10197 2015-08-25 Yao Qi <yao.qi@linaro.org>
10199 * Makefile.in (aarch64-linux.o): New rule.
10200 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10202 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10203 (aarch64_init_debug_reg_state): Make it extern.
10204 (aarch64_linux_prepare_to_resume): Remove.
10206 2015-08-25 Yao Qi <yao.qi@linaro.org>
10208 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10209 lwp_arch_private_info and ptid_of_lwp.
10211 2015-08-25 Yao Qi <yao.qi@linaro.org>
10213 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10214 Find proc_info by find_process_pid. All callers updated.
10216 2015-08-25 Yao Qi <yao.qi@linaro.org>
10218 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10220 (debug_reg_change_callback): Remove.
10221 (aarch64_notify_debug_reg_change): Remove.
10223 2015-08-25 Yao Qi <yao.qi@linaro.org>
10225 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10226 Call current_lwp_ptid.
10228 2015-08-25 Yao Qi <yao.qi@linaro.org>
10230 * linux-aarch64-low.c (debug_reg_change_callback): Use
10233 2015-08-25 Yao Qi <yao.qi@linaro.org>
10235 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10237 2015-08-25 Yao Qi <yao.qi@linaro.org>
10239 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10241 2015-08-25 Yao Qi <yao.qi@linaro.org>
10243 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10246 2015-08-25 Yao Qi <yao.qi@linaro.org>
10248 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10250 (debug_reg_change_callback): Remove argument entry and add argument
10251 lwp. Remove local variable thread. Don't print thread id in the
10252 debugging output. Don't check whether pid of thread equals to pid.
10253 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10254 iterate_over_lwps instead find_inferior.
10256 2015-08-24 Pedro Alves <palves@redhat.com>
10258 * inferiors.c (get_first_process): New function.
10259 * inferiors.h (get_first_process): New declaration.
10260 * remote-utils.c (read_ptid): Default to the first process in the
10261 list, instead of to the current thread's process.
10263 2015-08-24 Pedro Alves <palves@redhat.com>
10265 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10266 * event-loop.c: Likewise.
10267 * remote-utils.c: Likewise.
10268 * tracepoint.c: Likewise.
10270 2015-08-24 Pedro Alves <palves@redhat.com>
10272 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10275 2015-08-21 Pedro Alves <palves@redhat.com>
10277 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10278 instead of literal 1.
10280 2015-08-21 Pedro Alves <palves@redhat.com>
10282 * tdesc.c (default_description): Explicitly zero-initialize.
10284 2015-08-21 Pedro Alves <palves@redhat.com>
10287 * inferiors.c (remove_thread): Discard any pending stop reply for
10289 * server.c (remove_all_on_match_pid): Rename to ...
10290 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10292 (discard_queued_stop_replies): Change parameter to a ptid. Now
10294 (handle_v_kill, kill_inferior_callback, captured_main)
10295 (process_serial_event): Adjust.
10296 * server.h (discard_queued_stop_replies): Declare.
10298 2015-08-21 Pedro Alves <palves@redhat.com>
10300 * linux-low.c (wait_for_sigstop): Always switch to no thread
10301 selected if the previously current thread dies.
10302 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10303 process instead of the current thread's.
10304 * remote-utils.c (input_interrupt): Don't check if there's no
10306 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10307 current thread to the general thread fails, error out.
10308 (handle_qxfer_auxv, handle_qxfer_libraries)
10309 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10310 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10311 (handle_query): Check if there's a thread selected instead of
10312 checking whether there's any thread in the thread list.
10313 (handle_qxfer_threads, handle_qxfer_btrace)
10314 (handle_qxfer_btrace_conf): Don't error out early if there's no
10315 thread in the thread list.
10316 (handle_v_cont, myresume): Don't set the current thread to the
10318 (process_serial_event) <Hg handling>: Also set thread_id if the
10319 previous general thread is still alive.
10320 (process_serial_event) <g/G handling>: If setting the current
10321 thread to the general thread fails, error out.
10322 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10323 thread's lwp instead of the current thread's.
10324 * target.c (set_desired_thread): If the desired thread was not
10325 found, leave the current thread pointing to NULL. Return an int
10326 (boolean) indicating success.
10327 * target.h (set_desired_thread): Change return type to int.
10329 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10331 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10332 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10334 (ps_get_thread_area): New function.
10336 2015-08-19 Gary Benson <gbenson@redhat.com>
10338 * hostio.c (handle_pread): Do not attempt to read more data
10339 than hostio_reply_with_data can fit in a packet.
10341 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10343 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10345 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10347 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10349 2015-08-06 Pedro Alves <palves@redhat.com>
10351 * tracepoint.c (expr_eval_result): Now an int.
10353 2015-08-06 Pedro Alves <palves@redhat.com>
10355 * gdbthread.h (struct regcache): Forward declare.
10356 (struct thread_info) <regcache_data>: Now a struct regcache
10358 * inferiors.c (inferior_regcache_data)
10359 (set_inferior_regcache_data): Now work with struct regcache
10361 * inferiors.h (struct regcache): Forward declare.
10362 (inferior_regcache_data, set_inferior_regcache_data): Now work
10363 with struct regcache pointers.
10364 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10365 (free_register_cache_thread): Remove struct regcache pointer
10368 2015-08-06 Pedro Alves <palves@redhat.com>
10370 * server.c (captured_main): On error, print the exception message
10371 to stderr, and if run_once is set, throw a quit.
10373 2015-08-06 Pedro Alves <palves@redhat.com>
10375 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10376 the current thread.
10378 2015-08-06 Pedro Alves <palves@redhat.com>
10380 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10381 reading beyond the passed in buffer length.
10383 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10385 * tracepoint.c (symbol_list) <required>: Remove.
10387 2015-08-06 Pedro Alves <palves@redhat.com>
10389 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10390 count if stopping and suspending threads.
10391 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10392 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10393 (linux_detach): Complete an ongoing step-over.
10394 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10396 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10397 (linux_wait_1): If passing a signal to the inferior after
10398 finishing a step-over, unsuspend and re-resume all lwps. If we
10399 see a single-step event but the thread should be continuing, don't
10400 pass the trap to gdb.
10401 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10402 internal_error instead of gdb_assert.
10403 (enqueue_pending_signal): New function.
10404 (check_ptrace_stopped_lwp_gone): Add debug output.
10405 (start_step_over): Use internal_error instead of gdb_assert.
10406 (complete_ongoing_step_over): New function.
10407 (linux_resume_one_thread): Don't resume a suspended thread.
10408 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10411 2015-08-06 Pedro Alves <palves@redhat.com>
10413 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10414 (linux_thread_alive): Use lwp_is_marked_dead.
10415 (extended_event_reported): Delete.
10416 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10417 instead of extended_event_reported.
10418 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10420 (lwp_is_marked_dead): New function.
10421 (lwp_running): Use lwp_is_marked_dead.
10422 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10425 2015-08-06 Pedro Alves <palves@redhat.com>
10427 * linux-low.c (linux_wait_1): Move fork event output out of the
10428 !report_to_gdb check. Pass event_child->waitstatus to
10429 target_waitstatus_to_string instead of ourstatus.
10431 2015-08-04 Yao Qi <yao.qi@linaro.org>
10433 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10434 if current_thread is 32 bit.
10436 2015-08-04 Yao Qi <yao.qi@linaro.org>
10438 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10439 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10440 * server.c (extended_protocol): Remove "static".
10441 * server.h (extended_protocol): Declare it.
10443 2015-08-04 Yao Qi <yao.qi@linaro.org>
10445 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10446 both aarch64 and aarch32.
10447 (aarch64_set_pc): Likewise.
10449 2015-08-04 Yao Qi <yao.qi@linaro.org>
10451 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10452 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10453 arm-with-neon.xml to srv_xmlfiles.
10454 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10455 (is_64bit_tdesc): New function.
10456 (aarch64_linux_read_description): New function.
10457 (aarch64_arch_setup): Call aarch64_linux_read_description.
10458 (regs_info): Rename to regs_info_aarch64.
10459 (aarch64_regs_info): Return right regs_info.
10460 (initialize_low_arch): Call initialize_low_arch_aarch32.
10462 2015-08-04 Yao Qi <yao.qi@linaro.org>
10464 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10465 * linux-aarch32-low.c: New file.
10466 * linux-aarch32-low.h: New file.
10467 * linux-arm-low.c (arm_fill_gregset): Move it to
10468 linux-aarch32-low.c.
10469 (arm_store_gregset): Likewise.
10470 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10471 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10472 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10473 (regs_info): Rename to regs_info_arm.
10474 (arm_regs_info): Return regs_info_aarch32 if
10475 have_ptrace_getregset is 1 and target description is
10476 arm_with_neon or arm_with_vfpv3.
10477 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10478 Call initialize_low_arch_aarch32 instead.
10480 2015-08-04 Yao Qi <yao.qi@linaro.org>
10482 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10483 * linux-low.c: ... here.
10484 * linux-low.h (have_ptrace_getregset): Declare it.
10486 2015-08-04 Pedro Alves <palves@redhat.com>
10488 * thread-db.c (struct thread_db): Use new typedefs.
10489 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10491 (disable_thread_event_reporting): Cast result of dlsym to
10492 destination function pointer type.
10493 (thread_db_mourn): Use td_ta_delete_ftype.
10495 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10497 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10499 (CDX_BREAKPOINT): Define for R2.
10500 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10501 (the_low_target): Add comments.
10503 2015-07-30 Yao Qi <yao.qi@linaro.org>
10505 * linux-arm-low.c (arm_hwcap): Remove it.
10506 (arm_read_description): New local variable arm_hwcap. Don't
10507 set arm_hwcap to zero.
10509 2015-07-30 Yao Qi <yao.qi@linaro.org>
10511 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10512 Use regcache->tdesc instead.
10513 (arm_store_wmmxregset): Likewise.
10514 (arm_fill_vfpregset): Likewise.
10515 (arm_store_vfpregset): Likewise.
10517 2015-07-30 Yao Qi <yao.qi@linaro.org>
10519 * linux-arm-low.c: Include arch/arm.h.
10520 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10521 (arm_store_gregset): Likewise.
10523 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10525 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10526 ptrace's 4th parameter.
10528 2015-07-27 Yao Qi <yao.qi@linaro.org>
10530 * configure.srv (case aarch64*-*-linux*): Don't set
10533 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10535 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10537 * linux-arm-low.c: Likewise.
10538 * linux-cris-low.c: Likewise.
10539 * linux-crisv32-low.c: Likewise.
10540 * linux-low.c: Likewise.
10541 * linux-m68k-low.c: Likewise.
10542 * linux-mips-low.c: Likewise.
10543 * linux-nios2-low.c: Likewise.
10544 * linux-s390-low.c: Likewise.
10545 * linux-sparc-low.c: Likewise.
10546 * linux-tic6x-low.c: Likewise.
10547 * linux-tile-low.c: Likewise.
10548 * linux-x86-low.c: Likewise.
10550 2015-07-24 Pedro Alves <palves@redhat.com>
10552 * config.in: Regenerate.
10553 * configure: Regenerate.
10555 2015-07-24 Pedro Alves <palves@redhat.com>
10557 * acinclude.m4: Include ../ptrace.m4.
10558 * configure.ac: Call GDB_AC_PTRACE.
10559 * config.in, configure: Regenerate.
10561 2015-07-24 Yao Qi <yao.qi@linaro.org>
10563 * linux-low.c (linux_create_inferior): Remove setting to
10564 proc->priv->new_inferior.
10565 (linux_attach): Likewise.
10566 (linux_low_filter_event): Likewise.
10567 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10569 2015-07-24 Yao Qi <yao.qi@linaro.org>
10571 * linux-low.c (linux_arch_setup): New function.
10572 (linux_low_filter_event): If proc->tdesc is NULL and
10573 proc->attached is true, call the_low_target.arch_setup.
10574 Otherwise, keep status pending, and return.
10575 (linux_resume_one_lwp_throw): Don't call get_pc if
10576 thread->while_stepping isn't NULL. Don't call
10577 get_thread_regcache if proc->tdesc is NULL.
10578 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10579 (linux_target_ops): Install arch_setup.
10580 * server.c (start_inferior): Call the_target->arch_setup.
10581 * target.h (struct target_ops) <arch_setup>: New field.
10582 (target_arch_setup): New marco.
10583 * lynx-low.c (lynx_target_ops): Update.
10584 * nto-low.c (nto_target_ops): Update.
10585 * spu-low.c (spu_target_ops): Update.
10586 * win32-low.c (win32_target_ops): Update.
10588 2015-07-24 Yao Qi <yao.qi@linaro.org>
10590 * linux-low.c (linux_add_process): Don't set
10591 proc->priv->new_inferior.
10592 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10593 (linux_attach): Likewise.
10595 2015-07-24 Yao Qi <yao.qi@linaro.org>
10597 * server.c (start_inferior): Code refactor.
10599 2015-07-24 Yao Qi <yao.qi@linaro.org>
10601 * server.c (process_serial_event): Set general_thread.
10603 2015-07-21 Yao Qi <yao.qi@linaro.org>
10605 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10606 aarch64_linux_get_debug_reg_capacity.
10608 2015-07-17 Yao Qi <yao.qi@linaro.org>
10610 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10611 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10612 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10613 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10614 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10615 (AARCH64_HWP_ALIGNMENT): Likewise.
10616 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10617 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10618 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10619 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10620 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10621 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10622 (struct aarch64_debug_reg_state): Likewise.
10623 (struct arch_lwp_info): Likewise.
10624 (aarch64_align_watchpoint): Likewise.
10625 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10626 (aarch64_watchpoint_length): Likewise.
10627 (aarch64_point_encode_ctrl_reg): Likewise
10628 (aarch64_point_is_aligned): Likewise.
10629 (aarch64_align_watchpoint): Likewise.
10630 (aarch64_linux_set_debug_regs):
10631 (aarch64_dr_state_insert_one_point): Likewise.
10632 (aarch64_dr_state_remove_one_point): Likewise.
10633 (aarch64_handle_breakpoint): Likewise.
10634 (aarch64_handle_aligned_watchpoint): Likewise.
10635 (aarch64_handle_unaligned_watchpoint): Likewise.
10636 (aarch64_handle_watchpoint): Likewise.
10638 2015-07-17 Yao Qi <yao.qi@linaro.org>
10640 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10641 and don't aarch64_get_debug_reg_state. All callers update.
10642 (aarch64_handle_aligned_watchpoint): Likewise.
10643 (aarch64_handle_unaligned_watchpoint): Likewise.
10644 (aarch64_handle_watchpoint): Likewise.
10645 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10646 (aarch64_remove_point): Likewise.
10648 2015-07-17 Yao Qi <yao.qi@linaro.org>
10650 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10652 (aarch64_handle_unaligned_watchpoint): Likewise.
10654 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10656 Revert the previous 3 commits:
10657 Move gdb_regex* to common/
10658 Move linux_find_memory_regions_full & co.
10659 gdbserver build-id attribute generator
10661 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10662 Jan Kratochvil <jan.kratochvil@redhat.com>
10664 gdbserver build-id attribute generator.
10665 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10666 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10667 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10669 (get_dynamic): Use find_pdhr to traverse program headers.
10670 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10671 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10672 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10673 (get_hex_build_id): New.
10674 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10675 to reply XML document.
10677 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10678 Jan Kratochvil <jan.kratochvil@redhat.com>
10680 * target.c: Include target/target-utils.h and fcntl.h.
10681 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10682 (target_fileio_read_stralloc): New functions.
10684 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10686 * Makefile.in (OBS): Add gdb_regex.o.
10687 (gdb_regex.o): New.
10688 * config.in: Rebuilt.
10689 * configure: Rebuilt.
10691 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10692 Jan Kratochvil <jan.kratochvil@redhat.com>
10694 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10695 * Makefile.in (OBS): Add target-utils.o.
10696 (linux-maps.o, target-utils.o): New.
10697 * configure.srv (srv_linux_obj): Add linux-maps.o.
10699 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10701 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10702 function, return 1.
10703 (the_low_target): Install it.
10705 2015-07-14 Pedro Alves <palves@redhat.com>
10707 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10708 Instead, ignore ECHILD, and throw an error for other errnos.
10710 2015-07-10 Pedro Alves <palves@redhat.com>
10712 * event-loop.c (struct callback_event) <data>: Change type to
10713 gdb_client_data instance instead of gdb_client_data pointer.
10714 (append_callback_event): Adjust.
10716 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10718 * linux-aarch64-low.c: Add comments for each linux_target_ops
10719 method. Remove comments already covered in target_ops and
10720 linux_target_ops definitions.
10721 (the_low_target): Add comments for each unimplemented method.
10723 2015-07-09 Yao Qi <yao.qi@linaro.org>
10725 * linux-aarch64-low.c (aarch64_regmap): Remove.
10726 (aarch64_usrregs_info): Remove.
10727 (regs_info): Set field usrregs to NULL.
10729 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10731 * linux-low.c: Include "rsp-low.h"
10732 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10733 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10734 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10735 (handle_btrace_enable_pt): New.
10736 (handle_btrace_general_set): Support "pt".
10737 (handle_btrace_conf_general_set): Support "pt:size".
10739 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10741 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10744 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10746 * linux-aarch64-low.c: Remove comment about endianness.
10747 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10748 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10751 2015-06-24 Gary Benson <gbenson@redhat.com>
10753 * linux-i386-ipa.c (stdint.h): Do not include.
10754 * lynx-i386-low.c (stdint.h): Likewise.
10755 * lynx-ppc-low.c (stdint.h): Likewise.
10756 * mem-break.c (stdint.h): Likewise.
10757 * thread-db.c (stdint.h): Likewise.
10758 * tracepoint.c (stdint.h): Likewise.
10759 * win32-low.c (stdint.h): Likewise.
10761 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10763 * server.c (write_qxfer_response): Update call to
10764 remote_escape_output.
10766 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10767 Jan Kratochvil <jan.kratochvil@redhat.com>
10769 Merge multiple hex conversions.
10770 * gdbreplay.c (tohex): Rename to 'fromhex'.
10771 (logchar): Use fromhex.
10773 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10775 * server.c (handle_qxfer_libraries): Set `version' attribute for
10778 2015-06-10 Gary Benson <gbenson@redhat.com>
10780 * target.h (struct target_ops) <multifs_open>: New field.
10781 <multifs_unlink>: Likewise.
10782 <multifs_readlink>: Likewise.
10783 * linux-low.c (nat/linux-namespaces.h): New include.
10784 (linux_target_ops): Initialize the_target->multifs_open,
10785 the_target->multifs_unlink and the_target->multifs_readlink.
10786 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10787 * hostio.c (hostio_fs_pid): New static variable.
10788 (hostio_handle_new_gdb_connection): New function.
10789 (handle_setfs): Likewise.
10790 (handle_open): Use the_target->multifs_open as appropriate.
10791 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10792 (handle_readlink): Use the_target->multifs_readlink as
10794 (handle_vFile): Handle vFile:setfs packets.
10795 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10796 after target_handle_new_gdb_connection.
10798 2015-06-10 Gary Benson <gbenson@redhat.com>
10800 * configure.ac (AC_CHECK_FUNCS): Add setns.
10801 * config.in: Regenerate.
10802 * configure: Likewise.
10803 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10804 (linux-namespaces.o): New rule.
10805 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10807 2015-06-09 Gary Benson <gbenson@redhat.com>
10809 * hostio.c (handle_open): Process mode argument with
10810 fileio_to_host_mode.
10812 2015-06-01 Yao Qi <yao.qi@linaro.org>
10814 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10815 * linux-x86-low.c: Likewise.
10817 2015-05-28 Don Breazeal <donb@codesourcery.com>
10819 * linux-low.c (handle_extended_wait): Initialize
10820 thread_info.last_resume_kind for new fork children.
10822 2015-05-15 Pedro Alves <palves@redhat.com>
10824 * target.h (target_handle_new_gdb_connection): Rewrite using if
10825 wrapped in do/while.
10827 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10829 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10830 * configure, config.in: Regenerate.
10831 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10834 2015-05-12 Don Breazeal <donb@codesourcery.com>
10836 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10837 PTRACE_EVENT_VFORK_DONE.
10838 (linux_low_ptrace_options, extended_event_reported): Add vfork
10840 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10841 and "vforkdone" for RSP 'T' Stop Reply Packet.
10842 * server.h (report_vfork_events): Declare
10845 2015-05-12 Don Breazeal <donb@codesourcery.com>
10847 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10848 (the_low_target) <new_fork>: Initialize new member.
10849 * linux-arm-low.c (arm_new_fork): New function.
10850 (the_low_target) <new_fork>: Initialize new member.
10851 * linux-low.c (handle_extended_wait): Call new target function
10853 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10854 * linux-mips-low.c (mips_add_watchpoint): New function
10855 extracted from mips_insert_point.
10856 (the_low_target) <new_fork>: Initialize new member.
10857 (mips_linux_new_fork): New function.
10858 (mips_insert_point): Call mips_add_watchpoint.
10859 * linux-x86-low.c (x86_linux_new_fork): New function.
10860 (the_low_target) <new_fork>: Initialize new member.
10862 2015-05-12 Don Breazeal <donb@codesourcery.com>
10864 * linux-low.c (handle_extended_wait): Implement return value,
10865 rename argument 'event_child' to 'event_lwp', handle
10866 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
10867 (linux_low_ptrace_options): New function.
10868 (linux_low_filter_event): Call linux_low_ptrace_options,
10869 use different argument fo linux_enable_event_reporting,
10870 use return value from handle_extended_wait.
10871 (extended_event_reported): New function.
10872 (linux_wait_1): Call extended_event_reported and set
10873 status to report fork events.
10874 (linux_write_memory): Add pid to debug message.
10875 (reset_lwp_ptrace_options_callback): New function.
10876 (linux_handle_new_gdb_connection): New function.
10877 (linux_target_ops): Initialize new structure member.
10878 * linux-low.h (struct lwp_info) <waitstatus>: New member.
10879 * lynx-low.c: Initialize new structure member.
10880 * remote-utils.c (prepare_resume_reply): Implement stop reason
10881 "fork" for "T" stop message.
10882 * server.c (handle_query): Call handle_new_gdb_connection.
10883 * server.h (report_fork_events): Declare global flag.
10884 * target.h (struct target_ops) <handle_new_gdb_connection>:
10886 (target_handle_new_gdb_connection): New macro.
10887 * win32-low.c: Initialize new structure member.
10889 2015-05-12 Don Breazeal <donb@codesourcery.com>
10891 * mem-break.c (APPEND_TO_LIST): Define macro.
10892 (clone_agent_expr): New function.
10893 (clone_one_breakpoint): New function.
10894 (clone_all_breakpoints): New function.
10895 * mem-break.h: Declare new functions.
10897 2015-05-12 Don Breazeal <donb@codesourcery.com>
10899 * linux-low.c (linux_supports_fork_events): New function.
10900 (linux_supports_vfork_events): New function.
10901 (linux_target_ops): Initialize new structure members.
10902 (initialize_low): Call linux_check_ptrace_features.
10903 * lynx-low.c (lynx_target_ops): Initialize new structure
10905 * server.c (report_fork_events, report_vfork_events):
10907 (handle_query): Add new features to qSupported packet and
10909 (captured_main): Initialize new global variables.
10910 * target.h (struct target_ops) <supports_fork_events>:
10912 <supports_vfork_events>: New member.
10913 (target_supports_fork_events): New macro.
10914 (target_supports_vfork_events): New macro.
10915 * win32-low.c (win32_target_ops): Initialize new structure
10918 2015-05-12 Gary Benson <gbenson@redhat.com>
10920 * server.c (handle_qxfer_exec_file): Use current process
10923 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
10925 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
10926 Remove HAVE_PTRACE_GETREGS conditionals.
10927 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
10928 instead of PTRACE_GETREGS and PTRACE_SETREGS.
10930 2015-05-08 Yao Qi <yao.qi@linaro.org>
10932 * linux-low.c (linux_supports_conditional_breakpoints): New
10934 (linux_target_ops): Install new target method.
10935 * lynx-low.c (lynx_target_ops): Install NULL hook for
10936 supports_conditional_breakpoints.
10937 * nto-low.c (nto_target_ops): Likewise.
10938 * spu-low.c (spu_target_ops): Likewise.
10939 * win32-low.c (win32_target_ops): Likewise.
10940 * server.c (handle_query): Check
10941 target_supports_conditional_breakpoints.
10942 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10944 (target_supports_conditional_breakpoints): New macro.
10946 2015-05-06 Pedro Alves <palves@redhat.com>
10949 * server.c (start_inferior): If the process exits, mourn it.
10951 2015-04-21 Gary Benson <gbenson@redhat.com>
10953 * hostio.c (fileio_open_flags_to_host): Factored out to
10954 fileio_to_host_openflags in common/fileio.c. Single use
10957 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10959 * linux-xtensa-low.c (xtensa_fill_gregset)
10960 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
10963 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
10965 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
10966 (regs_info): Replace usrregs pointer with NULL.
10968 2015-04-17 Gary Benson <gbenson@redhat.com>
10970 * target.h (struct target_ops) <pid_to_exec_file>: New field.
10971 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
10972 * server.c (handle_qxfer_exec_file): New function.
10973 (qxfer_packets): Add exec-file entry.
10974 (handle_query): Report qXfer:exec-file:read as supported packet.
10976 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
10978 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
10980 2015-04-09 Gary Benson <gbenson@redhat.com>
10982 * hostio-errno.c (errno_to_fileio_error): Remove function.
10983 Update caller to use remote_fileio_to_fio_error.
10985 2015-04-09 Yao Qi <yao.qi@linaro.org>
10987 * linux-low.c (linux_insert_point): Call
10988 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
10989 (linux_remove_point): Call remove_memory_breakpoint if type is
10991 * linux-x86-low.c (x86_insert_point): Don't call
10992 insert_memory_breakpoint.
10993 (x86_remove_point): Don't call remove_memory_breakpoint.
10995 2015-04-01 Pedro Alves <palves@redhat.com>
10996 Cleber Rosa <crosa@redhat.com>
10998 * server.c (gdbserver_usage): Reorganize and extend the usage
11001 2015-03-24 Pedro Alves <palves@redhat.com>
11003 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11004 output. Also dump TRAP_TRACE.
11005 (linux_low_filter_event): In debug output, distinguish a
11006 resume_stop SIGSTOP from a delayed SIGSTOP.
11008 2015-03-24 Gary Benson <gbenson@redhat.com>
11010 * linux-x86-low.c (x86_linux_new_thread): Moved to
11012 (x86_linux_prepare_to_resume): Likewise.
11014 2015-03-24 Gary Benson <gbenson@redhat.com>
11016 * Makefile.in (x86-linux-dregs.o): New rule.
11017 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11018 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11019 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11020 (x86_linux_dr_get): Likewise.
11021 (x86_linux_dr_set): Likewise.
11022 (update_debug_registers_callback): Likewise.
11023 (x86_linux_dr_set_addr): Likewise.
11024 (x86_linux_dr_get_addr): Likewise.
11025 (x86_linux_dr_set_control): Likewise.
11026 (x86_linux_dr_get_control): Likewise.
11027 (x86_linux_dr_get_status): Likewise.
11028 (x86_linux_update_debug_registers): Likewise.
11030 2015-03-24 Gary Benson <gbenson@redhat.com>
11032 * linux-x86-low.c (x86_linux_update_debug_registers):
11033 New function, factored out from...
11034 (x86_linux_prepare_to_resume): ...this.
11036 2015-03-24 Gary Benson <gbenson@redhat.com>
11038 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11039 (x86_linux_dr_set): Likewise.
11040 (update_debug_registers_callback): Likewise.
11041 (x86_linux_dr_set_addr): Likewise.
11042 (x86_linux_dr_get_addr): Likewise.
11043 (x86_linux_dr_set_control): Likewise.
11044 (x86_linux_dr_get_control): Likewise.
11045 (x86_linux_dr_get_status): Likewise.
11046 (x86_linux_prepare_to_resume): Likewise.
11048 2015-03-24 Gary Benson <gbenson@redhat.com>
11050 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11051 Use perror_with_name. Pass string through gettext.
11052 (x86_linux_dr_set): Likewise.
11054 2015-03-24 Gary Benson <gbenson@redhat.com>
11056 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11057 (x86_linux_dr_set_addr): ...this.
11058 (x86_dr_low_get_addr): Rename to...
11059 (x86_linux_dr_get_addr): ...this.
11060 (x86_dr_low_set_control): Rename to...
11061 (x86_linux_dr_set_control): ...this.
11062 (x86_dr_low_get_control): Rename to...
11063 (x86_linux_dr_get_control): ...this.
11064 (x86_dr_low_get_status): Rename to...
11065 (x86_linux_dr_get_status): ...this.
11066 (x86_dr_low): Update with new function names.
11068 2015-03-24 Gary Benson <gbenson@redhat.com>
11070 * Makefile.in (x86-linux.o): New rule.
11071 * configure.srv: Add x86-linux.o to relevant targets.
11072 * linux-low.c (lwp_set_arch_private_info): New function.
11073 (lwp_arch_private_info): Likewise.
11074 * linux-x86-low.c: Include nat/x86-linux.h.
11075 (arch_lwp_info): Removed structure.
11076 (update_debug_registers_callback):
11077 Use lwp_set_debug_registers_changed.
11078 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11079 and lwp_set_debug_registers_changed.
11080 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11082 2015-03-24 Gary Benson <gbenson@redhat.com>
11084 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11085 * linux-arm-low.c (arm_new_thread): Likewise.
11086 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11087 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11088 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11089 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11091 2015-03-24 Gary Benson <gbenson@redhat.com>
11093 * linux-low.c (ptid_of_lwp): New function.
11094 (lwp_is_stopped): Likewise.
11095 (lwp_stop_reason): Likewise.
11096 * linux-x86-low.c (update_debug_registers_callback):
11097 Use lwp_is_stopped.
11098 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11101 2015-03-24 Gary Benson <gbenson@redhat.com>
11103 * linux-low.h (linux_stop_lwp): Remove declaration.
11105 2015-03-24 Gary Benson <gbenson@redhat.com>
11107 * linux-low.h: Include nat/linux-nat.h.
11108 * linux-low.c (iterate_over_lwps_args): New structure.
11109 (iterate_over_lwps_filter): New function.
11110 (iterate_over_lwps): Likewise.
11111 * linux-x86-low.c (update_debug_registers_callback):
11112 Update signature to what iterate_over_lwps expects.
11113 Remove PID check that iterate_over_lwps now performs.
11114 (x86_dr_low_set_addr): Use iterate_over_lwps.
11115 (x86_dr_low_set_control): Likewise.
11117 2015-03-24 Gary Benson <gbenson@redhat.com>
11119 * linux-x86-low.c (x86_debug_reg_state): New function.
11120 (x86_linux_prepare_to_resume): Use the above.
11122 2015-03-24 Gary Benson <gbenson@redhat.com>
11124 * linux-low.c (current_lwp_ptid): New function.
11125 * linux-x86-low.c: Include nat/linux-nat.h.
11126 (x86_dr_low_get_addr): Use current_lwp_ptid.
11127 (x86_dr_low_get_control): Likewise.
11128 (x86_dr_low_get_status): Likewise.
11130 2015-03-20 Pedro Alves <palves@redhat.com>
11132 * tracepoint.c (cmd_qtstatus): Make "str" const.
11134 2015-03-20 Pedro Alves <palves@redhat.com>
11136 * server.c (handle_general_set): Make "req_str" const.
11138 2015-03-19 Pedro Alves <palves@redhat.com>
11140 * linux-low.c (linux_resume_one_lwp): Rename to ...
11141 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11142 instead call perror_with_name.
11143 (check_ptrace_stopped_lwp_gone): New function.
11144 (linux_resume_one_lwp): Reimplement as wrapper around
11145 linux_resume_one_lwp_throw that swallows errors if the LWP is
11148 2015-03-19 Pedro Alves <palves@redhat.com>
11150 * linux-low.c (count_events_callback, select_event_lwp_callback):
11151 No longer check whether the thread has resume_stop as last resume
11154 2015-03-19 Pedro Alves <palves@redhat.com>
11156 * linux-low.c (count_events_callback, select_event_lwp_callback):
11157 Use the lwp's status_pending_p field, not the thread's.
11159 2015-03-19 Pedro Alves <palves@redhat.com>
11161 * linux-low.c (select_event_lwp_callback): Update comments to
11162 no longer mention SIGTRAP.
11164 2015-03-18 Gary Benson <gbenson@redhat.com>
11166 * server.c (handle_query): Do not report vFile:fstat as supported.
11168 2015-03-11 Gary Benson <gbenson@redhat.com>
11170 * hostio.c (sys/types.h): New include.
11171 (sys/stat.h): Likewise.
11172 (common-remote-fileio.h): Likewise.
11173 (handle_fstat): New function.
11174 (handle_vFile): Handle vFile:fstat packets.
11176 2015-03-11 Gary Benson <gbenson@redhat.com>
11178 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11179 struct stat.st_blocks and struct stat.st_blksize.
11180 * configure: Regenerate.
11181 * config.in: Likewise.
11182 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11183 (OBS): Add common-remote-fileio.o.
11184 (common-remote-fileio.o): New rule.
11186 2015-03-09 Pedro Alves <palves@redhat.com>
11188 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11189 'struct sockaddr' pointer in 'accept' call.
11191 2015-03-09 Pedro Alves <palves@redhat.com>
11194 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 * configure.ac (build_warnings): Move
11209 -Wdeclaration-after-statement to the C-specific set.
11210 * configure: Regenerate.
11212 2015-03-07 Pedro Alves <palves@redhat.com>
11214 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11215 or <winsock2.h> here. Instead include "gdb_socket.h".
11216 (remote_open): Use union gdb_sockaddr_u.
11217 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11218 or <winsock2.h> here. Instead include "gdb_socket.h".
11219 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11220 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11222 (init_named_socket, gdb_agent_helper_thread): Use union
11225 2015-03-07 Pedro Alves <palves@redhat.com>
11227 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11230 2015-03-06 Yao Qi <yao.qi@linaro.org>
11232 * linux-aarch64-low.c (aarch64_insert_point): Use
11233 show_debug_regs as a boolean.
11234 (aarch64_remove_point): Likewise.
11236 2015-03-05 Pedro Alves <palves@redhat.com>
11238 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11239 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11240 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11241 * nto-low.c (nto_target_ops): Likewise.
11242 * spu-low.c (spu_target_ops): Likewise.
11243 * win32-low.c (win32_target_ops): Likewise.
11245 2015-03-04 Pedro Alves <palves@redhat.com>
11247 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11248 Decide whether a breakpoint triggered based on the SIGTRAP's
11250 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11251 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11252 (linux_low_filter_event): Check for breakpoints before checking
11254 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11256 (linux_stopped_by_sw_breakpoint)
11257 (linux_supports_stopped_by_sw_breakpoint)
11258 (linux_stopped_by_hw_breakpoint)
11259 (linux_supports_stopped_by_hw_breakpoint): New functions.
11260 (linux_target_ops): Install new target methods.
11262 2015-03-04 Pedro Alves <palves@redhat.com>
11264 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11265 * server.c (swbreak_feature, hwbreak_feature): New globals.
11266 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11267 (captured_main): Clear swbreak_feature and hwbreak_feature.
11268 * server.h (swbreak_feature, hwbreak_feature): Declare.
11269 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11270 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11271 supports_stopped_by_hw_breakpoint>: New fields.
11272 (target_supports_stopped_by_sw_breakpoint)
11273 (target_stopped_by_sw_breakpoint)
11274 (target_supports_stopped_by_hw_breakpoint)
11275 (target_stopped_by_hw_breakpoint): Declare.
11277 2015-03-04 Pedro Alves <palves@redhat.com>
11279 enum lwp_stop_reason -> enum target_stop_reason
11280 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11281 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11282 (linux_wait_1, stuck_in_jump_pad_callback)
11283 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11284 (linux_stopped_by_watchpoint):
11285 * linux-low.h (enum lwp_stop_reason): Delete.
11286 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11287 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11289 2015-03-04 Yao Qi <yao.qi@linaro.org>
11291 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11293 2015-03-03 Gary Benson <gbenson@redhat.com>
11295 * hostio.c (handle_vFile): Fix prefix lengths.
11297 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11299 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11302 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11304 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11305 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11306 (clean): Add "rm -f" for above C files.
11307 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11308 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11309 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11310 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11311 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11312 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11313 (init_registers_s390x_vx_linux64)
11314 (init_registers_s390x_tevx_linux64)
11315 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11316 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11318 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11319 (s390_store_vxrs_high): New functions.
11320 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11322 (s390_arch_setup): Add logic for selecting one of the new target
11323 descriptions. Activate the new vector regsets if applicable.
11324 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11325 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11326 and init_registers_s390x_tevx_linux64.
11328 2015-03-01 Pedro Alves <palves@redhat.com>
11330 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11333 2015-02-27 Pedro Alves <palves@redhat.com>
11335 * linux-x86-low.c (u_debugreg_offset): New function.
11336 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11338 2015-02-27 Pedro Alves <palves@redhat.com>
11340 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11341 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11342 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11343 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11344 (ps_lsetfpregs, ps_getpid)
11345 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11346 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11347 (ps_lsetxregs, ps_plog): Declare.
11349 2015-02-27 Pedro Alves <palves@redhat.com>
11351 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11352 IP_AGENT_EXPORT_FUNC.
11353 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11354 IP_AGENT_EXPORT_FUNC.
11355 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11356 (IP_AGENT_EXPORT): Delete.
11357 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11358 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11359 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11360 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11361 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11362 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11363 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11364 (traceframe_read_count, traceframe_write_count)
11365 (traceframes_created, trace_state_variables, get_raw_reg)
11366 (get_trace_state_variable_value, set_trace_state_variable_value)
11367 (ust_loaded, helper_thread_id, cmd_buf): Use
11368 IPA_SYM_EXPORTED_NAME.
11369 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11370 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11371 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11372 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11373 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11374 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11375 EXTERN_C_PUSH/EXTERN_C_POP.
11376 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11377 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11378 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11379 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11380 (traceframe_write_count, traceframe_read_count)
11381 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11382 (about_to_request_buffer_space, get_trace_state_variable_value)
11383 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11384 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11385 EXTERN_C_PUSH/EXTERN_C_POP.
11386 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11387 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11388 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11389 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11390 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11391 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11392 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11393 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11395 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11396 (IP_AGENT_EXPORT_VAR_DECL): Define.
11397 (tracing): Declare.
11398 (gdb_agent_get_raw_reg): Declare.
11400 2015-02-27 Tom Tromey <tromey@redhat.com>
11401 Pedro Alves <palves@redhat.com>
11403 Rename symbols whose names are reserved C++ keywords throughout.
11405 2015-02-27 Pedro Alves <palves@redhat.com>
11407 * Makefile.in (COMPILER): New, get it from autoconf.
11408 (CXX): Get from autoconf instead.
11409 (COMPILE.pre): Use COMPILER.
11410 (CC-LD): Rename to ...
11411 (CC_LD): ... this. Use COMPILER.
11412 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11413 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11414 * acinclude.m4: Include build-with-cxx.m4.
11415 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11416 Disable -Werror by default if building in C++ mode.
11417 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11418 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11419 the C++ compiler. Save/restore CXXFLAGS too.
11420 * configure: Regenerate.
11422 2015-02-27 Pedro Alves <palves@redhat.com>
11424 * acinclude.m4: Include libiberty.m4.
11425 * configure.ac: Call libiberty_INIT.
11426 * config.in, configure: Regenerate.
11428 2015-02-26 Pedro Alves <palves@redhat.com>
11430 * linux-low.c (linux_wait_1): When incrementing the PC past a
11431 program breakpoint always use the_low_target.breakpoint_len as
11432 increment, rather than the maximum between that and
11433 the_low_target.decr_pc_after_break.
11435 2015-02-23 Pedro Alves <palves@redhat.com>
11437 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11438 thread was doing a step-over; always adjust the PC if
11439 we stepped over a permanent breakpoint.
11440 (linux_wait_1): If we stepped over breakpoint that was on top of a
11441 permanent breakpoint, manually advance the PC past it.
11443 2015-02-23 Pedro Alves <palves@redhat.com>
11445 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11447 (x86_fill_gregset, x86_store_gregset): Use it when handling
11450 2015-02-20 Pedro Alves <palves@redhat.com>
11452 * thread-db.c: Include "nat/linux-procfs.h".
11453 (thread_db_init): Skip listing new threads if the kernel supports
11454 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11456 2015-02-20 Pedro Alves <palves@redhat.com>
11458 * linux-low.c (status_pending_p_callback): Use ptid_match.
11460 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11462 PR breakpoints/16812
11463 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11464 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11465 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11467 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11469 PR breakpoints/15956
11470 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11472 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11474 * linux-low.c (linux_low_btrace_conf): Print size.
11475 * server.c (handle_btrace_conf_general_set): New.
11476 (hanle_general_set): Call handle_btrace_conf_general_set.
11477 (handle_query): Report Qbtrace-conf:bts:size as supported.
11479 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11481 * linux-low.c (linux_low_enable_btrace): Update parameters.
11482 (linux_low_btrace_conf): New.
11483 (linux_target_ops)<to_btrace_conf>: Initialize.
11484 * server.c (current_btrace_conf): New.
11485 (handle_btrace_enable): Rename to ...
11486 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11487 to target_enable_btrace. Update comment. Update users.
11488 (handle_qxfer_btrace_conf): New.
11489 (qxfer_packets): Add btrace-conf entry.
11490 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11491 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11492 (target_ops)<read_btrace_conf>: New.
11493 (target_enable_btrace): Update parameters.
11494 (target_read_btrace_conf): New.
11496 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11498 * server.c (handle_btrace_general_set): Remove call to
11499 target_supports_btrace.
11500 (supported_btrace_packets): New.
11501 (handle_query): Call supported_btrace_packets.
11502 * target.h: include btrace-common.h.
11503 (btrace_target_info): Removed.
11504 (supports_btrace, target_supports_btrace): Update parameters.
11506 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11508 * Makefile.in (SFILES): Add common/btrace-common.c.
11509 (OBS): Add common/btrace-common.o.
11510 (btrace-common.o): Add build rules.
11511 * linux-low: Include btrace-common.h.
11512 (linux_low_read_btrace): Use struct btrace_data. Call
11513 btrace_data_init and btrace_data_fini.
11515 2015-02-06 Pedro Alves <palves@redhat.com>
11517 * thread-db.c (find_new_threads_callback): Add debug output.
11519 2015-02-04 Pedro Alves <palves@redhat.com>
11521 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11522 (resume_stopped_resumed_lwps): New function.
11523 (linux_wait_for_event_filtered): Use it.
11525 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11527 * Makefile.in (SFILES): Add linux-personality.c.
11528 (linux-personality.o): New rule.
11529 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11530 list of objects to be built.
11531 * linux-low.c: Include nat/linux-personality.h.
11532 (linux_create_inferior): Remove code to disable address space
11533 randomization (moved to ../nat/linux-personality.c). Create
11534 cleanup to disable address space randomization.
11536 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11538 * Makefile.in (posix-strerror.o): New rule.
11539 (mingw-strerror.o): Likewise.
11540 * configure: Regenerated.
11541 * configure.ac: Source file ../common/common.host. Initialize new
11542 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11544 2015-01-14 Yao Qi <yao@codesourcery.com>
11546 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11547 (ppc-linux.o): New rule.
11548 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11549 * configure.ac: AC_CHECK_FUNCS(getauxval).
11550 * config.in: Re-generated.
11551 * configure: Re-generated.
11552 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11553 ppc64_64bit_inferior_p
11555 2015-01-14 Yao Qi <yao@codesourcery.com>
11557 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11558 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11559 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11560 (PT_ORIG_R3, PT_TRAP): Likewise.
11561 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11562 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11563 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11565 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11567 * i387-fp.c (i387_cache_to_xsave): In look over
11568 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11569 zmmh_low_space field by use of zmmh_high_space.
11571 2015-01-09 Pedro Alves <palves@redhat.com>
11573 * linux-low.c (step_over_bkpt): Move higher up in the file.
11574 (handle_extended_wait): Don't store the stop_pc here.
11575 (get_stop_pc): Adjust comments and rename to ...
11576 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11577 stopped for a software breakpoint or hardware breakpoint.
11578 (thread_still_has_status_pending_p): New function.
11579 (status_pending_p_callback): Use
11580 thread_still_has_status_pending_p. If the event is no longer
11581 interesting, resume the LWP.
11582 (handle_tracepoints): Add assert.
11583 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11584 (wstatus_maybe_breakpoint): New function.
11585 (cancel_breakpoint): Delete function.
11586 (check_stopped_by_watchpoint): New function, factored out from
11587 linux_low_filter_event.
11588 (lp_status_maybe_breakpoint): Delete function.
11589 (linux_low_filter_event): Remove filter_ptid argument.
11590 Leave thread group exits pending here. Store the LWP's stop PC.
11591 Always leave events pending.
11592 (linux_wait_for_event_filtered): Pull all events out of the
11593 kernel, and leave them all pending.
11594 (count_events_callback, select_event_lwp_callback): Consider all
11596 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11597 (select_event_lwp): Only give preference to the stepping LWP in
11598 all-stop mode. Adjust comments.
11599 (ignore_event): New function.
11600 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11601 references to cancel_breakpoints. Adjust to renames. Also give
11602 equal priority to all LWPs that have had events in non-stop mode.
11603 If reporting a software breakpoint event, unadjust the LWP's PC.
11604 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11605 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11607 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11608 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11609 (linux_stopped_by_watchpoint): Adjust.
11610 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11611 * linux-low.h (enum lwp_stop_reason): New.
11612 (struct lwp_info) <stop_pc>: Adjust comment.
11613 <stopped_by_watchpoint>: Delete field.
11614 <stop_reason>: New field.
11615 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11616 * mem-break.c (software_breakpoint_inserted_here)
11617 (hardware_breakpoint_inserted_here): New function.
11618 * mem-break.h (software_breakpoint_inserted_here)
11619 (hardware_breakpoint_inserted_here): Declare.
11620 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11621 (cancel_breakpoints): Delete.
11622 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11623 (upload_fast_traceframes): Remove references to
11624 cancel_breakpoints.
11626 2015-01-09 Pedro Alves <palves@redhat.com>
11628 * thread-db.c (find_new_threads_callback): Ignore thread if the
11629 kernel thread ID is -1.
11631 2015-01-09 Pedro Alves <palves@redhat.com>
11633 * linux-low.c (linux_attach_fail_reason_string): Move to
11634 nat/linux-ptrace.c, and rename.
11635 (linux_attach_lwp): Update comment.
11636 (attach_proc_task_lwp_callback): New function.
11637 (linux_attach): Adjust to rename and use
11638 linux_proc_attach_tgid_threads.
11639 (linux_attach_fail_reason_string): Delete declaration.
11641 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11643 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11644 * server.c (gdbserver_version): Likewise.
11646 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11648 * remote-utils.c: Include ctype.h.
11649 (input_interrupt): Explicitly handle the case when the char
11650 received is the NUL byte. Improve the printing of non-ASCII
11653 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11655 * linux-low.c (linux_low_filter_event): Update call to
11656 linux_enable_event_reporting following the addition of
11657 a new parameter to that function.
11659 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11662 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11663 (AARCH64_FPCR_REGNO): Likewise.
11664 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11665 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11666 (aarch64_store_fpregset): Likewise.
11668 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11670 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11671 Remove FIXME comment about assumption about N.
11673 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11675 * configure.ac: If large-file support is disabled in GDBserver,
11676 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11677 * configure: Regenerate.
11679 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11681 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11682 warning upon ENODATA from ptrace.
11683 * linux-s390-low.c (s390_store_tdb): New.
11684 (s390_regsets): Add regset for NT_S390_TDB.
11686 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11688 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11689 without a fill_function.
11690 * linux-s390-low.c (s390_fill_last_break): Remove.
11691 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11692 (s390_arch_setup): Use regset's size instead of fill_function for
11693 loop end condition.
11695 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11697 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11698 the regset's store function when ptrace returned an error.
11699 * regcache.c (get_thread_regcache): Invalidate register cache
11700 before fetching inferior's registers.
11702 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11704 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11705 while-loop as for-loop.
11706 (regsets_store_inferior_registers): Likewise.
11708 2014-11-28 Yao Qi <yao@codesourcery.com>
11710 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11711 * config.in, configure: Re-generate.
11712 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11715 2014-11-21 Yao Qi <yao@codesourcery.com>
11717 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11718 (AC_CHECK_HEADERS): Remove malloc.h.
11719 * configure: Re-generated.
11720 * config.in: Re-generated.
11721 * server.h: Don't include alloca.h and malloc.h.
11722 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11723 Don't include malloc.h.
11725 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11727 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11728 corresponding ERRNO check in same block.
11730 2014-11-12 Pedro Alves <palves@redhat.com>
11732 * server.c (cont_thread): Update comment.
11733 (start_inferior, attach_inferior): No longer clear cont_thread.
11734 (handle_v_cont): No longer set cont_thread.
11735 (captured_main): Clear cont_thread each time a GDB connects.
11737 2014-11-12 Pedro Alves <palves@redhat.com>
11739 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11740 thread, and don't resume all threads if the Hc thread has exited.
11742 2014-11-12 Pedro Alves <palves@redhat.com>
11744 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11745 the process group instead of to a specific LWP.
11747 2014-10-15 Pedro Alves <palves@redhat.com>
11750 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11752 (arm_set_thread_context): Delete.
11753 (the_low_target): Adjust.
11754 * win32-i386-low.c (debug_registers_changed)
11755 (debug_registers_used): Delete.
11756 (update_debug_registers_callback): New function.
11757 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11758 needing to update their debug registers.
11759 (win32_get_current_dr): New function.
11760 (x86_dr_low_get_addr, x86_dr_low_get_control)
11761 (x86_dr_low_get_status): Fetch the debug register from the thread
11763 (i386_initial_stuff): Adjust.
11764 (i386_get_thread_context): Remove current_event parameter. Don't
11765 clear debug_registers_changed nor copy DR values to
11767 (i386_set_thread_context): Delete.
11768 (i386_prepare_to_resume): New function.
11769 (i386_thread_added): Mark the thread as needing to update irs
11771 (the_low_target): Remove i386_set_thread_context and install
11772 i386_prepare_to_resume.
11773 * win32-low.c (win32_get_thread_context): Adjust.
11774 (win32_set_thread_context): Use SetThreadContext
11776 (win32_prepare_to_resume): New function.
11777 (win32_require_context): New function, factored out from ...
11778 (thread_rec): ... this.
11779 (continue_one_thread): Call win32_prepare_to_resume on each thread
11780 we're about to continue.
11781 (win32_resume): Call win32_prepare_to_resume on the event thread.
11782 * win32-low.h (struct win32_thread_info)
11783 <debug_registers_changed>: New field.
11784 (struct win32_target_ops): Change prototype of set_thread_context,
11785 delete set_thread_context and add prepare_to_resume.
11786 (win32_require_context): New declaration.
11788 2014-10-08 Gary Benson <gbenson@redhat.com>
11790 * server.h: Do not include common-exceptions.h.
11792 2014-10-08 Gary Benson <gbenson@redhat.com>
11794 * server.h: Do not include cleanups.h.
11796 2014-09-30 James Hogan <james.hogan@imgtec.com>
11798 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11799 mips64-dsp-linux.c.
11801 2014-09-23 Yao Qi <yao@codesourcery.com>
11803 * linux-low.c (lp_status_maybe_breakpoint): New function.
11804 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11805 (count_events_callback): Likewise.
11806 (select_event_lwp_callback): Likewise.
11807 (cancel_breakpoints_callback): Likewise.
11809 2014-09-19 Don Breazeal <donb@codesourcery.com>
11811 * linux-low.c (handle_extended_wait): Call
11812 linux_ptrace_get_extended_event.
11813 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11814 linux_is_extended_waitstatus.
11816 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11818 * Makefile.in (CPPFLAGS): Define.
11819 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11820 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11822 2014-09-16 Gary Benson <gbenson@redhat.com>
11824 * inferiors.h (current_inferior): Renamed as...
11825 (current_thread): New variable. All uses updated.
11826 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11827 (maybe_move_out_of_jump_pad): Likewise.
11828 (cancel_breakpoint): Likewise.
11829 (linux_low_filter_event): Likewise.
11830 (wait_for_sigstop): Likewise.
11831 (linux_resume_one_lwp): Likewise.
11832 (need_step_over_p): Likewise.
11833 (start_step_over): Likewise.
11834 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11835 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11836 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11837 and save_inferior as saved_thread.
11838 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11840 (regcache_invalidate_thread): Likewise.
11841 * remote-utils.c (prepare_resume_reply): Likewise.
11842 * thread-db.c (thread_db_get_tls_address): Likewise.
11843 (disable_thread_event_reporting): Likewise.
11844 (remove_thread_event_breakpoints): Likewise.
11845 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11847 * target.h (set_desired_inferior): Renamed as...
11848 (set_desired_thread): New declaration. All uses updated.
11849 * server.c (myresume): Updated comment to reference thread instead
11851 (handle_serial_event): Likewise.
11852 (handle_target_event): Likewise.
11854 2014-09-12 Tom Tromey <tromey@redhat.com>
11855 Gary Benson <gbenson@redhat.com>
11857 * regcache.h: Include common-regcache.h.
11858 (regcache_read_pc): Don't declare.
11859 * regcache.c (get_thread_regcache_for_ptid): New function.
11861 2014-09-11 Tom Tromey <tromey@redhat.com>
11862 Gary Benson <gbenson@redhat.com>
11864 * symbol.c: New file.
11865 * Makefile.in (SFILES): Add symbol.c.
11866 (OBS): Add symbol.o.
11868 2014-09-11 Gary Benson <gbenson@redhat.com>
11870 * target.c (target_stop_ptid, target_continue_ptid): New
11873 2014-09-11 Tom Tromey <tromey@redhat.com>
11874 Gary Benson <gbenson@redhat.com>
11876 * target.h: Include target/target.h.
11877 * target.c (target_read_memory, target_read_uint32)
11878 (target_write_memory): New functions.
11880 2014-09-11 Gary Benson <gbenson@redhat.com>
11882 * server.h (debug_hw_points): Don't declare.
11883 * server.c (debug_hw_points): Don't define. Replace all uses
11884 with show_debug_regs.
11885 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
11886 all uses with show_debug_regs.
11888 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
11890 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
11891 endianness into account.
11892 (ppc_supply_ptrace_register): Likewise.
11894 2014-09-03 James Hogan <james.hogan@imgtec.com>
11896 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
11897 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
11899 2014-09-03 Gary Benson <gbenson@redhat.com>
11901 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
11902 ALL_DEBUG_ADDRESS_REGISTERS.
11904 2014-09-02 Gary Benson <gbenson@redhat.com>
11906 * i386-low.h: Renamed as...
11907 * x86-low.h: New file. All type, function and variable name
11908 prefixes changed from "i386_" to "x86_". All references updated.
11909 * i386-low.c: Renamed as...
11910 * x86-low.c: New file. All type, function and variable name
11911 prefixes changed from "i386_" to "x86_". All references updated.
11913 2014-09-02 Gary Benson <gbenson@redhat.com>
11915 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
11916 (x86_linux_new_thread): Likewise.
11918 2014-08-29 Gary Benson <gbenson@redhat.com>
11920 * server.h (setjmp.h): Do not include.
11921 (toplevel): Do not declare.
11922 (common-exceptions.h): Include.
11923 (cleanups.h): Likewise.
11924 * server.c (toplevel): Do not define.
11925 (exit_code): New static global.
11926 (detach_or_kill_for_exit_cleanup): New function.
11927 (main): New function. Original main renamed to...
11928 (captured_main): New function.
11929 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
11931 2014-08-29 Gary Benson <gbenson@redhat.com>
11933 * Makefile.in (SFILES): Add common/common-exceptions.c.
11934 (OBS): Add common-exceptions.o.
11935 (common-exceptions.o): New rule.
11936 * utils.c (prepare_to_throw_exception): New function.
11938 2014-08-29 Gary Benson <gbenson@redhat.com>
11940 * config.in: Regenerate.
11941 * configure: Likewise.
11943 2014-08-29 Gary Benson <gbenson@redhat.com>
11945 * Makefile.in (SFILES): Add common/cleanups.c.
11947 (cleanups.o): New rule.
11949 2014-08-29 Gary Benson <gbenson@redhat.com>
11951 * utils.c (internal_vwarning): New function.
11953 2014-08-28 Gary Benson <gbenson@redhat.com>
11955 * utils.h (fatal): Remove declaration.
11956 * utils.c (fatal): Remove function.
11958 2014-08-28 Gary Benson <gbenson@redhat.com>
11960 * tracepoint.c (gdb_agent_init): Replace fatal with
11962 (initialize_tracepoint): Likewise.
11964 2014-08-28 Gary Benson <gbenson@redhat.com>
11966 * remote-utils.c (remote_prepare): Replace fatal with error.
11968 2014-08-28 Gary Benson <gbenson@redhat.com>
11970 * linux-low.c (linux_async): Replace fatal with warning.
11971 Tidy up and return.
11972 (linux_start_non_stop): Return -1 if linux_async failed.
11974 2014-08-28 Gary Benson <gbenson@redhat.com>
11976 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
11978 (i386_dr_low_get_addr): Remove vague comment.
11979 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
11982 2014-08-28 Gary Benson <gbenson@redhat.com>
11984 * inferiors.c (get_thread_process): Replace check with gdb_assert.
11985 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
11987 (linux_resume_one_lwp): Likewise.
11988 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
11990 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
11991 with internal_error.
11992 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
11993 (init_register_cache): Replace fatal with gdb_assert_not_reached.
11994 (find_register_by_name): Replace fatal with internal_error.
11995 (find_regno): Likewise.
11996 * tdesc.c (init_target_desc): Replace check with gdb_assert.
11997 * thread-db.c (thread_db_create_event): Likewise.
11998 (thread_db_load_search): Likewise.
11999 (try_thread_db_load_1): Likewise.
12000 * tracepoint.c (get_jump_space_head): Replace fatal with
12002 (claim_trampoline_space): Likewise.
12003 (have_fast_tracepoint_trampoline_buffer): Likewise.
12004 (cmd_qtstart): Likewise.
12005 (stop_tracing): Likewise.
12006 (fast_tracepoint_collecting): Likewise.
12007 (target_malloc): Likewise.
12008 (download_tracepoint): Likewise.
12009 (download_trace_state_variables): Replace check with gdb_assert.
12010 (upload_fast_traceframes): Replace fatal with internal_error.
12012 2014-08-19 Tom Tromey <tromey@redhat.com>
12013 Gary Benson <gbenson@redhat.com>
12015 * Makefile.in (SFILES): Add common/common-debug.c.
12016 (OBS): Add common-debug.o.
12017 (common-debug.o): New rule.
12018 * debug.h (debug_printf): Don't declare.
12019 * debug.c (debug_printf): Renamed and rewritten as...
12020 (debug_vprintf): New function.
12022 2014-08-19 Gary Benson <gbenson@redhat.com>
12024 * utils.h: Do not include print-utils.h.
12026 2014-08-19 Tom Tromey <tromey@redhat.com>
12027 Gary Benson <gbenson@redhat.com>
12029 * server.h: Add static assertion.
12030 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12032 2014-08-19 Tom Tromey <tromey@redhat.com>
12033 Gary Benson <gbenson@redhat.com>
12035 * Makefile.in (SFILES): Add common/errors.c.
12036 (OBS): Add errors.o.
12037 (IPA_OBS): Add errors-ipa.o.
12038 (errors.o): New rule.
12039 (errors-ipa.o): Likewise.
12040 * utils.h (perror_with_name, error, warning): Don't declare.
12041 * utils.c (warning): Renamed and rewritten as...
12042 (vwarning): New function.
12043 (error): Renamed and rewritten as...
12044 (verror): New function.
12045 (internal_error): Renamed and rewritten as...
12046 (internal_verror): New function.
12048 2014-08-07 Gary Benson <gbenson@redhat.com>
12050 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12051 * configure: Regenerate.
12052 * config.in: Likewise.
12053 * server.h: Do not include errno.h.
12054 * event-loop.c: Likewise.
12055 * hostio-errno.c: Likewise.
12056 * linux-low.c: Likewise.
12057 * remote-utils.c: Likewise.
12058 * spu-low.c: Likewise.
12059 * utils.c: Likewise.
12060 * gdbreplay.c: Unconditionally include errno.h.
12062 2014-08-07 Gary Benson <gbenson@redhat.com>
12064 * server.h: Do not include string.h.
12065 * event-loop.c: Likewise.
12066 * linux-low.c: Likewise.
12067 * regcache.c: Likewise.
12068 * remote-utils.c: Likewise.
12069 * spu-low.c: Likewise.
12070 * utils.c: Likewise.
12072 2014-08-07 Gary Benson <gbenson@redhat.com>
12074 * server.h: Do not include gdb_assert.h.
12076 2014-08-07 Gary Benson <gbenson@redhat.com>
12078 * server.h: Do not include common-utils.h.
12080 2014-08-07 Gary Benson <gbenson@redhat.com>
12082 * server.h: Do not include ptid.h.
12083 * notif.h: Likewise.
12085 2014-08-07 Gary Benson <gbenson@redhat.com>
12087 * server.h: Do not include gdb_locale.h.
12089 2014-08-07 Gary Benson <gbenson@redhat.com>
12091 * server.h: Do not include gdb/signals.h.
12092 * win32-low.c: Likewise.
12094 2014-08-07 Gary Benson <gbenson@redhat.com>
12096 * server.h: Do not include pathmax.h.
12098 2014-08-07 Gary Benson <gbenson@redhat.com>
12100 * server.h: Do not include libiberty.h.
12101 * linux-bfin-low.c: Likewise.
12103 2014-08-07 Gary Benson <gbenson@redhat.com>
12105 * server.h: Do not include ansidecl.h.
12107 2014-08-07 Gary Benson <gbenson@redhat.com>
12109 * linux-x86-low.c: Do not include stddef.h.
12110 * lynx-ppc-low.c: Likewise.
12111 * tracepoint.c: Likewise.
12113 2014-08-07 Gary Benson <gbenson@redhat.com>
12115 * server.h: Do not include stdarg.h.
12116 * nto-low.c: Likewise.
12118 2014-08-07 Gary Benson <gbenson@redhat.com>
12120 * server.h: Do not include stdlib.h.
12121 * inferiors.c: Likewise.
12122 * linux-low.c: Likewise.
12123 * regcache.c: Likewise.
12124 * spu-low.c: Likewise.
12125 * tracepoint.c: Likewise.
12126 * utils.c: Likewise.
12128 2014-08-07 Gary Benson <gbenson@redhat.com>
12130 * server.h: Do not include stdio.h.
12131 * linux-low.c: Likewise.
12132 * remote-utils.c: Likewise.
12133 * spu-low.c: Likewise.
12134 * utils.c: Likewise.
12135 * wincecompat.c: Likewise.
12137 2014-08-06 Gary Benson <gbenson@redhat.com>
12139 * regcache.c (init_register_cache): Move conditionals inside if.
12141 2014-08-06 Gary Benson <gbenson@redhat.com>
12143 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12145 2014-07-31 Gary Benson <gbenson@redhat.com>
12147 * ax.h: Do not include server.h.
12148 * gdbthread.h: Likewise.
12149 * lynx-low.h: Likewise.
12150 * notif.h: Likewise.
12152 2014-07-30 Gary Benson <gbenson@redhat.com>
12154 * server.h: Include common-defs.h.
12155 Do not include config.h or build-gnulib-gdbserver/config.h.
12157 2014-07-30 Gary Benson <gbenson@redhat.com>
12159 * hostio-errno.c: Move server.h to top of includes list.
12160 * inferiors.c: Likewise.
12161 * linux-x86-low.c: Likewise.
12162 * notif.c: Include server.h.
12164 2014-07-24 Tom Tromey <tromey@redhat.com>
12165 Gary Benson <gbenson@redhat.com>
12167 * server.h (CORE_ADDR): Now unsigned.
12169 2014-07-16 Pedro Alves <palves@redhat.com>
12171 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12173 2014-07-15 Pedro Alves <palves@redhat.com>
12175 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12178 2014-07-11 Pedro Alves <palves@redhat.com>
12180 * linux-low.c (kill_wait_lwp): New function, based on
12181 kill_one_lwp_callback, but use my_waitpid directly.
12182 (kill_one_lwp_callback, linux_kill): Use it.
12184 2014-06-23 Pedro Alves <palves@redhat.com>
12186 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12187 before setting DR0..DR3.
12189 2014-06-20 Gary Benson <gbenson@redhat.com>
12191 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12192 * configure: Regenerated.
12193 * config.in: Likewise.
12195 2014-06-20 Gary Benson <gbenson@redhat.com>
12197 * Makefile.in (SFILES): Update locations for files moved
12198 from common to nat.
12199 (object file files): Reordered.
12201 2014-06-20 Gary Benson <gbenson@redhat.com>
12203 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12204 (i386_dr_low_set_addr): Likewise.
12205 (i386_dr_low_get_addr): Likewise.
12206 (i386_dr_low_can_set_control): Likewise.
12207 (i386_dr_low_set_control): Likewise.
12208 (i386_dr_low_get_control): Likewise.
12209 (i386_dr_low_get_status): Likewise.
12210 (i386_get_debug_register_length): Likewise.
12211 * linux-x86-low.c (i386_dr_low_set_addr):
12212 Changed signature. Made static.
12213 (i386_dr_low_get_addr): Likewise.
12214 (i386_dr_low_set_control): Likewise.
12215 (i386_dr_low_get_control): Likewise.
12216 (i386_dr_low_get_status): Likewise.
12217 (i386_dr_low): New global variable.
12218 * win32-i386-low.c (i386_dr_low_set_addr):
12219 Changed signature. Made static.
12220 (i386_dr_low_get_addr): Likewise.
12221 (i386_dr_low_set_control): Likewise.
12222 (i386_dr_low_get_control): Likewise.
12223 (i386_dr_low_get_status): Likewise.
12224 (i386_dr_low): New global variable.
12226 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12228 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12229 * Makefile.in (AR, AR_FLAGS): Define.
12230 * configure: Regenerate.
12232 2014-06-19 Gary Benson <gbenson@redhat.com>
12234 * Makefile.in (i386-dregs.o): New rule.
12235 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12236 * i386-low.c (target.h): Remove include.
12237 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12238 (DR_CONTROL_SHIFT): Likewise.
12239 (DR_CONTROL_SIZE): Likewise.
12240 (DR_RW_EXECUTE): Likewise.
12241 (DR_RW_WRITE): Likewise.
12242 (DR_RW_READ): Likewise.
12243 (DR_RW_IORW): Likewise.
12244 (DR_LEN_1): Likewise.
12245 (DR_LEN_2): Likewise.
12246 (DR_LEN_4): Likewise.
12247 (DR_LEN_8): Likewise.
12248 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12249 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12250 (DR_ENABLE_SIZE): Likewise.
12251 (DR_LOCAL_SLOWDOWN): Likewise.
12252 (DR_GLOBAL_SLOWDOWN): Likewise.
12253 (DR_CONTROL_RESERVED): Likewise.
12254 (I386_DR_CONTROL_MASK): Likewise.
12255 (I386_DR_VACANT): Likewise.
12256 (I386_DR_LOCAL_ENABLE): Likewise.
12257 (I386_DR_GLOBAL_ENABLE): Likewise.
12258 (I386_DR_DISABLE): Likewise.
12259 (I386_DR_SET_RW_LEN): Likewise.
12260 (I386_DR_GET_RW_LEN): Likewise.
12261 (I386_DR_WATCH_HIT): Likewise.
12262 (i386_wp_op_t): Likewise.
12263 (i386_show_dr): Likewise.
12264 (i386_length_and_rw_bits): Likewise.
12265 (i386_insert_aligned_watchpoint): Likewise.
12266 (i386_remove_aligned_watchpoint): Likewise.
12267 (i386_handle_nonaligned_watchpoint): Likewise.
12268 i386_update_inferior_debug_regs(): Likewise.
12269 (i386_dr_insert_watchpoint): Likewise.
12270 (i386_dr_remove_watchpoint): Likewise.
12271 (i386_dr_region_ok_for_watchpoint): Likewise.
12272 (i386_dr_stopped_data_address): Likewise.
12273 (i386_dr_stopped_by_watchpoint): Likewise.
12275 2014-06-19 Gary Benson <gbenson@redhat.com>
12277 * i386-low.c (i386_dr_show): Renamed to
12278 i386_show_dr and made static. All uses updated.
12279 (i386_dr_length_and_rw_bits): Renamed to
12280 i386_length_and_rw_bits and made static.
12282 (i386_dr_insert_aligned_watchpoint): Renamed to
12283 i386_insert_aligned_watchpoint and made static.
12285 (i386_dr_remove_aligned_watchpoint): Renamed to
12286 i386_remove_aligned_watchpoint and made static.
12288 (i386_dr_update_inferior_debug_regs): Renamed to
12289 i386_update_inferior_debug_regs and made static.
12292 2014-06-18 Gary Benson <gbenson@redhat.com>
12294 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12295 (i386_dr_low_can_set_control): Likewise.
12296 (i386_get_debug_register_length): Likewise.
12297 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12298 (i386_dr_low_can_set_control): Likewise.
12299 (i386_get_debug_register_length): Likewise.
12301 2014-06-17 Gary Benson <gbenson@redhat.com>
12303 * i386-low.h (i386-dregs.h): New include.
12304 (DR_FIRSTADDR): Now in i386-dregs.h.
12305 (DR_LASTADDR): Likewise.
12306 (DR_NADDR): Likewise.
12307 (DR_STATUS): Likewise.
12308 (DR_CONTROL): Likewise.
12309 (i386_debug_reg_state): Likewise.
12310 (i386_dr_insert_watchpoint): Likewise.
12311 (i386_dr_remove_watchpoint): Likewise.
12312 (i386_dr_region_ok_for_watchpoint): Likewise.
12313 (i386_dr_stopped_data_address): Likewise.
12314 (i386_dr_stopped_by_watchpoint): Likewise.
12315 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12317 2014-06-18 Gary Benson <gbenson@redhat.com>
12319 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12320 i386_dr_insert_watchpoint.
12321 (i386_low_remove_watchpoint): Renamed to
12322 i386_dr_remove_watchpoint.
12323 (i386_low_region_ok_for_watchpoint): Renamed to
12324 i386_dr_region_ok_for_watchpoint.
12325 (i386_low_stopped_data_address): Renamed to
12326 i386_dr_stopped_data_address.
12327 (i386_low_stopped_by_watchpoint): Renamed to
12328 i386_dr_stopped_by_watchpoint.
12329 * i386-low.c (i386_show_dr): Renamed to
12330 i386_dr_show and made nonstatic. All uses updated.
12331 (i386_length_and_rw_bits): Renamed to
12332 i386_dr_length_and_rw_bits and made nonstatic.
12334 (i386_insert_aligned_watchpoint): Renamed to
12335 i386_dr_insert_aligned_watchpoint and made nonstatic.
12337 (i386_remove_aligned_watchpoint): Renamed to
12338 i386_dr_remove_aligned_watchpoint and made nonstatic.
12340 (i386_update_inferior_debug_regs): Renamed to
12341 i386_dr_update_inferior_debug_regs and made nonstatic.
12343 (i386_low_insert_watchpoint): Renamed to
12344 i386_dr_insert_watchpoint. All uses updated.
12345 (i386_low_remove_watchpoint): Renamed to
12346 i386_dr_remove_watchpoint. All uses updated.
12347 (i386_low_region_ok_for_watchpoint): Renamed to
12348 i386_dr_region_ok_for_watchpoint. All uses updated.
12349 (i386_low_stopped_data_address): Renamed to
12350 i386_dr_stopped_data_address. All uses updated.
12351 (i386_low_stopped_by_watchpoint): Renamed to
12352 i386_dr_stopped_by_watchpoint. All uses updated.
12354 2014-06-18 Gary Benson <gbenson@redhat.com>
12356 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12357 (i386_dr_low_can_set_control): Likewise.
12358 (i386_insert_aligned_watchpoint): New check.
12360 2014-06-18 Gary Benson <gbenson@redhat.com>
12362 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12365 2014-06-18 Gary Benson <gbenson@redhat.com>
12367 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12368 instead of fatal and error.
12369 (i386_handle_nonaligned_watchpoint): Likewise.
12371 2014-06-18 Gary Benson <gbenson@redhat.com>
12373 * i386-low.c (i386_get_debug_register_length): New macro.
12374 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12375 (i386_show_dr): Use debug_printf instead of fprintf. Use
12376 phex to format values.
12378 2014-06-18 Gary Benson <gbenson@redhat.com>
12380 * i386-low.h: Comment changes.
12381 * i386-low.c: Likewise.
12383 2014-06-18 Gary Benson <gbenson@redhat.com>
12385 * i386-low.c: Whitespace changes.
12387 2014-06-12 Tom Tromey <tromey@redhat.com>
12389 * utils.c (freeargv): Remove.
12391 2014-06-12 Tom Tromey <tromey@redhat.com>
12393 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12394 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12395 (parse_debug_format_options): Likewise.
12396 (gdbserver_usage): Likewise.
12397 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12398 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12399 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12401 ($(LIBGNU)): Depend on libiberty.
12402 (all-lib): Recurse into all subdirs.
12403 (install-only): Invoke "install" target in subdirs.
12404 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12406 * configure: Rebuild.
12407 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12408 for vasprintf, vsnprintf, or gettimeofday.
12409 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12412 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12414 * development.sh: Delete.
12415 * Makefile.in (config.status): Adjust dependency on development.sh.
12416 * configure.ac: Adjust development.sh source call.
12417 * configure: Regenerate.
12419 2014-06-02 Pedro Alves <palves@redhat.com>
12421 * ax.c (gdb_free_agent_expr): New function.
12422 * ax.h (gdb_free_agent_expr): New declaration.
12423 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12425 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12427 (clear_breakpoint_conditions_and_commands): New function.
12428 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12429 (clear_breakpoint_conditions_and_commands): New declaration.
12431 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12433 * linux-aarch64-low.c (asm/ptrace.h): Include.
12435 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12437 Fix TLS access for -static -pthread.
12438 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12439 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12440 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12442 2014-05-20 Pedro Alves <palves@redhat.com>
12444 * linux-aarch64-low.c (aarch64_insert_point)
12445 (aarch64_remove_point): No longer check whether the type is
12446 supported here. Adjust to new interface.
12447 (the_low_target): Install aarch64_supports_z_point_type as
12448 supports_z_point_type method.
12449 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12450 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12451 instead of a Z packet char. Adjust.
12452 (arm_supports_z_point_type): New function.
12453 (arm_insert_point, arm_remove_point): Adjust to new interface.
12454 (the_low_target): Install arm_supports_z_point_type.
12455 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12456 (cris_insert_point, cris_remove_point): Adjust to new interface.
12457 Don't check whether the type is supported here.
12458 (the_low_target): Install cris_supports_z_point_type.
12459 * linux-low.c (linux_supports_z_point_type): New function.
12460 (linux_insert_point, linux_remove_point): Adjust to new interface.
12461 * linux-low.h (struct linux_target_ops) <insert_point,
12462 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12463 raw_breakpoint pointer parameter.
12464 <supports_z_point_type>: New method.
12465 * linux-mips-low.c (mips_supports_z_point_type): New function.
12466 (mips_insert_point, mips_remove_point): Adjust to new interface.
12467 Use mips_supports_z_point_type.
12468 (the_low_target): Install mips_supports_z_point_type.
12469 * linux-ppc-low.c (the_low_target): Install NULL as
12470 supports_z_point_type method.
12471 * linux-s390-low.c (the_low_target): Install NULL as
12472 supports_z_point_type method.
12473 * linux-sparc-low.c (the_low_target): Install NULL as
12474 supports_z_point_type method.
12475 * linux-x86-low.c (x86_supports_z_point_type): New function.
12476 (x86_insert_point): Adjust to new insert_point interface. Use
12477 insert_memory_breakpoint. Adjust to new
12478 i386_low_insert_watchpoint interface.
12479 (x86_remove_point): Adjust to remove_point interface. Use
12480 remove_memory_breakpoint. Adjust to new
12481 i386_low_remove_watchpoint interface.
12482 (the_low_target): Install x86_supports_z_point_type.
12483 * lynx-low.c (lynx_target_ops): Install NULL as
12484 supports_z_point_type callback.
12485 * nto-low.c (nto_supports_z_point_type): New.
12486 (nto_insert_point, nto_remove_point): Adjust to new interface.
12487 (nto_target_ops): Install nto_supports_z_point_type.
12488 * mem-break.c: Adjust intro comment.
12489 (struct raw_breakpoint) <raw_type, size>: New fields.
12490 <inserted>: Update comment.
12491 <shlib_disabled>: Delete field.
12492 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12493 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12494 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12495 (raw_bkpt_type_to_target_hw_bp_type): New function.
12496 (find_enabled_raw_code_breakpoint_at): New function.
12497 (find_raw_breakpoint_at): New type and size parameters. Use them.
12498 (insert_memory_breakpoint): New function, based off
12499 set_raw_breakpoint_at.
12500 (remove_memory_breakpoint): New function.
12501 (set_raw_breakpoint_at): Reimplement.
12502 (set_breakpoint): New, based on set_breakpoint_at.
12503 (set_breakpoint_at): Reimplement.
12504 (delete_raw_breakpoint): Go through the_target->remove_point
12505 instead of assuming memory breakpoints.
12506 (find_gdb_breakpoint_at): Delete.
12507 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12508 (find_gdb_breakpoint): New function.
12509 (set_gdb_breakpoint_at): Delete.
12510 (z_type_supported): New function.
12511 (set_gdb_breakpoint_1): New function, loosely based off
12512 set_gdb_breakpoint_at.
12513 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12514 (delete_gdb_breakpoint_at): Delete.
12515 (delete_gdb_breakpoint_1): New function, loosely based off
12516 delete_gdb_breakpoint_at.
12517 (delete_gdb_breakpoint): New function.
12518 (clear_gdb_breakpoint_conditions): Rename to ...
12519 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12521 (add_condition_to_breakpoint): Make static.
12522 (add_breakpoint_condition): Take a struct breakpoint pointer
12523 instead of an address. Adjust.
12524 (gdb_condition_true_at_breakpoint): Rename to ...
12525 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12527 (gdb_condition_true_at_breakpoint): Reimplement.
12528 (add_breakpoint_commands): Take a struct breakpoint pointer
12529 instead of an address. Adjust.
12530 (gdb_no_commands_at_breakpoint): Rename to ...
12531 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12532 parameter. Return true if no breakpoint was found. Change debug
12534 (gdb_no_commands_at_breakpoint): Reimplement.
12535 (run_breakpoint_commands): Rename to ...
12536 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12537 and change return type to boolean.
12538 (run_breakpoint_commands): New function.
12539 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12540 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12541 breakpoint. Go through the_target->remove_point instead of
12542 assuming memory breakpoint.
12543 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12544 software and hardware breakpoints.
12545 (reinsert_raw_breakpoint): Go through the_target->insert_point
12546 instead of assuming memory breakpoint.
12547 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12548 software and hardware breakpoints.
12549 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12550 Check both software and hardware breakpoints.
12551 (validate_inserted_breakpoint): Assert the breakpoint is a
12552 software breakpoint. Set the inserted flag to -1 instead of
12553 setting shlib_disabled.
12554 (delete_disabled_breakpoints): Adjust.
12555 (validate_breakpoints): Only validate software breakpoints.
12556 Adjust to inserted flag change.
12557 (check_mem_read, check_mem_write): Skip breakpoint types other
12558 than software breakpoints. Adjust to inserted flag change.
12559 * mem-break.h (enum raw_bkpt_type): New enum.
12560 (raw_breakpoint, struct process_info): Forward declare.
12561 (Z_packet_to_target_hw_bp_type): Delete declaration.
12562 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12563 (set_gdb_breakpoint, delete_gdb_breakpoint)
12564 (clear_breakpoint_conditions): New declarations.
12565 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12566 (breakpoint_inserted_here): Update comment.
12567 (add_breakpoint_condition, add_breakpoint_commands): Replace
12568 address parameter with a breakpoint pointer parameter.
12569 (gdb_breakpoint_here): Update comment.
12570 (delete_gdb_breakpoint_at): Delete.
12571 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12572 * server.c (process_point_options): Take a struct breakpoint
12573 pointer instead of an address. Adjust.
12574 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12575 delete_gdb_breakpoint.
12576 * spu-low.c (spu_target_ops): Install NULL as
12577 supports_z_point_type method.
12578 * target.h: Include mem-break.h.
12579 (struct target_ops) <prepare_to_access_memory>: Update comment.
12580 <supports_z_point_type>: New field.
12581 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12582 instead of a char. Also take a raw breakpoint pointer.
12583 * win32-arm-low.c (the_low_target): Install NULL as
12584 supports_z_point_type.
12585 * win32-i386-low.c (i386_supports_z_point_type): New function.
12586 (i386_insert_point, i386_remove_point): Adjust to new interface.
12587 (the_low_target): Install i386_supports_z_point_type.
12588 * win32-low.c (win32_supports_z_point_type): New function.
12589 (win32_insert_point, win32_remove_point): Adjust to new interface.
12590 (win32_target_ops): Install win32_supports_z_point_type.
12591 * win32-low.h (struct win32_target_ops):
12592 <supports_z_point_type>: New method.
12593 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12594 instead of a char. Also take a raw breakpoint pointer.
12596 2014-05-20 Pedro Alves <palves@redhat.com>
12598 * mem-break.h: Include break-common.h.
12599 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12600 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12601 (Z_packet_to_target_hw_bp_type): New declaration.
12602 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12603 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12604 (Z_PACKET_ACCESS_WP): Delete macros.
12605 (Z_packet_to_hw_type): Delete function.
12606 * i386-low.h: Don't include break-common.h here.
12607 (Z_packet_to_hw_type): Delete declaration.
12608 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12609 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12610 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12611 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12612 * linux-aarch64-low.c: Don't include break-common.h here.
12613 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12614 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12615 (Z_packet_to_target_hw_bp_type): Delete function.
12616 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12618 (mips_insert_point, mips_remove_point): Use
12619 Z_packet_to_target_hw_bp_type.
12621 2014-05-20 Pedro Alves <palves@redhat.com>
12623 * linux-aarch64-low.c: Include break-common.h.
12624 (enum target_point_type): Delete.
12625 (Z_packet_to_point_type): Rename to ...
12626 (Z_packet_to_target_hw_bp_type): ... this, and return a
12627 target_hw_bp_type instead.
12628 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12629 instead of an enum target_point_type.
12630 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12632 (aarch64_dr_state_insert_one_point)
12633 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12634 (aarch64_handle_aligned_watchpoint)
12635 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12636 Take an enum target_hw_bp_type instead of an enum
12638 (aarch64_supports_z_point_type): New function.
12639 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12640 use Z_packet_to_target_hw_bp_type.
12642 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12644 * configure.ac: Only use -Werror by default when DEVELOPMENT
12646 * configure: Regenerate.
12648 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12650 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12651 * linux-x86-low.c (X86_64_USER_REGS): New.
12652 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12654 2014-04-28 Yao Qi <yao@codesourcery.com>
12656 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12659 2014-04-25 Pedro Alves <palves@redhat.com>
12662 * linux-low.c (linux_attach_fail_reason_string): New function.
12663 (linux_attach_lwp): Delete.
12664 (linux_attach_lwp_1): Rename to ...
12665 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12666 argument. Remove "initial" parameter. Return int instead of
12667 void. Don't error or warn here.
12668 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12669 failure to attach to the tgid. Call warning when failing to
12671 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12672 argument. Remove "initial" parameter. Return int instead of
12673 void. Don't error or warn here.
12674 (linux_attach_fail_reason_string): New declaration.
12675 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12676 interface change. Use linux_attach_fail_reason_string.
12678 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12679 Walfred Tedeschi <walfred.tedeschi@intel.com>
12681 * Makefile.in: Added rules to handle new files
12682 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12683 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12684 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12685 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12686 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12687 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12688 x32-avx512-linux.o.
12689 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12690 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12691 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12692 i386/x32-avx512.xml.
12693 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12694 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12695 i386/x32-avx512-linux.xml.
12696 * i387-fp.c (num_avx512_k_registers): New constant for number
12698 (num_avx512_zmmh_low_registers): New constant for number of
12699 lower ZMM registers (0-15).
12700 (num_avx512_zmmh_high_registers): New constant for number of
12701 higher ZMM registers (16-31).
12702 (num_avx512_ymmh_registers): New contant for number of higher
12703 YMM registers (ymm16-31 added by avx521 on x86_64).
12704 (num_avx512_xmm_registers): New constant for number of higher
12705 XMM registers (xmm16-31 added by AVX512 on x86_64).
12706 (struct i387_xsave): Add space for AVX512 registers.
12707 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12708 Add code to handle AVX512 registers.
12709 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12710 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12711 prototypei from generated file.
12712 (tdesc_amd64_avx512_linux): Likewise.
12713 (init_registers_x32_avx512_linux): Likewise.
12714 (tdesc_x32_avx512_linux): Likewise.
12715 (init_registers_i386_avx512_linux): Likewise.
12716 (tdesc_i386_avx512_linux): Likewise.
12717 (x86_64_regmap): Add AVX512 registers.
12718 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12720 (initialize_low_arch): Add code to initialize AVX512 registers.
12722 2014-04-23 Pedro Alves <palves@redhat.com>
12724 * mem-break.c (find_gdb_breakpoint_at): Make static.
12725 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12727 2014-04-23 Pedro Alves <palves@redhat.com>
12729 * i386-low.c: Don't include break-common.h here.
12730 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12731 prototype to take target_hw_bp_type as argument instead of a Z
12733 * i386-low.h: Include break-common.h here.
12734 (Z_packet_to_hw_type): Declare.
12735 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12737 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12738 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12739 (x86_remove_point): Convert the packet number to a
12740 target_hw_bp_type before calling i386_low_remove_watchpoint.
12741 * win32-i386-low.c (i386_insert_point): Convert the packet number
12742 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12743 (i386_remove_point): Convert the packet number to a
12744 target_hw_bp_type before calling i386_low_remove_watchpoint.
12746 2014-04-23 Pedro Alves <palves@redhat.com>
12748 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12750 2014-04-10 Pedro Alves <palves@redhat.com>
12752 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12753 Check if the condition or command is NULL before checking if the
12754 breakpoint is known. On success, return true.
12755 * mem-break.h (add_breakpoint_condition): Document return.
12756 (add_breakpoint_commands): Add describing comment.
12757 * server.c (skip_to_semicolon): New function.
12758 (process_point_options): Use it.
12760 2014-04-09 Pedro Alves <palves@redhat.com>
12762 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12765 2014-02-27 Pedro Alves <palves@redhat.com>
12768 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12770 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12772 (last_thread_of_process_p): Take a PID argument instead of a
12774 (linux_wait_for_lwp): Delete.
12775 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12777 (linux_low_filter_event): New function, party factored out from
12778 linux_wait_for_event.
12779 (linux_wait_for_event): Rename to ...
12780 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12781 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12782 sigsuspend. Check for zombie leaders.
12783 (linux_wait_for_event): Reimplement as wrapper around
12784 linux_wait_for_event_filtered.
12785 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12786 a normal or signal exit is seen, it's the whole process exiting.
12787 (wait_for_sigstop): No longer a for_each_inferior callback.
12788 Rewrite on top of linux_wait_for_event_filtered.
12789 (stop_all_lwps): Call wait_for_sigstop directly.
12790 * server.c (resume, handle_target_event): Handle
12791 TARGET_WAITKIND_NO_RESUMED.
12793 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12795 * win32-low.c (psapi_get_dll_name,
12796 * win32_CreateToolhelp32Snapshot): Delete.
12797 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12798 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12800 (handle_load_dll): Add function description.
12801 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12803 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12805 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12807 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12808 base address when calling win32_add_one_solib.
12809 (handle_load_dll): Delete local variable load_addr.
12810 Remove 0x1000 offset applied to DLL base address when calling
12811 win32_add_one_solib.
12812 (handle_unload_dll): Add comment.
12814 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12816 * win32-low.c (win32_add_all_dlls): Renames
12817 win32_ensure_ntdll_loaded. Rewrite function documentation.
12818 Adjust implementation to always load all DLLs.
12819 Add 0x1000 offset to DLL base address when calling
12820 win32_add_one_solib.
12821 (child_initialization_done): New static global.
12822 (do_initial_child_stuff): Set child_initialization_done to
12823 zero during child initialization, and 1 after. Replace call
12824 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12826 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12827 (handle_unload_dll): Add function documentation.
12828 (get_child_debug_event): Ignore load and unload DLL events
12829 during child initialization.
12831 2014-02-20 Doug Evans <dje@google.com>
12833 Remove global all_lwps.
12834 * inferiors.h (ptid_of): Move here from linux-low.h.
12835 (pid_of, lwpid_of): Ditto.
12836 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12837 parameter is a struct thread_info * now.
12838 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12839 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12840 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12842 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12843 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12844 * linux-arm-low.c (update_registers_callback): Update, "entry"
12845 parameter is a struct thread_info * now.
12846 Fetch lwpid from current_inferior directly.
12847 (arm_insert_point): Pass &all_threads to find_inferior instead of
12849 (arm_remove_point): Ditto.
12850 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12851 (arm_prepare_to_resume): Fetch pid from thread.
12852 (arm_read_description): Fetch lwpid from current_inferior directly.
12853 * linux-low.c (all_lwps): Delete.
12854 (delete_lwp): Delete call to remove_inferior.
12855 (handle_extended_wait): Fetch lwpid from thread.
12856 (add_lwp): Don't set lwp->entry.id. Remove call to
12857 add_inferior_to_list.
12858 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12859 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12860 (kill_one_lwp_callback): Ditto.
12861 (linux_kill): Don't dereference NULL pointer.
12862 Fetch ptid,lwpid from thread.
12863 (get_detach_signal): Fetch ptid from thread.
12864 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
12865 Simplify call to regcache_invalidate_thread.
12866 (delete_lwp_callback): Update, "entry" parameter is a
12867 struct thread_info * now. Fetch pid from thread.
12868 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
12869 (status_pending_p_callback): Update, "entry" parameter is a
12870 struct thread_info * now. Fetch ptid from thread.
12871 (find_lwp_pid): Update, "entry" parameter is a
12872 struct thread_info * now.
12873 (linux_wait_for_lwp): Fetch pid from thread.
12874 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
12875 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
12876 (enqueue_one_deferred_signal): Fetch lwpid from thread.
12877 (dequeue_one_deferred_signal): Ditto.
12878 (cancel_breakpoint): Fetch ptid from current_inferior.
12879 (linux_wait_for_event): Pass &all_threads to find_inferior,
12880 not &all_lwps. Fetch ptid, lwpid from thread.
12881 (count_events_callback): Update, "entry" parameter is a
12882 struct thread_info * now.
12883 (select_singlestep_lwp_callback): Ditto.
12884 (select_event_lwp_callback): Ditto.
12885 (cancel_breakpoints_callback): Ditto.
12886 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
12888 (select_event_lwp): Ditto. Fetch ptid from event_thread.
12889 (unsuspend_one_lwp): Update, "entry" parameter is a
12890 struct thread_info * now.
12891 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
12893 (linux_stabilize_threads): Ditto. And for for_each_inferior.
12894 Fetch lwpid from thread, not lwp.
12895 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
12896 Pass &all_threads to find_inferior, not &all_lwps.
12897 (send_sigstop): Fetch lwpid from thread, not lwp.
12898 (send_sigstop_callback): Update, "entry" parameter is a
12899 struct thread_info * now.
12900 (suspend_and_send_sigstop_callback): Ditto.
12901 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
12902 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
12903 struct thread_info * now.
12904 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
12906 (lwp_running): Update, "entry" parameter is a
12907 struct thread_info * now.
12908 (stop_all_lwps): Fetch ptid from thread.
12909 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
12910 (linux_resume_one_lwp): Fetch lwpid from thread.
12911 (linux_set_resume_request): Update, "entry" parameter is a
12912 struct thread_info * now. Fetch pid, lwpid from thread.
12913 (resume_status_pending_p): Update, "entry" parameter is a
12914 struct thread_info * now.
12915 (need_step_over_p): Ditto. Fetch lwpid from thread.
12916 (start_step_over): Fetch lwpid from thread.
12917 (linux_resume_one_thread): Update, "entry" parameter is a
12918 struct thread_info * now. Fetch lwpid from thread.
12919 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
12920 (proceed_one_lwp): Update, "entry" parameter is a
12921 struct thread_info * now. Fetch lwpid from thread.
12922 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
12923 struct thread_info * now.
12924 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
12925 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
12926 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
12928 (regsets_store_inferior_registers): Ditto.
12929 (fetch_register, store_register): Ditto.
12930 (linux_read_memory, linux_write_memory): Ditto.
12931 (linux_request_interrupt): Ditto.
12932 (linux_read_auxv): Ditto.
12933 (linux_xfer_siginfo): Ditto.
12934 (linux_qxfer_spu): Ditto.
12935 (linux_qxfer_libraries_svr4): Ditto.
12936 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
12937 moved to inferiors.h.
12939 (get_thread_lwp): Update.
12940 (struct lwp_info): Delete member "entry". Simplify comment for
12942 (all_lwps): Delete.
12943 * linux-mips-low.c (mips_read_description): Fetch lwpid from
12944 current_inferior directly.
12945 (update_watch_registers_callback): Update, "entry" parameter is a
12946 struct thread_info * now. Fetch pid from thread.
12947 (mips_linux_prepare_to_resume): Fetch ptid from thread.
12948 (mips_insert_point): Fetch lwpid from current_inferior.
12949 Pass &all_threads to find_inferior, not &all_lwps.
12950 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
12951 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
12953 (mips_stopped_data_address): Ditto.
12954 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
12956 * linux-tile-low.c (tile_arch_setup): Ditto.
12957 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
12958 (update_debug_registers_callback): Update, "entry" parameter is a
12959 struct thread_info * now. Fetch pid from thread.
12960 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
12961 Pass &all_threads to find_inferior, not &all_lwps.
12962 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
12963 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
12964 Pass &all_threads to find_inferior, not &all_lwps.
12965 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
12966 (i386_dr_low_get_status): Ditto.
12967 (x86_linux_prepare_to_resume): Fetch ptid from thread.
12968 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
12969 (x86_linux_read_description): Ditto.
12970 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
12972 2014-02-20 Doug Evans <dje@google.com>
12974 * inferiors.c (get_first_inferior): Fix buglet.
12976 2014-02-19 Doug Evans <dje@google.com>
12978 * gdbthread.h (add_thread): Change result type to struct thread_info *.
12979 * inferiors.c (add_thread): Change result type to struct thread_info *.
12980 All callers updated.
12981 (add_lwp): Call add_thread here instead of in callers.
12982 All callers updated.
12983 * linux-low.h (get_lwp_thread): Rewrite.
12984 (struct lwp_info): New member "thread".
12986 2014-02-19 Doug Evans <dje@google.com>
12988 * linux-low.c (add_lwp): Change result to struct lwp_info *.
12989 All callers updated.
12991 2014-02-19 Doug Evans <dje@google.com>
12993 * inferiors.c (add_thread): Fix whitespace.
12995 2014-02-19 Doug Evans <dje@google.com>
12997 * dll.c (clear_dlls): Replace accessing list implemention details
12999 * gdbthread.h (get_first_thread): Declare.
13000 * inferiors.c (for_each_inferior_with_data): New function.
13001 (get_first_thread): New function.
13002 (find_thread_ptid): Simplify.
13003 (get_first_inferior): New function.
13004 (clear_list): Delete.
13005 (one_inferior_p): New function.
13006 (clear_inferior_list): New function.
13007 (clear_inferiors): Update.
13008 * inferiors.h (for_each_inferior_with_data): Declare.
13009 (clear_inferior_list): Declare.
13010 (one_inferior_p): Declare.
13011 (get_first_inferior): Declare.
13012 * linux-low.c (linux_wait_for_event): Replace accessing list
13013 implemention details with API function.
13014 * server.c (target_running): Ditto.
13015 (accumulate_file_name_length): New function.
13016 (emit_dll_description): New function.
13017 (handle_qxfer_libraries): Replace accessing list implemention
13018 details with API function.
13019 (handle_qxfer_threads_worker): New function.
13020 (handle_qxfer_threads_proper): Replace accessing list implemention
13021 details with API function.
13022 (handle_query): Ditto.
13023 (visit_actioned_threads_callback_ftype): New typedef.
13024 (visit_actioned_threads_data): New struct.
13025 (visit_actioned_threads): Rewrite to be find_inferior callback.
13026 (resume): Call find_inferior.
13027 (handle_status): Replace accessing list implemention
13028 details with API function.
13029 (process_serial_event): Replace accessing list implemention details
13031 * target.c (set_desired_inferior): Replace accessing list implemention
13032 details with API function.
13033 * tracepoint.c (same_process_p): New function.
13034 (gdb_agent_about_to_close): Replace accessing list implemention
13035 details with API function.
13036 * win32-low.c (child_delete_thread): Replace accessing list
13037 implemention details with API function.
13038 (match_dll_by_basename): New function.
13039 (dll_is_loaded_by_basename): New function.
13040 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13041 details call to dll_is_loaded_by_basename.
13043 2014-02-19 Doug Evans <dje@google.com>
13045 * dll.h (struct dll_info): Add comment.
13046 * gdbthread.h (struct thread_info): Add comment.
13047 (current_ptid): Simplify.
13048 * inferiors.c (add_process): Update.
13049 (remove_process): Update.
13050 * inferiors.h (struct process_info): Rename member "head" to "entry".
13051 * linux-low.c (delete_lwp): Update.
13053 (last_thread_of_process_p): Update.
13054 (kill_one_lwp_callback, linux_kill): Update.
13055 (status_pending_p_callback): Update.
13056 (wait_for_sigstop): Update. Simplify read of ptid.
13057 (start_step_over): Update.
13058 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13059 (get_lwp_thread): Update.
13060 (struct lwp_info): Rename member "head" to "entry".
13061 * regcache.h (inferior_list_entry): Delete.
13062 * server.c (kill_inferior_callback): Update.
13063 (detach_or_kill_inferior_callback): Update.
13064 (print_started_pid): Update.
13065 (print_attached_pid): Update.
13066 (process_serial_event): Simplify read of ptid.
13067 * thread-db.c (thread_db_create_event): Update.
13068 (thread_db_get_tls_address): Update.
13069 * win32-low.c (current_inferior_ptid): Simplify.
13071 2014-02-19 Tom Tromey <tromey@redhat.com>
13073 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13075 (target_supports_btrace): Update.
13077 2014-02-14 Yao Qi <yao@codesourcery.com>
13079 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13080 (rsp-low-ipa.o): New target.
13082 2014-02-12 Tom Tromey <tromey@redhat.com>
13084 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13085 convert_ascii_to_int.
13086 * regcache.c (registers_to_string): Likewise.
13087 * remote-utils.c (decode_M_packet): Likewise.
13088 * server.c (process_serial_event): Likewise.
13090 2014-02-12 Tom Tromey <tromey@redhat.com>
13092 * server.c (handle_query, handle_v_run): Use hex2bin, not
13094 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13096 2014-02-12 Tom Tromey <tromey@redhat.com>
13098 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13099 convert_int_to_ascii.
13100 * regcache.c (registers_to_string, collect_register_as_string):
13102 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13104 * server.c (process_serial_event): Likewise.
13105 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13106 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13108 2014-02-12 Tom Tromey <tromey@redhat.com>
13110 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13111 bin2hex, not hexify.
13112 * tracepoint.c (cmd_qtstatus): Likewise.
13114 2014-02-12 Tom Tromey <tromey@redhat.com>
13116 * remote-utils.c (monitor_output): Pass explicit length to
13119 2014-02-12 Tom Tromey <tromey@redhat.com>
13121 * tracepoint.c: Include rsp-low.h.
13122 * server.c: Include rsp-low.h.
13123 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13124 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13126 * remote-utils.c: Include rsp-low.h.
13127 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13128 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13129 (convert_int_to_ascii, convert_ascii_to_int): Move to
13131 * regcache.c: Include rsp-low.h.
13132 * ax.c: Include rsp-low.h.
13133 * Makefile.in (SFILES): Add common/rsp-low.c.
13134 (OBS): Add rsp-low.o.
13135 (rsp-low.o): New target.
13137 2014-02-12 Tom Tromey <tromey@redhat.com>
13139 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13140 Include print-utils.h.
13141 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13142 (plongest, thirty_two, phex_nz): Remove.
13143 * Makefile.in (SFILES): Add common/print-utils.c.
13144 (OBS): Add print-utils.o.
13145 (print-utils-ipa.o): New target.
13146 (print-utils.o): New target.
13147 (IPA_OBJS): Add print-utils-ipa.o.
13149 2014-02-06 Tom Tromey <tromey@redhat.com>
13151 * Makefile.in (SFILES): Fix indentation.
13153 2014-02-05 Doug Evans <dje@google.com>
13155 * linux-low.c (linux_wait_for_event): Improve comment.
13156 (linux_wait_1): Keep current_inferior in sync with event_child.
13158 2014-01-22 Doug Evans <dje@google.com>
13160 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13162 2014-01-22 Doug Evans <dje@google.com>
13164 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13165 * configure: Regenerate.
13166 * config.in: Regenerate.
13167 * Makefile.in (SFILES): Add debug.c.
13168 (OBS): Add debug.o.
13169 * debug.c: New file.
13170 * debug.h: New file.
13171 * linux-aarch64-low.c (*): Update all debugging printfs to use
13172 debug_printf instead of fprintf.
13173 * linux-arm-low.c (*): Ditto.
13174 * linux-cris-low.c (*): Ditto.
13175 * linux-crisv32-low.c (*): Ditto.
13176 * linux-m32r-low.c (*): Ditto.
13177 * linux-sparc-low.c (*): Ditto.
13178 * linux-x86.c (*): Ditto.
13179 * linux-low.c (*): Ditto.
13180 (linux_wait_1): Add calls to debug_enter, debug_exit.
13181 (linux_wait): Remove redundant debugging printf.
13182 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13183 (linux_resume, unstop_all_lwps): Ditto.
13184 * mem-break.c (*): Update all debugging printfs to use
13185 debug_printf instead of fprintf.
13186 * remote-utils.c (*): Ditto.
13187 * thread-db.c (*): Ditto.
13188 * server.c #include <ctype.h>, "gdb_vecs.h".
13189 (debug_threads): Moved to debug.c.
13190 (*): Update all debugging printfs to use debug_printf instead of
13192 (start_inferior): Replace call to fflush with call to debug_flush.
13193 (monitor_show_help): Mention set debug-format.
13194 (parse_debug_format_options): New function.
13195 (handle_monitor_command): Handle "monitor set debug-format".
13196 (gdbserver_usage): Mention --debug-format.
13197 (main): Parse --debug-format.
13198 * server.h (debug_threads): Declaration moved to debug.h.
13199 #include "debug.h".
13200 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13201 trace_debug_1 that uses debug_printf.
13202 (tracepoint_look_up_symbols): Update all debugging printfs to use
13203 debug_printf instead of fprintf.
13205 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13207 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13210 2014-01-17 Pedro Alves <palves@redhat.com>
13213 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13214 defined after including gdb_proc_service.h.
13216 2014-01-16 Doug Evans <dje@google.com>
13218 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13219 (match_dll): Use it.
13221 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13223 * target.h (target_ops) <read_btrace>: Change parameters and
13224 return type to allow error reporting.
13225 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13226 trace reading errors on.
13227 * linux-low.c (linux_low_read_btrace): Pass trace reading
13229 (linux_low_disable_btrace): New.
13231 2014-01-15 Doug Evans <dje@google.com>
13233 * inferiors.c (thread_id_to_gdb_id): Delete.
13234 * inferiors.h (thread_id_to_gdb_id): Delete.
13236 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13238 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13239 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13242 2014-01-08 Pedro Alves <palves@redhat.com>
13244 * server.c (handle_status): Don't discard previous queued stop
13245 replies or thread's pending status here.
13246 (main) <disconnection>: Do it here instead.
13248 2014-01-08 Pedro Alves <palves@redhat.com>
13250 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13251 * server.c (visit_actioned_threads, handle_pending_status): New
13253 (handle_v_cont): Factor out parts to ...
13254 (resume): ... this new function. If in all-stop, and a thread
13255 being resumed has a pending status, report it without actually
13257 (myresume): Adjust to use the new 'resume' function.
13258 (clear_pending_status_callback, set_pending_status_callback)
13259 (find_status_pending_thread_callback): New functions.
13260 (handle_status): Handle the case of multiple threads having
13261 interesting statuses to report. Report threads' real last signal
13262 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13263 with an interesting thread to report the status for, instead of
13264 always reporting the status of the first thread.
13266 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13268 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13269 * gdbreplay.c (gdbreplay_version): Likewise.
13271 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13273 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13274 iov.iov_len with the real length in use.
13276 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13278 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13279 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13280 for all targets that use win32-low.c.
13281 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13282 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13284 2013-12-13 Pedro Alves <palves@redhat.com>
13286 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13287 if equal to TARGET_WAITKIND_LOADED.
13288 * win32-low.c (cached_status): New static global.
13289 (win32_wait): Add declaration.
13290 (do_initial_child_stuff): Flush all initial pending debug events
13291 up to the initial breakpoint.
13292 (win32_wait): If CACHED_STATUS was set, return that instead
13293 of doing a real wait. Remove the code resuming the execution
13294 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13295 during the initial phase. Also remove the code changing
13296 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13297 TARGET_WAITKIND_STOPPED.
13299 2013-12-11 Yao Qi <yao@codesourcery.com>
13301 * notif.c (handle_notif_ack): Return 0 if no notification
13304 2013-11-20 Doug Evans <dje@google.com>
13306 * linux-low.c (linux_set_resume_request): Fix comment.
13308 2013-11-20 Doug Evans <dje@google.com>
13310 * linux-low.c (resume_status_pending_p): Tweak comment.
13312 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13314 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13315 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13316 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13317 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13318 (srv_amd64_regobj): Add amd64-mpx.o.
13319 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13320 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13321 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13322 * i387-fp.c (num_pl_bnd_register) Added constant.
13323 (num_pl_bnd_cfg_registers) Added constant.
13324 (struct i387_xsave) Added reserved area and MPX fields.
13325 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13326 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13328 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13329 (init_registers_amd64_mpx_linux): Declare new function.
13330 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13331 (x86_64_regmap): Add MPX registers.
13332 (x86_linux_read_description): Add MPX case.
13333 (initialize_low_arch): Initialize MPX targets.
13335 2013-11-18 Tom Tromey <tromey@redhat.com>
13337 * configure: Rebuild.
13338 * configure.ac: Don't check for stdlib.h.
13339 * gdbreplay.c: Unconditionally include stdlib.h.
13341 2013-11-18 Tom Tromey <tromey@redhat.com>
13343 * config.in: Rebuild.
13344 * configure: Rebuild.
13345 * configure.ac: Don't use AC_HEADER_DIRENT.
13347 2013-11-18 Tom Tromey <tromey@redhat.com>
13349 * server.h: Don't check HAVE_STRING_H.
13350 * gdbreplay.c: Don't check HAVE_STRING_H.
13351 * configure: Rebuild.
13353 2013-11-18 Tom Tromey <tromey@redhat.com>
13355 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13358 2013-11-08 Tom Tromey <tromey@redhat.com>
13360 * configure, config.in: Rebuild.
13361 * configure.ac: Remove unused configury.
13363 2013-11-08 Tom Tromey <tromey@redhat.com>
13365 * acinclude.m4: Include common.m4, codeset.m4.
13366 * configure, config.in: Rebuild.
13367 * configure.ac: Use GDB_AC_COMMON.
13369 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13371 * linux-s390-low.c (HWCAP_S390_TE): New define.
13372 (s390_arch_setup): Consider the TE field in the HWCAP for
13373 determining 'have_regset_tdb'.
13375 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13378 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13381 2013-10-02 Pedro Alves <palves@redhat.com>
13383 * server.c (process_serial_event): Don't output "GDBserver
13384 exiting" if GDB is connected through stdio.
13385 * target.c (mywait): Likewise, be silent if GDB is connected
13388 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13390 * lynx-low.c (lynx_add_threads_after_attach): New function.
13391 (lynx_attach): Remove call to add_thread. Add call to
13392 lynx_add_threads_after_attach instead.
13394 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13396 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13397 * config.in, configure: Regenerated.
13399 2013-09-18 Yao Qi <yao@codesourcery.com>
13402 * server.c (start_inferior): Clear 'resume_info'.
13404 2013-09-16 Jiong Wang <jiwang@tilera.com>
13406 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13409 2013-09-16 Jiong Wang <jiwang@tilera.com>
13411 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13412 linux-tile-low.o to srv_tgtobj.
13414 2013-09-16 Will Newton <will.newton@linaro.org>
13416 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13419 2013-09-06 Pedro Alves <palves@redhat.com>
13421 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13422 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13423 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13424 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13425 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13426 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13428 2013-09-06 Pedro Alves <palves@redhat.com>
13430 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13431 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13433 2013-09-06 Pedro Alves <palves@redhat.com>
13435 * linux-amd64-ipa.c: Include tracepoint.h.
13436 * linux-i386-ipa.c: Include tracepoint.h.
13438 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13440 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13441 (ps_get_thread_area): New function.
13443 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13445 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13446 (initialize_low_arch): Call init_registers_crisv32 rather than
13447 init_register_crisv32.
13449 2013-09-05 Pedro Alves <palves@redhat.com>
13451 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13453 * hostio.h: ... this new file.
13454 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13455 win32-low.c: Include hostio.h.
13457 2013-09-05 Pedro Alves <palves@redhat.com>
13459 * server.h (gdb_client_data, handler_func, callback_handler_func)
13460 (delete_file_handler, add_file_handler, append_callback_event)
13461 (delete_callback_event, start_event_loop, initialize_event_loop):
13462 Move to event-loop.h and include it.
13463 * event-loop.h: New file.
13465 2013-09-05 Pedro Alves <palves@redhat.com>
13467 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13468 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13469 (loaded_dll, unloaded_dll): Move to ...
13470 * dll.h: ... this new file.
13471 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13473 2013-09-05 Pedro Alves <palves@redhat.com>
13475 * server.h (current_process, get_thread_process, all_processes)
13476 (add_inferior_to_list, for_each_inferior, current_inferior)
13477 (remove_inferior, add_process, remove_process, find_process_pid)
13478 (have_started_inferiors_p, have_attached_inferiors_p)
13479 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13480 (clear_inferiors, find_inferior, find_inferior_id)
13481 (inferior_target_data, set_inferior_target_data)
13482 (inferior_regcache_data, set_inferior_regcache_data): Move to
13483 inferiors.h, and include it.
13484 * inferiors.h: New file.
13486 2013-09-05 Pedro Alves <palves@redhat.com>
13488 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13492 2013-09-05 Pedro Alves <palves@redhat.com>
13494 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13496 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13497 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13498 (handle_tracepoint_general_set, handle_tracepoint_query)
13499 (tracepoint_finished_step, tracepoint_was_hit)
13500 (release_while_stepping_state_list, current_traceframe)
13501 (in_readonly_region, traceframe_read_mem)
13502 (fetch_traceframe_registers, traceframe_read_sdata)
13503 (traceframe_read_info, struct fast_tpoint_collect_status)
13504 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13505 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13506 (supply_fast_tracepoint_registers)
13507 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13508 (ipa_tdesc, claim_trampoline_space)
13509 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13510 (agent_mem_read, agent_get_trace_state_variable_value)
13511 (agent_set_trace_state_variable_value, agent_tsv_read)
13512 (agent_mem_read_string, get_raw_reg_func_addr)
13513 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13514 * tracepoint.h: ... this new file.
13516 2013-09-05 Pedro Alves <palves@redhat.com>
13518 * server.h (perror_with_name, error, fatal, warning, paddress)
13519 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13521 * utils.h: New file.
13523 2013-09-05 Pedro Alves <palves@redhat.com>
13525 * server.h (remote_debug, noack_mode, transport_is_reliable)
13526 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13527 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13528 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13529 (write_enn, initialize_async_io, enable_async_io)
13530 (disable_async_io, check_remote_input_interrupt_request)
13531 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13532 (dead_thread_notify, prepare_resume_reply)
13533 (decode_address_to_semicolon, decode_address, decode_m_packet)
13534 (decode_M_packet, decode_X_packet, decode_xfer_write)
13535 (decode_search_memory_packet, unhexify, hexify)
13536 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13537 (look_up_one_symbol, relocate_instruction)
13538 (monitor_output): Move to remote-utils.h, and include it.
13539 * remote-utils.h: New file.
13541 2013-09-05 Pedro Alves <palves@redhat.com>
13543 * server.h (_): Delete.
13545 2013-09-02 Pedro Alves <palves@redhat.com>
13547 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13548 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13550 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13552 2013-09-02 Pierre Muller <muller@sourceware.org>
13554 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13555 or WriteProcessMemory complete successfully and handle
13556 ERROR_PARTIAL_COPY error.
13558 2013-09-02 Pedro Alves <palves@redhat.com>
13560 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13561 error instead of EIO.
13563 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13566 * linux-low.c: Include filestuff.h.
13567 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13568 * lynx-low.c: Include filestuff.h.
13569 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13570 * server.c: Include filestuff.h.
13571 (main): Call notice_open_fds.
13572 * spu-low.c: Include filestuff.h.
13573 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13575 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13577 * Makefile.in: Explain why ../target and ../nat are not
13578 listed as include file search paths.
13579 (linux-waitpid.o): New object file rule.
13580 * configure.srv (srv_native_linux_obj): New variable.
13581 Replace all occurrences of linux native object files with
13582 $srv_native_linux_obj.
13583 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13584 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13585 (linux_enable_event_reporting): Remove declaration.
13586 (my_waitpid): Moved to common/linux-waitpid.c.
13587 (linux_wait_for_event): Pass ptid when calling
13588 linux_enable_event_reporting.
13589 (linux_supports_tracefork_flag): Remove.
13590 (linux_enable_event_reporting): Likewise.
13591 (linux_tracefork_grandchild): Remove.
13592 (STACK_SIZE): Moved to common/linux-ptrace.c.
13593 (linux_tracefork_child): Remove.
13594 (linux_test_for_tracefork): Remove.
13595 (linux_look_up_symbols): Call linux_supports_traceclone.
13596 (initialize_low): Remove call to linux_test_for_tracefork.
13597 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13598 common/linux-ptrace.h.
13599 (PTRACE_TYPE_ARG4): Likewise.
13600 Include linux-ptrace.h.
13602 2013-08-21 Pedro Alves <palves@redhat.com>
13604 * config.in: Renegerate.
13606 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13608 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13609 (SFILES): Remove $(srcdir)/common/target-common.c and
13610 add $(srcdir)/target/waitstatus.c.
13611 (OBS): Remove target-common.o and add waitstatus.o.
13612 (server_h): Remove $(srcdir)/../common/target-common.h and
13613 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13614 and $(srcdir)/../target/waitstatus.h.
13615 (target-common.o): Remove.
13616 (waitstatus.o): New target object file.
13617 * target.h: Do not include target-common.h and
13618 include target/resume.h, target/wait.h and
13619 target/waitstatus.h.
13621 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13623 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13624 to PTRACE_TYPE_ARG3.
13625 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13626 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13628 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13629 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13631 2013-07-27 Jie Zhang <jie@codesourcery.com>
13632 Daniel Jacobowitz <dan@codesourcery.com>
13633 Yao Qi <yao@codesourcery.com>
13635 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13636 (mips-linux-watch.o): New rule.
13637 (mips_linux_watch_h): New variable.
13638 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13640 * linux-mips-low.c: Include mips-linux-watch.h.
13641 (struct arch_process_info, struct arch_lwp_info): New.
13642 (update_watch_registers_callback): New function.
13643 (mips_linux_new_process, mips_linux_new_thread) New functions.
13644 (mips_linux_prepare_to_resume, mips_insert_point): New
13646 (mips_remove_point, mips_stopped_by_watchpoint): New
13648 (rsp_bp_type_to_target_hw_bp_type): New function.
13649 (mips_stopped_data_address): New function.
13650 (the_low_target): Add watchpoint support functions.
13652 2013-07-27 Yao Qi <yao@codesourcery.com>
13654 * i386-low.c: Include break-common.h.
13655 (enum target_hw_bp_type): Remove.
13657 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13659 * Makefile.in (SFILES): /common/target-common.c.
13660 (OBS): Add target-common.o.
13661 (server_h): Add $(srcdir)/../common/target-common.h.
13662 (target-common.o): New target.
13663 * server.c (queue_stop_reply_callback): Free
13664 status string after use.
13665 * target.c (target_waitstatus_to_string): Remove.
13666 * target.h: Include target-common.h.
13667 (resume_kind): Likewise.
13668 (target_waitkind): Likewise.
13669 (target_waitstatus): Likewise.
13670 (TARGET_WNOHANG): Likewise.
13672 2013-07-04 Yao Qi <yao@codesourcery.com>
13674 * Makefile.in (host_alias): Use @host_noncanonical@.
13675 (target_alias): Use @target_noncanonical@.
13676 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13677 ACX_NONCANONICAL_HOST.
13678 * configure: Regenerated.
13681 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13683 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13684 * configure: Rebuild.
13685 * Makefile.in (version_host, version_target): Get from configure.
13686 (version.c): Use $(version_host) and $(version_target).
13688 2013-07-03 Pedro Alves <palves@redhat.com>
13690 * Makefile.in (config.status): Depend on development.sh.
13691 * acinclude.m4: Include libmcheck.m4.
13692 * configure: Regenerate.
13694 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13696 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13697 attribute inside the parentheses.
13698 (winapi_DebugSetProcessKillOnExit): Ditto.
13699 (winapi_DebugBreakProcess): Ditto.
13700 (winapi_GenerateConsoleCtrlEvent): Ditto.
13702 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13704 * notif.h (notif_event): Add a dummy member to avoid compiler
13707 2013-07-01 Pedro Alves <palves@redhat.com>
13709 * hostio.c (HOSTIO_PATH_MAX): Define.
13710 (require_filename, handle_open, handle_unlink, handle_readlink):
13713 2013-07-01 Pedro Alves <palves@redhat.com>
13715 * server.h: Include "pathmax.h".
13716 * linux-low.c: Don't include sys/param.h.
13717 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13719 * win32-low.c: Don't include sys/param.h.
13720 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13722 2013-07-01 Pedro Alves <palves@redhat.com>
13724 * event-loop.c: Don't check HAVE_UNISTD_H before including
13726 * gdbreplay.c: Likewise.
13727 * remote-utils.c: Likewise.
13728 * server.c: Likewise.
13729 * configure.ac: Don't check for unistd.h.
13730 * configure: Regenerate.
13732 2013-06-28 Tom Tromey <tromey@redhat.com>
13734 * Makefile.in (version.c): Use version.in, not
13737 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13739 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13740 * configure: Rebuild.
13741 * Makefile.in (version_host, version_target): Get from configure.
13742 (version.c): Use $(version_host) and $(version_target).
13744 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13746 Fix trace-status to output user name without trailing colon.
13747 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13749 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13751 Fix trace-status to output proper start-time and stop-time.
13752 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13753 output start time and stop time in hex as gdb expects.
13755 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13757 * tracepoint.c (build_traceframe_info_xml): Output trace state
13758 variables present in the trace buffer.
13760 2013-06-24 Tom Tromey <tromey@redhat.com>
13762 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13764 (version.o): Remove.
13765 * gdbreplay.c: Include version.h.
13766 (version, host_name): Don't declare.
13767 * server.h: Include version.h.
13768 (version, host_name): Don't declare.
13770 2013-06-12 Pedro Alves <palves@redhat.com>
13772 * linux-x86-low.c (linux_is_elf64): Delete global.
13773 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13774 with local linux_pid_exe_is_elf_64_file use.
13776 2013-06-11 Pedro Alves <palves@redhat.com>
13778 * linux-low.c (regset_disabled, disable_regset): New functions.
13779 (regsets_fetch_inferior_registers)
13780 (regsets_store_inferior_registers): Use them.
13781 (initialize_regsets_info); Don't allocate the disabled_regsets
13783 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13786 2013-06-11 Pedro Alves <palves@redhat.com>
13788 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13791 2013-06-11 Pedro Alves <palves@redhat.com>
13793 * linux-x86-low.c (initialize_low_arch): Call
13794 init_registers_x32_avx_linux.
13796 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13798 Fix compatibility with Android Bionic.
13799 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13802 2013-06-07 Pedro Alves <palves@redhat.com>
13805 * Makefile.in (OBS): Add tdesc.o.
13806 (IPA_OBJS): Add tdesc-ipa.o.
13807 (tdesc-ipa.o): New rule.
13808 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13810 * linux-low.c (new_inferior): Delete.
13811 (disabled_regsets, num_regsets): Delete.
13812 (linux_add_process): Adjust to set the new per-process
13814 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13815 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13816 was a stop. When calling arch_setup, switch the current inferior
13817 to the thread that got an event.
13818 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13819 (regsets_fetch_inferior_registers)
13820 (regsets_store_inferior_registers): New regsets_info parameter.
13822 (linux_register_in_regsets): New regs_info parameter. Adjust to
13824 (register_addr, fetch_register, store_register): New usrregs_info
13825 parameter. Adjust to use it.
13826 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13827 parameter regs_info. Adjust to use it.
13828 (linux_fetch_registers): Get the current inferior's regs_info, and
13830 (linux_store_registers): Ditto.
13831 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13832 (initialize_low): Don't initialize the target_regsets here. Call
13833 initialize_low_arch.
13834 * linux-low.h (target_regsets): Delete declaration.
13835 (struct regsets_info): New.
13836 (struct usrregs_info): New.
13837 (struct regs_info): New.
13838 (struct process_info_private) <new_inferior>: New field.
13839 (struct linux_target_ops): Delete the num_regs, regmap, and
13840 regset_bitmap fields. New field regs_info.
13841 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13842 * i387-fp.c (num_xmm_registers): Delete.
13843 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13844 calls to new interface.
13845 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13846 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13847 Infer the number of xmm registers from the regcache's target
13849 * i387-fp.h (num_xmm_registers): Delete.
13850 * inferiors.c (add_thread): Don't install the thread's regcache
13852 * proc-service.c (gregset_info): Fetch the current inferior's
13853 regs_info. Adjust to use it.
13854 * regcache.c: Include tdesc.h.
13855 (register_bytes, reg_defs, num_registers)
13856 (gdbserver_expedite_regs): Delete.
13857 (get_thread_regcache): If the thread doesn't have a regcache yet,
13858 create one, instead of aborting gdbserver.
13859 (regcache_invalidate_one): Rename to ...
13860 (regcache_invalidate_thread): ... this.
13861 (regcache_invalidate_one): New.
13862 (regcache_invalidate): Only invalidate registers of the current
13864 (init_register_cache): Add target_desc parameter, and use it.
13865 (new_register_cache): Ditto. Assert the target description has a
13866 non zero registers_size.
13867 (regcache_cpy): Add assertions. Adjust.
13868 (realloc_register_cache, set_register_cache): Delete.
13869 (registers_to_string, registers_from_string): Adjust.
13870 (find_register_by_name, find_regno, find_register_by_number)
13871 (register_cache_size): Add target_desc parameter, and use it.
13872 (free_register_cache_thread, free_register_cache_thread_one)
13873 (regcache_release, register_cache_size): New.
13874 (register_size): Add target_desc parameter, and use it.
13875 (register_data, supply_register, supply_register_zeroed)
13876 (supply_regblock, supply_register_by_name, collect_register)
13877 (collect_register_as_string, collect_register_by_name): Adjust.
13878 * regcache.h (struct target_desc): Forward declare.
13879 (struct regcache) <tdesc>: New field.
13880 (init_register_cache, new_register_cache): Add target_desc
13882 (regcache_invalidate_thread): Declare.
13883 (regcache_invalidate_one): Delete declaration.
13884 (regcache_release): Declare.
13885 (find_register_by_number, register_cache_size, register_size)
13886 (find_regno): Add target_desc parameter.
13887 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
13889 * remote-utils.c: Include tdesc.h.
13890 (outreg, prepare_resume_reply): Adjust.
13891 * server.c: Include tdesc.h.
13892 (gdbserver_xmltarget): Delete declaration.
13893 (get_features_xml, process_serial_event): Adjust.
13894 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
13896 (struct process_info) <tdesc>: New field.
13897 (ipa_tdesc): Declare.
13898 * tdesc.c: New file.
13899 * tdesc.h: New file.
13900 * tracepoint.c: Include tdesc.h.
13901 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
13902 (get_context_regcache): Adjust to pass ipa_tdesc down.
13903 (do_action_at_tracepoint): Adjust to get the register cache size
13904 from the context regcache's description.
13905 (traceframe_walk_blocks): Adjust to get the register cache size
13906 from the current trace frame's description.
13907 (traceframe_get_pc): Adjust to get current trace frame's
13908 description and pass it down.
13909 (gdb_collect): Adjust to get the register cache size from the
13911 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
13912 (gdbserver_xmltarget): Delete.
13913 (initialize_low_tracepoint): Set the ipa's target description.
13914 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
13915 (initialize_low_tracepoint): Set the ipa's target description.
13916 * linux-x86-low.c: Include tdesc.h.
13917 [__x86_64__] (is_64bit_tdesc): New.
13918 (ps_get_thread_area, x86_get_thread_area): Use it.
13919 (i386_cannot_store_register): Rename to ...
13920 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
13921 (i386_cannot_fetch_register): Rename to ...
13922 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
13923 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
13925 (target_regsets): Rename to ...
13926 (x86_regsets): ... this.
13927 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
13929 (x86_siginfo_fixup): Use is_64bit_tdesc.
13930 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
13931 (tdesc_x32_avx_linux, tdesc_x32_linux)
13932 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
13934 (x86_linux_update_xmltarget): Delete.
13935 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
13936 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
13937 (AMD64_LINUX_USER64_CS): New.
13938 (x86_linux_read_description): New, based on
13939 x86_linux_update_xmltarget.
13940 (same_process_callback): New.
13941 (x86_arch_setup_process_callback): New.
13942 (x86_linux_update_xmltarget): New.
13943 (x86_regsets_info): New.
13944 (amd64_linux_regs_info): New.
13945 (i386_linux_usrregs_info): New.
13946 (i386_linux_regs_info): New.
13947 (x86_linux_regs_info): New.
13948 (x86_arch_setup): Reimplement.
13949 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
13950 (x86_emit_ops): Ditto.
13951 (the_low_target): Adjust. Install x86_linux_regs_info,
13952 x86_cannot_fetch_register, and x86_cannot_store_register.
13953 (initialize_low_arch): New.
13954 * linux-ia64-low.c (tdesc_ia64): Declare.
13955 (ia64_fetch_register): Adjust.
13956 (ia64_usrregs_info, regs_info): New globals.
13957 (ia64_regs_info): New function.
13958 (the_low_target): Adjust.
13959 (initialize_low_arch): New function.
13960 * linux-sparc-low.c (tdesc_sparc64): Declare.
13961 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
13963 (sparc_arch_setup): New function.
13964 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
13965 (the_low_target): Adjust.
13966 (initialize_low_arch): New function.
13967 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
13968 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
13969 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
13970 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
13971 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
13972 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
13973 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
13974 (tdesc_powerpc_isa205_vsx64l): Declare.
13975 (ppc_cannot_store_register, ppc_collect_ptrace_register)
13976 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
13977 (ppc_set_pc, ppc_get_hwcap): Adjust.
13978 (ppc_usrregs_info): Forward declare.
13979 (!__powerpc64__) ppc_regmap_adjusted: New global.
13980 (ppc_arch_setup): Adjust to the current process'es target
13982 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
13983 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
13984 (ppc_store_evrregset): Adjust.
13985 (target_regsets): Rename to ...
13986 (ppc_regsets): ... this, and make static.
13987 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
13988 (ppc_regs_info): New function.
13989 (the_low_target): Adjust.
13990 (initialize_low_arch): New function.
13991 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
13992 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
13993 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
13994 (tdesc_s390x_linux64v2): Declare.
13995 (s390_collect_ptrace_register, s390_supply_ptrace_register)
13996 (s390_fill_gregset, s390_store_last_break): Adjust.
13997 (target_regsets): Rename to ...
13998 (s390_regsets): ... this, and make static.
13999 (s390_get_pc, s390_set_pc): Adjust.
14000 (s390_get_hwcap): New target_desc parameter, and use it.
14001 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14002 (s390_arch_setup): Adjust to set the current process'es target
14003 description. Don't adjust the regmap.
14004 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14005 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14006 (regs_info_3264): New globals.
14007 (s390_regs_info): New function.
14008 (the_low_target): Adjust.
14009 (initialize_low_arch): New function.
14010 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14011 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14012 [__mips64] (init_registers_mips_linux)
14013 (init_registers_mips_dsp_linux): Delete defines.
14014 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14015 (have_dsp): New global.
14016 (mips_read_description): New, based on mips_arch_setup.
14017 (mips_arch_setup): Reimplement.
14018 (get_usrregs_info): New function.
14019 (mips_cannot_fetch_register, mips_cannot_store_register)
14020 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14021 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14022 (target_regsets): Rename to ...
14023 (mips_regsets): ... this, and make static.
14024 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14025 (dsp_regs_info, regs_info): New globals.
14026 (mips_regs_info): New function.
14027 (the_low_target): Adjust.
14028 (initialize_low_arch): New function.
14029 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14030 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14032 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14033 (arm_read_description): New, with bits factored from
14035 (arm_arch_setup): Reimplement.
14036 (target_regsets): Rename to ...
14037 (arm_regsets): ... this, and make static.
14038 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14039 (arm_regs_info): New function.
14040 (the_low_target): Adjust.
14041 (initialize_low_arch): New function.
14042 * linux-m68k-low.c (tdesc_m68k): Declare.
14043 (target_regsets): Rename to ...
14044 (m68k_regsets): ... this, and make static.
14045 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14046 (m68k_regs_info): New function.
14047 (m68k_arch_setup): New function.
14048 (the_low_target): Adjust.
14049 (initialize_low_arch): New function.
14050 * linux-sh-low.c (tdesc_sharch): Declare.
14051 (target_regsets): Rename to ...
14052 (sh_regsets): ... this, and make static.
14053 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14054 (sh_regs_info, sh_arch_setup): New functions.
14055 (the_low_target): Adjust.
14056 (initialize_low_arch): New function.
14057 * linux-bfin-low.c (tdesc_bfin): Declare.
14058 (bfin_arch_setup): New function.
14059 (bfin_usrregs_info, regs_info): New globals.
14060 (bfin_regs_info): New function.
14061 (the_low_target): Adjust.
14062 (initialize_low_arch): New function.
14063 * linux-cris-low.c (tdesc_cris): Declare.
14064 (cris_arch_setup): New function.
14065 (cris_usrregs_info, regs_info): New globals.
14066 (cris_regs_info): New function.
14067 (the_low_target): Adjust.
14068 (initialize_low_arch): New function.
14069 * linux-cris-low.c (tdesc_crisv32): Declare.
14070 (cris_arch_setup): New function.
14071 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14072 (cris_regs_info): New function.
14073 (the_low_target): Adjust.
14074 (initialize_low_arch): New function.
14075 * linux-m32r-low.c (tdesc_m32r): Declare.
14076 (m32r_arch_setup): New function.
14077 (m32r_usrregs_info, regs_info): New globals.
14078 (m32r_regs_info): Adjust.
14079 (initialize_low_arch): New function.
14080 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14081 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14082 (tic6x_usrregs_info): Forward declare.
14083 (tic6x_read_description): New function, based on ...
14084 (tic6x_arch_setup): ... this. Reimplement.
14085 (target_regsets): Rename to ...
14086 (tic6x_regsets): ... this, and make static.
14087 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14088 (tic6x_regs_info): New function.
14089 (the_low_target): Adjust.
14090 (initialize_low_arch): New function.
14091 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14092 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14093 (target_regsets): Rename to ...
14094 (xtensa_regsets): ... this, and make static.
14095 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14097 (xtensa_arch_setup, xtensa_regs_info): New functions.
14098 (the_low_target): Adjust.
14099 (initialize_low_arch): New function.
14100 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14101 (nios2_arch_setup): Set the current process'es tdesc.
14102 (target_regsets): Rename to ...
14103 (nios2_regsets): ... this.
14104 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14105 (nios2_regs_info): New function.
14106 (the_low_target): Adjust.
14107 (initialize_low_arch): New function.
14108 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14109 (aarch64_arch_setup): Set the current process'es tdesc.
14110 (target_regsets): Rename to ...
14111 (aarch64_regsets): ... this.
14112 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14113 (aarch64_regs_info): New function.
14114 (the_low_target): Adjust.
14115 (initialize_low_arch): New function.
14116 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14118 (target_regsets): Rename to ...
14119 (tile_regsets): ... this.
14120 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14121 (tile_regs_info): New function.
14122 (tile_arch_setup): Set the current process'es tdesc.
14123 (the_low_target): Adjust.
14124 (initialize_low_arch): New function.
14125 * spu-low.c (tdesc_spu): Declare.
14126 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14127 * win32-arm-low.c (tdesc_arm): Declare.
14128 (arm_arch_setup): New function.
14129 (the_low_target): Install arm_arch_setup instead of
14130 init_registers_arm.
14131 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14132 (init_windows_x86): Rename to ...
14133 (i386_arch_setup): ... this. Set `win32_tdesc'.
14134 (the_low_target): Adjust.
14135 * win32-low.c (win32_tdesc): New global.
14136 (child_add_thread): Don't create the thread cache here.
14137 (do_initial_child_stuff): Set the new process'es tdesc.
14138 * win32-low.h (struct target_desc): Forward declare.
14139 (win32_tdesc): Declare.
14140 * lynx-i386-low.c (tdesc_i386): Declare global.
14141 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14142 * lynx-low.c (lynx_tdesc): New global.
14143 (lynx_add_process): Set the new process'es tdesc.
14144 * lynx-low.h (struct target_desc): Forward declare.
14145 (lynx_tdesc): Declare global.
14146 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14147 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14148 * nto-low.c (nto_tdesc): New global.
14149 (do_attach): Set the new process'es tdesc.
14150 * nto-low.h (struct target_desc): Forward declare.
14151 (nto_tdesc): Declare.
14152 * nto-x86-low.c (tdesc_i386): Declare.
14153 (nto_x86_arch_setup): Set `nto_tdesc'.
14155 2013-06-04 Gary Benson <gbenson@redhat.com>
14157 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14158 to qSupported response when appropriate.
14159 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14160 with nonzero-length annex.
14161 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14162 arguments supplied in annex.
14164 2013-05-31 Doug Evans <dje@google.com>
14167 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14168 64 bits in 64-cross-32 environment.
14170 2013-05-28 Pedro Alves <palves@redhat.com>
14172 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14173 (aarch64-without-fpu.c): Delete rule.
14174 * configure.srv (aarch64*-*-linux*): Remove references to
14175 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14176 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14179 2013-05-24 Pedro Alves <palves@redhat.com>
14181 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14182 instead of strchr/decode_address. Error if the range isn't split
14183 with a ','. Don't assume there's be a ':' in the action.
14185 2013-05-23 Yao Qi <yao@codesourcery.com>
14186 Pedro Alves <palves@redhat.com>
14188 * linux-low.c (lwp_in_step_range): New function.
14189 (linux_wait_1): If the thread was range stepping and stopped
14190 outside the stepping range, report the stop to GDB. Otherwise,
14191 continue stepping. Add range stepping debug output.
14192 (linux_set_resume_request): Copy the step range from the resume
14193 request to the lwp.
14194 (linux_supports_range_stepping): New.
14195 (linux_target_ops) <supports_range_stepping>: Set to
14196 linux_supports_range_stepping.
14197 * linux-low.h (struct linux_target_ops)
14198 <supports_range_stepping>: New field.
14199 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14200 * linux-x86-low.c (x86_supports_range_stepping): New.
14201 (the_low_target) <supports_range_stepping>: Set to
14202 x86_supports_range_stepping.
14203 * server.c (handle_v_cont): Handle 'r' action.
14204 (handle_v_requests): Append ";r" if the target supports range
14206 * target.h (struct thread_resume) <step_range_start,
14207 step_range_end>: New fields.
14208 (struct target_ops) <supports_range_stepping>:
14210 (target_supports_range_stepping): New macro.
14212 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14214 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14215 confusion in comment.
14217 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14219 * lynx-low.c (struct process_info_private): New type.
14220 (lynx_add_process): New function.
14221 (lynx_create_inferior, lynx_attach): Replace calls to
14222 add_process by calls to lynx_add_process.
14223 (lynx_resume): If PTID is null, then try using
14224 current_process()->private->last_wait_event_ptid.
14226 (lynx_clear_inferiors): Delete. The contents of that function
14227 has been inlined in lynx_mourn;
14228 (lynx_wait_1): Save the ptid in the process's private data.
14229 (lynx_mourn): Free the process' private data. Replace call
14230 to lynx_clear_inferiors by call to clear_inferiors.
14232 2013-05-17 Yao Qi <yao@codesourcery.com>
14234 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14237 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14239 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14240 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14241 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14242 PT_TEXT_END_ADDR guards. Update comments.
14243 (linux_target_op) <read_offsets>: Conditionally define to
14244 linux_read_offsets if the target is UCLIBC and if it defines
14245 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14247 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14248 Andrew Jenner <andrew@codesourcery.com>
14250 * Makefile.in (SFILES): Add linux-nios2-low.c.
14251 (clean): Add action to delete nios2-linux.c.
14252 (nios2-linux.c): New rule.
14253 * configure.srv: Add nios2*-*-linux*.
14254 * linux-nios2-low.c: New.
14256 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14258 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14260 2013-04-25 Hui Zhu <hui@codesourcery.com>
14263 * ax.c (ax_printf): Add fflush.
14265 2013-04-22 Tom Tromey <tromey@redhat.com>
14267 * Makefile.in (SFILES): Add filestuff.c.
14268 (OBS): Add filestuff.o.
14269 (filestuff.o): New target.
14270 * config.in, configure: Rebuild.
14271 * configure.ac: Check for fdwalk, pipe2.
14273 2013-04-17 Pedro Alves <palves@redhat.com>
14275 * configure.ac (USE_THREAD_DB): Delete variable.
14276 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14277 Don't AC_SUBST USE_THREAD_DB.
14278 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14279 * config.in, configure: Regenerate.
14281 2013-04-16 Pedro Alves <palves@redhat.com>
14283 * linux-low.h (struct lwp_info) <thread_known>: Move under
14284 the USE_THREAD_DB #ifdef.
14286 2013-04-16 Pedro Alves <palves@redhat.com>
14288 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14289 (linux-low.o): Delete rule.
14290 * linux-low.h: Always include "gdb_thread_db.h" instead of
14291 conditionally including thread_db.h.
14292 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14295 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14297 * Makefile.in (install-only): Fix make install regression.
14299 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14301 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14302 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14304 * gdbserver.1: Remove.
14306 2013-03-22 Pedro Alves <palves@redhat.com>
14308 * linux-low.c (handle_extended_wait): Don't call
14309 linux_enable_event_reporting.
14311 2013-03-15 Tony Theodore <tonyt@logyst.com>
14314 * Makefile.in (SHELL): Use @SHELL@.
14316 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14318 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14321 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14323 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14324 Remove extraneous NULL element.
14326 2013-03-13 Yao Qi <yao@codesourcery.com>
14328 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14329 'V' block in trace frame.
14331 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14333 * target.h (struct target_ops): Add btrace ops.
14334 (target_supports_btrace): New macro.
14335 (target_enable_btrace): New macro.
14336 (target_disable_btrace): New macro.
14337 (target_read_btrace): New macro.
14338 * gdbthread.h (struct thread_info): Add btrace field.
14339 * server.c: Include btrace-common.h.
14340 (handle_btrace_general_set): New function.
14341 (handle_btrace_enable): New function.
14342 (handle_btrace_disable): New function.
14343 (handle_general_set): Call handle_btrace_general_set.
14344 (handle_qxfer_btrace): New function.
14345 (struct qxfer qxfer_packets[]): Add btrace entry.
14346 * inferiors.c (remove_thread): Disable btrace.
14347 * linux-low: Include linux-btrace.h.
14348 (linux_low_enable_btrace): New function.
14349 (linux_low_read_btrace): New function.
14350 (linux_target_ops): Add btrace ops.
14351 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14352 Add srv_linux_btrace=yes.
14353 (x86_64-*-linux*): Add linux-btrace.o.
14354 Add srv_linux_btrace=yes.
14355 * configure.ac: Define HAVE_LINUX_BTRACE.
14356 * config.in: Regenerated.
14357 * configure: Regenerated.
14359 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14361 * server.c (handle_qxfer): Preserve error message if -3 is
14363 (qxfer): Document the -3 return value.
14365 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14367 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14368 (linux_btrace_h): New variable.
14369 (linux-btrace.o): New rule.
14371 2013-03-08 Stan Shebs <stan@codesourcery.com>
14372 Hafiz Abid Qadeer <abidh@codesourcery.com>
14374 * tracepoint.c (trace_buffer_size): New global.
14375 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14376 (init_trace_buffer): Change to one-argument function. Allocate
14377 trace buffer memory.
14378 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14379 handle QTBuffer:size packet.
14380 (cmd_bigqtbuffer_size): New function.
14381 (initialize_tracepoint): Call init_trace_buffer with
14382 DEFAULT_TRACE_BUFFER_SIZE.
14383 * server.c (handle_query): Add QTBuffer:size in the
14386 2013-03-07 Yao Qi <yao@codesourcery.com>
14388 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14389 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14391 (cmd_qtsp): Adjust condition. Do post increment.
14392 Set cur_action and cur_step_action back to 0.
14394 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14397 * linux-low.c (linux_write_memory): Return early success if LEN is
14400 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14402 * configure.srv: Add x86_64-*-cygwin* as target.
14404 2013-02-28 Tom Tromey <tromey@redhat.com>
14406 * configure.ac: Invoke AC_SYS_LARGEFILE.
14407 * configure, config.in: Rebuild.
14409 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14411 * win32-low.c: Throughout, fix format strings and casts of
14412 printf-like functions to avoid type related warnings on all
14414 (get_child_debug_event): Print dwDebugEventCode as hex since
14415 that's how it's usually documented.
14417 2013-02-28 Yao Qi <yao@codesourcery.com>
14419 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14422 2013-02-27 Jiong Wang <jiwang@tilera.com>
14424 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14425 (reg-tilegx32.c): New rule.
14426 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14427 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14428 different register info initializer according to elf class.
14429 (init_registers_tilgx32): New function. The tilegx32 register info
14431 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14432 (tile_store_gregset): Likewise.
14434 2013-02-27 Yao Qi <yao@codesourcery.com>
14436 * server.c (process_point_options): Print debug message when
14437 debug_threads is true.
14439 2013-02-26 Yao Qi <yao@codesourcery.com>
14441 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14443 2013-02-19 Pedro Alves <palves@redhat.com>
14444 Kai Tietz <ktietz@redhat.com>
14448 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14449 instead of strtoul to extract address from packet.
14450 (process_serial_event) <'z'>: Likewise.
14452 2013-02-18 Yao Qi <yao@codesourcery.com>
14454 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14456 2013-02-14 Pedro Alves <palves@redhat.com>
14460 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14461 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14463 2013-02-14 Pedro Alves <palves@redhat.com>
14465 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14467 2013-02-14 Pedro Alves <palves@redhat.com>
14469 * tracepoint.c (save_string): Delete.
14470 (add_tracepoint_action): Use savestring instead of save_string.
14472 2013-02-12 Pedro Alves <palves@redhat.com>
14474 * linux-xtensa-low.c: Ditto.
14475 * xtensa-xtregs.c: Ditto.
14477 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14479 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14482 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14484 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14485 aarch64_num_wp_regs and aarch64_num_bp_regs to
14486 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14488 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14490 * linux-aarch64-low.c (ps_get_thread_area): Replace
14491 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14493 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14494 Marcus Shawcroft <marcus.shawcroft@arm.com>
14495 Nigel Stephens <nigel.stephens@arm.com>
14496 Yufeng Zhang <yufeng.zhang@arm.com>
14498 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14499 (aarch64.c, aarch64-without-fpu.c): New targets.
14500 * configure.srv (aarch64*-*-linux*): New.
14501 * linux-aarch64-low.c: New file.
14503 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14505 * linux-low.c (handle_extended_wait, linux_create_inferior)
14506 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14507 (dequeue_one_deferred_signal, linux_resume_one_thread)
14508 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14509 (linux_tracefork_grandchild, linux_test_for_tracefork)
14510 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14511 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14512 where the argument is 0.
14514 2013-01-25 Yao Qi <yao@codesourcery.com>
14516 * event-loop.c: Include "queue.h".
14517 (gdb_event_p): New typedef.
14518 (struct gdb_event) <next_event>: Remove.
14519 (event_queue): Change to QUEUE(gdb_event_p).
14520 (async_queue_event): Remove.
14521 (gdb_event_xfree): New.
14522 (initialize_event_loop): New.
14523 (process_event): Use API from QUEUE.
14524 (wait_for_event): Likewise.
14525 * server.c (main): Call initialize_event_loop.
14526 * server.h (initialize_event_loop): Declare.
14528 2013-01-18 Yao Qi <yao@codesourcery.com>
14530 * ax.h (struct eval_agent_expr_context): New.
14531 (gdb_eval_agent_expr): Update declaration.
14532 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14533 TFRAME. Add new argument CTX.
14534 * server.h (struct eval_agent_expr_context): Declare.
14535 (agent_mem_read, agent_tsv_read): Update declaration.
14536 (agent_mem_read_string): Likewise.
14537 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14538 (add_traceframe_block): Add new argument TPOINT.
14539 Increase TPOINT->traceframe_usage.
14540 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14541 eval_tracepoint_agent_expr.
14542 (condition_true_at_tracepoint): Likewise.
14543 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14544 (agent_mem_read_string, agent_tsv_read): Likewise.
14546 2013-01-16 Yao Qi <yao@codesourcery.com>
14548 * linux-low.c (linux_resume_one_lwp): Don't check
14549 'lwp->bp_reinsert != 0'.
14551 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14552 Pedro Alves <palves@redhat.com>
14554 * lynx-low.c (ptrace_request_to_str): Define a temporary
14555 macro and use it to simplify this function's implementation.
14557 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14559 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14562 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14564 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14566 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14568 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14570 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14572 * lynx-low.c (lynx_resume): Use the resume_info parameter
14573 to determine the ptid for the lynx_ptrace call, unless
14574 it is equal to minus_one_ptid, in which case we use the
14575 ptid of the current_inferior.
14576 (lynx_wait_1): After having received a thread create/exit
14577 event, resume the inferior's execution using the signaling
14578 thread's ptid, rather than the old ptid.
14580 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14582 * lynx-low.c (lynx_resume): Delete variable ret.
14584 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14586 * gdbreplay.c (gdbreplay_version): Update copyright year.
14587 * server.c (gdbserver_version): Likewise.
14589 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14591 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14594 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14596 * lynx-low.c (ptrace_request_to_str): Add handling for
14597 PTRACE_GETTRACESIG.
14599 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14601 * lynx-low.c (lynx_attach): Delete variable new_process.
14603 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14605 * lynx-low.c (lynx_create_inferior): Delete variable
14608 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14610 * lynx-low.c (ptrace_request_to_str): Do not handle
14611 PTRACE_GETTHREADLIST if this macro does not exist.
14613 2012-12-15 Yao Qi <yao@codesourcery.com>
14615 * Makefile.in (OBS): Add notif.o.
14616 * notif.c, notif.h: New.
14617 * server.c: Include "notif.h".
14618 (struct vstop_notif) <next>: Remove.
14620 (queue_stop_reply): Update.
14621 (push_event, send_next_stop_reply): Remove.
14622 (discard_queued_stop_replies): Update.
14623 (notif_stop): New variable.
14624 (handle_v_stopped): Remove.
14625 (handle_v_requests): Don't call handle_v_stopped. Call
14626 handle_ack_notif instead.
14627 (queue_stop_reply_callback): Call notif_event_enque instead
14628 of queue_stop_reply.
14629 (handle_status): Don't call send_next_stop_reply, call
14630 notif_write_event instead.
14631 (kill_inferior_callback): Likewise.
14632 (detach_or_kill_inferior_callback): Likewise.
14633 (main): Call initialize_notif.
14634 (process_serial_event): Call QUEUE_is_empty.
14635 (handle_target_event): Call notif_push instead of push event.
14636 * server.h (push_event): Remove declaration.
14638 2012-12-10 Tom Tromey <tromey@redhat.com>
14640 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14641 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14644 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14645 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14646 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14647 (amd64-linux-ipa.o, ax.o): Rewrite.
14648 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14649 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14650 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14651 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14652 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14653 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14654 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14655 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14656 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14657 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14658 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14659 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14660 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14661 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14662 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14663 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14664 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14665 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14666 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14667 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14668 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14669 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14670 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14671 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14672 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14673 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14674 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14675 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14676 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14677 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14678 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14679 (reg-tilegx.o): Remove.
14680 (all_object_files): New macro.
14681 Include .deps files.
14682 * aclocal.m4, configure: Rebuild.
14683 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14684 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14685 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14687 2012-12-05 Tom Tromey <tromey@redhat.com>
14690 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14692 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14694 * configure.ac: Check for linux/perf_event.h.
14695 * config.in: Regenerated.
14696 * configure: Regenerated.
14698 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14700 * hostio.c (handle_readlink): Decrease buffer size
14701 parameter passed to readlink by one byte.
14703 2012-11-26 Yao Qi <yao@codesourcery.com>
14705 * configure.ac (build_warnings): Append '-Wempty-body'.
14706 * configure: Regenerated.
14707 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14710 2012-11-15 Pierre Muller <muller@sourceware.org>
14712 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14713 * config.in: Regenerate.
14714 * configure: Regenerate.
14715 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14716 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14717 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14718 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14720 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14721 instead of <sys/wait.h> header.
14722 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14724 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14726 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14727 (various make rules): Remove -DGDBSERVER
14729 2012-11-09 Yao Qi <yao@codesourcery.com>
14731 * spu-low.c (current_ptid): Move it to ..
14732 * gdbthread.h: ... here. New.
14733 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14734 * server.c (myresume, process_serial_event): Likewise.
14735 * thread-db.c (thread_db_find_new_threads): Likewise.
14736 * tracepoint.c (run_inferior_command): Likewise.
14738 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14740 * server.c (handle_search_memory_1): Include access length in
14743 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14745 * linux-crisv32-low.c: Fix compile errors.
14747 2012-09-04 Yao Qi <yao@codesourcery.com>
14749 * tracepoint.c (cmd_qtsv): Adjust debug message.
14750 Don't check CUR_TPOINT.
14752 2012-08-28 Yao Qi <yao@codesourcery.com>
14754 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14755 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14756 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14757 Remove declarations of xmalloc, xreallloc, xstrdup and
14759 * Makefile.in (libiberty_h): New.
14760 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14761 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14763 2012-08-23 Yao Qi <yao@codesourcery.com>
14765 * server.h: Remove declaration of 'xsnprintf'.
14767 2012-08-22 Keith Seitz <keiths@redhat.com>
14769 * server.h: Include build-gnulib-gbserver/config.h.
14770 * gdbreplay.c: Likewise.
14772 2012-08-08 Doug Evans <dje@google.com>
14774 * Makefile.in (SFILES): Add gdb_vecs.c.
14775 (OBS): Add gdb_vecs.o.
14776 (gdb_vecs_h, host_defs_h): New variables.
14777 (thread-db.o): Add $(gdb_vecs_h) dependency.
14778 (gdb_vecs.o): New rule.
14779 * thread-db.c: #include "gdb_vecs.h".
14780 (thread_db_load_search): Use a vector to iterate over path elements.
14781 Handle text appearing after "$pdir".
14783 * configure.ac: Add check for strstr.
14784 * config.in: Regenerate.
14785 * configure: Regenerate.
14787 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14789 * hostio.c (handle_pread): If pread fails, fall back to attempting
14791 (handle_pwrite): Likewise for pwrite.
14793 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14795 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14796 between unsupported TYPE and unimplementable ADDR/LEN combination.
14797 (arm_insert_point): Act on new return value.
14799 2012-07-31 Pedro Alves <palves@redhat.com>
14801 * server.c (process_point_options): Only skip tokens if we find
14802 one that is unrecognized. Don't treat 'X' specially while
14803 skipping unrecognized tokens.
14805 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14807 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14808 to 4-byte-align HW breakpoint addresses for Thumb.
14810 2012-07-27 Yao Qi <yao@codesourcery.com>
14814 * server.h: Declare gdb_agent_about_to_close.
14815 * target.c (kill_inferior): Include "agent.h".
14816 New. Send command 'kill'.
14817 * target.h (kill_inferior): Removed macro.
14818 * tracepoint.c (gdb_agent_about_to_close): New.
14819 (gdb_agent_helper_thread): Handle command 'close'.
14820 Wait endlessly until the inferior stops.
14821 Install gdb_agent_remove_socket to atexit hook.
14822 (agent_socket_name): New static variable.
14823 (gdb_agent_socket_init): Replace local variable 'name' with
14824 'agent_socket_name'.
14825 (gdb_agent_remove_socket): New.
14827 2012-07-27 Yao Qi <yao@codesourcery.com>
14829 * server.c (process_point_options): Stop at 'X' when parsing.
14831 2012-07-19 Michael Eager <eager@eagercon.com>
14833 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14835 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14836 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14837 hardware breakpoint.
14839 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14841 * gdbserver/linux-low.c (initialize_low): Call
14842 linux_ptrace_init_warnings.
14844 2012-07-02 Doug Evans <dje@google.com>
14846 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14849 2012-07-02 Stan Shebs <stan@codesourcery.com>
14851 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14852 (ax.o): Add it to build rule.
14854 (OBS): Add format.o.
14855 (IPA_OBS): Add format.o.
14856 * server.c (handle_query): Claim support for breakpoint commands.
14857 (process_point_options): Add command case.
14858 (process_serial_event): Leave running if there are printfs in
14860 * mem-break.h (any_persistent_commands): Declare.
14861 (add_breakpoint_commands): Declare.
14862 (gdb_no_commands_at_breakpoint): Declare.
14863 (run_breakpoint_commands): Declare.
14864 * mem-break.c (struct point_command_list): New struct.
14865 (struct breakpoint): New field command_list.
14866 (any_persistent_commands): New function.
14867 (add_commands_to_breakpoint): New function.
14868 (add_breakpoint_commands): New function.
14869 (gdb_no_commands_at_breakpoint): New function.
14870 (run_breakpoint_commands): New function.
14871 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
14873 * ax.c: Include format.h.
14874 (ax_printf): New function.
14875 (gdb_eval_agent_expr): Add printf opcode.
14877 2012-06-13 Yao Qi <yao@codesourcery.com>
14879 * server.c (start_inferior): Remove duplicated writes to fields
14880 'last_resume_kind' and 'last_status' of 'current_inferior'.
14882 2012-06-12 Yao Qi <yao@codesourcery.com>
14883 Pedro Alves <palves@redhat.com>
14885 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
14887 * server.c (handle_v_cont): Extend comment.
14889 2012-06-11 Yao Qi <yao@codesourcery.com>
14891 * linux-low.c (linux_attach): Add 'static'.
14893 2012-06-06 Yao Qi <yao@codesourcery.com>
14895 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
14897 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
14899 Fix gcc -flto compilation warning.
14900 * server.c (main): Make variable multi_mode and attach volatile.
14902 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14904 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
14905 if the platform doesn't know about it.
14907 2012-05-30 Jeff Kenton <jkenton@tilera.com>
14909 * Makefile.in (SFILES): Add linux-tile-low.c.
14910 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
14911 * configure.srv: Handle tilegx-*-linux*.
14912 * linux-tile-low.c: New file.
14914 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14916 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
14918 2012-05-24 Pedro Alves <palves@redhat.com>
14922 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
14924 2012-05-24 Pedro Alves <palves@redhat.com>
14928 Replace target_signal with gdb_signal throughout.
14930 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
14932 * linux-low.c (linux_store_registers): Avoid the copying sequence
14933 when no data has been retrieved by ptrace.
14935 2012-05-22 Will Deacon <will.deacon@arm.com>
14937 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
14938 Include asm/ptrace.h.
14939 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
14942 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
14944 * linux-low.c (linux_store_registers): Don't re-retrieve data
14945 with ptrace that has already been obtained from /proc. Always
14946 copy any data retrieved with ptrace to the buffer supplied.
14948 2012-05-11 Yao Qi <yao@codesourcery.com>
14949 Pedro Alves <palves@redhat.com>
14951 * linux-low.c (enum stopping_threads_kind): New.
14952 (stopping_threads): Change type to `enum stopping_threads_kind'.
14953 (handle_extended_wait): If stopping and suspending threads, leave
14954 the new_lwp suspended too.
14955 (linux_wait_for_event): Adjust.
14956 (stop_all_lwps): Set `stopping_threads' to
14957 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
14958 whether we're suspending threads or just stopping them. Assert no
14961 2012-04-29 Yao Qi <yao@codesourcery.com>
14963 * server.h: Move some code to ...
14964 * gdbthread.h: ... here. New.
14965 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
14966 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
14967 (nto-low.o, win32-low.o): Likewise.
14968 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
14969 * regcache.c, remote-utils.c, server.c: Likewise.
14970 * target.c, tracepoint.c, win32-low.c: Likewise.
14972 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
14974 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
14975 (PTRACE_ARG4_TYPE): Likewise.
14976 (PTRACE_XFER_TYPE): Likewise.
14977 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
14978 ptrace to PTRACE_ARG3_TYPE.
14979 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
14980 (PTRACE_ARG4_TYPE): Likewise.
14981 (PTRACE_XFER_TYPE): Likewise.
14982 (linux_detach_one_lwp): Cast fourth argument of
14983 ptrace to long then PTRACE_ARG4_TYPE.
14984 (regsets_fetch_inferior_registers): Cast third argument of
14985 ptrace to long then PTRACE_ARG3_TYPE.
14986 (regsets_store_inferior_registers): Likewise.
14988 2012-04-20 Pedro Alves <palves@redhat.com>
14990 * configure: Regenerate.
14992 2012-04-19 Pedro Alves <palves@redhat.com>
14994 * Makefile.in (GNULIB_BUILDDIR): New.
14995 (LIBGNU, INCGNU, GNULIB_H): Adjust.
14996 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
14997 (all, install-only, uninstall, clean-info, all-lib, clean): No
14998 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
14999 (maintainer-clean realclean distclean): Use subdir_do.
15001 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15002 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15003 * acinclude.m4: Include acx_configure_dir.m4.
15004 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15005 calls. Call AC_PROG_RANLIB. Configure gnulib using
15008 (GNULIB_STDINT_H): Adjust.
15009 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15010 * gdbreplay.c: Include build-gnulib/config.h.
15011 * server.h: Likewise.
15012 * aclocal.m4: Regenerate.
15013 * config.in: Regenerate.
15014 * configure: Regenerate.
15016 2012-04-19 Pedro Alves <palves@redhat.com>
15018 * Makefile.in (LIBGNU, INCGNU): Adjust.
15019 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15020 (all, install-only, uninstall, clean-info, all-lib, clean)
15021 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15022 * configure.ac: Adjust AC_OUTPUT output.
15023 * aclocal.m4: Regenerate.
15024 * configure: Regenerate.
15026 2012-04-19 Pedro Alves <palves@redhat.com>
15028 * Makefile.in (generated_files): New.
15029 (server_h): Remove the explicit dependency on config.h, and depend
15030 on $generated_files.
15032 2012-04-19 Pedro Alves <palves@redhat.com>
15034 * Makefile.in (INCGNU): Add -Ignulib.
15036 2012-04-19 Pedro Alves <palves@redhat.com>
15038 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15039 (INCGNU): ... this, and spell out -I here.
15040 (GNULIB_LIB): Rename to ...
15041 (LIBGNU): ... this.
15042 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15044 2012-04-19 Pedro Alves <palves@redhat.com>
15046 * config.in: Regenerate.
15048 2012-04-19 Pedro Alves <palves@redhat.com>
15050 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15051 * server.h (memmem): Remove declaration.
15052 * config.in: Regenerate.
15053 * configure: Regenerate.
15055 2012-04-19 Yao Qi <yao@codesourcery.com>
15057 * Makefile.in (SFILES): Add common/vec.c.
15061 2012-04-19 Yao Qi <yao@codesourcery.com>
15063 * remote-utils.c (prepare_resume_reply): Replace with macro
15064 target_core_of_thread.
15065 * server.c (handle_qxfer_threads_proper): Likewise.
15066 * target.h (traget_core_of_thread): New macro.
15068 2012-04-18 Pedro Alves <palves@redhat.com>
15070 * aclocal.m4: Regenerate.
15071 * configure: Regenerate.
15073 2012-04-16 Yao Qi <yao@codesourcery.com>
15075 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15076 duplicated on address.
15078 2012-04-16 Yao Qi <yao@codesourcery.com>
15080 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15081 (struct tracepoint_action_ops) <send>: New field.
15082 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15083 (agent_expr_send, x_tracepoint_action_send): New.
15084 (l_tracepoint_action_send): New.
15085 (cmd_qtdp): Download and install tracepoint
15086 according to `use_agent'.
15087 (run_inferior_command): Add one more parameter `len'.
15089 (tracepoint_send_agent): New.
15090 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15092 2012-04-16 Yao Qi <yao@codesourcery.com>
15094 * tracepoint.c (download_tracepoints): Moved to ...
15095 (cmd_qtstart): ... here.
15097 2012-04-14 Yao Qi <yao@codesourcery.com>
15099 * tracepoint.c: Include inttypes.h.
15100 (struct collect_memory_action): Use sized types.
15101 (struct tracepoint): Likewise.
15102 (cmd_qtdp, stop_tracing): Update print specifiers.
15103 (cmd_qtp, response_tracepoint): Likewise.
15104 (collect_data_at_tracepoint): Likewise.
15105 (collect_data_at_step): Likewise.
15107 2012-04-14 Yao Qi <yao@codesourcery.com>
15109 Import gnulib module inttypes.
15110 * aclocal.m4, config.in, configure: Regenerated.
15112 2012-04-14 Yao Qi <yao@codesourcery.com>
15114 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15115 Makefile and config.status at last.
15117 2012-04-13 Yao Qi <yao@codesourcery.com>
15119 * tracepoint.c: Include stdint.h unconditionally.
15121 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15123 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15124 on BFD_HAVE_SYS_PROCFS_TYPE.
15125 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15126 * configure: Regenerate.
15127 * config.in: Likewise.
15129 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15131 * Makefile.in (clean): Also remove x32.c x32-linux.c
15132 x32-avx.c x32-avx-linux.c.
15133 (x32.o): New target.
15135 (x32-linux.o): Likewise.
15136 (x32-linux.c): Likewise.
15137 (x32-avx.o): Likewise.
15138 (x32-avx.c): Likewise.
15139 (x32-avx-linux.o): Likewise.
15140 (x32-avx-linux.c): Likewise.
15142 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15143 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15144 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15145 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15146 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15147 i386/x32-avx-linux.xml.
15149 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15150 (init_registers_x32_avx_linux): Likwise.
15151 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15152 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15154 2012-04-13 Pedro Alves <palves@redhat.com>
15156 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15157 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15158 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15159 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15162 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15164 * linux-x86-low.c (compat_x32_clock_t): New.
15165 (compat_x32_siginfo_t): Likewise.
15166 (compat_x32_siginfo_from_siginfo): Likewise.
15167 (siginfo_from_compat_x32_siginfo): Likewise.
15168 (linux_is_elf64): Likewise.
15169 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15170 and siginfo_from_compat_x32_siginfo for x32.
15171 (x86_arch_setup): Set linux_is_elf64.
15173 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15176 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15178 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15179 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15180 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15181 compatible with process.
15183 2012-04-12 Yao Qi <yao@codesourcery.com>
15185 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15186 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15187 (install-only, install-info, clean): Handle sub dir gnulib.
15188 (all-lib, am--refresh): New targets.
15189 (memmem.o): Remove target.
15190 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15191 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15192 (AC_REPLACE_FUNCS): Remove memmem.
15193 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15194 (AC_OUTPUT): Generate Makefile in gnulib/.
15195 * aclocal.m4, config.in, configure: Regenerated.
15197 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15199 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15201 2012-04-05 Pedro Alves <palves@redhat.com>
15203 -Werror=strict-aliasing
15205 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15208 2012-04-04 Pedro Alves <palves@redhat.com>
15210 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15211 (sparc_store_gregset_from_stack, sparc_store_gregset)
15212 (sparc_breakpoint_at): Fix formatting.
15214 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15216 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15218 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15219 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15220 * config.in: Regenerate.
15221 * configure: Likewise.
15223 2012-03-29 Pedro Alves <palves@redhat.com>
15225 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15226 Correct ptrace arguments.
15228 2012-03-28 Pedro Alves <palves@redhat.com>
15230 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15231 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15232 (IA64_FR1_REGNUM): New defines.
15233 (ia64_fetch_register): New.
15234 (the_low_target): Install it.
15235 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15237 * linux-low.c (linux_fetch_registers): Try the
15238 the_low_target.fetch_register hook first.
15240 * linux-arm-low.c (the_low_target): Adjust.
15241 * linux-bfin-low.c (the_low_target): Adjust.
15242 * linux-cris-low.c (the_low_target): Adjust.
15243 * linux-crisv32-low.c (the_low_target): Adjust.
15244 * linux-m32r-low.c (the_low_target): Adjust.
15245 * linux-m68k-low.c (the_low_target): Adjust.
15246 * linux-mips-low.c (the_low_target): Adjust.
15247 * linux-ppc-low.c (the_low_target): Adjust.
15248 * linux-s390-low.c (the_low_target): Adjust.
15249 * linux-sh-low.c (the_low_target): Adjust.
15250 * linux-sparc-low.c (the_low_target): Adjust.
15251 * linux-tic6x-low.c (the_low_target): Adjust.
15252 * linux-x86-low.c (the_low_target): Adjust.
15253 * linux-xtensa-low.c (the_low_target): Adjust.
15255 2012-03-26 Pedro Alves <palves@redhat.com>
15257 * server.c (handle_qxfer_libraries): Don't bail early if
15258 the_target->qxfer_libraries_svr4 is not NULL.
15260 2012-03-26 Pedro Alves <palves@redhat.com>
15262 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15264 2012-03-23 Pedro Alves <palves@redhat.com>
15266 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15267 "library-list-svr4" element's start tag when the the DSO list is
15270 2012-03-23 Pedro Alves <palves@redhat.com>
15272 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15273 a variable whose type size is the same as the inferior's pointer
15276 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15278 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15280 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15281 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15282 * linux-low.h: Include <signal.h>.
15283 (struct siginfo): Remove forward declaration.
15284 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15287 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15289 * .gitignore: Ignore more files.
15291 2012-03-19 Pedro Alves <palves@redhat.com>
15292 Jan Kratochvil <jan.kratochvil@redhat.com>
15294 * server.c (cont_thread, general_thread): Add describing comments.
15295 (start_inferior): Clear `cont_thread'.
15296 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15299 2012-03-15 Yao Qi <yao@codesourcery.com>
15301 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15303 (cmd_qtdp): ... here.
15305 2012-03-15 Yao Qi <yao@codesourcery.com>
15307 * tracepoint.c (struct tracepoint_action_ops): New.
15308 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15309 (m_tracepoint_action_download): New.
15310 (r_tracepoint_action_download): New.
15311 (x_tracepoint_action_download): New.
15312 (l_tracepoint_action_download): New.
15313 (add_tracepoint_action): Install `action->ops' according type.
15314 (download_tracepoint_1): Move code `download' function pointer
15315 of various tracepoint_action_ops.
15317 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15319 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15320 linux_ptrace_attach_warnings.
15322 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15324 * Makefile.in (linux-ptrace.o): New.
15325 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15326 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15327 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15328 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15329 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15331 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15333 2012-03-08 Yao Qi <yao@codesourcery.com>
15334 Pedro Alves <palves@redhat.com>
15336 Fix PR server/13392.
15337 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15338 offset of JMP insn.
15339 * tracepoint.c (remove_tracepoint): New.
15340 (cmd_qtdp): Call remove_tracepoint when failed to install.
15342 2012-03-07 Pedro Alves <palves@redhat.com>
15344 * linux-low.c (get_detach_signal): New.
15345 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15346 Pass on pending signals to PTRACE_DETACH. Check the result of the
15348 * server.c (program_signals, program_signals_p): New.
15349 (handle_general_set): Handle QProgramSignals.
15350 * server.h (program_signals, program_signals_p): Declare.
15352 2012-03-05 Pedro Alves <palves@redhat.com>
15353 Jan Kratochvil <jan.kratochvil@redhat.com>
15355 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15358 2012-03-03 Yao Qi <yao@codesourcery.com>
15360 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15361 agent_look_up_symbols.
15363 2012-03-03 Yao Qi <yao@codesourcery.com>
15365 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15366 (linux-x86-low.o): Likewise.
15367 * server.h: Remove in_process_agent_loaded.
15368 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15372 2012-03-03 Yao Qi <yao@codesourcery.com>
15374 * tracepoint.c (gdb_agent_capability): New global.
15375 (in_process_agent_loaded_ust): Renamed to
15376 `in_process_agent_supports_ust'.
15378 (in_process_agent_supports_ust): Call agent_capability_check.
15379 (clear_installed_tracepoints): Assert that agent supports
15382 2012-03-03 Yao Qi <yao@codesourcery.com>
15384 * linux-low.c (linux_supports_agent): New.
15385 (linux_target_ops): Initialize field `supports_agent' with
15386 linux_supports_agent.
15387 * target.h (struct target_ops) <supports_agent>: New.
15388 (target_supports_agent): New macro.
15389 * server.c (handle_general_set): Handle packet 'QAgent'.
15390 (handle_query): Send `QAgent+'.
15391 * Makefile.in (server.o): Depends on agent.h.
15393 2012-03-03 Yao Qi <yao@codesourcery.com>
15395 * Makefile.in (OBS): Add agent.o.
15396 Add new rule for agent.o.
15397 Track dependence of tracepoint.c on agent.h.
15398 * tracepoint.c (run_inferior_command_1):
15399 (run_inferior_command): Call agent_run_command.
15400 (gdb_ust_connect_sync_socket): Deleted. Move it to
15402 (resume_thread, stop_thread): Likewise.
15403 (gdb_ust_socket_init): Renamed to ...
15404 (gdb_agent_socket_init): ... New.
15405 (gdb_ust_thread): Renamed to ...
15406 (gdb_agent_helper_thread): ... New.
15407 (gdb_ust_init): Move some code to ...
15408 (gdb_agent_init): ... here. New.
15409 [HAVE_UST]: Call gdb_ust_init.
15410 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15411 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15412 * config.in, configure: Regenerated.
15414 2012-03-02 Pedro Alves <palves@redhat.com>
15416 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15417 * linux-low.c (struct simple_pid_list): New.
15418 (stopped_pids): New a struct simple_pid_list pointer.
15419 (add_to_pid_list, pull_pid_from_list): New.
15420 (handle_extended_wait): Don't assume the first signal new children
15421 report is SIGSTOP. Adjust call to pull_pid_from_list.
15422 (linux_wait_for_lwp): Adjust.
15424 2012-03-02 Yao Qi <yao@codesourcery.com>
15426 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15429 2012-03-02 Yao Qi <yao@codesourcery.com>
15431 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15432 `stop_pc' and `tpoint'. Update caller.
15434 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15436 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15437 * linux-low.c (use_linux_regsets): New macro.
15438 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15439 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15440 (linux_register_in_regsets): New function.
15441 (usr_fetch_inferior_registers): Skip registers covered by
15443 (usr_store_inferior_registers): Likewise.
15444 (usr_fetch_inferior_registers): New macro.
15445 (usr_store_inferior_registers): Likewise.
15446 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15447 (linux_store_registers): Likewise.
15448 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15450 (init_registers_mips64_dsp_linux): Likewise.
15451 (init_registers_mips_linux): New macro.
15452 (init_registers_mips_dsp_linux): Likewise.
15453 (mips_dsp_num_regs): Likewise.
15454 (DSP_BASE, DSP_CONTROL): New fallback macros.
15455 (mips_base_regs): New macro.
15456 (mips_regmap): Use it. Fix the size.
15457 (mips_dsp_regmap): New variable.
15458 (mips_dsp_regset_bitmap): Likewise.
15459 (mips_arch_setup): New function.
15460 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15462 (mips_cannot_store_register): Likewise.
15463 (the_low_target): Update .arch_setup, .num_regs and .regmap
15464 initializers. Add .regset_bitmap initializer.
15465 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15467 * linux-bfin-low.c (the_low_target): Likewise.
15468 * linux-cris-low.c (the_low_target): Likewise.
15469 * linux-crisv32-low.c (the_low_target): Likewise.
15470 * linux-ia64-low.c (the_low_target): Likewise.
15471 * linux-m32r-low.c (the_low_target): Likewise.
15472 * linux-m68k-low.c (the_low_target): Likewise.
15473 * linux-ppc-low.c (the_low_target): Likewise.
15474 * linux-s390-low.c (the_low_target): Likewise.
15475 * linux-sh-low.c (the_low_target): Likewise.
15476 * linux-sparc-low.c (the_low_target): Likewise.
15477 * linux-tic6x-low.c (the_low_target): Likewise.
15478 * linux-x86-low.c (the_low_target): Likewise.
15479 * linux-xtensa-low.c (the_low_target): Likewise.
15480 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15481 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15482 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15484 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15485 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15487 2012-02-29 Yao Qi <yao@codesourcery.com>
15488 Pedro Alves <palves@redhat.com>
15490 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15491 `step_over_finished' is true.
15493 2012-02-27 Pedro Alves <palves@redhat.com>
15495 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15496 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15498 2012-02-27 Pedro Alves <palves@redhat.com>
15501 * linux-low.c (pid_is_stopped): New.
15502 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15504 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15506 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15509 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15511 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15513 2012-02-24 Luis Machado <lgustavo@codesourcery>
15515 * server.c (handle_query): Advertise support for target-side
15516 breakpoint condition evaluation.
15517 (process_point_options): New function.
15518 (process_serial_event): When inserting a breakpoint, check for
15519 a target-side condition that should be evaluated.
15521 * mem-break.c: Include regcache.h and ax.h.
15522 (point_cond_list_t): New data structure.
15523 (breakpoint) <cond_list>: New field.
15524 (find_gdb_breakpoint_at): Make non-static.
15525 (delete_gdb_breakpoint_at): Clear any target-side
15527 (clear_gdb_breakpoint_conditions): New function.
15528 (add_condition_to_breakpoint): Likewise.
15529 (add_breakpoint_condition): Likewise.
15530 (gdb_condition_true_at_breakpoint): Likewise.
15531 (gdb_breakpoint_here): Return result directly instead
15532 of going through a local variable.
15534 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15535 (clear_gdb_breakpoint_conditions): Likewise.
15536 (add_breakpoint_condition): Likewise.
15537 (gdb_condition_true_at_breakpoint): Likewise.
15539 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15540 (need_step_over_p): Take target-side breakpoint condition into
15543 2012-02-24 Luis Machado <lgustavo@codesourcery>
15545 * server.h: Include tracepoint.h.
15546 (agent_mem_read, agent_get_trace_state_variable_value,
15547 agent_set_trace_state_variable_value,
15548 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15549 get_set_tsv_func_addr): New prototypes.
15551 * ax.h: New include file.
15552 * ax.c: New source file.
15554 * tracepoint.c: Include ax.h.
15555 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15556 agent_expr, eval_result_type): Move to ax.h.
15557 (parse_agent_expr): Rename to ...
15558 (gdb_parse_agent_expr): ... this, make it non-static and move
15560 (unparse_agent_expr) Rename to ...
15561 (gdb_unparse_agent_expr): ... this, make it non-static and move
15563 (eval_agent_expr): Rename to ...
15564 (eval_tracepoint_agent_expr): ... this.
15565 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15566 forward declarations.
15567 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15568 (agent_get_trace_state_variable_value): New function.
15569 (agent_set_trace_state_variable_value): New function.
15570 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15571 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15572 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15573 (condition_true_at_tracepoint): Likewise.
15574 (parse_agent_expr): Rename to ...
15575 (gdb_parse_agent_expr): ... this and move to ax.c.
15576 (unparse_agent_expr): Rename to ...
15577 (gdb_unparse_agent_expr): ... this and move to ax.c.
15578 (gdb_agent_op_name): Move to ax.c.
15579 (eval_agent_expr): Rename to ...
15580 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15582 (eval_tracepoint_agent_expr): New function.
15583 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15585 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15587 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15588 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15589 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15590 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15591 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15592 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15593 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15594 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15595 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15596 (compile_bytecodes): Remove forward declaration.
15597 (is_goto_target): Move to ax.c.
15598 (compile_bytecodes): Move to ax.c and call
15599 agent_get_trace_state_variable_value (...) and
15600 agent_set_trace_state_variable_value (...).
15602 * Makefile.in: Update ax.c and IPA dependencies.
15604 2012-02-24 Pedro Alves <palves@redhat.com>
15606 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15607 (cmd_bigqtbuffer_circular): ... this. Only handle
15608 'QTBuffer:circular:'.
15609 (handle_tracepoint_general_set): Adjust.
15611 2012-02-16 Yao Qi <yao@codesourcery.com>
15613 * inferiors.c: Move code to ...
15614 * dll.c: .... here. New.
15615 * server.h: Declare clear_dlls.
15616 * Makefile.in (SFILES): Add dll.c.
15620 2012-02-11 Yao Qi <yao@codesourcery.com>
15622 * server.c: (handle_monitor_command): Add a new parameter
15624 (handle_query): Update caller.
15626 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15628 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15629 * configure, config.in: Regenerate.
15630 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15633 2012-02-02 Pedro Alves <palves@redhat.com>
15635 Try SIGKILL first, then PTRACE_KILL.
15636 * linux-low.c (linux_kill_one_lwp): New.
15637 (linux_kill_one_lwp): Rename to ...
15638 (kill_one_lwp_callback): ... this. Use the new
15639 linux_kill_one_lwp.
15641 2012-02-02 Pedro Alves <palves@redhat.com>
15643 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15646 2012-01-27 Pedro Alves <palves@redhat.com>
15648 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15649 (elf_64_file_p): Make static.
15650 (linux_pid_exe_is_elf_64_file): New.
15651 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15652 Delete declarations.
15653 (linux_pid_exe_is_elf_64_file): Declare.
15654 * linux-x86-low.c (x86_arch_setup): Use
15655 linux_pid_exe_is_elf_64_file.
15657 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15659 * linux-low.c (linux_wait_for_event_1): Rename to ...
15660 (linux_wait_for_event): ... here and merge it with former
15661 linux_wait_for_event - new variable wait_ptid, use it.
15662 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15664 2012-01-23 Pedro Alves <palves@redhat.com>
15666 * server.c (main): Avoid yet another case of infinite loop while
15667 detaching/killing after a longjmp.
15669 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15672 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15674 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15676 * hostio.c (handle_readlink): New function.
15677 (handle_vFile): Call it to handle "vFile:readlink" packets.
15679 2012-01-20 Pedro Alves <palves@redhat.com>
15680 Ulrich Weigand <ulrich.weigand@linaro.org>
15682 * server.c (handle_v_requests): Only support vAttach and vRun to
15683 start multiple processes when in extended protocol mode.
15685 2012-01-17 Pedro Alves <palves@redhat.com>
15687 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15688 memalign plus mprotect to allocate the scratch buffer.
15690 2012-01-13 Pedro Alves <palves@redhat.com>
15692 * server.c (attach_inferior): Clear `cont_thread'.
15694 2012-01-13 Pedro Alves <palves@redhat.com>
15696 * server.c (main): Avoid infinite loop while detaching/killing
15699 2012-01-09 Doug Evans <dje@google.com>
15701 * server.c (start_inferior): Set last_ptid in --wrapper case.
15703 2012-01-06 Yao Qi <yao@codesourcery.com>
15705 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15707 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15709 2012-01-04 Yao Qi <yao@codesourcery.com>
15711 * tracepoint.c (cmd_qtdp): Print debug message
15712 for static tracepoint.
15714 2012-01-04 Yao Qi <yao@codesourcery.com>
15716 * tracepoint.c (trace_vdebug): Differentiate debug message
15717 between gdbserver and IPA.
15719 2012-01-03 Yao Qi <yao@codesourcery.com>
15721 * tracepoint.c (tracepoint_was_hit): Don't collect for
15724 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15726 * terminal.h: Reformat copyright header.
15728 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15730 * server.c (gdbserver_version): Update copyright year.
15731 * gdbreplay.c (gdbreplay_version): Likewise.
15733 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15735 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15738 2011-12-18 Hui Zhu <teawater@gmail.com>
15739 * linux-low.c (linux_create_inferior): Save return value to ret.
15741 2011-12-18 Hui Zhu <teawater@gmail.com>
15743 * linux-low.c (linux_create_inferior): Save return value to ret.
15745 2011-12-16 Doug Evans <dje@google.com>
15747 * linux-low.c (linux_create_inferior): If stdio connection,
15748 redirect stdin from /dev/null, stdout to stderr.
15749 * remote-utils.c (remote_is_stdio): New static global.
15750 (remote_connection_is_stdio): New function.
15751 (remote_prepare): Handle stdio connection.
15752 (remote_open): Ditto.
15753 (remote_close): Don't close stdin for stdio connections.
15754 (read_prim,write_prim): New functions. Replace all calls to
15755 read/write to these.
15756 * server.c (main): Watch for "-" argument. Move call to
15757 remote_prepare before start_inferior.
15758 * server.h (STDIO_CONNECTION_NAME): New macro.
15759 (remote_connection_is_stdio): Declare.
15761 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15762 in debugging output.
15764 2011-12-15 Yao Qi <yao@codesourcery.com>
15766 * tracepoint.c: Include sys/syscall.h.
15767 (gdb_ust_thread): Remove preprocessor conditional.
15769 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15771 * linux-low.c (linux_detach_one_lwp): Call
15772 the_low_target.prepare_to_resume before detaching.
15774 2011-12-14 Yao Qi <yao@codesourcery.com>
15776 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15779 2011-12-14 Yao Qi <yao@codesourcery.com>
15781 * i386-low.c (i386_low_stopped_data_address): Initialize local
15782 variable `control'.
15784 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15788 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15789 DR_CONTROL unless necessary. Extend comments.
15790 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15791 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15793 2011-12-13 Yao Qi <yao@codesourcery.com>
15795 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15797 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15799 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15801 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15802 Print new debug message for such case.
15804 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15806 Fix overlapping memcpy.
15807 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15808 the read_inferior_memory transfer.
15809 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15810 write_inferior_memory transfer.
15811 (set_fast_tracepoint_jump): New variable buf. Use it for the
15812 read_inferior_memory and write_inferior_memory transfers.
15813 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15814 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15815 Use it for the write_inferior_memory transfer.
15816 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15819 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15821 * linux-low.c (fetch_register, store_register): Make code
15822 consistent, fix formatting.
15824 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15826 * linux-low.c (usr_store_inferior_registers): Factor out code
15827 to handle individual registers into...
15828 (store_register): ... this new function.
15830 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15832 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15833 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15834 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15835 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15836 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15837 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15838 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15839 (srv_xmlfiles): Add new XML files.
15841 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15843 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15844 (init_registers_s390_linux32v1): Add prototype.
15845 (init_registers_s390_linux32v2): Likewise.
15846 (init_registers_s390_linux64v1): Likewise.
15847 (init_registers_s390_linux64v2): Likewise.
15848 (init_registers_s390x_linux64v1): Likewise.
15849 (init_registers_s390x_linux64v2): Likewise.
15850 (s390_num_regs): Increment to 52.
15851 (s390_regmap): Add orig_r2 register.
15852 (s390_num_regs_3264): Increment to 68.
15853 (s390_regmap_3264): Add orig_r2 register.
15854 (s390_collect_ptrace_register): Handle orig_r2 register.
15855 (s390_supply_ptrace_register): Likewise.
15856 (s390_fill_last_break): New function.
15857 (s390_store_last_break): Likewise.
15858 (s390_fill_system_call): New function.
15859 (s390_store_system_call): Likewise.
15860 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15862 (s390_check_regset): New function.
15863 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
15864 NT_S390_SYSTEM_CALL regsets and use appropriate description.
15865 Update target_regsets for available register sets.
15867 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
15868 Jan Kratochvil <jan.kratochvil@redhat.com>
15870 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
15871 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
15873 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
15874 * linux-low.h (struct process_info_private): New member r_debug.
15875 * server.c (handle_qxfer_libraries): Call
15876 the_target->qxfer_libraries_svr4.
15877 (handle_qxfer_libraries_svr4): New function.
15878 (qxfer_packets): New entry "libraries-svr4".
15879 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
15880 * target.h (struct target_ops): New member qxfer_libraries_svr4.
15881 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
15882 PACKET_qXfer_libraries_svr4.
15884 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
15886 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
15887 PSW address/mask between 8-byte and 16-byte formats.
15888 (s390_supply_ptrace_register): Likewise.
15889 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
15890 basic addressing mode bit.
15892 2011-11-24 Stan Shebs <stan@codesourcery.com>
15894 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
15896 2011-11-17 Stan Shebs <stan@codesourcery.com>
15898 * tracepoint.c (struct tracepoint): New field traceframe_usage.
15899 (tracing_start_time): New global.
15900 (tracing_stop_time): New global.
15901 (tracing_user_name): New global.
15902 (tracing_notes): New global.
15903 (tracing_stop_note): New global.
15904 (cmd_qtstart): Set traceframe_usage, start_time.
15905 (stop_tracing): Set stop_time.
15906 (cmd_qtstatus): Report additional status.
15907 (cmd_qtp): New function.
15908 (handle_tracepoint_query): Call it.
15909 (cmd_qtnotes): New function.
15910 (handle_tracepoint_general_set): Call it.
15911 (get_timestamp): Rename from tsv_get_timestamp.
15913 2011-11-14 Stan Shebs <stan@codesourcery.com>
15914 Kwok Cheung Yeung <kcy@codesourcery.com>
15916 * linux-x86-low.c (small_jump_insn): New.
15917 (i386_install_fast_tracepoint_jump_pad): Add arguments for
15918 trampoline and error message, build a trampoline and issue a small
15919 jump instruction to it.
15920 (x86_install_fast_tracepoint_jump_pad): Add arguments for
15921 trampoline and error message.
15922 (x86_get_min_fast_tracepoint_insn_len): New.
15923 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
15924 * linux-low.h (struct linux_target_ops): Add arguments to
15925 install_fast_tracepoint_jump_pad operation, add new operation.
15926 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
15928 (linux_get_min_fast_tracepoint_insn_len): New function.
15929 (linux_target_op): Add new operation.
15930 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
15931 (gdb_trampoline_buffer_end): Ditto.
15932 (gdb_trampoline_buffer_error): Ditto.
15933 (struct ipa_sym_addresses): Add fields for new IPA variables.
15934 (symbol_list): Add entries for new IPA variables.
15935 (struct tracepoint): Add fields to hold the address range of the
15936 trampoline used by the tracepoint.
15937 (trampoline_buffer_head): New static variable.
15938 (trampoline_buffer_tail): Ditto.
15939 (claim_trampoline_space): New function.
15940 (have_fast_tracepoint_trampoline_buffer): New function.
15941 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
15943 (install_fast_tracepoint): Ditto, also add error buffer argument.
15944 (cmd_qtminftpilen): New function.
15945 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
15946 (fast_tracepoint_from_trampoline_address): New function.
15947 (fast_tracepoint_collecting): Handle trampoline as part of jump
15949 (set_trampoline_buffer_space): New function.
15950 (initialize_tracepoint): Initialize new IPA variables.
15951 * target.h (struct target_ops): Add arguments to
15952 install_fast_tracepoint_jump_pad operation, add new
15953 get_min_fast_tracepoint_insn_len operation.
15954 (target_get_min_fast_tracepoint_insn_len): New.
15955 (install_fast_tracepoint_jump_pad): Add arguments.
15956 * server.h (IPA_BUFSIZ): Define.
15957 * linux-i386-ipa.c: Include extra header files.
15958 (initialize_fast_tracepoint_trampoline_buffer): New function.
15959 (initialize_low_tracepoint): Call it.
15960 * server.h (set_trampoline_buffer_space): Declare.
15961 (claim_trampoline_space): Ditto.
15962 (have_fast_tracepoint_trampoline_buffer): Ditto.
15964 2011-11-14 Yao Qi <yao@codesourcery.com>
15966 * server.c (handle_query): Handle InstallInTrace for qSupported.
15967 * tracepoint.c (add_tracepoint): Sort list.
15968 (install_tracepoint, download_tracepoint): New.
15969 (cmd_qtdp): Call them to install and download tracepoints.
15970 (sort_tracepoints): Removed.
15971 (cmd_qtstart): Update.
15973 2011-11-14 Yao Qi <yao@codesourcery.com>
15975 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
15976 * mem-break.h: Declare.
15977 * tracepoint.c (cmd_qtstart): Move some code to ...
15978 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
15980 (download_tracepoints): Move some code to ...
15981 (download_tracepoint_1): ... here. New.
15983 2011-11-08 Yao Qi <yao@codesourcery.com>
15985 * remote-utils.c (relocate_instruction): A comment fix.
15987 2011-11-07 Joel Brobecker <brobecker@adacore.com>
15989 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
15990 (i386_dr_low_get_control, i386_dr_low_get_status): Use
15991 dr_status_mirror and dr_control_mirror from debug_reg_state.
15992 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
15993 (i386_initial_stuff): Remove use of deleted globals.
15994 (i386_get_thread_context, i386_set_thread_context,
15995 i386_thread_added): Use dr_status_mirror and dr_control_mirror
15996 from debug_reg_state.
15998 2011-11-05 Yao Qi <yao@codesourcery.com>
16000 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16001 address as TPOINT's.
16003 2011-11-02 Stan Shebs <stan@codesourcery.com>
16005 * tracepoint.c (agent_mem_read_string): New function.
16006 (eval_agent_expr): Call it for tracenz.
16007 * server.c (handle_query): Report support for tracenz.
16009 2011-11-02 Yao Qi <yao@codesourcery.com>
16011 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16013 2011-11-02 Yao Qi <yao@codesourcery.com>
16015 * target.h: Fix a typo in comment.
16017 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16019 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16020 clobber the breakpoints' shadows with fast tracepoint jumps.
16021 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16022 * target.c (write_inferior_memory): Also pass MYADDR down to
16025 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16027 * configure.ac: Check support for personality routine.
16028 * configure: Regenerate.
16029 * config.in: Likewise.
16030 * linux-low.c: Include <sys/personality.h>.
16031 Define ADDR_NO_RANDOMIZE if necessary.
16032 (linux_create_inferior): Disable address space randomization when
16033 forking inferior, if requested.
16034 (linux_supports_disable_randomization): New function.
16035 (linux_target_ops): Install it.
16036 * server.h (disable_randomization): Declare.
16037 * server.c (disable_randomization): New global variable.
16038 (handle_general_set): Handle QDisableRandomization.
16039 (handle_query): Likewise for qSupported.
16040 (main): Support --disable-randomization and --no-disable-randomization
16041 command line arguments.
16042 * target.h (struct target_ops): Add supports_disable_randomization.
16043 (target_supports_disable_randomization): New macro.
16045 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16047 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16049 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16050 [!PT_GETDSBT] (target_loadmap): New definition.
16051 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16052 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16053 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16054 and PT_GETDSBT to LINUX_LOADMAP.
16055 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16056 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16058 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16060 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16061 (arm_linux_hwbp_cap): New static variable.
16062 (arm_linux_get_hwbp_cap): Replace by ...
16063 (arm_linux_init_hwbp_cap): ... this new function.
16064 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16065 (arm_linux_get_hw_watchpoint_count): Likewise.
16066 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16067 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16068 (arm_prepare_to_resume): Use perror_with_name instead of error.
16070 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16072 * linux-arm-low.c: Include <signal.h>.
16073 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16074 (struct arm_linux_hwbp_cap): New data type.
16075 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16076 (struct arm_linux_hw_breakpoint): New data type.
16077 (MAX_BPTS, MAX_WPTS): Define.
16078 (struct arch_process_info, struct arch_lwp_info): New data types.
16079 (arm_linux_get_hwbp_cap): New function.
16080 (arm_linux_get_hw_breakpoint_count): Likewise.
16081 (arm_linux_get_hw_watchpoint_count): Likewise.
16082 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16083 (arm_hwbp_control_initialize): Likewise.
16084 (arm_hwbp_control_is_enabled): Likewise.
16085 (arm_hwbp_control_is_initialized): Likewise.
16086 (arm_hwbp_control_disable): Likewise.
16087 (arm_linux_hw_breakpoint_equal): Likewise.
16088 (arm_linux_hw_point_initialize): Likewise.
16089 (struct update_registers_data): New data structure.
16090 (update_registers_callback: New function.
16091 (arm_insert_point): Likewise.
16092 (arm_remove_point): Likewise.
16093 (arm_stopped_by_watchpoint): Likewise.
16094 (arm_stopped_data_address): Likewise.
16095 (arm_new_process): Likewise.
16096 (arm_new_thread): Likewise.
16097 (arm_prepare_to_resume): Likewise.
16098 (the_low_target): Register arm_insert_point, arm_remove_point,
16099 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16100 arm_new_thread, and arm_prepare_to_resume.
16102 2011-09-15 Stan Shebs <stan@codesourcery.com>
16104 * server.h (struct emit_ops): Add compare-goto fields.
16105 * tracepoint.c (gdb_agent_op_sizes): New table.
16106 (emit_eq_goto): New function.
16107 (emit_ne_goto): New function.
16108 (emit_lt_goto): New function.
16109 (emit_le_goto): New function.
16110 (emit_gt_goto): New function.
16111 (emit_ge_goto): New function.
16112 (is_goto_target): New function.
16113 (compile_bytecodes): Recognize special cases of compare-goto
16114 combinations and call specialized emitters for them.
16115 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16116 (amd64_emit_ne_goto): New function.
16117 (amd64_emit_lt_goto): New function.
16118 (amd64_emit_le_goto): New function.
16119 (amd64_emit_gt_goto): New function.
16120 (amd64_emit_ge_goto): New function.
16121 (amd64_emit_ops): Add the new functions.
16122 (i386_emit_eq_goto): New function.
16123 (i386_emit_ne_goto): New function.
16124 (i386_emit_lt_goto): New function.
16125 (i386_emit_le_goto): New function.
16126 (i386_emit_gt_goto): New function.
16127 (i386_emit_ge_goto): New function.
16128 (i386_emit_ops): Add the new functions.
16130 2011-09-08 Stan Shebs <stan@codesourcery.com>
16132 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16133 (i386_emit_epilogue): Restore %ebx.
16135 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16137 * server.c (step_thread): Remove definition.
16138 (process_serial_event): Don't handle Hs.
16139 * server.h (step_thread): Remove declaration.
16140 * target.c (set_desired_inferior): Remove use of step_thread.
16142 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16144 * linux-low.c: Include linux-procfs.h.
16145 (linux_attach_lwp_1): Update comments.
16146 (linux_attach): Scan for existing threads when attaching to a
16147 process that is the tgid.
16148 * Makefile.in: Update dependencies.
16150 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16152 * configure.srv: Add linux-procfs.o dependencies.
16154 2011-08-14 Yao Qi <yao@codesourcery.com>
16156 * target.h (struct target_ops): Fix indent.
16157 * win32-low.c (win32_target_ops): Fix comment.
16159 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16160 Yao Qi <yao@codesourcery.com>
16162 * Makefile.in (clean): Remove tic6x-*.c files.
16163 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16164 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16165 (tic6x-c64xp-linux.c): Likewise.
16166 * configure.srv: Add support for tic6x-*-uclinux.
16167 * linux-tic6x-low.c: New.
16168 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16170 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16171 Yao Qi <yao@codesourcery.com>
16173 * target.h (struct target_ops): Add read_loadmap.
16174 * linux-low.c (struct target_loadseg): New type.
16175 (struct target_loadmap): New type.
16176 (linux_read_loadmap): New function.
16177 (linux_target_ops): Add linux_read_loadmap.
16178 * server.c (handle_query): Support qXfer:fdpic:read packet.
16179 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16182 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16184 * win32-low.c: Include <stdint.h>.
16186 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16188 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16189 to the inferior here.
16190 (i386_remove_aligned_watchpoint): Ditto.
16191 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16192 fit part of the watchpoint in the debug registers.
16193 (i386_update_inferior_debug_regs): New.
16194 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16195 registers, and only update the inferior on success.
16196 (i386_low_remove_watchpoint): Ditto.
16198 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16200 * linux-low.c (compare_ints, unique, list_threads, show_process,
16201 linux_core_of_thread): Delete.
16202 (linux_target_ops): Change linux_core_of_thread to
16203 linux_common_core_of_thread.
16204 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16205 * utils.c (malloc_failure): Change type of argument.
16206 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16207 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16208 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16209 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16210 (IPA_OBJS): Add common-utils-ipa.o.
16211 (ptid_h, linux_osdata_h): New macros.
16212 (server_h): Add common/common-utils.h, common/xml-utils.h,
16213 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16215 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16216 ptid.o, buffer.o): New rules.
16217 (linux-low.o): Add common/linux-osdata.h as a dependency.
16218 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16219 * configure.ac: Add AC_HEADER_DIRENT check.
16220 * config.in: Regenerate.
16221 * configure: Regenerate.
16222 * remote-utils.c (xml_escape_text): Delete.
16223 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16224 buffer_xml_printf): Move to common/buffer.c.
16225 * server.c (main): Remove call to initialize_inferiors.
16226 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16227 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16228 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16229 internal_error, gdb_assert, gdb_assert_fail): Delete.
16230 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16231 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16233 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16234 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16235 initialize_inferiors): Delete.
16237 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16239 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16242 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16244 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16246 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16248 2011-05-26 Yao Qi <yao@codesourcery.com>
16250 * Makefile.in (thread-db.o): Track dependence to
16251 common/gdb_thread_db.h.
16252 * thread-db.c: include gdb_thread_db.h from right place.
16254 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16256 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16257 __FILE__ and __LINE__ to internal_error.
16259 2011-05-13 Doug Evans <dje@google.com>
16261 * thread-db.c (try_thread_db_load_from_sdir): New function.
16262 (try_thread_db_load_from_dir): New function.
16263 (thread_db_load_search): Handle $sdir, ignore $pdir.
16264 Remove trying of system directories if search of
16265 libthread-db-search-path fails, that is now done via $sdir.
16267 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16269 * server.c (handle_query): Add EnableDisableTracepoints to the list
16270 of supported features.
16271 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16273 (cmd_qtenable_disable): New.
16274 (cmd_qtstart): Install tracepoints even if disabled.
16275 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16276 receiving a QTEnable or QTDisable packet.
16277 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16278 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16280 (gdb_probe): Skip data collection if static tracepoint is disabled.
16282 2011-05-10 Doug Evans <dje@google.com>
16284 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16286 2011-05-04 Doug Evans <dje@google.com>
16288 * linux-low.c (linux_join): Skip process lookup.
16289 * spu-low.c (spu_join): Ditto.
16290 * server.c (join_inferiors_callback): Delete.
16291 (process_serial_event): For 'D' packet (detach) call join_inferior
16294 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16296 * README: Don't mention xscale*-*-linux*.
16297 * configure.srv (xscale*-*-linux*): Don't handle target.
16299 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16301 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16303 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16304 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16305 (i386_emit_void_call_2): Likewise.
16307 2011-04-26 Yao Qi <yao@codesourcery.com>
16309 * linux-low.c: Move common macros to linux-ptrace.h.
16310 Include linux-ptrace.h.
16311 * Makefile.in (linux_ptrace_h): New.
16312 (linux-low.o): Depends on linux-ptrace.h.
16314 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16316 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16317 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16318 (remote_prepare): New function with most of the TCP code from ...
16319 (remote_open): ... here. Detect PORT here unconditionally. Move also
16320 setting transport_is_reliable.
16321 * server.c (run_once): New variable.
16322 (gdbserver_usage): Document it.
16323 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16324 the first run if RUN_ONCE.
16325 * server.h (run_once, remote_prepare): New declarations.
16327 2011-04-19 Tom Tromey <tromey@redhat.com>
16329 * win32-low.c (handle_load_dll): Remove duplicate "the".
16331 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16333 Remove support for old Cygwin 1.5 versions.
16334 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16335 function to avoid warning.
16336 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16339 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16341 * gdbserver/server.h (Macro _): Define it if not available.
16343 2011-03-14 Michael Snyder <msnyder@vmware.com>
16345 * hostio.c (handle_close): Remove unnecessary null test.
16347 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16349 * Makefile.in (maintainer-clean realclean distclean): Remove
16350 "make ... subdir_do" command.
16352 2011-03-10 Michael Snyder <msnyder@vmware.com>
16354 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16356 * server.c (handle_v_run): Free alloced buffer on early return.
16358 2011-03-09 Yao Qi <yao@codesourcery.com>
16361 2011-03-04 Yao Qi <yao@codesourcery.com>
16363 * Makefile.in: Remove GNU make feature --directory.
16365 2011-03-05 Yao Qi <yao@codesourcery.com>
16367 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16368 (subdir_do): New make target. Copied from gdb/Makefile.
16369 (maintainer-clean, realclean, distclean, clean): Call corresponding
16370 make targets in common/Makefile.
16372 2011-02-11 Yao Qi <yao@codesourcery.com>
16374 * configure.ac: Call AC_PROG_RANLIB.
16375 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16376 * configure: Regenerate.
16378 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16380 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16382 2011-03-06 Yao Qi <yao@codesourcery.com>
16384 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16386 2011-03-05 Yao Qi <yao@codesourcery.com>
16388 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16389 (subdir_do): New make target. Copied from gdb/Makefile.
16390 (maintainer-clean, realclean, distclean, clean): Call corresponding
16391 make targets in common/Makefile.
16393 2011-03-04 Yao Qi <yao@codesourcery.com>
16395 * Makefile.in: Remove GNU make feature --directory.
16397 2011-03-04 Michael Snyder <msnyder@vmware.com>
16399 * server.c (queue_stop_reply): Call xmalloc not malloc.
16401 2011-03-02 Michael Snyder <msnyder@vmware.com>
16403 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16405 2011-02-28 Michael Snyder <msnyder@vmware.com>
16407 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16408 (cmd_qtframe): Ditto.
16409 (cmd_qtbuffer): Ditto.
16410 (cmd_bigqtbuffer): Ditto.
16412 * utils.c (decimal2str): Initialize 'width' to nine, then
16413 don't mess with it.
16415 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16417 * hostio.c (require_data): Free *data, not data.
16419 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16421 * hostio.c (require_data): Use free, not xfree.
16423 2011-02-27 Michael Snyder <msnyder@vmware.com>
16425 * server.c (handle_query): Discard unused value.
16427 * hostio.c (require_data): Free malloc memory before returning
16430 2011-02-26 Michael Snyder <msnyder@vmware.com>
16432 * linux-low.c (list_threads): Call closedir for dirent.
16434 2011-02-27 Michael Snyder <msnyder@vmware.com>
16436 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16437 a case statement falls through.
16439 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16441 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16444 2011-02-26 Michael Snyder <msnyder@vmware.com>
16446 * utils.c (decimal2str): Eliminate dead code and dead param.
16447 (pulongest): Drop dead param from call to decimal2str.
16450 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16452 Revert the following patch (not approved yet):
16453 2011-02-21 Hui Zhu <teawater@gmail.com>
16454 * tracepoint.c (tp_printf): New function.
16455 (eval_agent_expr): Handle gdb_agent_op_printf.
16457 2011-02-21 Hui Zhu <teawater@gmail.com>
16459 * tracepoint.c (tp_printf): New function.
16460 (eval_agent_expr): Handle gdb_agent_op_printf.
16462 2011-02-18 Tom Tromey <tromey@redhat.com>
16464 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16465 (tracepoint.o): Likewise.
16466 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16467 (gdb_agent_op_names): Likewise.
16469 2011-02-18 Tom Tromey <tromey@redhat.com>
16471 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16472 gdb_agent_op_rot>: New constants.
16473 (gdb_agent_op_names): Add pick and roll.
16474 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16477 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16479 * aclocal.m4: Regenerated with aclocal-1.11.1.
16481 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16483 * server.c (handle_qxfer_traceframe_info): New.
16484 (qxfer_packets): Register "traceframe-info".
16485 (handle_query): Report support for qXfer:traceframe-info:read+.
16486 * tracepoint.c (match_blocktype): New.
16487 (traceframe_find_block_type): Rename to ...
16488 (traceframe_walk_blocks): ... this. Add callback filter argument,
16490 (traceframe_find_block_type): New, reimplemented on top of
16491 traceframe_walk_blocks.
16492 (build_traceframe_info_xml): New.
16493 (traceframe_read_info): New.
16494 * server.h (traceframe_read_info): Declare.
16496 2011-02-11 Yao Qi <yao@codesourcery.com>
16498 * configure.ac: Call AC_PROG_RANLIB.
16499 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16500 * configure: Regenerate.
16502 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16504 * server.c (gdb_read_memory): Change return semantics to allow
16506 (handle_search_memory_1): Adjust.
16507 (process_serial_event) <'m' packet>: Handle partial transfers.
16508 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16510 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16512 * regcache.c (init_register_cache): Initialize
16513 regcache->register_status.
16514 (free_register_cache): Release regcache->register_status.
16515 (regcache_cpy): Copy register_status.
16516 (registers_to_string): Print 'x's for unavailable registers.
16517 (supply_register): Mark the register's status valid or
16518 unavailable, depending on whether a buffer was passed in or not.
16519 (supply_register_zeroed): New.
16520 (supply_regblock): Mark the registers' status valid or
16521 unavailable, depending on whether a buffer was passed in or not.
16522 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16523 (struct regcache): New `register_status' field.
16524 (supply_register_zeroed): Declare.
16525 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16526 supply_register_zeroed, rather than passing a NULL buffer to
16528 * tracepoint.c (fetch_traceframe_registers): Update comment.
16530 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16532 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16535 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16537 * server.h (decode_xfer_write): Change prototype.
16538 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16539 and don't extract the annex here.
16540 * server.c (decode_xfer_read): Remove `annex' parameter,
16541 and don't extract the annex here.
16542 (decode_xfer): New.
16543 (struct qxfer): New.
16544 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16545 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16546 (handle_qxfer_statictrace): New functions, abstracted out from
16547 handle_query, and made to use the struct qxfer interface.
16548 (handle_threads_qxfer_proper): Rename to ...
16549 (handle_qxfer_threads_proper): ... this.
16550 (handle_threads_qxfer): Rename to ...
16551 (handle_qxfer_threads): ... this. Adjust.
16552 (qxfer_packets): New array.
16553 (handle_qxfer): New function.
16554 (handle_query): Use handle_qxfer.
16556 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16558 * gdbreplay.c: Shorten lines of >= 80 columns.
16559 * linux-low.c: Ditto.
16560 * linux-ppc-low.c: Ditto.
16561 * linux-s390-low.c: Ditto.
16562 * linux-sparc-low.c: Ditto.
16563 * linux-x86-low.c: Ditto.
16564 * linux-xtensa-low.c: Ditto.
16565 * mem-break.c: Ditto.
16566 * nto-low.c: Ditto.
16567 * regcache.h: Ditto.
16568 * remote-utils.c: Ditto.
16571 * thread-db.c: Ditto.
16572 * tracepoint.c: Ditto.
16574 * win32-low.h: Ditto.
16576 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16578 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16581 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16583 * server.c (gdbserver_version): Update copyright year in version
16585 * gdbreplay.c (gdbreplay_version): Ditto.
16587 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16589 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16590 * linux-bfin-low.c: New file.
16591 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16592 PT_DATA_ADDR for BFIN targets.
16593 * Makefile.in (SFILES): Add linux-bfin-low.c.
16594 (clean): Remove reg-bfin.c.
16595 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16596 * README: Mention supported Blackfin targets.
16598 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16600 * .gitignore: New file.
16602 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16604 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16606 2010-10-22 Jie Zhang <jie@codesourcery.com>
16608 * Makefile.in: Add FLAGS_TO_PASS variable.
16609 (install): Remove dependency of install-only and recursively
16610 invoke make for install-only.
16612 2010-10-04 Doug Evans <dje@google.com>
16614 * Makefile.in (uninstall): Use $(DESTDIR).
16616 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16620 * linux-x86-low.c (compat_siginfo_from_siginfo)
16621 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16622 si_code is < 0. Check for si_code == SI_TIMER before checking for
16625 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16627 * lynx-i386-low.c: New file.
16628 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16630 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16632 * lynx-low.c (ptrace_request_to_str): Remove handling for
16633 request values that have been removed in LynxOS 5.x.
16635 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16637 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16640 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16642 * configure.ac: Add --enable-inprocess-agent option.
16643 * configure: Rebuilt.
16645 2010-09-06 Yao Qi <yao@codesourcery.com>
16647 * linux-low.c (linux_kill): Remove unused variable.
16648 (linux_stabilize_threads): Likewise.
16649 * server.c (start_inferior): Likewise.
16650 (queue_stop_reply_callback): Likewise.
16651 * tracepoint.c (do_action_at_tracepoint): Likewise.
16653 2010-09-06 Yao Qi <yao@codesourcery.com>
16655 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16658 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16660 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16662 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16664 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16667 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16669 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16670 gdbserver/lynx-ppc-low.c: New files.
16671 * Makefile.in (lynx_low_h): New variable.
16672 (lynx-low.o, lynx-ppc-low.o): New rules.
16673 * configure.ac: On LynxOS, link with -lnetinet.
16674 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16675 * configure: regenerate.
16677 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16679 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16680 * configure.ac: Add check for vasprintf and vsnprintf.
16681 * configure, config.in: Regenerate.
16682 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16684 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16686 * gdbreplay.c: Move include of alloca.h up, next to include of
16688 * server.h: Add include of malloc.h.
16689 * mem-break.c: Remove include of malloc.h.
16690 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16692 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16694 * Makefile.in (memmem.o): Build with -Wno-error.
16696 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16698 * utils.c (xsnprintf): Make non-static.
16699 * server.h: Add xsnprintf declaration.
16700 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16701 replace calls to snprintf by calls to xsnprintf throughout.
16703 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16705 * configure.ac: Add configure check for alloca.
16706 * configure, config.in: Regenerate.
16707 * server.h: Include alloca.h if it exists.
16708 * gdbreplay.c: Include alloca.h if it exists.
16710 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16712 * linux-low.c (__SIGRTMIN): Define if not already defined.
16713 (linux_create_inferior): Check for __ANDROID__ rather than
16715 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16716 are already deferred.
16717 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16718 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16719 stopped and already has a pending signal to report.
16720 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16721 a pending signal to report or is moving out of a jump pad.
16722 (linux_init_signals): Check for __ANDROID__ rather than
16725 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16727 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16728 debug_threads check. Avoid a linear search when not doing debug
16731 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16733 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16734 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16735 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16736 (process_event): Change local fd's type to gdb_fildes_t.
16737 (create_file_handler): Adjust prototype.
16738 (delete_file_handler): Adjust prototype.
16739 (handle_file_event): Adjust prototype. Use pfildes.
16740 (create_file_event): Adjsut prototype.
16741 * remote-utils.c (remote_desc, listen_desc): Change type to
16743 * server.h: New gdb_fildes_t typedef.
16744 [USE_WIN32API]: Include winsock2.h.
16745 (delete_file_handler, add_file_handler): Adjust prototypes.
16746 (pfildes): Declare.
16747 * utils.c (pfildes): New.
16749 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16751 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16752 * configure: Regenerate.
16754 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16756 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16757 (linux_done_accessing_memory): ... this.
16758 (linux_target_ops): Adjust.
16759 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16760 * nto-low.c (nto_target_ops): Adjust comment.
16761 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16762 * spu-low.c (spu_target_ops): Adjust comment.
16763 * target.h (target_ops): Rename unprepare_to_access_memory field
16764 to done_accessing_memory.
16765 (unprepare_to_access_memory): Rename to ...
16766 (done_accessing_memory): ... this.
16768 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16770 * linux-low.c (linux_prepare_to_access_memory): New.
16771 (linux_unprepare_to_access_memory): New.
16772 (linux_target_ops): Install them.
16773 * server.c (read_memory): Rename to ...
16774 (gdb_read_memory): ... this. Use
16775 prepare_to_access_memory/prepare_to_access_memory.
16776 (write_memory): Rename to ...
16777 (gdb_write_memory): ... this. Use
16778 prepare_to_access_memory/prepare_to_access_memory.
16779 (handle_search_memory_1): Adjust.
16780 (process_serial_event): Adjust.
16781 * target.h (struct target_ops): New fields
16782 prepare_to_access_memory and unprepare_to_access_memory.
16783 (prepare_to_access_memory, unprepare_to_access_memory): New.
16784 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16785 prepare_to_access_memory/prepare_to_access_memory.
16786 * nto-low.c (nto_target_ops): Adjust.
16787 * spu-low.c (spu_target_ops): Adjust.
16788 * win32-low.c (win32_target_ops): Adjust.
16790 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16792 * Makefile.in (WARN_CFLAGS): Get it from configure.
16793 (WERROR_CFLAGS): New.
16794 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16795 * configure.ac: Introduce --enable-werror, which adds -Werror to
16796 the compiler command line. Enabled by default. Disable with
16797 --disable-werror. Add -Wdeclaration-after-statement
16798 Wpointer-arith and -Wformat-nonliteral to warning flags.
16799 * configure: Regenerate.
16801 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16803 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16805 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16807 * gdbreplay.c (remote_error): New.
16809 (expect): Use gdbchar. Check for error reading from GDB.
16810 Clarify sync error output.
16811 (play): Check for errors writing to GDB.
16812 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16813 * remote-utils.c (getpkt): Check for errors writing to the remote
16816 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16818 * linux-low.c (linux_wait_1): Move non-debugging code out of
16819 `debug_threads' control.
16821 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16823 * linux-low.c (linux_wait_1): Don't set last_status here.
16824 * server.c (push_event, queue_stop_reply_callback): Assert we're
16825 not pushing a TARGET_WAITKIND_IGNORE event.
16826 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16827 (myresume, handle_target_event): Set the thread's last_resume_kind
16828 and last_status from the target returned status.
16830 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16834 * linux-x86-low.c (update_debug_registers_callback): New.
16835 (i386_dr_low_set_addr): Use it.
16836 (i386_dr_low_get_addr): New.
16837 (i386_dr_low_set_control): Use update_debug_registers_callback.
16838 (i386_dr_low_get_control): New.
16839 (i386_dr_low_get_status): Adjust.
16840 * linux-low.c (linux_stop_lwp): New.
16841 * linux-low.h (linux_stop_lwp): Declare.
16843 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16844 argument instead of a i386_debug_reg_state.
16845 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16846 a i386_debug_reg_state.
16847 (i386_insert_aligned_watchpoint): Adjust.
16848 (i386_remove_aligned_watchpoint): Adjust.
16849 (i386_low_stopped_data_address): Read the debug registers from the
16850 inferior instead of from the mirrors.
16851 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16852 (i386_dr_low_get_addr): Declare.
16853 (i386_dr_low_get_control): Declare.
16854 (i386_dr_low_get_status): Change prototype.
16856 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16857 (i386_dr_low_get_addr): New.
16858 (i386_dr_low_get_control): New.
16859 (i386_dr_low_get_status): Adjust prototype. Return
16861 (i386_initial_stuff): Clear dr_status_mirror and
16863 (i386_get_thread_context): Adjust.
16864 (i386_set_thread_context): Adjust.
16865 (i386_thread_added): Adjust.
16867 2010-08-24 Pedro Alves <pedro@codesourcery.com>
16869 * linux-low.h (linux_thread_area): Delete declaration.
16871 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
16873 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
16874 after its termination.
16876 2010-08-09 Pedro Alves <pedro@codesourcery.com>
16878 * linux-low.c (gdb_wants_lwp_stopped): Delete.
16879 (gdb_wants_all_stopped): Delete.
16880 (linux_wait_1): Don't call them.
16881 * server.c (handle_v_cont): Tag all threads as want-stopped.
16882 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
16883 stopped as "client-wants-stopped".
16885 2010-07-31 Pedro Alves <pedro@codesourcery.com>
16887 * Makefile.in (signals_h): New.
16888 (server_h): Depend on it.
16889 (server.o): Don't depend on $(signals_def).
16890 (signals.o): Depend on $(signals_def).
16892 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
16894 * Makefile.in (signals_def): New.
16895 (server_h): Append include/gdb/signals.h and signals_def.
16896 (server.o): Append signals_def.
16898 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16900 * server.c (handle_target_event): Use target_signal_to_host for
16901 resume_info.sig initialization.
16902 * target.h (struct thread_resume) <sig>: New comment.
16904 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
16906 * server.c (handle_query): strcpy() the returned string from paddress()
16907 instead of sprintf().
16908 * utils.c (paddress): Return phex_nz().
16910 2010-07-07 Joel Brobecker <brobecker@adacore.com>
16912 * server.c (handle_v_cont): Call mourn_inferior if process
16914 (myresume): Likewise.
16916 2010-07-01 Pedro Alves <pedro@codesourcery.com>
16918 Static tracepoints, and integration with UST.
16920 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
16921 * mem-break.c (uninsert_all_breakpoints)
16922 (reinsert_all_breakpoints): New.
16923 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
16924 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
16925 (gdb_agent_ust_loaded, helper_thread_id)
16926 (gdb_agent_helper_thread_id): New macros.
16927 (struct ipa_sym_addresses): Add addr_ust_loaded,
16928 addr_helper_thread_id, addr_cmd_buf.
16929 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
16930 (in_process_agent_loaded_ust): New.
16931 (write_e_ust_not_loaded): New.
16932 (maybe_write_ipa_ust_not_loaded): New.
16933 (struct collect_static_trace_data_action): New.
16934 (enum tracepoint_type) <static_tracepoint>: New.
16935 (struct tracepoint) <handle>: Mention static tracepoints.
16936 (struct static_tracepoint_ctx): New.
16937 (CMD_BUF_SIZE): New.
16938 (add_tracepoint_action): Handle static tracepoint actions.
16939 (unprobe_marker_at): New.
16940 (clear_installed_tracepoints): Handle static tracepoints.
16941 (cmd_qtdp): Handle static tracepoints.
16942 (probe_marker_at): New.
16943 (cmd_qtstart): Handle static tracepoints.
16944 (response_tracepoint): Handle static tracepoints.
16945 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
16946 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
16947 (get_context_regcache): Handle static tracepoints.
16948 (do_action_at_tracepoint): Handle static tracepoint actions.
16949 (traceframe_find_block_type): Handle static trace data blocks.
16950 (traceframe_read_sdata): New.
16951 (download_tracepoints): Download static tracepoint actions.
16952 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
16953 (GDB_PROBE_NAME): New.
16955 (GET_UST_SYM): New.
16958 (ust_marker_to_static_tracepoint): New.
16960 (collect_ust_data_at_tracepoint): New.
16961 (gdb_ust_probe): New.
16962 (UNIX_PATH_MAX, SOCK_DIR): New.
16963 (gdb_ust_connect_sync_socket): New.
16964 (resume_thread, stop_thread): New.
16965 (run_inferior_command): New.
16966 (init_named_socket): New.
16967 (gdb_ust_socket_init): New.
16968 (cstr_to_hexstr): New.
16970 (first_marker, next_marker): New.
16971 (response_ust_marker): New.
16972 (cmd_qtfstm, cmd_qtsstm): New.
16973 (unprobe_marker_at, probe_marker_at): New.
16974 (cmd_qtstmat, gdb_ust_thread): New.
16975 (gdb_ust_init): New.
16976 (initialize_tracepoint_ftlib): Call gdb_ust_init.
16977 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
16978 (ST_REGENTRY): New.
16979 (x86_64_st_collect_regmap): New.
16980 (X86_64_NUM_ST_COLLECT_GREGS): New.
16981 (AMD64_RIP_REGNUM): New.
16982 (supply_static_tracepoint_registers): New.
16983 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
16984 (ST_REGENTRY): New.
16985 (i386_st_collect_regmap): New.
16986 (i386_NUM_ST_COLLECT_GREGS): New.
16987 (supply_static_tracepoint_registers): New.
16988 * server.c (handle_query): Handle qXfer:statictrace:read.
16989 <qSupported>: Report support for StaticTracepoints, and
16990 qXfer:statictrace:read features.
16991 * server.h (traceframe_read_sdata)
16992 (supply_static_tracepoint_registers): Declare.
16993 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
16994 (unpack_varlen_hex): Include in IPA build.
16995 * Makefile.in (ustlibs, ustinc): New.
16996 (IPA_OBJS): Add remote-utils-ipa.o.
16997 ($(IPA_LIB)): Link -ldl and -lpthread.
16999 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17000 * config.in, configure: Regenerate.
17002 2010-06-20 Ian Lance Taylor <iant@google.com>
17003 Pedro Alves <pedro@codesourcery.com>
17005 * linux-x86-low.c (always_true): Delete.
17006 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17007 trying to fool the compiler with always_true.
17009 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17011 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17012 conditions in gdbserver.
17014 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17016 * spu-low.c (spu_read_memory): Wrap around local store limit.
17017 (spu_write_memory): Likewise.
17019 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17021 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17022 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17024 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17026 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17027 uses with LONGEST uses.
17029 2010-06-14 Stan Shebs <stan@codesourcery.com>
17030 Pedro Alves <pedro@codesourcery.com>
17034 * linux-x86-low.c: Include limits.h.
17036 (always_true): New.
17039 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17040 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17041 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17042 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17043 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17044 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17045 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17046 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17047 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17048 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17049 (amd64_emit_void_call_2): New.
17050 (amd64_emit_ops): New.
17051 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17052 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17053 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17054 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17055 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17056 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17057 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17058 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17059 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17060 (i386_emit_stack_adjust, i386_emit_int_call_1)
17061 (i386_emit_void_call_2): New.
17062 (i386_emit_ops): New.
17063 (x86_emit_ops): New.
17064 (the_low_target): Install x86_emit_ops.
17065 * server.h (struct emit_ops): New.
17066 (get_raw_reg_func_addr): Declare.
17067 (current_insn_ptr, emit_error): Declare.
17068 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17069 (set_trace_state_variable_value): New defines.
17070 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17071 addr_get_trace_state_variable_value and
17072 addr_set_trace_state_variable_value.
17073 (symbol_list): New fields for get_raw_reg,
17074 get_trace_state_variable_value and set_trace_state_variable_value.
17075 (condfn): New typedef.
17076 (struct tracepoint): New field `compiled_cond'.
17077 (do_action_at_tracepoint): Clear compiled_cond.
17078 (get_trace_state_variable_value, set_trace_state_variable_value):
17080 (condition_true_at_tracepoint): If there's a compiled condition,
17082 (current_insn_ptr, emit_error): New globals.
17083 (struct bytecode_address): New.
17084 (get_raw_reg_func_addr): New.
17085 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17086 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17087 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17088 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17089 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17090 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17091 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17092 (compile_tracepoint_condition, compile_bytecodes): New.
17093 * target.h (emit_ops): Forward declare.
17094 (struct target_ops): New field emit_ops.
17095 (target_emit_ops): New.
17096 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17097 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17098 * linux-low.c (linux_emit_ops): New.
17099 (linux_target_ops): Install it.
17100 * linux-low.h (struct linux_target_ops): New field emit_ops.
17102 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17104 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17105 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17107 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17108 Stan Shebs <stan@codesourcery.com>
17110 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17111 (all): Depend on $(extra_libraries).
17112 (install-only): Install the IPA.
17113 (IPA_OBJS, IPA_LIB): New.
17114 (clean): Remove the IPA lib.
17115 (IPAGENT_CFLAGS): New.
17116 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17117 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17118 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17119 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17120 * configure.ac: Check for atomic builtins support in the compiler.
17121 (IPA_DEPFILES, extra_libraries): Define.
17122 * configure.srv (ipa_obj): Add description.
17123 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17124 (i[34567]86-*-linux*): Set ipa_obj.
17125 (x86_64-*-linux*): Set ipa_obj.
17126 * linux-low.c (stabilizing_threads): New.
17127 (supports_fast_tracepoints): New.
17128 (linux_detach): Stabilize threads before detaching.
17129 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17130 the lwp is either not stabilizing, or is moving out of a jump pad.
17131 (linux_fast_tracepoint_collecting): New.
17132 (maybe_move_out_of_jump_pad): New.
17133 (enqueue_one_deferred_signal): New.
17134 (dequeue_one_deferred_signal): New.
17135 (linux_wait_for_event_1): If moving out of a jump pad, defer
17136 pending signals to later.
17137 (linux_stabilize_threads): New.
17138 (linux_wait_1): Check if threads need moving out of jump pads, and
17140 (stuck_in_jump_pad_callback): New.
17141 (move_out_of_jump_pad_callback): New.
17142 (lwp_running): New.
17143 (linux_resume_one_lwp): Handle moving out of jump pads.
17144 (linux_set_resume_request): Dequeue deferred signals.
17145 (need_step_over_p): Also step over fast tracepoint jumps.
17146 (start_step_over): Also uninsert fast tracepoint jumps.
17147 (finish_step_over): Also reinsert fast tracepoint jumps.
17148 (linux_install_fast_tracepoint_jump): New.
17149 (linux_target_ops): Install linux_stabilize_threads and
17150 linux_install_fast_tracepoint_jump_pad.
17151 * linux-low.h (linux_target_ops) <get_thread_area,
17152 install_fast_tracepoint_jump_pad>: New fields.
17153 (struct lwp_info) <collecting_fast_tracepoint,
17154 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17155 (linux_get_thread_area): Declare.
17156 * linux-x86-low.c (jump_insn): New.
17157 (x86_get_thread_area): New.
17158 (append_insns): New.
17159 (push_opcode): New.
17160 (amd64_install_fast_tracepoint_jump_pad): New.
17161 (i386_install_fast_tracepoint_jump_pad): New.
17162 (x86_install_fast_tracepoint_jump_pad): New.
17163 (the_low_target): Install x86_get_thread_area and
17164 x86_install_fast_tracepoint_jump_pad.
17165 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17166 (struct fast_tracepoint_jump): New.
17167 (fast_tracepoint_jump_insn): New.
17168 (fast_tracepoint_jump_shadow): New.
17169 (find_fast_tracepoint_jump_at): New.
17170 (fast_tracepoint_jump_here): New.
17171 (delete_fast_tracepoint_jump): New.
17172 (set_fast_tracepoint_jump): New.
17173 (uninsert_fast_tracepoint_jumps_at): New.
17174 (reinsert_fast_tracepoint_jumps_at): New.
17175 (set_breakpoint_at): Use write_inferior_memory.
17176 (uninsert_raw_breakpoint): Use write_inferior_memory.
17177 (check_mem_read): Mask out fast tracepoint jumps.
17178 (check_mem_write): Mask out fast tracepoint jumps.
17179 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17180 (set_fast_tracepoint_jump): Declare.
17181 (delete_fast_tracepoint_jump)
17182 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17183 (reinsert_fast_tracepoint_jumps_at): Declare.
17184 * regcache.c: Don't compile many functions when building the
17185 in-process agent library.
17186 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17187 the register buffer in the heap.
17188 (free_register_cache): If the register buffer isn't owned by the
17189 regcache, don't free it.
17190 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17191 pre-existing register caches.
17192 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17194 (convert_ascii_to_int): : Constify `from' parameter type.
17195 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17196 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17197 the needed buffer in-place.
17198 (relocate_instruction): New.
17199 * server.c (handle_query) <qSymbols>: If the target supports
17200 tracepoints, give it a chance of looking up symbols. Report
17201 support for fast tracepoints.
17202 (handle_status): Stabilize threads.
17203 (process_serial_event): Adjust.
17204 * server.h (struct fast_tracepoint_jump): Forward declare.
17205 (struct process_info) <fast_tracepoint_jumps>: New field.
17206 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17207 (decode_X_packet, decode_M_packet): Adjust.
17208 (relocate_instruction): Declare.
17209 (in_process_agent_loaded): Declare.
17210 (tracepoint_look_up_symbols): Declare.
17211 (struct fast_tpoint_collect_status): Declare.
17212 (fast_tracepoint_collecting): Declare.
17213 (force_unlock_trace_buffer): Declare.
17214 (handle_tracepoint_bkpts): Declare.
17215 (initialize_low_tracepoint)
17216 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17217 * target.h (struct target_ops) <stabilize_threads,
17218 install_fast_tracepoint_jump_pad>: New fields.
17219 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17220 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17221 [HAVE_STDINT_H]: Include stdint.h.
17222 (trace_debug_1): Rename to ...
17223 (trace_vdebug): ... this.
17224 (trace_debug): Rename to ...
17225 (trace_debug_1): ... this. Add `level' parameter.
17226 (trace_debug): New.
17227 (ATTR_USED, ATTR_NOINLINE): New.
17228 (IP_AGENT_EXPORT): New.
17229 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17230 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17231 (about_to_request_buffer_space, trace_buffer_is_full)
17232 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17233 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17234 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17235 (traceframe_write_count, traceframes_created)
17236 (trace_state_variables)
17237 New renaming defines.
17238 (struct ipa_sym_addresses): New.
17239 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17240 (symbol_list): New.
17241 (ipa_sym_addrs): New.
17242 (all_tracepoint_symbols_looked_up): New.
17243 (in_process_agent_loaded): New.
17244 (write_e_ipa_not_loaded): New.
17245 (maybe_write_ipa_not_loaded): New.
17246 (tracepoint_look_up_symbols): New.
17247 (debug_threads) [IN_PROCESS_AGENT]: New.
17248 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17249 (UNKNOWN_SIDE_EFFECTS): New.
17250 (stop_tracing): New.
17251 (flush_trace_buffer): New.
17252 (stop_tracing_bkpt): New.
17253 (flush_trace_buffer_bkpt): New.
17254 (read_inferior_integer): New.
17255 (read_inferior_uinteger): New.
17256 (read_inferior_data_pointer): New.
17257 (write_inferior_data_pointer): New.
17258 (write_inferior_integer): New.
17259 (write_inferior_uinteger): New.
17260 (struct collect_static_trace_data_action): Delete.
17261 (enum tracepoint_type): New.
17262 (struct tracepoint) <type>: New field `type'.
17263 <actions_str, step_actions, step_actions_str>: Only include in
17265 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17266 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17267 (tracepoints): Use IP_AGENT_EXPORT.
17268 (last_tracepoint): Don't include in the IPA.
17269 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17270 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17271 (alloced_trace_state_variables): New.
17272 (trace_state_variables): Use IP_AGENT_EXPORT.
17273 (traceframe_t): Delete unused variable.
17274 (circular_trace_buffer): Don't include in the IPA.
17275 (trace_buffer_start): Delete.
17276 (struct trace_buffer_control): New.
17277 (trace_buffer_free): Delete.
17278 (struct ipa_trace_buffer_control): New.
17279 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17280 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17282 (trace_buffer_ctrl): New.
17283 (TRACE_BUFFER_CTRL_CURR): New.
17284 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17285 Reimplement as macros.
17286 (trace_buffer_wrap): Delete.
17287 (traceframe_write_count, traceframe_read_count)
17288 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17289 (struct tracepoint_hit_ctx) <type>: New field.
17290 (struct fast_tracepoint_ctx): New.
17291 (memory_barrier): New.
17293 (record_tracepoint_error): Update atomically in the IPA.
17294 (clear_inferior_trace_buffer): New.
17295 (about_to_request_buffer_space): New.
17296 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17297 updating the same buffer.
17298 (add_tracepoint): Default the tracepoint's type to trap
17299 tracepoint, and orig_size to -1.
17300 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17301 internal variables.
17302 (create_trace_state_variable): New parameter `gdb'. Handle it.
17303 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17304 (cmd_qtdp): Handle fast tracepoints.
17305 (cmd_qtdv): Adjust.
17306 (max_jump_pad_size): New.
17307 (gdb_jump_pad_head): New.
17308 (get_jump_space_head): New.
17309 (claim_jump_space): New.
17310 (sort_tracepoints): New.
17311 (MAX_JUMP_SIZE): New.
17312 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17314 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17315 support. Upload fast traceframes, and delete internal IPA
17317 (stop_tracing_handler): New.
17318 (flush_trace_buffer_handler): New.
17319 (cmd_qtstop): Upload fast tracepoints.
17320 (response_tracepoint): Handle fast tracepoints.
17321 (tracepoint_finished_step): Upload fast traceframes. Set the
17322 tracepoint hit context's tracepoint type.
17323 (handle_tracepoint_bkpts): New.
17324 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17325 type. Add comment about fast tracepoints.
17326 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17327 non-existing action_str field.
17328 (get_context_regcache): Handle fast tracepoints.
17329 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17331 (fast_tracepoint_from_jump_pad_address): New.
17332 (fast_tracepoint_from_ipa_tpoint_address): New.
17333 (collecting_t): New.
17334 (force_unlock_trace_buffer): New.
17335 (fast_tracepoint_collecting): New.
17337 (gdb_collect): New.
17338 (write_inferior_data_ptr): New.
17339 (target_tp_heap): New.
17340 (target_malloc): New.
17341 (download_agent_expr): New.
17343 (download_tracepoints): New.
17344 (download_trace_state_variables): New.
17345 (upload_fast_traceframes): New.
17346 (IPA_FIRST_TRACEFRAME): New.
17347 (IPA_NEXT_TRACEFRAME_1): New.
17348 (IPA_NEXT_TRACEFRAME): New.
17349 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17350 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17351 (gdb_jump_pad_buffer_end): New.
17352 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17353 (initialize_tracepoint): Adjust.
17354 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17355 buffer. Initialize the low module.
17356 * utils.c (PREFIX, TOOLNAME): New.
17357 (malloc_failure): Use PREFIX.
17358 (error): In the IPA, an error causes an exit.
17359 (fatal, warning): Use PREFIX.
17360 (internal_error): Use TOOLNAME.
17361 (NUMCELLS): Increase to 10.
17362 * configure, config.in: Regenerate.
17364 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17366 * server.c (handle_query) <qSupported>: Do two passes over the
17367 qSupported string to avoid nesting strtok.
17369 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17371 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17373 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17374 -Wl,--dynamic-list.
17375 * configure: Regenerate.
17376 * proc-service.list: New.
17378 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17380 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17383 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17385 * gdbreplay.c (remote_open): Check error return from socket() call by
17386 its equality to -1 not by it being negative.
17387 * remote-utils.c (remote_open): Likewise.
17389 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17391 * config.h: Regenerate.
17393 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17395 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17396 doesn't provide PTRACE_GET_THREAD_AREA.
17398 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17400 * linux-m68k-low.c: Include <asm/ptrace.h>
17401 (ps_get_thread_area): Implement.
17403 2010-05-03 Doug Evans <dje@google.com>
17405 * event-loop.c (struct callback_event): New struct.
17406 (callback_list): New global.
17407 (append_callback_event, delete_callback_event): New functions.
17408 (process_callback): New function.
17409 (start_event_loop): Call it.
17410 * remote-utils.c (NOT_SCHEDULED): Define.
17411 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17412 moved out of readchar.
17413 (readchar): Rewrite. Call reschedule before returning.
17414 (reset_readchar): New function.
17415 (remote_close): Call it.
17416 (process_remaining, reschedule): New functions.
17417 * server.h (callback_handler_func): New typedef.
17418 (append_callback_event, delete_callback_event): Declare.
17420 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17422 * proc-service.c (ps_pglobal_lookup): Use
17423 thread_db_look_up_one_symbol.
17424 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17425 parameter. Use it instead of all_symbols_looked_up.
17426 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17428 (all_symbols_looked_up): Don't declare.
17429 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17430 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17432 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17433 Set all_symbols_looked_up here.
17434 (thread_db_look_up_one_symbol): New.
17435 (thread_db_get_tls_address): Adjust.
17436 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17437 thread_db object on the heap, and tentatively set it in the
17439 (thread_db_init): Don't set all_symbols_looked_up here.
17440 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17442 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17444 * linux-low.c (linux_kill, linux_detach): Adjust.
17445 (status_pending_p_callback): Remove redundant statement. Check
17446 for !TARGET_WAITIKIND_IGNORE, instead of
17447 TARGET_WAITKIND_STOPPED.
17448 (handle_tracepoints): Make sure LWP is locked. Adjust.
17449 (linux_wait_for_event_1): Adjust.
17450 (linux_cancel_breakpoints): New.
17451 (unsuspend_one_lwp): New.
17452 (unsuspend_all_lwps): New.
17453 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17454 (send_sigstop_callback): Change return type to int, add new
17455 `except' parameter and handle it.
17456 (suspend_and_send_sigstop_callback): New.
17457 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17458 pass them down. If SUSPEND, also increment the lwp's suspend
17460 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17461 (need_step_over_p): Don't consider suspended LWPs.
17462 (start_step_over): Adjust.
17463 (proceed_one_lwp): Change return type to int, add new `except'
17464 parameter and handle it.
17465 (unsuspend_and_proceed_one_lwp): New.
17466 (proceed_all_lwps): Use find_inferior instead of
17468 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17469 also decrement the suspend count of LWPs. Pass `except' down,
17470 instead of hacking its suspend count.
17471 (linux_pause_all): Add `freeze' parameter. Adjust.
17472 (linux_unpause_all): New.
17473 (linux_target_ops): Install linux_unpause_all.
17474 * server.c (handle_status): Adjust.
17475 * target.h (struct target_ops): New fields `unpause_all' and
17476 `cancel_breakpoints'. Add new parameter to `pause_all'.
17477 (pause_all): Add new `freeze' parameter.
17478 (unpause_all): New.
17479 (cancel_breakpoints): New.
17480 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17481 cancel breakpoints.
17482 (cmd_qtstart): Pause threads.
17483 (stop_tracing): Pause threads, and cancel breakpoints.
17484 * win32-low.c (win32_target_ops): Adjust.
17486 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17488 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17489 the inferior right away from here...
17490 (linux_wait_1): ... to here, and adjust to check the thread's
17491 last_resume_kind instead of the lwp's step or stop_expected flags.
17493 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17495 * README: Use consistent `GDB' and `GDBserver' spellings.
17497 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17499 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17500 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17501 (linux_detach_one_lwp): Assume the lwp is stopped.
17502 (any_thread_of): Delete.
17503 (linux_detach): Stop all lwps here. Don't blindly delete all
17505 (delete_lwp_callback): New.
17506 (linux_mourn): Delete all lwps of the process that is gone.
17507 (linux_wait_1): Don't delete the last lwp of the process here.
17508 * mem-break.h (mark_breakpoints_out): Declare.
17509 * mem-break.c (mark_breakpoints_out): New.
17510 (free_all_breakpoints): Use it.
17511 * server.c (handle_target_event): If the process is gone, mark
17513 * thread-db.c (struct thread_db) <create_bp>: New field.
17514 (thread_db_enable_reporting): Fix prototype. Store a thread event
17515 breakpoint reference in the thread_db struct.
17516 (thread_db_load_search): Clear the thread_db object.
17517 (try_thread_db_load_1): Ditto.
17518 (switch_to_process): New.
17519 (disable_thread_event_reporting): Use it.
17520 (remove_thread_event_breakpoints): New.
17521 (thread_db_detach, thread_db_mourn): Use it.
17523 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17525 * linux-low.c (linux_enable_event_reporting): New.
17526 (linux_wait_for_event_1, handle_extended_wait): Use it.
17528 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17530 * linux-low.c (linux_kill_one_lwp, linux_kill)
17531 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17532 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17533 SIGSTOP even if the LWP is stopped.
17534 (send_sigstop_callback): New.
17535 (stop_all_lwps): Use send_sigstop_callback instead.
17536 (linux_resume_one_thread): Adjust.
17537 (proceed_one_lwp): Still proceed an LWP that the client has
17538 requested to stop, if we haven't reported it as stopped yet. Make
17539 sure that LWPs the client want stopped, have a pending SIGSTOP.
17541 2010-04-26 Doug Evans <dje@google.com>
17543 * server.c (handle_general_set): Make static.
17545 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17546 Print received char after testing for error/eof instead of before.
17547 (input_interrupt): Tweak comment.
17549 2010-04-23 Doug Evans <dje@google.com>
17551 * server.c (start_inferior): Print inferior argv if --debug.
17553 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17555 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17556 * nto-x86-low.c: Include server.h
17558 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17560 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17561 be consistent with other sources of this directory.
17562 (init_registers_amd64): Correct name of source file of this function
17565 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17567 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17568 64-bit executables.
17570 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17572 * win32-i386-low.c: Add 64-bit support.
17573 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17574 (init_registers_amd64): Declare.
17575 (mappings): Add 64-bit version of array.
17576 (init_windows_x86): New function.
17577 (the_low_target): Change init_arch field to init_windows_x86.
17579 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17581 * win32-low.c: Adapt to support also 64-bit architecture.
17582 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17583 (get_image_name): Use SIZE_T type for local variable `done'.
17584 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17585 (toolhelp_get_dll_name): Idem.
17586 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17587 Use uintptr_t typecast to avoid warning.
17588 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17589 (handle_exception): Use phex_nz to avoid warning.
17590 (win32_wait): Remove unused local variable `process'.
17592 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17594 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17597 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17599 * configure.ac: Use `ws2_32' library for srv_mingw.
17600 * configure: Regenerate.
17601 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17602 * remote-utils.c: Likewise.
17604 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17606 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17607 if __x86_64__ is defined.
17609 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17611 * configure: Regenerate.
17613 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17615 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17616 * target.h (target_ops): New get_tib_address field.
17617 * win32-low.h (win32_thread_info): Add thread_local_base field.
17618 * win32-low.c (child_add_thread): Add tlb argument.
17619 Set thread_local_base field to TLB.
17620 (get_child_debug_event): Adapt to child_add_thread change.
17621 (win32_get_tib_address): New function.
17622 (win32_target_ops): Set get_tib_address field to
17623 win32_get_tib_address.
17624 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17626 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17628 * linux-low.c (linux_mourn): Also remove the process.
17629 * server.c (handle_target_event): Don't remove the process here.
17630 * nto-low.c (nto_mourn): New.
17631 (nto_target_ops): Install it.
17632 * spu-low.c (spu_mourn): New.
17633 (spu_target_ops): Install it.
17634 * win32-low.c (win32_mourn): New.
17635 (win32_target_ops): Install it.
17637 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17639 * server.h (buffer_xml_printf): Remove redundant `;'.
17641 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17643 * regcache.c (set_register_cache): Invalidate regcaches before
17644 changing the register cache layout.
17645 (regcache_invalidate_one): Allow a NULL regcache.
17646 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17647 regcaches before changing the register cache layout or the target
17650 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17652 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17653 variable warning on Linux/x86-64.
17655 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17657 GDBserver disconnected tracing support.
17659 * linux-low.c (linux_remove_process): Delete.
17660 (add_lwp): Don't set last_resume_kind here.
17661 (linux_kill): Use `mourn'.
17662 (linux_detach): Use `thread_db_detach', and `mourn'.
17663 (linux_mourn): New.
17664 (linux_attach_lwp_1): Adjust comment.
17665 (linux_attach): last_resume_kind moved the thread_info; adjust.
17666 (status_pending_p_callback): Adjust.
17667 (linux_wait_for_event_1): Adjust.
17668 (count_events_callback, select_singlestep_lwp_callback)
17669 (select_event_lwp_callback, cancel_breakpoints_callback)
17670 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17671 (proceed_one_lwp): Adjust.
17672 (linux_async): Add debug output.
17673 (linux_thread_stopped): New.
17674 (linux_pause_all): New.
17675 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17677 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17678 (thread_db_free): Delete declaration.
17679 (thread_db_detach, thread_db_mourn): Declare.
17680 * thread-db.c (thread_db_init): Use thread_db_mourn.
17681 (thread_db_free): Delete, split in two.
17682 (disable_thread_event_reporting): New.
17683 (thread_db_detach): New.
17684 (thread_db_mourn): New.
17686 * server.h (struct thread_info) <last_resume_kind>: New field.
17687 <attached>: Add comment.
17688 <gdb_detached>: New field.
17689 (handler_func): Change return type to int.
17690 (handle_serial_event, handle_target_event): Ditto.
17691 (gdb_connected): Declare.
17693 (disconnected_tracing): Declare.
17694 (stop_tracing): Declare.
17696 * server.c (handle_query) <qSupported>: Report support for
17697 disconnected tracing.
17698 (queue_stop_reply_callback): Account for running threads.
17699 (gdb_wants_thread_stopped): New.
17700 (gdb_wants_all_threads_stopped): New.
17701 (gdb_reattached_process): New.
17702 (handle_status): Clear the `gdb_detached' flag of all processes.
17703 In all-stop, stop all threads.
17704 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17705 (process_serial_event): If the remote connection breaks, or if an
17706 exit was forced with "monitor exit", force an event loop exit.
17707 Handle disconnected tracing on detach.
17708 (handle_serial_event): Adjust.
17709 (handle_target_event): If GDB isn't connected, forward events back
17710 to the inferior, unless the last process exited, in which case,
17711 exit gdbserver. Adjust interface.
17713 * remote-utils.c (remote_open): Don't block in accept. Instead
17714 register an event loop source on the listen socket file
17715 descriptor. Refactor bits into ...
17716 (listen_desc): ... this new global.
17717 (gdb_connected): ... this new function.
17718 (enable_async_notification): ... this new function.
17719 (handle_accept_event): ... this new function.
17720 (remote_close): Clear remote_desc.
17722 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17724 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17726 (mourn_inferior): Define.
17727 (target_process_qsupported): Avoid the dangling else problem.
17728 (thread_stopped): Define.
17729 (pause_all): Define.
17730 (target_waitstatus_to_string): Declare.
17731 * target.c (target_waitstatus_to_string): New.
17733 * tracepoint.c (tracing): Make extern.
17734 (disconnected_tracing): New.
17735 (stop_tracing): Make extern. Handle tracing stops due to GDB
17737 (cmd_qtdisconnected): New.
17738 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17739 (handle_tracepoint_general_set): Handle QTDisconnected.
17741 * event-loop.c (event_handler_func): Change return type to int.
17742 (process_event): Bail out if the event handler wants the event
17744 (handle_file_event): Ditto.
17745 (start_event_loop): Bail out if the event handler wants the event
17748 * nto-low.c (nto_target_ops): Adjust.
17749 * spu-low.c (spu_wait): Don't remove the process here.
17750 (spu_target_ops): Adjust.
17751 * win32-low.c (win32_wait): Don't remove the process here.
17752 (win32_target_ops): Adjust.
17754 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17756 * regcache.c (realloc_register_cache): Invalidate inferior's
17757 regcache before recreating it.
17759 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17761 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17763 2010-04-09 Stan Shebs <stan@codesourcery.com>
17764 Pedro Alves <pedro@codesourcery.com>
17766 * server.h (LONGEST): New.
17767 (struct thread_info) <while_stepping>: New field.
17768 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17770 (initialize_tracepoint, handle_tracepoint_general_set)
17771 (handle_tracepoint_query, tracepoint_finished_step)
17772 (tracepoint_was_hit, release_while_stepping_state_list):
17773 (current_traceframe): Declare.
17774 * server.c (handle_general_set): Handle tracepoint packets.
17775 (read_memory): New.
17776 (write_memory): New.
17777 (handle_search_memory_1): Use read_memory.
17778 (handle_query): Report support for conditional tracepoints, trace
17779 state variables, and tracepoint sources. Handle tracepoint
17781 (main): Initialize the tracepoints module.
17782 (process_serial_event): Handle traceframe reads/writes.
17784 * linux-low.c (handle_tracepoints): New.
17785 (linux_wait_1): Call it.
17786 (linux_resume_one_lwp): Handle while-stepping.
17787 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17788 (linux_target_ops): Install them.
17789 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17791 * linux-x86-low.c (x86_supports_tracepoints): New.
17792 (the_low_target). Install it.
17794 * mem-break.h (delete_breakpoint): Declare.
17795 * mem-break.c (delete_breakpoint): Make external.
17797 * target.h (struct target_ops): Add `supports_tracepoints',
17798 `read_pc', and `write_pc' fields.
17799 (target_supports_tracepoints): Define.
17800 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17803 * regcache.h (struct regcache) <registers_owned>: New field.
17804 (init_register_cache, regcache_cpy): Declare.
17805 (regcache_read_pc, regcache_write_pc): Declare.
17806 (register_cache_size): Declare.
17807 (supply_regblock): Declare.
17808 * regcache.c (init_register_cache): New.
17809 (new_register_cache): Use it.
17810 (regcache_cpy): New.
17811 (register_cache_size): New.
17812 (supply_regblock): New.
17813 (regcache_read_pc, regcache_write_pc): New.
17815 * tracepoint.c: New.
17817 * Makefile.in (OBS): Add tracepoint.o.
17818 (tracepoint.o): New rule.
17820 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17822 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17824 (i386-mmx.c): Likewise.
17825 (i386-mmx-linux.o): Likewise.
17826 (i386-mmx-linux.c): Likewise.
17828 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17829 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17830 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17831 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17833 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17834 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17835 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17837 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17839 * Makefile.in (clean): Updated.
17841 (i386-avx.c): Likewise.
17842 (i386-avx-linux.o): Likewise.
17843 (i386-avx-linux.c): Likewise.
17844 (amd64-avx.o): Likewise.
17845 (amd64-avx.c): Likewise.
17846 (amd64-avx-linux.o): Likewise.
17847 (amd64-avx-linux.c): Likewise.
17849 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17850 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17851 (srv_amd64_regobj): Add amd64-avx.o.
17852 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17853 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17854 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17855 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17856 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17857 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17858 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17860 * i387-fp.c: Include "i386-xstate.h".
17862 (i387_cache_to_xsave): Likewise.
17863 (i387_xsave_to_cache): Likewise.
17864 (x86_xcr0): Likewise.
17866 * i387-fp.h (i387_cache_to_xsave): Likewise.
17867 (i387_xsave_to_cache): Likewise.
17868 (x86_xcr0): Likewise.
17870 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
17871 * linux-crisv32-low.c (target_regsets): Likewise.
17872 * linux-m68k-low.c (target_regsets): Likewise.
17873 * linux-mips-low.c (target_regsets): Likewise.
17874 * linux-ppc-low.c (target_regsets): Likewise.
17875 * linux-s390-low.c (target_regsets): Likewise.
17876 * linux-sh-low.c (target_regsets): Likewise.
17877 * linux-sparc-low.c (target_regsets): Likewise.
17878 * linux-xtensa-low.c (target_regsets): Likewise.
17880 * linux-low.c: Include <sys/uio.h>.
17881 (regsets_fetch_inferior_registers): Support nt_type.
17882 (regsets_store_inferior_registers): Likewise.
17883 (linux_process_qsupported): New.
17884 (linux_target_ops): Add linux_process_qsupported.
17886 * linux-low.h (regset_info): Add nt_type.
17887 (linux_target_ops): Add process_qsupported.
17889 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
17891 (init_registers_i386_avx_linux): New.
17892 (init_registers_amd64_avx_linux): Likewise.
17893 (xmltarget_i386_linux_no_xml): Likewise.
17894 (xmltarget_amd64_linux_no_xml): Likewise.
17895 (PTRACE_GETREGSET): Likewise.
17896 (PTRACE_SETREGSET): Likewise.
17897 (x86_fill_xstateregset): Likewise.
17898 (x86_store_xstateregset): Likewise.
17899 (use_xml): Likewise.
17900 (x86_linux_update_xmltarget): Likewise.
17901 (x86_linux_process_qsupported): Likewise.
17902 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
17903 (x86_arch_setup): Don't call init_registers_amd64_linux nor
17904 init_registers_i386_linux here. Call
17905 x86_linux_update_xmltarget.
17906 (the_low_target): Add x86_linux_process_qsupported.
17908 * server.c (handle_query): Call target_process_qsupported.
17910 * target.h (target_ops): Add process_qsupported.
17911 (target_process_qsupported): New.
17913 2010-04-03 Pedro Alves <pedro@codesourcery.com>
17915 * inferiors.c (add_thread): Set last_status kind to
17916 TARGET_WAITKIND_IGNORE.
17917 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
17918 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
17919 (linux_wait_1): Move `thread' local definition to block that uses
17920 it. Don't NULL initialize `event_child'.
17921 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
17922 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
17923 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
17925 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17927 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
17928 an extended waitstatus, or by a watchpoint.
17929 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
17930 thread was stepping or has been stopped by a watchpoint.
17932 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17934 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
17935 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
17936 of another, then delete the previous, and validate all
17938 (validate_inserted_breakpoint): New.
17939 (delete_disabled_breakpoints): New.
17940 (validate_breakpoints): New.
17941 (check_mem_read): Validate breakpoints before trusting their
17942 shadow. Delete disabled breakpoints.
17943 (check_mem_write): Validate breakpoints before trusting they
17944 should be inserted. Delete disabled breakpoints.
17945 * mem-break.h (validate_breakpoints):
17946 * server.c (handle_query): Validate breakpoints when we see a
17949 2010-04-01 Pedro Alves <pedro@codesourcery.com>
17951 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
17952 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
17953 if we could tell there's a GDB breakpoint at stop_pc.
17954 (need_step_over_p): Don't do a step over if we find a GDB
17955 breakpoint at the resume PC.
17957 * mem-break.c (struct raw_breakpoint): New.
17958 (enum bkpt_type): New type `gdb_breakpoint'.
17959 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
17960 fields. New field `raw'.
17961 (find_raw_breakpoint_at): New.
17962 (set_raw_breakpoint_at): Handle refcounting. Create a raw
17963 breakpoint instead.
17964 (set_breakpoint_at): Adjust.
17965 (delete_raw_breakpoint): New.
17966 (release_breakpoint): New.
17967 (delete_breakpoint): Rename to...
17968 (delete_breakpoint_1): ... this. Add proc parameter. Use
17969 release_breakpoint. Return ENOENT.
17970 (delete_breakpoint): Reimplement.
17971 (find_breakpoint_at): Delete.
17972 (find_gdb_breakpoint_at): New.
17973 (delete_breakpoint_at): Delete.
17974 (set_gdb_breakpoint_at): New.
17975 (delete_gdb_breakpoint_at): New.
17976 (gdb_breakpoint_here): New.
17977 (set_reinsert_breakpoint): Use release_breakpoint.
17978 (uninsert_breakpoint): Rename to ...
17979 (uninsert_raw_breakpoint): ... this.
17980 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
17981 (reinsert_raw_breakpoint): Change parameter type to
17983 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
17985 (check_breakpoints): Adjust. Use release_breakpoint.
17986 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
17987 (breakpoint_inserted_here): Ditto.
17988 (check_mem_read): Adjust to iterate over raw breakpoints instead.
17989 Don't trust the breakpoint's shadow if it is not inserted.
17990 (check_mem_write): Adjust to iterate over raw breakpoints instead.
17991 (delete_all_breakpoints): Adjust.
17992 (free_all_breakpoints): Mark all breakpoints as uninserted, and
17993 use delete_breakpoint_1.
17995 * mem-break.h (breakpoints_supported): Delete declaration.
17996 (set_gdb_breakpoint_at): Declare.
17997 (gdb_breakpoint_here): Declare.
17998 (delete_breakpoint_at): Delete.
17999 (delete_gdb_breakpoint_at): Declare.
18001 * server.h (struct raw_breakpoint): Forward declare.
18002 (struct process_info): New field `raw_breakpoints'.
18004 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18007 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18009 * linux-low.c (status_pending_p_callback): Fix comment.
18010 (linux_wait_for_event_1): Move most of the internal breakpoint
18011 handling from here...
18012 (linux_wait_1): ... to here.
18013 (count_events_callback): New.
18014 (select_singlestep_lwp_callback): New.
18015 (select_event_lwp_callback): New.
18016 (cancel_breakpoints_callback): New.
18017 (select_event_lwp): New.
18018 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18019 priority to all LWPs that have had events that should be reported
18020 to the client. Cancel breakpoints when about to reporting the
18021 event to the client, not while stopping lwps. No longer cancel
18022 finished single-steps here.
18023 (cancel_finished_single_step): Delete.
18024 (cancel_finished_single_steps): Delete.
18026 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18028 * mem-break.c (enum bkpt_type): New.
18029 (struct breakpoint): New field `type'.
18030 (set_breakpoint_at): Change return type to struct breakpoint
18031 pointer. Set type to `other_breakpoint' by default.
18032 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18033 in the breakpoint list.
18034 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18035 (reinsert_breakpoint): Rename to ...
18036 (reinsert_raw_breakpoint): ... this.
18037 (reinsert_breakpoints_at): Adjust.
18038 * mem-break.h (struct breakpoint): Declare.
18039 (set_breakpoint_at): Change return type to struct breakpoint
18042 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18044 * server.c (handle_query): Assign, not compare.
18046 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18048 Teach linux gdbserver to step-over-breakpoints.
18050 * linux-low.c (can_hardware_single_step): New.
18051 (supports_breakpoints): New.
18052 (handle_extended_wait): If stopping threads, read the stop pc of
18053 the new cloned LWP.
18055 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18056 low target doesn't support retrieving the PC.
18057 (add_lwp): Set last_resume_kind to resume_continue.
18058 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18059 (linux_attach): Don't clear stop_expected. Set the lwp's
18060 last_resume_kind to resume_stop.
18061 (linux_detach_one_lwp): Don't check for removed breakpoints.
18062 (check_removed_breakpoint): Delete.
18063 (status_pending_p): Rename to ...
18064 (status_pending_p_callback): ... this. Don't check for removed
18065 breakpoints. Don't consider threads that are stopped from GDB's
18067 (linux_wait_for_lwp): Always read the stop_pc here.
18068 (cancel_breakpoint): New.
18069 (step_over_bkpt): New global.
18070 (linux_wait_for_event_1): Implement stepping over breakpoints.
18071 (gdb_wants_lwp_stopped): New.
18072 (gdb_wants_all_stopped): New.
18073 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18074 single-step traps here. Store the thread's last reported target
18076 (send_sigstop): Don't clear stop_expected. Always set it,
18078 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18079 (cancel_finished_single_step): New.
18080 (cancel_finished_single_steps): New.
18081 (wait_for_sigstop): Don't cancel finished single-step traps here.
18082 (linux_resume_one_lwp): Don't check for removed breakpoints.
18083 Don't set `step' on non-hardware step archs.
18084 (linux_set_resume_request): Ignore resume_stop requests if already
18085 stopping or stopped. Set the lwp's last_resume_kind.
18086 (resume_status_pending_p): Don't check for removed breakpoints.
18087 (need_step_over_p): New.
18088 (start_step_over): New.
18089 (finish_step_over): New.
18090 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18091 requests. Clear the thread's last reported target waitstatus.
18092 Don't use the `suspended' flag. Don't consider pending breakpoints.
18093 (linux_resume): Start a step-over if necessary.
18094 (proceed_one_lwp): New.
18095 (proceed_all_lwps): New.
18096 (unstop_all_lwps): New.
18097 * linux-low.h (struct lwp_info): Rewrite comment for the
18098 `suspended' flag. Add the `stop_pc' field. Delete the
18099 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18100 Add `'last_resume_kind' and `need_step_over' fields.
18101 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18102 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18103 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18104 (set_raw_breakpoint_at): New.
18105 (set_breakpoint_at): Rewrite to use it.
18106 (reinsert_breakpoint_handler): Delete.
18107 (set_reinsert_breakpoint): New.
18108 (reinsert_breakpoint_by_bp): Delete.
18109 (delete_reinsert_breakpoints): New.
18110 (uninsert_breakpoint): Rewrite.
18111 (uninsert_breakpoints_at): New.
18112 (reinsert_breakpoint): Rewrite.
18113 (reinsert_breakpoints_at): New.
18114 (check_breakpoints): Rewrite.
18115 (breakpoint_here): New.
18116 (breakpoint_inserted_here): New.
18117 (check_mem_read): Adjust.
18118 * mem-break.h (breakpoints_supported, breakpoint_here)
18119 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18120 (reinsert_breakpoint_by_bp): Delete declaration.
18121 (delete_reinsert_breakpoints): Declare.
18122 (reinsert_breakpoint): Delete declaration.
18123 (reinsert_breakpoints_at): Declare.
18124 (uninsert_breakpoint): Delete declaration.
18125 (uninsert_breakpoints_at): Declare.
18126 (check_breakpoints): Adjust prototype.
18127 * server.h: Adjust include order.
18128 (struct thread_info): Declare here. Add a `last_status' field.
18130 2010-03-23 Michael Snyder <msnyder@vmware.com>
18132 * server.c (crc32): New function.
18133 (handle_query): Add handling for 'qCRC:' request.
18135 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18137 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18138 lwp had been stopped by a watchpoint.
18140 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18142 * server.h (internal_error): Declare.
18143 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18144 * utils.c (internal_error): New function.
18146 2010-03-15 Andreas Schwab <schwab@redhat.com>
18148 * configure.srv: Fix typo setting srv_regobj.
18150 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18152 * linux-low.c (fetch_register): Avoid passing a non string literal
18154 (usr_store_inferior_registers): Ditto.
18156 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18158 * linux-low.c (linux_write_memory): Bail out early if peeking
18161 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18163 * linux-low.h (struct lwp_info): New fields
18164 `stopped_by_watchpoint' and `stopped_data_address'.
18165 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18166 here, and cache them in the lwp object.
18167 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18169 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18171 (linux_stopped_by_watchpoint): Rewrite.
18172 (linux_stopped_data_address): Rewrite.
18174 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18176 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18177 switching the current inferior, not before.
18179 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18181 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18182 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18183 i386-linux.c and amd64-linux.c.
18184 (reg-i386.o): Removed.
18185 (reg-i386.c): Likewise.
18186 (reg-i386-linux.o): Likewise.
18187 (reg-i386-linux.c): Likewise.
18188 (reg-x86-64.o): Likewise.
18189 (reg-x86-64.c): Likewise.
18190 (reg-x86-64-linux.o): Likewise.
18191 (reg-x86-64-linux.c): Likewise.
18193 (i386.c): Likewise.
18194 (i386-linux.o): Likewise.
18195 (i386-linux.c): Likewise.
18196 (amd64.o): Likewise.
18197 (amd64.c): Likewise.
18198 (amd64-linux.o): Likewise.
18199 (amd64-linux.c): Likewise.
18201 * configure.srv (srv_i386_regobj): New.
18202 (srv_i386_linux_regobj): Likewise.
18203 (srv_amd64_regobj): Likewise.
18204 (srv_amd64_linux_regobj): Likewise.
18205 (srv_i386_32bit_xmlfiles): Likewise.
18206 (srv_i386_64bit_xmlfiles): Likewise.
18207 (srv_i386_xmlfiles): Likewise.
18208 (srv_amd64_xmlfiles): Likewise.
18209 (srv_i386_linux_xmlfiles): Likewise.
18210 (srv_amd64_linux_xmlfiles): Likewise.
18211 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18212 srv_xmlfiles to $srv_i386_xmlfiles.
18213 (i[34567]86-*-mingw32ce*): Likewise.
18214 (i[34567]86-*-mingw*): Likewise.
18215 (i[34567]86-*-nto*): Likewise.
18216 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18217 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18218 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18219 (x86_64-*-linux*): Likewise.
18221 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18222 (init_registers_amd64_linux): New.
18223 (x86_arch_setup): Replace init_registers_x86_64_linux with
18224 init_registers_amd64_linux.
18226 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18228 * configure.ac: Check for libdl. If it is not available link against
18229 static libthread_db.
18230 * configure: Regenerate.
18232 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18236 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18237 handing a read watchpoint.
18238 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18240 2010-02-12 Doug Evans <dje@google.com>
18242 * linux-low.c (linux_supports_tracefork_flag): Document.
18243 (linux_look_up_symbols): Add comment.
18245 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18247 * regcache.c (supply_register): Clear regcache if buf is NULL.
18249 2010-02-02 Nicolas Roche <roche@sourceware.org>
18250 Joel Brobecker <brobecker@adacore.com>
18252 * inferiors.c (find_inferior): Add function documentation.
18253 (unloaded_dll): Handle the case where the unloaded dll has not
18254 been previously registered in the dll list.
18256 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18258 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18259 (thumb2_breakpoint): New.
18260 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18262 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18264 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18265 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18268 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18270 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18272 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18274 * linux-s390-low.c (s390_collect_ptrace_register)
18275 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18277 2010-01-21 Doug Evans <dje@google.com>
18279 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18280 (PTRACE_ARG4_TYPE): New macro.
18281 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18282 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18283 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18284 (usr_store_inferior_registers): Ditto.
18285 (linux_read_memory, linux_write_memory): Ditto.
18286 (linux_test_for_tracefork): Ditto.
18288 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18289 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18291 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18293 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18296 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18298 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18299 prototype to take a regcache. Adjust.
18301 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18303 * regcache.h (struct thread_info): Forward declare.
18304 (struct regcache): New.
18305 (new_register_cache): Adjust prototype.
18306 (get_thread_regcache): Declare.
18307 (free_register_cache): Adjust prototype.
18308 (registers_to_string, registers_from_string): Ditto.
18309 (supply_register, supply_register_by_name, collect_register)
18310 (collect_register_as_string, collect_register_by_name): Ditto.
18311 * regcache.c (struct inferior_regcache_data): Delete.
18312 (get_regcache): Rename to ...
18313 (get_thread_regcache): ... this. Adjust. Switch inferior before
18314 fetching registers.
18315 (regcache_invalidate_one): Adjust.
18316 (regcache_invalidate): Fix prototype.
18317 (new_register_cache): Return the new register cache.
18318 (free_register_cache): Change prototype.
18319 (realloc_register_cache): Adjust.
18320 (registers_to_string): Change prototype to take a regcache. Adjust.
18321 (registers_from_string): Ditto.
18322 (register_data): Ditto.
18323 (supply_register): Ditto.
18324 (supply_register_by_name): Ditto.
18325 (collect_register): Ditto.
18326 (collect_register_as_string): Ditto.
18327 (collect_register_by_name): Ditto.
18328 * server.c (process_serial_event): Adjust.
18329 * linux-low.h (regset_fill_func, regset_store_func): Change
18331 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18333 * linux-low.c (get_stop_pc): Adjust.
18334 (check_removed_breakpoint): Adjust.
18335 (linux_wait_for_event): Adjust.
18336 (linux_resume_one_lwp): Adjust.
18337 (fetch_register): Add regcache parameter. Adjust.
18338 (usr_store_inferior_registers): Ditto.
18339 (regsets_fetch_inferior_registers): Ditto.
18340 (regsets_store_inferior_registers): Ditto.
18341 (linux_fetch_registers, linux_store_registers): Ditto.
18342 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18344 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18346 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18347 prototype to take a regcache.
18348 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18349 * remote-utils.c (convert_ascii_to_int, outreg)
18350 (prepare_resume_reply): Change prototype to take a regcache.
18352 * target.h (struct target_ops) <fetch_registers, store_registers>:
18353 Change prototype to take a regcache.
18354 (fetch_inferior_registers, store_inferior_registers): Change
18355 prototype to take a regcache. Adjust.
18356 * proc-service.c (ps_lgetregs): Adjust.
18357 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18358 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18359 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18360 take a regcache. Adjust.
18361 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18362 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18363 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18364 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18365 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18366 (cris_cannot_fetch_register):
18367 (cris_breakpoint_at): Change prototype to take a regcache.
18369 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18370 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18371 to take a regcache. Adjust.
18372 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18374 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18375 take a regcache. Adjust.
18376 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18377 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18378 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18379 * linux-mips-low.c (mips_get_pc):
18380 (mips_set_pc): Change prototype to take a regcache. Adjust.
18381 (mips_reinsert_addr): Adjust.
18382 (mips_collect_register): Change prototype to take a regcache.
18384 (mips_supply_register):
18385 (mips_collect_register_32bit, mips_supply_register_32bit)
18386 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18387 (mips_store_fpregset): Ditto.
18388 * linux-ppc-low.c (ppc_supply_ptrace_register)
18389 (ppc_supply_ptrace_register): Ditto.
18390 (parse_spufs_run): Adjust.
18391 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18392 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18393 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18394 take a regcache. Adjust.
18395 * linux-s390-low.c (s390_collect_ptrace_register)
18396 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18397 (s390_set_pc): Change prototype to take a regcache. Adjust.
18398 (s390_arch_setup): Adjust.
18399 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18400 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18401 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18402 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18403 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18405 (sparc_breakpoint_at): Adjust.
18406 * linux-xtensa-low.c (xtensa_fill_gregset):
18407 (xtensa_store_gregset):
18408 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18409 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18410 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18411 prototype to take a regcache. Adjust.
18412 * win32-arm-low.c (arm_fetch_inferior_register)
18413 (arm_store_inferior_register): Change prototype to take a
18415 * win32-i386-low.c (i386_fetch_inferior_register)
18416 (i386_store_inferior_register): Change prototype to take a
18418 * win32-low.c (child_fetch_inferior_registers)
18419 (child_store_inferior_registers): Change prototype to take a
18421 (win32_wait): Adjust.
18422 (win32_fetch_inferior_registers): Change prototype to take a
18424 (win32_store_inferior_registers): Adjust.
18425 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18426 store_inferior_register>: Change prototype to take a regcache.
18428 2010-01-20 Doug Evans <dje@google.com>
18430 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18432 (linux_wait_for_event1, linux_init_signals): Ditto.
18433 (W_STOPCODE): Provide definition if missing.
18435 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18437 * linux-low.c (linux_core_of_thread): New.
18438 (compare_ints, show_process, list_threads): New.
18439 (linux_qxfer_osdata): Report threads and cores.
18440 (linux_target_op): Register linux_core_of_thread.
18441 * remote-utils.c (prepare_resume_reply): Report the core.
18442 (buffer_xml_printf): Support %d specifier.
18443 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18445 (handle_query): Handle qXfer:threads. Announce availability
18447 * target.h (struct target_ops): New field core_of_thread.
18449 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18451 * Makefile.in (clean): Remove new generated files.
18452 (reg-s390.o, reg-s390.c): Remove rules.
18453 (reg-s390x.o, reg-s390x.c): Likewise.
18454 (s390-linux32.o, s390-linux32.c): Add rules.
18455 (s390-linux64.o, s390-linux64.c): Likewise.
18456 (s390x-linux64.o, s390x-linux64.c): Likewise.
18457 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18458 * linux-s390-low.c: Include <elf.h>.
18459 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18460 (init_registers_s390): Remove prototype.
18461 (init_registers_s390x): Likewise.
18462 (init_registers_s390_linux32): Add prototype.
18463 (init_registers_s390_linux64): Likewise.
18464 (init_registers_s390x_linux64): Likewise.
18465 (s390_num_regs_3264): New define.
18466 (s390_regmap_3264): New global variable.
18467 (s390_cannot_fetch_register): Remove obsolete check.
18468 (s390_cannot_store_register): Likewise.
18469 (s390_collect_ptrace_register): Handle upper/lower register halves.
18470 (s390_supply_ptrace_register): Likewise.
18471 (s390_fill_gregset): Update to register number changes.
18472 (s390_get_hwcap): New routine.
18473 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18474 Install appropriate regmap and register set.
18476 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18478 * server.c (gdbserver_version): Update copyright year to 2010.
18479 * gdbreplay.c (gdbreplay_version): Likewise.
18481 2009-12-28 Doug Evans <dje@google.com>
18483 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18484 elf/external.h. Include <elf.h> instead but only if necessary.
18486 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18488 * linux-low.c (linux_remove_process): Remove `detaching'
18489 parameter. Don't release/detach from thread_db here.
18490 (linux_kill): Release/detach from thread_db here, ...
18491 (linux_detach): ... and here, before actually detaching.
18492 (linux_wait_1): ... and here, when a process exits.
18493 * thread-db.c (any_thread_of): New.
18494 (thread_db_free): Switch the current inferior to a thread of the
18497 2009-12-21 Doug Evans <dje@google.com>
18499 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18501 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18502 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18503 warning ifndef __NR_tkill. Move setting of errno there too.
18504 Delete unnecessary resetting of errno after syscall.
18505 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18507 * configure.ac: Check for dladdr.
18508 * config.in: Regenerate.
18509 * configure: Regenerate.
18510 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18511 (try_thread_db_load): Update.
18513 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18515 2009-12-18 Doug Evans <dje@google.com>
18517 * event-loop.c: Include unistd.h if it exists.
18519 * linux-low.c (my_waitpid): Move definition away from being in
18520 between linux_tracefork_child/linux_test_for_tracefork.
18522 * gdb_proc_service.h (psaddr_t): Fix type.
18523 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18524 signature to match glibc.
18526 2009-12-16 Doug Evans <dje@google.com>
18528 * linux-low.c (linux_read_memory): Fix argument to read.
18530 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18532 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18533 events, don't leave current_inferior pointing at null.
18535 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18537 * win32-low.c (LOG): Delete.
18538 (OUTMSG): Output to stderr.
18539 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18540 on compile time LOG macro.
18541 (win32_wait): Fix debug output.
18543 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18545 * win32-low.c (win32_add_one_solib): If the dll name is
18546 "ntdll.dll", prepend the system directory to the dll path.
18548 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18550 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18552 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18553 Vladimir Prus <vladimir@codesourcery.com>
18555 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18556 * configure.ac: Check for __mcoldfire__ and set
18557 gdb_cv_m68k_is_coldfire.
18558 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18559 reg-cf.o and reg-m68k.o.
18560 * configure: Regenerated.
18562 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18564 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18565 Pass it to thread_db_free.
18566 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18567 proper `detaching' argument to linux_remove_process.
18568 * linux-low.h (thread_db_free): Add `detaching' parameter.
18569 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18571 (thread_db_free): Add `detaching' parameter. Only
18572 call td_ta_clear_event if detaching from process.
18574 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18576 * thread-db.c (thread_db_free): Fix typo.
18578 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18581 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18583 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18585 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18586 with an i686 compiler.
18587 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18589 * configure: Rebuilt.
18591 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18595 * server.c (handle_search_memory_1): Correct read_addr initialization
18596 in loop for searching subsequent chunks.
18598 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18600 * configure.ac: New --with-libthread-db option.
18601 * thread-db.c: Allow direct dependence on libthread_db.
18602 (thread_db_free): Adjust.
18603 * config.in: Regenerate.
18604 * configure: Likewise.
18606 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18609 * thread-db.c (attach_thread): New function.
18610 (maybe_attach_thread): Return success/failure.
18611 (find_new_threads_callback): Adjust.
18612 (thread_db_find_new_threads): Loop until no new threads.
18614 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18616 * proc-service.c (ps_lgetregs): Formatting.
18618 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18620 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18621 * configure.ac: Adjust.
18622 * linux-low.h (struct process_info_private): Move members to struct
18624 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18625 * linux-low.c (linux_remove_process): Adjust.
18626 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18627 * server.c (handle_query): Move code ...
18628 (handle_monitor_command): ... here. New function.
18629 * target.h (struct target_ops): New member.
18630 * thread-db.c (struct thread_db): New.
18631 (libthread_db_search_path): New variable.
18632 (thread_db_create_event, thread_db_enable_reporting)
18633 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18634 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18635 (try_thread_db_load_1, dladdr_to_soname): New functions.
18636 (try_thread_db_load, thread_db_load_search): New functions.
18637 (thread_db_init): Search for libthread_db.
18638 (thread_db_free): New function.
18639 (thread_db_handle_monitor_command): Likewise.
18640 * config.in: Regenerate.
18641 * configure: Regenerate.
18643 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18645 * spu-low.c (spu_kill): Wait for inferior to terminate.
18646 Call clear_inferiors.
18647 (spu_detach): Call clear_inferiors.
18649 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18651 * aclocal.m4: Regenerate.
18652 * config.in: Likewise.
18653 * configure: Likewise.
18655 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18657 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18658 (parse_spufs_run): New function.
18659 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18660 (ppc_breakpoint_at): Handle SPU breakpoints.
18662 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18664 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18665 (SPUFS_MAGIC): Define.
18666 (spu_enumerate_spu_ids): New function.
18667 (linux_qxfer_spu): New function.
18668 (linux_target_ops): Install linux_qxfer_spu.
18670 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18672 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18673 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18674 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18675 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18676 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18677 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18678 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18679 (init_registers_powerpc_cell32l): Add prototype.
18680 (init_registers_powerpc_cell64l): Likewise.
18681 (ppc_arch_setup): Detect Cell/B.E. architecture.
18683 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18685 * Makefile.in (datarootdir): New variable.
18687 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18689 * linux-low.c (linux_write_memory): Update debugging output.
18690 * Makefile.in (clean): Add new descriptions.
18691 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18692 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18693 * configure.srv: Add new files for arm*-*-linux*.
18694 * linux-arm-low.c: Add new declarations.
18695 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18696 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18697 (HWCAP_VFPv3D16): New.
18698 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18699 instead of __IWMMXT__.
18700 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18701 (arm_arch_setup): New.
18702 (target_regsets): Remove #ifdef. Add VFP regset.
18703 (the_low_target): Use arm_arch_setup.
18705 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18707 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18708 the main thread again.
18710 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18712 Adding Neutrino gdbserver.
18713 * configure: Regenerated.
18714 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18715 * configure.srv (i[34567]86-*-nto*): New target.
18716 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18717 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18718 (nto_comctrl) [__QNX__]: New function.
18719 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18721 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18723 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18726 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18727 Pedro Alves <pedro@codesourcery.com>
18729 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18730 don't support CONTEXT_EXTENDED_REGISTERS.
18731 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18732 (the_low_target): Install them.
18733 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18734 failing with ERROR_PIPE_NOT_CONNECTED.
18736 2009-06-30 Doug Evans <dje@google.com>
18737 Pierre Muller <muller@ics.u-strasbg.fr>
18739 Add h/w watchpoint support to x86-linux, win32-i386.
18740 * Makefile.in (SFILES): Add i386-low.c
18741 (i386_low_h): Define.
18742 (i386-low.o): Add dependencies.
18743 (linux-x86-low.o): Add i386-low.h dependency.
18744 (win32-i386-low.o): Ditto.
18745 * i386-low.c: New file.
18746 * i386-low.h: New file.
18747 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18748 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18749 * linux-low.c (linux_add_process): Initialize arch_private.
18750 (linux_remove_process): Free arch_private.
18751 (add_lwp): Initialize arch_private.
18752 (delete_lwp): Free arch_private.
18753 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18755 * linux-low.h (process_info_private): New member arch_private.
18756 (lwp_info): New member arch_private.
18757 (linux_target_ops): New members new_process, new_thread,
18759 (ptid_of): New macro.
18760 * linux-x86-low.c: Include stddef.h, i386-low.h.
18761 (arch_process_info): New struct.
18762 (arch_lwp_info): New struct.
18763 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18764 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18765 (i386_dr_low_get_status): New function.
18766 (x86_insert_point, x86_remove_point): New functions.
18767 (x86_stopped_by_watchpoint): New function.
18768 (x86_stopped_data_address): New function.
18769 (x86_linux_new_process, x86_linux_new_thread): New functions.
18770 (x86_linux_prepare_to_resume): New function.
18771 (the_low_target): Add entries for insert_point, remove_point,
18772 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18774 * server.c (debug_hw_points): New global.
18775 (monitor_show_help): Document set debug-hw-points.
18776 (handle_query): Process "set debug-hw-points".
18777 * server.h (debug_hw_points): Declare.
18778 (paddress): Declare.
18779 * utils.c (NUMCELLS, CELLSIZE): New macros.
18780 (get_sell, xsnprintf, paddress): New functions.
18781 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18782 remove_point, stopped_by_watchpoint, stopped_data_address.
18783 * win32-i386-low.c: Include i386-low.h.
18784 (debug_reg_state): Replaces dr.
18785 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18786 (i386_dr_low_get_status): New function.
18787 (i386_insert_point, i386_remove_point): New functions.
18788 (i386_stopped_by_watchpoint): New function.
18789 (i386_stopped_data_address): New function.
18790 (i386_initial_stuff): Update.
18791 (get_thread_context,set_thread_context,i386_thread_added): Update.
18792 (the_low_target): Add entries for insert_point,
18793 remove_point, stopped_by_watchpoint, stopped_data_address.
18794 * win32-low.c (win32_insert_watchpoint): New function.
18795 (win32_remove_watchpoint): New function.
18796 (win32_stopped_by_watchpoint): New function.
18797 (win32_stopped_data_address): New function.
18798 (win32_target_ops): Add entries for insert_watchpoint,
18799 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18800 * win32-low.h (win32_target_ops): New members insert_point,
18801 remove_point, stopped_by_watchpoint, stopped_data_address.
18803 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18805 * server.c (process_serial_event): Re-return unsupported, not
18806 error, if the type isn't recognized. Re-allow supporting only
18807 insert or remove packets. Also call require_running for
18808 breakpoints. Add missing break statement to default case. Tidy.
18809 * target.h (struct target_ops): Rename insert_watchpoint to
18810 insert_point, and remove_watchpoint to remove_point.
18812 * linux-low.h (struct linux_target_ops): Likewise.
18813 * linux-low.c (linux_insert_watchpoint): Rename to ...
18814 (linux_insert_point): ... this. Adjust.
18815 (linux_remove_watchpoint): Rename to ...
18816 (linux_remove_point): ... this. Adjust.
18817 (linux_target_ops): Adjust.
18818 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18819 (cris_insert_point): ... this.
18820 (cris_remove_watchpoint): Rename to ...
18821 (cris_remove_point): ... this.
18822 (the_low_target): Adjust.
18824 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18826 * server.c (handle_v_kill): Pass signal_pid to
18827 kill_inferior if multi_process is zero.
18829 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18831 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18832 * target.h (target_ops): Comment for *_watchpoint to make it clear
18833 the functions can get types '0' and '1'.
18835 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18837 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18838 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18839 * regcache.c (get_regcache): Likewise.
18840 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18841 * win32-low.c (child_fetch_inferior_registers): Remove check for
18844 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18845 Pedro Alves <pedro@codesourcery.com>
18847 * target.h (struct target_ops) <supports_multi_process>: New
18849 (target_supports_multi_process): New.
18850 * server.c (handle_query): Even if GDB reports support, only
18851 enable multi-process if the target also supports it. Report
18852 multi-process support only if the target backend supports it.
18853 * linux-low.c (linux_supports_multi_process): New function.
18854 (linux_target_ops): Install it as target_supports_multi_process
18857 2009-05-24 Doug Evans <dje@google.com>
18859 Global renaming of find_thread_pid to find_thread_ptid.
18860 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18861 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18862 All callers updated.
18864 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
18865 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
18868 * linux-low.c (get_stop_pc): Print pc if debug_threads.
18869 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
18870 (linux_resume_one_lwp): Ditto.
18872 2009-05-23 Doug Evans <dje@google.com>
18874 * linux-low.c (linux_resume_one_lwp): Change type of first arg
18875 from struct inferior_list_entry * to struct lwp_info *.
18876 All callers updated.
18878 2009-05-13 Doug Evans <dje@google.com>
18880 * linux-x86-low.c: Don't include assert.h.
18881 (x86_siginfo_fixup): Use fatal, not assert.
18882 (x86_arch_setup): Fix comment.
18884 2009-05-12 Doug Evans <dje@google.com>
18886 Biarch support for i386/amd64 gdbserver.
18887 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
18888 Add linux-x86-low.c.
18889 (linux-i386-low.o, linux-x86-64-low.o): Delete.
18890 (linux-x86-low.o): Add.
18891 * linux-x86-64-low.c: Delete.
18892 * linux-i386-low.c: Delete.
18893 * linux-x86-low.c: New file.
18894 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
18896 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
18898 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
18899 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
18900 (linux_child_pid_to_exec_file): New function.
18901 (elf_64_header_p, elf_64_file_p): New functions.
18902 (siginfo_fixup): New function.
18903 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
18904 give target a chance to convert layout.
18905 * linux-low.h (linux_target_ops): New member siginfo_fixup.
18906 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
18908 2009-05-07 Doug Evans <dje@google.com>
18910 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
18911 (regsets_store_inferior_registers): Ditto.
18913 2009-05-06 Pedro Alves <pedro@codesourcery.com>
18917 * linux-low.c (must_set_ptrace_flags): Delete.
18918 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
18920 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
18921 `lwp->must_set_ptrace_flags' instead.
18922 (linux_wait_for_event_1): Set ptrace options here.
18923 (linux_wait_1): ... not here.
18925 2009-04-30 Doug Evans <dje@google.com>
18927 * inferiors.c (started_inferior_callback): New function.
18928 (attached_inferior_callback): New function.
18929 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
18930 * server.c (print_started_pid, print_attached_pid): New functions.
18931 (detach_or_kill_for_exit): New function.
18932 (main): Call it instead of for_each_inferior (kill_inferior_callback).
18933 * server.h (have_started_inferiors_p): Declare.
18934 (have_attached_inferiors_p): Declare.
18936 * inferiors.c (remove_process): Fix memory leak, free process.
18937 * linux-low.c (linux_remove_process): New function.
18938 (linux_kill): Call it instead of remove_process.
18939 (linux_detach, linux_wait_1): Ditto.
18941 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
18943 * configure.srv: Add x86 Windows CE target.
18945 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18947 * inferiors.c (get_thread_process): Make global.
18948 * server.h (get_thread_process): Add prototype.
18949 * thread-db.c (find_one_thread): Use get_thread_process
18950 instead of current_process.
18951 (thread_db_get_tls_address): Do not crash if called when
18952 thread layer is not yet initialized.
18954 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
18956 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
18957 * spu-low.c (current_tid): Rename to ...
18958 (current_ptid): ... this.
18959 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
18960 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
18961 ptid_get_lwp (current_ptid) instead of current_tid.
18962 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
18963 instead of current_tid. Use find_process_pid to verify pid
18964 argument is valid. Pass proper argument to remove_process.
18965 (spu_thread_alive): Compare current_ptid instead of current_tid.
18966 (spu_resume): Likewise.
18968 2009-04-02 Pedro Alves <pedro@codesourcery.com>
18970 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
18973 2009-04-01 Pedro Alves <pedro@codesourcery.com>
18975 Implement the multiprocess extensions, and add linux multiprocess
18978 * server.h (ULONGEST): Declare.
18979 (struct ptid, ptid_t): New.
18980 (minus_one_ptid, null_ptid): Declare.
18981 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
18982 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
18983 (struct inferior_list_entry): Change `id' type from unsigned from
18985 (struct sym_cache, struct breakpoint, struct
18986 process_info_private): Forward declare.
18987 (struct process_info): Declare.
18988 (current_process): Declare.
18989 (all_processes): Declare.
18990 (initialize_inferiors): Declare.
18991 (add_thread): Adjust to use ptid_t.
18992 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
18993 (add_process, remove_process, find_thread_pid): Declare.
18994 (find_inferior_id): Adjust to use ptid_t.
18995 (cont_thread, general_thread, step_thread): Change type to ptid_t.
18996 (multi_process): Declare.
18997 (push_event): Adjust to use ptid_t.
18998 (read_ptid, write_ptid): Declare.
18999 (prepare_resume_reply): Adjust to use ptid_t.
19000 (clear_symbol_cache): Declare.
19001 * inferiors.c (all_processes): New.
19002 (null_ptid, minus_one_ptid): New.
19003 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19004 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19005 (add_thread): Change unsigned long to ptid. Remove gdb_id
19007 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19008 (gdb_id_to_thread): Rename to ...
19009 (find_thread_pid): ... this. Change unsigned long to ptid.
19010 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19011 (loaded_dll, pull_pid_from_list): Adjust.
19012 (add_process, remove_process, find_process_pid)
19013 (get_thread_process, current_process, initialize_inferiors): New.
19014 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19015 (struct target_waitstatus) <related_pid>: Ditto.
19016 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19017 return type to int.
19018 (struct target_ops) <join>: Add `pid' argument.
19019 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19020 (struct target_ops) <wait>: Add `ptid' field. Change return type
19022 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19023 (mywait): Add `ptid' argument. Change return type to ptid_t.
19024 (target_pid_to_str): Declare.
19025 * target.c (set_desired_inferior): Adjust to use ptids.
19026 (mywait): Add new `ptid' argument. Adjust.
19027 (target_pid_to_str): New.
19028 * mem-break.h (free_all_breakpoints): Declare.
19029 * mem-break.c (breakpoints): Delelete.
19030 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19031 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19032 to use per-process breakpoint list.
19033 (free_all_breakpoints): New.
19034 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19035 (symbol_cache, all_symbols_looked_up): Delete.
19037 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19039 (prepare_resume_reply): Change ptid argument's type from unsigned
19040 long to ptid_t. Adjust. Implement W;process and X;process.
19041 (free_sym_cache, clear_symbol_cache): New.
19042 (look_up_one_symbol): Adjust to per-process symbol cache. *
19043 * server.c (cont_thread, general_thread, step_thread): Change type
19045 (attached): Delete.
19046 (multi_process): New.
19047 (last_ptid): Change type to ptid_t.
19048 (struct vstop_notif) <ptid>: Change type to ptid_t.
19049 (queue_stop_reply, push_event): Change `ptid' argument's type to
19051 (discard_queued_stop_replies): Add `pid' argument.
19052 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19053 changes. Don't reference the `attached' global.
19054 (attach_inferior): Adjust to mywait interface changes.
19055 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19056 features. Handle and report "multiprocess+". Handle
19058 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19060 (handle_v_kill): New.
19061 (handle_v_stopped): Adjust to use target_pid_to_str.
19062 (handle_v_requests): Allow multiple attaches and runs when
19063 multiprocess extensions are in effect. Handle "vKill".
19064 (myresume): Adjust to use ptids.
19065 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19066 (handle_status): Adjust to discard_queued_stop_replies interface
19068 (first_thread_of, kill_inferior_callback)
19069 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19070 (main): Call initialize_inferiors. Adjust to use ptids, killing
19071 and detaching from all inferiors. Handle multiprocess packet
19073 * linux-low.h: Include gdb_proc_service.h.
19074 (struct process_info_private): New.
19075 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19076 <lwpid_of>: Use ptid_get_lwp.
19077 (get_lwp_thread): Adjust.
19078 (struct lwp_info): Add `dead' member.
19079 (find_lwp_pid): Declare.
19080 * linux-low.c (thread_db_active): Delete.
19081 (new_inferior): Adjust comment.
19082 (inferior_pid): Delete.
19083 (linux_add_process): New.
19084 (handle_extended_wait): Adjust.
19085 (add_lwp): Change unsigned long to ptid.
19086 (linux_create_inferior): Add process to processes table. Adjust
19087 to use ptids. Don't set new_inferior here.
19088 (linux_attach_lwp): Rename to ...
19089 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19090 it. Adjust to use ptids.
19091 (linux_attach_lwp): New.
19092 (linux_attach): Add process to processes table. Don't set
19094 (struct counter): New.
19095 (second_thread_of_pid_p, last_thread_of_process_p): New.
19096 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19097 multiple processes.
19098 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19099 processes. Remove process from process table.
19100 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19101 to multiple processes.
19102 (any_thread_of): New.
19103 (linux_detach): Add `pid' argument, and handle it. Remove process
19104 from processes table.
19105 (linux_join): Add `pid' argument. Handle it.
19106 (linux_thread_alive): Change unsighed long argument to ptid_t.
19107 Consider dead lwps as not being alive.
19108 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19109 threads we're not interested in.
19110 (same_lwp, find_lwp_pid): New.
19111 (linux_wait_for_lwp): Change `pid' argument's type from int to
19113 (linux_wait_for_event): Rename to ...
19114 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19115 from int to ptid_t. Adjust.
19116 (linux_wait_for_event): New.
19117 (linux_wait_1): Add `ptid' argument. Change return type to
19118 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19119 that exit from the process table.
19120 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19122 (mark_lwp_dead): New.
19123 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19124 stopping all threads, mark its main lwp as dead.
19125 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19127 (fetch_register, usr_store_inferior_registers)
19128 (regsets_fetch_inferior_registers)
19129 (regsets_store_inferior_registers, linux_read_memory)
19130 (linux_write_memory): Inline `inferior_pid'.
19131 (linux_look_up_symbols): Adjust to use per-process
19132 `thread_db_active'.
19133 (linux_request_interrupt): Adjust to use ptids.
19134 (linux_read_auxv): Inline `inferior_pid'.
19135 (initialize_low): Don't reference thread_db_active.
19136 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19137 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19138 (ps_getpid): Return the pid of the current inferior.
19139 * thread-db.c (proc_handle, thread_agent): Delete.
19140 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19142 (find_one_thread): Change argument type to ptid_t. Adjust to
19144 (maybe_attach_thread): Adjust to per-process data and ptids.
19145 (thread_db_find_new_threads): Ditto.
19146 (thread_db_init): Ditto.
19147 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19148 processes table. Adjust to use ptids.
19149 (spu_kill, spu_detach): Adjust interface. Remove process from
19151 (spu_join, spu_thread_alive): Adjust interface.
19152 (spu_wait): Adjust interface. Remove process from processes
19153 table. Adjust to use ptids.
19154 * win32-low.c (current_inferior_tid): Delete.
19155 (current_inferior_ptid): New.
19156 (debug_event_ptid): New.
19157 (thread_rec): Take a ptid. Adjust.
19158 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19159 (child_delete_thread): Ditto.
19160 (do_initial_child_stuff): Add `attached' argument. Add process to
19162 (child_fetch_inferior_registers, child_store_inferior_registers):
19164 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19165 (win32_attach): Pass 1 to do_initial_child_stuff.
19166 (win32_kill): Adjust interface. Remove process from processes
19168 (win32_detach): Ditto.
19169 (win32_join): Adjust interface.
19170 (win32_thread_alive): Take a ptid.
19171 (win32_resume): Adjust to use ptids.
19172 (get_child_debug_event): Ditto.
19173 (win32_wait): Adjust interface. Remove exiting process from
19176 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19178 Non-stop mode support.
19180 * server.h (non_stop): Declare.
19181 (gdb_client_data, handler_func): Declare.
19182 (delete_file_handler, add_file_handler, start_event_loop):
19184 (handle_serial_event, handle_target_event, push_event)
19185 (putpkt_notif): Declare.
19186 * target.h (enum resume_kind): New.
19187 (struct thread_resume): Replace `step' field by `kind' field.
19188 (TARGET_WNOHANG): Define.
19189 (struct target_ops) <wait>: Add `options' argument.
19190 <supports_non_stop, async, start_non_stop>: New fields.
19191 (target_supports_non_stop, target_async): New.
19192 (start_non_stop): Declare.
19193 (mywait): Add `options' argument.
19194 * target.c (mywait): Add `options' argument. Print child exit
19195 notifications here.
19196 (start_non_stop): New.
19197 * server.c (non_stop, own_buf, mem_buf): New globals.
19198 (struct vstop_notif): New.
19199 (notif_queue): New global.
19200 (queue_stop_reply, push_event, discard_queued_stop_replies)
19201 (send_next_stop_reply): New.
19202 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19204 (attach_inferior): In non-stop mode, don't wait for the target
19206 (handle_general_set): Handle QNonStop.
19207 (handle_query): When handling qC, return the current general
19208 thread, instead of the first thread of the list.
19209 (handle_query): If the backend supports non-stop mode, include
19210 QNonStop+ in the qSupported query response.
19211 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19213 (handle_v_attach, handle_v_run): Handle non-stop mode.
19214 (handle_v_stopped): New.
19215 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19216 (myresume): Adjust to use resume_kind. Handle non-stop.
19217 (queue_stop_reply_callback): New.
19218 (handle_status): Handle non-stop mode.
19219 (main): Clear non_stop flag on reconnection. Use the event-loop.
19220 Refactor serial protocol handling from here ...
19221 (process_serial_event): ... to this new function. When GDB
19222 selects any thread, select one here. In non-stop mode, wait until
19223 GDB acks all pending events before exiting.
19224 (handle_serial_event, handle_target_event): New.
19225 * remote-utils.c (remote_open): Install remote_desc in the event
19227 (remote_close): Remove remote_desc from the event loop.
19228 (putpkt_binary): Rename to...
19229 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19230 (putpkt_binary): New as wrapper around putpkt_binary_1.
19231 (putpkt_notif): New.
19232 (prepare_resume_reply): In non-stop mode, don't change the
19234 * event-loop.c: New.
19235 * Makefile.in (OBJ): Add event-loop.o.
19236 (event-loop.o): New rule.
19238 * linux-low.h (pid_of): Moved here.
19240 (get_lwp_thread): Use lwpid_of.
19241 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19242 * linux-low.c (pid_of): Delete.
19243 (inferior_pid): Use lwpid_of.
19244 (linux_event_pipe): New.
19245 (target_is_async_p): New.
19247 (handle_extended_wait): Use lwpid_of.
19248 (add_lwp): Don't set lwpid field.
19249 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19250 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19251 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19252 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19253 first. Adjust to linux_wait_for_event interface changes. Use
19255 (linux_detach): Don't delete the main lwp here.
19256 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19257 (status_pending_p): Don't consider explicitly suspended lwps.
19258 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19259 pointer. Add OPTIONS argument. Change return type to int. Use
19260 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19261 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19262 pointer. Add status pointer argument. Return a pid instead of a
19263 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19264 changes. In non-stop mode, don't switch to a random thread.
19265 (linux_wait): Rename to...
19266 (linux_wait_1): ... this. Add target_options argument, and handle
19267 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19268 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19269 clean exit and signal exit code. Don't stop all threads in
19270 non-stop mode. In all-stop mode, only stop all threads when
19271 reporting a stop to GDB. Handle explicit thread stop requests.
19272 (async_file_flush, async_file_mark): New.
19274 (send_sigstop): Use lwpid_of.
19275 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19276 interface changes. In non-stop mode, don't switch to a random
19278 (linux_resume_one_lwp): Use lwpid_of.
19279 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19280 (linux_resume_one_thread): ... this. Handle resume_stop. In
19281 non-stop mode, don't look for pending flag in all threads.
19282 (resume_status_pending_p): Don't consider explicitly suspended
19284 (my_waitpid): Reimplement. Emulate __WALL.
19285 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19287 (sigchld_handler, linux_supports_non_stop, linux_async)
19288 (linux_start_non_stop): New.
19289 (linux_target_ops): Register linux_supports_non_stop, linux_async
19290 and linux_start_non_stop.
19291 (initialize_low): Install SIGCHLD handler.
19292 * thread-db.c (thread_db_create_event, find_one_thread)
19293 (thread_db_get_tls_address): Use lwpid_of.
19294 * win32-low.c (win32_detach): Adjust to use resume_kind.
19295 (win32_wait): Add `options' argument.
19296 * spu-low.c (spu_resume): Adjust to use resume_kind.
19297 (spu_wait): Add `options' argument.
19299 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19301 Decouple target code from remote protocol.
19303 * target.h (enum target_waitkind): New.
19304 (struct target_waitstatus): New.
19305 (struct target_ops) <wait>: Return an unsigned long. Take a
19306 target_waitstatus pointer instead of a char pointer.
19307 (mywait): Likewise.
19308 * target.c (mywait): Change prototype to return an unsigned long.
19309 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19310 * server.h (thread_from_wait, old_thread_from_wait): Delete
19312 (prepare_resume_reply): Change prototype to take a
19314 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19315 (last_status, last_ptid): New.
19316 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19317 pid instead of a signal.
19318 (attach_inferior): Remove "status" and "signal" parameters.
19320 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19322 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19323 (handle_v_requests, myresume): Remove "status" and "signal"
19324 parameters. Adjust.
19325 (handle_status): New.
19326 (main): Delete local `status'. Adjust.
19327 * remote-utils.c: Include target.h.
19328 (prepare_resume_reply): Change prototype to take a
19329 target_waitstatus. Adjust.
19331 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19333 * spu-low.c (spu_wait): Adjust.
19334 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19336 (win32_wait): Adjust.
19338 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19340 * target.h (struct thread_resume): Delete leave_stopped member.
19341 (struct target_ops): Add a `n' argument to the `resume' callback.
19342 * server.c (start_inferior): Adjust.
19343 (handle_v_cont, myresume): Adjust.
19344 * linux-low.c (check_removed_breakpoint): Adjust to resume
19345 interface change, and to removed leave_stopped field.
19346 (resume_ptr): Delete.
19347 (struct thread_resume_array): New.
19348 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19349 resume interface change.
19350 (linux_continue_one_thread, linux_queue_one_thread)
19351 (resume_status_pending_p): Check if the resume field is NULL
19352 instead of checking the leave_stopped member.
19353 (linux_resume): Adjust to the target resume interface change.
19354 * spu-low.c (spu_resume): Adjust to the target resume interface
19356 * win32-low.c (win32_detach, win32_resume): Ditto.
19358 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19360 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19362 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19364 (linux_continue_one_thread): Only preserve the stepping flag if
19365 there's a pending breakpoint.
19367 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19369 * server.c (main): After the inferior having exited, call
19370 remote_close before exiting gdbserver.
19372 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19374 Fix size of FPSCR in Power 7 processors.
19375 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19376 (PPC_FEATURE_HAS_DFP): New #define.
19377 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19380 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19382 * server.c (handle_query) Whitespace and formatting.
19384 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19386 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19387 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19388 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19389 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19390 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19391 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19392 Makefile.in, configure.ac: Fix whitespace throughout.
19393 * configure: Regenerate.
19395 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19397 * inferiors.c (find_inferior): Make it safe for the callback
19398 function to delete the currently iterated inferior.
19400 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19402 * Makefile.in (linuw_low_h): Move higher.
19403 (thread-db.o): Depend on $(linux_low_h).
19405 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19407 Rename "process" to "lwp" throughout.
19409 * linux-low.c (all_processes): Rename to...
19410 (all_lwps): ... this.
19411 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19412 (add_process): Rename to ...
19413 (add_lwp): ... this. Adjust.
19414 (linux_create_inferior): Adjust.
19415 (linux_attach_lwp): Adjust.
19416 (linux_attach): Adjust.
19417 (linux_kill_one_process): Rename to ...
19418 (linux_kill_one_lwp): ... this. Adjust.
19419 (linux_kill): Adjust.
19420 (linux_detach_one_process): Rename to ...
19421 (linux_detach_one_lwp): ... this. Adjust.
19422 (linux_detach): Adjust.
19423 (check_removed_breakpoint): Adjust.
19424 (status_pending_p): Adjust.
19425 (linux_wait_for_process): Rename to ...
19426 (linux_wait_for_lwp): ... this. Adjust.
19427 (linux_wait_for_event): Adjust.
19428 (send_sigstop): Adjust.
19429 (wait_for_sigstop): Adjust.
19430 (stop_all_processes): Rename to ...
19431 (stop_all_lwps): ... this.
19432 (linux_resume_one_process): Rename to ...
19433 (linux_resume_one_lwp): ... this. Adjust.
19434 (linux_set_resume_request, linux_continue_one_thread)
19435 (linux_queue_one_thread, resume_status_pending_p)
19436 (usr_store_inferior_registers, regsets_store_inferior_registers)
19437 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19439 * linux-low.h (get_process): Rename to ...
19440 (get_lwp): ... this. Adjust.
19441 (get_thread_process): Rename to ...
19442 (get_thread_lwp): ... this. Adjust.
19443 (get_process_thread): Rename to ...
19444 (get_lwp_thread): ... this. Adjust.
19445 (struct process_info): Rename to ...
19446 (struct lwp_info): ... this.
19447 (all_processes): Rename to ...
19448 (all_lwps): ... this.
19449 * proc-service.c (ps_lgetregs): Adjust.
19450 * thread-db.c (thread_db_create_event, find_one_thread)
19451 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19453 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19455 * server.c (handle_query): Handle "qAttached".
19457 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19459 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19460 GPLv3, update license URL.
19462 2009-03-01 Doug Evans <dje@google.com>
19464 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19465 (server_h): Add gdb_signals.h.
19466 (signals.o): Update.
19467 * server.h (target_signal_from_host,target_signal_to_host_p)
19468 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19470 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19472 * remote-utils.c (getpkt): Also generate remote-debug
19473 information if noack_mode is set.
19475 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19477 * server.c (handle_query): Report qXfer:siginfo:read and
19478 qXfer:siginfo:write as supported and handle them.
19479 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19480 * linux-low.c (linux_xfer_siginfo): New.
19481 (linux_target_ops): Set it.
19483 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19485 * server.c (gdbserver_usage): Mention --remote-debug.
19486 (main): Accept '--remote-debug' switch.
19488 2009-01-18 Doug Evans <dje@google.com>
19490 * regcache.c (new_register_cache): No need to check result of xcalloc.
19491 * server.c (handle_search_memory): Back out calls to xmalloc,
19492 result is checked and error is returned to user upon failure.
19493 (handle_query): Ditto. Add more checks for result of malloc.
19494 (handle_v_cont): Check result of malloc, report error back to
19496 (handle_v_run): Ditto. Call freeargv.
19497 * server.h (freeargv): Declare.
19498 * utils.c (freeargv): New fn.
19500 2009-01-15 Doug Evans <dje@google.com>
19502 * gdbreplay.c (perror_with_name): Make arg const char *.
19503 * server.h (target_signal_to_name): Make return type const char *.
19504 * thread-db.c (thread_db_err_str): Make return type const char *.
19505 * utils.c (perror_with_name): Make arg const char *.
19507 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19509 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19510 when handling a EXIT_PROCESS_DEBUG_EVENT.
19512 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19514 * gdbreplay.c (gdbreplay_version): Update copyright year.
19515 * server.c (gdbserver_version): Likewise.
19517 2009-01-05 Doug Evans <dje@google.com>
19519 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19520 (handle_extended_wait): Improve comment.
19522 2008-12-13 Doug Evans <dje@google.com>
19524 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19525 * server.h (ATTR_MALLOC): New macro.
19526 (xmalloc,xcalloc,xstrdup): Declare.
19527 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19528 * inferiors.c: Ditto.
19529 * linux-low.c: Ditto.
19530 * mem-break.c: Ditto.
19531 * regcache.c: Ditto.
19532 * remote-utils.c: Ditto.
19535 * win32-low.c: Ditto.
19537 2008-12-12 Doug Evans <dje@google.com>
19539 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19540 in debugging printf.
19542 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19544 2008-12-09 Doug Evans <dje@google.com>
19546 * linux-low.h (struct process_info): Delete member tid, unused.
19547 * thread-db.c (find_one_thread): Update.
19548 (maybe_attach_thread): Update.
19550 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19552 * target.h (struct target_ops): Add qxfer_osdata member.
19553 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19555 (linux_qxfer_osdata): New functions.
19556 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19558 * server.c (handle_query): Handle "qXfer:osdata:read:".
19559 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19560 (buffer_xml_printf): New functions.
19561 * server.h (struct buffer): New.
19562 (buffer_grow_str, buffer_grow_str0): New macros.
19563 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19564 (buffer_xml_printf): Declare.
19566 2008-11-24 Doug Evans <dje@google.com>
19568 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19570 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19572 * server.c (handle_v_run): Always use the supplied argument list.
19574 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19576 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19577 (xtensa_regmap_table): Add entry for scompare1.
19579 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19581 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19582 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19583 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19584 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19585 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19586 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19587 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19588 XML target descriptions.
19589 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19590 when inferior is running on an ISA 2.05 or later processor. Add
19591 special case to return offset for full 64-bit slot of FPSCR when
19594 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19596 * Makefile.in (SFILES, clean): Added sparc64 files.
19597 (reg-sparc64.o, reg-sparc64.c): New.
19598 * configure.srv (sparc*-*-linux*): New configuration.
19599 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19600 syscall arguments for SPARC.
19601 (regsets_store_inferior_registers): Likewise.
19602 * linux-sparc-low.c: New file.
19604 2008-10-21 Doug Evans <dje@google.com>
19606 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19607 (READLINE_DIR,READLINE_DEP): Delete.
19608 (INTERNAL_CFLAGS): Update.
19609 (LINTFLAGS): Update.
19611 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19613 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19614 whole argv from the last run, not just argv[0].
19616 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19618 * regcache.c (new_register_cache): Return NULL if the register
19619 cache size isn't known yet.
19620 (free_register_cache): Avoid dereferencing a NULL regcache.
19622 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19624 * configure.srv: Merge MIPS and MIPS64.
19626 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19628 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19630 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19632 * Makefile.in: Add required vsx dependencies.
19634 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19635 Declare init_registers_powerpc_vsx32l.
19636 Declare init_registers_powerpc_vsx64l.
19637 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19638 (ppc_arch_setup): Check for VSX in hwcap.
19639 (ppc_fill_vsxregset): New function.
19640 (ppc_store_vsxregset): New function.
19641 Add new VSX entry in regset_info target_regsets.
19643 * configure.srv: Add new VSX dependencies.
19645 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19647 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19648 (remote_open): Set or clear transport_is_reliable.
19649 (putpkt_binary): Don't expect acks in noack mode.
19650 (getpkt): Don't send ack/nac in noack mode.
19651 * server.c (handle_general_set): Handle QStartNoAckMode.
19652 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19654 (main): Reset noack_mode on every connection.
19655 * server.h (noack_mode): Declare.
19657 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19659 * Makefile.in (GDBREPLAY_OBS): New variable.
19660 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19662 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19663 Daniel Jacobowitz <dan@codesourcery.com>
19665 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19666 (usr_store_inferior_registers): Likewise.
19667 (regsets_store_inferior_registers): Likewise.
19669 2008-07-31 Rolf Jansen <rj@surtec.com>
19670 Pedro Alves <pedro@codesourcery.com>
19672 * configure.ac: Check for memmem declaration.
19673 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19674 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19675 (disable_packet_qfThreadInfo): Unconditionally compile.
19676 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19677 * configure, config.in: Regenerate.
19679 2008-07-28 Doug Kwan <dougkwan@google.com>
19681 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19682 (linux_write_memory): Remove declaration of errno.
19684 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19686 * linux-low.c (handle_extended_wait): Do not use "status"
19687 variable uninitialized.
19689 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19691 * server.c (handle_v_attach): Inhibit reporting dll changes.
19693 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19695 * remote-utils.c (prepare_resume_reply): If requested, don't
19696 output "thread:TID" in the T stop reply.
19698 * server.c (disable_packet_vCont, disable_packet_Tthread)
19699 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19700 (handle_query): If requested, disable support for qC, qfThreadInfo
19702 (handle_v_requests): If requested, disable support for vCont.
19703 (gdbserver_show_disableable): New.
19704 (main): Handle --disable-packet and --disable-packet=LIST.
19706 * server.h (disable_packet_vCont, disable_packet_Tthread)
19707 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19709 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19711 * server.c (gdbserver_usage): Mention --version.
19713 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19715 * Makefile.in (gdbreplay.o): New rule.
19717 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19719 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19720 message, not gdbserver.
19722 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19723 Nathan Sidwell <nathan@codesourcery.com>
19724 Joseph Myers <joseph@codesourcery.com>
19726 * acinclude.m4: Include ../../config/acx.m4.
19727 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19728 * configure, config.in: Regenerate.
19729 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19730 * server.c (gdbserver_version): Print PKGVERSION.
19731 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19732 (main): Adjust gdbserver_usage calls.
19733 * gdbreplay.c (version, host_name): Add declarations.
19734 (gdbreplay_version, gdbreplay_usage): New.
19735 (main): Accept --version and --help options.
19737 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19739 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19740 (arm_breakpoint_at): Handle Thumb.
19741 (the_low_target): Add comment.
19743 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19745 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19747 2008-05-09 Doug Evans <dje@google.com>
19749 * server.h (decode_search_memory_packet): Declare.
19750 * remote-utils.c (decode_search_memory_packet): New fn.
19751 * server.c (handle_search_memory_1): New fn.
19752 (handle_search_memory): New fn.
19753 (handle_query): Process qSearch:memory packets.
19755 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19757 * regcache.c (registers_length): Remove.
19758 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19759 full register packet.
19760 * regcache.h (registers_length): Remove prototype.
19761 * server.h (PBUFSIZ): Define to 16384.
19763 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19765 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19766 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19767 powerpc-64l.o, and powerpc-altivec64l.o.
19768 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19769 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19770 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19771 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19772 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19775 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19776 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19777 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19778 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19779 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19780 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19781 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19782 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19783 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19784 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19787 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19788 (init_registers_powerpc_32l): ... this new prototype.
19789 (init_registers_powerpc_32): Remove, replace by ...
19790 (init_registers_powerpc_altivec32l): ... this new prototype.
19791 (init_registers_powerpc_e500): Remove, replace by ...
19792 (init_registers_powerpc_e500l): ... this new prototype.
19793 (init_registers_ppc64): Remove, replace by ...
19794 (init_registers_powerpc_64l): ... this new prototype.
19795 (init_registers_powerpc_64): Remove, replace by ...
19796 (init_registers_powerpc_altivec64l): ... this new prototype.
19797 (ppc_num_regs): Set to 73.
19798 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19799 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19800 (ppc_cannot_store_register): Handle orig_r3 and trap.
19801 (ppc_arch_setup): Update init_registers_... calls.
19802 (ppc_fill_gregset): Handle orig_r3 and trap.
19804 * inferiors.c (clear_inferiors): Reset current_inferior.
19806 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19808 * acinclude.m4: Add override.m4.
19809 * configure: Regenerate.
19811 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19813 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19814 initial call to init_register_ppc64.
19816 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19818 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19819 single powerpc*-*-linux* case.
19820 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19822 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19824 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19825 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19827 * linux-ppc-low.c: Include <elf.h>.
19828 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19829 (ppc_hwcap): New global variable.
19830 (ppc_regmap): Remove __SPE__ #ifdef sections.
19831 (ppc_regmap_e500): New global variable.
19832 (ppc_cannot_store_register): Update __SPE__ special case.
19833 (ppc_get_hwcap): New function.
19834 (ppc_arch_setup): Use it to determine whether inferior supports
19835 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19836 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19837 Do not access registers if target does not support AltiVec.
19838 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19839 Do not access registers if target does not support SPE.
19840 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19842 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19844 * linux-low.c (disabled_regsets, num_regsets): New.
19845 (use_regsets_p): Delete.
19846 (linux_wait_for_process): Clear disabled_regsets.
19847 (regsets_fetch_inferior_registers): Check and set it.
19848 (regsets_store_inferior_registers): Likewise.
19849 (linux_fetch_registers, linux_store_registers): Do not use
19851 (initialize_low): Allocate disabled_regsets.
19853 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19855 * Makefile.in (LIBOBJS): New.
19856 (OBS): Use LIBOBJS.
19857 (memmem.o): New rule.
19858 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19859 * configure: Regenerated.
19861 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19863 * server.c (handle_query): Never return "unsupported" for
19864 qXfer:features:read queries.
19866 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
19868 * server.c (get_features_xml): Fix inverted condition.
19869 (handle_query): Always support qXfer:feature:read.
19871 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
19873 * server.c (wrapper_argv): New.
19874 (start_inferior): Handle wrapper_argv. If set, expect an extra
19876 (gdbserver_usage): Document --wrapper.
19877 (main): Parse --wrapper.
19879 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19881 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
19882 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
19883 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
19884 (ppc_set_pc): Likewise.
19885 (ppc_arch_setup): New function.
19886 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
19887 of collect_register.
19888 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
19890 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19892 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
19893 instead of linux-ppc64-low.o.
19894 * linux-ppc64-low.c: Remove file.
19895 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
19896 (linux-ppc64-low.o): Remove rule.
19898 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
19899 (init_registers_powerpc_64): Likewise.
19900 (ppc_regmap): Conditionally define depending on __powerpc64__.
19901 (ppc_cannot_store_register): Do not special-case "fpscr" when
19902 compiled on __powerpc64__.
19903 (ppc_collect_ptrace_register): New function.
19904 (ppc_supply_ptrace_register): New function.
19905 (ppc_breakpoint): Change type to "unsigned int".
19906 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
19907 (the_low_target): Conditionally provide initializers for the
19908 arch_setup member depending on __powerpc64__. Install
19909 collect_ptrace_register and supply_ptrace_register members.
19911 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
19913 * regcache.h (gdbserver_xmltarget): Add extern declaration.
19914 * server.c (gdbserver_xmltarget): Define.
19915 (get_features_xml): Use it to replace "target.xml" and arch_string.
19917 * configure.srv: Remove srv_xmltarget. Add XML files that were
19918 mentioned there to srv_xmlfiles instead. Remove conditional tests
19919 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
19920 srv_xmlfiles and srv_regobj to include all possible choices.
19921 * configure.ac (srv_xmltarget): Remove.
19922 (srv_xmlfiles): Do not add "target.xml".
19923 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
19924 checks for supplementary target information.
19925 * configure: Regenerate.
19926 * Makefile.in (XML_TARGET): Remove.
19927 (target.xml): Remove rule.
19928 (clean): Do not clean up target.xml.
19929 (.PRECIOUS): Do not mention target.xml.
19931 * target.h (struct target_ops): Remove arch_string member.
19932 * linux-low.c (linux_arch_string): Remove.
19933 (linux_target_ops): Remove arch_string initializer.
19934 * linux-low.h (struct linux_target_ops): Remove arch_string member.
19935 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
19936 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
19937 * spu-low.c (spu_arch_string): Remove.
19938 (spu_target_ops): Remove arch_string initializer.
19939 * win32-low.c (win32_arch_string): Remove.
19940 (win32_target_ops): Remove arch_string initializer.
19941 * win32-low.h (struct win32_target_ops): Remove arch_string member.
19942 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
19943 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
19945 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19947 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
19948 by collect_ptrace_register and supply_ptrace_register hooks.
19949 * linux-low.c (fetch_register): Use supply_ptrace_register callback
19950 instead of checking for the_low_target.left_pad_xfer.
19951 (usr_store_inferior_registers): Use collect_ptrace_register callback
19952 instead of checking for the_low_target.left_pad_xfer.
19954 * linux-s390-low.c (s390_collect_ptrace_register): New function.
19955 (s390_supply_ptrace_register): Likewise.
19956 (s390_fill_gregset): Call s390_collect_ptrace_register.
19957 (the_low_target): Update.
19959 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
19960 (ppc_supply_ptrace_register): Likewise.
19961 (the_low_target): Update.
19963 * linux-i386-low.c (the_low_target): Update.
19964 * linux-x86-64-low.c (the_low_target): Update.
19966 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19968 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
19969 reg-s390.o and reg-s390x.o.
19971 * linux-low.c (new_inferior): New global variable.
19972 (linux_create_inferior, linux_attach): Set it.
19973 (linux_wait_for_process): Call the_low_target.arch_setup after the
19974 target has stopped for the first time.
19975 (initialize_low): Do not call the_low_target.arch_setup.
19977 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
19978 (s390_set_pc): Likewise.
19979 (s390_arch_setup): New function.
19980 (the_low_target): Use s390_arch_setup as arch_setup routine.
19982 * regcache.c (realloc_register_cache): New function.
19983 (set_register_cache): Call it for each existing regcache.
19985 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
19987 * server.h (init_registers): Remove prototype.
19989 * linux-low.h (struct linux_target_ops): Add arch_setup field.
19990 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
19991 instead of init_registers ().
19992 * linux-arm-low.c (init_registers_arm): Add prototype.
19993 (init_registers_arm_with_iwmmxt): Likewise.
19994 (the_low_target): Add initializer for arch_setup field.
19995 * linux-cris-low.c (init_registers_cris): Add prototype.
19996 (the_low_target): Add initializer for arch_setup field.
19997 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
19998 (the_low_target): Add initializer for arch_setup field.
19999 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20000 (the_low_target): Add initializer for arch_setup field.
20001 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20002 (the_low_target): Add initializer for arch_setup field.
20003 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20004 (the_low_target): Add initializer for arch_setup field.
20005 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20006 (the_low_target): Add initializer for arch_setup field.
20007 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20008 (init_registers_mips64_linux): Likewise.
20009 (the_low_target): Add initializer for arch_setup field.
20010 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20011 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20012 (the_low_target): Add initializer for arch_setup field.
20013 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20014 (init_registers_powerpc_64): Likewise.
20015 (the_low_target): Add initializer for arch_setup field.
20016 * linux-s390-low.c (init_registers_s390): Add prototype.
20017 (init_registers_s390x): Likewise.
20018 (the_low_target): Add initializer for arch_setup field.
20019 * linux-sh-low.c (init_registers_sh): Add prototype.
20020 (the_low_target): Add initializer for arch_setup field.
20021 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20022 (the_low_target): Add initializer for arch_setup field.
20023 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20024 (the_low_target): Add initializer for arch_setup field.
20026 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20027 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20028 instead of init_registers ().
20029 * win32-arm-low.c (init_registers_arm): Add prototype.
20030 (the_low_target): Add initializer for arch_setup field.
20031 * win32-i386-low.c (init_registers_i386): Add prototype.
20032 (the_low_target): Add initializer for arch_setup field.
20034 * spu-low.c (init_registers_spu): Add prototype.
20035 (initialize_low): Call initialie_registers_spu () instead of
20036 initialize_registers ().
20038 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20040 * server.c (handle_v_requests): When handling the vRun and vAttach
20041 packets, if already debugging a process, don't kill it. Return an
20044 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20046 * server.c (handle_query): Correct length check.
20048 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20050 * win32-low.c (do_initial_child_stuff): Add process handle
20051 parameter. Set current_process_handle and current_process_id from the
20052 parameters. Clear globals.
20053 (win32_create_inferior): Don't set current_process_handle and
20054 current_process_id here. Instead pass them on the call to
20055 do_initial_child_stuff.
20056 (win32_attach): Likewise.
20057 (win32_clear_inferiors): New.
20058 (win32_kill): Don't close the current process handle or the
20059 current thread handle here. Instead call win32_clear_inferiors.
20060 (win32_detach): Don't open a new handle to the process. Call
20061 win32_clear_inferiors.
20062 (win32_join): Don't rely on current_process_handle; open a new
20063 handle using the process id.
20064 (win32_wait): Call win32_clear_inferiors when the inferior process
20067 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20069 * server.c (monitor_show_help): Add "exit".
20071 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20073 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20074 (clean): Add reg-xtensa.c.
20075 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20076 * configure.srv (xtensa*-*-linux*) New target.
20077 * linux-xtensa-low.c: New.
20078 * xtensa-xtregs.c: New.
20080 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20082 * hostio.c: Don't include errno.h.
20083 (errno_to_fileio_errno): Move to hostio-errno.
20084 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20085 error number outputting to the target->hostio_last_error callback.
20086 (hostio_packet_error): Use FILEIO_EINVAL directly.
20087 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20088 calls to hostio_error.
20089 * hostio-errno.c: New.
20090 * server.h (hostio_last_error_from_errno): Declare.
20091 * target.h (target_ops): Add hostio_last_error member.
20092 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20093 as hostio_last_error handler.
20094 * spu-low.c (spu_target_ops): Likewise.
20095 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20096 (wince_hostio_last_error): New functions.
20097 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20098 as hostio_last_error handler.
20099 (win32_target_ops) [!_WIN32_WCE]: Register
20100 hostio_last_error_from_errno as hostio_last_error handler.
20101 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20102 (hostio-errno.o): New rule.
20103 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20104 * configure.srv (srv_hostio_err_objs): New variable. Default to
20106 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20107 * configure: Regenerate.
20109 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20111 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20112 (linux_kill, linux_detach): Clean up the process list.
20113 * remote-utils.c (remote_open): Improve port number parsing.
20114 (putpkt_binary, input_interrupt): Only send interrupts if the target
20116 * server.c (extended_protocol): Make static.
20117 (attached): Define earlier.
20118 (exit_requested, response_needed, program_argv): New variables.
20119 (target_running): New.
20120 (start_inferior): Clear attached here.
20121 (attach_inferior): Set attached here.
20122 (require_running): Define.
20123 (handle_query): Use require_running and target_running. Implement
20125 (handle_v_attach, handle_v_run): New.
20126 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20127 (gdbserver_usage): Update.
20128 (main): Redo argument parsing. Handle --debug and --multi. Handle
20129 --attach along with other options or after the port. Save
20130 program_argv. Support no initial program. Resynchronize
20131 communication with GDB after an error. Handle "monitor exit".
20132 Use require_running and target_running. Always allow the extended
20133 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20134 restart in extended mode.
20135 * README: Refer to the GDB manual. Update --attach usage.
20137 2007-12-20 Andreas Schwab <schwab@suse.de>
20139 * linux-low.c (STACK_SIZE): Define.
20140 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20141 (linux_test_for_tracefork): Likewise.
20143 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20145 * linux-low.c (linux_wait_for_event): Update messages. Do not
20146 reinsert auto-delete breakpoints.
20147 * mem-break.c (struct breakpoint): Change return type of handler to
20149 (set_breakpoint_at): Update handler type.
20150 (reinsert_breakpoint_handler): Return 1 instead of calling
20152 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20154 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20155 * mem-break.h (set_breakpoint_at): Update handler type.
20156 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20157 * win32-low.c (auto_delete_breakpoint): New.
20158 (get_child_debug_event): Use it.
20160 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20162 * configure.ac: Check for pread and pwrite.
20163 * hostio.c (handle_pread): Fall back to lseek and read.
20164 (handle_pwrite): Fall back to lseek and write.
20165 * config.in, configure: Regenerated.
20167 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20169 * server.c (myresume): Add own_buf argument.
20170 (main): Update calls.
20172 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20174 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20175 * remote-utils.c (remote_open): Do not call disable_async_io.
20176 (block_async_io): Delete.
20177 (unblock_async_io): Make static.
20178 (initialize_async_io): New.
20179 * server.c (handle_v_cont): Handle async I/O here.
20180 (myresume): Likewise. Move other common resume tasks here...
20181 (main): ... from here. Call initialize_async_io. Disable async
20182 I/O before the main loop.
20183 * server.h (initialize_async_io): Declare.
20184 (block_async_io, unblock_async_io): Delete prototypes.
20185 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20187 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20189 * remote-utils.c (readchar): Allow binary data in received messages.
20191 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20193 * win32-low.c (attaching): New global.
20194 (win32_create_inferior): Clear the `attaching' global.
20195 (win32_attach): Set the `attaching' global.
20196 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20197 attaching. Only set a breakpoint at the entry point if not
20200 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20202 * server.c (main): Don't report dll events on the initial
20203 connection on attaches.
20205 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20207 * server.c (main): Relax numerical bases supported for the pid of
20208 the --attach command line argument.
20210 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20212 * win32-low.c (win32_attach): Call OpenProcess before
20213 DebugActiveProcess, not after. Add last error output to error
20216 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20218 * win32-low.c (win32_get_thread_context)
20219 (win32_set_thread_context): New functions.
20220 (thread_rec): Use win32_get_thread_context.
20221 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20222 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20225 2007-12-03 Leo Zayas
20226 Pedro Alves <pedro_alves@portugalmail.pt>
20228 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20230 (child_add_thread): Minor cleanup.
20231 (child_continue): Resume artificially suspended threads before
20232 calling ContinueDebugEvent.
20233 (suspend_one_thread): New.
20234 (fake_breakpoint_event): New.
20235 (get_child_debug_event): Change return type to int. Check here if
20236 gdb sent an interrupt request. If a soft interrupt was requested,
20237 fake a breakpoint event. Return 0 if there is no event to handle,
20239 (win32_wait): Don't check here if gdb sent an interrupt request.
20240 Ensure there is a valid event to handle.
20241 (win32_request_interrupt): Add soft interruption method as last
20244 2007-12-03 Leo Zayas
20245 Pedro Alves <pedro_alves@portugalmail.pt>
20247 * win32-low.h (win32_thread_info): Add descriptions to the
20248 structure members. Replace `suspend_count' counter by a
20250 * win32-low.c (thread_rec): Update condition of when to get the
20251 context from the inferior. Rely on ContextFlags being set if it
20252 has already been retrieved. Only suspend the inferior thread if
20253 we haven't already. Warn if that fails.
20254 (continue_one_thread): s/suspend_count/suspended/. Only call
20255 ResumeThread once. Warn if that fails.
20257 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20259 * win32-low.c (win32_wait): Don't read from the inferior when it
20260 has already exited.
20262 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20264 * Makefile.in (win32_low_h): New variable.
20265 (win32-low.o): Add dependency on $(win32_low_h).
20266 (win32-arm-low.o, win32-i386-low.o): New rules.
20268 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20270 * hostio.c: Correct copyright year.
20272 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20274 * Makefile.in (OBS): Add hostio.o.
20275 (hostio.o): New rule.
20276 * server.h (handle_vFile): Declare.
20277 * hostio.c: New file.
20278 * server.c (handle_v_requests): Take packet_len and new_packet_len
20279 for binary packets. Call handle_vFile.
20280 (main): Update call to handle_v_requests.
20282 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20284 * linux-low.c: Include <sched.h>.
20286 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20288 * linux-low.c (linux_tracefork_grandchild): New.
20289 (linux_tracefork_child): Use clone.
20290 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20292 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20294 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20296 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20298 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20300 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20302 * inferiors.c (change_inferior_id): Delete.
20303 (add_pid_to_list, pull_pid_from_list): New.
20304 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20305 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20306 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20307 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20308 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20309 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20310 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20311 (using_threads): Always set to 1.
20312 (handle_extended_wait): New.
20313 (add_process): Do not set TID.
20314 (linux_create_inferior): Set must_set_ptrace_flags.
20315 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20316 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20317 (linux_thread_alive): Rename TID argument to LWPID.
20318 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20319 (linux_wait_for_event): Do not use TID or check using_threads. Update
20320 call to dead_thread_notify. Call handle_extended_wait.
20321 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20322 (send_sigstop): Delete sigstop_sent.
20323 (wait_for_sigstop): Avoid TID.
20324 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20325 (linux_test_for_tracefork): New.
20326 (linux_lookup_signals): Use thread_db_active and
20327 linux_supports_tracefork_flag.
20328 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20329 * linux-low.h (get_process_thread): Avoid TID.
20330 (struct process_ifo): Move thread_known and tid to the end. Remove
20332 (linux_attach_lwp, thread_db_init): Update prototypes.
20333 * server.h (change_inferior_id): Delete prototype.
20334 (add_pid_to_list, pull_pid_from_list): New prototypes.
20335 * thread-db.c (thread_db_use_events): New.
20336 (find_first_thread): Rename to...
20337 (find_one_thread): ...this. Update callers and messages. Do not
20338 call fatal. Check thread_db_use_events. Do not call
20339 change_inferior_id or new_thread_notify.
20340 (maybe_attach_thread): Update. Do not call new_thread_notify.
20341 (thread_db_init): Set thread_db_use_events. Check use_events.
20342 * utils.c (fatal, warning): Correct message prefix.
20344 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20346 * Makefile.in (clean): Remove new files.
20347 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20348 (powerpc-64.o, powerpc-64.c): New rules.
20349 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20350 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20352 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20354 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20355 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20356 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20357 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20358 (target_regsets): Add AltiVec and SPE register sets.
20359 * configure.ac: Check for AltiVec and SPE.
20360 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20361 (ppc_fill_vrregset, ppc_store_vrregset): New.
20362 (target_regsets): Add AltiVec register set.
20363 * configure: Regenerated.
20365 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20367 * linux-low.c (O_LARGEFILE): Define.
20368 (linux_read_memory): Use /proc/PID/mem.
20369 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20370 * configure, config.in: Regenerated.
20372 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20374 * linux-low.c (linux_wait_for_event): Do not pass signals while
20377 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20379 * win32-low.c (create_process): New.
20380 (win32_create_inferior): Use create_process instead of
20381 CreateProcess. If create_process failed retry appending an ".exe"
20382 suffix. Store the GetLastError result immediatelly after
20383 create_process calls and use it on the call to error.
20385 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20387 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20389 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20391 * configure.ac: Switch license to GPLv3.
20393 2007-08-01 Michael Snyder <msnyder@access-company.com>
20395 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20397 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20399 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20401 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20402 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20403 CloseToolhelp32Snapshot.
20404 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20405 CloseToolhelp32Snapshot.
20407 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20409 * server.c (main): Check for inferior exit before main loop.
20411 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20413 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20414 instead of on tmp_desc.
20416 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20417 Daniel Jacobowitz <dan@codesourcery.com>
20419 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20420 (add_thread): Minor cleanups.
20421 (clear_inferiors): Move lower in the file. Clear the DLL
20423 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20424 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20425 (xml_escape_text): New.
20426 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20428 (handle_v_cont): Report errors.
20429 (gdbserver_version): Update.
20430 (main): Correct size of own_buf. Do not report initial DLL events.
20431 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20432 (unloaded_dll, xml_escape_text): New.
20433 * win32-low.c (enum target_waitkind): Update comments.
20434 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20435 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20436 (win32_EnumProcessModules, win32_GetModuleInformation)
20437 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20438 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20439 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20440 (win32_Module32First, win32_Module32Next, load_toolhelp)
20441 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20442 (get_child_debug_event): Handle DLL events.
20443 (win32_wait): Likewise.
20445 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20447 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20448 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20450 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20452 * win32-low.c (handle_output_debug_string): Ignore event if not
20455 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20457 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20459 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20461 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20463 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20465 * inferiors.c (change_inferior_id): Add comment.
20466 * linux-low.c (check_removed_breakpoint): Add an early
20467 prototype. Improve debug output.
20468 (linux_attach): Doc update.
20469 (linux_detach_one_process, linux_detach): Clean up before releasing
20471 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20472 * linux-low.h (struct process_info): Doc improvement.
20473 * mem-break.c (delete_all_breakpoints): New.
20474 * mem-break.h (delete_all_breakpoints): New prototype.
20475 * thread-db.c (find_first_thread): New.
20476 (thread_db_create_event): Call it instead of
20477 thread_db_find_new_threads. Clean up unused variables.
20478 (maybe_attach_thread): Remove first thread handling.
20479 (thread_db_find_new_threads): Use find_first_thread.
20480 (thread_db_get_tls_address): Likewise.
20482 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20484 * thread-db.c (thread_db_find_new_threads): Add prototype.
20485 (thread_db_create_event): Check for the main thread before adding
20487 (maybe_attach_thread): Only enable event reporting if TID == 0.
20488 (thread_db_get_tls_address): Check for new threads.
20490 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20492 * linux-low.c (linux_create_inferior): Try execv before execvp.
20493 * spu-low.c (spu_create_inferior): Likewise.
20495 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20497 * linux-low.c (linux_create_inferior): Change execv to execvp.
20498 * spu-low.c (spu_create_inferior): Likewies.
20500 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20502 * Makefile.in (clean): Clean new files instead of deleted ones.
20503 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20504 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20506 * configure.srv: Specify XML files and new regformats for MIPS and
20508 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20509 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20510 an entry for the restart register.
20511 (mips_cannot_fetch_register, mips_cannot_store_register)
20512 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20513 register names to match the XML descriptions.
20514 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20515 restart register instead of $0.
20517 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20518 Markus Deuling <deuling@de.ibm.com>
20520 * remote-utils.c (decode_xfer_write): New function.
20521 * server.h (decode_xfer_write): Add prototype.
20522 * server.c (handle_query): Add PACKET_LEN argument. Support
20523 qXfer:spu:read and qXfer:spu:write packets.
20524 (main): Pass packet_len to handle_query.
20525 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20526 * target.h (target_ops): Add qxfer_spu.
20528 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20530 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20531 accessing non-seekable spufs files.
20533 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20535 * server.c (handle_query): Add reply for qC packet.
20537 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20538 Leo Zayas <lerele@champenstudios@com>
20540 * server.h (check_remote_input_interrupt_request): New function.
20541 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20542 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20543 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20544 (check_remote_input_interrupt_request): New function.
20545 * server.h (check_remote_input_interrupt_request): Declare.
20546 * win32-low.c (winapi_DebugBreakProcess,
20547 winapi_GenerateConsoleCtrlEvent): New typedefs.
20548 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20550 (win32_wait): Check for remote interrupt request
20551 with check_remote_input_interrupt_request.
20552 (win32_request_interrupt): New function.
20553 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20555 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20557 * win32-low.c (debug_registers_changed,
20558 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20559 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20560 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20561 (thread_rec): Get context using the low target.
20562 (child_add_thread): Call thread_added on the low target,
20563 which does the same thing.
20565 (do_initial_child_stuff): Remove debug registers references.
20566 Set context using the low target. Resume threads after
20567 setting the contexts.
20568 (child_continue): Remove dead variable. Remove debug
20569 registers references.
20570 (child_fetch_inferior_registers): Go through the low target.
20571 (do_child_store_inferior_registers): Remove.
20572 (child_store_inferior_registers): Go through the low target.
20573 (win32_resume): Remove debug registers references.
20574 Set context using the low target.
20575 (handle_exception): Change return type to void. Don't record
20576 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20577 first chance exception.
20578 (get_child_debug_event): Change return type to void. Remove
20579 goto loop. Always return after waiting for debug event.
20580 (win32_wait): Convert to switch statement. Handle spurious
20583 * win32-i386-low.c (debug_registers_changed,
20584 debug_registers_used): New.
20585 (initial_stuff): Rename to ...
20586 (i386_initial_stuff): ... this. Clear debug registers
20588 (store_debug_registers): Delete.
20589 (i386_get_thread_context): New.
20590 (load_debug_registers): Delete.
20591 (i386_set_thread_context): New.
20592 (i386_thread_added): New.
20593 (single_step): Rename to ...
20594 (i386_single_step): ... this.
20595 (do_fetch_inferior_registers): Rename to ...
20596 (i386_fetch_inferior_register): ... this.
20597 (i386_store_inferior_register): New.
20598 (the_low_target): Adapt to new interface.
20600 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20601 (arm_get_thread_context): New.
20602 (arm_set_thread_context): New.
20604 (do_fetch_inferior_registers): Rename to ...
20605 (arm_fetch_inferior_register): ... this.
20606 (arm_store_inferior_register): New.
20607 (arm_wince_breakpoint): Reimplement as unsigned long.
20608 (arm_wince_breakpoint_len): Define.
20609 (the_low_target): Adapt to new interface.
20611 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20612 load_debug_registers. Add get_thread_context, set_thread_context,
20613 thread_added and store_inferior_register. Rename
20614 fetch_inferior_registers to fetch_inferior_register.
20615 (regptr): Remove declaration.
20617 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20619 * linux-low.c (linux_detach): Change return type to int. Return 0.
20620 * spu-low.c (spu_detach): Likewise.
20622 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20624 * target.h (target_ops): Change return type of detach to int.
20626 (join_inferior): New.
20627 * server.c (main): Don't skip detach support on mingw32.
20628 If the inferior doesn't support detaching return error.
20629 Call join_inferior instead of using waitpid.
20630 * linux-low.c (linux_join): New.
20631 (linux_target_op): Add linux_join.
20632 * spu-low.c (spu_join): New.
20633 (spu_target_ops): Add spu_join.
20634 * win32-low.c (win32_detach): Adapt to new interface.
20635 Reopen current_process_handle before detaching. Issue a child
20636 resume before detaching.
20638 (win32_target_op): Add win32_join.
20640 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20642 * win32-low.c (win32-attach): Fix return value.
20643 * target.h (target_ops): Describe ATTACH return values.
20645 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20647 * win32-low.c (GETPROCADDRESS): Define.
20648 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20649 (winapi_DebugSetProcessKillOnExit): Likewise.
20650 (win32_create_inferior): Force usage of ansi CreateProcessA.
20651 (win32_attach): Use GETPROCADDRESS.
20652 (win32_detach): Likewise.
20654 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20656 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20658 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20660 * win32-low.c: Commit leftover changes from 2007-03-29.
20662 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20664 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20665 fields short instead of int. Add explicit padding.
20666 (i387_cache_to_fsave): Remove unnecessary casts.
20667 (i387_fsave_to_cache): Doc fix.
20668 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20670 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20672 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20673 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20675 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20677 * configure.srv (arm*-*-mingw32ce*): Move near the other
20680 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20682 * configure.ac: Add errno checking.
20683 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20684 sys/file.h and malloc.h.
20685 (AC_CHECK_DECLS): Add perror.
20686 (srv_mingwce): Handle.
20687 * configure.srv (i[34567]86-*-cygwin*): Add
20688 win32-i386-low.o to srv_tgtobj.
20689 (i[34567]86-*-mingw*): Likewise.
20690 (arm*-*-mingw32ce*): Add case.
20691 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20692 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20693 [__MINGW32CE__] (strerror): New function.
20694 [__MINGW32CE__] (errno): Define to GetLastError.
20695 [__MINGW32CE__] (COUNTOF): New macro.
20696 (remote_open): Remove extra close call.
20697 * mem-break.c (delete_breakpoint_at): New function.
20698 * mem-break.h (delete_breakpoint_at): Declare.
20699 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20700 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20701 [USE_WIN32API] (read, write): Add char* casts.
20702 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20703 * server.h: Include wincecompat.h on Windows CE.
20704 [HAVE_ERRNO_H]: Check.
20705 (perror): Declare if not declared.
20706 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20707 (perror_with_name): Remove errno declaration.
20708 * wincecompat.h: New.
20709 * wincecompat.c: New.
20710 * win32-low.h: New.
20711 * win32-arm-low.c: New.
20712 * win32-i386-low.c: New.
20713 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20714 (OUTMSG2): Make it safe.
20716 (COUNTOF): New macro.
20717 (NUM_REGS): Get it from the low target.
20718 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20719 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20720 (thread_rec): Let low target handle debug registers.
20721 (child_add_thread): Likewise.
20722 (child_init_thread_list): Likewise.
20723 (continue_one_thread): Likewise.
20725 (do_child_fetch_inferior_registers): Move to ...
20726 * win32-i386-low.c: ... here, and rename to ...
20727 (do_fetch_inferior_registers): ... this.
20728 * win32-low.c (child_fetch_inferior_registers):
20729 Go through the low target.
20730 (do_child_store_inferior_registers): Use regptr.
20731 (strwinerror): New function.
20732 (win32_create_inferior): Handle Windows CE.
20733 Use strwinerror instead of strerror on Windows error
20734 codes. Add program to the error output.
20735 Don't close the main thread handle on Windows CE.
20736 (win32_attach): Use coredll.dll on Windows CE.
20737 (win32_kill): Close current process and current
20739 (win32_detach): Use coredll.dll on Windows CE.
20740 (win32_resume): Let low target handle debug registers, and
20742 (handle_exception): Add/Remove initial breakpoint. Avoid
20743 non-existant WSTOPSIG on Windows CE.
20744 (win32_read_inferior_memory): Cast to remove warning.
20745 (win32_arch_string): Go through the low target.
20746 (initialize_low): Call set_breakpoint_data with the low
20747 target's breakpoint.
20748 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20749 FOP_REGNUM, mappings): Move to ...
20750 * win32-i386-low.c: ... here.
20751 * win32-low.c (win32_thread_info): Move to ...
20752 * win32-low.h: ... here.
20753 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20754 win32-arm-low.c and wincecompat.c.
20755 (all:): Add $EXEEXT.
20756 (install-only:): Likewise.
20757 (gdbserver:): Likewise.
20758 (gdbreplay:): Likewise.
20759 * config.in: Regenerate.
20760 * configure: Regenerate.
20762 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20764 * win32-low.c: Rename typedef thread_info to
20765 win32_thread_info throughout.
20767 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20769 * win32-i386-low.c: Rename to ...
20770 * win32-low.c: ... this.
20771 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20772 * Makefile.in: Likewise.
20774 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20776 * remote-utils.c (monitor_output): Constify msg parameter.
20777 * server.h (monitor_output): Likewise.
20778 * win32-i386-low.c (handle_output_debug_string): New.
20779 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20780 handle_output_debug_string.
20781 (get_child_debug_event): Likewise.
20783 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20785 * server.c (main): Correct strtoul check.
20787 2007-03-27 Jon Ringle <jon@ringle.org>
20789 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20791 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20793 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20795 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20797 * terminal.h: Check HAVE_SGTTY_H.
20799 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20801 * remote-utils.c (remote_open): Print out the assigned port number.
20803 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20805 * remote-utils.c (monitor_output): New function.
20806 * server.c (debug_threads): Define here.
20807 (monitor_show_help): New function.
20808 (handle_query): Handle qRcmd.
20809 (main): Do not handle 'd' packet.
20810 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20811 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20814 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20816 * Makefile.in (EXEEXT): New.
20817 (clean): Use $(EXEEXT).
20819 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20821 * target.h (target_ops): Rename send_signal to request_interrupt,
20822 and remove enum target_signal parameter.
20823 * linux-low.c (linux_request_interrupt): Rename from
20824 linux_send_signal, and always send SIGINT.
20825 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20826 and always send SIGINT.
20827 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20829 (input_interrupt): Likewise.
20831 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20833 * server.c (get_features_xml): Check if target implemented
20835 * win32-i386-low.c (win32_arch_string): New.
20836 (win32_target_ops): Add win32_arch_string as arch_string member.
20838 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20840 * spu-low.c (spu_arch_string): New.
20841 (spu_target_ops): Add spu_arch_string.
20843 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20845 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20846 * configure.ac: Do not check for terminal.h.
20847 * configure, config.in: Regenerated.
20849 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20851 * Makefile.in (OBS): Add $(XML_BUILTIN).
20852 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20854 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20855 (arm-with-iwmmxt.c): New.
20856 * config.in, configure: Regenerate.
20857 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20858 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20859 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20860 (arm*-*-linux*): Add iWMMXt and regset support.
20861 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20862 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20863 (arm_store_wmmxregset, target_regsets): New.
20864 * server.c (get_features_xml): Take annex argument. Check builtin
20866 (handle_query): Handle multiple annexes.
20868 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20870 * remote-utils.c [USE_WIN32API] (read, write): Define.
20871 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
20874 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
20876 * linux-i386-low.c (the_low_target): Set arch_string.
20877 * linux-x86-64-low.c (the_low_target): Likewise.
20878 * linux-low.c (linux_arch_string): New.
20879 (linux_target_ops): Add it.
20880 * linux-low.h (struct linux_target_ops): Add arch_string.
20881 * server.c (write_qxfer_response): Use const void * for DATA.
20882 (get_features_xml): New.
20883 (handle_query): Handle qXfer:features:read. Report it for qSupported.
20884 * target.h (struct target_ops): Add arch_string method.
20886 2007-01-03 Denis Pilat <denis.pilat@st.com>
20887 Daniel Jacobowitz <dan@codesourcery.com>
20889 * linux-low.c (linux_kill): Handle being called with no threads.
20890 * win32-i386-low.c (win32_kill): Likewise.
20891 (get_child_debug_event): Clear current_process_handle.
20893 2006-12-30 Denis PILAT <denis.pilat@st.com>
20894 Daniel Jacobowitz <dan@codesourcery.com>
20896 * remote-utils.c (remote_open): Check the type of specified
20897 serial port devices before opening them.
20898 * server.c (main): Kill the inferior if an error occurs during
20899 the first remote_open.
20901 2006-12-05 Markus Deuling <deuling@de.ibm.com>
20903 * README: Update supported targets.
20905 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
20907 * Makefile.in (clean): Remove reg-mips64.c.
20908 (reg-mips64.c, reg-mips64.o): New rules.
20909 * configure.srv: Handle mips64. Include regset support for mips.
20910 * linux-mips-low.c (union mips_register): New.
20911 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
20912 (mips_breakpoint, mips_breakpoint_at): Use int.
20913 (mips_collect_register, mips_supply_register)
20914 (mips_collect_register_32bit, mips_supply_register_32bit)
20915 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
20916 (mips_store_fpregset, target_regsets): New.
20917 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
20919 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
20921 * configure.srv: Add target "spu*-*-*".
20922 * Makefile.in (clean): Remove reg-spu.c.
20923 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
20924 * spu-low.c: New file.
20926 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20928 * configure.ac: Correct td_thr_tls_get_addr test.
20929 * configure: Regenerated.
20931 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
20933 * linux-low.c (linux_wait_for_event): Reformat. Use the
20934 pass_signals array.
20935 * remote-utils.c (decode_address_to_semicolon): New.
20936 * server.c (pass_signals, handle_general_set): New.
20937 (handle_query): Mention QPassSignals for qSupported.
20938 (main): Call handle_general_set.
20939 * server.h (pass_signals, decode_address_to_semicolon): New.
20941 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
20943 * server.c (handle_query): Correct error handling for read_auxv.
20945 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
20947 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
20948 and srv_linux_thread_db to yes.
20949 * linux-s390-low.c (s390_fill_gregset): New function.
20950 (target_regsets): Define data structure.
20952 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
20954 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
20955 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
20956 * config.in, configure: Regenerated.
20957 * inferiors.c (gdb_id_to_thread): New function.
20958 (gdb_id_to_thread_id): Use it.
20959 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
20960 * linux-low.h (struct process_info): Add th member.
20961 (thread_db_get_tls_address): New prototype.
20962 * remote-utils.c (decode_address): Make non-static.
20963 * server.c (handle_query): Handle qGetTLSAddr.
20964 * server.h (gdb_id_to_thread, decode_address): New prototypes.
20965 * target.h (struct target_ops): Add get_tls_address.
20966 * thread-db.c (maybe_attach_thread): Save the thread handle.
20967 (thread_db_get_tls_address): New.
20969 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
20971 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
20972 (linux_resume_one_process): Take a siginfo_t *. Update all
20973 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
20974 (struct pending_signals): Add a siginfo_t.
20975 (linux_wait_for_process): Always set last_status.
20976 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
20977 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
20978 * linux-low.h (struct process_info): Add last_status.
20980 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
20982 * remote-utils.c (try_rle): New function.
20983 (putpkt_binary): Use it.
20985 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
20987 * Makefile.in (clean): Clean reg-x86-64-linux.c.
20988 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
20989 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
20990 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
20991 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
20994 2006-08-08 Richard Sandiford <richard@codesourcery.com>
20996 * server.c (terminal_fd): New variable.
20997 (old_foreground_pgrp): Likewise.
20998 (restore_old_foreground_pgrp): New function.
20999 (start_inferior): Record the terminal file descriptor in terminal_fd
21000 and its original foreground group in old_foreground_pgrp. Register
21001 restore_old_foreground_pgrp with atexit().
21003 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21005 * server.c (handle_query): Correct qPart to qXfer.
21007 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21009 * configure.ac: Check for more headers which are missing on
21010 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21011 * configure.srv: Add Cygwin and mingw32.
21012 * remote-utils.c: Don't include headers unconditionally which
21013 are missing on mingw32. Include <winsock.h> for mingw32.
21014 (remote_open): Adjust for mingw32 support. Flush
21015 standard error after writing to it.
21016 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21017 (unblock_async_io, enable_async_io, disable_async_io)
21018 (readchar, getpkt): Update for Winsock support.
21019 (prepare_resume_reply): Expect a protocol signal number.
21020 * server.c: Disable <sys/wait.h> on mingw32.
21021 (start_inferior): Adjust for mingw32 support. Flush
21022 standard error after writing to it.
21023 (attach_inferior): Likewise. Use protocol signal
21025 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21027 * win32-i386-low.c: New file.
21028 * Makefile.in (XM_CLIBS): Set.
21029 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21030 (win32-i386-low.o): New dependency rule.
21031 * linux-low.c (linux_wait): Use target signal numbers.
21032 * target.h (struct target_ops): Doc fix.
21033 * server.h (target_signal_to_name): New prototype.
21034 * gdbreplay.c: Don't include headers unconditionally which
21035 are missing on mingw32. Include <winsock.h> for mingw32.
21036 (remote_close, remote_open): Adjust for Winsock support.
21037 * configure, config.in: Regenerated.
21039 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21041 * server.c (decode_xfer_read, write_qxfer_response): New.
21042 (handle_query): Take a packet length argument. Handle
21043 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21044 the qSupported response.
21045 (main): Update call to handle_query.
21047 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21049 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21050 (putpkt_binary): Renamed from putpkt and adjusted for binary
21052 (putpkt): New wrapper for putpkt_binary.
21053 (readchar): Don't mask off the high bit.
21054 (decode_X_packet): New function.
21055 * server.c (main): Call putpkt_binary if a handler sets the packet
21056 length. Save the length of the incoming packet. Handle 'X'.
21057 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21059 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21061 * server.c (handle_query): Handle qSupported.
21063 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21065 * remote-utils.c (all_symbols_looked_up): New variable.
21066 (look_up_one_symbol): Check it.
21067 * server.h (look_up_one_symbol): New declaration.
21068 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21070 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21072 * Makefile.in (linux-arm-low.o): Update dependencies.
21073 * linux-arm-low.c: Include "gdb_proc_service.h".
21074 (PTRACE_GET_THREAD_AREA): Define.
21075 (ps_get_thread_area): New function.
21077 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21079 * configure.srv (m68k*-*-uclinux*): New target.
21080 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21081 (linux_resume_one_process): Remove extraneous cast.
21082 (linux_read_offsets): New.
21083 (linux_target_op): Add linux_read_offsets on mmuless systems.
21084 * server.c (handle_query): Add qOffsets logic.
21085 * target.h (struct target_ops): Add read_offsets.
21087 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21089 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21090 (PTRACE_GET_THREAD_AREA): Define.
21091 (ps_get_thread_area): New function.
21092 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21093 (linux-x86-64-low.o): Update.
21095 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21097 * configure.ac: Remove checks for prfpregset_t.
21098 * gdb_proc_service.h: New file.
21099 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21100 new "gdb_proc_service.h".
21101 * proc-service.c: Likewise.
21102 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21103 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21104 * Makefile.in (gdb_proc_service_h): Updated.
21105 * configure, config.in: Regenerated.
21107 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21109 * remote-utils.c (prepare_resume_reply): Move declaration
21110 of gdb_id_from_wait to the top of the block.
21112 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21114 * linux-low.c (regsets_store_inferior_registers): Read the regset
21115 from the target before filling it.
21117 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21119 * server.c (attach_inferior): Return SIGTRAP for a successful
21122 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21124 * Makefile.in (OBS): Add version.o.
21125 (STAGESTUFF): Delete.
21126 (version.o): Add dependencies.
21127 (version.c): Replace rule.
21128 (clean): Remove version.c.
21129 * server.c (gdbserver_version): New.
21130 (gdbserver_usage): Use printf.
21131 (main): Handle --version and --help.
21132 * server.h (version, host_name): Add declarations.
21134 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21146 * linux-x86-64-low.c:
21148 * linux-s390-low.c:
21149 * linux-ppc64-low.c:
21151 * linux-mips-low.c:
21152 * linux-m68k-low.c:
21153 * linux-m32r-low.c:
21156 * linux-ia64-low.c:
21157 * linux-i386-low.c:
21158 * linux-crisv32-low.c:
21170 * gdbserver.1: Add (C) after Copyright. Update the FSF
21173 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21175 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21176 (arm_breakpoint_at): Recognize both breakpoints.
21177 (the_low_target): Use the correct breakpoint instruction.
21179 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21181 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21182 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21183 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21184 (the_low_target): Update.
21186 2005-10-25 Andreas Schwab <schwab@suse.de>
21188 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21190 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21191 (ia64_num_regs): Reduce to 462.
21193 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21195 * acinclude.m4: Correct quoting.
21196 * aclocal.m4: Regenerated.
21198 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21199 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21200 (thread_db_init): Call thread_db_err_str.
21201 * configure.ac: Check for TD_VERSION.
21202 * config.in, configure: Regenerated.
21204 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21206 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21208 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21210 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21211 is not available. Define HAVE_PTRACE_GETREGS if it is.
21212 * config.in, configure: Regenerated.
21213 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21214 * linux-i386-low.c, linux-m68k-low.c: Update to use
21215 HAVE_PTRACE_GETREGS.
21216 * linux-low.c (regsets_fetch_inferior_registers)
21217 (regsets_store_inferior_registers): Only return 0 if we processed
21219 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21220 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21222 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21224 * inferiors.c (struct thread_info): Add gdb_id.
21225 (add_thread): Add gdb_id argument.
21226 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21227 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21228 calls to add_thread.
21229 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21230 * server.c (handle_query): Use thread_to_gdb_id.
21231 (handle_v_cont, main): Use gdb_id_to_thread_id.
21232 * server.h (add_thread): Update prototype.
21233 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21236 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21238 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21239 left-padded registers.
21240 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21241 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21243 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21245 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21246 * configure: Regenerate.
21247 * config.in: Regenerate.
21248 * server.h (NEED_DECLARATION_STRERROR):
21249 Replace with !HAVE_DECL_STRERROR.
21251 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21253 * linux-low.c (linux_wait, linux_send_signal): Don't test
21254 an unsigned long variable for > 0 if it could be MAX_ULONG.
21255 * server.c (myresume): Likewise.
21256 * target.c (set_desired_inferior): Likewise.
21258 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21260 * configure.ac: Simplify and improve check for socklen_t.
21261 * configure, config.in: Regenerate.
21263 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21265 * acconfig.h: Remove.
21266 * configure.ac: Add a test for socklen_t. Use three-argument
21267 AC_DEFINE throughout.
21268 * config.in: Regenerated using autoheader 2.59.
21269 * configure: Regenerated.
21271 * gdbreplay.c (socklen_t): Provide a default.
21272 (remote_open): Use socklen_t.
21273 * remote-utils.c (socklen_t): Provide a default.
21274 (remote_open): Use socklen_t.
21275 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21278 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21280 * linux-low.c (linux_read_memory, linux_write_memory)
21281 (linux_read_auxv): Likewise.
21282 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21283 (check_mem_write): Likewise.
21284 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21286 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21287 (registers_from_string, register_data): Likewise.
21288 * server.c (handle_query, main): Likewise.
21289 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21290 (decode_M_packet): Likewise.
21291 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21292 * target.h (struct target_ops): Update read_memory, write_memory,
21294 (read_inferior_memory, write_inferior_memory): Update.
21295 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21296 to unsigned char *.
21297 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21298 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21299 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21300 linux-s390-low.c, linux-sh-low.c: Update for changes in
21301 read_inferior_memory and the_low_target->breakpoint.
21303 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21305 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21306 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21307 * configure.srv: Add powerpc64-*-linux*.
21308 * linux-ppc64-low.c: New file.
21310 2005-05-23 Orjan Friberg <orjanf@axis.com>
21312 * linux-cris-low.c: New file with support for CRIS.
21313 * linux-crisv32-low.c: Ditto for CRISv32.
21314 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21315 (clean): Add reg-cris.c and reg-crisv32.c.
21316 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21317 reg-crisv32.o, and reg-crisv32.c to make rules.
21318 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21319 recognized targets.
21321 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21323 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21324 of sizeof (PTRACE_XFER_TYPE).
21325 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21327 2005-05-12 Orjan Friberg <orjanf@axis.com>
21329 * target.h (struct target_ops): Add insert_watchpoint,
21330 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21331 pointers for hardware watchpoint support.
21332 * linux-low.h (struct linux_target_ops): Ditto.
21333 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21334 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21335 to linux_target_ops.
21336 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21338 * server.c (main): Recognize 'Z' and 'z' packets.
21340 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21342 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21343 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21344 (the_low_target): Add new members.
21346 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21348 * proc-service.c (ps_lgetregs): Search all_processes instead of
21351 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21353 * server.c (start_inferior): Change return type to int.
21354 (attach_inferior): Change sigptr to int *.
21355 (handle_v_cont, handle_v_requests): Change signal to int *.
21356 (main): Change signal to int.
21358 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21360 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21361 * configure.srv: Add m32r*-*-linux*.
21362 * linux-m32r-low.c: New file.
21364 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21366 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21368 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21370 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21371 Take unsigned long arguments for PIDs.
21372 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21373 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21374 (wait_for_sigstop, linux_resume_one_process)
21375 (regsets_fetch_inferior_registers, linux_send_signal)
21376 (linux_read_auxv): Likewise. Update the types of variables holding
21377 PIDs. Update format string specifiers.
21378 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21379 * remote-utils.c (prepare_resume_reply): Likewise.
21380 * server.c (cont_thread, general_thread, step_thread)
21381 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21383 (handle_query): Update format specifiers.
21384 (handle_v_cont, main): Use strtoul for thread IDs.
21385 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21386 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21387 (general_thread, step_thread, thread_from_wait)
21388 (old_thread_from_wait): Update.
21389 * target.h (struct thread_resume): Use unsigned long for THREAD.
21390 (struct target_ops): Use unsigned long for arguments to attach and
21393 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21395 * acinclude.m4: Include bfd/bfd.m4 directly.
21396 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21397 <agriffis@toolchain.org>.
21398 * aclocal.m4, configure: Regenerated.
21400 2005-01-07 Andrew Cagney <cagney@gnu.org>
21402 * configure.ac: Rename configure.in, require autoconf 2.59.
21403 * configure: Re-generate.
21405 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21407 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21408 LIBS when finished.
21409 * aclocal.m4: Regenerated.
21410 * configure: Regenerated.
21412 2004-11-21 Andreas Schwab <schwab@suse.de>
21414 * linux-m68k-low.c (m68k_num_gregs): Define.
21415 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21416 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21417 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21418 (m68k_breakpoint_at): New. Add to the_low_target.
21420 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21421 srv_linux_thread_db to yes.
21423 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21425 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21426 (ARCH_SET_FS): Likewise.
21427 (ARCH_GET_FS): Likewise.
21428 (ARCH_GET_GS): Likewise.
21430 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21432 * linux-i386-low.c (ps_get_thread_area): New.
21433 * linux-x86-64-low.c (ps_get_thread_area): New.
21434 * linux-low.c: Include <sys/syscall.h>.
21435 (linux_kill_one_process): Don't kill the first thread here.
21436 (linux_kill): Kill the first thread here.
21437 (kill_lwp): New function.
21438 (send_sigstop, linux_send_signal): Use it.
21439 * proc-service.c: Clean up #ifdefs.
21440 (fpregset_info): Delete.
21441 (ps_lgetregs): Update and enable implementation.
21442 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21444 * remote-utils.c (struct sym_cache, symbol_cache): New.
21445 (input_interrupt): Print a clearer message.
21446 (async_io_enabled): New variable.
21447 (enable_async_io, disable_async_io): Use it. Update comments.
21448 (look_up_one_symbol): Use the symbol cache.
21449 * thread-db.c (thread_db_look_up_symbols): New function.
21450 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21452 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21454 * configure.in: Test for -rdynamic.
21455 * configure: Regenerated.
21456 * Makefile (INTERNAL_LDFLAGS): New.
21457 (gdbserver, gdbreplay): Use it.
21459 2004-09-02 Andrew Cagney <cagney@gnu.org>
21461 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21463 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21465 * linux-low.c (linux_wait): Clear all_processes list also.
21467 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21469 * linux-low.c: Include <errno.h>. Remove extern declaration of
21472 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21474 * gdbreplay.c, server.h, utils.c: Update copyright years.
21476 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21478 * server.c (main): Print child status or termination signal from
21479 variable 'signal', not 'sig'.
21481 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21483 * linux-low.c (linux_read_memory): Change return type to
21484 int. Check for and return error from ptrace().
21485 * target.c (read_inferior_memory): Change return type to int. Pass
21486 back return status from the_target->read_memory().
21487 * target.h (struct target_ops): Adapt *read_memory() prototype.
21489 (read_inferior_memory): Adapt prototype.
21490 * server.c (main): Return an error packet if
21491 read_inferior_memory() returns an error.
21493 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21495 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21496 Unify with other clean targets.
21498 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21500 * server.c (handle_v_cont): Call set_desired_inferior.
21502 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21504 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21506 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21508 * linux-low.c (linux_wait): Unblock async I/O.
21509 (linux_resume): Block and enable async I/O.
21510 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21511 * server.h (block_async_io, unblock_async_io): Add prototypes.
21513 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21515 * remote-utils.c (remote_open): Print a status notice after
21516 opening a TCP port.
21517 * server.c (attach_inferior): Print a status notice after
21520 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21522 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21524 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21526 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21528 * server.c, target.h: Update copyright years.
21530 2004-02-25 Roland McGrath <roland@redhat.com>
21532 * target.h (struct target_ops): New member `read_auxv'.
21533 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21534 * linux-low.c (linux_read_auxv): New function.
21535 (linux_target_ops): Initialize `read_auxv' member to that.
21537 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21539 Committed by Jim Blandy <jimb@redhat.com>.
21541 * linux-s390-low.c (s390_num_regs): Update.
21542 (s390_regmap): Remove control registers. Use __s390x__ predefine
21543 instead of GPR_SIZE to distiguish s390 and s390x targets.
21545 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21547 * linux-low.c: Update copyright year.
21548 (check_removed_breakpoint): Clear pending_is_breakpoint.
21549 (linux_set_resume_request, linux_queue_one_thread)
21550 (resume_status_pending_p): New functions.
21551 (linux_continue_one_thread): Use process->resume.
21552 (linux_resume): Only resume threads if there are no pending events.
21553 * linux-low.h (struct process_info): Add resume request
21556 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21558 * regcache.c (new_register_cache): Clear the allocated register
21559 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21561 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21563 * linux-low.c (linux_resume): Take a struct thread_resume *
21565 (linux_wait): Update call.
21566 (resume_ptr): New static variable.
21567 (linux_continue_one_thread): Renamed from
21568 linux_continue_one_process. Use resume_ptr.
21569 (linux_resume): Use linux_continue_one_thread.
21570 * server.c (handle_v_cont, handle_v_requests): New functions.
21571 (myresume): New function.
21572 (main): Handle 'v' case.
21573 * target.h (struct thread_resume): New type.
21574 (struct target_ops): Change argument of "resume" to struct
21576 (myresume): Delete macro.
21578 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21580 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21581 (uninstall): Support DESTDIR.
21583 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21585 * configure.srv: Add xscale*linux copy of arm*linux entry.
21587 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21589 * linux-arm-low.c (arm_reinsert_addr): New function.
21590 (the_low_target): Add arm_reinsert_addr.
21592 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21594 * mem-break.c: Remove whitespace at end of file.
21596 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21598 * configure.in: Check whether we need to prototype strerror.
21599 * server.h: Optionally prototype strerror.
21600 * gdbreplay.c (perror_with_name): Use strerror.
21601 * linux-low.c (linux_attach_lwp): Use strerror.
21602 * utils.c (perror_with_name): Use strerror.
21603 * config.in, configure: Regenerated.
21605 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21607 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21608 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21610 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21612 * Makefile.in (SFILES): Update.
21613 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21614 low-sun3.c: Remove files.
21616 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21618 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21619 (linux_detach_one_process, linux_detach): New functions.
21620 (linux_target_ops): Add linux_detach.
21621 * server.c (main): Handle 'D' packet.
21622 * target.h (struct target_ops): Add "detach" member.
21623 (detach_inferior): Define.
21625 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21627 From Kelley Cook <kelleycook@wideopenwest.com>:
21628 * configure.srv: Accept i[34567]86 variants.
21630 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21632 * linux-low.c (linux_wait_for_event): Correct comment typos.
21633 (linux_resume_one_process): Call check_removed_breakpoint.
21634 (linux_send_signal): New function.
21635 (linux_target_ops): Add linux_send_signal.
21636 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21638 * target.h (struct target_ops): Add send_signal.
21640 2003-05-29 Jim Blandy <jimb@redhat.com>
21642 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21643 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21644 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21645 away part of the register's value.
21647 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21649 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21650 (linux_wait_for_event, linux_init_signals): Likewise.
21652 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21654 * configure.in: Check for stdlib.h.
21655 * configure: Regenerated.
21656 * config.in: Regenerated.
21658 2003-01-04 Andreas Schwab <schwab@suse.de>
21660 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21662 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21664 * Makefile.in: Remove obsolete code.
21666 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21668 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21669 defined(PT_FPR0_HI).
21671 2002-11-17 Stuart Hughes <seh@zee2.com>
21673 * linux-arm-low.c (arm_num_regs): Increase.
21674 (arm_regmap): Include status register.
21676 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21678 * linux-low.c (register_addr): Remove incorrect -1 check.
21680 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21682 * linux-low.c (linux_create_inferior): Call setpgid. Return
21684 (unstopped_p, linux_signal_pid): Remove.
21685 (linux_target_ops): Remove linux_signal_pid.
21686 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21687 global instead of target method.
21688 * target.h (struct target_ops): Remove signal_pid. Update comment
21689 for create_inferior.
21690 * server.c (signal_pid): New variable.
21691 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21692 gdbserver. Set the child to be the foreground process group.
21693 (attach_inferior): Set signal_pid.
21695 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21697 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21699 2002-08-20 Jim Blandy <jimb@redhat.com>
21701 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21704 2002-08-01 Andrew Cagney <cagney@redhat.com>
21706 * Makefile.in: Make chill references obsolete.
21708 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21710 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21711 * configure: Regenerate.
21712 * config.in: Regenerate.
21714 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21716 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21717 (perror_with_name, remote_close, remote_open, expect, play): Static.
21719 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21721 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21722 byte offsets instead of an array of indexes.
21723 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21725 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21727 * regcache.c: Add comment.
21729 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21731 * thread-db.c: New file.
21732 * proc-service.c: New file.
21733 * acinclude.m4: New file.
21734 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21735 proc-service.o, and thread-db.o.
21736 (linux-low.o): Add USE_THREAD_DB.
21737 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21738 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21739 * aclocal.m4: Regenerated.
21740 * config.in: Regenerated.
21741 * configure: Regenerated.
21742 * configure.in: Check for proc_service.h, sys/procfs.h,
21743 thread_db.h, and linux/elf.h headrs.
21744 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21745 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21746 Check for -lthread_db and thread support.
21747 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21748 PowerPC, and SuperH.
21749 * i387-fp.c: Constify arguments.
21750 * i387-fp.h: Likewise.
21751 * inferiors.c: (struct thread_info): Renamed from
21752 `struct inferior_info'. Remove PID member. Use generic inferior
21753 list header. All uses updated.
21754 (inferiors, signal_pid): Removed.
21755 (all_threads): New variable.
21756 (get_thread): Define.
21757 (add_inferior_to_list): New function.
21758 (for_each_inferior): New function.
21759 (change_inferior_id): New function.
21760 (add_inferior): Removed.
21761 (remove_inferior): New function.
21762 (add_thread): New function.
21763 (free_one_thread): New function.
21764 (remove_thread): New function.
21765 (clear_inferiors): Use for_each_inferior and free_one_thread.
21766 (find_inferior): New function.
21767 (find_inferior_id): New function.
21768 (inferior_target_data): Update argument type.
21769 (set_inferior_target_data): Likewise.
21770 (inferior_regcache_data): Likewise.
21771 (set_inferior_regcache_data): Likewise.
21772 * linux-low.c (linux_bp_reinsert): Remove.
21773 (all_processes, stopping_threads, using_thrads)
21774 (struct pending_signals, debug_threads, pid_of): New.
21775 (inferior_pid): Replace with macro.
21776 (struct inferior_linux_data): Remove.
21777 (get_stop_pc, add_process): New functions.
21778 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21779 Use add_process and add_thread.
21780 (linux_attach_lwp): New function, based on old linux_attach. Use
21781 add_process and add_thread. Set stop_expected for new threads.
21782 (linux_attach): New function.
21783 (linux_kill_one_process): New function.
21784 (linux_kill): Kill all LWPs.
21785 (linux_thread_alive): Use find_inferior_id.
21786 (check_removed_breakpoints, status_pending_p): New functions.
21787 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21788 Update. Use WNOHANG. Wait for cloned processes also. Update process
21789 struct for the found process.
21790 (linux_wait_for_event): New function.
21791 (linux_wait): Use it. Support LWPs.
21792 (send_sigstop, wait_for_sigstop, stop_all_processes)
21793 (linux_resume_one_process, linux_continue_one_process): New functions.
21794 (linux_resume): Support LWPs.
21795 (REGISTER_RAW_SIZE): Remove.
21796 (fetch_register): Use register_size instead. Call supply_register.
21797 (usr_store_inferior_registers): Likewise. Call collect_register.
21798 Fix recursive case.
21799 (regsets_fetch_inferior_registers): Improve error message.
21800 (regsets_store_inferior_registers): Add debugging.
21801 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21802 (unstopped_p, linux_signal_pid): New functions.
21803 (linux_target_ops): Add linux_signal_pid.
21804 (linux_init_signals): New function.
21805 (initialize_low): Call it. Initialize using_threads.
21806 * regcache.c (inferior_regcache_data): Add valid
21808 (get_regcache): Fetch registers lazily. Add fetch argument
21809 and update all callers.
21810 (regcache_invalidate_one, regcache_invalidate): New
21812 (new_register_cache): Renamed from create_register_cache.
21813 Return the new regcache.
21814 (free_register_cache): Change argument to a void *.
21815 (registers_to_string, registers_from_string): Call get_regcache
21816 with fetch flag set.
21817 (register_data): Make static. Pass fetch flag to get_regcache.
21818 (supply_register): Call get_regcache with fetch flag clear.
21819 (collect_register): Call get_regcache with fetch flag set.
21820 (collect_register_as_string): New function.
21821 * regcache.h: Update.
21822 * remote-utils.c (putpkt): Flush after debug output and use
21824 Handle input interrupts while waiting for an ACK.
21825 (input_interrupt): Use signal_pid method.
21826 (getpkt): Flush after debug output and use stderr.
21827 (outreg): Use collect_register_as_string.
21828 (new_thread_notify, dead_thread_notify): New functions.
21829 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21830 and general_thread.
21831 (look_up_one_symbol): Flush after debug output.
21832 * server.c (step_thread, server_waiting): New variables.
21833 (start_inferior): Don't use signal_pid. Update call to mywait.
21834 (attach_inferior): Update call to mywait.
21835 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21836 (main): Don't fetch/store registers explicitly. Use
21837 set_desired_inferior. Support proposed ``Hs'' packet. Update
21839 * server.h: Update.
21840 (struct inferior_list, struct_inferior_list_entry): New.
21841 * target.c (set_desired_inferior): New.
21842 (write_inferior_memory): Constify.
21843 (mywait): New function.
21844 * target.h: Update.
21845 (struct target_ops): New signal_pid method.
21846 (mywait): Removed macro, added prototype.
21848 * linux-low.h (regset_func): Removed.
21849 (regset_fill_func, regset_store_func): New.
21850 (enum regset_type): New.
21851 (struct regset_info): Add type field. Use new operation types.
21852 (struct linux_target_ops): stop_pc renamed to get_pc.
21853 Add decr_pc_after_break and breakpoint_at.
21854 (get_process, get_thread_proess, get_process_thread)
21855 (strut process_info, all_processes, linux_attach_lwp)
21856 (thread_db_init): New.
21858 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21859 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21860 (the_low_target): Add new members.
21861 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21862 (i386_store_fpxregset): Constify.
21863 (target_regsets): Add new kind identifier.
21864 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
21865 (i386_set_pc): Add debugging.
21866 (i386_breakpoint_at): New function.
21867 (the_low_target): Add new members.
21868 * linux-mips-low.c (mips_get_pc, mips_set_pc)
21869 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
21870 (mips_breakpoint_at): New.
21871 (the_low_target): Add new members.
21872 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
21873 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
21874 (the_low_target): Add new members.
21875 * linux-sh-low.c (sh_get_pc, sh_set_pc)
21876 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
21877 (the_low_target): Add new members.
21878 * linux-x86-64-low.c (target_regsets): Add new kind
21881 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
21883 From Martin Pool <mbp@samba.org>:
21884 * server.c (gdbserver_usage): New function.
21887 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
21889 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
21890 stop_at -> stop_pc.
21892 2002-05-04 Andrew Cagney <ac131313@redhat.com>
21894 * Makefile.in: Remove obsolete code.
21896 2002-04-24 Michal Ludvig <mludvig@suse.cz>
21898 * linux-low.c (regsets_fetch_inferior_registers),
21899 (regsets_store_inferior_registers): Removed cast to int from
21901 * regcache.h: Added declaration of struct inferior_info.
21903 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21905 * inferiors.c (struct inferior_info): Add regcache_data.
21906 (add_inferior): Call create_register_cache.
21907 (clear_inferiors): Call free_register_cache.
21908 (inferior_regcache_data, set_inferior_regcache_data): New functions.
21909 * regcache.c (struct inferior_regcache_data): New.
21910 (registers): Remove.
21911 (get_regcache): New function.
21912 (create_register_cache, free_register_cache): New functions.
21913 (set_register_cache): Don't initialize the register cache here.
21914 (registers_to_string, registers_from_string, register_data): Call
21916 * regcache.h: Add prototypes.
21917 * server.h: Likewise.
21919 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
21921 * mem-break.c: New file.
21922 * mem-break.h: New file.
21923 * Makefile.in: Add mem-break.o rule; update server.h
21925 * inferiors.c (struct inferior_info): Add target_data
21927 (clear_inferiors): Free target_data member if set.
21928 (inferior_target_data, set_inferior_target_data): New functions.
21929 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
21930 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
21931 * linux-low.c (linux_bp_reinsert): New variable.
21932 (struct inferior_linux_data): New.
21933 (linux_create_inferior): Use set_inferior_target_data.
21934 (linux_attach): Likewise. Call add_inferior.
21935 (linux_wait_for_one_inferior): New function.
21936 (linux_wait): Call it.
21937 (linux_write_memory): Add const.
21938 (initialize_low): Call set_breakpoint_data.
21939 * linux-low.h (struct linux_target_ops): Add breakpoint
21941 * server.c (attach_inferior): Remove extra add_inferior
21943 * server.h: Include mem-break.h. Update inferior.c
21945 * target.c (read_inferior_memory)
21946 (write_inferior_memory): New functions.
21947 * target.h (read_inferior_memory)
21948 (write_inferior_memory): Change macros to prototypes.
21949 (struct target_ops): Update comments. Add const to write_memory
21952 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
21954 * linux-low.c (usr_store_inferior_registers): Support
21955 registers which are allowed to fail to store.
21956 * linux-low.h (linux_target_ops): Likewise.
21957 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
21958 (ppc_cannot_store_register): FPSCR may not be storable.
21960 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21962 * server.h: Include <string.h> if HAVE_STRING_H.
21963 * ChangeLog: Correct paths in last ChangeLog entry.
21965 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
21967 * linux-low.h: Remove obsolete prototypes.
21968 (struct linux_target_ops): New.
21969 (extern the_low_target): New.
21970 * linux-low.c (num_regs, regmap): Remove declarations.
21971 (register_addr): Use the_low_target explicitly.
21972 (fetch_register): Likewise.
21973 (usr_fetch_inferior_registers): Likewise.
21974 (usr_store_inferior_registers): Likewise.
21975 * linux-arm-low.c (num_regs): Remove.
21976 (arm_num_regs): Define.
21977 (arm_regmap): Renamed from regmap, made static.
21978 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
21980 (arm_cannot_store_register): Renamed from cannot_store_register,
21982 (the_low_target): New.
21983 * linux-i386-low.c (num_regs): Remove.
21984 (i386_num_regs): Define.
21985 (i386_regmap): Renamed from regmap, made static.
21986 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
21988 (i386_cannot_store_register): Renamed from cannot_store_register,
21990 (the_low_target): New.
21991 * linux-ia64-low.c (num_regs): Remove.
21992 (ia64_num_regs): Define.
21993 (ia64_regmap): Renamed from regmap, made static.
21994 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
21996 (ia64_cannot_store_register): Renamed from cannot_store_register,
21998 (the_low_target): New.
21999 * linux-m68k-low.c (num_regs): Remove.
22000 (m68k_num_regs): Define.
22001 (m68k_regmap): Renamed from regmap, made static.
22002 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22004 (m68k_cannot_store_register): Renamed from cannot_store_register,
22006 (the_low_target): New.
22007 * linux-mips-low.c (num_regs): Remove.
22008 (mips_num_regs): Define.
22009 (mips_regmap): Renamed from regmap, made static.
22010 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22012 (mips_cannot_store_register): Renamed from cannot_store_register,
22014 (the_low_target): New.
22015 * linux-ppc-low.c (num_regs): Remove.
22016 (ppc_num_regs): Define.
22017 (ppc_regmap): Renamed from regmap, made static.
22018 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22020 (ppc_cannot_store_register): Renamed from cannot_store_register,
22022 (the_low_target): New.
22023 * linux-s390-low.c (num_regs): Remove.
22024 (s390_num_regs): Define.
22025 (s390_regmap): Renamed from regmap, made static.
22026 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22028 (s390_cannot_store_register): Renamed from cannot_store_register,
22030 (the_low_target): New.
22031 * linux-sh-low.c (num_regs): Remove.
22032 (sh_num_regs): Define.
22033 (sh_regmap): Renamed from regmap, made static.
22034 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22036 (sh_cannot_store_register): Renamed from cannot_store_register,
22038 (the_low_target): New.
22039 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22040 (the_low_target): New.
22042 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22044 * Makefile.in: Add stamp-h target.
22045 * configure.in: Create stamp-h.
22046 * configure: Regenerated.
22048 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22050 * inferiors.c: New file.
22051 * target.c: New file.
22052 * target.h: New file.
22053 * Makefile.in: Add target.o and inferiors.o. Update
22055 * linux-low.c (inferior_pid): New static variable,
22056 moved from server.c.
22057 (linux_create_inferior): Renamed from create_inferior.
22058 Call add_inferior. Return 0 on success instead of a PID.
22059 (linux_attach): Renamed from myattach.
22060 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22061 (linux_thread_alive): Renamed from mythread_alive.
22062 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22064 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22065 (regsets_store_inferior_registers): Correct error message.
22066 Add missing ``return 0''.
22067 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22068 (linux_store_registers): Renamed from store_inferior_registers.
22069 (linux_read_memory): Renamed from read_inferior_memory.
22070 (linux_write_memory): Renamed from write_inferior_memory.
22071 (linux_target_ops): New structure.
22072 (initialize_low): Call set_target_ops ().
22073 * remote-utils.c (unhexify): New function.
22074 (hexify): New function.
22075 (input_interrupt): Send signals to ``signal_pid''.
22076 * server.c (inferior_pid): Remove.
22077 (start_inferior): Update create_inferior call.
22078 (attach_inferior): Call add_inferior.
22079 (handle_query): New function.
22080 (main): Call handle_query for `q' packets.
22081 * server.h: Include "target.h". Remove obsolete prototypes.
22082 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22084 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22086 * Makefile.in: Add WARN_CFLAGS. Update configury
22088 * configure.in: Check for <string.h>
22089 * configure: Regenerate.
22090 * config.in: Regenerate.
22091 * gdbreplay.c: Include needed system headers.
22092 (remote_open): Remove strchr prototype.
22093 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22094 * regcache.c (supply_register): Change buf argument to const void *.
22095 (supply_register_by_name): Likewise.
22096 (collect_register): Change buf argument to void *.
22097 (collect_register_by_name): Likewise.
22098 * regcache.h: Add missing prototypes.
22099 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22100 * server.c (handle_query): New function.
22101 (attached): New static variable, moved out of main.
22102 (main): Quiet longjmp clobber warnings.
22103 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22104 * utils.c (error): Remove NORETURN.