1 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
3 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
6 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
8 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
9 * configure.srv: Remove mingw32ce cases.
10 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
11 * win32-low.h (to_back_slashes): Remove.
12 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
14 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
16 * Makefile.in (SFILES): linux-tile-low.cc.
17 * configure.srv: Remove tilegx case.
18 * linux-tile-low.cc: Remove.
20 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
22 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
23 * configure.srv: Remove m32r case.
24 * linux-m32r-low.cc: Remove.
26 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
28 * Makefile.in (SFILES): Remove linux-cris-low.c.
29 * configure.srv: Remove cris cases.
30 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
32 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
34 * Makefile.in (SFILES): Remove linux-bfin-low.c.
35 * configure.srv: Remove bfin case.
36 * linux-bfin-low.cc: Remove.
37 * linux-low.cc: Remove BFIN-conditional code.
39 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
41 * configure: Re-generate.
42 * configure.ac: Remove srv_qnx test.
43 * configure.srv: Remove nto case.
44 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
45 * remote-utils.c: Remove __QNX__-guarded code.
47 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
49 * configure: Re-generate.
50 * configure.ac: Remove srv_lynxos test.
51 * configure.srv: Remove lynxos cases.
52 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
55 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
57 * README: Fix a few outdated or incoherent things.
59 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
61 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
62 (win32_clear_inferiors): Use open_process_used.
63 (get_child_debug_event): Likewise.
65 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
68 * linux-low.cc (linux_process_target::create_inferior),
69 lynx-low.cc (lynx_process_target::create_inferior),
70 win32-low.cc (win32_process_target::create_inferior): Use
71 construct_inferior_arguments instead of stringify_argv
72 to get string representation which properly escapes
74 * server.cc (handle_v_run): Just pass empty program arg
75 as such, since any further processing is now handled via
76 construct_inferior_arguments.
78 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
80 * nto-low.cc (nto_process_target::create_inferior): Pass
81 argv to spawnp function as char **.
83 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
85 * server.cc (captured_main), (handle_v_run): No longer
86 insert extra NULL element to args vector.
88 2020-05-23 Pedro Alves <palves@redhat.com>
90 * gdb-safe-ctype.h: New.
92 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
94 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
95 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
96 (ia64_target::low_breakpoint_at): Ditto.
98 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
100 * win32-i386-low.cc (i386_supports_z_point_type): Handle
101 Z_PACKET_HW_BP z_type.
102 (i386_insert_point): Handle raw_bkpt_type type.
103 (i386_remove_point): Likewise.
105 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
107 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
109 * win32-arm-low.cc (arm_num_regs): New function.
110 (struct win32_target_ops): Use arm_num_regs.
111 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
113 (i386_get_thread_context): Likewise.
114 (i386_prepare_to_resume): Likewise.
115 (i386_thread_added): Likewise.
116 (i386_single_step): Likewise.
117 (i386_fetch_inferior_register): Likewise.
118 (i386_store_inferior_register): Likewise.
119 (i386_arch_setup): Likewise.
120 (i386_win32_num_regs): New function.
121 (struct win32_target_ops): Use i386_win32_num_regs.
122 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
124 (win32_require_context): Likewise.
125 (child_add_thread): Likewise.
126 (do_initial_child_stuff): Likewise.
127 (continue_one_thread): Likewise.
128 (win32_process_target::resume): Likewise.
129 (load_psapi): Likewise.
130 (win32_add_all_dlls): Likewise.
131 (maybe_adjust_pc): Likewise.
132 (win32_process_target::qxfer_siginfo): Likewise.
133 (initialize_low): Likewise.
134 * win32-low.h (struct win32_target_ops): Change num_regs to
137 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
139 * configure.ac: Remove check for fs_base/gs_base in
141 * configure: Re-generate.
142 * config.in: Re-generate.
143 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
144 x86_store_gregset): Adjust.
146 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
148 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
151 2020-04-16 Tom Tromey <tromey@adacore.com>
153 * win32-low.cc (windows_nat::handle_access_violation): New
156 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
158 * win32-low.cc (get_child_debug_event): Fix format string warning.
160 2020-04-13 Tom Tromey <tom@tromey.com>
162 * server.h (gdb_fildes_t): Remove typedef.
163 * remote-utils.c (remote_desc, list_desc): Now int.
164 (INVALID_DESCRIPTOR): Remove.
165 (gdb_connected, remote_close)
166 (check_remote_input_interrupt_request): Update.
167 * utils.h (pfildes): Don't declare.
168 * utils.c (pfildes): Remove.
170 2020-04-13 Tom Tromey <tom@tromey.com>
172 * server.h (handle_serial_event, handle_target_event): Update.
173 * server.c: Don't call initialize_event_loop.
174 (keep_processing_events): New global.
175 (handle_serial_event): Return void. Set keep_processing_events.
176 (handle_target_event): Return void.
177 (start_event_loop): Move from event-loop.c. Rewrite.
178 * remote-utils.c (handle_accept_event): Return void.
179 (reset_readchar): Use delete_timer.
180 (process_remaining): Return void.
181 (reschedule): Use create_timer.
182 * event-loop.h: Remove.
183 * event-loop.cc: Remove.
184 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
186 2020-04-13 Tom Tromey <tom@tromey.com>
188 * server.c (invoke_async_signal_handlers)
189 (check_async_event_handlers, flush_streams, gdb_select): New
192 2020-04-13 Tom Tromey <tom@tromey.com>
194 * configure: Rebuild.
195 * config.in: Rebuild.
197 2020-04-08 Tom Tromey <tromey@adacore.com>
200 * win32-low.c (child_continue): Call matching_pending_stop.
201 (get_child_debug_event): Call fetch_pending_stop. Push pending
204 2020-04-08 Tom Tromey <tromey@adacore.com>
206 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
207 (win32_process_target::supports_stopped_by_sw_breakpoint):
209 * win32-low.c (win32_supports_z_point_type): Always handle
211 (win32_insert_point): Call insert_memory_breakpoint when needed.
212 (win32_remove_point): Call remove_memory_breakpoint when needed.
213 (win32_process_target::stopped_by_sw_breakpoint)
214 (win32_process_target::supports_stopped_by_sw_breakpoint): New
216 (win32_target_ops): Update.
217 (maybe_adjust_pc): New function.
218 (win32_wait): Call maybe_adjust_pc.
220 2020-04-08 Tom Tromey <tromey@adacore.com>
222 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
224 * win32-i386-low.c (the_low_target): Update.
225 * win32-arm-low.c (the_low_target): Update.
227 2020-04-08 Tom Tromey <tromey@adacore.com>
229 * win32-low.h (win32_process_target::read_pc)
230 (win32_process_target::write_pc): Declare.
231 * win32-low.c (win32_process_target::read_pc)
232 (win32_process_target::write_pc): New methods.
233 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
235 (the_low_target): Update.
236 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
238 (the_low_target): Update.
240 2020-04-08 Tom Tromey <tromey@adacore.com>
242 * win32-low.c (win32_kill, get_child_debug_event): Use
243 wait_for_debug_event.
245 2020-04-08 Tom Tromey <tromey@adacore.com>
247 * win32-low.c (child_continue): Call continue_last_debug_event.
249 2020-04-08 Tom Tromey <tromey@adacore.com>
251 * win32-low.c (handle_exception): Remove.
252 (windows_nat::handle_ms_vc_exception): New function.
253 (get_child_debug_event): Add "continue_status" parameter.
255 (win32_wait): Update.
257 2020-04-08 Tom Tromey <tromey@adacore.com>
259 * win32-low.c (windows_nat::handle_load_dll): Rename from
260 handle_load_dll. No longer static.
261 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
264 2020-04-08 Tom Tromey <tromey@adacore.com>
266 * win32-low.c (handle_output_debug_string): Add parameter. Change
268 (win32_kill, get_child_debug_event): Update.
270 2020-04-08 Tom Tromey <tromey@adacore.com>
272 * win32-low.c (current_process_handle, current_process_id)
273 (main_thread_id, last_sig, current_event, siginfo_er): Move to
276 2020-04-08 Tom Tromey <tromey@adacore.com>
278 * win32-low.c (get_image_name): Remove.
279 (handle_load_dll): Update.
281 2020-04-08 Tom Tromey <tromey@adacore.com>
283 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
284 No longer static. Change parameters.
285 (child_add_thread, child_fetch_inferior_registers)
286 (child_store_inferior_registers, win32_resume)
287 (win32_get_tib_address): Update.
289 2020-04-08 Tom Tromey <tromey@adacore.com>
291 * win32-low.h (struct win32_target_ops): Use qualified names where
293 * win32-i386-low.c: Add "using namespace".
294 * win32-low.c: Add "using namespace".
295 * win32-arm-low.c: Add "using namespace".
297 2020-04-08 Tom Tromey <tromey@adacore.com>
299 * win32-low.c (delete_thread_info): Don't call CloseHandle.
301 2020-04-08 Tom Tromey <tromey@adacore.com>
303 * win32-low.c (win32_require_context, suspend_one_thread): Use
304 windows_thread_info::suspend.
305 (continue_one_thread): Use windows_thread_info::resume.
306 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
308 2020-04-08 Tom Tromey <tromey@adacore.com>
310 * win32-i386-low.c (update_debug_registers)
311 (i386_prepare_to_resume, i386_thread_added): Update.
313 2020-04-08 Tom Tromey <tromey@adacore.com>
315 * win32-low.c (child_add_thread): Use new.
316 (delete_thread_info): Use delete.
318 2020-04-08 Tom Tromey <tromey@adacore.com>
320 * win32-low.h (struct windows_thread_info): Remove.
322 2020-04-08 Tom Tromey <tromey@adacore.com>
324 * win32-low.h (struct windows_thread_info): Rename from
325 win32_thread_info. Remove typedef.
326 (struct win32_target_ops, win32_require_context): Update.
327 * win32-low.c (win32_get_thread_context)
328 (win32_set_thread_context, win32_prepare_to_resume)
329 (win32_require_context, thread_rec, child_add_thread)
330 (delete_thread_info, continue_one_thread)
331 (child_fetch_inferior_registers, child_store_inferior_registers)
332 (win32_resume, suspend_one_thread, win32_get_tib_address):
334 * win32-i386-low.c (update_debug_registers)
335 (win32_get_current_dr, i386_get_thread_context)
336 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
337 (i386_fetch_inferior_register, i386_store_inferior_register):
339 * win32-arm-low.c (arm_get_thread_context)
340 (arm_fetch_inferior_register, arm_store_inferior_register):
343 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
345 * linux-low.h (struct linux_target_ops): Remove.
346 (the_low_target): Remove.
347 * linux-x86-low.cc (the_low_target): Remove.
348 * linux-aarch64-low.cc (the_low_target): Ditto.
349 * linux-arm-low.cc (the_low_target): Ditto.
350 * linux-bfin-low.cc (the_low_target): Ditto.
351 * linux-cris-low.cc (the_low_target): Ditto.
352 * linux-crisv32-low.cc (the_low_target): Ditto.
353 * linux-ia64-low.cc (the_low_target): Ditto.
354 * linux-m32r-low.cc (the_low_target): Ditto.
355 * linux-m68k-low.cc (the_low_target): Ditto.
356 * linux-mips-low.cc (the_low_target): Ditto.
357 * linux-nios2-low.cc (the_low_target): Ditto.
358 * linux-ppc-low.cc (the_low_target): Ditto.
359 * linux-riscv-low.cc (the_low_target): Ditto.
360 * linux-s390-low.cc (the_low_target): Ditto.
361 * linux-sh-low.cc (the_low_target): Ditto.
362 * linux-sparc-low.cc (the_low_target): Ditto.
363 * linux-tic6x-low.cc (the_low_target): Ditto.
364 * linux-tile-low.cc (the_low_target): Ditto.
365 * linux-xtensa-low.cc (the_low_target): Ditto.
367 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
369 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
370 linux target define the op by overriding the declaration in
371 process_stratum_target.
373 * linux-low.h (struct linux_target_ops): Remove the op.
374 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
375 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
376 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
377 (x86_get_ipa_tdesc_idx): Turn into...
378 (x86_target::get_ipa_tdesc_idx): ...this.
379 (the_low_target): Remove the op field.
380 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
381 (ppc_get_ipa_tdesc_idx): Turn into...
382 (ppc_target::get_ipa_tdesc_idx): ...this.
383 (the_low_target): Remove the op field.
384 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
385 (s390_get_ipa_tdesc_idx): Turn into...
386 (s390_target::get_ipa_tdesc_idx): ...this.
387 (the_low_target): Remove the op field.
389 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
391 Turn the 'get_syscall_trapinfo' linux target op into a method
392 of process_stratum_target.
394 * linux-low.h (struct linux_target_ops): Remove the op.
395 (class linux_process_target) <get_syscall_trapinfo>
396 <gdb_catch_this_syscall>
397 <low_supports_catch_syscall>
398 <low_get_syscall_trapinfo>: Declare.
399 * linux-low.cc (get_syscall_trapinfo): Turn into...
400 (linux_process_target::get_syscall_trapinfo): ...this.
401 (linux_process_target::low_get_syscall_trapinfo): Define.
402 (gdb_catch_this_syscall_p): Turn into...
403 (linux_process_target::gdb_catch_this_syscall): ...this.
404 (linux_process_target::low_supports_catch_syscall): Define.
406 Update the callers below.
408 (linux_process_target::wait_1)
409 (linux_process_target::supports_catch_syscall)
411 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
412 <low_get_syscall_trapinfo>: Declare.
413 (x86_target::low_supports_catch_syscall): Define.
414 (x86_get_syscall_trapinfo): Turn into...
415 (x86_target::low_get_syscall_trapinfo): ...this.
416 (the_low_target): Remove the op field.
417 * linux-aarch64-low.cc (class aarch64_target)
418 <low_supports_catch_syscall>
419 <low_get_syscall_trapinfo>: Declare.
420 (aarch64_target::low_supports_catch_syscall): Define.
421 (aarch64_get_syscall_trapinfo): Turn into...
422 (aarch64_target::low_get_syscall_trapinfo): ...this.
423 (the_low_target): Remove the op field.
424 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
425 <low_get_syscall_trapinfo>: Declare.
426 (arm_target::low_supports_catch_syscall): Define.
427 (arm_get_syscall_trapinfo): Turn into...
428 (arm_target::low_get_syscall_trapinfo): ...this.
429 (the_low_target): Remove the op field.
430 * linux-ppc-low.cc (the_low_target): Remove the op field.
431 * linux-s390-low.cc (the_low_target): Remove the op field.
433 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
435 Remove the 'supports_hardware_single_step' linux target op and
436 override the process_stratum_target's op definition in
437 linux_process_target to return true.
439 * linux-low.h (struct linux_target_ops): Remove the op.
440 (class linux_process_target) <finish_step_over>
441 <maybe_hw_step>: Declare.
442 * linux-low.cc (can_hardware_single_step): Remove.
443 (maybe_hw_step): Turn into...
444 (linux_process_target::maybe_hw_step): ...this.
445 (finish_step_over): Turn into...
446 (linux_process_target::finish_step_over): ...this.
447 (linux_process_target::supports_hardware_single_step): Update
450 Update the callers below.
452 (linux_process_target::single_step)
453 (linux_process_target::resume_one_lwp_throw)
455 * linux-arm-low.cc (class arm_target)
456 <supports_hardware_single_step>: Declare.
457 (arm_supports_hardware_single_step): Turn into...
458 (arm_target::supports_hardware_single_step): ...this.
459 (the_low_target): Remove the op field.
460 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
461 (the_low_target): Remove the op field.
462 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
464 (the_low_target): Remove the op field.
465 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
466 (the_low_target): Remove the op field.
467 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
468 (the_low_target): Remove the op field.
469 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
470 (the_low_target): Remove the op field.
471 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
472 (the_low_target): Remove the op field.
473 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
474 (the_low_target): Remove the op field.
475 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
476 (the_low_target): Remove the op field.
477 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
478 (the_low_target): Remove the op field.
479 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
480 (the_low_target): Remove the op field.
481 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
482 (the_low_target): Remove the op field.
483 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
485 (the_low_target): Remove the op field.
487 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
489 Turn the 'supports_range_stepping' linux target op into a method
490 of linux_process_target.
492 * linux-low.h (struct linux_target_ops): Remove the op.
493 (class linux_process_target) <low_supports_range_stepping>: Declare.
494 * linux-low.cc (linux_process_target::low_supports_range_stepping):
496 (linux_process_target::supports_range_stepping): Update the call
498 * linux-x86-low.cc (class x86_target)
499 <low_supports_range_stepping>: Declare.
500 (x86_supports_range_stepping): Turn into...
501 (x86_target::low_supports_range_stepping): ...this.
502 (the_low_target): Remove the op field.
503 * linux-aarch64-low.cc (class aarch64_target)
504 <low_supports_range_stepping>: Declare.
505 (aarch64_supports_range_stepping): Turn into...
506 (aarch64_target::low_supports_range_stepping): ...this.
507 (the_low_target): Remove the op field.
508 * linux-arm-low.cc (the_low_target): Remove the op field.
509 * linux-bfin-low.cc (the_low_target): Ditto.
510 * linux-crisv32-low.cc (the_low_target): Ditto.
511 * linux-m32r-low.cc (the_low_target): Ditto.
512 * linux-m68k-low.cc (the_low_target): Ditto.
513 * linux-ppc-low.cc (the_low_target): Ditto.
514 * linux-s390-low.cc (the_low_target): Ditto.
515 * linux-sh-low.cc (the_low_target): Ditto.
516 * linux-tic6x-low.cc (the_low_target): Ditto.
517 * linux-tile-low.cc (the_low_target): Ditto.
518 * linux-xtensa-low.cc (the_low_target): Ditto.
520 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
522 Remove the 'emit_ops' linux target ops and let the concrete
523 linux target define the op by overriding the declaration of
524 process_stratum_target.
526 * linux-low.h (struct linux_target_ops): Remove the op.
527 (class linux_process_target) <emit_ops>: Remove.
528 * linux-low.cc (linux_process_target::emit_ops): Remove.
529 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
530 (x86_emit_ops): Turn into...
531 (x86_target::emit_ops): ...this.
532 (the_low_target): Remove the op field.
533 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
534 (aarch64_emit_ops): Turn into...
535 (aarch64_target::emit_ops): ...this.
536 (the_low_target): Remove the op field.
537 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
538 (ppc_emit_ops): Turn into...
539 (ppc_target::emit_ops): ...this.
540 (the_low_target): Remove the op field.
541 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
542 (s390_emit_ops): Turn into...
543 (s390_target::emit_ops): ...this.
544 (the_low_target): Remove the op field.
545 * linux-arm-low.cc (the_low_target): Remove the op field.
546 * linux-bfin-low.cc (the_low_target): Ditto.
547 * linux-crisv32-low.cc (the_low_target): Ditto.
548 * linux-m32r-low.cc (the_low_target): Ditto.
549 * linux-m68k-low.cc (the_low_target): Ditto.
550 * linux-sh-low.cc (the_low_target): Ditto.
551 * linux-tic6x-low.cc (the_low_target): Ditto.
552 * linux-tile-low.cc (the_low_target): Ditto.
553 * linux-xtensa-low.cc (the_low_target): Ditto.
555 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
557 Remove the 'install_fast_tracepoint_jump_pad' and
558 'get_min_fast_tracepoint_insn_len' linux target ops to let the
559 concrete linux target define the ops by overriding the declarations
560 of process_stratum_target.
562 * linux-low.h (struct linux_target_ops): Remove the ops.
563 (class linux_process_target) <supports_fast_tracepoints>
564 <install_fast_tracepoint_jump_pad>
565 <get_min_fast_tracepoint_insn_len>: Remove.
566 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
567 (linux_process_target::install_fast_tracepoint_jump_pad)
568 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
569 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
570 <install_fast_tracepoint_jump_pad>
571 <get_min_fast_tracepoint_insn_len>: Declare.
572 (x86_target::supports_fast_tracepoints): Define.
573 (x86_install_fast_tracepoint_jump_pad): Turn into...
574 (x86_target::install_fast_tracepoint_jump_pad): ...this.
575 (x86_get_min_fast_tracepoint_insn_len): Turn into...
576 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
577 (the_low_target): Remove the op fields.
578 * linux-aarch64-low.cc (class aarch64_target)
579 <supports_fast_tracepoints>
580 <install_fast_tracepoint_jump_pad>
581 <get_min_fast_tracepoint_insn_len>: Declare.
582 (aarch64_target::supports_fast_tracepoints): Define.
583 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
584 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
585 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
586 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
587 (the_low_target): Remove the op fields.
588 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
589 <install_fast_tracepoint_jump_pad>
590 <get_min_fast_tracepoint_insn_len>: Declare.
591 (ppc_target::supports_fast_tracepoints): Define.
592 (ppc_install_fast_tracepoint_jump_pad): Turn into...
593 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
594 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
595 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
596 (the_low_target): Remove the op fields.
597 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
598 <install_fast_tracepoint_jump_pad>
599 <get_min_fast_tracepoint_insn_len>: Declare.
600 (s390_target::supports_fast_tracepoints): Define.
601 (s390_install_fast_tracepoint_jump_pad): Turn into...
602 (s390_target::install_fast_tracepoint_jump_pad): ...this.
603 (s390_get_min_fast_tracepoint_insn_len): Turn into...
604 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
605 (the_low_target): Remove the op fields.
606 * linux-arm-low.cc (the_low_target): Remove the op fields.
607 * linux-bfin-low.cc (the_low_target): Ditto.
608 * linux-crisv32-low.cc (the_low_target): Ditto.
609 * linux-m32r-low.cc (the_low_target): Ditto.
610 * linux-m68k-low.cc (the_low_target): Ditto.
611 * linux-sh-low.cc (the_low_target): Ditto.
612 * linux-tic6x-low.cc (the_low_target): Ditto.
613 * linux-tile-low.cc (the_low_target): Ditto.
614 * linux-xtensa-low.cc (the_low_target): Ditto.
616 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
618 Turn the 'get_thread_area' linux target op into a method of
619 process_stratum_target.
621 * linux-low.h (struct linux_target_ops): Remove the op.
622 (class linux_process_target) <stuck_in_jump_pad>
623 <linux_fast_tracepoint_collecting>
624 <low_get_thread_area>: Declare.
625 * linux-low.cc (supports_fast_tracepoints): Remove.
626 (linux_fast_tracepoint_collecting): Turn into...
627 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
628 (linux_process_target::low_get_thread_area): Define.
629 (stuck_in_jump_pad_callback): Turn into...
630 (linux_process_target::stuck_in_jump_pad): ...this.
632 Update the caller below.
634 (linux_process_target::stabilize_threads)
636 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
638 (x86_get_thread_area): Turn into...
639 (x86_target::low_get_thread_area): ...this.
640 (the_low_target): Remove the op field.
641 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
643 (aarch64_get_thread_area): Turn into...
644 (aarch64_target::low_get_thread_area): ...this.
645 (the_low_target): Remove the op field.
646 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
648 (ppc_get_thread_area): Turn into...
649 (ppc_target::low_get_thread_area): ...this.
650 (the_low_target): Remove the op field.
651 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
653 (s390_get_thread_area): Turn into...
654 (s390_target::low_get_thread_area): ...this.
655 (the_low_target): Remove the op field.
656 * linux-arm-low.cc (the_low_target): Remove the op field.
657 * linux-bfin-low.cc (the_low_target): Ditto.
658 * linux-crisv32-low.cc (the_low_target): Ditto.
659 * linux-m32r-low.cc (the_low_target): Ditto.
660 * linux-m68k-low.cc (the_low_target): Ditto.
661 * linux-sh-low.cc (the_low_target): Ditto.
662 * linux-tic6x-low.cc (the_low_target): Ditto.
663 * linux-tile-low.cc (the_low_target): Ditto.
664 * linux-xtensa-low.cc (the_low_target): Ditto.
666 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
668 Remote the 'supports_tracepoints' linux target op and let the
669 concrete linux target define it by overriding the op declared in
670 process_stratum_target.
672 * linux-low.h (struct linux_target_ops): Remove the op.
673 (class linux_process_target) <supports_tracepoints>: Remove.
674 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
675 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
677 (x86_supports_tracepoints): Turn into...
678 (x86_target::supports_tracepoints): ...this.
679 (the_low_target): Remove the op field.
680 * linux-aarch64-low.cc (class aarch64_target)
681 <supports_tracepoints>: Declare.
682 (aarch64_supports_tracepoints): Turn into...
683 (aarch64_target::supports_tracepoints): ...this.
684 (the_low_target): Remove the op field.
685 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
687 (ppc_supports_tracepoints): Turn into...
688 (ppc_target::supports_tracepoints): ...this.
689 (the_low_target): Remove the op field.
690 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
692 (s390_supports_tracepoints): Turn into...
693 (s390_target::supports_tracepoints): ...this.
694 (the_low_target): Remove the op field.
695 * linux-arm-low.cc (the_low_target): Remove the op field.
696 * linux-bfin-low.cc (the_low_target): Ditto.
697 * linux-crisv32-low.cc (the_low_target): Ditto.
698 * linux-m32r-low.cc (the_low_target): Ditto.
699 * linux-m68k-low.cc (the_low_target): Ditto.
700 * linux-sh-low.cc (the_low_target): Ditto.
701 * linux-tic6x-low.cc (the_low_target): Ditto.
702 * linux-tile-low.cc (the_low_target): Ditto.
703 * linux-xtensa-low.cc (the_low_target): Ditto.
705 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
707 Remove the 'process_qsupported' linux target op and let a concrete
708 linux target define the op by overriding the op declaration in
709 process_stratum_target.
711 * linux-low.h (struct linux_target_ops): Remove the op.
712 (class linux_process_target) <process_qsupported>: Remove.
713 * linux-low.cc (linux_process_target::process_qsupported): Remove.
714 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
715 (x86_linux_process_qsupported): Turn into...
716 (x86_target::process_qsupported): ...this.
717 (the_low_target): Remove the op field.
718 * linux-aarch64-low.cc (the_low_target): Remove the op
720 * linux-arm-low.cc (the_low_target): Ditto.
721 * linux-bfin-low.cc (the_low_target): Ditto.
722 * linux-crisv32-low.cc (the_low_target): Ditto.
723 * linux-m32r-low.cc (the_low_target): Ditto.
724 * linux-m68k-low.cc (the_low_target): Ditto.
725 * linux-ppc-low.cc (the_low_target): Ditto.
726 * linux-s390-low.cc (the_low_target): Ditto.
727 * linux-sh-low.cc (the_low_target): Ditto.
728 * linux-tic6x-low.cc (the_low_target): Ditto.
729 * linux-tile-low.cc (the_low_target): Ditto.
730 * linux-xtensa-low.cc (the_low_target): Ditto.
732 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
734 Turn the 'prepare_to_resume' linux target op into a method of
735 linux_process_target.
737 * linux-low.h (struct linux_target_ops): Remove the op.
738 (class linux_process_target) <low_prepare_to_resume>: Declare.
739 * linux-low.cc (linux_process_target::low_prepare_to_resume):
742 Update the callers below:
744 (linux_process_target::resume_one_lwp_throw)
745 (linux_process_target::low_prepare_to_resume)
747 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
749 (x86_target::low_prepare_to_resume): Define.
750 (the_low_target): Remove the op field.
751 * linux-aarch64-low.cc (class aarch64_target)
752 <low_prepare_to_resume>: Declare.
753 (aarch64_target::low_prepare_to_resume): Define.
754 (the_low_target): Remove the op field.
755 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
757 (arm_prepare_to_resume): Turn into...
758 (arm_target::low_prepare_to_resume): ...this.
759 (the_low_target): Remove the op field.
760 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
762 (mips_linux_prepare_to_resume): Turn into...
763 (mips_target::low_prepare_to_resume): ...this.
764 (the_low_target): Remove the op field.
765 * linux-bfin-low.cc (the_low_target): Remove the op field.
766 * linux-crisv32-low.cc (the_low_target): Ditto.
767 * linux-m32r-low.cc (the_low_target): Ditto.
768 * linux-m68k-low.cc (the_low_target): Ditto.
769 * linux-ppc-low.cc (the_low_target): Ditto.
770 * linux-s390-low.cc (the_low_target): Ditto.
771 * linux-sh-low.cc (the_low_target): Ditto.
772 * linux-tic6x-low.cc (the_low_target): Ditto.
773 * linux-tile-low.cc (the_low_target): Ditto.
774 * linux-xtensa-low.cc (the_low_target): Ditto.
776 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
778 Turn the 'new_process', 'delete_process', 'new_thread',
779 'delete_thread', and 'new_fork' linux target ops into methods
780 of linux_process_target.
782 * linux-low.h (struct linux_target_ops): Remove the ops.
783 (class linux_process_target) <add_linux_process>
788 <check_zombie_leaders>
794 <low_new_fork>: Declare.
795 * linux-low.cc (delete_lwp): Turn into...
796 (linux_process_target::delete_lwp): ...this.
797 (linux_process_target::low_delete_thread): Define.
798 (linux_add_process): Turn into...
799 (linux_process_target::add_linux_process): ...this.
800 (linux_process_target::low_new_process): Define.
801 (linux_process_target::low_delete_process): Define.
802 (linux_process_target::low_new_fork): Define.
803 (add_lwp): Turn into...
804 (linux_process_target::add_lwp): ...this.
805 (linux_process_target::low_new_thread): Define.
806 (linux_attach_lwp): Turn into...
807 (linux_process_target::attach_lwp): ...this.
808 (linux_detach_one_lwp): Turn into...
809 (linux_process_target::detach_one_lwp): ...this.
810 (linux_detach_lwp_callback): Remove and inline...
811 (linux_process_target::detach): ...here.
812 (check_zombie_leaders): Turn into...
813 (linux_process_target::check_zombie_leaders): ...this.
814 (filter_exit_event): Turn into...
815 (linux_process_target::filter_exit_event): ...this.
817 Update the callers below.
819 (linux_process_target::handle_extended_wait)
820 (linux_process_target::create_inferior)
821 (attach_proc_task_lwp_callback)
822 (linux_process_target::attach)
823 (linux_process_target::detach)
824 (linux_process_target::mourn)
825 * thread-db.cc (attach_thread)
827 * linux-x86-low.cc (class x86_target) <low_new_process>
831 <low_new_fork>: Declare.
832 (x86_linux_new_process): Turn into...
833 (x86_target::low_new_process): ...this.
834 (x86_linux_delete_process): Turn into...
835 (x86_target::low_delete_process): ...this.
836 (x86_target::low_new_thread): Define.
837 (x86_target::low_delete_thread): Define.
838 (x86_linux_new_fork): Turn into...
839 (x86_target::low_new_fork): ...this.
840 (the_low_target): Remove the op fields.
841 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
845 <low_new_fork>: Declare.
846 (aarch64_linux_new_process): Turn into...
847 (aarch64_target::low_new_process): ...this.
848 (aarch64_linux_delete_process): Turn into...
849 (aarch64_target::low_delete_process): ...this.
850 (aarch64_target::low_new_thread): Define.
851 (aarch64_target::low_delete_thread): Define.
852 (aarch64_linux_new_fork): Turn into...
853 (aarch64_target::low_new_fork): ...this.
854 (the_low_target): Remove the op fields.
855 * linux-arm-low.cc (class arm_target) <low_new_process>
859 <low_new_fork>: Declare.
860 (arm_new_process): Turn into...
861 (arm_target::low_new_process): ...this.
862 (arm_delete_process): Turn into...
863 (arm_target::low_delete_process): ...this.
864 (arm_new_thread): Turn into...
865 (arm_target::low_new_thread): ...this.
866 (arm_delete_thread): Turn into...
867 (arm_target::low_delete_thread): ...this.
868 (arm_new_fork): Turn into...
869 (arm_target::low_new_fork): ...this.
870 (the_low_target): Remove the op fields.
871 * linux-mips-low.cc (class mips_target) <low_new_process>
875 <low_new_fork>: Declare.
876 (mips_linux_new_process): Turn into...
877 (mips_target::low_new_process): ...this.
878 (mips_linux_delete_process): Turn into...
879 (mips_target::low_delete_process): ...this.
880 (mips_linux_new_thread): Turn into...
881 (mips_target::low_new_thread): ...this.
882 (mips_linux_delete_thread): Turn into...
883 (mips_target::low_delete_thread): ...this.
884 (mips_linux_new_fork): Turn into...
885 (mips_target::low_new_fork): ...this.
886 (the_low_target): Remove the op fields.
887 * linux-bfin-low.cc (the_low_target): Remove the op fields.
888 * linux-crisv32-low.cc (the_low_target): Ditto.
889 * linux-m32r-low.cc (the_low_target): Ditto.
890 * linux-m68k-low.cc (the_low_target): Ditto.
891 * linux-ppc-low.cc (the_low_target): Ditto.
892 * linux-s390-low.cc (the_low_target): Ditto.
893 * linux-sh-low.cc (the_low_target): Ditto.
894 * linux-tic6x-low.cc (the_low_target): Ditto.
895 * linux-tile-low.cc (the_low_target): Ditto.
896 * linux-xtensa-low.cc (the_low_target): Ditto.
898 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
900 Turn the 'siginfo_fixup' linux target op into a method of
901 linux_process_target.
903 * linux-low.h (struct linux_target_ops): Remove the op.
904 (class linux_process_target) <siginfo_fixup>
905 <low_siginfo_fixup>: Declare.
906 * linux-low.cc (siginfo_fixup): Turn into...
907 (linux_process_target::siginfo_fixup): ...this.
908 (linux_process_target::low_siginfo_fixup): Define.
909 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
910 (x86_siginfo_fixup): Turn into...
911 (x86_target::low_siginfo_fixup): ...this.
912 (the_low_target): Remove the op field.
913 * linux-aarch64-low.cc (class aarch64_target):
914 <low_siginfo_fixup>: Declare.
915 (aarch64_linux_siginfo_fixup): Turn into...
916 (aarch64_target::low_siginfo_fixup): ...this.
917 (the_low_target): Remove the op field.
918 * linux-arm-low.cc (the_low_target): Remove the op field.
919 * linux-bfin-low.cc (the_low_target): Ditto.
920 * linux-crisv32-low.cc (the_low_target): Ditto.
921 * linux-m32r-low.cc (the_low_target): Ditto.
922 * linux-m68k-low.cc (the_low_target): Ditto.
923 * linux-mips-low.cc (the_low_target): Ditto.
924 * linux-ppc-low.cc (the_low_target): Ditto.
925 * linux-s390-low.cc (the_low_target): Ditto.
926 * linux-sh-low.cc (the_low_target): Ditto.
927 * linux-tic6x-low.cc (the_low_target): Ditto.
928 * linux-tile-low.cc (the_low_target): Ditto.
929 * linux-xtensa-low.cc (the_low_target): Ditto.
931 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
933 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
934 linux target ops into methods of linux_process_target.
936 * linux-low.h (struct linux_target_ops): Remove the ops.
937 (class linux_process_target) <low_collect_ptrace_register>
938 <low_store_ptrace_register>: Declare.
939 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
940 (linux_process_target::low_supply_ptrace_register): Define.
942 Update the callers below.
944 (linux_process_target::fetch_register)
945 (linux_process_target::store_register)
947 * linux-x86-low.cc (the_low_target): Remove the op fields.
948 * linux-aarch64-low.cc (the_low_target): Ditto.
949 * linux-arm-low.cc (the_low_target): Ditto.
950 * linux-bfin-low.cc (the_low_target): Ditto.
951 * linux-crisv32-low.cc (the_low_target): Ditto.
952 * linux-m32r-low.cc (the_low_target): Ditto.
953 * linux-m68k-low.cc (the_low_target): Ditto.
954 * linux-sh-low.cc (the_low_target): Ditto.
955 * linux-sparc-low.cc (the_low_target): Ditto.
956 * linux-tic6x-low.cc (the_low_target): Ditto.
957 * linux-tile-low.cc (the_low_target): Ditto.
958 * linux-xtensa-low.cc (the_low_target): Ditto.
959 * linux-mips-low.cc (class mips_target)
960 <low_collect_ptrace_register>
961 <low_supply_ptrace_register>: Declare.
962 (mips_collect_ptrace_register): Turn into ...
963 (mips_target::low_collect_ptrace_register): ...this.
964 (mips_supply_ptrace_register): Turn into...
965 (mips_target::low_supply_ptrace_register): ...this.
966 (the_low_target): Remove the op fields.
967 * linux-ppc-low.cc (class ppc_target)
968 <low_collect_ptrace_register>
969 <low_supply_ptrace_register>: Declare.
970 (ppc_collect_ptrace_register): Turn into ...
971 (ppc_target::low_collect_ptrace_register): ...this.
972 (ppc_supply_ptrace_register): Turn into ...
973 (ppc_target::low_supply_ptrace_register): ...this.
974 (ppc_fill_gregset): Update for the calls to
975 low_collect_ptrace_register.
976 (the_low_target): Remove the op fields.
977 * linux-s390-low.cc (class s390_target)
978 <low_collect_ptrace_register>
979 <low_supply_ptrace_register>: Declare.
980 (s390_collect_ptrace_register): Turn into ...
981 (s390_target::low_collect_ptrace_register): ...this.
982 (s390_supply_ptrace_register): Turn into ...
983 (s390_target::low_supply_ptrace_register): ...this.
984 (s390_fill_gregset): Update for the calls to
985 low_collect_ptrace_register.
986 (the_low_target): Remove the op fields.
988 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
990 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
991 target ops into methods of linux_process_target.
993 * linux-low.h (struct linux_target_ops): Remove the ops.
994 (class linux_process_target) <check_stopped_by_watchpoint>
995 <low_stopped_by_watchpoint>
996 <low_stopped_data_address>: Declare.
997 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
998 (linux_process_target::check_stopped_by_watchpoint): ...this.
999 (linux_process_target::low_stopped_by_watchpoint): Define.
1000 (linux_process_target::low_stopped_data_address): Define.
1001 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1002 <low_stopped_data_address>: Declare.
1003 (x86_stopped_by_watchpoint): Turn into...
1004 (x86_target::low_stopped_by_watchpoint): ...this.
1005 (x86_stopped_data_address): Turn into...
1006 (x86_target::low_stopped_data_address): ...this.
1007 (the_low_target): Remove the op fields.
1008 * linux-aarch64-low.cc (class aarch64_target)
1009 <low_stopped_by_watchpoint>
1010 <low_stopped_data_address>: Declare.
1011 (aarch64_stopped_by_watchpoint): Turn into...
1012 (aarch64_target::low_stopped_by_watchpoint): ...this.
1013 (aarch64_stopped_data_address): Turn into...
1014 (aarch64_target::low_stopped_data_address): ...this.
1015 (the_low_target): Remove the op fields.
1016 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1017 <low_stopped_data_address>: Declare.
1018 (arm_stopped_by_watchpoint): Turn into...
1019 (arm_target::low_stopped_by_watchpoint): ...this.
1020 (arm_stopped_data_address): Turn into...
1021 (arm_target::low_stopped_data_address): ...this.
1022 (the_low_target): Remove the op fields.
1023 * linux-crisv32-low.cc (class crisv32_target)
1024 <low_stopped_by_watchpoint>
1025 <low_stopped_data_address>: Declare.
1026 (cris_stopped_by_watchpoint): Turn into...
1027 (crisv32_target::low_stopped_by_watchpoint): ...this.
1028 (cris_stopped_data_address): Turn into...
1029 (crisv32_target::low_stopped_data_address): ...this.
1030 (the_low_target): Remove the op fields.
1031 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1032 <low_stopped_data_address>: Declare.
1033 (mips_stopped_by_watchpoint): Turn into...
1034 (mips_target::low_stopped_by_watchpoint): ...this.
1035 (mips_stopped_data_address): Turn into...
1036 (mips_target::low_stopped_data_address): ...this.
1037 (the_low_target): Remove the op fields.
1038 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1039 * linux-m32r-low.cc (the_low_target): Ditto.
1040 * linux-m68k-low.cc (the_low_target): Ditto.
1041 * linux-ppc-low.cc (the_low_target): Ditto.
1042 * linux-s390-low.cc (the_low_target): Ditto.
1043 * linux-sh-low.cc (the_low_target): Ditto.
1044 * linux-sparc-low.cc (the_low_target): Ditto.
1045 * linux-tic6x-low.cc (the_low_target): Ditto.
1046 * linux-tile-low.cc (the_low_target): Ditto.
1047 * linux-xtensa-low.cc (the_low_target): Ditto.
1049 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1051 Turn the 'insert_point' and 'remove_point' linux target ops into
1052 methods of linux_process_target.
1054 * linux-low.h (struct linux_target_ops): Remove the ops.
1055 (class linux_process_target) <low_insert_point>
1056 <low_remove_point>: Declare.
1057 * linux-low.cc (linux_process_target::low_insert_point)
1058 (linux_process_target::low_remove_point): Define.
1059 (linux_process_target::insert_point)
1060 (linux_process_target::remove_point): Update for calls to
1061 low_insert_point and low_remove_point.
1062 * linux-x86-low.cc (class x86_target) <low_insert_point>
1063 <low_remove_point>: Declare.
1064 (x86_insert_point): Turn into...
1065 (x86_target::low_insert_point): ...this.
1066 (x86_remove_point): Turn into...
1067 (x86_target::low_remove_point): ...this.
1068 (the_low_target): Remove the op fields.
1069 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1070 <low_remove_point>: Declare.
1071 (aarch64_insert_point): Turn into...
1072 (aarch64_target::low_insert_point): ...this.
1073 (aarch64_remove_point): Turn into...
1074 (aarch64_target::low_remove_point): ...this.
1075 (the_low_target): Remove the op fields.
1076 * linux-arm-low.cc (class arm_target) <low_insert_point>
1077 <low_remove_point>: Declare.
1078 (arm_insert_point): Turn into...
1079 (arm_target::low_insert_point): ...this.
1080 (arm_remove_point): Turn into...
1081 (arm_target::low_remove_point): ...this.
1082 (the_low_target): Remove the op fields.
1083 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1084 <low_remove_point>: Declare.
1085 (crisv32_insert_point): Turn into...
1086 (crisv32_target::low_insert_point): ...this.
1087 (crisv32_remove_point): Turn into...
1088 (crisv32_target::low_remove_point): ...this.
1089 (the_low_target): Remove the op fields.
1090 * linux-mips-low.cc (class mips_target) <low_insert_point>
1091 <low_remove_point>: Declare.
1092 (mips_insert_point): Turn into...
1093 (mips_target::low_insert_point): ...this.
1094 (mips_remove_point): Turn into...
1095 (mips_target::low_remove_point): ...this.
1096 (the_low_target): Remove the op fields.
1097 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1098 <low_remove_point>: Declare.
1099 (ppc_insert_point): Turn into...
1100 (ppc_target::low_insert_point): ...this.
1101 (ppc_remove_point): Turn into...
1102 (ppc_target::low_remove_point): ...this.
1103 (the_low_target): Remove the op fields.
1104 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1105 * linux-m32r-low.cc (the_low_target): Ditto.
1106 * linux-m68k-low.cc (the_low_target): Ditto.
1107 * linux-s390-low.cc (the_low_target): Ditto.
1108 * linux-sh-low.cc (the_low_target): Ditto.
1109 * linux-sparc-low.cc (the_low_target): Ditto.
1110 * linux-tic6x-low.cc (the_low_target): Ditto.
1111 * linux-tile-low.cc (the_low_target): Ditto.
1112 * linux-xtensa-low.cc (the_low_target): Ditto.
1114 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1116 Remove the 'supports_z_point_type' linux target op and let the
1117 concrete linux target define it by overriding the op declared in
1118 process_stratum_target.
1120 * linux-low.cc (linux_process_target::supports_z_point_type):
1122 * linux-low.h (struct linux_target_ops): Remove the op.
1123 (class linux_process_target) <supports_z_point_type>: Remove.
1124 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1126 (x86_supports_z_point_type): Turn into...
1127 (x86_target::supports_z_point_type): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-aarch64-low.cc (class aarch64_target)
1130 <supports_z_point_type>: Declare.
1131 (aarch64_supports_z_point_type): Turn into...
1132 (aarch64_target::supports_z_point_type): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1136 (arm_supports_z_point_type): Turn into...
1137 (arm_target::supports_z_point_type): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-crisv32-low.cc (class crisv32_target)
1140 <supports_z_point_type>: Declare.
1141 (cris_supports_z_point_type): Turn into...
1142 (crisv32_target::supports_z_point_type): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1146 (mips_supports_z_point_type): Turn into...
1147 (mips_target::supports_z_point_type): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1151 (ppc_supports_z_point_type): Turn into...
1152 (ppc_target::supports_z_point_type): ...this.
1153 (the_low_target): Remove the op field.
1154 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1156 (s390_supports_z_point_type): Turn into...
1157 (s390_target::supports_z_point_type): ...this.
1158 (the_low_target): Remove the op field.
1159 * linux-bfin-low.cc (the_low_target): Remove the op field.
1160 * linux-m32r-low.cc (the_low_target): Ditto.
1161 * linux-m68k-low.cc (the_low_target): Ditto.
1162 * linux-sh-low.cc (the_low_target): Ditto.
1163 * linux-sparc-low.cc (the_low_target): Ditto.
1164 * linux-tic6x-low.cc (the_low_target): Ditto.
1165 * linux-tile-low.cc (the_low_target): Ditto.
1166 * linux-xtensa-low.cc (the_low_target): Ditto.
1168 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1170 Turn the 'breakpoint_at' linux target op into a method of
1171 linux_process_target.
1173 * linux-low.h (struct linux_target_ops): Remove the op.
1174 (class linux_process_target) <low_breakpoint_at>: Declare.
1176 Update the callers below:
1178 * linux-low.cc (linux_process_target::save_stop_reason)
1179 (linux_process_target::thread_still_has_status_pending)
1180 (linux_process_target::wait_1)
1182 * linux-x86-low.cc (class x86_target)
1183 <low_breakpoint_at>: Declare.
1184 (x86_breakpoint_at): Turn into...
1185 (x86_target::low_breakpoint_at): ...this.
1186 (the_low_target): Remove the op field.
1187 * linux-aarch64-low.cc (class aarch64_target)
1188 <low_breakpoint_at>: Declare.
1189 (aarch64_breakpoint_at): Turn into...
1190 (aarch64_target::low_breakpoint_at): ...this.
1191 (the_low_target): Remove the op field.
1192 * linux-arm-low.cc (class arm_target)
1193 <low_breakpoint_at>: Declare.
1194 (arm_target::low_breakpoint_at): Define.
1195 (the_low_target): Remove the op field.
1196 * linux-bfin-low.cc (class bfin_target)
1197 <low_breakpoint_at>: Declare.
1198 (bfin_breakpoint_at): Turn into...
1199 (bfin_target::low_breakpoint_at): ...this.
1200 (the_low_target): Remove the op field.
1201 * linux-cris-low.cc (class cris_target)
1202 <low_breakpoint_at>: Declare.
1203 (cris_breakpoint_at): Turn into...
1204 (cris_target::low_breakpoint_at): ...this.
1205 (the_low_target): Remove the op field.
1206 * linux-crisv32-low.cc (class crisv32_target)
1207 <low_breakpoint_at>: Declare.
1208 (crisv32_breakpoint_at): Turn into...
1209 (crisv32_target::low_breakpoint_at): ...this.
1210 (the_low_target): Remove the op field.
1211 * linux-ia64-low.cc (class ia64_target)
1212 <low_breakpoint_at>: Declare.
1213 (ia64_target::low_breakpoint_at): Define.
1214 * linux-m32r-low.cc (class m32r_target)
1215 <low_breakpoint_at>: Declare.
1216 (m32r_breakpoint_at): Turn into...
1217 (m32r_target::low_breakpoint_at): ...this.
1218 (the_low_target): Remove the op field.
1219 * linux-m68k-low.cc (class m68k_target)
1220 <low_breakpoint_at>: Declare.
1221 (m68k_breakpoint_at): Turn into...
1222 (m68k_target::low_breakpoint_at): ...this.
1223 (the_low_target): Remove the op field.
1224 * linux-mips-low.cc (class mips_target)
1225 <low_breakpoint_at>: Declare.
1226 (mips_breakpoint_at): Turn into...
1227 (mips_target::low_breakpoint_at): ...this.
1228 (the_low_target): Remove the op field.
1229 * linux-nios2-low.cc (class nios2_target)
1230 <low_breakpoint_at>: Declare.
1231 (nios2_breakpoint_at): Turn into...
1232 (nios2_target::low_breakpoint_at): ...this.
1233 (the_low_target): Remove the op field.
1234 * linux-ppc-low.cc (class ppc_target)
1235 <low_breakpoint_at>: Declare.
1236 (ppc_breakpoint_at): Turn into...
1237 (ppc_target::low_breakpoint_at): ...this.
1238 (the_low_target): Remove the op field.
1239 * linux-riscv-low.cc (class riscv_target)
1240 <low_breakpoint_at>: Declare.
1241 (riscv_breakpoint_at): Turn into...
1242 (riscv_target::low_breakpoint_at): ...this.
1243 (the_low_target): Remove the op field.
1244 * linux-s390-low.cc (class s390_target)
1245 <low_breakpoint_at>: Declare.
1246 (s390_breakpoint_at): Turn into...
1247 (s390_target::low_breakpoint_at): ...this.
1248 (the_low_target): Remove the op field.
1249 * linux-sh-low.cc (class sh_target)
1250 <low_breakpoint_at>: Declare.
1251 (sh_breakpoint_at): Turn into...
1252 (sh_target::low_breakpoint_at): ...this.
1253 (the_low_target): Remove the op field.
1254 * linux-sparc-low.cc (class sparc_target)
1255 <low_breakpoint_at>: Declare.
1256 (sparc_breakpoint_at): Turn into...
1257 (sparc_target::low_breakpoint_at): ...this.
1258 (the_low_target): Remove the op field.
1259 * linux-tic6x-low.cc (class tic6x_target)
1260 <low_breakpoint_at>: Declare.
1261 (tic6x_breakpoint_at): Turn into...
1262 (tic6x_target::low_breakpoint_at): ...this.
1263 (the_low_target): Remove the op field.
1264 * linux-tile-low.cc (class tile_target)
1265 <low_breakpoint_at>: Declare.
1266 (tile_breakpoint_at): Turn into...
1267 (tile_target::low_breakpoint_at): ...this.
1268 (the_low_target): Remove the op field.
1269 * linux-xtensa-low.cc (class xtensa_target)
1270 <low_breakpoint_at>: Declare.
1271 (xtensa_breakpoint_at): Turn into...
1272 (xtensa_target::low_breakpoint_at): ...this.
1273 (the_low_target): Remove the op field.
1275 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1277 Turn the 'decr_pc_after_break' linux_target_ops field into
1278 a method of linux_process_target.
1280 * linux-low.h (struct linux_target_ops)
1281 <decr_pc_after_break>: Remove.
1282 (class linux_process_target) <low_decr_pc_after_break>: New method
1284 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1285 New method implementation.
1287 Update the users below.
1289 (linux_process_target::save_stop_reason)
1290 (linux_process_target::wait_1)
1291 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1293 (x86_target::low_decr_pc_after_break): New method implementation.
1294 (the_low_target): Remove the field.
1295 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1297 (bfin_target::low_decr_pc_after_break): New method implementation.
1298 (the_low_target): Remove the field.
1299 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1301 (m68k_target::low_decr_pc_after_break): New method implementation.
1302 (the_low_target): Remove the field.
1303 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1305 (s390_target::low_decr_pc_after_break): New method implementation.
1306 (the_low_target): Remove the field.
1307 * linux-aarch64-low.cc (the_low_target): Remove the field.
1308 * linux-arm-low.cc (the_low_target): Remove the field.
1309 * linux-cris-low.cc (the_low_target): Remove the field.
1310 * linux-crisv32-low.cc (the_low_target): Remove the field.
1311 * linux-m32r-low.cc (the_low_target): Remove the field.
1312 * linux-mips-low.cc (the_low_target): Remove the field.
1313 * linux-nios2-low.cc (the_low_target): Remove the field.
1314 * linux-ppc-low.cc (the_low_target): Remove the field.
1315 * linux-riscv-low.cc (the_low_target): Remove the field.
1316 * linux-sh-low.cc (the_low_target): Remove the field.
1317 * linux-sparc-low.cc (the_low_target): Remove the field.
1318 * linux-tic6x-low.cc (the_low_target): Remove the field.
1319 * linux-tile-low.cc (the_low_target): Remove the field.
1320 * linux-xtensa-low.cc (the_low_target): Remove the field.
1322 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1324 Remove the 'supports_software_single_step' linux target op and let
1325 the concrete linux target define it by overriding the op in
1326 process_stratum_target.
1327 Turn the 'get_next_pcs' linux target op into a method of
1328 linux_process_target.
1330 * linux-low.h (struct linux_target_ops): Remove the ops.
1331 (class linux_process_target) <supports_software_single_step>:
1333 <low_get_next_pcs>: Declare.
1334 * linux-low.cc (can_software_single_step): Remove.
1335 (linux_process_target::low_get_next_pcs): Define.
1336 (linux_process_target::supports_software_single_step): Remove.
1338 Update the callers below.
1340 (linux_process_target::handle_extended_wait)
1341 (linux_process_target::wait_1)
1342 (linux_process_target::install_software_single_step_breakpoints)
1343 (linux_process_target::single_step)
1344 (linux_process_target::thread_needs_step_over)
1345 (linux_process_target::proceed_one_lwp)
1346 (linux_process_target::supports_range_stepping)
1348 * linux-x86-low.cc (the_low_target): Remove the op field.
1349 * linux-aarch64-low.cc (the_low_target): Ditto.
1350 * linux-bfin-low.cc (the_low_target): Ditto.
1351 * linux-cris-low.cc (the_low_target): Ditto.
1352 * linux-crisv32-low.cc (the_low_target): Ditto.
1353 * linux-m32r-low.cc (the_low_target): Ditto.
1354 * linux-m68k-low.cc (the_low_target): Ditto.
1355 * linux-mips-low.cc (the_low_target): Ditto.
1356 * linux-nios2-low.cc (the_low_target): Ditto.
1357 * linux-ppc-low.cc (the_low_target): Ditto.
1358 * linux-riscv-low.cc (the_low_target): Ditto.
1359 * linux-s390-low.cc (the_low_target): Ditto.
1360 * linux-sh-low.cc (the_low_target): Ditto.
1361 * linux-sparc-low.cc (the_low_target): Ditto.
1362 * linux-tic6x-low.cc (the_low_target): Ditto.
1363 * linux-tile-low.cc (the_low_target): Ditto.
1364 * linux-xtensa-low.cc (the_low_target): Ditto.
1365 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1366 <supports_software_single_step>: Declare.
1367 (arm_target::supports_software_single_step): Define.
1368 (arm_gdbserver_get_next_pcs): Turn into...
1369 (arm_target::low_get_next_pcs): ...this.
1370 (the_low_target): Remove the op field.
1372 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1374 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1375 the concrete linux target define it by overriding the op
1376 in process_stratum_target.
1378 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1380 * linux-low.h (struct linux_target_ops): Remove the op.
1381 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1382 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1384 (x86_sw_breakpoint_from_kind): Turn into...
1385 (x86_target::sw_breakpoint_from_kind): ...this.
1386 (the_low_target): Remove the op field.
1387 * linux-aarch64-low.cc (class aarch64_target)
1388 <sw_breakpoint_from_kind>: Declare.
1389 (aarch64_sw_breakpoint_from_kind): Turn into...
1390 (aarch64_target::sw_breakpoint_from_kind): ...this.
1391 (the_low_target): Remove the op field.
1392 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1394 (arm_target::sw_breakpoint_from_kind): Define.
1395 (the_low_target): Remove the op field.
1396 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1398 (bfin_sw_breakpoint_from_kind): Turn into...
1399 (bfin_target::sw_breakpoint_from_kind): ...this.
1400 (the_low_target): Remove the op field.
1401 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1403 (cris_sw_breakpoint_from_kind): Turn into...
1404 (cris_target::sw_breakpoint_from_kind): ...this.
1405 (the_low_target): Remove the op field.
1406 * linux-crisv32-low.cc (class crisv32_target)
1407 <sw_breakpoint_from_kind>: Declare.
1408 (cris_sw_breakpoint_from_kind): Turn into...
1409 (crisv32_target::sw_breakpoint_from_kind): ...this.
1410 (the_low_target): Remove the op field.
1411 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1413 (ia64_target::sw_breakpoint_from_kind): Define.
1414 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1416 (m32r_sw_breakpoint_from_kind): Turn into...
1417 (m32r_target::sw_breakpoint_from_kind): ...this.
1418 (the_low_target): Remove the op field.
1419 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1421 (m68k_sw_breakpoint_from_kind): Turn into...
1422 (m68k_target::sw_breakpoint_from_kind): ...this.
1423 (the_low_target): Remove the op field.
1424 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1426 (mips_sw_breakpoint_from_kind): Turn into...
1427 (mips_target::sw_breakpoint_from_kind): ...this.
1428 (the_low_target): Remove the op field.
1429 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1431 (nios2_sw_breakpoint_from_kind): Turn into...
1432 (nios2_target::sw_breakpoint_from_kind): ...this.
1433 (the_low_target): Remove the op field.
1434 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1436 (ppc_sw_breakpoint_from_kind): Turn into...
1437 (ppc_target::sw_breakpoint_from_kind): ...this.
1438 (the_low_target): Remove the op field.
1439 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1441 (riscv_sw_breakpoint_from_kind): Turn into...
1442 (riscv_target::sw_breakpoint_from_kind): ...this.
1443 (the_low_target): Remove the op field.
1444 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1446 (s390_sw_breakpoint_from_kind): Turn into...
1447 (s390_target::sw_breakpoint_from_kind): ...this.
1448 (the_low_target): Remove the op field.
1449 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1451 (sh_sw_breakpoint_from_kind): Turn into...
1452 (sh_target::sw_breakpoint_from_kind): ...this.
1453 (the_low_target): Remove the op field.
1454 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1456 (sparc_sw_breakpoint_from_kind): Turn into...
1457 (sparc_target::sw_breakpoint_from_kind): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1461 (tic6x_sw_breakpoint_from_kind): Turn into...
1462 (tic6x_target::sw_breakpoint_from_kind): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1466 (tile_sw_breakpoint_from_kind): Turn into...
1467 (tile_target::sw_breakpoint_from_kind): ...this.
1468 (the_low_target): Remove the op field.
1469 * linux-xtensa-low.cc (class xtensa_target)
1470 <sw_breakpoint_from_kind>: Declare.
1471 (xtensa_sw_breakpoint_from_kind): Turn into...
1472 (xtensa_target::sw_breakpoint_from_kind): ...this.
1473 (the_low_target): Remove the op field.
1475 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1477 Remove the 'breakpoint_kind_from_pc' and
1478 'breakpoint_kind_from_current_state' linux target ops, and let the
1479 concrete linux target define them by overriding the ops of
1480 process_stratum_target.
1482 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1484 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1485 * linux-low.h (struct linux_target_ops): Remove ops.
1486 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1487 <breakpoint_kind_from_current_state>: Remove.
1488 * linux-x86-low.cc (the_low_target): Remove the op fields.
1489 * linux-bfin-low.cc (the_low_target): Ditto.
1490 * linux-cris-low.cc (the_low_target): Ditto.
1491 * linux-crisv32-low.cc (the_low_target): Ditto.
1492 * linux-m32r-low.cc (the_low_target): Ditto.
1493 * linux-m68k-low.cc (the_low_target): Ditto.
1494 * linux-mips-low.cc (the_low_target): Ditto.
1495 * linux-nios2-low.cc (the_low_target): Ditto.
1496 * linux-ppc-low.cc (the_low_target): Ditto.
1497 * linux-s390-low.cc (the_low_target): Ditto.
1498 * linux-sh-low.cc (the_low_target): Ditto.
1499 * linux-sparc-low.cc (the_low_target): Ditto.
1500 * linux-tic6x-low.cc (the_low_target): Ditto.
1501 * linux-tile-low.cc (the_low_target): Ditto.
1502 * linux-xtensa-low.cc (the_low_target): Ditto.
1503 * linux-aarch64-low.cc (class aarch64_target)
1504 <breakpoint_kind_from_pc>
1505 <breakpoint_kind_from_current_state>: Declare.
1506 (aarch64_breakpoint_kind_from_pc): Turn into...
1507 (aarch64_target::breakpoint_kind_from_pc): ...this.
1508 (aarch64_breakpoint_kind_from_current_state): Turn into...
1509 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1510 (the_low_target): Remove the op fields.
1511 * linux-arm-low.cc (class arm_target):
1512 <breakpoint_kind_from_pc>
1513 <breakpoint_kind_from_current_state>: Declare.
1514 (arm_target::breakpoint_kind_from_pc): Define.
1515 (arm_target::breakpoint_kind_from_current_state): Define.
1516 (the_low_target): Remove the op fields.
1517 * linux-riscv-low.cc (class riscv_target):
1518 <breakpoint_kind_from_pc>: Declare.
1519 (riscv_breakpoint_kind_from_pc): Turn into...
1520 (riscv_target::breakpoint_kind_from_pc): ...this.
1521 (the_low_target): Remove the op fields.
1523 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1525 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1526 of linux_process_target.
1528 * linux-low.h (struct linux_target_ops): Remove the ops.
1529 (class linux_process_target) <low_supports_breakpoints>
1531 <low_set_pc>: Declare.
1532 * linux-low.cc (supports_breakpoints): Turn into...
1533 (linux_process_target::low_supports_breakpoints): ...this.
1534 (linux_process_target::low_get_pc): Define.
1535 (linux_process_target::low_set_pc): Define.
1537 Update the callers below.
1539 (linux_process_target::get_pc)
1540 (linux_process_target::save_stop_reason)
1541 (linux_process_target::maybe_move_out_of_jump_pad)
1542 (linux_process_target::wait_1)
1543 (linux_process_target::resume_one_lwp_throw)
1544 (linux_process_target::resume)
1545 (linux_process_target::proceed_all_lwps)
1546 (linux_process_target::read_pc)
1547 (linux_process_target::write_pc)
1549 * linux-x86-low.cc (class linux_process_target)
1550 <low_supports_breakpoints>
1552 <low_set_pc>: Declare.
1553 (x86_target::low_supports_breakpoints): Define.
1554 (x86_get_pc): Turn into...
1555 (x86_target::low_get_pc): ...this.
1556 (x86_set_pc): Turn into...
1557 (x86_target::low_set_pc): ...this.
1558 (the_low_target): Remove the op fields.
1559 * linux-arm-low.cc (class arm_target)
1560 <low_supports_breakpoints>
1562 <low_set_pc>: Declare.
1563 (arm_target::low_supports_breakpoints)
1564 (arm_target::low_get_pc)
1565 (arm_target::low_set_pc): Define.
1566 (the_low_target): Remove the op fields.
1567 * linux-bfin-low.cc (class bfin_target)
1568 <low_supports_breakpoints>
1570 <low_set_pc>: Declare.
1571 (bfin_target::low_supports_breakpoints)
1572 (bfin_target::low_get_pc)
1573 (bfin_target::low_set_pc): Define.
1574 (the_low_target): Remove the op fields.
1575 * linux-cris-low.cc (class cris_target)
1576 <low_supports_breakpoints>
1578 <low_set_pc>: Declare.
1579 (cris_target::low_supports_breakpoints)
1580 (cris_target::low_get_pc)
1581 (cris_target::low_set_pc): Define.
1582 (the_low_target): Remove the op fields.
1583 * linux-crisv32-low.cc (class crisv32_target)
1584 <low_supports_breakpoints>
1586 <low_set_pc>: Declare.
1587 (crisv32_target::low_supports_breakpoints)
1588 (crisv32_target::low_get_pc)
1589 (crisv32_target::low_set_pc): Define.
1590 (the_low_target): Remove the op fields.
1591 * linux-m32r-low.cc (class m32r_target)
1592 <low_supports_breakpoints>
1594 <low_set_pc>: Declare.
1595 (m32r_target::low_supports_breakpoints)
1596 (m32r_target::low_get_pc)
1597 (m32r_target::low_set_pc): Define.
1598 (the_low_target): Remove the op fields.
1599 * linux-m68k-low.cc (class m68k_target)
1600 <low_supports_breakpoints>
1602 <low_set_pc>: Declare.
1603 (m68k_target::low_supports_breakpoints)
1604 (m68k_target::low_get_pc)
1605 (m68k_target::low_set_pc): Define.
1606 (the_low_target): Remove the op fields.
1607 * linux-nios2-low.cc (class nios2_target)
1608 <low_supports_breakpoints>
1610 <low_set_pc>: Declare.
1611 (nios2_target::low_supports_breakpoints)
1612 (nios2_target::low_get_pc)
1613 (nios2_target::low_set_pc): Define.
1614 (the_low_target): Remove the op fields.
1615 * linux-sh-low.cc (class sh_target)
1616 <low_supports_breakpoints>
1618 <low_set_pc>: Declare.
1619 (sh_target::low_supports_breakpoints)
1620 (sh_target::low_get_pc)
1621 (sh_target::low_set_pc): Define.
1622 (the_low_target): Remove the op fields.
1623 * linux-xtensa-low.cc (class xtensa_target)
1624 <low_supports_breakpoints>
1626 <low_set_pc>: Declare.
1627 (xtensa_target::low_supports_breakpoints)
1628 (xtensa_target::low_get_pc)
1629 (xtensa_target::low_set_pc): Define.
1630 (the_low_target): Remove the op fields.
1631 * linux-sparc-low.cc (class sparc_target)
1632 <low_supports_breakpoints>
1633 <low_get_pc>: Declare.
1634 (sparc_target::low_supports_breakpoints)
1635 (sparc_target::low_get_pc): Define.
1636 (the_low_target): Remove the op fields.
1637 * linux-tile-low.cc (class tile_target)
1638 <low_supports_breakpoints>
1640 <low_set_pc>: Declare.
1641 (tile_target::low_supports_breakpoints)
1642 (tile_target::low_get_pc)
1643 (tile_target::low_set_pc): Define.
1644 (the_low_target): Remove the op fields.
1645 * linux-aarch64-low.cc (class aarch64_target)
1646 <low_supports_breakpoints>
1648 <low_set_pc>: Declare.
1649 (aarch64_target::low_supports_breakpoints): Define.
1650 (aarch64_get_pc): Turn into...
1651 (aarch64_target::low_get_pc): ...this.
1652 (aarch64_set_pc): Turn into...
1653 (aarch64_target::low_set_pc): ...this.
1654 (the_low_target): Remove the op fields.
1655 * linux-mips-low.cc (class mips_target)
1656 <low_supports_breakpoints>
1658 <low_set_pc>: Declare.
1659 (mips_target::low_supports_breakpoints): Define.
1660 (mips_get_pc): Turn into...
1661 (mips_target::low_get_pc): ...this.
1662 (mips_set_pc): Turn into...
1663 (mips_target::low_set_pc): ...this.
1664 (the_low_target): Remove the op fields.
1665 * linux-ppc-low.cc (class ppc_target)
1666 <low_supports_breakpoints>
1668 <low_set_pc>: Declare.
1669 (ppc_target::low_supports_breakpoints): Define.
1670 (ppc_get_pc): Turn into...
1671 (ppc_target::low_get_pc): ...this.
1672 (ppc_set_pc): Turn into...
1673 (ppc_target::low_set_pc): ...this.
1674 (the_low_target): Remove the op fields.
1675 * linux-riscv-low.cc (class riscv_target)
1676 <low_supports_breakpoints>
1678 <low_set_pc>: Declare.
1679 (riscv_target::low_supports_breakpoints): Define.
1680 (riscv_get_pc): Turn into...
1681 (riscv_target::low_get_pc): ...this.
1682 (riscv_set_pc): Turn into...
1683 (riscv_target::low_set_pc): ...this.
1684 (the_low_target): Remove the op fields.
1685 * linux-s390-low.cc (class s390_target)
1686 <low_supports_breakpoints>
1688 <low_set_pc>: Declare.
1689 (s390_target::low_supports_breakpoints): Define.
1690 (s390_get_pc): Turn into...
1691 (s390_target::low_get_pc): ...this.
1692 (s390_set_pc): Turn into...
1693 (s390_target::low_set_pc): ...this.
1694 (the_low_target): Remove the op fields.
1695 * linux-tic6x-low.cc (class tic6x_target)
1696 <low_supports_breakpoints>
1698 <low_set_pc>: Declare.
1699 (tic6x_target::low_supports_breakpoints): Define.
1700 (tic6x_get_pc): Turn into...
1701 (tic6x_target::low_get_pc): ...this.
1702 (tic6x_set_pc): Turn into...
1703 (tic6x_target::low_set_pc): ...this.
1704 (the_low_target): Remove the op fields.
1706 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1708 Turn some more static methods in linux-low into private methods
1709 of linux_process_target.
1711 * linux-low.cc (get_pc): Turn into...
1712 (linux_process_target::get_pc): ...this.
1713 (save_stop_reason): Turn into...
1714 (linux_process_target::save_stop_reason): ...this.
1715 (thread_still_has_status_pending_p): Turn into...
1716 (linux_process_target::thread_still_has_status_pending): ...this.
1717 (status_pending_p_callback): Turn into...
1718 (linux_process_target::status_pending_p_callback): ...this.
1719 (resume_stopped_resumed_lwps): Turn into...
1720 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1721 (install_software_single_step_breakpoints): Turn into...
1722 (linux_process_target::install_software_single_step_breakpoints):
1724 (single_step): Turn into...
1725 (linux_process_target::single_step): ...this.
1726 (linux_resume_one_lwp_throw): Turn into...
1727 (linux_process_target::resume_one_lwp_throw): ...this.
1728 (linux_resume_one_lwp): Turn into...
1729 (linux_process_target::resume_one_lwp): ...this.
1730 (resume_status_pending_p): Turn into...
1731 (linux_process_target::resume_status_pending): ...this.
1732 (need_step_over_p): Turn into...
1733 (linux_process_target::thread_needs_step_over): ...this.
1734 (linux_resume_one_thread): Turn into...
1735 (linux_process_target::resume_one_thread): ...this.
1736 (proceed_one_lwp): Turn into...
1737 (linux_process_target::proceed_one_lwp): ...this.
1738 (unsuspend_and_proceed_one_lwp): Turn into...
1739 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1741 Update the calls/references to the above functions below.
1743 (linux_process_target::handle_extended_wait)
1744 (linux_process_target::filter_event)
1745 (linux_process_target::wait_for_event_filtered)
1746 (linux_process_target::wait_1)
1747 (linux_process_target::move_out_of_jump_pad)
1748 (linux_process_target::start_step_over)
1749 (linux_process_target::resume)
1750 (linux_process_target::proceed_all_lwps)
1751 (regsets_store_inferior_registers)
1752 (linux_process_target::store_register)
1754 * linux-low.h (class linux_process_target)
1757 <thread_still_has_status_pending>
1758 <status_pending_p_callback>
1759 <resume_stopped_resumed_lwps>
1760 <install_software_single_step_breakpoints>
1762 <resume_one_lwp_throw>
1764 <resume_status_pending>
1765 <thread_needs_step_over>
1768 <unsuspend_and_proceed_one_lwp>: Declare.
1770 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1772 Turn the 'fetch_register' linux target op into a method of
1773 linux_process_target.
1775 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1776 (class linux_process_target) <low_fetch_register>: Declare.
1777 * linux-x86-low.cc (the_low_target)
1778 * linux-aarch64-low.cc (the_low_target)
1779 * linux-arm-low.cc (the_low_target)
1780 * linux-bfin-low.cc (the_low_target)
1781 * linux-cris-low.cc (the_low_target)
1782 * linux-crisv32-low.cc (the_low_target)
1783 * linux-m32r-low.cc (the_low_target)
1784 * linux-m68k-low.cc (the_low_target)
1785 * linux-nios2-low.cc (the_low_target)
1786 * linux-ppc-low.cc (the_low_target)
1787 * linux-s390-low.cc (the_low_target)
1788 * linux-sh-low.cc (the_low_target)
1789 * linux-sparc-low.cc (the_low_target)
1790 * linux-tic6x-low.cc (the_low_target)
1791 * linux-tile-low.cc (the_low_target)
1792 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1793 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1795 (ia64_fetch_register): Turn into...
1796 (ia64_target::low_fetch_register): ...this.
1797 (the_low_target): Remove the op field.
1798 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1800 (mips_fetch_register): Turn into...
1801 (mips_target::low_fetch_register): ...this.
1802 (the_low_target): Remove the op field.
1803 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
1805 (riscv_fetch_register): Turn into...
1806 (riscv_target::low_fetch_register): ...this.
1807 (the_low_target): Remove the op field.
1809 Update the callers below.
1811 * linux-low.cc (linux_process_target::fetch_registers)
1812 (linux_process_target::low_fetch_register)
1814 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1816 Turn the 'cannot_fetch_register' and 'cannot_store_register'
1817 linux target ops into methods of linux_process_target.
1819 * linux-low.h (struct linux_target_ops): Remove the low target ops.
1820 (class linux_process_target) <fetch_register>
1822 <usr_fetch_inferior_registers>
1823 <usr_store_inferior_registers>
1824 <low_cannot_fetch_register>
1825 <low_cannot_fetch_register> Declare.
1826 * linux-low.cc (fetch_register): Turn into...
1827 (linux_process_target::fetch_register): ...this.
1828 (store_register): Turn into ...
1829 (linux_process_target::store_register): ...this.
1830 (usr_fetch_inferior_registers): Turn into...
1831 (linux_process_target::usr_fetch_inferior_registers): ...this.
1832 (usr_store_inferior_registers): Turn into...
1833 (linux_process_target::usr_store_inferior_registers): ...this.
1834 * linux-x86-low.cc (class x86_target)
1835 <low_cannot_fetch_register>
1836 <low_cannot_store_register>: Declare.
1837 (x86_cannot_store_register): Turn into...
1838 (x86_target::low_cannot_store_register): ...this.
1839 (x86_cannot_fetch_register): Turn into...
1840 (x86_target::low_cannot_fetch_register): ...this.
1841 (the_low_target): Remove the target op fields.
1842 * linux-aarch64-low.cc (class aarch64_target)
1843 <low_cannot_fetch_register>
1844 <low_cannot_store_register>: Declare.
1845 (aarch64_target::low_cannot_fetch_register)
1846 (aarch64_target::low_cannot_store_register): Define.
1847 (the_low_target): Remove the op fields.
1848 * linux-arm-low.cc (class arm_target)
1849 <low_cannot_fetch_register>
1850 <low_cannot_store_register>: Declare.
1851 (arm_cannot_fetch_register): Turn into...
1852 (arm_target::low_cannot_fetch_register): ...this.
1853 (arm_cannot_store_register): Turn into...
1854 (arm_target::low_cannot_store_register): ...this.
1855 (the_low_target): Remove the op fields.
1856 * linux-bfin-low.cc (class bfin_target)
1857 <low_cannot_fetch_register>
1858 <low_cannot_store_register>: Declare.
1859 (bfin_cannot_fetch_register): Turn into...
1860 (bfin_target::low_cannot_fetch_register): ...this.
1861 (bfin_cannot_store_register): Turn into...
1862 (bfin_target::low_cannot_store_register): ...this.
1863 (the_low_target): Remove the op fields.
1864 * linux-cris-low.cc (class cris_target)
1865 <low_cannot_fetch_register>
1866 <low_cannot_store_register>: Declare.
1867 (cris_cannot_fetch_register): Turn into...
1868 (cris_target::low_cannot_fetch_register): ...this.
1869 (cris_cannot_store_register): Turn into...
1870 (cris_target::low_cannot_store_register): ...this.
1871 (the_low_target): Remove the op fields.
1872 * linux-crisv32-low.cc (class crisv32_target)
1873 <low_cannot_fetch_register>
1874 <low_cannot_store_register>: Declare.
1875 (crisv32_target::low_cannot_fetch_register)
1876 (crisv32_target::low_cannot_store_register): Define.
1877 (the_low_target): Remove the op fields.
1878 * linux-ia64-low.cc (class ia64_target)
1879 <low_cannot_fetch_register>
1880 <low_cannot_store_register>: Declare.
1881 (ia64_cannot_fetch_register): Turn into...
1882 (ia64_target::low_cannot_fetch_register): ...this.
1883 (ia64_cannot_store_register): Turn into...
1884 (ia64_target::low_cannot_store_register): ...this.
1885 (the_low_target): Remove the op fields.
1886 * linux-m32r-low.cc (class m32r_target)
1887 <low_cannot_fetch_register>
1888 <low_cannot_store_register>: Declare.
1889 (m32r_cannot_fetch_register): Turn into...
1890 (m32r_target::low_cannot_fetch_register): ...this.
1891 (m32r_cannot_store_register): Turn into...
1892 (m32r_target::low_cannot_store_register): ...this.
1893 (the_low_target): Remove the op fields.
1894 * linux-m68k-low.cc (class m68k_target)
1895 <low_cannot_fetch_register>
1896 <low_cannot_store_register>: Declare.
1897 (m68k_cannot_fetch_register): Turn into...
1898 (m68k_target::low_cannot_fetch_register): ...this.
1899 (m68k_cannot_store_register): Turn into...
1900 (m68k_target::low_cannot_store_register): ...this.
1901 (the_low_target): Remove the op fields.
1902 * linux-mips-low.cc (class mips_target)
1903 <low_cannot_fetch_register>
1904 <low_cannot_store_register>: Declare.
1905 (mips_cannot_fetch_register): Turn into...
1906 (mips_target::low_cannot_fetch_register): ...this.
1907 (mips_cannot_store_register): Turn into...
1908 (mips_target::low_cannot_store_register): ...this.
1909 (get_usrregs_info): Inline at the call sites in
1910 low_cannot_fetch_register and low_cannot_store_register,
1912 (the_low_target): Remove the op fields.
1913 * linux-nios2-low.cc (class nios2_target)
1914 <low_cannot_fetch_register>
1915 <low_cannot_store_register>: Declare.
1916 (nios2_cannot_fetch_register): Turn into...
1917 (nios2_target::low_cannot_fetch_register): ...this.
1918 (nios2_cannot_store_register): Turn into...
1919 (nios2_target::low_cannot_store_register): ...this.
1920 (the_low_target): Remove the op fields.
1921 * linux-ppc-low.cc (class ppc_target)
1922 <low_cannot_fetch_register>
1923 <low_cannot_store_register>: Declare.
1924 (ppc_cannot_fetch_register): Turn into...
1925 (ppc_target::low_cannot_fetch_register): ...this.
1926 (ppc_cannot_store_register): Turn into...
1927 (ppc_target::low_cannot_store_register): ...this.
1928 (the_low_target): Remove the op fields.
1929 * linux-riscv-low.cc (class riscv_target)
1930 <low_cannot_fetch_register>
1931 <low_cannot_store_register>: Declare.
1932 (riscv_target::low_cannot_fetch_register)
1933 (riscv_target::low_cannot_store_register): Define.
1934 (the_low_target): Remove the op fields.
1935 * linux-s390-low.cc (class s390_target)
1936 <low_cannot_fetch_register>
1937 <low_cannot_store_register>: Declare.
1938 (s390_cannot_fetch_register): Turn into...
1939 (s390_target::low_cannot_fetch_register): ...this.
1940 (s390_cannot_store_register): Turn into...
1941 (s390_target::low_cannot_store_register): ...this.
1942 (the_low_target): Remove the op fields.
1943 * linux-sh-low.cc (class sh_target)
1944 <low_cannot_fetch_register>
1945 <low_cannot_store_register>: Declare.
1946 (sh_cannot_fetch_register): Turn into...
1947 (sh_target::low_cannot_fetch_register): ...this.
1948 (sh_cannot_store_register): Turn into...
1949 (sh_target::low_cannot_store_register): ...this.
1950 (the_low_target): Remove the op fields.
1951 * linux-sparc-low.cc (class sparc_target)
1952 <low_cannot_fetch_register>
1953 <low_cannot_store_register>: Declare.
1954 (sparc_cannot_fetch_register): Turn into...
1955 (sparc_target::low_cannot_fetch_register): ...this.
1956 (sparc_cannot_store_register): Turn into...
1957 (sparc_target::low_cannot_store_register): ...this.
1958 (the_low_target): Remove the op fields.
1959 * linux-tic6x-low.cc (class tic6x_target)
1960 <low_cannot_fetch_register>
1961 <low_cannot_store_register>: Declare.
1962 (tic6x_cannot_fetch_register): Turn into...
1963 (tic6x_target::low_cannot_fetch_register): ...this.
1964 (tic6x_cannot_store_register): Turn into...
1965 (tic6x_target::low_cannot_store_register): ...this.
1966 (the_low_target): Remove the op fields.
1967 * linux-tile-low.cc (class tile_target)
1968 <low_cannot_fetch_register>
1969 <low_cannot_store_register>: Declare.
1970 (tile_cannot_fetch_register): Turn into...
1971 (tile_target::low_cannot_fetch_register): ...this.
1972 (tile_cannot_store_register): Turn into...
1973 (tile_target::low_cannot_store_register): ...this.
1974 (the_low_target): Remove the op fields.
1975 * linux-xtensa-low.cc (class xtensa_target)
1976 <low_cannot_fetch_register>
1977 <low_cannot_store_register>: Declare.
1978 (xtensa_target::low_cannot_fetch_register)
1979 (xtensa_target::low_cannot_store_register): Define.
1980 (the_low_target): Remove the op fields.
1982 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1984 Turn the 'regs_info' linux target op into a method of
1985 linux_process_target.
1987 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
1988 (class linux_process_target) <get_regs_info>: Define.
1990 Update the callers below.
1992 * linux-low.cc (linux_process_target::fetch_registers)
1993 (linux_process_target::store_registers)
1994 * proc-service.cc (gregset_info)
1996 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
1997 (x86_linux_regs_info): Turn into ...
1998 (x86_target::get_regs_info): ...this.
1999 (the_low_target): Remove the op field.
2000 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2002 (aarch64_regs_info): Turn into ...
2003 (aarch64_target::get_regs_info): ...this.
2004 (the_low_target): Remove the op field.
2005 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2006 (arm_regs_info): Turn into ...
2007 (arm_target::get_regs_info): ...this.
2008 (the_low_target): Remove the op field.
2009 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2010 (bfin_regs_info): Turn into ...
2011 (bfin_target::get_regs_info): ...this.
2012 (the_low_target): Remove the op field.
2013 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2014 (cris_regs_info): Turn into ...
2015 (cris_target::get_regs_info): ...this.
2016 (the_low_target): Remove the op field.
2017 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2019 (crisv32_regs_info): Turn into ...
2020 (crisv32_target::get_regs_info): ...this.
2021 (the_low_target): Remove the op field.
2022 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2023 (ia64_regs_info): Turn into ...
2024 (ia64_target::get_regs_info): ...this.
2025 (the_low_target): Remove the op field.
2026 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2027 (m32r_regs_info): Turn into ...
2028 (m32r_target::get_regs_info): ...this.
2029 (the_low_target): Remove the op field.
2030 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2031 (m68k_regs_info): Turn into ...
2032 (m68k_target::get_regs_info): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2035 (mips_regs_info): Turn into ...
2036 (mips_target::get_regs_info): ...this.
2037 (the_low_target): Remove the op field.
2038 (get_usrregs_info): Update the call to the op.
2039 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2040 (nios2_regs_info): Turn into ...
2041 (nios2_target::get_regs_info): ...this.
2042 (the_low_target): Remove the op field.
2043 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2044 (ppc_regs_info): Turn into ...
2045 (ppc_target::get_regs_info): ...this.
2046 (the_low_target): Remove the op field.
2047 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2048 (riscv_regs_info): Turn into ...
2049 (riscv_target::get_regs_info): ...this.
2050 (the_low_target): Remove the op field.
2051 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2052 (s390_regs_info): Turn into ...
2053 (s390_target::get_regs_info): ...this.
2054 (the_low_target): Remove the op field.
2055 (s390_collect_ptrace_register)
2056 (s390_supply_ptrace_register)
2057 (s390_fill_gregset): Update the call to the op.
2058 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2059 (sh_regs_info): Turn into ...
2060 (sh_target::get_regs_info): ...this.
2061 (the_low_target): Remove the op field.
2062 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2063 (sparc_regs_info): Turn into ...
2064 (sparc_target::get_regs_info): ...this.
2065 (the_low_target): Remove the op field.
2066 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2067 (tic6x_regs_info): Turn into ...
2068 (tic6x_target::get_regs_info): ...this.
2069 (the_low_target): Remove the op field.
2070 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2071 (tile_regs_info): Turn into ...
2072 (tile_target::get_regs_info): ...this.
2073 (the_low_target): Remove the op field.
2074 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2076 (xtensa_regs_info): Turn into ...
2077 (xtensa_target::get_regs_info): ...this.
2078 (the_low_target): Remove the op field.
2080 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2082 Turn the 'arch_setup' linux target op into a method of
2083 linux_process_target.
2085 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2086 (class linux_process_target) <arch_setup_thread>
2087 <low_arch_setup>: New declarations.
2088 * linux-low.cc (linux_arch_setup): Delete.
2089 (linux_arch_setup_thread): Turn into...
2090 (linux_process_target::arch_setup_thread): ... this.
2092 Update the callers below.
2094 (linux_process_target::handle_extended_wait)
2095 (linux_process_target::post_create_inferior)
2096 (linux_process_target::filter_event)
2098 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2100 (x86_linux_update_xmltarget): Turn into...
2101 (x86_target::update_xmltarget): ...this.
2102 (x86_linux_process_qsupported): Update the call to
2103 x86_linux_update_xmltarget.
2104 (x86_arch_setup): Turn into ...
2105 (x86_target::low_arch_setup): ...this.
2106 (the_low_target): Remove the op field.
2107 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2109 (aarch64_arch_setup): Turn into ...
2110 (aarch64_target::low_arch_setup): ...this.
2111 (the_low_target): Remove the op field.
2112 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2114 (arm_arch_setup): Turn into ...
2115 (arm_target::low_arch_setup): ...this.
2116 (the_low_target): Remove the op field.
2117 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2119 (bfin_arch_setup): Turn into ...
2120 (bfin_target::low_arch_setup): ...this.
2121 (the_low_target): Remove the op field.
2122 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2124 (cris_arch_setup): Turn into ...
2125 (cris_target::low_arch_setup): ...this.
2126 (the_low_target): Remove the op field.
2127 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2129 (crisv32_arch_setup): Turn into ...
2130 (crisv32_target::low_arch_setup): ...this.
2131 (the_low_target): Remove the op field.
2132 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2134 (ia64_arch_setup): Turn into ...
2135 (ia64_target::low_arch_setup): ...this.
2136 (the_low_target): Remove the op field.
2137 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2139 (m32r_arch_setup): Turn into ...
2140 (m32r_target::low_arch_setup): ...this.
2141 (the_low_target): Remove the op field.
2142 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2144 (m68k_arch_setup): Turn into ...
2145 (m68k_target::low_arch_setup): ...this.
2146 (the_low_target): Remove the op field.
2147 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2149 (mips_arch_setup): Turn into ...
2150 (mips_target::low_arch_setup): ...this.
2151 (the_low_target): Remove the op field.
2152 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2154 (nios2_arch_setup): Turn into ...
2155 (nios2_target::low_arch_setup): ...this.
2156 (the_low_target): Remove the op field.
2157 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2159 (ppc_arch_setup): Turn into ...
2160 (ppc_target::low_arch_setup): ...this.
2161 (the_low_target): Remove the op field.
2162 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2164 (riscv_arch_setup): Turn into ...
2165 (riscv_target::low_arch_setup): ...this.
2166 (the_low_target): Remove the op field.
2167 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2169 (s390_arch_setup): Turn into ...
2170 (s390_target::low_arch_setup): ...this.
2171 (the_low_target): Remove the op field.
2172 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2174 (sh_arch_setup): Turn into ...
2175 (sh_target::low_arch_setup): ...this.
2176 (the_low_target): Remove the op field.
2177 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2179 (sparc_arch_setup): Turn into ...
2180 (sparc_target::low_arch_setup): ...this.
2181 (the_low_target): Remove the op field.
2182 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2184 (tic6x_arch_setup): Turn into ...
2185 (tic6x_target::low_arch_setup): ...this.
2186 (the_low_target): Remove the op field.
2187 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2189 (tile_arch_setup): Turn into ...
2190 (tile_target::low_arch_setup): ...this.
2191 (the_low_target): Remove the op field.
2192 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2194 (xtensa_arch_setup): Turn into ...
2195 (xtensa_target::low_arch_setup): ...this.
2196 (the_low_target): Remove the op field.
2198 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2200 * linux-low.h (the_linux_target): New extern declaration.
2201 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2203 (the_linux_target): Remove.
2204 * linux-x86-low.cc (class x86_target): New class.
2205 (the_x86_target): New static object.
2206 (the_linux_target): Define as pointer to the_x86_target.
2207 * linux-aarch64-low.cc (class aarch64_target): New class.
2208 (the_aarch64_target): New static object.
2209 (the_linux_target): Define as pointer to the_aarch64_target.
2210 * linux-arm-low.cc (class arm_target): New class.
2211 (the_arm_target): New static object.
2212 (the_linux_target): Define as pointer to the_arm_target.
2213 * linux-bfin-low.cc (class bfin_target): New class.
2214 (the_bfin_target): New static object.
2215 (the_linux_target): Define as pointer to the_bfin_target.
2216 * linux-cris-low.cc (class cris_target): New class.
2217 (the_cris_target): New static object.
2218 (the_linux_target): Define as pointer to the_cris_target.
2219 * linux-crisv32-low.cc (class crisv32_target): New class.
2220 (the_crisv32_target): New static object.
2221 (the_linux_target): Define as pointer to the_crisv32_target.
2222 * linux-ia64-low.cc (class ia64_target): New class.
2223 (the_ia64_target): New static object.
2224 (the_linux_target): Define as pointer to the_ia64_target.
2225 * linux-m32r-low.cc (class m32r_target): New class.
2226 (the_m32r_target): New static object.
2227 (the_linux_target): Define as pointer to the_m32r_target.
2228 * linux-m68k-low.cc (class m68k_target): New class.
2229 (the_m68k_target): New static object.
2230 (the_linux_target): Define as pointer to the_m68k_target.
2231 * linux-mips-low.cc (class mips_target): New class.
2232 (the_mips_target): New static object.
2233 (the_linux_target): Define as pointer to the_mips_target.
2234 * linux-nios2-low.cc (class nios2_target): New class.
2235 (the_nios2_target): New static object.
2236 (the_linux_target): Define as pointer to the_nios2_target.
2237 * linux-ppc-low.cc (class ppc_target): New class.
2238 (the_ppc_target): New static object.
2239 (the_linux_target): Define as pointer to the_ppc_target.
2240 * linux-riscv-low.cc (class riscv_target): New class.
2241 (the_riscv_target): New static object.
2242 (the_linux_target): Define as pointer to the_riscv_target.
2243 * linux-s390-low.cc (class s390_target): New class.
2244 (the_s390_target): New static object.
2245 (the_linux_target): Define as pointer to the_s390_target.
2246 * linux-sh-low.cc (class sh_target): New class.
2247 (the_sh_target): New static object.
2248 (the_linux_target): Define as pointer to the_sh_target.
2249 * linux-sparc-low.cc (class sparc_target): New class.
2250 (the_sparc_target): New static object.
2251 (the_linux_target): Define as pointer to the_sparc_target.
2252 * linux-tic6x-low.cc (class tic6x_target): New class.
2253 (the_tic6x_target): New static object.
2254 (the_linux_target): Define as pointer to the_tic6x_target.
2255 * linux-tile-low.cc (class tile_target): New class.
2256 (the_tile_target): New static object.
2257 (the_linux_target): Define as pointer to the_tile_target.
2258 * linux-xtensa-low.cc (class xtensa_target): New class.
2259 (the_xtensa_target): New static object.
2260 (the_linux_target): Define as pointer to the_xtensa_target.
2262 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2264 Turn some static functions in linux-low.cc into private methods of
2265 linux_process_target.
2267 * linux-low.cc (handle_extended_wait): Turn into ...
2268 (linux_process_target::handle_extended_wait): ...this. Call
2269 'mourn' on 'this' object instead of 'the_target'.
2270 (maybe_move_out_of_jump_pad): Turn into...
2271 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2272 (linux_low_filter_event): Turn into...
2273 (linux_process_target::filter_event): ...this.
2274 (linux_wait_for_event_filtered): Turn into...
2275 (linux_process_target::wait_for_event_filtered): ...this.
2276 (linux_wait_for_event): Turn into...
2277 (linux_process_target::wait_for_event): ...this.
2278 (linux_wait_1): Turn into...
2279 (linux_process_target::wait_1): ...this.
2280 (wait_for_sigstop): Turn into...
2281 (linux_process_target::wait_for_sigstop): ...this.
2282 (move_out_of_jump_pad_callback): Turn into...
2283 (linux_process_target::move_out_of_jump_pad): ...this.
2284 (stop_all_lwps): Turn into...
2285 (linux_process_target::stop_all_lwps): ...this.
2286 (start_step_over): Turn into...
2287 (linux_process_target::start_step_over): ...this.
2288 (complete_ongoing_step_over): Turn into...
2289 (linux_process_target::complete_ongoing_step_over): ...this.
2290 (proceed_all_lwps): Turn into...
2291 (linux_process_target::proceed_all_lwps): ...this.
2292 (unstop_all_lwps): Turn into...
2293 (linux_process_target::unstop_all_lwps): ...this.
2295 * linux-low.h (class linux_process_target)
2296 <handle_extended_wait>
2297 <maybe_move_out_of_jump_pad>
2299 <wait_for_event_filtered>
2303 <move_out_of_jump_pad>
2306 <complete_ongoing_step_over>
2308 <unstop_all_lwps>: Declare.
2310 Update the callers below.
2312 * linux-low.cc (linux_process_target::attach): Update.
2313 (linux_process_target::stabilize_threads): Ditto.
2314 (linux_process_target::wait): Ditto.
2316 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2318 * linux-low.h (struct linux_target_ops): Update the comment for
2319 'cannot_store_register' to return 0 or 1.
2320 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2323 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2325 * config.in: Re-generate.
2326 * configure: Re-generate.
2328 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2330 * regcache.cc (find_register_by_number): Update.
2331 * tdesc.cc (init_target_desc): Likewise.
2332 * tdesc.h (target_desc::reg_defs): Likewise.
2334 2020-03-12 Tom Tromey <tom@tromey.com>
2336 * configure: Rebuild.
2337 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2338 (WIN32APILIBS): New subst.
2339 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2341 (gdbsupport/%.o): Remove target.
2342 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2343 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2344 (WIN32APILIBS): New variable.
2345 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2346 (gdbreplay$(EXEEXT)): Likewise.
2348 2020-03-12 Tom Tromey <tom@tromey.com>
2350 * config.in, configure: Rebuild.
2351 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2352 * acinclude.m4: Include gettext-sister.m4.
2353 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2355 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2356 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2358 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2360 * acinclude.m4: Update path to selftest.m4.
2362 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2364 * configure.ac: Don't source bfd/development.sh, move
2365 GDB_AC_COMMON higher.
2366 * configure: Re-generate.
2368 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2370 * configure: Re-generate.
2372 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2374 * configure: Re-generate.
2376 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2378 * .dir-locals.el: New file.
2380 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2382 * .gitattributes: New file.
2384 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2386 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2387 reply into an S reply.
2388 * server.cc (disable_packet_T): New global.
2389 (captured_main): Set new global when appropriate.
2390 * server.h (disable_packet_T): Declare.
2392 2020-02-21 Tom Tromey <tom@tromey.com>
2394 * Makefile.in (mostlyclean): New target.
2396 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2398 * target.h (struct process_stratum_target): Remove.
2399 (class process_target): Rename to ...
2400 (class process_stratum_target): ... this.
2401 * linux-low.h (class linux_process_target): Derive from
2402 'process_stratum_target'.
2403 * linux-low.cc (linux_target_ops): Remove.
2404 (initialize_low): Set the_target to the singleton instance of
2405 linux_process_target.
2406 * lynx-low.h (class lynx_process_target): Derive from
2407 'process_stratum_target'.
2408 * lynx-low.cc (lynx_target_ops): Remove.
2409 (initialize_low): Set the_target to the singleton instance of
2410 lynx_process_target.
2411 * nto-low.h (class nto_process_target): Derive from
2412 'process_stratum_target'.
2413 * nto-low.cc (nto_target_ops): Remove.
2414 (initialize_low): Set the_target to the singleton instance of
2416 * win32-low.h (class win32_process_target): Derive from
2417 'process_stratum_target'.
2418 * win32-low.cc (win32_target_ops): Remove.
2419 (initialize_low): Set the_target to the singleton instance of
2420 win32_process_target.
2422 Replace 'the_target->pt' with 'the_target' in the uses below.
2424 * hostio.cc (hostio_error)
2429 * linux-aarch32-low.cc (arm_breakpoint_at)
2430 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2431 * linux-arm-low.cc (arm_sigreturn_next_pc)
2433 (arm_get_syscall_trapinfo)
2434 * linux-cris-low.cc (cris_breakpoint_at)
2435 * linux-crisv32-low.cc (cris_breakpoint_at)
2436 * linux-low.cc (handle_extended_wait)
2439 (linux_process_target::breakpoint_kind_from_pc)
2441 * linux-m32r-low.cc (m32r_breakpoint_at)
2442 * linux-mips-low.cc (mips_breakpoint_at)
2443 * linux-nios2-low.cc (nios2_breakpoint_at)
2444 * linux-ppc-low.cc (ppc_breakpoint_at)
2445 * linux-s390-low.cc (s390_get_hwcap)
2446 * linux-sh-low.cc (sh_breakpoint_at)
2447 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2448 (sparc_store_gregset_from_stack)
2449 (sparc_breakpoint_at)
2450 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2451 * linux-tile-low.cc (tile_breakpoint_at)
2452 * linux-x86-low.cc (x86_breakpoint_at)
2453 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2454 * mem-break.cc (bp_size)
2456 (insert_memory_breakpoint)
2457 (set_raw_breakpoint_at)
2458 (delete_raw_breakpoint)
2460 (uninsert_raw_breakpoint)
2461 (reinsert_raw_breakpoint)
2462 (validate_inserted_breakpoint)
2463 * regcache.cc (regcache_read_pc)
2465 * remote-utils.cc (putpkt_binary_1)
2468 (prepare_resume_reply)
2469 * server.cc (handle_general_set)
2472 (handle_qxfer_exec_file)
2473 (handle_qxfer_libraries_svr4)
2474 (handle_qxfer_osdata)
2475 (handle_qxfer_siginfo)
2476 (handle_qxfer_fdpic)
2480 (queue_stop_reply_callback)
2482 * target.cc (prepare_to_access_memory)
2483 (done_accessing_memory)
2484 (read_inferior_memory)
2485 (target_write_memory)
2486 (target_stop_and_wait)
2488 (target_mourn_inferior)
2489 (target_continue_no_signal)
2491 (target_supports_multi_process)
2494 (target_create_inferior)
2495 (target_post_create_inferior)
2497 (target_supports_fork_events)
2498 (target_supports_vfork_events)
2499 (target_supports_exec_events)
2500 (target_handle_new_gdb_connection)
2503 (fetch_inferior_registers)
2504 (store_inferior_registers)
2506 (target_supports_non_stop)
2508 (target_process_qsupported)
2509 (target_supports_catch_syscall)
2510 (target_get_ipa_tdesc_idx)
2511 (target_supports_tracepoints)
2512 (target_supports_fast_tracepoints)
2513 (target_get_min_fast_tracepoint_insn_len)
2514 (target_thread_stopped)
2516 (target_unpause_all)
2517 (target_stabilize_threads)
2518 (target_install_fast_tracepoint_jump_pad)
2520 (target_supports_disable_randomization)
2521 (target_supports_agent)
2522 (target_enable_btrace)
2523 (target_disable_btrace)
2524 (target_read_btrace)
2525 (target_read_btrace_conf)
2526 (target_supports_range_stepping)
2527 (target_supports_stopped_by_sw_breakpoint)
2528 (target_stopped_by_sw_breakpoint)
2529 (target_supports_stopped_by_hw_breakpoint)
2530 (target_supports_hardware_single_step)
2531 (target_stopped_by_hw_breakpoint)
2532 (target_breakpoint_kind_from_pc)
2533 (target_breakpoint_kind_from_current_state)
2534 (target_supports_software_single_step)
2535 (target_core_of_thread)
2536 (target_thread_name)
2537 (target_thread_handle)
2538 * win32-low.cc (do_initial_child_stuff)
2540 Rename target op default definitions listed below.
2542 * target.cc (process_target::post_create_inferior): Rename as ...
2543 (process_stratum_target::post_create_inferior): ... this.
2544 (process_target::prepare_to_access_memory): Rename as ...
2545 (process_stratum_target::prepare_to_access_memory): ... this.
2546 (process_target::done_accessing_memory): Rename as ...
2547 (process_stratum_target::done_accessing_memory): ... this.
2548 (process_target::look_up_symbols): Rename as ...
2549 (process_stratum_target::look_up_symbols): ... this.
2550 (process_target::supports_read_auxv): Rename as ...
2551 (process_stratum_target::supports_read_auxv): ... this.
2552 (process_target::read_auxv): Rename as ...
2553 (process_stratum_target::read_auxv): ... this.
2554 (process_target::supports_z_point_type): Rename as ...
2555 (process_stratum_target::supports_z_point_type): ... this.
2556 (process_target::insert_point): Rename as ...
2557 (process_stratum_target::insert_point): ... this.
2558 (process_target::remove_point): Rename as ...
2559 (process_stratum_target::remove_point): ... this.
2560 (process_target::stopped_by_sw_breakpoint): Rename as ...
2561 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2562 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2563 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2564 (process_target::stopped_by_hw_breakpoint): Rename as ...
2565 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2566 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2567 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2568 (process_target::supports_hardware_single_step): Rename as ...
2569 (process_stratum_target::supports_hardware_single_step): ... this.
2570 (process_target::stopped_by_watchpoint): Rename as ...
2571 (process_stratum_target::stopped_by_watchpoint): ... this.
2572 (process_target::stopped_data_address): Rename as ...
2573 (process_stratum_target::stopped_data_address): ... this.
2574 (process_target::supports_read_offsets): Rename as ...
2575 (process_stratum_target::supports_read_offsets): ... this.
2576 (process_target::read_offsets): Rename as ...
2577 (process_stratum_target::read_offsets): ... this.
2578 (process_target::supports_get_tls_address): Rename as ...
2579 (process_stratum_target::supports_get_tls_address): ... this.
2580 (process_target::get_tls_address): Rename as ...
2581 (process_stratum_target::get_tls_address): ... this.
2582 (process_target::hostio_last_error): Rename as ...
2583 (process_stratum_target::hostio_last_error): ... this.
2584 (process_target::supports_qxfer_osdata): Rename as ...
2585 (process_stratum_target::supports_qxfer_osdata): ... this.
2586 (process_target::qxfer_osdata): Rename as ...
2587 (process_stratum_target::qxfer_osdata): ... this.
2588 (process_target::supports_qxfer_siginfo): Rename as ...
2589 (process_stratum_target::supports_qxfer_siginfo): ... this.
2590 (process_target::qxfer_siginfo): Rename as ...
2591 (process_stratum_target::qxfer_siginfo): ... this.
2592 (process_target::supports_non_stop): Rename as ...
2593 (process_stratum_target::supports_non_stop): ... this.
2594 (process_target::async): Rename as ...
2595 (process_stratum_target::async): ... this.
2596 (process_target::start_non_stop): Rename as ...
2597 (process_stratum_target::start_non_stop): ... this.
2598 (process_target::supports_multi_process): Rename as ...
2599 (process_stratum_target::supports_multi_process): ... this.
2600 (process_target::supports_fork_events): Rename as ...
2601 (process_stratum_target::supports_fork_events): ... this.
2602 (process_target::supports_vfork_events): Rename as ...
2603 (process_stratum_target::supports_vfork_events): ... this.
2604 (process_target::supports_exec_events): Rename as ...
2605 (process_stratum_target::supports_exec_events): ... this.
2606 (process_target::handle_new_gdb_connection): Rename as ...
2607 (process_stratum_target::handle_new_gdb_connection): ... this.
2608 (process_target::handle_monitor_command): Rename as ...
2609 (process_stratum_target::handle_monitor_command): ... this.
2610 (process_target::core_of_thread): Rename as ...
2611 (process_stratum_target::core_of_thread): ... this.
2612 (process_target::supports_read_loadmap): Rename as ...
2613 (process_stratum_target::supports_read_loadmap): ... this.
2614 (process_target::read_loadmap): Rename as ...
2615 (process_stratum_target::read_loadmap): ... this.
2616 (process_target::process_qsupported): Rename as ...
2617 (process_stratum_target::process_qsupported): ... this.
2618 (process_target::supports_tracepoints): Rename as ...
2619 (process_stratum_target::supports_tracepoints): ... this.
2620 (process_target::read_pc): Rename as ...
2621 (process_stratum_target::read_pc): ... this.
2622 (process_target::write_pc): Rename as ...
2623 (process_stratum_target::write_pc): ... this.
2624 (process_target::supports_thread_stopped): Rename as ...
2625 (process_stratum_target::supports_thread_stopped): ... this.
2626 (process_target::thread_stopped): Rename as ...
2627 (process_stratum_target::thread_stopped): ... this.
2628 (process_target::supports_get_tib_address): Rename as ...
2629 (process_stratum_target::supports_get_tib_address): ... this.
2630 (process_target::get_tib_address): Rename as ...
2631 (process_stratum_target::get_tib_address): ... this.
2632 (process_target::pause_all): Rename as ...
2633 (process_stratum_target::pause_all): ... this.
2634 (process_target::unpause_all): Rename as ...
2635 (process_stratum_target::unpause_all): ... this.
2636 (process_target::stabilize_threads): Rename as ...
2637 (process_stratum_target::stabilize_threads): ... this.
2638 (process_target::supports_fast_tracepoints): Rename as ...
2639 (process_stratum_target::supports_fast_tracepoints): ... this.
2640 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2641 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2642 (process_target::emit_ops): Rename as ...
2643 (process_stratum_target::emit_ops): ... this.
2644 (process_target::supports_disable_randomization): Rename as ...
2645 (process_stratum_target::supports_disable_randomization): ... this.
2646 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2647 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2648 (process_target::qxfer_libraries_svr4): Rename as ...
2649 (process_stratum_target::qxfer_libraries_svr4): ... this.
2650 (process_target::supports_agent): Rename as ...
2651 (process_stratum_target::supports_agent): ... this.
2652 (process_target::enable_btrace): Rename as ...
2653 (process_stratum_target::enable_btrace): ... this.
2654 (process_target::disable_btrace): Rename as ...
2655 (process_stratum_target::disable_btrace): ... this.
2656 (process_target::read_btrace): Rename as ...
2657 (process_stratum_target::read_btrace): ... this.
2658 (process_target::read_btrace_conf): Rename as ...
2659 (process_stratum_target::read_btrace_conf): ... this.
2660 (process_target::supports_range_stepping): Rename as ...
2661 (process_stratum_target::supports_range_stepping): ... this.
2662 (process_target::supports_pid_to_exec_file): Rename as ...
2663 (process_stratum_target::supports_pid_to_exec_file): ... this.
2664 (process_target::pid_to_exec_file): Rename as ...
2665 (process_stratum_target::pid_to_exec_file): ... this.
2666 (process_target::supports_multifs): Rename as ...
2667 (process_stratum_target::supports_multifs): ... this.
2668 (process_target::multifs_open): Rename as ...
2669 (process_stratum_target::multifs_open): ... this.
2670 (process_target::multifs_unlink): Rename as ...
2671 (process_stratum_target::multifs_unlink): ... this.
2672 (process_target::multifs_readlink): Rename as ...
2673 (process_stratum_target::multifs_readlink): ... this.
2674 (process_target::breakpoint_kind_from_pc): Rename as ...
2675 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2676 (process_target::breakpoint_kind_from_current_state): Rename as ...
2677 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2678 (process_target::thread_name): Rename as ...
2679 (process_stratum_target::thread_name): ... this.
2680 (process_target::thread_handle): Rename as ...
2681 (process_stratum_target::thread_handle): ... this.
2682 (process_target::supports_software_single_step): Rename as ...
2683 (process_stratum_target::supports_software_single_step): ... this.
2684 (process_target::supports_catch_syscall): Rename as ...
2685 (process_stratum_target::supports_catch_syscall): ... this.
2686 (process_target::get_ipa_tdesc_idx): Rename as ...
2687 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2689 2020-02-20 Pedro Alves <palves@redhat.com>
2691 * target.cc (set_target_ops): Simply copy the given target pointer
2692 instead of creating a copy of the pointed object.
2694 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2696 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2699 * target.h (struct process_stratum_target): Remove the target op.
2700 (class process_target): Add the target op.
2701 (target_get_ipa_tdesc_idx): Update the macro.
2702 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2704 Update the derived classes and callers below.
2706 * linux-low.cc (linux_target_ops): Update.
2707 (linux_get_ipa_tdesc_idx): Turn into ...
2708 (linux_process_target::get_ipa_tdesc_idx): ... this.
2709 * linux-low.h (class linux_process_target): Update.
2710 * lynx-low.cc (lynx_target_ops): Update.
2711 * nto-low.cc (nto_target_ops): Update.
2712 * win32-low.cc (win32_target_ops): Update.
2714 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2716 Turn process_stratum_target's supports_catch_syscall op into a
2717 method of process_target.
2719 * target.h (struct process_stratum_target): Remove the target op.
2720 (class process_target): Add the target op.
2721 (target_supports_catch_syscall): Update the macro.
2722 * target.cc (process_target::supports_catch_syscall): Define.
2724 Update the derived classes and callers below.
2726 * linux-low.cc (linux_target_ops): Update.
2727 (linux_supports_catch_syscall): Turn into ...
2728 (linux_process_target::supports_catch_syscall): ... this.
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_software_single_step op
2737 into a 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_software_single_step): Update the macro.
2742 * target.cc (process_target::supports_software_single_step): Define.
2744 Update the derived classes and callers below.
2746 * linux-low.cc (linux_target_ops): Update.
2747 (linux_supports_software_single_step): Turn into ...
2748 (linux_process_target::supports_software_single_step): ... 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 thread_name and thread_handle ops
2757 into methods of process_target.
2759 * target.h (struct process_stratum_target): Remove the target ops.
2760 (class process_target): Add the target ops.
2761 (target_thread_name): Update the macro.
2762 (target_thread_handle): Update the macro.
2763 * target.cc (process_target::thread_name): Define.
2764 (process_target::thread_handle): Define.
2766 Update the derived classes and callers below.
2768 * linux-low.cc (linux_target_ops): Update.
2769 (linux_process_target::thread_name): Define.
2770 (linux_process_target::thread_handle): Define.
2771 * linux-low.h (class linux_process_target): Update.
2772 * lynx-low.cc (lynx_target_ops): Update.
2773 * nto-low.cc (nto_target_ops): Update.
2774 * win32-low.cc (win32_target_ops): Update.
2776 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2778 Turn process_stratum_target's breakpoint_kind_from_pc,
2779 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2780 ops into methods of process_target.
2782 * target.h (struct process_stratum_target): Remove the target op.
2783 (class process_target): Add the target op.
2784 (target_breakpoint_kind_from_pc): Update the macro.
2785 (target_breakpoint_kind_from_current_state): Update the macro.
2786 (default_breakpoint_kind_from_pc): Remove declaration.
2787 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2788 (process_target::breakpoint_kind_from_pc): ... this.
2789 (process_target::breakpoint_kind_from_current_state): Define.
2791 Update the derived classes and callers below.
2793 * mem-break.cc (bp_size): Update.
2794 (bp_opcode): Update.
2795 * linux-low.cc (linux_target_ops): Update.
2796 (linux_wait_1): Update.
2797 (linux_breakpoint_kind_from_pc): Turn into ...
2798 (linux_process_target::breakpoint_kind_from_pc): ... this.
2799 (linux_sw_breakpoint_from_kind): Turn into ...
2800 (linux_process_target::sw_breakpoint_from_kind): ... this.
2801 (linux_breakpoint_kind_from_current_state): Turn into ...
2802 (linux_process_target::breakpoint_kind_from_current_state): ... this.
2803 * linux-low.h (class linux_process_target): Update.
2804 * lynx-low.cc (lynx_target_ops): Update.
2805 (lynx_process_target::sw_breakpoint_from_kind): Define.
2806 * lynx-low.h (class lynx_process_target): Update.
2807 * nto-low.cc (nto_target_ops): Update.
2808 (nto_sw_breakpoint_from_kind): Turn into ...
2809 (nto_process_target::sw_breakpoint_from_kind): ... this.
2810 * nto-low.h (class nto_process_target): Update.
2811 * win32-low.cc (win32_target_ops): Update.
2812 (win32_sw_breakpoint_from_kind): Turn into ...
2813 (win32_process_target::sw_breakpoint_from_kind): ... this.
2814 * win32-low.h (class win32_process_target): Update.
2816 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2818 Turn process_stratum_target's multifs_open, multifs_readlink,
2819 multifs_unlink ops into methods of process_target.
2821 * target.h (struct process_stratum_target): Remove the target ops.
2822 (class process_target): Add the target ops. Also add
2824 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
2826 (process_target::supports_multifs): Define.
2827 (process_target::multifs_open): Define.
2828 (process_target::multifs_readlink): Define.
2829 (process_target::multifs_unlink): Define.
2831 Update the derived classes and callers below.
2833 * hostio.cc (handle_setfs): Update.
2834 (handle_open): Update.
2835 (handle_unlink): Update.
2836 (handle_readlink): Update.
2837 * linux-low.cc (linux_target_ops): Update.
2838 (linux_process_target::supports_multifs): Define.
2839 (linux_process_target::multifs_open): Define.
2840 (linux_process_target::multifs_readlink): Define.
2841 (linux_process_target::multifs_unlink): Define.
2842 * linux-low.h (class linux_process_target): Update.
2843 * lynx-low.cc (lynx_target_ops): Update.
2844 * nto-low.cc (nto_target_ops): Update.
2845 * win32-low.cc (win32_target_ops): Update.
2847 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2849 Turn process_stratum_target's pid_to_exec_file op into a method
2852 * target.h (struct process_stratum_target): Remove the target op.
2853 (class process_target): Add the target op. Also add
2854 'supports_pid_to_exec_file'.
2855 * target.cc (process_target::pid_to_exec_file): Define.
2856 (process_target::supports_pid_to_exec_file): Define.
2858 Update the derived classes and callers below.
2860 * server.cc (handle_qxfer_exec_file): Update.
2861 (handle_query): Update.
2862 * linux-low.cc (linux_target_ops): Update.
2863 (linux_process_target::supports_pid_to_exec_file): Define.
2864 (linux_process_target::pid_to_exec_file): Define.
2865 * linux-low.h (class linux_process_target): Update.
2866 * lynx-low.cc (lynx_target_ops): Update.
2867 * nto-low.cc (nto_target_ops): Update.
2868 * win32-low.cc (win32_target_ops): Update.
2870 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2872 Turn process_stratum_target's supports_range_stepping op into a
2873 method of process_target.
2875 * target.h (struct process_stratum_target): Remove the target op.
2876 (class process_target): Add the target op.
2877 (target_supports_range_stepping): Update the macro.
2878 * target.cc (process_target::supports_range_stepping): Define.
2880 Update the derived classes and callers below.
2882 * linux-low.cc (linux_target_ops): Update.
2883 (linux_supports_range_stepping): Turn into ...
2884 (linux_process_target::supports_range_stepping): ... this.
2885 * linux-low.h (class linux_process_target): Update.
2886 * lynx-low.cc (lynx_target_ops): Update.
2887 * nto-low.cc (nto_target_ops): Update.
2888 * win32-low.cc (win32_target_ops): Update.
2890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2892 Turn process_stratum_target's btrace-related ops (enable_btrace,
2893 disable_btrace, read_btrace, read_btrace_conf) into methods of
2896 * target.h (struct process_stratum_target): Remove the target ops.
2897 (class process_target): Add the target ops.
2898 (target_enable_btrace): Update.
2899 (target_disable_btrace): Update.
2900 (target_read_btrace): Update.
2901 (target_read_btrace_conf): Update.
2902 * target.cc (process_target::enable_btrace): Define.
2903 (process_target::disable_btrace): Define.
2904 (process_target::read_btrace): Define.
2905 (process_target::read_btrace_conf): Define.
2907 Update the derived classes and callers below.
2909 * linux-low.cc (linux_target_ops): Update.
2910 (linux_process_target:enable_btrace): Define as a wrapper around
2911 linux_enable_btrace.
2912 (linux_low_disable_btrace): Turn into ...
2913 (linux_process_target::disable_btrace): ... this.
2914 (linux_low_read_btrace): Turn into ...
2915 (linux_process_target::read_btrace): ... this.
2916 (linux_low_btrace_conf): Turn into ...
2917 (linux_process_target::read_btrace_conf): ... this.
2918 * linux-low.h (class linux_process_target): Update.
2919 * lynx-low.cc (lynx_target_ops): Update.
2920 * nto-low.cc (nto_target_ops): Update.
2921 * win32-low.cc (win32_target_ops): Update.
2923 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2925 Turn process_stratum_target's supports_agent op into a method of
2928 * target.h (struct process_stratum_target): Remove the target op.
2929 (class process_target): Add the target op.
2930 (target_supports_agent): Update the macro.
2931 * target.cc (process_target::supports_agent): Define.
2933 Update the derived classes and callers below.
2935 * linux-low.cc (linux_target_ops): Update.
2936 (linux_supports_agent): Turn into ...
2937 (linux_process_target::supports_agent): ... this.
2938 * linux-low.h (class linux_process_target): Update.
2939 * lynx-low.cc (lynx_target_ops): Update.
2940 * nto-low.cc (nto_target_ops): Update.
2941 * win32-low.cc (win32_target_ops): Update.
2943 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2945 Turn process_stratum_target's qxfer_libraries_svr4 op into a
2946 method of process_target.
2948 * target.h (struct process_stratum_target): Remove the target op.
2949 (class process_target): Add the target op. Also add
2950 'supports_qxfer_libraries_svr4'.
2951 * target.cc (process_target::qxfer_libraries_svr4): Define.
2952 (process_target::supports_qxfer_libraries_svr4): Define.
2954 Update the derived classes and callers below.
2956 * server.cc (handle_qxfer_libraries_svr4): Update.
2957 (handle_query): Update.
2958 * linux-low.cc (linux_target_ops): Update.
2959 (linux_process_target::supports_qxfer_libraries_svr4): Define.
2960 (linux_qxfer_libraries_svr4): Turn into ...
2961 (linux_process_target::qxfer_libraries_svr4): ... this.
2962 * linux-low.h (class linux_process_target): Update.
2963 * lynx-low.cc (lynx_target_ops): Update.
2964 * nto-low.cc (nto_target_ops): Update.
2965 * win32-low.cc (win32_target_ops): Update.
2967 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2969 Turn process_stratum_target's supports_disable_randomization op
2970 into a method of process_target.
2972 * target.h (struct process_stratum_target): Remove the target op.
2973 (class process_target): Add the target op.
2974 (target_supports_disable_randomization): Update the macro.
2975 * target.cc (process_target::supports_disable_randomization): Define.
2977 Update the derived classes and callers below.
2979 * linux-low.cc (linux_target_ops): Update.
2980 (linux_supports_disable_randomization): Turn into ...
2981 (linux_process_target::supports_disable_randomization): ... this.
2982 * linux-low.h (class linux_process_target): Update.
2983 * lynx-low.cc (lynx_target_ops): Update.
2984 * nto-low.cc (nto_target_ops): Update.
2985 * win32-low.cc (win32_target_ops): Update.
2987 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2989 Turn process_stratum_target's emit_ops op into a method of
2992 * target.h (struct process_stratum_target): Remove the target op.
2993 (class process_target): Add the target op.
2994 (target_emit_ops): Update the macro.
2995 * target.cc (process_target::emit_ops): Define.
2997 Update the derived classes and callers below.
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_emit_ops): Turn into ...
3001 (linux_process_target::emit_ops): ... this.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 * nto-low.cc (nto_target_ops): Update.
3005 * win32-low.cc (win32_target_ops): Update.
3007 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3010 and get_min_fast_tracepoint_insn_len ops into methods of
3013 * target.h (struct process_stratum_target): Remove the target ops.
3014 (class process_target): Add the target ops. Also add
3015 'supports_fast_tracepoints'.
3016 (target_supports_fast_tracepoints): Update the macro.
3017 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3018 (install_fast_tracepoint_jump_pad): Update and rename the macro
3020 (target_install_fast_tracepoint_jump_pad): ... this.
3021 * target.cc (process_target::supports_fast_tracepoints): Define.
3022 (process_target::install_fast_tracepoint_jump_pad): Define.
3023 (process_target::get_min_fast_tracepoint_insn_len): Define.
3025 Update the derived classes and callers below.
3027 * tracepoint.cc (install_fast_tracepoint): Update.
3028 * linux-low.cc (linux_target_ops): Update.
3029 (linux_process_target::supports_fast_tracepoints): Define.
3030 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3031 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3032 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3033 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3034 * linux-low.h (class linux_process_target): Update.
3035 * lynx-low.cc (lynx_target_ops): Update.
3036 * nto-low.cc (nto_target_ops): Update.
3037 * win32-low.cc (win32_target_ops): Update.
3039 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3041 Turn process_stratum_target's stabilize_threads op into a
3042 method of process_target.
3044 * target.h (struct process_stratum_target): Remove the target op.
3045 (class process_target): Add the target op.
3046 (target_stabilize_threads): Update the macro.
3047 * target.cc (process_target::stabilize_threads): Define.
3049 Update the derived classes and callers below.
3051 * server.cc (handle_status): Update.
3052 * tracepoint.cc (cmd_qtdp): Update.
3053 (cmd_qtstart): Update.
3054 * linux-low.cc (linux_target_ops): Update.
3055 (linux_stabilize_threads): Turn into ...
3056 (linux_process_target::stabilize_threads): ... this.
3057 (linux_wait_1): Update.
3058 * linux-low.h (class linux_process_target): Update.
3059 * lynx-low.cc (lynx_target_ops): Update.
3060 * nto-low.cc (nto_target_ops): Update.
3061 * win32-low.cc (win32_target_ops): Update.
3063 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3065 Turn process_stratum_target's pause_all and unpause_all ops
3066 into methods of process_target.
3068 * target.h (struct process_stratum_target): Remove the target ops.
3069 (class process_target): Add the target ops.
3070 (pause_all): Update the macro and rename to...
3071 (target_pause_all): ... this.
3072 (unpause_all): Update the macro and rename to...
3073 (target_unpause_all): ... this.
3074 * target.cc (process_target::pause_all): Define.
3075 (process_target::unpause_all): Define.
3077 Update the derived classes and callers below.
3079 * server.cc (handle_status): Update.
3080 * tracepoint.cc (clear_installed_tracepoints): Update.
3082 (cmd_qtstart): Update.
3083 (stop_tracing): Update.
3084 (cmd_qtstatus): Update.
3085 (upload_fast_traceframes): Update.
3086 (run_inferior_command): Update.
3087 * linux-low.cc (linux_target_ops): Update.
3088 (linux_pause_all): Turn into ...
3089 (linux_process_target::pause_all): ... this.
3090 (linux_unpause_all): Turn into ...
3091 (linux_process_target::unpause_all): ... this.
3092 (linux_process_target::prepare_to_access_memory): Update.
3093 (linux_process_target::done_accessing_memory): Update.
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 get_tib_address op into a method of
3104 * target.h (struct process_stratum_target): Remove the target op.
3105 (class process_target): Add the target op. Also add
3106 'supports_get_tib_address'.
3107 * target.cc (process_target::get_tib_address): Define.
3108 (process_target::supports_get_tib_address): Define.
3110 Update the derived classes and callers below.
3112 * server.cc (handle_query): Update.
3113 * linux-low.cc (win32_target_ops): 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.
3117 (win32_process_target::supports_get_tib_address): Define.
3118 (win32_get_tib_address): Turn into ...
3119 (win32_process_target::get_tib_address): ... this.
3120 * win32-low.h (class win32_process_target): Update.
3122 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3124 Turn process_stratum_target's thread_stopped op into a method of
3127 * target.h (struct process_stratum_target): Remove the target op.
3128 (class process_target): Add the target op. Also add
3129 'supports_thread_stopped'.
3130 (target_thread_stopped): Update the macro.
3131 * target.cc (process_target::thread_stopped): Define.
3132 (process_target::supports_thread_stopped): Define.
3133 (prepare_to_access_memory): Update.
3135 Update the derived classes and callers below.
3137 * server.cc (queue_stop_reply_callback): Update.
3138 * linux-low.cc (linux_target_ops): Update.
3139 (linux_process_target::supports_thread_stopped): Define.
3140 (linux_thread_stopped): Turn into ...
3141 (linux_process_target::thread_stopped): ... this.
3142 * linux-low.h (class linux_process_target): Update.
3143 * lynx-low.cc (lynx_target_ops): Update.
3144 * nto-low.cc (nto_target_ops): Update.
3145 * win32-low.cc (win32_target_ops): Update.
3147 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3149 Turn process_stratum_target's read_pc and write_pc ops into
3150 methods of process_target.
3152 * target.h (struct process_stratum_target): Remove the target ops.
3153 (class process_target): Add the target ops.
3154 * target.cc (process_target::read_pc): Define.
3155 (process_target::write_pc): Define.
3157 Update the derived classes and callers below.
3159 * regcache.cc (regcache_read_pc): Update.
3160 (regcache_write_pc): Update.
3161 * linux-low.cc (linux_target_ops): Update.
3162 (linux_read_pc): Turn into ...
3163 (linux_process_target::read_pc): ... this.
3164 (linux_write_pc): Turn into ...
3165 (linux_process_target::write_pc): ... this.
3166 * linux-low.h (class linux_process_target): Update.
3167 * lynx-low.cc (lynx_target_ops): Update.
3168 * nto-low.cc (nto_target_ops): Update.
3169 * win32-low.cc (win32_target_ops): Update.
3171 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3173 Turn process_stratum_target's supports_tracepoints op into a
3174 method of process_target.
3176 * target.h (struct process_stratum_target): Remove the target op.
3177 (class process_target): Add the target op.
3178 (target_supports_tracepoints): Update the macro.
3179 * target.cc (process_target::supports_tracepoints): Define.
3181 Update the derived classes and callers below.
3183 * linux-low.cc (linux_target_ops): Update.
3184 (linux_supports_tracepoints): Turn into ...
3185 (linux_process_target::supports_tracepoints): ... this.
3186 * linux-low.h (class linux_process_target): Update.
3187 * lynx-low.cc (lynx_target_ops): Update.
3188 * nto-low.cc (nto_target_ops): Update.
3189 * win32-low.cc (win32_target_ops): Update.
3191 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3193 Turn process_stratum_target's process_qsupported op into a method
3196 * target.h (struct process_stratum_target): Remove the target op.
3197 (class process_target): Add the target op.
3198 (target_process_qsupported): Update the macro.
3199 * target.cc (process_target::process_qsupported): Define.
3201 Update the derived classes and callers below.
3203 * linux-low.cc (linux_target_ops): Update.
3204 (linux_process_qsupported): Turn into ...
3205 (linux_process_target::process_qsupported): ... this.
3206 * linux-low.h (class linux_process_target): Update.
3207 * lynx-low.cc (lynx_target_ops): Update.
3208 * nto-low.cc (nto_target_ops): Update.
3209 * win32-low.cc (win32_target_ops): Update.
3211 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3213 Turn process_stratum_target's read_loadmap op into a method of
3216 * target.h (struct process_stratum_target): Remove the target op.
3217 (class process_target): Add the target op. Also add
3218 'supports_read_loadmap'.
3219 * target.cc (process_target::read_loadmap): Define.
3220 (process_target::supports_read_loadmap): Define.
3222 Update the derived classes and callers below.
3224 * server.cc (handle_qxfer_fdpic): Update.
3225 (handle_query): Update.
3226 * linux-low.cc (linux_target_ops): Update.
3227 (linux_process_target::supports_read_loadmap): Define.
3228 (linux_read_loadmap): Turn into ...
3229 (linux_process_target::read_loadmap): ... this.
3230 * linux-low.h (class linux_process_target): Update.
3231 * lynx-low.cc (lynx_target_ops): Update.
3232 * nto-low.cc (nto_target_ops): Update.
3233 * win32-low.cc (win32_target_ops): Update.
3235 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3237 Turn process_stratum_target's core_of_thread op into a method of
3240 * target.h (struct process_stratum_target): Remove the target op.
3241 (class process_target): Add the target op.
3242 (target_core_of_thread): Update the macro.
3243 * target.cc (process_target::core_of_thread): Define.
3245 Update the derived classes and callers below.
3247 * linux-low.cc (linux_target_ops): Update.
3248 (linux_process_target::core_of_thread): Define.
3249 * linux-low.h (class linux_process_target): Update.
3250 * lynx-low.cc (lynx_target_ops): Update.
3251 * nto-low.cc (nto_target_ops): Update.
3252 * win32-low.cc (win32_target_ops): Update.
3254 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3256 Turn process_stratum_target's handle_monitor_command op into a
3257 method of process_target.
3259 * target.h (struct process_stratum_target): Remove the target op.
3260 (class process_target): Add the target op.
3261 (target_handle_monitor_command): Update the macro.
3262 * target.cc (process_target::handle_monitor_command): Define.
3264 Update the derived classes and callers below.
3266 * server.cc (handle_query): Update.
3267 * linux-low.cc (linux_target_ops): Update.
3268 (linux_process_target::handle_monitor_command): Define.
3269 * linux-low.h (class linux_process_target): Update.
3270 * lynx-low.cc (lynx_target_ops): Update.
3271 * nto-low.cc (nto_target_ops): Update.
3272 * win32-low.cc (win32_target_ops): Update.
3274 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3276 Turn process_stratum_target's handle_new_gdb_connection op into a
3277 method of process_target.
3279 * target.h (struct process_stratum_target): Remove the target op.
3280 (class process_target): Add the target op.
3281 (target_handle_new_gdb_connection): Update the macro.
3282 * target.cc (process_target::handle_new_gdb_connection): Define.
3284 Update the derived classes and callers below.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_handle_new_gdb_connection): Turn into ...
3288 (linux_process_target::handle_new_gdb_connection): ... this.
3289 * linux-low.h (class linux_process_target): Update.
3290 * lynx-low.cc (lynx_target_ops): Update.
3291 * nto-low.cc (nto_target_ops): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3296 Turn process_stratum_target's supports_fork_events,
3297 supports_vfork_events, and supports_exec_events ops into methods
3300 * target.h (struct process_stratum_target): Remove the target ops.
3301 (class process_target): Add the target ops.
3302 (target_supports_fork_events): Update the macro.
3303 (target_supports_vfork_events): Update the macro.
3304 (target_supports_exec_events): Update the macro.
3305 * target.cc (process_target::supports_fork_events): Define.
3306 (process_target::supports_vfork_events): Define.
3307 (process_target::supports_exec_events): Define.
3309 Update the derived classes and callers below.
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_supports_fork_events): Turn into ...
3313 (linux_process_target::supports_fork_events): ... this.
3314 (linux_supports_vfork_events): Turn into ...
3315 (linux_process_target::supports_vfork_events): ... this.
3316 (linux_supports_exec_events): Turn into ...
3317 (linux_process_target::supports_exec_events): ... this.
3318 * linux-low.h (class linux_process_target): Update.
3319 * lynx-low.cc (lynx_target_ops): Update.
3320 * nto-low.cc (nto_target_ops): Update.
3321 * win32-low.cc (win32_target_ops): Update.
3323 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3325 Turn process_stratum_target's supports_multi_process op into a
3326 method of process_target.
3328 * target.h (struct process_stratum_target): Remove the target op.
3329 (class process_target): Add the target op.
3330 * target.cc (process_target::supports_multi_process): Define.
3331 (target_supports_multi_process): Update.
3333 Update the derived classes and callers below.
3335 * linux-low.cc (linux_target_ops): Update.
3336 (linux_supports_multi_process): Turn into ...
3337 (linux_process_target::supports_multi_process): ... this.
3338 * linux-low.h (class linux_process_target): Update.
3339 * lynx-low.cc (lynx_target_ops): Update.
3340 * nto-low.cc (nto_target_ops): Update.
3341 * win32-low.cc (win32_target_ops): Update.
3343 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3345 Turn process_stratum_target's supports_non_stop, async, and
3346 start_non_stop ops into methods of process_target.
3348 * target.h (struct process_stratum_target): Remove the target ops.
3349 (class process_target): Add the target ops.
3350 (target_supports_non_stop): Update the macro.
3351 (target_async): Update the macro.
3352 (start_non_stop): Remove declaration.
3353 * target.cc (process_target::supports_non_stop): Define.
3354 (process_target::async): Define.
3355 (process_target::start_non_stop): Define.
3356 (start_non_stop): Remove.
3358 Update the derived classes and callers below.
3360 * server.cc (handle_qxfer_siginfo): Update.
3361 (handle_query): Update.
3362 * linux-low.cc (linux_target_ops): Update.
3363 (linux_supports_non_stop): Turn into ...
3364 (linux_process_target::supports_non_stop): ... this.
3365 (linux_async): Turn into ...
3366 (linux_process_target::async): ... this.
3367 (linux_start_non_stop): Turn into ...
3368 (linux_process_target::start_non_stop): ... this.
3369 * linux-low.h (class linux_process_target): Update.
3370 * lynx-low.cc (lynx_target_ops): Update.
3371 * nto-low.cc (nto_target_ops): Update.
3372 (nto_supports_non_stop): Remove; rely on the default behavior
3374 * win32-low.cc (win32_target_ops): Update.
3376 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3378 Turn process_stratum_target's qxfer_siginfo op into a method of
3381 * target.h (struct process_stratum_target): Remove the target op.
3382 (class process_target): Add the target op. Also add
3383 'supports_qxfer_siginfo'.
3384 * target.cc (process_target::qxfer_siginfo): Define.
3385 (process_target::supports_qxfer_siginfo): Define.
3387 Update the derived classes and callers below.
3389 * server.cc (handle_qxfer_siginfo): Update.
3390 (handle_query): Update.
3391 * linux-low.cc (linux_target_ops): Update.
3392 (linux_process_target::supports_qxfer_siginfo): Define.
3393 (linux_xfer_siginfo): Turn into ...
3394 (linux_process_target::qxfer_siginfo): ... this.
3395 * linux-low.h (class linux_process_target): Update.
3396 * lynx-low.cc (lynx_target_ops): Update.
3397 * nto-low.cc (nto_target_ops): Update.
3398 * win32-low.cc (win32_target_ops): Update.
3400 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3402 Turn process_stratum_target's qxfer_osdata op into a method of
3405 * target.h (struct process_stratum_target): Remove the target op.
3406 (class process_target): Add the target op. Also add
3407 'supports_qxfer_osdata'.
3408 * target.cc (process_target::qxfer_osdata): Define.
3409 (process_target::supports_qxfer_osdata): Define.
3411 Update the derived classes and callers below.
3413 * server.cc (handle_qxfer_osdata): Update.
3414 (handle_query): Update.
3415 * linux-low.cc (linux_target_ops): Update.
3416 (linux_process_target::supports_qxfer_osdata): Define.
3417 (linux_qxfer_osdata): Turn into ...
3418 (linux_process_target::qxfer_osdata): ... this.
3419 * linux-low.h (class linux_process_target): Update.
3420 * lynx-low.cc (lynx_target_ops): Update.
3421 * nto-low.cc (nto_target_ops): Update.
3422 * win32-low.cc (win32_target_ops): Update.
3424 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3426 Turn process_stratum_target's hostio_last_error op into a
3427 method of process_target.
3429 * target.h (struct process_stratum_target): Remove the target op.
3430 (class process_target): Add the target op.
3431 * target.cc: Add "hostio.h" to includes.
3432 (process_target::hostio_last_error): Define.
3434 Update the derived classes and callers below.
3436 * hostio.cc (hostio_error): Update.
3437 * linux-low.cc: Remove "hostio.h" from includes.
3438 (linux_target_ops): Update.
3439 * lynx-low.cc (lynx_target_ops): Update.
3440 * nto-low.cc (nto_target_ops): Update.
3441 * win32-low.h (class win32_process_target): Update.
3442 * win32-low.cc (win32_target_ops): Update.
3443 (wince_hostio_last_error): Turn into ...
3444 (win32_process_target::hostio_last_error): ... this.
3446 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3448 Turn process_stratum_target's get_tls_address op into a method of
3451 * target.h (struct process_stratum_target): Remove the target op.
3452 (class process_target): Add the target op. Also add
3453 'supports_get_tls_address'.
3454 * target.cc (process_target::get_tls_address): Define.
3455 (process_target::supports_get_tls_address): Define.
3457 Update the derived classes and callers below.
3459 * server.cc (handle_query): Update.
3460 * linux-low.cc (linux_target_ops): Update.
3461 (linux_process_target::supports_get_tls_address): Define.
3462 (linux_process_target::get_tls_address): Define.
3463 * linux-low.h (class linux_process_target): Update.
3464 * lynx-low.cc (lynx_target_ops): Update.
3465 * nto-low.cc (nto_target_ops): Update.
3466 * win32-low.cc (win32_target_ops): Update.
3468 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3470 Turn process_stratum_target's read_offsets op into a method of
3473 * target.h (struct process_stratum_target): Remove the target op.
3474 (class process_target): Add the target op. Also add
3475 'supports_read_offsets'.
3476 * target.cc (process_target::read_offsets): Define.
3477 (process_target::supports_read_offsets): Define.
3479 Update the derived classes and callers below.
3481 * server.cc (handle_query): Update.
3482 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3483 (linux_target_ops): Update.
3484 (linux_process_target::supports_read_offsets): Define.
3485 (linux_read_offsets): Turn into ...
3486 (linux_process_target::read_offsets): ... this.
3487 * linux-low.h (class linux_process_target): Update.
3488 * lynx-low.cc (lynx_target_ops): Update.
3489 * nto-low.cc (nto_target_ops): Update.
3490 * win32-low.cc (win32_target_ops): Update.
3492 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3494 Turn process_stratum_target's stopped_by_watchpoint and
3495 stopped_data_address ops into methods of process_target.
3497 * target.h (struct process_stratum_target): Remove the target ops.
3498 (class process_target): Add the target ops.
3499 * target.cc (process_target::stopped_by_watchpoint): Define.
3500 (process_target::stopped_data_address): Define.
3502 Update the derived classes and callers below.
3504 * remote-utils.cc (prepare_resume_reply): Update.
3505 * linux-low.cc (linux_target_ops): Update.
3506 (linux_stopped_by_watchpoint): Turn into ...
3507 (linux_process_target::stopped_by_watchpoint): ... this.
3508 (linux_stopped_data_address): Turn into ...
3509 (linux_process_target::stopped_data_address): ... this.
3510 * linux-low.h (class linux_process_target): Update.
3511 * lynx-low.cc (lynx_target_ops): Update.
3512 * nto-low.cc (nto_target_ops): Update.
3513 (nto_stopped_by_watchpoint): Turn into ...
3514 (nto_process_target::stopped_by_watchpoint): ... this.
3515 (nto_stopped_data_address): Turn into ...
3516 (nto_process_target::stopped_data_address): ... this.
3517 * nto-low.h (class nto_process_target): Update.
3518 * win32-low.cc (win32_target_ops): Update.
3519 (win32_stopped_by_watchpoint): Turn into ...
3520 (win32_process_target::stopped_by_watchpoint): ... this.
3521 (win32_stopped_data_address): Turn into ...
3522 (win32_process_target::stopped_data_address): ... this.
3523 * win32-low.h (class win32_process_target): Update.
3525 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3527 Turn process_stratum_target's supports_hardware_single_step op into
3528 a method of process_target.
3530 * target.h (struct process_stratum_target): Remove the target op.
3531 (class process_target): Add the target op.
3532 (target_supports_hardware_single_step): Update the macro.
3533 (target_can_do_hardware_single_step): Remove declaration.
3534 * target.cc (process_target::supports_hardware_single_step): Define.
3535 (target_can_do_hardware_single_step): Remove.
3537 Update the derived classes and callers below.
3539 * linux-low.h (class linux_process_target): Update.
3540 * linux-low.cc (linux_target_ops): Update.
3541 (linux_supports_hardware_single_step): Turn into ...
3542 (linux_process_target::supports_hardware_single_step): ... this.
3543 * lynx-low.h (class lynx_process_target): Update.
3544 * lynx-low.cc (lynx_target_ops): Update.
3545 (lynx_process_target::supports_hardware_single_step): Define.
3546 * nto-low.h (class nto_process_target): Update.
3547 * nto-low.cc (nto_target_ops): Update.
3548 (nto_process_target::supports_hardware_single_step): Define.
3549 * win32-low.h (class win32_process_target): Update.
3550 * win32-low.cc (win32_target_ops): Update.
3551 (win32_process_target::supports_hardware_single_step): Define.
3553 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3555 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3556 ops into methods of process_target.
3558 * target.h (struct process_stratum_target): Remove the target ops.
3559 (class process_target): Add the target ops.
3560 (target_stopped_by_hw_breakpoint): Update the macro.
3561 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3562 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3563 (process_target::supports_stopped_by_hw_breakpoint): Define.
3565 Update the derived classes and callers below.
3567 * linux-low.cc (linux_target_ops): Update.
3568 (linux_stopped_by_hw_breakpoint): Turn into ...
3569 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3570 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3571 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3572 * linux-low.h (class linux_process_target): Update.
3573 * lynx-low.cc (lynx_target_ops): Update.
3574 * nto-low.cc (nto_target_ops): Update.
3575 * win32-low.cc (win32_target_ops): Update.
3577 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3579 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3580 ops into methods of process_target.
3582 * target.h (struct process_stratum_target): Remove the target ops.
3583 (class process_target): Add the target ops.
3584 (target_stopped_by_sw_breakpoint): Update the macro.
3585 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3586 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3587 (process_target::supports_stopped_by_sw_breakpoint): Define.
3589 Update the derived classes and callers below.
3591 * linux-low.cc (linux_target_ops): Update.
3592 (linux_stopped_by_sw_breakpoint): Turn into ...
3593 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3594 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3595 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3596 * linux-low.h (class linux_process_target): Update.
3597 * lynx-low.cc (lynx_target_ops): Update.
3598 * nto-low.cc (nto_target_ops): Update.
3599 * win32-low.cc (win32_target_ops): Update.
3601 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3603 Turn process_stratum_target's insert_point and remove_point ops
3604 into methods of process_target.
3606 * target.h (struct process_stratum_target): Remove the target ops.
3607 (class process_target): Add the target ops.
3608 * target.cc (process_target::insert_point): Define.
3609 (process_target::remove_point): Define.
3611 Update the derived classes and callers below.
3613 * mem-break.cc (set_raw_breakpoint_at): Update.
3614 (delete_raw_breakpoint): Update.
3615 (uninsert_raw_breakpoint): Update.
3616 (reinsert_raw_breakpoint): Update.
3617 * linux-low.cc (linux_target_ops): Update.
3618 (linux_insert_point): Turn into ...
3619 (linux_process_target::insert_point): ... this.
3620 (linux_remove_point): Turn into ...
3621 (linux_process_target::remove_point): ... this.
3622 * linux-low.h (class linux_process_target): Update.
3623 * lynx-low.cc (lynx_target_ops): Update.
3624 * nto-low.cc (nto_target_ops): Update.
3625 (nto_insert_point): Turn into ...
3626 (nto_process_target::insert_point): ... this.
3627 (nto_remove_point): Turn into ...
3628 (nto_process_target::remove_point): ... this.
3629 * nto-low.h (class nto_process_target): Update.
3630 * win32-low.cc (win32_target_ops): Update.
3631 (win32_insert_point): Turn into ...
3632 (win32_process_target::insert_point): ... this.
3633 (win32_remove_point): Turn into ...
3634 (win32_process_target::remove_point): ... this.
3635 * win32-low.h (class win32_process_target): Update.
3637 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3639 Turn process_stratum_target's supports_z_point_type op into a
3640 method of process_target.
3642 * target.h (struct process_stratum_target): Remove the target op.
3643 (class process_target): Add the target op.
3644 * target.cc (process_target::supports_z_point_type): Define.
3646 Update the derived classes and callers below.
3648 * mem-break.cc (z_type_supported): Update.
3649 * linux-low.cc (linux_target_ops): Update.
3650 (linux_supports_z_point_type): Turn into ...
3651 (linux_process_target::supports_z_point_type): ... this.
3652 * linux-low.h (class linux_process_target): Update.
3653 * lynx-low.cc (lynx_target_ops): Update.
3654 * nto-low.cc (nto_target_ops): Update.
3655 (nto_supports_z_point_type): Turn into ...
3656 (nto_process_target::supports_z_point_type): ... this.
3657 * nto-low.h (class nto_process_target): Update.
3658 * win32-low.cc (win32_target_ops): Update.
3659 (win32_supports_z_point_type): Turn into ...
3660 (win32_process_target::supports_z_point_type): ... this.
3661 * win32-low.h (class win32_process_target): Update.
3663 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3665 Turn process_stratum_target's read_auxv op into a method of
3668 * target.h (class process_stratum_target): Remove the target op.
3669 (struct process_target): Add the target op. Also add
3670 'supports_read_auxv'.
3671 * target.cc (process_target::read_auxv): Define.
3672 (process_target::supports_read_auxv): Define.
3674 Update the derived classes and callers below.
3676 * server.cc (handle_qxfer_auxv): Update.
3677 (handle_query): Update.
3678 * linux-low.cc (linux_target_ops): Update.
3679 (linux_process_target::supports_read_auxv): Define.
3680 (linux_read_auxv): Turn into ...
3681 (linux_process_target::read_auxv): ... this.
3682 * linux-low.h (class linux_process_target): Update.
3683 * lynx-low.cc (lynx_target_ops): Update.
3684 * nto-low.cc (nto_target_ops): Update.
3685 (nto_process_target::supports_read_auxv): Define.
3686 (nto_read_auxv): Turn into ...
3687 (nto_process_target::read_auxv): ... this.
3688 * nto-low.h (class nto_process_target): Update.
3689 * win32-low.cc (win32_target_ops): Update.
3691 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3693 Turn process_stratum_target's request_interrupt op into a method of
3696 * target.h (struct process_stratum_target): Remove the target op.
3697 (class process_target): Add the target op.
3699 Update the derived classes and callers below.
3701 * remote-utils.cc (putpkt_binary_1): Update.
3702 (input_interrupt): Update.
3704 * server.cc (handle_v_requests): Update.
3705 * linux-low.cc (linux_target_ops): Update.
3706 (linux_request_interrupt): Turn into ...
3707 (linux_process_target::request_interrupt): ... this.
3708 * linux-low.h (class linux_process_target): Update.
3709 * lynx-low.cc (lynx_target_ops): Update.
3710 (lynx_request_interrupt): Turn into ...
3711 (lynx_process_target::request_interrupt): ... this.
3712 * lynx-low.h (class lynx_process_target): Update.
3713 * nto-low.cc (nto_target_ops): Update.
3714 (nto_request_interrupt): Turn into ...
3715 (nto_process_target::request_interrupt): ... this.
3716 * nto-low.h (class nto_process_target): Update.
3717 * win32-low.cc (win32_target_ops): Update.
3718 (win32_request_interrupt): Turn into ...
3719 (win32_process_target::request_interrupt): ... this.
3720 * win32-low.h (class win32_process_target): Update.
3722 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3724 Turn process_stratum_target's look_up_symbols op into a method of
3727 * target.h (struct process_stratum_target): Remove the target op.
3728 (class process_target): Add the target op.
3729 * target.cc (process_target::look_up_symbols): Define.
3731 Update the derived classes and callers below.
3733 * server.cc (handle_query): Update.
3734 * linux-low.cc (linux_target_ops): Update.
3735 (linux_look_up_symbols): Turn into ...
3736 (linux_process_target::look_up_symbols): ... this.
3737 * linux-low.h (class linux_process_target): Update.
3738 * lynx-low.cc (lynx_target_ops): Update.
3739 * nto-low.cc (nto_target_ops): Update.
3740 * win32-low.cc (win32_target_ops): Update.
3742 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3744 Turn process_stratum_target's read_memory and write_memory
3745 ops into methods of process_target.
3747 * target.h (struct process_stratum_target): Remove the target ops.
3748 (class process_target): Add the target ops.
3750 Update the derived classes and callers below.
3752 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3753 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3754 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3755 (arm_get_syscall_trapinfo): Update.
3756 * linux-cris-low.cc (cris_breakpoint_at): Update.
3757 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3758 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3759 * linux-mips-low.cc (mips_breakpoint_at): Update.
3760 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3761 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3762 * linux-sh-low.cc (sh_breakpoint_at): Update.
3763 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3764 (sparc_store_gregset_from_stack): Update.
3765 (sparc_breakpoint_at): Update.
3766 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3767 * linux-tile-low.cc (tile_breakpoint_at): Update.
3768 * linux-x86-low.cc (x86_breakpoint_at): Update.
3769 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3770 * mem-brea.cc (insert_memory_breakpoint): Update.
3771 (validate_inserted_breakpoint): Update.
3772 * target.cc (read_inferior_memory): Update.
3773 (target_write_memory): Update.
3774 * linux-low.cc (linux_target_ops): Update.
3775 (linux_read_memory): Make a wrapper around the read_memory target
3777 (linux_process_target::read_memory): Rename from linux_read_memory.
3778 (linux_write_memory): Turn into ...
3779 (linux_process_target::write_memory): ... this.
3780 * linux-low.h (class linux_process_target): Update.
3781 * lynx-low.cc (lynx_target_ops): Update.
3782 (lynx_read_memory): Turn into ...
3783 (lynx_process_target::read_memory): ... this.
3784 (lynx_write_memory): Turn into ...
3785 (lynx_process_target::write_memory): ... this.
3786 * lynx-low.h (class lynx_process_target): Update.
3787 * nto-low.cc (nto_target_ops): Update.
3788 (nto_read_memory): Turn into ...
3789 (nto_process_target::read_memory): ... this.
3790 (nto_write_memory): Turn into ...
3791 (nto_process_target::write_memory): ... this.
3792 * nto-low.h (class nto_process_target): Update.
3793 * win32-low.cc (win32_target_ops): Update.
3794 (win32_read_inferior_memory): Turn into ...
3795 (win32_process_target::read_memory): ... this.
3796 (win32_write_inferior_memory): Turn into ...
3797 (win32_process_target::write_memory): ... this.
3798 * win32-low.h (class win32_process_target): Update.
3800 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3802 Turn process_stratum_target's prepare_to_access_memory and
3803 done_accessing_memory ops into methods of process_target.
3805 * target.h (struct process_stratum_target): Remove the target ops.
3806 (class process_target): Add the target ops.
3807 * target.cc (process_target::prepare_to_access_memory): Define.
3808 (process_target::done_accessing_memory): Define.
3809 (prepare_to_access_memory): Update.
3810 (done_accessing_memory): Update.
3812 Update the derived classes and callers below.
3814 * linux-low.cc (linux_target_ops): Update.
3815 (linux_prepare_to_access_memory): Turn into ...
3816 (linux_process_target::prepare_to_access_memory): ... this.
3817 (linux_done_accessing_memory): Turn into ...
3818 (linux_process_target::done_accessing_memory): ... this.
3819 * linux-low.h (class linux_process_target): Update.
3820 * lynx-low.cc (lynx_target_ops): Update.
3821 * nto-low.cc (nto_target_ops): Update.
3822 * win32-low.cc (win32_target_ops): Update.
3824 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3826 Turn process_stratum_target's fetch_registers and store_registers
3827 ops into methods of process_target.
3829 * target.h (struct process_stratum_target): Remove the target ops.
3830 (class process_target): Add the target ops.
3831 (fetch_inferior_registers): Update the macro.
3832 (store_inferior_registers): Update the macro.
3834 Update the derived classes and callers below.
3836 * linux-low.cc (linux_target_ops): Update.
3837 (linux_fetch_registers): Turn into ...
3838 (linux_process_target::fetch_registers): ... this.
3839 (linux_store_registers): Turn into ...
3840 (linux_process_target::store_registers): ... this.
3841 * linux-low.h (class linux_process_target): Update.
3842 * lynx-low.cc (lynx_target_ops): Update.
3843 (lynx_fetch_registers): Turn into ...
3844 (lynx_process_target::fetch_registers): ... this.
3845 (lynx_store_registers): Turn into ...
3846 (lynx_process_target::store_registers): ... this.
3847 * lynx-low.h (class lynx_process_target): Update.
3848 * nto-low.cc (nto_target_ops): Update.
3849 (nto_fetch_registers): Turn into ...
3850 (nto_process_target::fetch_registers): ... this.
3851 (nto_store_registers): Turn into ...
3852 (nto_process_target::store_registers): ... this.
3853 * nto-low.h (class nto_process_target): Update.
3854 * win32-low.cc (win32_target_ops): Update.
3855 (win32_fetch_inferior_registers): Turn into ...
3856 (win32_process_target::fetch_registers): ... this.
3857 (win32_store_inferior_registers): Turn into ...
3858 (win32_process_target::store_registers): ... this.
3859 * win32-low.h (class win32_process_target): Update.
3861 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3863 Turn process_stratum_target's wait op into a method of
3866 * target.h (struct process_stratum_target): Remove the target op.
3867 (class process_target): Add the target op.
3869 Update the derived classes and callers below.
3871 * target.cc (target_wait): Update.
3872 * linux-low.cc (linux_target_ops): Update.
3873 (linux_wait): Turn into ...
3874 (linux_process_target::wait): ... this.
3875 * linux-low.h (class linux_process_target): Update.
3876 * lynx-low.cc (lynx_target_ops): Update.
3877 (lynx_wait): Turn into ...
3878 (lynx_process_target::wait): ... this.
3879 * lynx-low.h (class lynx_process_target): Update.
3880 * nto-low.cc (nto_target_ops): Update.
3881 (nto_wait): Turn into ...
3882 (nto_process_target::wait): ... this.
3883 * nto-low.h (class nto_process_target): Update.
3884 * win32-low.cc (win32_target_ops): Update.
3885 (win32_wait): Turn into ...
3886 (win32_process_target::wait): ... this.
3887 (do_initial_child_stuff): Update.
3888 * win32-low.h (class win32_process_target): Update.
3890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3892 Turn process_stratum_target's resume op into a method of
3895 * target.h (struct process_stratum_target): Remove the target op.
3896 (class process_target): Add the target op.
3898 Update the derived classes and callers below.
3900 * server.cc (resume): Update.
3901 * target.cc (target_stop_and_wait): Update.
3902 (target_continue_no_signal): Update.
3903 (target_continue): Update.
3904 * linux-low.cc (linux_target_ops): Update.
3905 (linux_resume): Turn into ...
3906 (linux_process_target::resume): ... this.
3907 * linux-low.h (class linux_process_target): Update.
3908 * lynx-low.cc (lynx_target_ops): Update.
3909 (lynx_resume): Turn into ...
3910 (lynx_process_target::resume): ... this.
3911 * lynx-low.h (class lynx_process_target): Update.
3912 * nto-low.cc (nto_target_ops): Update.
3913 (nto_resume): Turn into ...
3914 (nto_process_target::resume): ... this.
3915 * nto-low.h (class nto_process_target): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917 (win32_resume): Turn into ...
3918 (win32_process_target::resume): ... this.
3919 (win32_process_target::detach): Update.
3920 (do_initial_child_stuff): Update.
3921 * win32-low.h (class win32_process_target): Update.
3923 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3925 Turn process_stratum_target's thread_alive op into a method of
3928 * target.h (struct process_stratum_target): Remove the target op.
3929 (class process_target): Add the target op.
3930 (mythread_alive): Update the macro.
3932 Update the derived classes and callers below.
3934 * linux-low.cc (linux_target_ops): Update.
3935 (linux_thread_alive): Turn into ...
3936 (linux_process_target::thread_alive): ... this.
3937 (wait_for_sigstop): Update.
3938 * linux-low.h (class linux_process_target): Update.
3939 * lynx-low.cc (lynx_target_ops): Update.
3940 (lynx_thread_alive): Turn into ...
3941 (lynx_process_target::thread_alive): ... this.
3942 * lynx-low.h (class lynx_process_target): Update.
3943 * nto-low.cc (nto_target_ops): Update.
3944 (nto_thread_alive): Turn into ...
3945 (nto_process_target::thread_alive): ... this.
3946 * nto-low.h (class nto_process_target): Update.
3947 * win32-low.cc (win32_target_ops): Update.
3948 (win32_thread_alive): Turn into ...
3949 (win32_process_target::thread_alive): ... this.
3950 * win32-low.h (class win32_process_target): Update.
3952 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3954 Turn process_stratum_target's join op into a method of
3957 * target.h (struct process_stratum_target): Remove the target op.
3958 (class process_target): Add the target op.
3959 (join_inferior): Update the macro.
3961 Update the derived classes and callers below.
3963 * linux-low.cc (linux_target_ops): Update.
3964 (linux_join): Turn into ...
3965 (linux_process_target::join): ... this.
3966 * linux-low.h (class linux_process_target): Update.
3967 * lynx-low.cc (lynx_target_ops): Update.
3968 (lynx_join): Turn into ...
3969 (lynx_process_target::join): ... this.
3970 * lynx-low.h (class lynx_process_target): Update.
3971 * nto-low.cc (nto_target_ops): Update.
3972 (nto_process_target::join): Define.
3973 * nto-low.h (class nto_process_target): Update.
3974 * win32-low.cc (win32_target_ops): Update.
3975 (win32_join): Turn into ...
3976 (win32_process_target::join): ... this.
3977 * win32-low.h (class win32_process_target): Update.
3979 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3981 Turn process_stratum_target's mourn op into a method of
3984 * target.h (struct process_stratum_target): Remove the target op.
3985 (class process_target): Add the target op.
3987 Update the derived classes and callers below.
3989 * target.cc (target_mourn_inferior): Update.
3990 * linux-low.cc (linux_target_ops): Update.
3991 (linux_mourn): Turn into ...
3992 (linux_process_target::mourn): ... this.
3993 (handle_extended_wait): Update.
3994 (linux_process_target::kill): Update.
3995 (linux_process_target::detach): Update.
3996 * linux-low.h (class linux_process_target): Update.
3997 * lynx-low.cc (lynx_target_ops): Update.
3998 (lynx_mourn): Turn into ...
3999 (lynx_process_target::mourn): ... this.
4000 * lynx-low.h (class lynx_process_target): Update.
4001 * nto-low.cc (nto_target_ops): Update.
4002 (nto_mourn): Turn into ...
4003 (nto_process_target::mourn): ... this.
4004 * nto-low.h (class nto_process_target): Update.
4005 * win32-low.cc (win32_target_ops): Update.
4006 (win32_mourn): Turn into ...
4007 (win32_process_target::mourn): ... this.
4008 * win32-low.h (class win32_process_target): Update.
4010 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4012 Turn process_stratum_target's detach op into a method of
4015 * target.h (struct process_stratum_target): Remove the target op.
4016 (class process_target): Add the target op.
4017 (detach_inferior): Update the macro.
4019 Update the derived classes and callers below.
4021 * linux-low.cc (linux_target_ops): Update.
4022 (linux_detach): Turn into ...
4023 (linux_process_target::detach): ... this.
4024 * linux-low.h (class linux_process_target): Update.
4025 * lynx-low.cc (lynx_target_ops): Update.
4026 (lynx_detach): Turn into ...
4027 (lynx_process_target::detach): ... this.
4028 * lynx-low.h (class lynx_process_target): Update.
4029 * nto-low.cc (nto_target_ops): Update.
4030 (nto_detach): Turn into ...
4031 (nto_process_target::detach): ... this.
4032 * nto-low.h (class nto_process_target): Update.
4033 * win32-low.cc (win32_target_ops): Update.
4034 (win32_detach): Turn into ...
4035 (win32_process_target::detach): ... this.
4036 * win32-low.h (class win32_process_target): Update.
4038 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4040 Turn process_stratum_target's kill op into a method of
4043 * target.h (struct process_stratum_target): Remove the target op.
4044 (class process_target): Add the target op.
4046 Update the derived classes and callers below.
4048 * target.cc (kill_inferior): Update.
4049 * linux-low.cc (linux_target_ops): Update.
4050 (linux_kill): Turn into ...
4051 (linux_process_target::kill): ... this.
4052 * linux-low.h (class linux_process_target): Update.
4053 * lynx-low.cc (lynx_target_ops): Update.
4054 (lynx_kill): Turn into ...
4055 (lynx_process_target::kill): ... this.
4056 * lynx-low.h (class lynx_process_target): Update.
4057 * nto-low.cc (nto_target_ops): Update.
4058 (nto_kill): Turn into ...
4059 (nto_process_target::kill): ... this.
4060 * nto-low.h (class nto_process_target): Update.
4061 * win32-low.cc (win32_target_ops): Update.
4062 (win32_kill): Turn into ...
4063 (win32_process_target::kill): ... this.
4064 * win32-low.h (class win32_process_target): Update.
4066 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4068 Turn process_stratum_target's attach op into a method of
4071 * target.h (struct process_stratum_target): Remove the target op.
4072 (class process_target): Add the target op.
4073 (myattach): Update the macro.
4075 Update the derived classes and callers below.
4077 * linux-low.cc (linux_target_ops): Update.
4078 (linux_attach): Turn into ...
4079 (linux_process_target::attach): ... this.
4080 * linux-low.h (class linux_process_target): Update.
4081 * lynx-low.cc (lynx_target_ops): Update.
4082 (lynx_attach): Turn into ...
4083 (lynx_process_target::attach): ... this.
4084 * lynx-low.h (class lynx_process_target): Update.
4085 * nto-low.cc (nto_target_ops): Update.
4086 (nto_attach): Turn into ...
4087 (nto_process_target::attach): ... this.
4088 * nto-low.h (class nto_process_target): Update.
4089 * win32-low.cc (win32_target_ops): Update.
4090 (win32_attach): Turn into ...
4091 (win32_process_target::attach): ... this.
4092 * win32-low.h (class win32_process_target): Update.
4094 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4096 Turn process_stratum_target's post_create_inferior op into a method
4099 * target.h (struct process_stratum_target): Remove the target op.
4100 (class process_target): Add the target op.
4101 (target_post_create_inferior): Update the macro.
4102 * target.cc (process_target::post_create_inferior): Define.
4104 Update the derived classes and callers below.
4106 * linux-low.cc (linux_target_ops): Update.
4107 (linux_post_create_inferior): Turn into ...
4108 (linux_process_target::post_create_inferior): ... this.
4109 * linux-low.h (class linux_process_target): Update.
4110 * lynx-low.cc (lynx_target_ops): Update.
4111 * nto-low.cc (nto_target_ops): Update.
4112 * win32-low.cc (win32_target_ops): Update.
4114 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4116 Turn process_stratum_target's create_inferior op into a method of
4119 * target.h (struct process_stratum_target): Remove the target op.
4120 (class process_target): Add the target op.
4121 (create_inferior): Rename the macro to ...
4122 (target_create_inferior): ... this.
4124 Update the derived classes and callers below.
4126 * server.cc (handle_v_run): Update.
4127 (captured_main): Update.
4128 (process_serial_event): Update.
4129 * linux-low.cc (linux_target_ops): Update.
4130 (linux_create_inferior): Turn into ...
4131 (linux_process_target::create_inferior): ... this.
4132 * linux-low.h (class linux_process_target): Update.
4133 * lynx-low.cc (lynx_target_ops): Update.
4134 (lynx_create_inferior): Turn into ...
4135 (lynx_process_target::create_inferior): ... this.
4136 * lynx-low.h (class lynx_process_target): Update.
4137 * nto-low.cc (nto_target_ops): Update.
4138 (nto_create_inferior): Turn into ...
4139 (nto_process_target::create_inferior): ... this.
4140 * nto-low.h (class nto_process_target): Update.
4141 * win32-low.cc (win32_target_ops): Update.
4142 (win32_create_inferior): Turn into ...
4143 (win32_process_target::create_inferior): ... this.
4144 * win32-low.h (class win32_process_target): Update.
4146 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4148 * target.h (class process_target): New class definition.
4149 (struct process_stratum_target) <pt>: New field with type
4151 * linux-low.h (class linux_process_target): Define as a derived
4152 class of 'process_target'.
4153 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4155 * lynx-low.h (class lynx_process_target): Define as a derived
4156 class of 'process_target'.
4157 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4159 * nto-low.h (class nto_process_target): Define as a derived
4160 class of 'process_target'.
4161 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4163 * win32-low.h (class win32_process_target): Define as a derived
4164 class of 'process_target'.
4165 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4168 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4170 * configure: Regenerate.
4172 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4173 Andrew Burgess <andrew.burgess@embecosm.com>
4175 * linux-riscv-low.cc: New file.
4176 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4177 and nat/riscv-linux-tdesc.c.
4178 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4179 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4182 2020-02-14 Tom Tromey <tom@tromey.com>
4184 * acinclude.m4: Don't include acx_configure_dir.m4.
4185 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4186 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4187 (all, install-only, uninstall, clean-info, clean)
4188 (maintainer-clean): Don't recurse.
4189 (subdir_do, all-lib): Remove.
4190 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4192 (generated_files): Update.
4193 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4194 * configure: Rebuild.
4195 * configure.ac: Don't configure gnulib or libiberty.
4198 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4200 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4201 preparing the command line for CreateProcess.
4202 (win32_create_inferior): Reflect the program name in debugging
4203 output that shows the process and its command line.
4205 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4207 * Makefile.in: Rename source files from .c to .cc.
4208 * %.c: Rename to %.cc.
4209 * configure.ac: Rename server.c to server.cc.
4210 * configure: Re-generate.
4212 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4214 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4216 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4218 * win32-low.c (win32_create_inferior): Set signal_pid.
4220 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4221 Pedro Alves <palves@redhat.com>
4223 Skip building gdbserver in a cross-configuration.
4224 * configure.srv: Set $gdbserver_host depending on whether $target
4225 is $host. Use $gdbserver_host instead of $host.
4227 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4229 * configure: Re-generate.
4231 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4233 * configure: Re-generate.
4235 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4237 * acinclude.m4: Update warning.m4 path.
4239 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4241 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4242 (handle_exception): Set siginfo_er.
4243 (win32_xfer_siginfo): New function.
4245 2020-02-07 Tom Tromey <tom@tromey.com>
4246 Pedro Alves <palves@redhat.com>
4248 * README: Update build documentation.
4249 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4251 * configure.ac: Update paths.
4252 * configure: Rebuild.
4253 * acinclude.m4: Update paths.
4254 * Makefile.in: Update include paths.
4255 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4256 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4257 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4258 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4259 (%-generated.c): Update paths.
4260 * Move entire directory from ../gdb/gdbserver.
4262 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4264 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4266 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4268 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4269 assignment instead of srv_linux_obj.
4271 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4273 * server.c (handle_qxfer_libraries): Write segment-address with
4276 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4278 * Makefile.in (install-strip): New target.
4279 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4280 * aclocal.m4: Regenerate.
4281 * configure: Regenerate.
4282 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4284 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4286 * Makefile.in (SFILES): Adjust paths to point to real files.
4287 (OBS): Move waitstatus.o to target/waitstatus.o.
4288 (TAGS): Transform paths appropriately.
4290 (nat/%.o): ... this pattern rule.
4292 (target/%.o): ... this pattern rule.
4293 * configure.srv: Adjust paths throughout to include nat/ prefix
4294 with the revant files.
4295 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4296 * configure: Regenerate.
4298 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4300 * Makefile.in (TAGS): Remove config files from the recipe.
4302 2020-01-14 Tom Tromey <tom@tromey.com>
4304 * configure: Rebuild.
4305 * configure.ac: Remove any checks that were added to common.m4.
4306 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4309 2020-01-14 Tom Tromey <tom@tromey.com>
4311 * server.h: Include config.h.
4312 * gdbreplay.c: Include config.h.
4313 * configure: Rebuild.
4314 * configure.ac: Don't source common.host.
4315 * acinclude.m4: Update path.
4316 * Makefile.in (INCSUPPORT): New variable.
4317 (INCLUDE_CFLAGS): Add INCSUPPORT.
4318 (SFILES): Update paths.
4319 (version-generated.c): Update path to create-version.sh.
4320 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4322 2020-01-14 Tom Tromey <tom@tromey.com>
4324 * configure.ac (LIBS): Use WIN32APILIBS.
4325 (USE_WIN32API): Don't define.
4326 * configure: Rebuild.
4328 2020-01-14 Tom Tromey <tom@tromey.com>
4330 * configure: Rebuild.
4332 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4334 * Makefile.in (%-generated.c): Remove rule for files from
4337 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4339 * configure: Re-generate.
4341 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4343 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4345 * tracepoint.c (stop_tracing, flush_trace_buffer,
4346 about_to_request_buffer_space, get_trace_state_variable_value,
4347 set_trace_state_variable_value, gdb_collect): Add declaration.
4349 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4351 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4352 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4353 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4354 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4355 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4358 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4360 * inferiors.c: Include gdbsupport/common-inferior.h.
4362 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4364 * hostio-errno.c: Include hostio.h.
4366 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4368 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4371 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4373 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4374 * linux-arm-tdesc.h: Include arch/arm.h.
4376 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4378 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4380 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4382 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4383 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4385 2020-01-10 Pedro Alves <palves@redhat.com>
4387 * fork-child.c (post_fork_inferior): Pass target down to
4389 * inferiors.c (switch_to_thread): Add process_stratum_target
4391 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4392 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4393 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4394 * remote-utils.c (prepare_resume_reply): Pass the target to
4396 * target.c (the_target): Now a process_stratum_target.
4397 (done_accessing_memory): Pass the target to switch_to_thread.
4398 (set_target_ops): Ajust to use process_stratum_target.
4399 * target.h (struct target_ops): Rename to ...
4400 (struct process_stratum_target): ... this.
4401 (the_target, set_target_ops): Adjust.
4402 (prepare_to_access_memory): Adjust comment.
4403 * win32-low.c (child_xfer_memory): Adjust to use
4404 process_stratum_target.
4405 (win32_target_ops): Now a process_stratum_target.
4407 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4408 Pedro Alves <palves@redhat.com>
4410 * win32-low.c (get_child_debug_event): Extract the fatal exception
4411 from the exit status and convert to the equivalent Posix signal
4413 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4414 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4416 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4418 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4420 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4422 * server.c (gdbserver_version): Change copyright year to 2020.
4423 * gdbreplay.c (gdbreplay_version): Likewise.
4425 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4427 * configure: Regenerate.
4428 * configure.ac: Quote variable arguments of test.
4430 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4432 * Makefile.in: Fix build with GNU Make 3.81
4434 2019-12-16 Tom Tromey <tromey@adacore.com>
4436 * server.c (get_exec_file): Constify result.
4438 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4440 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4441 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4442 * config.in: Regenerate.
4443 * configure: Regenerate.
4444 * configure.ac: Don't check for strerror.
4445 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4446 Call safe_strerror instead of strerror.
4447 * server.h (strerror): Remove this now-unnecessary declaration.
4448 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4450 (gdb_agent_helper_thread): Likewise.
4451 * utils.c (perror_with_name): Likewise.
4453 2019-11-26 Tom Tromey <tom@tromey.com>
4455 * configure, config.in: Rebuild.
4457 2019-11-26 Tom Tromey <tom@tromey.com>
4459 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4460 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4462 * configure, config.in: Rebuild.
4464 2019-11-26 Tom Tromey <tom@tromey.com>
4466 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4467 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4468 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4469 * acinclude.m4: Include ax_pthread.m4.
4470 * config.in, configure: Rebuild.
4472 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4474 * debug.c (debug_set_output): Call safe_strerror instead of
4476 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4477 (linux_kill_one_lwp): Likewise.
4478 (linux_detach_one_lwp): Likewise.
4479 (linux_wait_for_event_filtered): Likewise.
4480 (store_register): Likewise.
4481 * lynx-low.c (lynx_attach): Likewise.
4482 * mem-break.c (insert_memory_breakpoint): Likewise.
4483 (remove_memory_breakpoint): Likewise.
4484 (delete_fast_tracepoint_jump): Likewise.
4485 (set_fast_tracepoint_jump): Likewise.
4486 (uninsert_fast_tracepoint_jumps_at): Likewise.
4487 (reinsert_fast_tracepoint_jumps_at): Likewise.
4488 * nto-low.c (nto_xfer_memory): Likewise.
4489 (nto_resume): Likewise.
4491 2019-11-20 Luis Machado <luis.machado@linaro.org>
4493 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4494 instead of register count.
4495 * tdesc.c (tdesc_contains_feature): New function.
4496 * tdesc.h (tdesc_contains_feature): New prototype.
4498 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4500 * Makefile.in: Add safe-strerror.c.
4501 * configure: Regenerate.
4502 * configure.ac: Don't source common.host.
4504 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4506 * config.in: Regenerate.
4507 * configure: Regenerate.
4509 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4511 * ax.c (ax_printf): Handle size_t_arg.
4513 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4515 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4516 * mi/mi-main.c (output_cores): Likewise.
4517 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4518 (linux_xfer_osdata_modules): Likewise.
4519 * remote.c (register_remote_support_xml): Likewise.
4520 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4521 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4523 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4525 * configure: Regenerate.
4526 * configure.ac: Remove check for strerror_r.
4528 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4530 * config.in: Regenerate.
4531 * configure: Regenerate.
4532 * configure.ac: Also check for strerror_r.
4534 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4536 * ax.h (debug_agent): Remove duplicate declaration.
4538 2019-10-26 Tom de Vries <tdevries@suse.de>
4540 * linux-aarch64-low.c: Fix typos in comments.
4541 * linux-arm-low.c: Same.
4542 * linux-low.c: Same.
4543 * linux-ppc-low.c: Same.
4544 * proc-service.c: Same.
4547 * tracepoint.c: Same.
4548 * win32-low.c: Same.
4550 2019-10-25 Tom Tromey <tromey@adacore.com>
4552 * utils.c (xstrdup): Remove.
4554 2019-10-23 Tom Tromey <tom@tromey.com>
4556 * configure, config.in: Rebuild.
4558 2019-10-23 Tom Tromey <tom@tromey.com>
4560 * configure: Rebuild.
4561 * acinclude.m4: Use m4_include, not sinclude.
4563 2019-10-17 Tom Tromey <tromey@adacore.com>
4565 * configure: Rebuild.
4566 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4567 in AC_CONFIG_FILES invocation.
4568 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4571 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4573 * server.c: Include xml-builtin.h.
4574 (get_xml_features): Don't declare xml_builtins here.
4576 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4578 * Makefile.in: Remove references to vec-ipa.o.
4580 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4582 * Makefile.in: Remove references to vec.c.
4584 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4586 * server.c (server_waiting): Change to bool.
4587 (extended_protocol): Likewise.
4588 (response_needed): Likewise.
4589 (exit_requested): Likewise.
4590 (run_once): Likewise.
4591 (report_no_resumed): Likewise.
4592 (non_stop): Likewise.
4593 (disable_packet_vCont): Likewise.
4594 (disable_packet_Tthread): Likewise.
4595 (disable_packet_qC): Likewise.
4596 (disable_packet_qfThreadInfo): Likewise.
4597 (handle_general_set): Update.
4598 (handle_detach): Update.
4599 (handle_monitor_command): Update.
4600 (handle_query): Update.
4601 (captured_main): Update.
4602 (process_serial_event): Update.
4603 * server.h (server_waiting): Change to bool.
4604 (disable_packet_vCont): Likewise.
4605 (disable_packet_Tthread): Likewise.
4606 (disable_packet_qC): Likewise.
4607 (disable_packet_qfThreadInfo): Likewise.
4608 (run_once): Likewise.
4609 (non_stop): Likewise.
4610 * target.c (target_stop_and_wait): Update.
4612 2019-10-02 Tom Tromey <tromey@adacore.com>
4614 * Makefile.in (SFILES): Add common-inferior.c.
4615 (OBS): Add common-inferior.o.
4616 * server.c (startup_with_shell): Don't define.
4618 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4620 * linux-low.c (linux_low_read_btrace): Update for change to
4623 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4625 * debug.c (debug_threads): Remove comment in favor of the header.
4626 * debug.h (using_threads): Add declaration.
4627 (debug_threads): Add comment.
4628 * linux-aarch64-low.c: Include debug.h and remove declaration of
4630 * nto-low.c: Likewise.
4631 * remote-utils.c: Likewise.
4632 * thread-db.c: Likewise.
4634 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4636 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4637 and powerpc-cell64l-ipa.o.
4638 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4639 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4640 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4643 * spu-low.c: Remove file.
4645 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4646 (parse_spufs_run): Remove.
4647 (ppc_get_pc): Remove Cell/B.E. support.
4648 (ppc_set_pc): Likewise.
4649 (ppc_breakpoint_at): Likewise.
4650 (ppc_arch_setup): Likewise.
4651 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4652 tdesc_powerpc_cell32l.
4653 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4654 or init_registers_powerpc_cell32l.
4655 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4656 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4657 or init_registers_powerpc_cell32l.
4658 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4659 (init_registers_powerpc_cell32l): Remove prototype.
4660 (init_registers_powerpc_cell64l): Likewise.
4662 * target.h (struct target_ops): Remove qxfer_spu member.
4663 * server.c (handle_qxfer_spu): Remove.
4664 (qxfer_packets): Remove entry for "spu".
4665 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4666 * linux-low.c (SPUFS_MAGIC): Remove.
4667 (spu_enumerate_spu_ids): Remove.
4668 (linux_qxfer_spu): Remove.
4669 (linux_target_ops): Remove qxfer_spu member.
4670 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4671 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4672 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4674 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4676 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4677 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4678 * config.in: Regenerate.
4679 * configure: Regenerate.
4681 2019-08-15 Tom Tromey <tromey@adacore.com>
4683 * target.c (target_write_memory): Use gdb::byte_vector.
4685 2019-08-15 Tom Tromey <tromey@adacore.com>
4687 * tracepoint.c (write_inferior_data_pointer)
4688 (write_inferior_integer, write_inferior_int8)
4689 (write_inferior_uinteger, m_tracepoint_action_download)
4690 (r_tracepoint_action_download, x_tracepoint_action_download)
4691 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4692 (download_agent_expr, download_tracepoint_1)
4693 (download_trace_state_variables, upload_fast_traceframes): Update.
4694 * server.c (gdb_write_memory): Update.
4695 * remote-utils.c (relocate_instruction): Update.
4696 * proc-service.c (ps_pdwrite): Update.
4697 * mem-break.c (remove_memory_breakpoint)
4698 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4699 (uninsert_fast_tracepoint_jumps_at)
4700 (reinsert_fast_tracepoint_jumps_at): Update.
4701 * linux-x86-low.c (append_insns)
4702 (i386_install_fast_tracepoint_jump_pad)
4703 (amd64_write_goto_address, i386_write_goto_address): Update.
4704 * linux-s390-low.c (append_insns, s390_write_goto_address):
4706 * linux-ppc-low.c (ppc_relocate_instruction)
4707 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4708 (ppc_write_goto_address): Update.
4709 * linux-aarch64-low.c (append_insns): Update.
4710 * target.h (struct target_ops): Update.
4711 (write_inferior_memory): Don't declare.
4712 * target.c (target_write_memory): Rename from
4713 write_inferior_memory. Remove old target_write_memory.
4715 2019-08-15 Tom Tromey <tromey@adacore.com>
4717 * target.c (write_inferior_memory): Use std::vector.
4719 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4722 * configure.ac: Drop enable-libmcheck support.
4723 * configure, config.in: Rebuild.
4724 * acinclude.m4: Don't include it.
4726 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4728 * configure.srv: Remove Arm xml files.
4730 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4732 * configure.srv: Add new files. Remove xml generated files.
4733 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4735 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4736 * linux-aarch32-tdesc.c: New file.
4737 * linux-aarch32-tdesc.h: New file.
4738 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4739 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4740 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4741 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4742 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4743 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4744 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4745 (arm_read_description): Call arm_linux_read_description.
4746 (initialize_low_arch): Don't init registers.
4747 * linux-arm-tdesc.c: New file.
4748 * linux-arm-tdesc.h: New file.
4750 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4752 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4753 Move counter inside for.
4754 (arm_read_description): Check ptrace earlier.
4755 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4757 2019-07-09 Tom Tromey <tom@tromey.com>
4759 * configure: Rebuild.
4760 * configure.ac: Change common to gdbsupport.
4761 * acinclude.m4: Change common to gdbsupport.
4762 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4763 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4764 common to gdbsupport.
4765 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4766 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4767 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4768 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4769 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4770 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4771 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4772 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4773 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4774 common to gdbsupport.
4776 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4778 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4780 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4782 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4784 * configure.srv: Remove legacy xml.
4785 * linux-aarch64-low.c (initialize_low_arch): Remove
4786 initialize_low_tdesc call.
4787 * linux-aarch64-tdesc-selftest.c: Remove file.
4788 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4789 * linux-x86-low.c (initialize_low_arch): Remove
4790 initialize_low_tdesc call.
4791 * linux-x86-tdesc-selftest.c: Remove file.
4792 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4794 2019-06-20 Tom de Vries <tdevries@suse.de>
4796 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4797 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4799 2019-06-19 Tom de Vries <tdevries@suse.de>
4801 * debug.h (debug_write): Change return type to ssize_t.
4802 * debug.c (debug_write): Same.
4804 2019-06-14 Tom Tromey <tom@tromey.com>
4806 * configure.ac: Use new path to gnulib.
4807 * configure: Rebuild.
4808 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
4811 2019-06-11 Tom Tromey <tom@tromey.com>
4813 * Makefile.in (SFILES): Add alloc.c.
4815 (IPA_OBJS): Add alloc-ipa.o.
4816 (alloc-ipa.o): New target.
4817 (%.o: ../%.c): New pattern rule.
4819 2019-06-10 Tom Tromey <tromey@adacore.com>
4821 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
4822 end warning with a newline.
4823 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
4825 * thread-db.c (attach_thread): Don't end warning with a newline.
4826 (thread_db_notice_clone): Likewise.
4827 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
4829 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
4830 end warning with a newline.
4832 2019-06-04 Pedro Alves <palves@redhat.com>
4834 * server.c (captured_main): Use make_unique_xstrdup.
4836 2019-06-02 Tom Tromey <tom@tromey.com>
4838 * gdbreplay.c (fromhex): Remove.
4839 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
4841 2019-05-29 Tom Tromey <tromey@adacore.com>
4843 * configure: Rebuild.
4845 2019-05-06 Kevin Buettner <kevinb@redhat.com>
4847 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
4848 sign extension code on 32-bit builds.
4850 2019-05-03 Eli Zaretskii <eliz@gnu.org>
4853 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
4855 2019-04-19 Tom Tromey <tom@tromey.com>
4857 * server.c (struct vstop_notif): Derive from notif_event.
4859 (queue_stop_reply): Update.
4860 (remove_all_on_match_ptid): Change type. Rewrite.
4861 (discard_queued_stop_replies): Rewrite.
4862 (in_queued_stop_replies_ptid): Change type.
4863 (in_queued_stop_replies): Rewrite.
4864 (notif_stop): Update.
4865 (queue_stop_reply_callback): Update.
4866 (captured_main): Don't call initialize_notif.
4867 (push_stop_notification): Update.
4868 * notif.c (notif_write_event, handle_notif_ack)
4869 (notif_event_enque, notif_push): Update.
4870 (notif_event_xfree, initialize_notif): Remove.
4871 * notif.h (struct notif_event): Include <list>, not
4873 (struct notif_server) <queue>: Now a std::list.
4874 (notif_event_p): Remove typedef.
4875 (initialize_notif): Don't declare.
4876 (struct notif_event): Add virtual destructor.
4878 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4880 * ax.c (ax_vdebug): Call debug_printf.
4881 * debug.c (debug_write): New function.
4882 * debug.h (debug_write): New declaration.
4883 * linux-low.c (sigchld_handler): Call debug_write.
4885 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4887 * debug.c (debug_set_output): New function.
4888 (debug_vprintf): Send output to debug_file.
4889 (debug_flush): Likewise.
4890 * debug.h (debug_set_output): New declaration.
4891 * server.c (handle_monitor_command): Add debug-file option.
4892 (captured_main): Likewise.
4894 2019-04-17 Alan Hayward <alan.hayward@arm.com>
4896 * debug.c (remote_debug): Add definition.
4897 * debug.h (remote_debug): Add declaration.
4898 * hostio.c (remote_debug): Remove declaration.
4899 * remote-utils.c (struct ui_file): Likewise.
4900 (remote_debug): Likewise.
4901 * remote-utils.h (remote_debug): Likewise,
4902 * server.c (remote_debug): Remove definition.
4904 2019-04-10 Kevin Buettner <kevinb@redhat.com>
4906 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
4907 when using a 64-bit gdbserver.
4909 2019-04-09 Tom Tromey <tromey@adacore.com>
4911 * linux-low.c (select_event_lwp): Use find_thread_in_random.
4913 2019-04-08 Tom Tromey <tom@tromey.com>
4915 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
4917 (linux_resume_one_lwp): Likewise.
4919 2019-04-08 Tom Tromey <tom@tromey.com>
4921 * gdbreplay.c: Update.
4922 * linux-low.c: Update.
4925 2019-04-08 Tom Tromey <tom@tromey.com>
4927 * server.c: Use C++ exception handling.
4928 * linux-low.c: Use C++ exception handling.
4929 * gdbreplay.c: Use C++ exception handling.
4931 2019-04-08 Tom Tromey <tom@tromey.com>
4933 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
4934 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
4935 (captured_main, main): Update.
4936 * gdbreplay.c (main): Update.
4938 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4940 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
4941 value in argument pointer, return 1 if the entry is found and 0
4942 otherwise. Move comment.
4943 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
4944 * linux-low.h (linux_get_auxv): Declare.
4945 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
4947 2019-04-05 Tom Tromey <tromey@adacore.com>
4949 * server.c (gdbserver_usage): Use upper-case for metasyntactic
4952 2019-03-28 Alan Hayward <alan.hayward@arm.com>
4954 * linux-low.c (AT_HWCAP2): Add define if not already included.
4956 2019-03-26 Alan Hayward <alan.hayward@arm.com>
4958 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
4959 (aarch64_arch_setup): Call linux_get_hwcap.
4960 * linux-arm-low.c (arm_get_hwcap): Remove function.
4961 (arm_read_description): Call linux_get_hwcap.
4962 * linux-low.c (linux_get_auxv): New function.
4963 (linux_get_hwcap): Likewise.
4964 (linux_get_hwcap2): Likewise.
4965 * linux-low.h (linux_get_hwcap): New declaration.
4966 (linux_get_hwcap2): Likewise.
4967 * linux-ppc-low.c (ppc_get_auxv): Remove function.
4968 (ppc_arch_setup): Call linux_get_hwcap.
4969 * linux-s390-low.c (s390_get_hwcap): Remove function.
4970 (s390_arch_setup): Call linux_get_hwcap.
4972 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4973 Jiong Wang <jiong.wang@arm.com>
4975 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
4976 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
4978 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
4980 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4981 Jiong Wang <jiong.wang@arm.com>
4983 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
4984 (aarch64_get_hwcap): New function.
4985 (aarch64_arch_setup): Read APIA hwcap.
4987 2019-03-22 Alan Hayward <alan.hayward@arm.com>
4988 Jiong Wang <jiong.wang@arm.com>
4990 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
4991 (initialize_low_tracepoint): Likewise.
4992 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
4993 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
4994 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
4995 (aarch64_linux_read_description): Likewise.
4996 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
4998 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5000 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5001 i386_create_target_description for 'segments' parameter.
5002 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5003 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5004 * win32-i386-low.c (i386_arch_setup): Likewise.
5006 2019-03-12 Tom Tromey <tromey@adacore.com>
5008 * linux-low.c (iterate_over_lwps): Update.
5010 2019-03-06 Tom Tromey <tom@tromey.com>
5012 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5013 (captured_main): Use SCOPE_EXIT.
5015 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5017 * configure.srv: Use '$enable_unittest' instead of '$development'
5018 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5021 2019-02-27 Tom Tromey <tromey@adacore.com>
5023 * gdbreplay.c (logchar): Handle \r\n.
5025 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5027 * linux-low.c (linux_attach): Add process before lwp.
5028 * server.c (attach_inferior): Check if already attached.
5030 2019-02-07 Tom Tromey <tom@tromey.com>
5032 * x86-tdesc.h: Rename include guard.
5033 * x86-low.h: Add include guard.
5034 * wincecompat.h: Rename include guard.
5035 * win32-low.h: Add include guard.
5036 * utils.h: Rename include guard.
5037 * tracepoint.h: Rename include guard.
5038 * tdesc.h: Rename include guard.
5039 * target.h: Rename include guard.
5040 * server.h: Rename include guard.
5041 * remote-utils.h: Rename include guard.
5042 * regcache.h: Rename include guard.
5043 * nto-low.h: Rename include guard.
5044 * notif.h: Add include guard.
5045 * mem-break.h: Rename include guard.
5046 * lynx-low.h: Add include guard.
5047 * linux-x86-tdesc.h: Add include guard.
5048 * linux-s390-tdesc.h: Add include guard.
5049 * linux-ppc-tdesc-init.h: Add include guard.
5050 * linux-low.h: Add include guard.
5051 * linux-aarch64-tdesc.h: Add include guard.
5052 * linux-aarch32-low.h: Add include guard.
5053 * inferiors.h: Rename include guard.
5054 * i387-fp.h: Rename include guard.
5055 * hostio.h: Rename include guard.
5056 * gdbthread.h: Rename include guard.
5057 * gdb_proc_service.h: Rename include guard.
5058 * event-loop.h: Rename include guard.
5059 * dll.h: Rename include guard.
5060 * debug.h: Rename include guard.
5061 * ax.h: Rename include guard.
5063 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5066 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5067 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5069 2019-01-25 Tom Tromey <tom@tromey.com>
5071 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5073 2019-01-25 Tom Tromey <tom@tromey.com>
5075 * win32-low.c: Fix common/ includes.
5076 * win32-i386-low.c: Fix common/ includes.
5077 * tracepoint.c: Fix common/ includes.
5078 * thread-db.c: Fix common/ includes.
5079 * target.h: Fix common/ includes.
5080 * symbol.c: Fix common/ includes.
5081 * spu-low.c: Fix common/ includes.
5082 * server.h: Fix common/ includes.
5083 * server.c: Fix common/ includes.
5084 * remote-utils.c: Fix common/ includes.
5085 * regcache.h: Fix common/ includes.
5086 * regcache.c: Fix common/ includes.
5087 * nto-x86-low.c: Fix common/ includes.
5088 * notif.h: Fix common/ includes.
5089 * mem-break.h: Fix common/ includes.
5090 * lynx-low.c: Fix common/ includes.
5091 * lynx-i386-low.c: Fix common/ includes.
5092 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5093 * linux-x86-low.c: Fix common/ includes.
5094 * linux-low.c: Fix common/ includes.
5095 * inferiors.h: Fix common/ includes.
5096 * i387-fp.c: Fix common/ includes.
5097 * hostio.c: Fix common/ includes.
5098 * hostio-errno.c: Fix common/ includes.
5099 * gdbthread.h: Fix common/ includes.
5100 * gdbreplay.c: Fix common/ includes.
5101 * fork-child.c: Fix common/ includes.
5102 * event-loop.c: Fix common/ includes.
5104 (enum gdb_agent_op): Fix common/ includes.
5106 2019-01-21 Tom Tromey <tom@tromey.com>
5108 * tracepoint.c: Fix includes.
5109 * remote-utils.c: Fix includes.
5110 * linux-x86-low.c: Fix includes.
5112 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5114 * gdbreplay.c (gdbreplay_version): Update copyright year in
5116 * server.c (gdbserver_version): Likewise.
5118 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5120 * linux-low.c (add_lwp): Switch ordering.
5122 2018-11-29 Tom Tromey <tom@tromey.com>
5124 * win32-low.c (win32_join): Take pid, not process.
5125 * target.h (struct target_ops) <join>: Change argument type.
5126 (join_inferior): Change argument name.
5127 * spu-low.c (spu_join): Take pid, not process.
5128 * server.c (handle_detach): Preserve pid before destroying
5130 * lynx-low.c (lynx_join): Take pid, not process.
5131 * linux-low.c (linux_join): Take pid, not process.
5133 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5135 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5136 (aarch64_cannot_fetch_register): Likewise.
5137 (struct linux_target_ops): Update references.
5139 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5141 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5143 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5145 * configure.srv (ipa_ppc_linux_regobj): Add
5146 powerpc-isa207-htm-vsx32l-ipa.o and
5147 powerpc-isa207-htm-vsx64l-ipa.o.
5148 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5149 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5150 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5151 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5152 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5153 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5154 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5155 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5156 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5157 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5158 (init_registers_powerpc_isa207_htm_vsx32l)
5159 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5160 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5161 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5162 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5163 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5164 (ppc_store_tm_ctarregset): New functions.
5165 (ppc_regsets): Add entries for HTM regsets.
5166 (ppc_arch_setup): Set htm in features struct when needed. Set
5167 sizes for the HTM regsets.
5168 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5169 (initialize_low_arch): Call
5170 init_registers_powerpc_isa207_htm_vsx32l and
5171 init_registers_powerpc_isa207_htm_vsx64l.
5172 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5173 PPC_TDESC_ISA207_HTM_VSX.
5174 (initialize_low_tracepoint): Call
5175 init_registers_powerpc_isa207_htm_vsx32l and
5176 init_registers_powerpc_isa207_htm_vsx64l.
5178 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5180 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5181 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5182 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5183 (ppc_store_pmuregset): New functions.
5184 (ppc_regsets): Add entries for ebb and pmu regsets.
5185 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5186 pmu regsets are available. Set sizes for these regsets.
5188 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5190 * configure.srv (ipa_ppc_linux_regobj): Add
5191 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5192 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5193 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5194 rs6000/powerpc-isa207-vsx32l.xml, and
5195 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5196 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5197 <PPC_TDESC_ISA207_VSX>: New enum value.
5198 (init_registers_powerpc_isa207_vsx32l): Declare.
5199 (init_registers_powerpc_isa207_vsx64l): Declare.
5200 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5201 (ppc_store_tarregset): New function.
5202 (ppc_regsets): Add entry for the TAR regset.
5203 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5204 size for the TAR regsets.
5205 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5206 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5207 and init_registers_powerpc_isa207_vsx64l.
5208 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5209 (initialize_low_tracepoint): Call
5210 init_registers_powerpc_isa207_vsx32l and
5211 init_registers_powerpc_isa207_vsx64l.
5213 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5214 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5216 * configure.srv (ipa_ppc_linux_regobj): Add
5217 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5218 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5219 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5220 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5221 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5222 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5223 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5224 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5225 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5226 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5227 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5228 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5229 (ppc_hwcap): Add comment.
5230 (ppc_hwcap2): New global.
5231 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5232 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5233 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5234 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5235 when needed. Set sizes for the the DSCR and PPR regsets.
5236 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5237 (initialize_low_arch): Call
5238 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5239 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5240 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5241 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5242 (initialize_low_tracepoint): Call
5243 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5244 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5246 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5248 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5250 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5251 Simon Marchi <simark@simark.ca>
5253 * acinclude.m4: Include "../selftest.m4".
5254 * configure: Regenerate.
5255 * configure.ac: Use "GDB_AC_SELFTEST".
5256 * configure.srv: Use "$enable_unittests" instead of
5257 "$development" when checking whether unit tests have been
5259 * server.c (captured_main): Update message informing that
5260 selftests have been disabled.
5262 2018-10-04 Tom Tromey <tom@tromey.com>
5264 * configure: Rebuild.
5266 2018-10-04 Tom Tromey <tom@tromey.com>
5268 * server.c (handle_status): Rename inner "thread".
5269 (process_serial_event): Declare "res" in 'm' case.
5270 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5271 (iterate_over_lwps): Rename inner "thread".
5272 (linux_qxfer_libraries_svr4): Rename inner "len".
5273 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5275 2018-10-01 Gary Benson <gbenson@redhat.com>
5277 * gdb_proc_service.h: Moved common code to
5278 common/gdb_proc_service.h.
5280 2018-10-01 Gary Benson <gbenson@redhat.com>
5282 * gdb_proc_service.h: Synchronize comments and whitespace with
5283 GDB's version of this file.
5285 2018-09-25 Tom Tromey <tom@tromey.com>
5287 * configure: Rebuild.
5288 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5290 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5292 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5293 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5294 ($(IPA_LIB)): Sort IPA_OBJS.
5296 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5298 * Makefile.in: Remove references to $(ADD_DEPS).
5300 2018-09-16 Tom Tromey <tom@tromey.com>
5302 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5304 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5307 2018-09-05 Tom Tromey <tom@tromey.com>
5309 * configure: Rebuild.
5311 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5314 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5316 2018-08-27 Tom Tromey <tom@tromey.com>
5319 * configure: Rebuild.
5321 2018-08-27 Tom Tromey <tom@tromey.com>
5323 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5324 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5325 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5326 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5327 (s390x_emit_stack_adjust): Add casts to unsigned char.
5329 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5333 * server.h (struct client_state) <disable_randomization>:
5336 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5338 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5340 (mips_supply_ptrace_register): Likewise.
5342 2018-07-22 Tom Tromey <tom@tromey.com>
5344 * configure: Rebuild.
5346 2018-07-22 Tom Tromey <tom@tromey.com>
5348 * win32-low.c (win32_create_inferior): Remove unused variables.
5349 * gdbreplay.c (remote_open): Remove unused variable.
5350 * remote-utils.c (remote_prepare): Remove unused variable.
5351 * x86-tdesc.h (X86_TDESC_H): Define.
5352 (amd64_expedite_regs): Define conditionally.
5353 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5354 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5355 * remote-utils.c (readchar): Remove unused variable.
5357 2018-07-13 Pedro Alves <palves@redhat.com>
5359 * linux-low.c (linux_kill): Change parameter to process_info
5360 pointer instead of pid. Adjust.
5361 * lynx-low.c (lynx_kill): Likewise.
5362 * nto-low.c (nto_kill): Likewise.
5363 * spu-low.c (spu_kill): Likewise.
5364 * win32-low.c (win32_kill): Likewise.
5365 * server.c (handle_v_kill, kill_inferior_callback)
5366 (detach_or_kill_for_exit): Adjust.
5367 * target.c (kill_inferior): Change parameter to process_info
5368 pointer instead of pid. Adjust.
5369 * target.h (struct target_ops) <kill>: Change parameter to
5370 process_info pointer instead of pid. Adjust all implementations
5372 (kill_inferior): Likewise.
5374 2018-07-13 Pedro Alves <palves@redhat.com>
5376 * linux-low.c (linux_detach, linux_join): Change parameter to
5377 process_info pointer instead of pid. Adjust.
5378 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5379 * nto-low.c (nto_detach): Likewise.
5380 * spu-low.c (spu_detach, spu_join): Likewise.
5381 * win32-low.c (win32_detach, win32_join): Likewise.
5382 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5383 * target.h (struct target_ops) <detach, join>: Change parameter to
5384 process_info pointer instead of pid. Adjust all implementations
5386 (detach_inferior, join_inferior): Rename 'pid' parameter to
5389 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5390 Jan Kratochvil <jan.kratochvil@redhat.com>
5391 Paul Fertser <fercerpav@gmail.com>
5392 Tsutomu Seki <sekiriki@gmail.com>
5394 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5395 (OBS): Add 'common/netstuff.o'.
5396 (GDBREPLAY_OBS): Likewise.
5397 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5398 (remote_open): Implement support for IPv6
5400 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5402 (handle_accept_event): Accept connections from IPv6 sources.
5403 (remote_prepare): Handle IPv6-style hostnames; implement
5404 support for IPv6 connections.
5405 (remote_open): Implement support for printing connections from
5408 2018-07-11 Pedro Alves <palves@redhat.com>
5411 * mem-break.c (any_persistent_commands): Add process_info
5412 parameter and use it instead of relying on the current process.
5413 Change return type to bool.
5414 * mem-break.h (any_persistent_commands): Add process_info
5415 parameter and change return type to bool.
5416 * server.c (handle_detach): Remove require_running_or_return call.
5417 Look up the process_info for the process we're about to detach.
5418 If not found, return back error to GDB. Adjust
5419 any_persistent_commands call to pass down a process pointer.
5421 2018-07-11 Pedro Alves <palves@redhat.com>
5423 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5424 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5425 instead of collect_register_by_name.
5426 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5427 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5429 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5430 Pedro Alves <palves@redhat.com>
5432 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5434 2018-07-03 Tom Tromey <tom@tromey.com>
5436 * linux-low.c: Update.
5437 * lynx-low.c: Update.
5438 * mem-break.c: Update.
5439 * nto-low.c: Update.
5440 * remote-utils.c: Update.
5442 * spu-low.c: Update.
5444 * win32-low.c: Update.
5446 2018-07-03 Tom Tromey <tom@tromey.com>
5450 2018-07-03 Tom Tromey <tom@tromey.com>
5452 * linux-low.c: Update.
5454 2018-07-03 Tom Tromey <tom@tromey.com>
5458 2018-07-03 Tom Tromey <tom@tromey.com>
5460 * linux-low.c: Update.
5461 * linux-mips-low.c: Update.
5462 * lynx-low.c: Update.
5463 * nto-low.c: Update.
5464 * remote-utils.c: Update.
5466 * spu-low.c: Update.
5468 * thread-db.c: Update.
5470 2018-07-03 Tom Tromey <tom@tromey.com>
5472 * linux-low.c: Update.
5473 * linux-mips-low.c: Update.
5474 * lynx-low.c: Update.
5475 * mem-break.c: Update.
5476 * nto-low.c: Update.
5477 * remote-utils.c: Update.
5479 * spu-low.c: Update.
5481 * tracepoint.c: Update.
5483 2018-07-03 Tom Tromey <tom@tromey.com>
5485 * linux-low.c: Update.
5486 * linux-ppc-low.c: Update.
5487 * linux-x86-low.c: Update.
5488 * proc-service.c: Update.
5490 * spu-low.c: Update.
5491 * thread-db.c: Update.
5492 * win32-low.c: Update.
5494 2018-07-03 Tom Tromey <tom@tromey.com>
5496 * linux-low.c: Update.
5497 * lynx-low.c: Update.
5498 * nto-low.c: Update.
5499 * remote-utils.c: Update.
5500 * spu-low.c: Update.
5501 * thread-db.c: Update.
5502 * win32-low.c: Update.
5504 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5506 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5507 parameter in call to 'amd64_create_target_description'.
5509 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5511 * x86-tdesc.h: Remove executable permission flag.
5513 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5515 * configure.ac: Remove AC_PREREQ, add missing quoting.
5516 * configure: Re-generate.
5517 * config.in: Re-generate.
5518 * aclocal.m4: Re-generate.
5520 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5522 * tracepoint.h (current_traceframe): Remove declaration.
5524 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5526 * linux-aarch64-low.c (is_sve_tdesc): New function.
5527 (aarch64_sve_regs_copy_to_regcache): Likewise.
5528 (aarch64_sve_regs_copy_from_regcache): Likewise.
5529 (aarch64_regs_info): Add SVE checks.
5530 (initialize_low_arch): Initialize SVE.
5532 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5534 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5536 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5538 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5539 (initialize_low_tracepoint): Likewise
5540 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5541 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5543 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5545 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5547 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5549 * server.h (PBUFSIZ): Increase size
5551 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5553 * regcache.c (regcache::raw_compare): New function.
5554 * regcache.h (regcache::raw_compare): New declaration.
5556 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5558 * regcache.c (new_register_cache): Use new.
5559 (free_register_cache): Use delete.
5560 (register_data): Use const.
5561 (supply_register): Move body inside regcache.
5562 (regcache::raw_supply): New override function.
5563 (collect_register): Move body inside regcache.
5564 (regcache::raw_collect): New override function.
5565 (regcache::get_register_status): New override function.
5566 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5568 2018-06-09 Tom Tromey <tom@tromey.com>
5570 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5572 (event_queue): Use std::queue.
5573 (gdb_event_xfree): Remove.
5574 (initialize_event_loop, process_event, wait_for_event): Update.
5576 2018-06-08 Stan Cox <scox@redhat.com>
5578 * win32-low.c (win32_create_inferior): last_ptid and last_status
5579 moved to client_state.
5581 2018-06-08 Pedro Alves <palves@redhat.com>
5583 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5584 common/common-exceptions.o, common/common-utils.o,
5585 common/errors.o, common/print-utils.o and utils.o.
5586 * gdbreplay.c: Include "common-defs.h" instead of the two
5587 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5588 string.h or alloca.h.
5589 (perror_with_name): Delete.
5590 (remote_open): Use xstrdup instead of strdup.
5591 (main): Rename to ...
5592 (captured_main): ... this.
5595 2018-06-08 Tom Tromey <tom@tromey.com>
5597 * linux-low.c (linux_low_read_btrace): Update.
5599 2018-06-04 Stan Cox <scox@redhat.com>
5601 * server.h (struct client_state): New.
5602 * server.c (cont_thread, general_thread, multi_process)
5603 (report_fork_events, report_vfork_events, report_exec_events)
5604 (report_thread_events, swbreak_feature, hwbreak_feature)
5605 (vCont_supported, disable_randomization, pass_signals)
5606 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5607 Moved to client_state.
5608 * remote-utils.c (remote_debug, noack_mode)
5609 (transport_is_reliable): Moved to client_state.
5610 * tracepoint.c (current_traceframe): Moved to client_state.
5613 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5614 linux-low.c, remote-utils.h, target.c: Use client_state.
5616 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5618 * configure.srv: Add new c/h file.
5620 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5622 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5625 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5627 * gdb.arch/mips-fpregset-core.exp: New test.
5628 * gdb.arch/mips-fpregset-core.c: New test source.
5630 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5633 * hostio.c (require_int): Do not report overflow for integers
5634 between 0xfffffff and 0x7fffffff.
5636 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5638 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5639 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5640 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5642 (the_low_target): Wire them.
5644 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5646 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5647 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5648 mode. Call collect_register_by_name with vscr using
5649 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5650 (ppc_store_vrregset): Add and set vscr_offset variable as in
5651 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5654 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5656 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5657 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5658 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5660 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5662 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5663 (ppc_store_vsxregset): Likewise.
5664 (ppc_fill_vrregset): Likewise.
5665 (ppc_store_vrregset): Likewise.
5666 (ppc_fill_evrregset): Likewise.
5667 (ppc_store_evrregset): Likewise.
5668 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5669 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5672 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5674 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5675 wordsize of the inferior. Call ppc_linux_target_wordsize.
5677 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5679 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5680 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5681 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5682 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5683 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5684 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5685 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5686 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5687 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5688 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5689 (tdesc_powerpc_e500l): Remove.
5690 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5691 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5692 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5693 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5695 (ppc_arch_setup): Remove target description matching code. Fill a
5696 ppc_linux_features struct and call ppc_linux_match_description
5699 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5701 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5702 width of the requested register exceeds the width of the
5704 (mips_cannot_store_register): Likewise.
5706 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5708 * linux-mips-low.c (mips_fetch_register): New function. Update
5710 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5711 (the_low_target): Wire `mips_fetch_register'.
5713 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5715 * lynx-i386-low.c (LYNXOS_178): New macro.
5716 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5717 the layout on LynxOS-178.
5718 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5719 handle floating point registers that are not supported by
5722 2018-05-10 Tom Tromey <tom@tromey.com>
5724 * configure: Rebuild.
5726 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5729 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5730 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5731 Use it to set the expedite_regs field in the given tdesc.
5732 * x86-tdesc.h: New file.
5733 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5734 Adjust following the addition of the new expedite_regs parameter
5735 to init_target_desc.
5736 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5737 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5738 (i386_linux_read_description, amd64_linux_read_description):
5739 Adjust following the addition of the new expedite_regs parameter
5740 to init_target_desc.
5741 * lynx-i386-low.c: #include "x86-tdesc.h".
5742 (lynx_i386_arch_setup): Adjust following the addition of the new
5743 expedite_regs parameter to init_target_desc.
5744 * nto-x86-low.c: #include "x86-tdesc.h".
5745 (nto_x86_arch_setup): Adjust following the addition of the new
5746 expedite_regs parameter to init_target_desc.
5747 * win32-i386-low.c: #include "x86-tdesc.h".
5748 (i386_arch_setup): Adjust following the addition of the new
5749 expedite_regs parameter to init_target_desc.
5751 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5754 * win32-low.c (win32_create_inferior): Add call to my_wait
5755 setting last_status global.
5757 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5760 * win32-low.c (create_process): Only call gdb_tilde_expand if
5761 inferior_cwd is not NULL.
5763 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5765 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5766 registers to the cache if their values have changed.
5767 (i387_xsave_to_cache): Provide default values for x87 control
5768 registers when these features are available, but disabled.
5769 * regcache.c (supply_register_by_name_zeroed): New function.
5770 * regcache.h (supply_register_by_name_zeroed): Declare new
5773 2018-05-07 Tom Tromey <tom@tromey.com>
5775 * configure: Rebuild.
5777 2018-05-04 Tom Tromey <tom@tromey.com>
5779 * configure: Rebuild.
5781 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5782 Pedro Alves <palves@redhat.com>
5784 * linux-aarch64-low.c (aarch64_stopped_data_address):
5787 2018-04-27 Tom Tromey <tom@tromey.com>
5789 * configure: Rebuild.
5791 2018-04-23 Tom Tromey <tom@tromey.com>
5793 * configure: Rebuild.
5795 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5797 * Makefile.in (depcomp): Add "..".
5798 (all_deps_files): New and use it.
5800 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5802 * configure.srv (aarch64*-*-linux*): Don't include xml.
5803 (i[34567]86-*-cygwin*): Likewise.
5804 (i[34567]86-*-linux*): Likewise.
5805 (i[34567]86-*-lynxos*): Likewise.
5806 (i[34567]86-*-mingw32ce*): Likewise.
5807 (i[34567]86-*-mingw*): Likewise.
5808 (i[34567]86-*-nto*): Likewise.
5809 (tic6x-*-uclinux): Likewise.
5810 (x86_64-*-linux*): Likewise.
5811 (x86_64-*-mingw*): Likewise.
5812 (x86_64-*-cygwin*): Likewise.
5814 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5816 * tdesc.c: Remove xml parameter.
5818 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5820 * server.c (get_features_xml): Remove cast.
5821 * tdesc.c (void target_desc::accept): Fill in function.
5822 (tdesc_get_features_xml): Remove old xml creation.
5823 (print_xml_feature::visit_pre): Add xml vistor.
5824 * tdesc.h (struct target_desc): Make xmltarget mutable.
5825 (tdesc_get_features_xml): Remove declaration.
5827 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5829 * tdesc.c (tdesc_architecture_name): Add new function.
5830 (tdesc_osabi_name): Likewise.
5831 (tdesc_get_features_xml): Use new functions.
5833 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5835 * tdesc.c (tdesc_create_flags): Remove.
5836 (tdesc_add_flag): Likewise.
5837 (tdesc_named_type): Likewise.
5838 (tdesc_create_union): Likewise.
5839 (tdesc_create_struct): Likewise.
5840 (tdesc_create_vector): Likewise.
5841 (tdesc_add_bitfield): Likewise.
5842 (tdesc_add_field): Likewise.
5843 (tdesc_set_struct_size): Likewise.
5845 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5847 * tdesc.c (~target_desc): Remove implictly deleted items.
5848 (init_target_desc): Iterate all features.
5849 (tdesc_get_features_xml): Use vector.
5850 (tdesc_create_feature): Create feature.
5851 * tdesc.h (tdesc_feature) Remove
5852 (target_desc): Add features.
5854 2018-04-18 Alan Hayward <alan.hayward@arm.com>
5856 * Makefile.in: Add common/tdesc.c
5857 * tdesc.c (init_target_desc): init all reg_defs from register
5859 (tdesc_create_reg): Create tdesc_reg.
5860 * tdesc.h (tdesc_feature): Add register vector.
5862 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
5864 * tdesc.h (struct target_desc) <features>: Change type to
5865 std::vector<std::string>.
5866 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
5868 (tdesc_get_features_xml): Likewise.
5869 (tdesc_create_feature): Likewise.
5871 2018-03-26 Alan Hayward <alan.hayward@arm.com>
5873 * regcache.c (find_register_by_number): Return a ref.
5874 (find_regno): Use references.
5875 (register_size): Likewise.
5876 (register_data): Likewise.
5877 * tdesc.c (target_desc::~target_desc): Remove free calls.
5878 (target_desc::operator==): Use std::vector compare.
5879 (init_target_desc): Use reference.
5880 (tdesc_create_reg): Use reg constructors.
5881 * tdesc.h (struct target_desc): Replace pointer with object.
5883 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5885 * regcache.c (find_register_by_number): Make static.
5886 (find_regno): Use find_register_by_number
5887 * regcache.h (struct reg): Remove declaration.
5889 2018-03-23 Alan Hayward <alan.hayward@arm.com>
5891 * tdesc.c (target_desc::~target_desc): Move to here.
5892 (target_desc::operator==): Likewise.
5893 * tdesc.h (target_desc::~target_desc): Move from here.
5894 (target_desc::operator==): Likewise.
5896 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
5898 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
5900 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5902 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
5904 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
5905 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
5906 and init_registers_s390_gs_linux64.
5908 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5910 * linux-s390-low.c (s390_fill_gs): Remove function.
5911 (s390_fill_gsbc): Remove function.
5912 (s390_regsets): Set fill functions for the guarded storage regsets
5915 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5917 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
5918 the word size. Add comment.
5919 (s390_get_wordsize): New function.
5920 (s390_arch_setup): No longer select a temporary tdesc to fetch the
5921 pswm with it. Instead, use s390_get_wordsize to determine the
5922 word size first and derive the correct tdesc from that directly.
5924 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
5926 * Makefile.in: Include silent-rules.mk.
5927 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
5928 (COMPILE): Add ECHO_CXX.
5929 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5930 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
5931 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
5932 (version-generated.c): Add ECHO_GEN.
5933 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
5934 (IPAGENT_COMPILE): Add ECHO_CXX.
5935 (%-generated.c): Add ECHO_REGDAT.
5937 2018-03-14 Tom Tromey <tom@tromey.com>
5940 * ax.c (ax_printf): Special case for NULL.
5942 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5944 * linux-low.c (linux_qxfer_libraries_svr4): Use
5945 xml_escape_text_append.
5947 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
5949 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
5951 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5953 * server.c (handle_general_set): Remove unnecessary xstrdup.
5955 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5957 * server.c (parse_debug_format_options): Adjust to
5958 delim_string_to_char_ptr_vec changes.
5959 * thread-db.c (thread_db_load_search): Adjust to
5960 dirnames_to_char_ptr_vec changes.
5962 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
5964 * target.h (target_enable_btrace, target_disable_btrace)
5965 (target_read_btrace, target_read_btrace_conf): Turn macro into
5966 inline function. Throw error if target method is not defined.
5967 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
5968 check for btrace target method. Be prepared to handle exceptions
5969 from btrace target methods.
5971 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5973 * server.c (captured_main): Change order of error message printed
5974 when the current working directory cannot be found.
5976 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5978 * server.c: Include "filenames.h" and "pathstuff.h".
5979 (program_name): Delete variable.
5980 (program_path): New anonymous class.
5981 (get_exec_wrapper): Use "program_path" instead of
5983 (handle_v_run): Likewise.
5984 (captured_main): Likewise.
5985 (process_serial_event): Likewise.
5987 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
5989 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
5990 (OBJS): Add "pathstuff.o".
5991 * server.c (current_directory): New global variable.
5992 (captured_main): Initialize "current_directory".
5994 2018-02-26 Alan Hayward <alan.hayward@arm.com>
5996 * tdesc.c: Use common/tdesc.h.
5997 * tdesc.h: Likewise.
5999 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6000 Simon Marchi <simon.marchi@ericsson.com>
6002 * Makefile.in: Switch order of make rules.
6004 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6006 * Makefile.in: Add common directory in build.
6007 * configure.ac: Add common reference.
6008 * configure: Regenerate.
6010 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6012 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6013 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6014 * spu-low.c (spu_target_ops): Likewise.
6015 * win32-low.c (win32_target_ops): Likewise.
6016 * server.c (supported_btrace_packets): Report packets unconditionally.
6017 * target.h (target_ops) <supports_btrace>: Remove.
6018 (target_supports_btrace): Remove.
6020 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6022 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6023 (handle_btrace_disable): Change return type to void. Use exceptions
6025 (handle_btrace_general_set): Catch exception and copy message to
6028 2018-02-08 Tom Tromey <tom@tromey.com>
6030 * linux-low.c (install_software_single_step_breakpoints): Use
6031 make_scoped_restore.
6032 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6033 (do_restore_current_thread_cleanup): Remove.
6034 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6037 2018-02-08 Tom Tromey <tom@tromey.com>
6039 * mem-break.c (set_raw_breakpoint_at): Use
6040 gdb::unique_xmalloc_ptr.
6042 2018-01-30 Pedro Alves <palves@redhat.com>
6045 * target.c (target_terminal::terminal_state): Rename to ...
6046 (target_terminal::m_terminal_state): ... this.
6048 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6050 * linux-low.c (handle_extended_wait): Surround call to
6051 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6053 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6055 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6056 linux_ptrace_attach_fail_reason_string now returning an
6058 (linux_attach): Likewise.
6059 * thread-db.c (attach_thread): Likewise.
6061 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6064 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6065 checking for fs_base/gs_base fields in struct user_regs_struct.
6066 * configure: Regenerate.
6068 2018-01-16 Yao Qi <yao.qi@linaro.org>
6071 * linux-low.c (fetch_register): Call supply_register instead of
6074 2018-01-08 Yao Qi <yao.qi@linaro.org>
6075 Simon Marchi <simon.marchi@ericsson.com>
6077 * Makefile.in (OBS): Remove selftest.o.
6078 * configure.ac: Set srv_selftest_objs if $development is true.
6079 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6080 * configure: Re-generated.
6081 * server.c (captured_main): Wrap variable selftest_filter with
6084 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6086 * server.c (parse_debug_format_options): Return std::string.
6087 (handle_monitor_command, captured_main): Adjust.
6089 2018-01-05 Pedro Alves <palves@redhat.com>
6092 * server.c (captured_main): Pass quiet=false to
6093 save_original_signals_state.
6095 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6097 * gdbreplay.c (gdbreplay_version): Update copyright year in
6099 * server.c (gdbserver_version): Likewise.
6101 2017-12-08 Tom Tromey <tom@tromey.com>
6103 * ax.c (ax_printf): Update.
6105 2017-12-07 Yao Qi <yao.qi@linaro.org>
6107 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6108 aarch64_linux_read_description.
6109 * linux-amd64-ipa.c (idx2mask): New array.
6110 (get_ipa_tdesc): Move idx2mask out.
6111 (initialize_low_tracepoint): Initialize target descriptions.
6112 * linux-i386-ipa.c (idx2mask): New array.
6113 (get_ipa_tdesc): Move idx2mask out.
6114 (initialize_low_tracepoint): Initialize target descriptions.
6116 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6118 * tdesc.c (struct tdesc_type): Change return type.
6119 (tdesc_add_flag): Change parameter type.
6120 (tdesc_add_bitfield): Likewise.
6121 (tdesc_add_field): Likewise.
6122 (tdesc_set_struct_size): Likewise.
6124 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6126 * regcache.c (registers_to_string): Remove unused variable.
6128 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6130 * inferiors.c (for_each_inferior_with_data): Remove.
6131 * inferiors.h (for_each_inferior_with_data): Remove.
6132 * server.c (handle_qxfer_threads_worker): Change parameter type.
6133 (handle_qxfer_threads_proper): Use for_each_thread.
6135 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6137 * inferiors.c (for_each_inferior): Remove.
6138 (clear_inferiors): Use for_each_thread.
6139 * inferiors.h (for_each_inferior): Remove.
6140 * linux-low.c (linux_wait_for_event_filtered): Use
6142 (linux_stabilize_threads): Likewise.
6143 * regcache.c (regcache_release): Likewise.
6144 * server.c (gdb_wants_all_threads_stopped): Likewise.
6145 (clear_pending_status_callback): Remove.
6146 (handle_status): Use for_each_thread.
6147 (captured_main): Likewise.
6148 * win32-low.c (child_init_thread_list): Likewise.
6149 (win32_clear_inferiors): Likewise.
6150 (fake_breakpoint_event): Likewise.
6152 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6154 * inferiors.h (find_inferior): Remove.
6155 * inferiors.c (find_inferior): Remove.
6157 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6159 * linux-low.c (resume_status_pending_p): Update comment.
6160 (need_step_over_p): Update comment.
6162 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6164 * linux-low.c (proceed_one_lwp): Return void, change parameter
6166 (unsuspend_and_proceed_one_lwp): Likewise.
6167 (proceed_all_lwps): Use for_each_thread.
6168 (unstop_all_lwps): Likewise.
6170 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6172 * linux-low.c (linux_resume_one_thread): Return void, take
6174 (linux_resume): Use for_each_thread.
6176 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6178 * linux-low.c (send_sigstop_callback): Return void, change
6179 parameter type. Rename to...
6180 (send_sigstop): ... this.
6181 (suspend_and_send_sigstop_callback): Return void, change parameter
6183 (suspend_and_send_sigstop): ... this.
6184 (stop_all_lwps): Use for_each_thread.
6186 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6188 * linux-low.c (lwp_running): Return bool, remove unused
6190 (linux_stabilize_threads): Use find_thread.
6192 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6194 * linux-low.c (select_singlestep_lwp_callback): Remove.
6195 (count_events_callback): Remove.
6196 (select_event_lwp_callback): Remove.
6197 (select_event_lwp): Use find_thread/for_each_thread.
6199 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6201 * linux-low.c (not_stopped_callback): Return bool, take filter
6203 (linux_wait_for_event_filtered): Use find_thread.
6204 (linux_wait_1): Likewise.
6206 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6208 * linux-low.c (same_lwp): Remove.
6209 (find_lwp_pid): Use find_thread.
6211 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6213 * linux-low.c (delete_lwp_callback): Remove.
6214 (linux_mourn): Use for_each_thread.
6216 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6218 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6219 args parameter, don't check for pid.
6220 (linux_detach): Use for_each_thread.
6222 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6224 * linux-low.c (struct counter): Remove.
6225 (second_thread_of_pid_p): Remove.
6226 (last_thread_of_process_p): Use find_thread.
6228 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6230 * inferiors.c (find_inferior_in_random): Remove.
6231 * inferiors.h (find_inferior_in_random): Remove.
6232 * linux-low.c (status_pending_p_callback): Return bool, accept
6233 parameter ptid directly.
6234 (linux_wait_for_event_filtered): Use find_thread_in_random.
6235 (linux_wait_1): Likewise.
6237 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6239 * inferiors.c (find_inferior_id): Remove.
6240 (find_thread_ptid): Move implemention from find_inferior_id to
6242 * inferiors.h (find_inferior_id): Remove.
6243 * server.c (handle_status): Use find_thread_ptid.
6244 (process_serial_event): Likewise.
6245 * thread-db.c (find_one_thread): Likewise.
6246 (thread_db_thread_handle): Likewise.
6247 * win32-low.c (thread_rec): Likewise.
6248 (child_delete_thread): Likewise.
6249 (win32_thread_alive): Likewise.
6250 (get_child_debug_event): Likewise.
6252 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6254 * linux-mips-low.c (update_watch_registers_callback): Return
6255 void, remove pid_p parameter, don't check for pid.
6256 (mips_insert_point, mips_remove_point): Use for_each_thread.
6258 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6260 * lynx.low (lynx_delete_thread_callback): Remove.
6261 (lynx_mourn): Use for_each_thread.
6263 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6265 * regcache.c (regcache_invalidate_one): Remove.
6266 (regcache_invalidate_pid): use for_each_thread.
6268 2017-11-26 Tom Tromey <tom@tromey.com>
6270 * linux-low.c (linux_create_inferior): Update.
6272 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6274 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6276 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6278 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6279 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6280 * linux-aarch64-tdesc-selftest.c: New file.
6281 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6283 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6285 * configure.srv: Add new file.
6286 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6287 * linux-aarch64-tdesc-selftest.c: New file.
6288 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6290 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6292 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6293 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6294 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6296 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6298 * configure.srv: Add new files.
6299 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6300 aarch64_linux_read_description.
6301 * linux-aarch64-low.c (aarch64_linux_read_description):
6302 Merge with aarch64_arch_setup.
6303 (aarch64_arch_setup): Call aarch64_linux_read_description.
6304 * linux-aarch64-tdesc.c: New file.
6305 * linux-aarch64-tdesc.h: New file.
6307 2017-11-24 Yao Qi <yao.qi@linaro.org>
6309 * configure.srv: Set $srv_regobj for tic6x-linux.
6310 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6311 (tic6x_read_description): Move some code to tic6x_arch_setup.
6312 (tic6x_tdesc_test): New function.
6313 (initialize_low_arch): Call selftests::register_test.
6315 2017-11-22 Yao Qi <yao.qi@linaro.org>
6317 * remote-utils.c (prepare_resume_reply): Use memcpy.
6319 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6321 * linux-low.c (kill_one_lwp_callback): Return void, take
6322 argument directly, don't filter on pid.
6323 (linux_kill): Use for_each_thread.
6325 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6327 * linux-low.c (need_step_over_p): Return bool, remove dummy
6329 (linux_resume, proceed_all_lwps): Use find_thread.
6331 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6333 * linux-low.c (resume_status_pending_p): Return bool, remove
6335 (linux_resume): Use find_thread.
6337 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6339 * linux-low.c (struct thread_resume_array): Remove.
6340 (linux_set_resume_request): Return void, take arguments
6342 (linux_resume): Use for_each_thread.
6344 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6346 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6347 return bool, remove data argument.
6348 (linux_stabilize_threads): Use find_thread.
6350 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6352 * linux-low.c (unsuspend_one_lwp): Remove.
6353 (unsuspend_all_lwps): Use for_each_thread, inline code from
6356 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6358 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6359 * linux-low.c (struct iterate_over_lwps_args): Remove.
6360 (iterate_over_lwps_filter): Remove.
6361 (iterate_over_lwps): Use find_thread.
6363 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6365 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6366 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6367 code from reset_lwp_ptrace_options_callback.
6369 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6371 * linux-arm-low.c (struct update_registers_data): Remove.
6372 (update_registers_callback): Return void, take arguments
6373 directly, don't check thread's pid.
6374 (arm_insert_point, arm_remove_point): Use for_each_thread.
6376 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6378 * win32-low.c (continue_one_thread): Return void, take argument
6380 (child_continue): Use for_each_thread.
6382 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6384 * win32-i386-low.c (update_debug_registers_callback): Rename
6386 (update_debug_registers): ... this, return void, remove pid_p arg.
6387 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6389 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6391 * inferiors.h (struct process_info): Add constructor, initialize
6393 <syscalls_to_catch>: Change type to std::vector<int>.
6394 * inferiors.c (add_process): Allocate process_info with new.
6395 (remove_process): Free process_info with delete.
6396 * linux-low.c (handle_extended_wait): Adjust.
6397 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6398 * server.c (handle_general_set): Adjust.
6400 2017-11-16 Pedro Alves <palves@redhat.com>
6402 * remote-utils.c (remote_close): Block SIGIO signals instead of
6403 uninstalling the SIGIO handler.
6405 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6407 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6409 2017-11-16 Yao Qi <yao.qi@linaro.org>
6411 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6412 (tic6x_store_gregset): Likewise.
6413 (tic6x_usrregs_info): Move it up.
6415 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6417 * Makefile.in: Update arch rules.
6418 * configure.srv: Explicitly mark arch/ files.
6420 2017-11-13 Andreas Schwab <schwab@suse.de>
6422 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6424 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6426 2017-11-06 Pedro Alves <palves@redhat.com>
6428 * config.in, configure: Regenerate.
6430 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6432 * target.c (struct thread_search): Remove.
6433 (thread_search_callback): Remove.
6434 (prepare_to_access_memory): Use for_each_thread instead of
6435 find_inferior. Inline code from thread_search_callback.
6437 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6439 * server.c (struct visit_actioned_threads_data): Remove.
6440 (visit_actioned_threads): Change prototype to take arguments
6442 (resume): Use find_thread instead of find_inferior.
6444 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6446 * server.c (queue_stop_reply_callback): Change prototype, return
6448 (find_status_pending_thread_callback): Remove.
6449 (handle_status): Replace find_inferior with find_thread and
6452 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6454 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6456 (aarch64_store_gregset): Likewise.
6457 (aarch64_fill_fpregset): Likewise.
6458 (aarch64_store_fpregset): Likewise.
6460 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6462 * gdbthread.h (find_thread, for_each_thread): New functions.
6463 * inferiors.c (thread_of_pid): Remove.
6464 (find_any_thread_of_pid): Use find_thread.
6465 * linux-low.c (num_lwps): Use for_each_thread.
6467 2017-10-17 Yao Qi <yao.qi@linaro.org>
6469 * Makefile.in: Remove one rule.
6470 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6472 2017-10-17 Yao Qi <yao.qi@linaro.org>
6474 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6475 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6477 2017-10-17 Yao Qi <yao.qi@linaro.org>
6479 * configure.srv: Rename arm.o with arch/arm.o.
6481 2017-10-17 Yao Qi <yao.qi@linaro.org>
6483 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6484 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6485 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6486 (arch-i386.o, arch-amd64.o): Remove rules.
6487 (arch/%.o): New rule.
6488 Update POSTCOMPILE and COMPILE.pre.
6489 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6490 * configure: Re-generated.
6491 * configure.srv: Replace arch-i386.o with arch/i386.o.
6492 Replace arch-amd64.o with arch/amd64.o.
6494 2017-10-16 Yao Qi <yao.qi@linaro.org>
6496 * configure: Regenerated.
6498 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6500 * inferiors.h: (struct inferior_list): Remove.
6501 (struct inferior_list_entry); Remove.
6502 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6503 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6504 get_first_inferior): Remove.
6505 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6506 find_inferior_id, find_inferior_in_random): Change signature.
6507 * inferiors.c (all_threads): Change type to
6508 std::list<thread_info *>.
6509 (get_thread): Remove macro.
6510 (find_inferior, find_inferior_id): Change signature, implement
6512 (find_inferior_in_random): Change signature, implement using
6513 find_thread_in_random.
6514 (for_each_inferior, for_each_inferior_with_data): Change
6515 signature, implement using for_each_thread.
6516 (add_inferior_to_list, remove_inferior): Remove.
6517 (add_thread, get_first_thread, thread_of_pid,
6518 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6519 (get_first_inferior, one_inferior_p, clear_inferior_list):
6521 (clear_inferiors, get_thread_process): Update.
6522 * gdbthread.h: Include <list>.
6523 (struct thread_info) <entry>: Remove field.
6525 (all_threads): Change type to std::list<thread_info *>.
6526 (get_first_inferior): Add doc.
6527 (find_thread, for_each_thread, find_thread_in_random): New
6529 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6530 * linux-arm-low.c (update_registers_callback): Update.
6531 * linux-low.c (second_thread_of_pid_p): Update.
6532 (kill_one_lwp_callback, linux_detach_lwp_callback,
6533 delete_lwp_callback, status_pending_p_callback, same_lwp,
6534 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6535 iterate_over_lwps, not_stopped_callback,
6536 resume_stopped_resumed_lwps, count_events_callback,
6537 select_singlestep_lwp_callback, select_event_lwp_callback,
6538 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6539 suspend_and_send_sigstop_callback, wait_for_sigstop,
6540 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6541 lwp_running, linux_set_resume_request, resume_status_pending_p,
6542 need_step_over_p, start_step_over, linux_resume_one_thread,
6543 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6544 reset_lwp_ptrace_options_callback): Update.
6545 * linux-mips-low.c (update_watch_registers_callback): Update.
6546 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6548 (free_register_cache_thread_one): Remove.
6549 (regcache_release): Update.
6550 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6551 handle_qxfer_threads_worker): Update.
6552 (handle_query): Update, use list iterator.
6553 (visit_actioned_threads, handle_pending_status,
6554 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6555 clear_pending_status_callback, set_pending_status_callback,
6556 find_status_pending_thread_callback, handle_status,
6557 process_serial_event): Update.
6558 * target.c (thread_search_callback): Update.
6559 * thread-db.c (thread_db_get_tls_address): Update.
6560 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6562 * win32-i386-low.c (update_debug_registers_callback): Update.
6563 * win32-low.c (delete_thread_info, child_delete_thread,
6564 continue_one_thread, suspend_one_thread,
6565 get_child_debug_event): Adjust.
6567 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6569 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6570 * inferiors.h: Include <list>.
6571 (struct process_info) <entry>: Remove field.
6573 (pid_of): Change macro to function.
6574 (ptid_of, lwpid_of): Remove macro.
6575 (all_processes): Change type to std::list<process_info *>.
6576 (ALL_PROCESSES): Remove macro.
6577 (for_each_process, find_process): New function.
6578 * inferiors.c (all_processes): Change type to
6579 std::list<process_info *>.
6580 (find_thread_process): Adjust.
6581 (add_process): Likewise.
6582 (remove_process): Likewise.
6583 (find_process_pid): Likewise.
6584 (get_first_process): Likewise.
6585 (started_inferior_callback): Remove.
6586 (have_started_inferiors_p): Adjust.
6587 (attached_inferior_callback): Remove.
6588 (have_attached_inferiors_p): Adjust.
6589 * linux-low.c (check_zombie_leaders): Likewise.
6590 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6591 (x86_linux_update_xmltarget): Adjust.
6592 * server.c (handle_query): Likewise.
6593 (gdb_reattached_process): Remove.
6594 (handle_status): Adjust.
6595 (kill_inferior_callback): Likewise.
6596 (detach_or_kill_inferior): Remove.
6597 (print_started_pid): Likewise.
6598 (print_attached_pid): Likewise.
6599 (detach_or_kill_for_exit): Update.
6600 (process_serial_event): Likewise.
6601 * linux-arm-low.c (arm_new_fork): Likewise.
6603 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6605 * dll.h: Include <list>.
6606 (struct dll_info): Add constructor.
6607 <entry>: Remove field.
6608 (all_dlls): Change type to std::list<dll_info>.
6609 * dll.c: Include <algorithm>.
6610 (get_dll): Remove macro.
6611 (all_dlls): Change type to std::list<dll_info *>.
6612 (free_one_dll): Remove.
6613 (match_dll): Likewise.
6614 (loaded_dll): Adjust.
6615 (unloaded_dll): Adjust to all_dlls type change, use
6616 std::find_if. Inline code from match_dll.
6617 (clear_dlls): Adjust to all_dlls type change.
6618 * server.c (emit_dll_description): Remove.
6619 (handle_qxfer_libraries): Adjust to all_dlls type change,
6620 integrate emit_dll_description's functionality.
6622 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6624 * linux-low.h (struct linux_target_ops) <delete_process>: New
6626 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6627 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6628 (struct linux_target_ops): Add delete_process callback.
6629 * linux-arm-low.c (arm_delete_process): New.
6630 (struct linux_target_ops): Add delete_process callback.
6631 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6632 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6633 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6634 * linux-mips-low.c (mips_linux_delete_process): New.
6635 (struct linux_target_ops): Add delete_process callback.
6636 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6637 * linux-s390-low.c (struct linux_target_ops): Likewise.
6638 * linux-sh-low.c (struct linux_target_ops): Likewise.
6639 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6640 * linux-tile-low.c (struct linux_target_ops): Likewise.
6641 * linux-x86-low.c (x86_linux_delete_process): New.
6642 (struct linux_target_ops): Add delete_process callback.
6643 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6645 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6647 * linux-aarch64-low.c (the_low_target): Add thread delete
6649 * linux-arm-low.c (arm_delete_thread): New function.
6650 (the_low_target): Add thread delete callback.
6651 * linux-bfin-low.c (the_low_target): Likewise.
6652 * linux-crisv32-low.c (the_low_target): Likewise.
6653 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6655 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6657 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6658 * linux-mips-low.c (mips_linux_delete_thread): New function.
6659 (the_low_target): Add thread delete callback.
6660 * linux-ppc-low.c (the_low_target): Likewise.
6661 * linux-s390-low.c (the_low_target): Likewise.
6662 * linux-sh-low.c (the_low_target): Likewise.
6663 * linux-tic6x-low.c (the_low_target): Likewise.
6664 * linux-tile-low.c (the_low_target): Likewise.
6665 * linux-x86-low.c (the_low_target): Likewise.
6666 * linux-xtensa-low.c (the_low_target): Likewise.
6668 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6670 * win32-low.c: Include "common-inferior.h".
6672 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6674 * inferiors.c (set_inferior_cwd): New function.
6675 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6676 (handle_query): Inform that QSetWorkingDir is supported.
6677 * win32-low.c (create_process): Pass the inferior's cwd to
6680 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6682 * inferiors.c (current_inferior_cwd): New global variable.
6683 (get_inferior_cwd): New function.
6684 * inferiors.h (struct process_info) <cwd>: New field.
6686 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6688 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6689 (OBS): Add gdb_tilde_expand.o.
6691 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6693 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6694 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6696 2017-09-29 Pedro Alves <palves@redhat.com>
6698 * ax.c (gdb_parse_agent_expr): Constify.
6699 * ax.h (gdb_parse_agent_expr): Constify.
6700 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6702 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6703 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6704 * remote-utils.h (read_ptid): Constify.
6705 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6706 (process_point_options, process_serial_event): Constify.
6707 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6708 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6709 (cmd_qtbuffer): Constify.
6711 2017-09-29 Pedro Alves <palves@redhat.com>
6713 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6716 2017-09-29 Pedro Alves <palves@redhat.com>
6718 * linux-low.c (handle_extended_wait): Pass parent thread instead
6719 of process to thread_db_notice_clone.
6720 * linux-low.h (thread_db_notice_clone): Replace parent process
6721 parameter with parent thread parameter.
6722 * thread-db.c (find_one_thread): Add comment.
6723 (thread_db_notice_clone): Replace parent process parameter with
6724 parent thread parameter. Temporarily switch to the parent thread.
6726 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6728 * gdbthread.h: Include "common-gdbthread.h".
6729 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6730 "if" when validating the ptid.
6731 * remote-utils.c: Include "gdbthread.h".
6732 (prepare_resume_reply): Use "switch_to_thread".
6733 * target.c (done_accessing_memory): Likewise.
6735 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6737 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6738 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6739 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6740 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6741 s390x-gs-linux64-ipa.o to ipa_obj.
6742 * linux-s390-low.c (HWCAP_S390_GS): New define.
6743 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6745 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6746 (s390_arch_setup): Check for guarded-storage support and choose
6748 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6749 init_registers_s390x_gs_linux64.
6750 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6752 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6753 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6755 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6757 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6759 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6761 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6762 (thread_db_thread_handle): Declare.
6763 * linux-low.c (linux_target_ops): Initialize thread_handle.
6764 * server.c (handle_qxfer_threads_worker): Add support for
6766 * target.h (struct target_ops): Add new function pointer,
6768 (target_thread_handle): Define.
6769 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6771 (thread_db_thread_handle): New function.
6773 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6775 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6776 * linux-low.h (thread_db_notice_clone): Declare.
6777 * thread-db.c (thread_db_notice_clone): New function.
6779 2017-09-21 Pedro Alves <palves@redhat.com>
6781 * server.c (gdb_read_memory, handle_status, process_serial_event)
6782 (handle_serial_event, handle_target_event): Adjust to
6783 set_desired_thread prototype change.
6784 * target.c (set_desired_thread): Remove 'use_general' parameter
6786 * target.h (set_desired_thread): Remove 'use_general' parameter.
6788 2017-09-20 Tom Tromey <tom@tromey.com>
6790 * target.c (target_terminal::terminal_state): Define.
6791 (target_terminal::init): Rename from target_terminal_init.
6792 (target_terminal::inferior): Rename from
6793 target_terminal_inferior.
6794 (target_terminal::ours): Rename from target_terminal_ours.
6795 (target_terminal::ours_for_output, target_terminal::info): New.
6797 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6799 * server.c (accumulate_file_name_length): Remove.
6800 (emit_dll_description): Adjust to std::string change.
6801 (handle_qxfer_libraries): Use std::string to hold document.
6803 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6805 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
6806 return type of xml_escape_text.
6807 * server.c (emit_dll_description): Likewise.
6809 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6811 * server.c (captured_main): Accept argument for --selftest.
6812 Update run_tests call.
6813 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
6814 when registering selftests.
6816 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
6818 * regcache.c (get_thread_regcache): Update code to use "std::vector"
6819 instead of "VEC" for "target_desc.reg_defs".
6820 (regcache_cpy): Likewise.
6821 (registers_to_string): Likewise.
6822 (registers_from_string): Likewise.
6823 (find_regno): Likewise.
6824 (supply_regblock): Likewise.
6825 (regcache_raw_read_unsigned): Likewise.
6826 * tdesc.c (init_target_desc): Likewise.
6827 (tdesc_create_reg): Likewise.
6828 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
6829 (struct target_desc) <reg_defs>: Convert to "std::vector".
6830 (target_desc): Do not initialize "reg_defs".
6831 (~target_desc): Update code to use "std::vector" instead of "VEC"
6832 for "target_desc.reg_defs".
6833 (operator==): Likewise.
6835 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6837 * inferiors.h (thread_to_gdb_id): Remove.
6838 * inferiors.c (thread_to_gdb_id): Remove.
6839 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
6840 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
6841 lynx_store_registers, lynx_read_memory, lynx_write_memory):
6843 * nto-low.c (nto_fetch_registers, nto_store_registers,
6844 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
6846 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6848 * inferiors.h (gdb_id_to_thread_id): Remove.
6849 * inferiors.c (gdb_id_to_thread_id): Remove.
6850 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
6851 removal. Move pid declaration closer to where it's used.
6853 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6855 * server.c (handle_detach): New function.
6856 (process_serial_event): Move code out, call handle_detach.
6858 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6860 * server.c (require_running): Rename to ...
6861 (require_running_or_return): ... this ...
6862 (require_running_or_break): ... and this.
6863 (handle_query, process_serial_event): Adjust.
6865 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6867 * linux-low.c (linux_set_resume_request): Remove unused
6870 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
6872 * server.c (first_thread_of): Remove.
6873 (process_serial_event): Replace usage of first_thread_of with
6874 find_any_thread_of_pid.
6875 * tracepoint.c (same_process_p): Remove.
6876 (gdb_agent_about_to_close): Replace usage of same_process_p with
6877 find_any_thread_of_pid.
6878 * linux-x86-low.c (same_process_callback): Remove.
6879 (x86_arch_setup_process_callback): Replace usage of
6880 same_process_callback with find_any_thread_of_pid.
6881 * thread-db.c (any_thread_of): Remove.
6882 (switch_to_process): Replace usage of any_thread_of with
6883 find_any_thread_of_pid.
6884 * inferiors.c (thread_pid_matches_callback): Remove.
6885 (find_thread_process): Adjust to use find_any_thread_of_pid.
6887 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6889 * regcache.c (get_thread_regcache): Guard calls to "memset"
6892 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
6894 * linux-low.c (handle_extended_wait): Use
6895 "allocate_target_description" instead of "XNEW".
6896 * linux-x86-low.c (initialize_low_arch): Likewise.
6898 2017-09-05 Yao Qi <yao.qi@linaro.org>
6900 * configure.srv (srv_i386_regobj): Remove.
6901 (srv_amd64_regobj): Remove.
6902 (srv_regobj): Set it to "" for x86 non-linux targets.
6903 * linux-x86-tdesc.c (i386_linux_read_description):
6904 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
6905 (init_registers_i386): Remove the declaration.
6906 (tdesc_i386): Remove the declaration.
6907 (lynx_i386_arch_setup): Call i386_create_target_description.
6908 * nto-x86-low.c: Likewise.
6909 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
6910 [!__x86_64__]: include arch/i386.h.
6911 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
6913 2017-09-05 Yao Qi <yao.qi@linaro.org>
6915 * configure.srv (srv_amd64_linux_xmlfiles): Remove
6916 i386/amd64-XXX-linux from it.
6918 2017-09-05 Yao Qi <yao.qi@linaro.org>
6920 * configure.srv: Empty srv_amd64_linux_regobj if $development is
6922 (ipa_amd64_linux_regobj): Remove.
6923 (ipa_x32_linux_regobj): Remove.
6925 2017-09-05 Yao Qi <yao.qi@linaro.org>
6927 * Makefile.in (arch-amd64.o): New rule.
6928 * configure.srv: Append arch-amd64.o.
6929 * linux-amd64-ipa.c: Include common/x86-xstate.h.
6930 (get_ipa_tdesc): Call amd64_linux_read_description.
6931 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
6932 and init_registers_amd64_XXX.
6933 * linux-x86-low.c (x86_linux_read_description): Call
6934 amd64_linux_read_description.
6935 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
6936 (initialize_low_arch): Don't call init_registers_x32_XXX and
6937 init_registers_amd64_XXX.
6938 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
6939 and tdesc_amd64_XXX.
6940 [__x86_64__] (amd64_tdesc_test): New function.
6941 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
6942 and init_registers_amd64_XXX.
6943 * linux-x86-tdesc.c: Include arch/amd64.h.
6944 (xcr0_to_tdesc_idx): New function.
6945 (i386_linux_read_description): New function.
6946 (amd64_get_ipa_tdesc_idx): New function.
6947 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
6948 (amd64_get_ipa_tdesc): Declare.
6950 2017-09-05 Yao Qi <yao.qi@linaro.org>
6952 * configure.srv (srv_i386_linux_xmlfiles): Remove
6953 i386/i386-XXX-linux.xml from it.
6955 2017-09-05 Yao Qi <yao.qi@linaro.org>
6957 * configure.srv: Set srv_i386_linux_regobj empty if $development
6959 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
6960 initialize_low_tdesc.
6961 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
6962 with #if initialize_low_tdesc.
6963 * linux-x86-tdesc-selftest.c: New file.
6964 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
6966 2017-09-05 Yao Qi <yao.qi@linaro.org>
6968 * Makefile.in (arch-i386.o): New rule.
6969 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
6970 (x86_64-*-linux*): Likewise.
6971 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
6972 include arch/i386.h.
6973 (i386_linux_read_description): Remove code and call
6974 i386_create_target_description.
6975 * tdesc.c (allocate_target_description): New function.
6976 * tdesc.h (set_tdesc_architecture): Remove declaration.
6977 (set_tdesc_osabi): Likewise.
6979 2017-09-05 Yao Qi <yao.qi@linaro.org>
6981 * linux-x86-tdesc.c: Don't include <inttypes.h>.
6982 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
6983 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
6985 * server.c (get_features_xml): Call tdesc_get_features_xml.
6986 * tdesc.c (set_tdesc_architecture): New function.
6987 (set_tdesc_osabi): New function.
6988 (tdesc_get_features_xml): New function.
6989 (tdesc_create_feature): Add an argument.
6990 * tdesc.h (struct target_desc) <features>: New field.
6991 <arch, osabi>: New field.
6992 (~target_desc): xfree features, arch, and osabi.
6993 (target_desc::oerator==): Don't compare .xmltarget.
6994 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
6995 (set_tdesc_osabi): Likewise.
6996 (tdesc_get_features_xml): Likewise.
6998 2017-09-05 Yao Qi <yao.qi@linaro.org>
7000 * linux-x86-tdesc.c: Include selftest.h.
7001 (i386_tdesc_test): New function.
7002 (initialize_low_tdesc): Call selftests::register_test.
7003 * tdesc.h: Include regdef.h.
7004 (target_desc): Override operator == and !=.
7006 2017-09-05 Yao Qi <yao.qi@linaro.org>
7008 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7009 (ipa_obj): Likewise.
7010 * linux-i386-ipa.c: Include common/x86-xstate.h
7011 (get_ipa_tdesc): Call i386_linux_read_description.
7012 (initialize_low_tracepoint): Don't call init_registers_XXX
7013 functions, call initialize_low_tdesc instead.
7014 * linux-x86-low.c (x86_linux_read_description): Call
7015 i386_linux_read_description.
7016 (initialize_low_arch): Don't call init_registers_i386_XXX
7017 functions, call initialize_low_tdesc.
7018 * linux-x86-tdesc.c: New file.
7019 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7020 (i386_get_ipa_tdesc_idx): Declare.
7021 (i386_get_ipa_tdesc): Declare.
7022 (initialize_low_tdesc): Declare.
7024 2017-09-05 Yao Qi <yao.qi@linaro.org>
7026 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7029 2017-09-05 Yao Qi <yao.qi@linaro.org>
7031 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7032 * regcache.c (get_thread_regcache): Use VEC_length.
7033 (init_register_cache): Likewise.
7034 (regcache_cpy): Likewise.
7035 (registers_to_string): Iterate reg_defs via VEC_iterate.
7036 (find_regno): Likewise.
7037 (find_register_by_number): Use VEC_index.
7038 (register_size): Call find_register_by_number.
7039 (register_data): Call find_register_by_number.
7040 (supply_regblock): Use VEC_length.
7041 (regcache_raw_read_unsigned): Likewise.
7042 * tdesc.c (init_target_desc): Iterate reg_defs via
7044 (default_description): Update initializer.
7045 (copy_target_description): Don't update field num_registers.
7046 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7047 <num_registers>: Remove.
7049 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7051 * Makefile.in (.SECONDARY): Define target.
7053 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7055 * linux-low.c (linux_wait_1): Adjust.
7056 * server.c (queue_stop_reply_callback): Adjust.
7058 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7060 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7061 QEnvironmentUnset and QEnvironmentReset packets.
7062 (handle_query): Inform remote that QEnvironmentHexEncoded,
7063 QEnvironmentUnset and QEnvironmentReset are supported.
7065 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7067 * inferiors.h (inferior_target_data): Rename to ...
7068 (thread_target_data): ... this.
7069 (inferior_regcache_data): Rename to ...
7070 (thread_regcache_data): ... this.
7071 (set_inferior_regcache_data): Rename to ...
7072 (set_thread_regcache_data): ... this.
7073 * inferiors.c (inferior_target_data): Rename to ...
7074 (thread_target_data): ... this.
7075 (inferior_regcache_data): Rename to ...
7076 (thread_regcache_data): ... this.
7077 (set_inferior_regcache_data): Rename to ...
7078 (set_thread_regcache_data): ... this.
7079 (free_one_thread): Update.
7080 * linux-low.h (get_thread_lwp): Update.
7081 * regcache.c (get_thread_regcache): Update.
7082 (regcache_invalidate_thread): Update.
7083 (free_register_cache_thread): Update.
7084 * win32-i386-low.c (update_debug_registers_callback): Update.
7085 (win32_get_current_dr): Update.
7086 * win32-low.c (thread_rec): Update.
7087 (delete_thread_info): Update.
7088 (continue_one_thread): Update.
7089 (suspend_one_thread): Update.
7091 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7093 * inferiors.c (set_inferior_target_data): Remove.
7094 * inferiors.h (set_inferior_target_data): Remove.
7096 2017-08-18 Yao Qi <yao.qi@linaro.org>
7098 * Makefile.in (OBS): Add selftest.o.
7099 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7100 * configure, config.in: Re-generated.
7101 * server.c: Include common/sefltest.h.
7102 (captured_main): Handle option --selftest.
7104 2017-08-09 Yao Qi <yao.qi@linaro.org>
7106 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7107 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7108 i386-avx-mpx.o and i386-mmx.o.
7109 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7110 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7111 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7112 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7113 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7114 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7115 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7116 i386/amd64-avx-mpx.xml.
7118 2017-08-09 Yao Qi <yao.qi@linaro.org>
7120 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7121 and x32-avx-avx512.o.
7122 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7123 i386/x32-avx-avx512.xml.
7125 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7127 * tracepoint.h (enum class fast_tpoint_collect_result): New
7129 (fast_tracepoint_collecting): Change return type to
7130 fast_tpoint_collect_result.
7131 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7132 * linux-low.h: Include tracepoint.h.
7133 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7134 fast_tpoint_collect_result.
7135 * linux-low.c (handle_tracepoints): Adjust.
7136 (linux_fast_tracepoint_collecting): Change return type to
7137 fast_tpoint_collect_result.
7138 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7139 linux_wait_1, stuck_in_jump_pad_callback,
7140 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7141 proceed_one_lwp): Adjust to type change.
7143 2017-07-10 Yao Qi <yao.qi@linaro.org>
7145 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7147 2017-06-29 Yao Qi <yao.qi@linaro.org>
7149 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7151 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7153 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7155 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7157 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7159 * linux-low.c (linux_create_inferior): Adjust code to access the
7160 environment information via 'gdb_environ' class.
7161 * lynx-low.c (lynx_create_inferior): Likewise.
7162 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7163 (get_environ): Return a pointer to 'our_environ'.
7164 (captured_main): Initialize 'our_environ'.
7165 * server.h (get_environ): Adjust prototype.
7166 * spu-low.c (spu_create_inferior): Adjust code to access the
7167 environment information via 'gdb_environ' class.
7169 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7171 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7172 usage of "register" keyword.
7174 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7176 * configure: Re-generate.
7178 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7180 * configure: Re-generate.
7182 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7184 * Makefile.in (COMPILE.pre): Add "-x c++".
7186 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7188 * fork-child.c: Conditionally include <signal.h>.
7190 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7192 * server.c (handle_general_set): Handle new packet
7193 "QStartupWithShell".
7194 (handle_query): Add "QStartupWithShell" to the list of supported
7196 (gdbserver_usage): Add help text explaining the
7197 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7199 (captured_main): Recognize and act upon the presence of the new
7202 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7203 Pedro Alves <palves@redhat.com>
7205 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7206 * configure: Regenerate.
7207 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7209 (i[34567]86-*-lynxos*): Likewise.
7210 (spu*-*-*): Likewise.
7211 * fork-child.c: New file.
7212 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7214 (linux_ptrace_fun): New function.
7215 (linux_create_inferior): Adjust function prototype to reflect
7216 change on "target.h". Adjust function code to use
7218 (linux_request_interrupt): Delete "signal_pid".
7219 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7220 (lynx_ptrace_fun): New function.
7221 (lynx_create_inferior): Adjust function prototype to reflect
7222 change on "target.h". Adjust function code to use
7224 * nto-low.c (nto_create_inferior): Adjust function prototype and
7225 code to reflect change on "target.h". Update comments.
7226 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7227 "common-terminal.h" and "environ.h".
7228 (terminal_fd): Moved to fork-child.c.
7229 (old_foreground_pgrp): Likewise.
7230 (restore_old_foreground_pgrp): Likewise.
7231 (last_status): Make it global.
7232 (last_ptid): Likewise.
7233 (our_environ): New variable.
7234 (startup_with_shell): Likewise.
7235 (program_name): Likewise.
7236 (program_argv): Rename to...
7237 (program_args): ...this.
7238 (wrapper_argv): New variable.
7239 (start_inferior): Delete function.
7240 (get_exec_wrapper): New function.
7241 (get_exec_file): Likewise.
7242 (get_environ): Likewise.
7243 (prefork_hook): Likewise.
7244 (post_fork_inferior): Likewise.
7245 (postfork_hook): Likewise.
7246 (postfork_child_hook): Likewise.
7247 (handle_v_run): Update code to deal with arguments coming from the
7248 remote host. Update calls from "start_inferior" to
7250 (captured_main): Likewise. Initialize environment variable. Call
7252 * server.h (post_fork_inferior): New prototype.
7253 (get_environ): Likewise.
7254 (last_status): Declare.
7255 (last_ptid): Likewise.
7256 (signal_pid): Likewise.
7257 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7258 (spu_ptrace_fun): New function.
7259 (spu_create_inferior): Adjust function prototype to reflect change
7260 on "target.h". Adjust function code to use "fork_inferior".
7261 * target.c (target_terminal_init): New function.
7262 (target_terminal_inferior): Likewise.
7263 (target_terminal_ours): Likewise.
7264 * target.h: Include <vector>.
7265 (struct target_ops) <create_inferior>: Update prototype.
7266 (create_inferior): Update macro.
7267 * utils.c (gdb_flush_out_err): New function.
7268 * win32-low.c (win32_create_inferior): Adjust function prototype
7269 and code to reflect change on "target.h".
7271 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7273 * inferiors.c (switch_to_thread): New function.
7275 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7277 * Makefile.in (SFILE): Add "common/job-control.c".
7278 (OBS): Add "job-control.o".
7280 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7282 * Makefile: Remove "@host_makefile_frag@".
7284 2017-05-05 Pedro Alves <palves@redhat.com>
7286 * configure: Regenerate.
7288 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7290 * configure: Regenerate.
7292 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7294 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7295 software_single_step change of return type to
7296 std::vector<CORE_ADDR>.
7297 * linux-low.c (install_software_single_step_breakpoints):
7299 * linux-low.h (install_software_single_step_breakpoints):
7302 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7304 * remote-utils.c: Include "gdb_termios.h" instead of
7306 * terminal.h: Delete file.
7308 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7310 * server.c: Include <vector>.
7311 <program_argv, wrapper_argv>: Convert to std::vector.
7312 (start_inferior): Rewrite function to use C++.
7313 (handle_v_run): Likewise. Update code that calculates the argv
7314 based on the vRun packet; use C++.
7315 (captured_main): Likewise.
7317 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7319 * server.c (handle_v_cont): Initialize thread_resume::thread
7322 2017-04-05 Pedro Alves <palves@redhat.com>
7324 * configure: Regenerate.
7326 2017-04-05 Pedro Alves <palves@redhat.com>
7328 * gdbreplay.c (sync_error): Constify.
7329 * linux-x86-low.c (push_opcode): Constify.
7331 2017-04-05 Pedro Alves <palves@redhat.com>
7333 * win32-low.c (get_child_debug_event)
7334 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7335 Report TARGET_WAITKIND_SPURIOUS instead.
7337 2017-04-05 Pedro Alves <palves@redhat.com>
7339 * remote-utils.c (remote_prepare, remote_open): Constify.
7340 * remote-utils.h (remote_prepare, remote_open): Constify.
7341 * server.c (captured_main): Constify 'port' handling.
7343 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7345 * Makefile.in (clean): Clear .deps.
7347 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7349 * .gitignore: Remove generated files, replace with wildcard.
7350 * (clean): Replace removal of generated files with wildcard.
7351 (version.c): Replace with...
7352 (version-generated.c): ...this.
7353 (xml-builtin.c): Replace with...
7354 (xml-builtin-generated.c): ...this.
7355 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7356 (%.c: *regformats*): Replace with...
7357 (%-generated.c: *regformats*): ...this.
7359 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7361 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7362 (xtensa_fill_gregset): Call collect_register_by_name for
7364 (xtensa_store_gregset): Call supply_register_by_name for
7367 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7369 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7370 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7371 (xtensa_store_gregset): Call supply_register for all registers in
7372 a0_regnum..a0_regnum + C0_NREGS range.
7374 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7376 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7377 (ax-ipa.o: ax.c): Remove.
7378 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7379 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7380 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7381 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7382 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7384 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7386 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7387 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7388 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7389 (errors-ipa.o: ../common/errors.c): Remove.
7390 (format-ipa.o: ../common/format.c): Remove.
7391 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7393 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7395 * Makefile.in (%-ipa.o: %.c): New rule.
7396 (tracepoint-ipa.o: tracepoint.c): Remove.
7397 (utils-ipa.o: utils.c): Remove.
7398 (remote-utils-ipa.o: remote-utils.c): Remove.
7399 (regcache-ipa.o: regcache.c): Remove.
7400 (i386-linux-ipa.o: i386-linux.c): Remove.
7401 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7402 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7403 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7404 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7405 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7406 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7407 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7408 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7409 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7410 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7411 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7412 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7413 (aarch64-ipa.o: aarch64.c): Remove.
7414 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7415 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7416 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7417 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7418 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7419 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7420 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7421 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7422 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7423 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7424 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7425 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7426 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7427 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7428 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7429 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7430 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7431 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7432 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7433 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7434 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7435 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7436 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7437 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7438 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7439 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7440 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7441 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7442 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7443 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7444 (tdesc-ipa.o: tdesc.c): Remove.
7445 (x32-linux-ipa.o: x32-linux.c): Remove.
7446 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7447 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7449 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7451 * Makefile.in (%.o: ../arch/%.c): New rule.
7452 (arm.o: ../arch/arm.c): Remove.
7453 (arm-linux.o: ../arch/arm-linux.c): Remove.
7454 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7455 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7457 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7459 * Makefile.in (%.o: ../nat/%.c): New rule.
7460 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7461 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7462 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7463 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7464 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7465 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7466 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7467 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7468 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7469 (linux-personality.o: ../nat/linux-personality.c): Remove.
7470 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7471 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7472 (x86-linux.o: ../nat/x86-linux.c): Remove.
7473 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7474 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7476 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7478 * Makefile.in (%.o: ../common/%.c): New rule.
7479 (signals.o: ../common/signals.c): Remove.
7480 (print-utils.o: ../common/print-utils.c): Remove.
7481 (rsp-low.o: ../common/rsp-low.c): Remove.
7482 (common-utils.o: ../common/common-utils.c): Remove.
7483 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7484 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7485 (vec.o: ../common/vec.c): Remove.
7486 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7487 (xml-utils.o: ../common/xml-utils.c): Remove.
7488 (ptid.o: ../common/ptid.c): Remove.
7489 (buffer.o: ../common/buffer.c): Remove.
7490 (format.o: ../common/format.c): Remove.
7491 (filestuff.o: ../common/filestuff.c): Remove.
7492 (agent.o: ../common/agent.c): Remove.
7493 (errors.o: ../common/errors.c): Remove.
7494 (environ.o: ../common/environ.c): Remove.
7495 (common-debug.o: ../common/common-debug.c): Remove.
7496 (cleanups.o: ../common/cleanups.c): Remove.
7497 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7498 (fileio.o: ../common/fileio.c): Remove.
7499 (common-regcache.o: ../common/common-regcache.c): Remove.
7500 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7501 (new-op.o: ../common/new-op.c): Remove.
7502 (btrace-common.o: ../common/btrace-common.c): Remove.
7504 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7506 * Makefile.in (%.o: ../target/%.c): New rule.
7507 (waitstatus.o: ../target/waitstatus.c): Remove.
7509 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7512 (%.c: ../regformats/%.dat,
7513 (%.c: ../regformats/arm/%.dat,
7514 (%.c: ../regformats/i386/%.dat,
7515 (%.c: ../regformats/rs6000/%.dat): New rules.
7516 (aarch64.c): Remove.
7517 (reg-arm.c): Remove.
7518 (arm-with-iwmmxt.c): Remove.
7519 (arm-with-vfpv2.c): Remove.
7520 (arm-with-vfpv3.c): Remove.
7521 (arm-with-neon.c): Remove.
7522 (reg-bfin.c): Remove.
7523 (reg-cris.c): Remove.
7524 (reg-crisv32.c): Remove.
7526 (i386-linux.c): Remove.
7527 (i386-avx.c): Remove.
7528 (i386-avx-linux.c): Remove.
7529 (i386-avx-avx512.c): Remove.
7530 (i386-avx-avx512-linux.c): Remove.
7531 (i386-mpx.c): Remove.
7532 (i386-mpx-linux.c): Remove.
7533 (i386-avx-mpx-avx512-pku.c): Remove.
7534 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7535 (i386-avx-mpx.c): Remove.
7536 (i386-avx-mpx-linux.c): Remove.
7537 (i386-mmx.c): Remove.
7538 (i386-mmx-linux.c): Remove.
7539 (reg-ia64.c): Remove.
7540 (reg-m32r.c): Remove.
7541 (reg-m68k.c): Remove.
7543 (mips-linux.c): Remove.
7544 (mips-dsp-linux.c): Remove.
7545 (mips64-linux.c): Remove.
7546 (mips64-dsp-linux.c): Remove.
7547 (nios2-linux.c): Remove.
7548 (powerpc-32.c): Remove.
7549 (powerpc-32l.c): Remove.
7550 (powerpc-altivec32l.c): Remove.
7551 (powerpc-cell32l.c): Remove.
7552 (powerpc-vsx32l.c): Remove.
7553 (powerpc-isa205-32l.c): Remove.
7554 (powerpc-isa205-altivec32l.c): Remove.
7555 (powerpc-isa205-vsx32l.c): Remove.
7556 (powerpc-e500l.c): Remove.
7557 (powerpc-64l.c): Remove.
7558 (powerpc-altivec64l.c): Remove.
7559 (powerpc-cell64l.c): Remove.
7560 (powerpc-vsx64l.c): Remove.
7561 (powerpc-isa205-64l.c): Remove.
7562 (powerpc-isa205-altivec64l.c): Remove.
7563 (powerpc-isa205-vsx64l.c): Remove.
7564 (s390-linux32.c): Remove.
7565 (s390-linux32v1.c): Remove.
7566 (s390-linux32v2.c): Remove.
7567 (s390-linux64.c): Remove.
7568 (s390-linux64v1.c): Remove.
7569 (s390-linux64v2.c): Remove.
7570 (s390-te-linux64.c): Remove.
7571 (s390-vx-linux64.c): Remove.
7572 (s390-tevx-linux64.c): Remove.
7573 (s390x-linux64.c): Remove.
7574 (s390x-linux64v1.c): Remove.
7575 (s390x-linux64v2.c): Remove.
7576 (s390x-te-linux64.c): Remove.
7577 (s390x-vx-linux64.c): Remove.
7578 (s390x-tevx-linux64.c): Remove.
7579 (tic6x-c64xp-linux.c): Remove.
7580 (tic6x-c64x-linux.c): Remove.
7581 (tic6x-c62x-linux.c): Remove.
7583 (reg-sparc64.c): Remove.
7584 (reg-spu.c): Remove.
7586 (amd64-linux.c): Remove.
7587 (amd64-avx.c): Remove.
7588 (amd64-avx-linux.c): Remove.
7589 (amd64-avx-avx512.c): Remove.
7590 (amd64-avx-avx512-linux.c): Remove.
7591 (amd64-mpx.c): Remove.
7592 (amd64-mpx-linux.c): Remove.
7593 (amd64-avx-mpx-avx512-pku.c): Remove.
7594 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7595 (amd64-avx-mpx.c): Remove.
7596 (amd64-avx-mpx-linux.c): Remove.
7598 (x32-linux.c): Remove.
7599 (x32-avx.c): Remove.
7600 (x32-avx-linux.c): Remove.
7601 (x32-avx-avx512.c): Remove.
7602 (x32-avx-avx512-linux.c): Remove.
7603 (reg-xtensa.c): Remove.
7604 (reg-tilegx.c): Remove.
7605 (reg-tilegx32.c): Remove.
7607 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7609 * Makefile.in (SFILES): Add "common/environ.c".
7610 (OBJS): Add "common/environ.h".
7612 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7614 * configure.ac: Check if the fs_base and gs_base members of
7615 `struct user_regs_struct' exist.
7616 * config.in: Regenerated.
7617 * configure: Likewise.
7619 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7621 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7623 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7624 (get_next_pcs_syscall_next_pc): Likewise.
7626 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7628 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7629 * nto-x86-low.c: Likewise.
7631 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7633 * Makefile.in: Include disable-implicit-rules.mk.
7635 2016-11-23 Pedro Alves <palves@redhat.com>
7637 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7638 (debug_vprintf): Use std::chrono::steady_clock instead of
7639 gettimeofday. Use '.' instead of ':'.
7640 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7641 (get_timestamp): Use std::chrono::steady_clock instead of
7644 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7646 * Makefile.in: Fix whitespace formatting.
7648 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7650 * Makefile.in (SFILES, OBS): Flatten list and order
7653 2016-11-23 Pedro Alves <palves@redhat.com>
7655 * event-loop.c (handle_file_event): Use warning.
7656 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7657 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7660 2016-11-23 Pedro Alves <palves@redhat.com>
7662 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7664 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7665 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7666 debug_printf and debug_flush for debug output.
7667 * server.c (handle_general_set): Likewise.
7668 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7671 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7673 * Makefile.in (.c.o): Replace rule with ...
7674 (%.o: %.c): ... this one.
7676 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7678 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7679 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7681 * configure.ac: Remove checks for the make program.
7682 * configure: Re-generate.
7684 2016-10-28 Pedro Alves <palves@redhat.com>
7686 * Makefile.in (CXX_DIALECT): Get from configure.
7687 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7688 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7689 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7690 * config.in: Regenerate.
7691 * configure: Regenerate.
7693 2016-10-27 Yao Qi <yao.qi@linaro.org>
7695 * linux-low.c (linux_supports_range_stepping): Return true if
7696 can_software_single_step return true.
7698 2016-10-27 Yao Qi <yao.qi@linaro.org>
7700 * inferiors.c (find_inferior_in_random): New function.
7701 * inferiors.h (find_inferior_in_random): Declare.
7702 * linux-low.c (linux_wait_for_event_filtered): Call
7703 find_inferior_in_random instead of find_inferior.
7705 2016-10-27 Yao Qi <yao.qi@linaro.org>
7707 * linux-low.c (linux_wait_1): If single-step breakpoints are
7708 inserted, remove them.
7710 2016-10-26 Pedro Alves <palves@redhat.com>
7712 * linux-low.c (handle_extended_wait): Link parent/child fork
7714 (linux_wait_1): Unlink them.
7715 (linux_set_resume_request): Ignore resume requests for
7716 already-resumed and unhandled fork child threads.
7717 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7718 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7720 (handle_v_requests) <vCont>: Don't call require_running.
7721 * server.h (in_queued_stop_replies): New declaration.
7723 2016-10-24 Yao Qi <yao.qi@linaro.org>
7726 * linux-aarch64-low.c (append_insns): Cast the return value to
7729 2016-10-10 Yao Qi <yao.qi@linaro.org>
7731 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7733 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7735 * target.c (target_supports_multi_process): New function, moved
7737 * target.h (target_supports_multi_process): ... here. Remove
7740 2016-10-05 Tom Tromey <tom@tromey.com>
7743 * tracepoint.c (handle_tracepoint_bkpts): Check
7744 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7746 2016-10-05 Yao Qi <yao.qi@linaro.org>
7748 * configure.srv: Update the path of arm-*.xml files.
7750 2016-10-05 Terry Guo <terry.guo@arm.com>
7751 Yao Qi <yao.qi@linaro.org>
7753 * Makefile.in: Adjust the path of rules.
7754 * configure.srv: Update the path of xml files.
7755 * regformats/arm-with-iwmmxt.dat: Regenerated.
7756 * regformats/arm-with-neon.dat: Likewise.
7757 * regformats/arm-with-vfpv2.dat: Likewise.
7758 * regformats/arm-with-vfpv3.dat Likewise.
7760 2016-09-30 Yao Qi <yao.qi@linaro.org>
7763 * target.c (target_stop_and_wait): Don't call
7764 target_continue_no_signal, use resume_stop instead.
7766 2016-09-26 Yao Qi <yao.qi@linaro.org>
7768 * linux-low.c (linux_wait_1): Call debug_exit.
7770 2016-09-23 Pedro Alves <palves@redhat.com>
7772 * Makefile.in (SFILES): Add common/new-op.c.
7773 (OBS): Add common/new-op.o.
7774 (new-op.o): New rule.
7776 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7778 * .gitinore: Ignore more files.
7780 2016-09-21 Yao Qi <yao.qi@linaro.org>
7782 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7785 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7787 * server.c (start_inferior): Call target_mourn_inferior instead of
7788 mourn_inferior; pass ptid_t argument to it.
7790 (handle_target_event): Likewise.
7791 * target.c (target_mourn_inferior): New function.
7792 * target.h (mourn_inferior): Delete macro.
7794 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7796 * linux-low.c (lwp_is_stepping): New function.
7798 2016-09-06 Carl Love <cel@us.ibm.com>
7800 * server.c (start_inferior): Fixed comment, requested comment change
7801 didn't get updated correctly. Removed reference to ptrace () call as
7802 it is only true on Linux systems.
7804 2016-09-06 Carl Love <cel@us.ibm.com>
7806 * server.c (start_inferior): Do not call
7807 function target_post_create_inferior () if the
7808 inferior process has already exited.
7810 2016-09-05 Pedro Alves <palves@redhat.com>
7812 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
7813 (COMPILE.pre, CC_LD): Use CXX directly.
7814 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
7815 * acinclude.m4: Don't include build-with-cxx.m4.
7816 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
7817 * configure: Regenerate.
7819 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
7822 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
7823 call writing data to own_buf.
7825 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7827 * target.c (mywait): Call target_wait instead of
7829 (target_wait): New function.
7831 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
7833 * server.c (start_inferior): New variable 'ptid'. Replace calls
7834 to the_target->resume by target_continue{,_no_signal}, depending
7836 * target.c (target_stop_and_wait): Call target_continue_no_signal
7837 instead of the_target->resume.
7838 (target_continue): New function.
7840 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7842 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
7844 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7847 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
7849 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
7850 * linux-arm-low.c (ps_get_thread_area): Likewise.
7851 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
7852 * linux-m68k-low.c (ps_get_thread_area): Likewise.
7853 * linux-mips-low.c (ps_get_thread_area): Likewise.
7854 * linux-nios2-low.c (ps_get_thread_area): Likewise.
7855 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
7856 * linux-x86-low.c (ps_get_thread_area): Likewise.
7857 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
7859 2016-08-19 Pedro Alves <palves@redhat.com>
7861 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
7863 2016-08-19 Pedro Alves <palves@redhat.com>
7865 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
7866 comment. Use memcpy instead of casting through unsigned long.
7868 2016-08-19 Pedro Alves <palves@redhat.com>
7870 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
7871 allocating around 0x80000000.
7873 2016-08-19 Pedro Alves <palves@redhat.com>
7876 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
7877 (x32-avx512-linux-ipa.o): New rules.
7878 * configure.ac (x86_64-*-linux*): New x32 check.
7879 * configure.srv (ipa_x32_linux_regobj): New.
7880 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
7881 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
7883 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
7885 * configure: Regenerate.
7887 2016-08-09 Pedro Alves <palves@redhat.com>
7890 * Makefile.in (OBS): Add signals-state-save-restore.o.
7891 (signals-state-save-restore.o): New rule.
7892 * config.in: Regenerate.
7893 * configure: Regenerate.
7894 * linux-low.c: Include "signals-state-save-restore.h".
7895 (linux_create_inferior): Call
7896 restore_original_signals_state.
7897 * server.c: Include "dispositions-save-restore.h".
7898 (captured_main): Call save_original_signals_state.
7900 2016-08-05 Pedro Alves <palves@redhat.com>
7902 * configure: Regenerate.
7904 2016-08-04 Yao Qi <yao.qi@linaro.org>
7906 * linux-low.c (regsets_fetch_inferior_registers): Check
7907 errno is ESRCH or not.
7909 2016-08-02 Yao Qi <yao.qi@linaro.org>
7911 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
7912 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
7913 (thread_db_load_search): Update.
7914 (try_thread_db_load_1): Don't look for td_ta_event_addr,
7915 td_ta_set_event and td_ta_event_getmsg.
7917 2016-07-26 Pedro Alves <palves@redhat.com>
7920 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
7921 of unsigned long for 64-bit registers and use uint32_t instead of
7922 unsigned int for 32-bit registers.
7924 2016-07-26 Pedro Alves <palves@redhat.com>
7926 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
7929 2016-07-21 Tom Tromey <tom@tromey.com>
7931 * configure: Rebuild.
7933 2016-07-21 Yao Qi <yao.qi@linaro.org>
7935 * mem-break.c (find_gdb_breakpoint): Cast bp to
7936 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
7938 2016-07-21 Yao Qi <yao.qi@linaro.org>
7940 * server.c (handle_v_requests): Support s and S actions
7941 if target_supports_software_single_step return true.
7943 2016-07-21 Yao Qi <yao.qi@linaro.org>
7945 * linux-low.c (resume_stopped_resumed_lwps): If resume request
7946 is resume_step, call maybe_hw_step.
7947 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
7949 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
7951 (proceed_one_lwp): If resume request is resume_step, install
7952 reinsert breakpoints and call maybe_hw_step.
7954 2016-07-21 Yao Qi <yao.qi@linaro.org>
7956 * linux-low.c (proceed_one_lwp): Declare.
7957 (linux_resume_one_thread): Remove local variable 'step'.
7958 Lift code enqueue signal. Call proceed_one_lwp instead of
7959 linux_resume_one_lwp.
7961 2016-07-21 Yao Qi <yao.qi@linaro.org>
7963 * linux-low.c (linux_resume_one_thread): Call
7964 enqueue_pending_signal.
7966 2016-07-21 Yao Qi <yao.qi@linaro.org>
7968 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
7969 * inferiors.c (do_restore_current_thread_cleanup): New function.
7970 (make_cleanup_restore_current_thread): Likewise.
7971 * linux-low.c (install_software_single_step_breakpoints): Call
7972 make_cleanup_restore_current_thread. Switch current_thread to
7975 2016-07-21 Yao Qi <yao.qi@linaro.org>
7977 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
7978 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
7979 (clone_one_breakpoint): Likewise.
7980 (delete_reinsert_breakpoints): Change parameter to thread.
7982 (has_reinsert_breakpoints): Likewise.
7983 (uninsert_reinsert_breakpoints): Likewise.
7984 (reinsert_reinsert_breakpoints): Likewise.
7985 * mem-break.h (set_reinsert_breakpoint): Update declaration.
7986 (delete_reinsert_breakpoints): Likewise.
7987 (reinsert_reinsert_breakpoints): Likewise.
7988 (uninsert_reinsert_breakpoints): Likewise.
7989 (has_reinsert_breakpoints): Likewise.
7991 2016-07-21 Yao Qi <yao.qi@linaro.org>
7993 * inferiors.c (get_thread_process): Make parameter const.
7994 * inferiors.h (get_thread_process): Update declaration.
7995 * mem-break.c (clone_all_breakpoints): Remove all parameters.
7996 Add new parameters child_thread and parent_thread. Callers
7998 * mem-break.h (clone_all_breakpoints): Update declaration.
8000 2016-07-21 Yao Qi <yao.qi@linaro.org>
8002 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8003 <command_list, handler>: Remove.
8004 (struct gdb_breakpoint): New.
8005 (struct other_breakpoint): New.
8006 (struct reinsert_breakpoint): New.
8007 (is_gdb_breakpoint): New function.
8008 (any_persistent_commands): Update command_list if
8009 is_gdb_breakpoint returns true.
8010 (set_breakpoint): Create breakpoints according to their types.
8011 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8012 (set_gdb_breakpoint_1): Likewise.
8013 (set_gdb_breakpoint): Likewise.
8014 (clear_breakpoint_conditions): Change parameter type to
8015 'struct gdb_breakpoint *'.
8016 (clear_breakpoint_commands): Likewise.
8017 (clear_breakpoint_conditions_and_commands): Likewise.
8018 (add_condition_to_breakpoint): Likewise.
8019 (add_breakpoint_condition): Likewise.
8020 (add_commands_to_breakpoint): Likewise.
8021 (check_breakpoints): Check other_breakpoint.
8022 (clone_one_breakpoint): Clone breakpopint according to its type.
8023 * mem-break.h (struct gdb_breakpoint): Declare.
8024 (set_gdb_breakpoint): Update declaration.
8025 (clear_breakpoint_conditions_and_commands): Likewise.
8026 (add_breakpoint_condition): Likewise.
8027 (add_breakpoint_commands): Likewise.
8028 * server.c (process_point_options): Change parameter type to
8029 'struct gdb_breakpoint *'.
8031 2016-07-21 Yao Qi <yao.qi@linaro.org>
8033 * mem-break.c (set_breakpoint_at): Rename it to ...
8034 (set_breakpoint_type_at): ... it.
8035 (set_breakpoint_at): Call set_breakpoint_type_at.
8036 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8037 * mem-break.h (set_breakpoint_at): Update comments.
8039 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8041 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8043 (nios2_store_gregset): Likewise.
8045 2016-07-01 Pedro Alves <palves@redhat.com>
8046 Antoine Tremblay <antoine.tremblay@ericsson.com>
8048 * linux-low.c: Change interface to take the target lwp_info
8049 pointer directly and return void. Handle detaching from a zombie
8051 (linux_detach_lwp_callback): New function.
8052 (linux_detach): Detach from the leader thread after detaching from
8055 2016-06-28 Yao Qi <yao.qi@linaro.org>
8057 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8058 for variable new_offset.
8059 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8060 (aarch64_ftrace_insn_reloc_cb): Likewise.
8061 (aarch64_ftrace_insn_reloc_tb): Likewise.
8062 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8063 PRIx64 instead of PRIx32.
8065 2016-06-28 Yao Qi <yao.qi@linaro.org>
8067 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8068 (the_low_target): Install arm_get_syscall_trapinfo.
8070 2016-06-28 Yao Qi <yao.qi@linaro.org>
8072 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8074 (the_low_target): Install aarch64_get_syscall_trapinfo.
8076 2016-06-28 Yao Qi <yao.qi@linaro.org>
8078 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8080 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8081 Remove parameter sysno.
8082 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8085 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8087 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8088 (s390_emit_ne_goto): Likewise.
8089 (s390_emit_lt_goto): Likewise.
8090 (s390_emit_le_goto): Likewise.
8091 (s390_emit_gt_goto): Likewise.
8092 (s390_emit_ge_goto): Likewise.
8093 (s390x_emit_eq_goto): Likewise.
8094 (s390x_emit_ne_goto): Likewise.
8095 (s390x_emit_lt_goto): Likewise.
8096 (s390x_emit_le_goto): Likewise.
8097 (s390x_emit_gt_goto): Likewise.
8098 (s390x_emit_ge_goto): Likewise.
8099 (s390_emit_ops_impl): Mark variable static.
8100 (s390x_emit_ops): Likewise.
8102 2016-06-17 Yao Qi <yao.qi@linaro.org>
8104 * linux-low.c (handle_extended_wait): Call
8105 uninsert_reinsert_breakpoints for the parent process. Remove
8106 reinsert breakpoints from the child process. Reinsert them to
8107 the parent process when vfork is done.
8108 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8109 (reinsert_reinsert_breakpoints): New function.
8110 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8111 (reinsert_reinsert_breakpoints): Declare.
8113 2016-06-17 Yao Qi <yao.qi@linaro.org>
8115 * linux-low.c (handle_extended_wait): If the parent is doing
8116 step-over, remove the reinsert breakpoints from the forked child.
8118 2016-06-17 Yao Qi <yao.qi@linaro.org>
8120 * linux-low.c (unsuspend_all_lwps): Declare.
8121 (linux_low_filter_event): If thread exited, call finish_step_over.
8122 If step-over is finished, unsuspend other threads.
8124 2016-06-17 Yao Qi <yao.qi@linaro.org>
8126 * linux-low.c (linux_resume_one_lwp_throw): Assert
8127 has_reinsert_breakpoints returns false.
8128 * mem-break.c (delete_disabled_breakpoints): Assert
8129 bp type isn't reinsert_breakpoint.
8131 2016-06-17 Yao Qi <yao.qi@linaro.org>
8133 * linux-low.c (maybe_hw_step): New function.
8134 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8135 (finish_step_over): Switch current_thread to lwp temporarily,
8136 and assert has_reinsert_breakpoints returns true.
8137 (proceed_one_lwp): Call maybe_hw_step.
8138 * mem-break.c (has_reinsert_breakpoints): New function.
8139 * mem-break.h (has_reinsert_breakpoints): Declare.
8141 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8143 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8145 2016-05-17 Yao Qi <yao.qi@linaro.org>
8147 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8148 instead of find_inferior.
8150 2016-05-05 Yao Qi <yao.qi@linaro.org>
8152 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8153 Initialize res to zero.
8155 2016-05-05 Yao Qi <yao.qi@linaro.org>
8157 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8160 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8162 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8163 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8164 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8166 2016-04-28 Par Olsson <par.olsson@windriver.com>
8167 Simon Marchi <simon.marchi@ericsson.com>
8169 * tracepoint.c (write_inferior_int8): New function.
8170 (cmd_qtenable_disable): Write enable flag using
8171 write_inferior_int8.
8173 2016-04-25 Yao Qi <yao.qi@linaro.org>
8175 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8176 (need_step_over_p): Return zero if the LWP has pending signals
8177 can be delivered on software single step target.
8179 2016-04-25 Yao Qi <yao.qi@linaro.org>
8181 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8182 return instead of error.
8184 2016-04-22 Yao Qi <yao.qi@linaro.org>
8186 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8189 2016-04-22 Yao Qi <yao.qi@linaro.org>
8191 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8192 signal when stepping over breakpoint with software single
8195 2016-04-21 Pedro Alves <palves@redhat.com>
8197 * linux-s390-low.c (s390_collect_ptrace_register)
8198 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8200 (s390_check_regset): Use void * instead of gdb_byte *.
8202 2016-04-20 Pedro Alves <palves@redhat.com>
8204 * configure: Renegerate.
8206 2016-04-20 Yao Qi <yao.qi@linaro.org>
8208 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8209 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8211 (arm_store_gregset): Likewise.
8213 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8215 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8216 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8217 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8218 (amd64-avx-mpx-linux.c): New rules.
8219 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8220 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8221 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8222 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8223 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8224 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8225 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8226 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8227 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8228 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8229 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8230 * linux-x86-low.c (x86_linux_read_description): Add case for
8231 X86_XSTATE_AVX_MPX_MASK.
8232 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8233 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8234 init_registers_i386_avx_mpx_linux.
8235 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8236 (initialize_low_tracepoint): Call
8237 init_registers_i386_avx_mpx_linux.
8238 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8239 (initialize_low_tracepoint): Call
8240 init_registers_amd64_avx_mpx_linux.
8241 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8242 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8243 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8246 2016-04-18 Pedro Alves <palves@redhat.com>
8248 * configure: Regenerate.
8250 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8252 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8253 (aarch64_emit_sub): Likewise.
8255 2016-04-12 Pedro Alves <palves@redhat.com>
8257 * utils.c (prepare_to_throw_exception): Delete.
8259 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8261 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8263 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8265 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8267 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8269 * linux-aarch64-ipa.c: Add <elf.h> include.
8270 * linux-ppc-ipa.c: Add <elf.h> include.
8271 * linux-s390-ipa.c: Add <elf.h> include.
8273 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8275 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8276 (get_raw_reg_ptr): Likewise.
8277 (get_trace_state_variable_value_ptr): Likewise.
8278 (set_trace_state_variable_value_ptr): Likewise.
8279 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8282 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8283 Marcin Kościelnicki <koriakin@0x04.net>
8286 * linux-ppc-low.c (emit_insns): New function.
8287 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8288 (ppc_emit_prologue): New function.
8289 (ppc_emit_epilogue): New function.
8290 (ppc_emit_add): New function.
8291 (ppc_emit_sub): New function.
8292 (ppc_emit_mul): New function.
8293 (ppc_emit_lsh): New function.
8294 (ppc_emit_rsh_signed): New function.
8295 (ppc_emit_rsh_unsigned): New function.
8296 (ppc_emit_ext): New function.
8297 (ppc_emit_zero_ext): New function.
8298 (ppc_emit_log_not): New function.
8299 (ppc_emit_bit_and): New function.
8300 (ppc_emit_bit_or): New function.
8301 (ppc_emit_bit_xor): New function.
8302 (ppc_emit_bit_not): New function.
8303 (ppc_emit_equal): New function.
8304 (ppc_emit_less_signed): New function.
8305 (ppc_emit_less_unsigned): New function.
8306 (ppc_emit_ref): New function.
8307 (ppc_emit_const): New function.
8308 (ppc_emit_reg): New function.
8309 (ppc_emit_pop): New function.
8310 (ppc_emit_stack_flush): New function.
8311 (ppc_emit_swap): New function.
8312 (ppc_emit_stack_adjust): New function.
8313 (ppc_emit_call): New function.
8314 (ppc_emit_int_call_1): New function.
8315 (ppc_emit_void_call_2): New function.
8316 (ppc_emit_if_goto): New function.
8317 (ppc_emit_goto): New function.
8318 (ppc_emit_eq_goto): New function.
8319 (ppc_emit_ne_goto): New function.
8320 (ppc_emit_lt_goto): New function.
8321 (ppc_emit_le_goto): New function.
8322 (ppc_emit_gt_goto): New function.
8323 (ppc_emit_ge_goto): New function.
8324 (ppc_write_goto_address): New function.
8325 (ppc_emit_ops_impl): New static variable.
8326 (ppc64v1_emit_prologue): New function.
8327 (ppc64v2_emit_prologue): New function.
8328 (ppc64_emit_epilogue): New function.
8329 (ppc64_emit_add): New function.
8330 (ppc64_emit_sub): New function.
8331 (ppc64_emit_mul): New function.
8332 (ppc64_emit_lsh): New function.
8333 (ppc64_emit_rsh_signed): New function.
8334 (ppc64_emit_rsh_unsigned): New function.
8335 (ppc64_emit_ext): New function.
8336 (ppc64_emit_zero_ext): New function.
8337 (ppc64_emit_log_not): New function.
8338 (ppc64_emit_bit_and): New function.
8339 (ppc64_emit_bit_or): New function.
8340 (ppc64_emit_bit_xor): New function.
8341 (ppc64_emit_bit_not): New function.
8342 (ppc64_emit_equal): New function.
8343 (ppc64_emit_less_signed): New function.
8344 (ppc64_emit_less_unsigned): New function.
8345 (ppc64_emit_ref): New function.
8346 (ppc64_emit_const): New function.
8347 (ppc64v1_emit_reg): New function.
8348 (ppc64v2_emit_reg): New function.
8349 (ppc64_emit_pop): New function.
8350 (ppc64_emit_stack_flush): New function.
8351 (ppc64_emit_swap): New function.
8352 (ppc64v1_emit_call): New function.
8353 (ppc64v2_emit_call): New function.
8354 (ppc64v1_emit_int_call_1): New function.
8355 (ppc64v2_emit_int_call_1): New function.
8356 (ppc64v1_emit_void_call_2): New function.
8357 (ppc64v2_emit_void_call_2): New function.
8358 (ppc64_emit_if_goto): New function.
8359 (ppc64_emit_eq_goto): New function.
8360 (ppc64_emit_ne_goto): New function.
8361 (ppc64_emit_lt_goto): New function.
8362 (ppc64_emit_le_goto): New function.
8363 (ppc64_emit_gt_goto): New function.
8364 (ppc64_emit_ge_goto): New function.
8365 (ppc64v1_emit_ops_impl): New static variable.
8366 (ppc64v2_emit_ops_impl): New static variable.
8367 (ppc_emit_ops): New function.
8368 (linux_low_target): Wire in ppc_emit_ops.
8370 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8371 Marcin Kościelnicki <koriakin@0x04.net>
8374 * Makefile.in: Add powerpc-*-ipa.o
8375 * configure.srv: Add ipa_obj for powerpc*-linux.
8376 * linux-ppc-ipa.c: New file.
8377 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8379 (PPC_FIELD): New macro.
8380 (PPC_SEXT): New macro.
8381 (PPC_OP6): New macro.
8382 (PPC_BO): New macro.
8383 (PPC_LI): New macro.
8384 (PPC_BD): New macro.
8385 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8386 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8387 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8388 (ppc_get_thread_area): New function.
8389 (is_elfv2_inferior): New function.
8390 (gen_ds_form): New function.
8391 (GEN_STD): New macro.
8392 (GEN_STDU): New macro.
8393 (GEN_LD): New macro.
8394 (GEN_LDU): New macro.
8395 (gen_d_form): New function.
8396 (GEN_ADDI): New macro.
8397 (GEN_ADDIS): New macro.
8398 (GEN_LI): New macro.
8399 (GEN_LIS): New macro.
8400 (GEN_ORI): New macro.
8401 (GEN_ORIS): New macro.
8402 (GEN_LWZ): New macro.
8403 (GEN_STW): New macro.
8404 (GEN_STWU): New macro.
8405 (gen_xfx_form): New function.
8406 (GEN_MFSPR): New macro.
8407 (GEN_MTSPR): New macro.
8408 (GEN_MFCR): New macro.
8409 (GEN_MTCR): New macro.
8410 (GEN_SYNC): New macro.
8411 (GEN_LWSYNC): New macro.
8412 (gen_x_form): New function.
8413 (GEN_OR): New macro.
8414 (GEN_MR): New macro.
8415 (GEN_LWARX): New macro.
8416 (GEN_STWCX): New macro.
8417 (GEN_CMPW): New macro.
8418 (gen_md_form): New function.
8419 (GEN_RLDICL): New macro.
8420 (GEN_RLDICR): New macro.
8421 (gen_i_form): New function.
8423 (GEN_BL): New macro.
8424 (gen_b_form): New function.
8425 (GEN_BNE): New macro.
8426 (GEN_LOAD): New macro.
8427 (GEN_STORE): New macro.
8428 (gen_limm): New function.
8429 (gen_atomic_xchg): New function.
8430 (gen_call): New function.
8431 (ppc_relocate_instruction): New function.
8432 (ppc_install_fast_tracepoint_jump_pad): New function.
8433 (ppc_get_min_fast_tracepoint_insn_len): New function.
8434 (ppc_get_ipa_tdesc_idx): New function.
8435 (the_low_target): Wire in the new functions.
8436 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8438 * linux-ppc-tdesc.h: New file.
8440 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8442 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8443 (alloc_jump_pad_buffer): New function.
8444 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8445 (alloc_jump_pad_buffer): New function.
8446 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8447 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8448 (alloc_jump_pad_buffer): New function.
8449 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8450 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8451 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8452 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8454 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8456 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8457 * linux-amd64-ipa.c: Likewise.
8458 * linux-i386-ipa.c: Likewise.
8459 * linux-s390-ipa.c: Likewise.
8460 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8461 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8462 set_trace_state_variable_value_ptr.
8463 (struct ipa_sym_addresses): Likewise.
8464 (symbol_list): Likewise.
8465 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8466 accessing gdb_collect directly.
8467 (gdb_collect_ptr_type): New typedef.
8468 (get_raw_reg_ptr_type): New typedef.
8469 (get_trace_state_variable_value_ptr_type): New typedef.
8470 (set_trace_state_variable_value_ptr_type): New typedef.
8471 (gdb_collect_ptr): New global.
8472 (get_raw_reg_ptr): New global.
8473 (get_trace_state_variable_value_ptr): New global.
8474 (set_trace_state_variable_value_ptr): New global.
8475 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8476 accessing get_raw_reg directly.
8477 (get_get_tsv_func_addr): Likewise for
8478 get_trace_state_variable_value_ptr.
8479 (get_set_tsv_func_addr): Likewise for
8480 set_trace_state_variable_value_ptr.
8481 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8483 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8485 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8487 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8489 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8491 (relocate_instruction): Remove own_buf.
8492 * server.c (own_buf): Make global.
8493 (handle_v_requests): Make global.
8494 * server.h (own_buf): New declaration.
8495 (handle_v_requests): New prototype.
8497 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8500 * linux-s390-low.c (add_insns): New function.
8501 (s390_emit_prologue): New function.
8502 (s390_emit_epilogue): New function.
8503 (s390_emit_add): New function.
8504 (s390_emit_sub): New function.
8505 (s390_emit_mul): New function.
8506 (s390_emit_lsh): New function.
8507 (s390_emit_rsh_signed): New function.
8508 (s390_emit_rsh_unsigned): New function.
8509 (s390_emit_ext): New function.
8510 (s390_emit_log_not): New function.
8511 (s390_emit_bit_and): New function.
8512 (s390_emit_bit_or): New function.
8513 (s390_emit_bit_xor): New function.
8514 (s390_emit_bit_not): New function.
8515 (s390_emit_equal): New function.
8516 (s390_emit_less_signed): New function.
8517 (s390_emit_less_unsigned): New function.
8518 (s390_emit_ref): New function.
8519 (s390_emit_if_goto): New function.
8520 (s390_emit_goto): New function.
8521 (s390_write_goto_address): New function.
8522 (s390_emit_litpool): New function.
8523 (s390_emit_const): New function.
8524 (s390_emit_call): New function.
8525 (s390_emit_reg): New function.
8526 (s390_emit_pop): New function.
8527 (s390_emit_stack_flush): New function.
8528 (s390_emit_zero_ext): New function.
8529 (s390_emit_swap): New function.
8530 (s390_emit_stack_adjust): New function.
8531 (s390_emit_set_r2): New function.
8532 (s390_emit_int_call_1): New function.
8533 (s390_emit_void_call_2): New function.
8534 (s390_emit_eq_goto): New function.
8535 (s390_emit_ne_goto): New function.
8536 (s390_emit_lt_goto): New function.
8537 (s390_emit_le_goto): New function.
8538 (s390_emit_gt_goto): New function.
8539 (s390_emit_ge_goto): New function.
8540 (s390x_emit_prologue): New function.
8541 (s390x_emit_epilogue): New function.
8542 (s390x_emit_add): New function.
8543 (s390x_emit_sub): New function.
8544 (s390x_emit_mul): New function.
8545 (s390x_emit_lsh): New function.
8546 (s390x_emit_rsh_signed): New function.
8547 (s390x_emit_rsh_unsigned): New function.
8548 (s390x_emit_ext): New function.
8549 (s390x_emit_log_not): New function.
8550 (s390x_emit_bit_and): New function.
8551 (s390x_emit_bit_or): New function.
8552 (s390x_emit_bit_xor): New function.
8553 (s390x_emit_bit_not): New function.
8554 (s390x_emit_equal): New function.
8555 (s390x_emit_less_signed): New function.
8556 (s390x_emit_less_unsigned): New function.
8557 (s390x_emit_ref): New function.
8558 (s390x_emit_if_goto): New function.
8559 (s390x_emit_const): New function.
8560 (s390x_emit_call): New function.
8561 (s390x_emit_reg): New function.
8562 (s390x_emit_pop): New function.
8563 (s390x_emit_stack_flush): New function.
8564 (s390x_emit_zero_ext): New function.
8565 (s390x_emit_swap): New function.
8566 (s390x_emit_stack_adjust): New function.
8567 (s390x_emit_int_call_1): New function.
8568 (s390x_emit_void_call_2): New function.
8569 (s390x_emit_eq_goto): New function.
8570 (s390x_emit_ne_goto): New function.
8571 (s390x_emit_lt_goto): New function.
8572 (s390x_emit_le_goto): New function.
8573 (s390x_emit_gt_goto): New function.
8574 (s390x_emit_ge_goto): New function.
8575 (s390_emit_ops): New function.
8576 (struct linux_target_ops): Fill in emit_ops hook.
8578 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8581 * Makefile.in: Add s390 IPA files.
8582 * configure.srv: Build IPA for s390.
8583 * linux-s390-ipa.c: New file.
8584 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8585 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8586 (tdesc_s390_linux32): Likewise.
8587 (init_registers_s390_linux32v1): Likewise.
8588 (tdesc_s390_linux32v1): Likewise.
8589 (init_registers_s390_linux32v2): Likewise.
8590 (tdesc_s390_linux32v2): Likewise.
8591 (init_registers_s390_linux64): Likewise.
8592 (tdesc_s390_linux64): Likewise.
8593 (init_registers_s390_linux64v1): Likewise.
8594 (tdesc_s390_linux64v1): Likewise.
8595 (init_registers_s390_linux64v2): Likewise.
8596 (tdesc_s390_linux64v2): Likewise.
8597 (init_registers_s390_te_linux64): Likewise.
8598 (tdesc_s390_te_linux64): Likewise.
8599 (init_registers_s390_vx_linux64): Likewise.
8600 (tdesc_s390_vx_linux64): Likewise.
8601 (init_registers_s390_tevx_linux64): Likewise.
8602 (tdesc_s390_tevx_linux64): Likewise.
8603 (init_registers_s390x_linux64): Likewise.
8604 (tdesc_s390x_linux64): Likewise.
8605 (init_registers_s390x_linux64v1): Likewise.
8606 (tdesc_s390x_linux64v1): Likewise.
8607 (init_registers_s390x_linux64v2): Likewise.
8608 (tdesc_s390x_linux64v2): Likewise.
8609 (init_registers_s390x_te_linux64): Likewise.
8610 (tdesc_s390x_te_linux64): Likewise.
8611 (init_registers_s390x_vx_linux64): Likewise.
8612 (tdesc_s390x_vx_linux64): Likewise.
8613 (init_registers_s390x_tevx_linux64): Likewise.
8614 (tdesc_s390x_tevx_linux64): Likewise.
8615 (have_hwcap_s390_vx): New static variable.
8616 (s390_arch_setup): Fill have_hwcap_s390_vx.
8617 (s390_get_thread_area): New function.
8618 (s390_ft_entry_gpr_esa): New const.
8619 (s390_ft_entry_gpr_zarch): New const.
8620 (s390_ft_entry_misc): New const.
8621 (s390_ft_entry_fr): New const.
8622 (s390_ft_entry_vr): New const.
8623 (s390_ft_main_31): New const.
8624 (s390_ft_main_64): New const.
8625 (s390_ft_exit_fr): New const.
8626 (s390_ft_exit_vr): New const.
8627 (s390_ft_exit_misc): New const.
8628 (s390_ft_exit_gpr_esa): New const.
8629 (s390_ft_exit_gpr_zarch): New const.
8630 (append_insns): New function.
8631 (s390_relocate_instruction): New function.
8632 (s390_install_fast_tracepoint_jump_pad): New function.
8633 (s390_get_min_fast_tracepoint_insn_len): New function.
8634 (s390_get_ipa_tdesc_idx): New function.
8635 (struct linux_target_ops): Wire in the above functions.
8636 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8637 * linux-s390-tdesc.h: New file.
8639 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8641 * linux-s390-low.c (s390_supports_tracepoints): New function.
8642 (struct linux_target_ops): Fill supports_tracepoints hook.
8644 2016-03-18 Yao Qi <yao.qi@linaro.org>
8646 * linux-low.c (lwp_signal_can_be_delivered): New function.
8647 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8649 2016-03-18 Yao Qi <yao.qi@linaro.org>
8651 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8652 0 if signal is enqueued. Remove 'signal' from one debugging
8653 message. Move one debugging message to some lines below.
8654 Remove code setting 'signal' to 0.
8656 2016-03-18 Yao Qi <yao.qi@linaro.org>
8658 * linux-low.c (linux_low_filter_event): Remove redundant
8659 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8661 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8663 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8664 (struct linux_target_ops): Wire in the above.
8666 2016-03-03 Yao Qi <yao.qi@linaro.org>
8668 * linux-low.c: Update comments to start_step_over.
8670 2016-03-03 Yao Qi <yao.qi@linaro.org>
8673 * linux-low.c (handle_extended_wait): Set child suspended
8674 if event_lwp->bp_reinsert isn't zero.
8676 2016-03-02 Yao Qi <yao.qi@linaro.org>
8678 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8679 enqueue_pending_signal.
8681 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8683 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8686 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8688 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8689 (s390_regmap_3264) [!__s390x__]: New global.
8690 (s390_collect_ptrace_register): Skip map entries containing -1.
8691 (s390_supply_ptrace_register): Ditto.
8692 (s390_fill_gprs_high): New function.
8693 (s390_store_gprs_high): New function.
8694 (s390_regsets): Add NT_S390_HIGH_GPRS.
8695 (s390_get_hwcap): Enable on 31-bit.
8696 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8697 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8698 Detect NT_S390_HIGH_GPRS.
8699 (s390_usrregs_info_3264): Enable on 31-bit.
8700 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8701 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8703 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8706 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8707 * configure.srv: Ditto.
8708 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8709 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8710 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8711 (init_registers_amd64_linux): Remove prototype.
8712 (tdesc_amd64_linux): Remove declaration.
8713 (get_ipa_tdesc): New function.
8714 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8715 initialize remaining tdescs.
8716 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8717 (init_registers_i386_linux): Remove prototype.
8718 (tdesc_i386_linux): Remove declaration.
8719 (get_ipa_tdesc): New function.
8720 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8721 initialize remaining tdescs.
8722 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8723 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8724 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8725 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8726 (x86_get_ipa_tdesc_idx): New function.
8727 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8728 * linux-x86-tdesc.h: New file.
8729 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8730 (target_get_ipa_tdesc_idx): New macro.
8731 * tracepoint.c (ipa_tdesc_idx): New macro.
8732 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8733 (symbol_list): Add ipa_tdesc_idx.
8734 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8735 (ipa_tdesc): Remove.
8736 (ipa_tdesc_idx): New variable.
8737 (get_context_regcache): Use get_ipa_tdesc.
8738 (gdb_collect): Ditto.
8740 * tracepoint.h (get_ipa_tdesc): New prototype.
8741 (ipa_tdesc): Remove.
8743 2016-02-24 Pedro Alves <palves@redhat.com>
8745 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8746 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8747 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8748 Factor out common code between the USE_SIGTRAP_SIGINFO and
8749 !USE_SIGTRAP_SIGINFO blocks.
8750 (linux_low_filter_event): Call save_stop_reason instead of
8751 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8753 (linux_wait_1): Update comments.
8755 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8757 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8758 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8759 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8760 ppc_insert_point, ppc_remove_point.
8762 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8764 * linux-s390-low.c (s390_supports_z_point_type): New function.
8765 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8767 2016-02-16 Yao Qi <yao.qi@linaro.org>
8769 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8770 PC. Get pc from regcache_read_pc.
8772 2016-02-12 Yao Qi <yao.qi@linaro.org>
8774 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8775 or linux_get_pc_32bit.
8776 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8778 2016-02-12 Yao Qi <yao.qi@linaro.org>
8780 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8781 arm_linux_get_next_pcs_fixup.
8783 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8785 * tracepoint.c (x_tracepoint_action_download): Change
8786 write_inferior_data_ptr to write_inferior_data_pointer.
8787 (cmd_qtstart): Likewise.
8788 (write_inferior_data_ptr): Remove.
8789 (download_agent_expr): Change write_inferior_data_ptr to
8790 write_inferior_data_pointer.
8791 (download_tracepoint_1): Likewise.
8792 (download_tracepoint): Likewise.
8793 (download_trace_state_variables): Likewise.
8795 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8796 Marcin Kościelnicki <koriakin@0x04.net>
8798 * tracepoint.c (struct tracepoint_action_ops): Remove.
8799 (struct tracepoint_action): Remove ops.
8800 (m_tracepoint_action_download, r_tracepoint_action_download)
8801 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
8802 size and offset accordingly.
8803 (m_tracepoint_action_ops, r_tracepoint_action_ops)
8804 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
8805 (tracepoint_action_send, tracepoint_action_download): New functions.
8806 Helpers for trace action handlers.
8807 (add_tracepoint_action): Remove setup actions ops.
8808 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
8810 2016-02-10 Yao Qi <yao.qi@linaro.org>
8812 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
8814 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8816 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
8818 * configure: Regenerate.
8820 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
8822 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
8823 void * to gdb_byte *.
8824 * linux-low.c (siginfo_fixup): Likewise.
8825 (linux_xfer_siginfo): Likewise.
8826 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
8828 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
8830 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
8832 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
8834 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
8836 * linux-x86-low.c [__x86_64__]: Include
8837 "nat/amd64-linux-siginfo.h".
8838 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
8839 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
8840 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
8841 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
8842 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
8843 (cpt_si_fd, si_timerid, si_overrun): Move from
8844 nat/amd64-linux-siginfo.c.
8845 * Makefile.in (amd64-linux-siginfo.o:): New rule.
8847 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
8849 * server.c (skip_to_semicolon): Remove.
8850 (process_point_options): Use strchrnul instead of
8853 2016-01-26 Yao Qi <yao.qi@linaro.org>
8855 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
8856 * linux-low.c (install_software_single_step_breakpoints): Don't
8857 call regcache_read_pc.
8858 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
8861 2016-01-26 Yao Qi <yao.qi@linaro.org>
8863 * linux-low.c (install_software_single_step_breakpoints): Call
8864 regcache_read_pc instead of get_pc.
8866 2016-01-26 Yao Qi <yao.qi@linaro.org>
8868 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
8869 (unblock_async_io): Rename to ...
8870 (block_unblock_async_io): ... it. New function.
8871 (enable_async_io): Don't install SIGIO handler. Unblock it
8873 (disable_async_io): Don't ignore SIGIO. Block it instead.
8874 (initialize_async_io): Install SIGIO handler. Don't call
8877 2016-01-26 Yao Qi <yao.qi@linaro.org>
8879 * remote-utils.c (getpkt): If the buffer isn't empty, and the
8880 first character is '\003', call *the_target->request_interrupt.
8882 2016-01-25 Yao Qi <yao.qi@linaro.org>
8884 * remote-utils.c (new_thread_notify): Remove.
8885 (dead_thread_notify): Likewise.
8886 * remote-utils.h (new_thread_notify): Remove declaration.
8887 (dead_thread_notify): Likewise.
8889 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
8891 * gdb.trace/pending.exp: Fix expected message on continue.
8893 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
8895 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
8896 it works properly on big-endian machines where sizeof (CORE_ADDR)
8899 2016-01-21 Pedro Alves <palves@redhat.com>
8901 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
8902 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
8903 * configure: Regenerate.
8905 2016-01-21 Yao Qi <yao.qi@linaro.org>
8907 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
8908 is_thumb and set it according to CPSR saved on the stack.
8909 (get_next_pcs_syscall_next_pc): Pass is_thumb to
8910 arm_sigreturn_next_pc.
8912 2016-01-18 Yao Qi <yao.qi@linaro.org>
8914 * linux-low.c (linux_set_pc_64bit): New function.
8915 (linux_get_pc_64bit): New function.
8916 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
8918 * linux-sparc-low.c (debug_threads): Remove declaration.
8919 (sparc_get_pc): Remove.
8920 (the_low_target): Use linux_get_pc_64bit instead of
8922 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
8923 (the_low_target): Use linux_get_pc_64bit and
8926 2016-01-18 Yao Qi <yao.qi@linaro.org>
8928 * linux-arm-low.c (debug_threads): Remove declaration.
8929 (arm_get_pc, arm_set_pc): Remove.
8930 (the_low_target): Use linux_get_pc_32bit and
8932 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
8933 (the_low_target): Use linux_get_pc_32bit and
8935 * linux-cris-low.c (debug_threads): Remove declaration.
8936 (cris_get_pc, cris_set_pc,): Remove.
8937 (the_low_target): Use linux_get_pc_32bit and
8939 * linux-crisv32-low.c (debug_threads): Remove declaration.
8940 (cris_get_pc, cris_set_pc): Remove.
8941 (the_low_target): Use linux_get_pc_32bit and
8943 * linux-low.c: Include inttypes.h.
8944 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
8945 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
8946 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
8947 (the_low_target): Use linux_get_pc_32bit and
8949 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
8950 (the_low_target): Use linux_get_pc_32bit and
8952 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
8953 (the_low_target): Use linux_get_pc_32bit and
8955 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
8956 (the_low_target): Use linux_get_pc_32bit and
8958 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
8959 (the_low_target): Use linux_get_pc_32bit and
8962 2016-01-18 Gary Benson <gbenson@redhat.com>
8964 * configure.ac (AC_FUNC_FORK): New check.
8965 * config.in: Regenerate.
8966 * configure: Likewise.
8968 2016-01-14 Yao Qi <yao.qi@linaro.org>
8970 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
8971 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
8972 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
8973 arm_get_next_pcs_ctor.
8975 2016-01-12 Josh Stone <jistone@redhat.com>
8976 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8978 * inferiors.h: Include "gdb_vecs.h".
8979 (struct process_info): Add syscalls_to_catch.
8980 * inferiors.c (remove_process): Free syscalls_to_catch.
8981 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
8982 syscall_return stops.
8983 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
8984 * server.c (handle_general_set): Handle QCatchSyscalls.
8985 (handle_query): Report support for QCatchSyscalls.
8986 * target.h (struct target_ops): Add supports_catch_syscall.
8987 (target_supports_catch_syscall): New macro.
8988 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
8989 (struct lwp_info): Add syscall_state.
8990 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
8991 Maintain syscall_state and syscalls_to_catch across exec.
8992 (get_syscall_trapinfo): New function, proxy to the_low_target.
8993 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
8994 (linux_low_filter_event): Toggle syscall_state entry/return for
8995 syscall traps, and set it ignored for all others.
8996 (gdb_catching_syscalls_p): New function.
8997 (gdb_catch_this_syscall_p): New function.
8998 (linux_wait_1): Handle SYSCALL_SIGTRAP.
8999 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9000 (linux_supports_catch_syscall): New function.
9001 (linux_target_ops): Install it.
9002 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9003 (the_low_target): Install it.
9005 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9007 * acinclude.m4: Include new ../warning.m4 file.
9008 * configure: Regenerated.
9009 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9011 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9013 * ax.c (is_goto_target): Mark static.
9014 * linux-low.c (register_addr): Likewise.
9015 (linux_fetch_registers, linux_store_registers): Likewise.
9016 * mem-break.c (any_persistent_commands): Fix old prototype.
9017 (add_commands_to_breakpoint): Mark static.
9018 * regcache.c (find_register_by_name): Delete unused func.
9019 * remote-utils.c (hex_or_minus_one): Mark static.
9020 * server.c (monitor_show_help): Mark static.
9021 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9022 handle_v_requests): Likewise.
9024 2016-01-12 Pedro Alves <palves@redhat.com>
9026 Remove use of the registered trademark symbol throughout.
9028 2016-01-08 Yao Qi <yao.qi@linaro.org>
9030 * remote-utils.c (getpkt): If c is '\003', call target hook
9033 2016-01-06 Yao Qi <yao.qi@linaro.org>
9035 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9036 linux-aarch32-low.c.
9037 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9038 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9039 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9040 (thumb2_breakpoint): Declare.
9041 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9042 linux-aarch32-low.h.
9043 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9044 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9045 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9047 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9049 * gdbreplay.c (gdbreplay_version): Change copyright year in
9051 * server.c (gdbserver_version): Likewise.
9053 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9055 * server.c (crc32_table): Delete.
9056 (crc32): Use libiberty's xcrc32 function.
9058 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9060 * lynx-low.c (lynx_delete_thread_callback): New function.
9061 (lynx_mourn): Properly delete our process and all of its
9062 threads. Remove call to clear_inferiors.
9064 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9066 * target.c (thread_search_callback): Add check that
9067 the thread_stopped target callback is not NULL before
9070 2015-12-21 Yao Qi <yao.qi@linaro.org>
9072 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9075 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9077 * server.c (handle_query): Call target_supports_software_single_step.
9079 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9081 * linux-low.c (single_step): New function.
9082 (linux_resume_one_lwp_throw): Call single_step.
9083 (start_step_over): Likewise.
9085 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9087 * Makefile.in (SFILES): Append arch/arm-linux.c,
9088 arch/arm-get-next-pcs.c.
9089 (arm-linux.o): New rule.
9090 (arm-get-next-pcs.o): New rule.
9091 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9093 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9094 to linux-aarch32-low.c.
9095 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9096 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9097 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9098 (thumb2_breakpoint_len): Likewise.
9099 (arm_is_thumb_mode): Make non-static.
9100 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9101 from linux-aarch32-low.c.
9102 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9103 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9104 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9105 (thumb2_breakpoint_len): Likewise.
9106 (arm_is_thumb_mode): New declaration.
9107 * linux-arm-low.c: Include arch/arm-linux.h
9108 aarch/arm-get-next-pcs.h, sys/syscall.h.
9109 (get_next_pcs_ops): New struct.
9110 (get_next_pcs_addr_bits_remove): New function.
9111 (get_next_pcs_is_thumb): New function.
9112 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9113 (arm_sigreturn_next_pc): Likewise.
9114 (get_next_pcs_syscall_next_pc): Likewise.
9115 (arm_gdbserver_get_next_pcs): Likewise.
9116 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9118 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9119 * server.h: Include gdb_vecs.h.
9121 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9123 * Makefile.in (SFILES): Append common/common-regcache.c.
9124 (OBS): Append common-regcache.o.
9125 (common-regcache.o): New rule.
9126 * regcache.c (init_register_cache): Initialize cache to
9128 (regcache_raw_read_unsigned): New function.
9129 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9130 register_status enum.
9132 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9134 * linux-aarch64-low.c (the_low_targets): Rename
9135 breakpoint_reinsert_addr to get_next_pcs.
9136 * linux-arm-low.c (the_low_targets): Likewise.
9137 * linux-bfin-low.c (the_low_targets): Likewise.
9138 * linux-cris-low.c (the_low_targets): Likewise.
9139 * linux-crisv32-low.c (the_low_targets): Likewise.
9140 * linux-low.c (can_software_single_step): Likewise.
9141 (install_software_single_step_breakpoints): New function.
9142 (start_step_over): Use install_software_single_step_breakpoints.
9143 * linux-low.h: New CORE_ADDR vector.
9144 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9146 * linux-mips-low.c (the_low_targets): Likewise.
9147 * linux-nios2-low.c (the_low_targets): Likewise.
9148 * linux-sparc-low.c (the_low_targets): Likewise.
9150 2015-12-17 Pedro Alves <palves@redhat.com>
9152 * linux-low.c (linux_kill_one_lwp): Remove references to
9154 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9156 (linux_init_signals): Delete.
9157 (initialize_low): Adjust.
9158 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9160 2015-12-16 Pedro Alves <palves@redhat.com>
9162 * configure.ac (compiler warning flags): When testing a
9163 -Wno-foo option, check whether -Wfoo works instead.
9164 * configure: Regenerate.
9166 2015-12-11 Don Breazeal <donb@codesourcery.com>
9168 * server.c (process_serial_event): Don't exit from gdbserver
9169 in remote mode if there are still active inferiors.
9171 2015-12-11 Yao Qi <yao.qi@linaro.org>
9173 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9174 arm_breakpoint_at if the process is 32-bit.
9176 2015-12-11 Yao Qi <yao.qi@linaro.org>
9178 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9181 2015-12-07 Yao Qi <yao.qi@linaro.org>
9183 * configure.srv: Append arm.o to srv_tgtobj for
9184 aarch64*-*-linux* target.
9185 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9186 from linux-arm-low.c.
9187 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9188 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9189 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9190 (thumb2_breakpoint_len): Likewise.
9191 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9192 (arm_breakpoint_kinds): Likewise.
9193 (arm_breakpoint_kind_from_pc): Likewise.
9194 (arm_sw_breakpoint_from_kind): Likewise.
9195 (arm_breakpoint_kind_from_current_state): Likewise.
9196 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9197 (arm_sw_breakpoint_from_kind): Declare.
9198 (arm_breakpoint_kind_from_current_state): Declare.
9199 (arm_breakpoint_at): Declare.
9200 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9201 arm_sw_breakpoint_from_kind if process is 32-bit.
9202 (aarch64_breakpoint_kind_from_pc): New function.
9203 (aarch64_breakpoint_kind_from_current_state): New function.
9204 (the_low_target): Initialize fields breakpoint_kind_from_pc
9205 and breakpoint_kind_from_current_state.
9206 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9207 linux-aarch32-low.c.
9208 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9209 (arm_breakpoint, arm_breakpoint_len): Likewise.
9210 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9211 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9212 (arm_is_thumb_mode): Likewise.
9213 (arm_breakpoint_at): Likewise.
9214 (arm_breakpoint_kind_from_pc): Likewise.
9215 (arm_sw_breakpoint_from_kind): Likewise.
9216 (arm_breakpoint_kind_from_current_state): Likewise.
9219 2015-08-04 Yao Qi <yao.qi@linaro.org>
9221 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9222 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9223 * server.c (extended_protocol): Remove "static".
9224 * server.h (extended_protocol): Declare it.
9226 2015-12-04 Josh Stone <jistone@redhat.com>
9228 * target.h (struct target_ops) <arch_setup>: Rename to ...
9229 (struct target_ops) <post_create_inferior>: ... this.
9230 (target_arch_setup): Rename to ...
9231 (target_post_create_inferior): ... this, calling post_create_inferior.
9232 * server.c (start_inferior): Update target_arch_setup calls to
9233 target_post_create_inferior.
9234 * linux-low.c (linux_low_ptrace_options): Forward declare.
9235 (linux_arch_setup): Update its comment for general use.
9236 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9237 (struct linux_target_ops): Use linux_post_create_inferior.
9238 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9239 to post_create_inferior.
9240 * nto-low.c (struct nto_target_ops): Likewise.
9241 * spu-low.c (struct spu_target_ops): Likewise.
9242 * win32-low.c (struct win32_target_ops): Likewise.
9244 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9246 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9248 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9250 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9251 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9252 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9253 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9254 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9255 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9256 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9257 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9258 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9259 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9260 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9261 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9263 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9265 * linux-low.c (linux_look_up_symbols): Don't call
9266 linux_supports_traceclone.
9267 * linux-low.h (thread_db_init): Remove use_events argument.
9268 * thread-db.c (thread_db_use_event): Remove global variable.
9269 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9270 (struct thread_db) <td_create_bp>: Remove field.
9271 (thread_db_create_event): Remove function.
9272 (thread_db_enable_reporting): Likewise.
9273 (find_one_thread): Don't check for thread_db_use_events.
9274 (attach_thread): Likewise.
9275 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9276 (try_thread_db_load_1): Don't check for thread_db_use_events.
9277 (thread_db_init): Remove use_events argument and thread events
9279 (remove_thread_event_breakpoints): Remove function.
9280 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9282 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9284 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9286 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9287 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9288 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9289 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9290 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9292 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9294 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9295 * linux-low.c (can_hardware_single_step): Use
9296 supports_hardware_single_step.
9297 (can_software_single_step): New function.
9298 (start_step_over): Call can_software_single_step.
9299 (linux_supports_hardware_single_step): New function.
9300 (struct target_ops) <supports_software_single_step>: Initialize.
9301 * linux-low.h (struct linux_target_ops)
9302 <supports_hardware_single_step>: Initialize.
9303 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9304 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9305 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9306 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9307 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9308 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9309 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9310 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9311 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9312 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9314 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9315 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9317 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9318 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9319 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9321 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9322 * target.h (struct target_ops): <supports_software_single_step>:
9324 (target_supports_software_single_step): New macro.
9326 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9328 * linux-low.c (linux_wait_1): Fix pc advance condition.
9329 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9330 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9332 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9334 * linux-arm-low.c (arm_is_thumb_mode): New function.
9335 (arm_breakpoint_at): Use arm_is_thumb_mode.
9336 (arm_breakpoint_kind_from_current_state): New function.
9337 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9339 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9340 (linux_breakpoint_kind_from_current_state): New function.
9341 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9342 * linux-low.h (struct linux_target_ops)
9343 <breakpoint_kind_from_current_state>: New field.
9344 * target.h (struct target_ops): Likewise.
9345 (target_breakpoint_kind_from_current_state): New macro.
9347 2015-11-30 Pedro Alves <palves@redhat.com>
9349 * linux-low.c (linux_resume): Wake up the event loop before
9352 2015-11-30 Pedro Alves <palves@redhat.com>
9354 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9356 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9358 * target.c (struct thread_search): New structure.
9359 (thread_search_callback): New function.
9360 (prev_general_thread): New global.
9361 (prepare_to_access_memory, done_accessing_memory): New functions.
9362 * target.h (prepare_to_access_memory, done_accessing_memory):
9363 Replace macros with function declarations.
9365 2015-11-30 Pedro Alves <palves@redhat.com>
9368 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9369 report TARGET_WAITKIND_NO_RESUMED.
9370 * remote-utils.c (prepare_resume_reply): Handle
9371 TARGET_WAITKIND_NO_RESUMED.
9372 * server.c (report_no_resumed): New global.
9373 (handle_query) <qSupported>: Handle "no-resumed+". Report
9374 "no-resumed+" support.
9375 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9376 return error if the client doesn't support no-resumed events.
9377 (push_stop_notification): New function.
9378 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9379 events if the client supports them.
9381 2015-11-30 Pedro Alves <palves@redhat.com>
9383 * linux-low.c (thread_still_has_status_pending_p): Don't check
9385 (lwp_resumed): New function.
9386 (status_pending_p_callback): Return early if the LWP is not
9387 supposed to be resumed.
9389 2015-11-30 Pedro Alves <palves@redhat.com>
9391 * linux-low.c (handle_extended_wait): Assert that the LWP's
9392 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9393 thread create events, leave the new child's status pending.
9394 (linux_low_filter_event): If GDB wants to hear about thread exit
9395 events, leave the LWP marked dead and don't delete it.
9396 (linux_wait_for_event_filtered): Don't check for thread exit.
9397 (filter_exit_event): New function.
9398 (linux_wait_1): Use it, when returning an exit event.
9399 (linux_resume_one_lwp_throw): Assert that the LWP's
9400 waitstatus is TARGET_WAITKIND_IGNORE.
9401 * remote-utils.c (prepare_resume_reply): Handle
9402 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9403 * server.c (report_thread_events): New global.
9404 (handle_general_set): Handle QThreadEvents.
9405 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9406 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9407 TARGET_WAITKIND_THREAD_EXITED.
9408 * server.h (report_thread_events): Declare.
9410 2015-11-30 Pedro Alves <palves@redhat.com>
9412 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9413 the thread's last_resume_kind was resume_stop.
9415 2015-11-30 Pedro Alves <palves@redhat.com>
9417 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9420 2015-11-30 Pedro Alves <palves@redhat.com>
9422 * server.c (handle_v_requests): Handle vCtrlC.
9424 2015-11-30 Pedro Alves <palves@redhat.com>
9426 * gdbthread.h (find_any_thread_of_pid): Declare.
9427 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9429 * server.c (handle_query): If current_thread is NULL, look for
9430 another thread of the selected process.
9432 2015-11-26 Daniel Colascione <dancol@dancol.org>
9433 Simon Marchi <simon.marchi@ericsson.com>
9435 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9436 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9438 * target.h (struct target_ops) <thread_name>: New field.
9439 (target_thread_name): New macro.
9441 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9443 * regcache.h (regcache_invalidate_pid): Add declaration.
9444 * regcache.c (regcache_invalidate_pid): New function, extracted
9445 from regcache_invalidate.
9446 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9447 Add trivial documentation comment.
9448 * lynx-low.c: Use regcache_invalidate_pid instead of
9449 regcache_invalidate.
9451 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9453 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9454 and Elf64_auxv_t if the target is Android.
9456 2015-11-22 Doug Evans <xdje42@gmail.com>
9458 * target.h: #include <sys/types.h>.
9460 2015-11-19 Pedro Alves <palves@redhat.com>
9462 * linux-low.c (linux_process_qsupported): Change prototype.
9464 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9466 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9467 and adjust to loop over all features.
9468 * server.c (handle_query) <qSupported>: Adjust to call
9469 target_process_qsupported once, passing it a vector of unprocessed
9471 * target.h (struct target_ops) <process_qsupported>: Change
9473 (target_process_qsupported): Adjust.
9475 2015-11-19 Pedro Alves <palves@redhat.com>
9477 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9479 * configure: Regenerate.
9481 2015-11-19 Pedro Alves <palves@redhat.com>
9483 * configure: Regenerate.
9485 2015-11-19 Yao Qi <yao.qi@linaro.org>
9487 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9490 2015-11-19 Yao Qi <yao.qi@linaro.org>
9492 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9493 (struct aarch64_operand): Move enum out.
9495 2015-11-19 Yao Qi <yao.qi@linaro.org>
9497 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9498 struct user_fpsimd_state *.
9499 (aarch64_store_fpregset): Likewise.
9501 2015-11-19 Yao Qi <yao.qi@linaro.org>
9503 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9504 struct user_pt_regs *.
9505 (aarch64_store_gregset): Likewise.
9507 2015-11-18 Pedro Alves <palves@redhat.com>
9509 * Makefile.in (all_object_files): Add $IPA_OBJS.
9511 2015-11-17 Pedro Alves <palves@redhat.com>
9513 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9514 GDB_SIGNAL_0 and gdb_signal_to_string.
9516 2015-11-17 Pedro Alves <palves@redhat.com>
9518 * win32-low.c (handle_output_debug_string): Remove parameter.
9519 (win32_kill): Remove our_status local and adjust call to
9520 handle_output_debug_string.
9521 (get_child_debug_event): Adjust call to
9522 handle_output_debug_string.
9524 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9526 * linux-mips-low.c (mips_fill_gregset): Add cast.
9527 (mips_store_gregset): Likewise.
9528 (mips_fill_fpregset): Likewise.
9529 (mips_store_fpregset): Likewise.
9531 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9533 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9536 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9538 * linux-mips-low.c (mips_linux_new_thread): Change type of
9539 watch_type to enum target_hw_bp_type.
9541 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9543 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9544 Change return type to arm_hwbp_type.
9546 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9548 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9549 (arm_store_gregset): Likewise.
9550 * linux-arm-low.c (arm_get_hwcap): Likewise.
9551 (arm_read_description): Likewise.
9553 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9555 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9557 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9559 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9560 (ppc_fill_vsxregset): Likewise.
9561 (ppc_store_vsxregset): Likewise.
9562 (ppc_fill_vrregset): Likewise.
9563 (ppc_store_vrregset): Likewise.
9564 (ppc_fill_evrregset): Likewise.
9565 (ppc_store_evrregset): Likewise.
9567 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9569 * linux-ppc-low.c (ppc_usrregs_info): Remove
9570 forward-declaration.
9571 (ppc_arch_setup): Move lower in file.
9573 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9575 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9576 (ps_pdwrite): Likewise.
9578 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9580 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9581 to after assert checks.
9583 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9585 * proc-service.c (ps_pdread): Add/adjust casts.
9586 (ps_pdwrite): Add/adjust casts.
9588 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9590 * server.c (handle_search_memory_1): Cast return value of
9593 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9595 * server.c (write_qxfer_response): Change type of data to
9598 2015-10-29 Pedro Alves <palves@redhat.com>
9600 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9602 2015-10-29 Pedro Alves <palves@redhat.com>
9604 * tracepoint.c (clear_installed_tracepoints): Add casts.
9606 2015-10-29 Pedro Alves <palves@redhat.com>
9608 * server.c (handle_v_cont, process_serial_event): Add enum
9609 gdb_signal casts to signal parsing code.
9611 2015-10-29 Pedro Alves <palves@redhat.com>
9613 * linux-low.h (NULL_REGSET): Define.
9614 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9615 * linux-arm-low.c (arm_regsets): Likewise.
9616 * linux-crisv32-low.c (cris_regsets): Likewise.
9617 * linux-m68k-low.c (m68k_regsets): Likewise.
9618 * linux-mips-low.c (mips_regsets): Likewise.
9619 * linux-nios2-low.c (nios2_regsets): Likewise.
9620 * linux-ppc-low.c (ppc_regsets): Likewise.
9621 * linux-s390-low.c (s390_regsets): Likewise.
9622 * linux-sh-low.c (sh_regsets): Likewise.
9623 * linux-sparc-low.c (sparc_regsets): Likewise.
9624 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9625 * linux-tile-low.c (tile_regsets): Likewise.
9626 * linux-x86-low.c (x86_regsets): Likewise.
9627 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9629 2015-10-29 Pedro Alves <palves@redhat.com>
9631 * linux-low.h (NULL_REGSET): Define.
9632 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9633 * linux-arm-low.c (arm_regsets): Likewise.
9634 * linux-crisv32-low.c (cris_regsets): Likewise.
9635 * linux-m68k-low.c (m68k_regsets): Likewise.
9636 * linux-mips-low.c (mips_regsets): Likewise.
9637 * linux-nios2-low.c (nios2_regsets): Likewise.
9638 * linux-ppc-low.c (ppc_regsets): Likewise.
9639 * linux-s390-low.c (s390_regsets): Likewise.
9640 * linux-sh-low.c (sh_regsets): Likewise.
9641 * linux-sparc-low.c (sparc_regsets): Likewise.
9642 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9643 * linux-tile-low.c (tile_regsets): Likewise.
9644 * linux-x86-low.c (x86_regsets): Likewise.
9645 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9647 2015-10-26 Doug Evans <dje@google.com>
9649 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9651 2015-10-26 Doug Evans <dje@google.com>
9653 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9655 2015-10-26 Doug Evans <dje@google.com>
9657 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9659 (attach_thread, find_new_threads_callback): Ditto.
9661 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9663 * mem-break.h (set_breakpoint_data): Remove.
9665 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9667 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9668 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9669 (initialize_low): Remove set_breakpoint_data call.
9670 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9671 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9672 (initialize_low): Remove set_breakpoint_data call.
9673 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9674 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9675 (initialize_low): Remove set_breakpoint_data call.
9677 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9679 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9680 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9681 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9682 * target.h (target_breakpoint_kind_from_pc): New macro.
9684 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9686 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9687 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9688 the default breakpoint kind.
9690 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9692 * linux-arm-low.c (arm_supports_z_point_type): Add software
9695 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9697 * linux-arm-low.c: Refactor breakpoint definitions.
9698 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9699 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9701 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9703 * Makefile.in: Add arm.c/o.
9704 * configure.srv: Likewise.
9705 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9706 (arm_breakpoint_kind_from_pc): New function.
9707 (arm_sw_breakpoint_from_kind): Return proper kind.
9708 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9710 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9712 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9714 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9715 (struct raw_breakpoint) <size>: Remove.
9716 (struct raw_breakpoint) <kind>: Add.
9717 (bp_size): New function.
9718 (bp_opcode): Likewise.
9719 (find_raw_breakpoint_at): Adjust for kind.
9720 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9721 (remove_memory_breakpoint): Adjust for kind call bp_size.
9722 (set_raw_breakpoint_at): Adjust for kind.
9723 (set_breakpoint): Likewise.
9724 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9725 (delete_raw_breakpoint): Adjust for kind.
9726 (delete_breakpoint): Likewise.
9727 (find_gdb_breakpoint): Likewise.
9728 (set_gdb_breakpoint_1): Likewise.
9729 (set_gdb_breakpoint): Likewise.
9730 (delete_gdb_breakpoint_1): Likewise.
9731 (delete_gdb_breakpoint): Likewise.
9732 (uninsert_raw_breakpoint): Likewise.
9733 (reinsert_raw_breakpoint): Likewise.
9734 (set_breakpoint_data): Remove.
9735 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9736 (check_mem_read): Adjust for kind call bp_size.
9737 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9738 (clone_one_breakpoint): Adjust for kind.
9739 * mem-break.h (set_gdb_breakpoint): Likewise.
9740 (delete_gdb_breakpoint): Likewise.
9741 * server.c (process_serial_event): Likewise.
9743 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9745 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9746 (struct linux_target_ops) <breakpoint>: Remove.
9747 (struct linux_target_ops) <breakpoint_len>: Remove.
9748 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9749 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9750 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9751 (arm_sw_breakpoint_from_kind): New function.
9752 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9753 (struct linux_target_ops) <breakpoint>: Remove.
9754 (struct linux_target_ops) <breakpoint_len>: Remove.
9755 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9756 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9757 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9758 (struct linux_target_ops) <breakpoint>: Remove.
9759 (struct linux_target_ops) <breakpoint_len>: Remove.
9760 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9761 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9762 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9763 (struct linux_target_ops) <breakpoint>: Remove.
9764 (struct linux_target_ops) <breakpoint_len>: Remove.
9765 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9766 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9767 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9768 and sw_breakpoint_from_kind to increment the pc.
9769 (linux_breakpoint_kind_from_pc): New function.
9770 (linux_sw_breakpoint_from_kind): New function.
9771 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9772 (initialize_low): Call breakpoint_kind_from_pc and
9773 sw_breakpoint_from_kind to replace breakpoint_data/len.
9774 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9776 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9777 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9778 (struct linux_target_ops) <breakpoint>: Remove.
9779 (struct linux_target_ops) <breakpoint_len>: Remove.
9780 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9781 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9782 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9783 (struct linux_target_ops) <breakpoint>: Remove.
9784 (struct linux_target_ops) <breakpoint_len>: Remove.
9785 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9786 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9787 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9788 (struct linux_target_ops) <breakpoint>: Remove.
9789 (struct linux_target_ops) <breakpoint_len>: Remove.
9790 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9791 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9792 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9793 (struct linux_target_ops) <breakpoint>: Remove.
9794 (struct linux_target_ops) <breakpoint_len>: Remove.
9795 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9796 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9797 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9798 (struct linux_target_ops) <breakpoint>: Remove.
9799 (struct linux_target_ops) <breakpoint_len>: Remove.
9800 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9801 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9802 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
9803 (struct linux_target_ops) <breakpoint>: Remove.
9804 (struct linux_target_ops) <breakpoint_len>: Remove.
9805 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9806 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9807 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
9808 (struct linux_target_ops) <breakpoint>: Remove.
9809 (struct linux_target_ops) <breakpoint_len>: Remove.
9810 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9811 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9812 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
9813 (struct linux_target_ops) <breakpoint>: Remove.
9814 (struct linux_target_ops) <breakpoint_len>: Remove.
9815 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9816 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9817 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
9818 (struct linux_target_ops) <breakpoint>: Remove.
9819 (struct linux_target_ops) <breakpoint_len>: Remove.
9820 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9821 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9822 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
9823 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
9824 (struct linux_target_ops) <breakpoint>: Remove.
9825 (struct linux_target_ops) <breakpoint_len>: Remove.
9826 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9827 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9828 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
9829 (struct linux_target_ops) <breakpoint>: Remove.
9830 (struct linux_target_ops) <breakpoint_len>: Remove.
9831 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9832 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9834 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9836 * linux-cris-low.c (cris_get_pc): Remove void arg.
9838 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9840 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
9843 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
9845 * inferiors.c (thread_pid_matches_callback): New function.
9846 (find_thread_process): New function.
9847 (remove_thread): Reset current_thread.
9848 (remove_process): Assert threads have been removed first.
9850 2015-10-15 Yao Qi <yao.qi@linaro.org>
9852 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
9854 (aarch64_remove_point): Likewise.
9855 * regcache.c (regcache_register_size): New function.
9857 2015-10-12 Yao Qi <yao.qi@linaro.org>
9859 * linux-aarch64-low.c: Update all callers as emit_load_store
9860 is renamed to aarch64_emit_load_store.
9862 2015-10-12 Yao Qi <yao.qi@linaro.org>
9864 * linux-aarch64-low.c: Update all callers of function renaming
9865 from emit_insn to aarch64_emit_insn.
9867 2015-10-12 Yao Qi <yao.qi@linaro.org>
9869 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
9870 arch/aarch64-insn.h.
9871 (struct aarch64_memory_operand): Likewise.
9873 (emit_insn): Move to arch/aarch64-insn.c.
9874 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
9875 (emit_load_store): Move to arch/aarch64-insn.c.
9876 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
9877 (can_encode_int32): Remove.
9879 2015-10-12 Yao Qi <yao.qi@linaro.org>
9881 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
9882 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
9883 (aarch64_relocate_instruction): Likewise.
9884 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
9885 (struct aarch64_insn_visitor): Likewise.
9887 2015-10-12 Yao Qi <yao.qi@linaro.org>
9889 * linux-aarch64-low.c (struct aarch64_insn_data): New.
9890 (struct aarch64_insn_visitor): New.
9891 (struct aarch64_insn_relocation_data): New.
9892 (aarch64_ftrace_insn_reloc_b): New function.
9893 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
9894 (aarch64_ftrace_insn_reloc_cb): Likewise.
9895 (aarch64_ftrace_insn_reloc_tb): Likewise.
9896 (aarch64_ftrace_insn_reloc_adr): Likewise.
9897 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
9898 (aarch64_ftrace_insn_reloc_others): Likewise.
9900 (aarch64_relocate_instruction): Use visitor.
9902 2015-10-12 Yao Qi <yao.qi@linaro.org>
9904 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
9905 int. Add argument buf.
9906 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
9907 aarch64_relocate_instruction.
9909 2015-10-12 Yao Qi <yao.qi@linaro.org>
9911 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
9912 argument insn. Remove local variable insn. Don't call
9914 (aarch64_install_fast_tracepoint_jump_pad): Call
9917 2015-09-30 Yao Qi <yao.qi@linaro.org>
9919 * linux-aarch64-low.c (emit_movk): Shorten a long line.
9920 (emit_load_store_pair): Likewise.
9922 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9924 * dll.c (match_dll): Add cast(s).
9925 (unloaded_dll): Likewise.
9926 * linux-low.c (second_thread_of_pid_p): Likewise.
9927 (delete_lwp_callback): Likewise.
9928 (count_events_callback): Likewise.
9929 (select_event_lwp_callback): Likewise.
9930 (linux_set_resume_request): Likewise.
9931 * server.c (accumulate_file_name_length): Likewise.
9932 (emit_dll_description): Likewise.
9933 (handle_qxfer_threads_worker): Likewise.
9934 (visit_actioned_threads): Likewise.
9935 * thread-db.c (any_thread_of): Likewise.
9936 * tracepoint.c (same_process_p): Likewise.
9937 (match_blocktype): Likewise.
9938 (build_traceframe_info_xml): Likewise.
9940 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
9942 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
9944 (gdb_unparse_agent_expr): Likewise.
9945 * hostio.c (require_data): Likewise.
9946 (handle_pread): Likewise.
9947 * linux-low.c (disable_regset): Likewise.
9948 (fetch_register): Likewise.
9949 (store_register): Likewise.
9950 (get_dynamic): Likewise.
9951 (linux_qxfer_libraries_svr4): Likewise.
9952 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
9953 (set_fast_tracepoint_jump): Likewise.
9954 (uninsert_fast_tracepoint_jumps_at): Likewise.
9955 (reinsert_fast_tracepoint_jumps_at): Likewise.
9956 (validate_inserted_breakpoint): Likewise.
9957 (clone_agent_expr): Likewise.
9958 * regcache.c (init_register_cache): Likewise.
9959 * remote-utils.c (putpkt_binary_1): Likewise.
9960 (decode_M_packet): Likewise.
9961 (decode_X_packet): Likewise.
9962 (look_up_one_symbol): Likewise.
9963 (relocate_instruction): Likewise.
9964 (monitor_output): Likewise.
9965 * server.c (handle_search_memory): Likewise.
9966 (handle_qxfer_exec_file): Likewise.
9967 (handle_qxfer_libraries): Likewise.
9968 (handle_qxfer): Likewise.
9969 (handle_query): Likewise.
9970 (handle_v_cont): Likewise.
9971 (handle_v_run): Likewise.
9972 (captured_main): Likewise.
9973 * target.c (write_inferior_memory): Likewise.
9974 * thread-db.c (try_thread_db_load_from_dir): Likewise.
9975 * tracepoint.c (init_trace_buffer): Likewise.
9976 (add_tracepoint_action): Likewise.
9977 (add_traceframe): Likewise.
9978 (add_traceframe_block): Likewise.
9979 (cmd_qtdpsrc): Likewise.
9980 (cmd_qtdv): Likewise.
9981 (cmd_qtstatus): Likewise.
9982 (response_source): Likewise.
9983 (response_tsv): Likewise.
9984 (cmd_qtnotes): Likewise.
9985 (gdb_collect): Likewise.
9986 (initialize_tracepoint): Likewise.
9988 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
9990 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
9991 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
9992 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
9994 (enum aarch64_condition_codes): New enum.
9995 (w0): New static global.
9998 (struct aarch64_memory_operand) <type>: New
9999 MEMORY_OPERAND_POSTINDEX type.
10000 (postindex_memory_operand): New helper function.
10001 (emit_ret): New function.
10002 (emit_load_store_pair): New function, factored out of emit_stp
10003 with support for MEMORY_OPERAND_POSTINDEX.
10004 (emit_stp): Rewrite using emit_load_store_pair.
10005 (emit_ldp): New function.
10006 (emit_load_store): Likewise.
10007 (emit_ldr): Mention post-index instruction in comment.
10008 (emit_ldrh): New function.
10009 (emit_ldrb): New function.
10010 (emit_ldrsw): Mention post-index instruction in comment.
10011 (emit_str): Likewise.
10012 (emit_subs): New function.
10013 (emit_cmp): Likewise.
10014 (emit_and): Likewise.
10015 (emit_orr): Likewise.
10016 (emit_orn): Likewise.
10017 (emit_eor): Likewise.
10018 (emit_mvn): Likewise.
10019 (emit_lslv): Likewise.
10020 (emit_lsrv): Likewise.
10021 (emit_asrv): Likewise.
10022 (emit_mul): Likewise.
10023 (emit_sbfm): Likewise.
10024 (emit_sbfx): Likewise.
10025 (emit_ubfm): Likewise.
10026 (emit_ubfx): Likewise.
10027 (emit_csinc): Likewise.
10028 (emit_cset): Likewise.
10029 (emit_nop): Likewise.
10030 (emit_ops_insns): New helper function.
10031 (emit_pop): Likewise.
10032 (emit_push): Likewise.
10033 (aarch64_emit_prologue): New function.
10034 (aarch64_emit_epilogue): Likewise.
10035 (aarch64_emit_add): Likewise.
10036 (aarch64_emit_sub): Likewise.
10037 (aarch64_emit_mul): Likewise.
10038 (aarch64_emit_lsh): Likewise.
10039 (aarch64_emit_rsh_signed): Likewise.
10040 (aarch64_emit_rsh_unsigned): Likewise.
10041 (aarch64_emit_ext): Likewise.
10042 (aarch64_emit_log_not): Likewise.
10043 (aarch64_emit_bit_and): Likewise.
10044 (aarch64_emit_bit_or): Likewise.
10045 (aarch64_emit_bit_xor): Likewise.
10046 (aarch64_emit_bit_not): Likewise.
10047 (aarch64_emit_equal): Likewise.
10048 (aarch64_emit_less_signed): Likewise.
10049 (aarch64_emit_less_unsigned): Likewise.
10050 (aarch64_emit_ref): Likewise.
10051 (aarch64_emit_if_goto): Likewise.
10052 (aarch64_emit_goto): Likewise.
10053 (aarch64_write_goto_address): Likewise.
10054 (aarch64_emit_const): Likewise.
10055 (aarch64_emit_call): Likewise.
10056 (aarch64_emit_reg): Likewise.
10057 (aarch64_emit_pop): Likewise.
10058 (aarch64_emit_stack_flush): Likewise.
10059 (aarch64_emit_zero_ext): Likewise.
10060 (aarch64_emit_swap): Likewise.
10061 (aarch64_emit_stack_adjust): Likewise.
10062 (aarch64_emit_int_call_1): Likewise.
10063 (aarch64_emit_void_call_2): Likewise.
10064 (aarch64_emit_eq_goto): Likewise.
10065 (aarch64_emit_ne_goto): Likewise.
10066 (aarch64_emit_lt_goto): Likewise.
10067 (aarch64_emit_le_goto): Likewise.
10068 (aarch64_emit_gt_goto): Likewise.
10069 (aarch64_emit_ge_got): Likewise.
10070 (aarch64_emit_ops_impl): New static global variable.
10071 (aarch64_emit_ops): New target function, return
10072 &aarch64_emit_ops_impl.
10073 (struct linux_target_ops): Install it.
10075 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10077 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10078 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10080 * linux-aarch64-ipa.c: New file.
10081 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10083 (aarch64_get_thread_area): New target method.
10084 (extract_signed_bitfield): New helper function.
10085 (aarch64_decode_ldr_literal): New function.
10086 (enum aarch64_opcodes): New enum.
10087 (struct aarch64_register): New struct.
10088 (struct aarch64_operand): New struct.
10089 (x0): New static global.
10098 (aarch64_register): New helper function.
10099 (register_operand): Likewise.
10100 (immediate_operand): Likewise.
10101 (struct aarch64_memory_operand): New struct.
10102 (offset_memory_operand): New helper function.
10103 (preindex_memory_operand): Likewise.
10104 (enum aarch64_system_control_registers): New enum.
10105 (ENCODE): New macro.
10106 (emit_insn): New helper function.
10107 (emit_b): New function.
10108 (emit_bcond): Likewise.
10109 (emit_cb): Likewise.
10110 (emit_tb): Likewise.
10111 (emit_blr): Likewise.
10112 (emit_stp): Likewise.
10113 (emit_ldp_q_offset): Likewise.
10114 (emit_stp_q_offset): Likewise.
10115 (emit_load_store): Likewise.
10116 (emit_ldr): Likewise.
10117 (emit_ldrsw): Likewise.
10118 (emit_str): Likewise.
10119 (emit_ldaxr): Likewise.
10120 (emit_stxr): Likewise.
10121 (emit_stlr): Likewise.
10122 (emit_data_processing_reg): Likewise.
10123 (emit_data_processing): Likewise.
10124 (emit_add): Likewise.
10125 (emit_sub): Likewise.
10126 (emit_mov): Likewise.
10127 (emit_movk): Likewise.
10128 (emit_mov_addr): Likewise.
10129 (emit_mrs): Likewise.
10130 (emit_msr): Likewise.
10131 (emit_sevl): Likewise.
10132 (emit_wfe): Likewise.
10133 (append_insns): Likewise.
10134 (can_encode_int32_in): New helper function.
10135 (aarch64_relocate_instruction): New function.
10136 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10137 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10138 (struct linux_target_ops): Install aarch64_get_thread_area,
10139 aarch64_install_fast_tracepoint_jump_pad and
10140 aarch64_get_min_fast_tracepoint_insn_len.
10142 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10144 * Makefile.in (aarch64-insn.o): New rule.
10145 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10147 2015-09-21 Yao Qi <yao.qi@linaro.org>
10149 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10151 2015-09-21 Yao Qi <yao.qi@linaro.org>
10153 * tracepoint.c (max_jump_pad_size): Remove.
10155 2015-09-18 Yao Qi <yao.qi@linaro.org>
10157 * linux-aarch64-low.c: Don't include sys/uio.h.
10158 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10160 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10162 * tracepoint.c (eval_result_type): Change prototype.
10163 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10165 2015-09-15 Pedro Alves <palves@redhat.com>
10167 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10168 Check whether to report exec events instead of checking whether
10169 multiprocess is enabled.
10171 2015-09-15 Pedro Alves <palves@redhat.com>
10174 * remote-utils.c (prepare_resume_reply): Merge
10175 TARGET_WAITKIND_VFORK_DONE switch case with the
10176 TARGET_WAITKIND_FORKED case.
10178 2015-09-15 Yao Qi <yao.qi@linaro.org>
10180 * server.c (handle_query): Check string comparison using
10181 "else if" instead of "if".
10183 2015-09-15 Yao Qi <yao.qi@linaro.org>
10185 * server.c (vCont_supported): New global variable.
10186 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10187 matches. Append ";vContSupported+" to own_buf.
10188 (handle_v_requests): Append ";s;S" to own_buf if target supports
10189 hardware single step or vCont_supported is false.
10190 (capture_main): Set vCont_supported to zero.
10192 2015-09-15 Yao Qi <yao.qi@linaro.org>
10194 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10196 (linux_supports_hardware_single_step): ... New function.
10197 (linux_target_ops): Update.
10198 * lynx-low.c (lynx_target_ops): Set field
10199 supports_hardware_single_step to target_can_do_hardware_single_step.
10200 * nto-low.c (nto_target_ops): Likewise.
10201 * spu-low.c (spu_target_ops): Likewise.
10202 * win32-low.c (win32_target_ops): Likewise.
10203 * target.c (target_can_do_hardware_single_step): New function.
10204 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10205 Remove. <supports_hardware_single_step>: New field.
10206 (target_supports_conditional_breakpoints): Remove.
10207 (target_supports_hardware_single_step): New macro.
10208 (target_can_do_hardware_single_step): Declare.
10209 * server.c (handle_query): Use target_supports_hardware_single_step
10210 instead of target_supports_conditional_breakpoints.
10212 2015-09-15 Yao Qi <yao.qi@linaro.org>
10214 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10216 (struct linux_target_ops the_low_target): Install
10217 aarch64_linux_siginfo_fixup.
10219 2015-09-11 Don Breazeal <donb@codesourcery.com>
10220 Luis Machado <lgustavo@codesourcery.com>
10222 * linux-low.c (linux_mourn): Static declaration.
10223 (linux_arch_setup): Move in front of
10224 handle_extended_wait.
10225 (linux_arch_setup_thread): New function.
10226 (handle_extended_wait): Handle exec events. Call
10227 linux_arch_setup_thread. Make event_lwp argument a
10228 pointer-to-a-pointer.
10229 (check_zombie_leaders): Do not check stopped threads.
10230 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10231 (linux_low_filter_event): Add lwp and thread for exec'ing
10232 non-leader thread if leader thread has been deleted.
10233 Refactor code into linux_arch_setup_thread and call it.
10234 Pass child lwp pointer by reference to handle_extended_wait.
10235 (linux_wait_for_event_filtered): Update comment.
10236 (linux_wait_1): Prevent clobbering exec event status.
10237 (linux_supports_exec_events): New function.
10238 (linux_target_ops) <supports_exec_events>: Initialize new member.
10239 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10241 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10242 * server.c (report_exec_events): New global variable.
10243 (handle_query): Handle qSupported query for exec-events feature.
10244 (captured_main): Initialize report_exec_events.
10245 * server.h (report_exec_events): Declare new global variable.
10246 * target.h (struct target_ops) <supports_exec_events>: New
10248 (target_supports_exec_events): New macro.
10249 * win32-low.c (win32_target_ops) <supports_exec_events>:
10250 Initialize new member.
10252 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10254 * linux-low.c (linux_low_enable_btrace): Remove.
10255 (linux_target_ops): Replace linux_low_enable_btrace with
10256 linux_enable_btrace.
10258 2015-09-03 Yao Qi <yao.qi@linaro.org>
10260 * linux-aarch64-low.c (aarch64_insert_point): Call
10261 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10264 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10266 * linux-low.c (check_stopped_by_breakpoint): Use
10267 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10269 2015-08-27 Pedro Alves <palves@redhat.com>
10271 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10273 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10275 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10276 the XNEW-family equivalent.
10277 (compile_bytecodes): Likewise.
10278 * dll.c (loaded_dll): Likewise.
10279 * event-loop.c (append_callback_event): Likewise.
10280 (create_file_handler): Likewise.
10281 (create_file_event): Likewise.
10282 * hostio.c (handle_open): Likewise.
10283 * inferiors.c (add_thread): Likewise.
10284 (add_process): Likewise.
10285 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10286 * linux-arm-low.c (arm_new_process): Likewise.
10287 (arm_new_thread): Likewise.
10288 * linux-low.c (add_to_pid_list): Likewise.
10289 (linux_add_process): Likewise.
10290 (handle_extended_wait): Likewise.
10291 (add_lwp): Likewise.
10292 (enqueue_one_deferred_signal): Likewise.
10293 (enqueue_pending_signal): Likewise.
10294 (linux_resume_one_lwp_throw): Likewise.
10295 (linux_resume_one_thread): Likewise.
10296 (linux_read_memory): Likewise.
10297 (linux_write_memory): Likewise.
10298 * linux-mips-low.c (mips_linux_new_process): Likewise.
10299 (mips_linux_new_thread): Likewise.
10300 (mips_add_watchpoint): Likewise.
10301 * linux-x86-low.c (initialize_low_arch): Likewise.
10302 * lynx-low.c (lynx_add_process): Likewise.
10303 * mem-break.c (set_raw_breakpoint_at): Likewise.
10304 (set_breakpoint): Likewise.
10305 (add_condition_to_breakpoint): Likewise.
10306 (add_commands_to_breakpoint): Likewise.
10307 (clone_agent_expr): Likewise.
10308 (clone_one_breakpoint): Likewise.
10309 * regcache.c (new_register_cache): Likewise.
10310 * remote-utils.c (look_up_one_symbol): Likewise.
10311 * server.c (queue_stop_reply): Likewise.
10312 (start_inferior): Likewise.
10313 (queue_stop_reply_callback): Likewise.
10314 (handle_target_event): Likewise.
10315 * spu-low.c (fetch_ppc_memory): Likewise.
10316 (store_ppc_memory): Likewise.
10317 * target.c (set_target_ops): Likewise.
10318 * thread-db.c (thread_db_load_search): Likewise.
10319 (try_thread_db_load_1): Likewise.
10320 * tracepoint.c (add_tracepoint): Likewise.
10321 (add_tracepoint_action): Likewise.
10322 (create_trace_state_variable): Likewise.
10323 (cmd_qtdpsrc): Likewise.
10324 (cmd_qtro): Likewise.
10325 (add_while_stepping_state): Likewise.
10326 * win32-low.c (child_add_thread): Likewise.
10327 (get_image_name): Likewise.
10329 2015-08-25 Yao Qi <yao.qi@linaro.org>
10331 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10333 2015-08-25 Yao Qi <yao.qi@linaro.org>
10335 * Makefile.in (aarch64-linux.o): New rule.
10336 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10338 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10339 (aarch64_init_debug_reg_state): Make it extern.
10340 (aarch64_linux_prepare_to_resume): Remove.
10342 2015-08-25 Yao Qi <yao.qi@linaro.org>
10344 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10345 lwp_arch_private_info and ptid_of_lwp.
10347 2015-08-25 Yao Qi <yao.qi@linaro.org>
10349 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10350 Find proc_info by find_process_pid. All callers updated.
10352 2015-08-25 Yao Qi <yao.qi@linaro.org>
10354 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10356 (debug_reg_change_callback): Remove.
10357 (aarch64_notify_debug_reg_change): Remove.
10359 2015-08-25 Yao Qi <yao.qi@linaro.org>
10361 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10362 Call current_lwp_ptid.
10364 2015-08-25 Yao Qi <yao.qi@linaro.org>
10366 * linux-aarch64-low.c (debug_reg_change_callback): Use
10369 2015-08-25 Yao Qi <yao.qi@linaro.org>
10371 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10373 2015-08-25 Yao Qi <yao.qi@linaro.org>
10375 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10377 2015-08-25 Yao Qi <yao.qi@linaro.org>
10379 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10382 2015-08-25 Yao Qi <yao.qi@linaro.org>
10384 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10386 (debug_reg_change_callback): Remove argument entry and add argument
10387 lwp. Remove local variable thread. Don't print thread id in the
10388 debugging output. Don't check whether pid of thread equals to pid.
10389 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10390 iterate_over_lwps instead find_inferior.
10392 2015-08-24 Pedro Alves <palves@redhat.com>
10394 * inferiors.c (get_first_process): New function.
10395 * inferiors.h (get_first_process): New declaration.
10396 * remote-utils.c (read_ptid): Default to the first process in the
10397 list, instead of to the current thread's process.
10399 2015-08-24 Pedro Alves <palves@redhat.com>
10401 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10402 * event-loop.c: Likewise.
10403 * remote-utils.c: Likewise.
10404 * tracepoint.c: Likewise.
10406 2015-08-24 Pedro Alves <palves@redhat.com>
10408 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10411 2015-08-21 Pedro Alves <palves@redhat.com>
10413 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10414 instead of literal 1.
10416 2015-08-21 Pedro Alves <palves@redhat.com>
10418 * tdesc.c (default_description): Explicitly zero-initialize.
10420 2015-08-21 Pedro Alves <palves@redhat.com>
10423 * inferiors.c (remove_thread): Discard any pending stop reply for
10425 * server.c (remove_all_on_match_pid): Rename to ...
10426 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10428 (discard_queued_stop_replies): Change parameter to a ptid. Now
10430 (handle_v_kill, kill_inferior_callback, captured_main)
10431 (process_serial_event): Adjust.
10432 * server.h (discard_queued_stop_replies): Declare.
10434 2015-08-21 Pedro Alves <palves@redhat.com>
10436 * linux-low.c (wait_for_sigstop): Always switch to no thread
10437 selected if the previously current thread dies.
10438 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10439 process instead of the current thread's.
10440 * remote-utils.c (input_interrupt): Don't check if there's no
10442 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10443 current thread to the general thread fails, error out.
10444 (handle_qxfer_auxv, handle_qxfer_libraries)
10445 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10446 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10447 (handle_query): Check if there's a thread selected instead of
10448 checking whether there's any thread in the thread list.
10449 (handle_qxfer_threads, handle_qxfer_btrace)
10450 (handle_qxfer_btrace_conf): Don't error out early if there's no
10451 thread in the thread list.
10452 (handle_v_cont, myresume): Don't set the current thread to the
10454 (process_serial_event) <Hg handling>: Also set thread_id if the
10455 previous general thread is still alive.
10456 (process_serial_event) <g/G handling>: If setting the current
10457 thread to the general thread fails, error out.
10458 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10459 thread's lwp instead of the current thread's.
10460 * target.c (set_desired_thread): If the desired thread was not
10461 found, leave the current thread pointing to NULL. Return an int
10462 (boolean) indicating success.
10463 * target.h (set_desired_thread): Change return type to int.
10465 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10467 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10468 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10470 (ps_get_thread_area): New function.
10472 2015-08-19 Gary Benson <gbenson@redhat.com>
10474 * hostio.c (handle_pread): Do not attempt to read more data
10475 than hostio_reply_with_data can fit in a packet.
10477 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10479 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10481 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10483 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10485 2015-08-06 Pedro Alves <palves@redhat.com>
10487 * tracepoint.c (expr_eval_result): Now an int.
10489 2015-08-06 Pedro Alves <palves@redhat.com>
10491 * gdbthread.h (struct regcache): Forward declare.
10492 (struct thread_info) <regcache_data>: Now a struct regcache
10494 * inferiors.c (inferior_regcache_data)
10495 (set_inferior_regcache_data): Now work with struct regcache
10497 * inferiors.h (struct regcache): Forward declare.
10498 (inferior_regcache_data, set_inferior_regcache_data): Now work
10499 with struct regcache pointers.
10500 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10501 (free_register_cache_thread): Remove struct regcache pointer
10504 2015-08-06 Pedro Alves <palves@redhat.com>
10506 * server.c (captured_main): On error, print the exception message
10507 to stderr, and if run_once is set, throw a quit.
10509 2015-08-06 Pedro Alves <palves@redhat.com>
10511 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10512 the current thread.
10514 2015-08-06 Pedro Alves <palves@redhat.com>
10516 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10517 reading beyond the passed in buffer length.
10519 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10521 * tracepoint.c (symbol_list) <required>: Remove.
10523 2015-08-06 Pedro Alves <palves@redhat.com>
10525 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10526 count if stopping and suspending threads.
10527 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10528 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10529 (linux_detach): Complete an ongoing step-over.
10530 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10532 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10533 (linux_wait_1): If passing a signal to the inferior after
10534 finishing a step-over, unsuspend and re-resume all lwps. If we
10535 see a single-step event but the thread should be continuing, don't
10536 pass the trap to gdb.
10537 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10538 internal_error instead of gdb_assert.
10539 (enqueue_pending_signal): New function.
10540 (check_ptrace_stopped_lwp_gone): Add debug output.
10541 (start_step_over): Use internal_error instead of gdb_assert.
10542 (complete_ongoing_step_over): New function.
10543 (linux_resume_one_thread): Don't resume a suspended thread.
10544 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10547 2015-08-06 Pedro Alves <palves@redhat.com>
10549 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10550 (linux_thread_alive): Use lwp_is_marked_dead.
10551 (extended_event_reported): Delete.
10552 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10553 instead of extended_event_reported.
10554 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10556 (lwp_is_marked_dead): New function.
10557 (lwp_running): Use lwp_is_marked_dead.
10558 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10561 2015-08-06 Pedro Alves <palves@redhat.com>
10563 * linux-low.c (linux_wait_1): Move fork event output out of the
10564 !report_to_gdb check. Pass event_child->waitstatus to
10565 target_waitstatus_to_string instead of ourstatus.
10567 2015-08-04 Yao Qi <yao.qi@linaro.org>
10569 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10570 if current_thread is 32 bit.
10572 2015-08-04 Yao Qi <yao.qi@linaro.org>
10574 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10575 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10576 * server.c (extended_protocol): Remove "static".
10577 * server.h (extended_protocol): Declare it.
10579 2015-08-04 Yao Qi <yao.qi@linaro.org>
10581 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10582 both aarch64 and aarch32.
10583 (aarch64_set_pc): Likewise.
10585 2015-08-04 Yao Qi <yao.qi@linaro.org>
10587 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10588 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10589 arm-with-neon.xml to srv_xmlfiles.
10590 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10591 (is_64bit_tdesc): New function.
10592 (aarch64_linux_read_description): New function.
10593 (aarch64_arch_setup): Call aarch64_linux_read_description.
10594 (regs_info): Rename to regs_info_aarch64.
10595 (aarch64_regs_info): Return right regs_info.
10596 (initialize_low_arch): Call initialize_low_arch_aarch32.
10598 2015-08-04 Yao Qi <yao.qi@linaro.org>
10600 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10601 * linux-aarch32-low.c: New file.
10602 * linux-aarch32-low.h: New file.
10603 * linux-arm-low.c (arm_fill_gregset): Move it to
10604 linux-aarch32-low.c.
10605 (arm_store_gregset): Likewise.
10606 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10607 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10608 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10609 (regs_info): Rename to regs_info_arm.
10610 (arm_regs_info): Return regs_info_aarch32 if
10611 have_ptrace_getregset is 1 and target description is
10612 arm_with_neon or arm_with_vfpv3.
10613 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10614 Call initialize_low_arch_aarch32 instead.
10616 2015-08-04 Yao Qi <yao.qi@linaro.org>
10618 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10619 * linux-low.c: ... here.
10620 * linux-low.h (have_ptrace_getregset): Declare it.
10622 2015-08-04 Pedro Alves <palves@redhat.com>
10624 * thread-db.c (struct thread_db): Use new typedefs.
10625 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10627 (disable_thread_event_reporting): Cast result of dlsym to
10628 destination function pointer type.
10629 (thread_db_mourn): Use td_ta_delete_ftype.
10631 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10633 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10635 (CDX_BREAKPOINT): Define for R2.
10636 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10637 (the_low_target): Add comments.
10639 2015-07-30 Yao Qi <yao.qi@linaro.org>
10641 * linux-arm-low.c (arm_hwcap): Remove it.
10642 (arm_read_description): New local variable arm_hwcap. Don't
10643 set arm_hwcap to zero.
10645 2015-07-30 Yao Qi <yao.qi@linaro.org>
10647 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10648 Use regcache->tdesc instead.
10649 (arm_store_wmmxregset): Likewise.
10650 (arm_fill_vfpregset): Likewise.
10651 (arm_store_vfpregset): Likewise.
10653 2015-07-30 Yao Qi <yao.qi@linaro.org>
10655 * linux-arm-low.c: Include arch/arm.h.
10656 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10657 (arm_store_gregset): Likewise.
10659 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10661 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10662 ptrace's 4th parameter.
10664 2015-07-27 Yao Qi <yao.qi@linaro.org>
10666 * configure.srv (case aarch64*-*-linux*): Don't set
10669 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10671 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10673 * linux-arm-low.c: Likewise.
10674 * linux-cris-low.c: Likewise.
10675 * linux-crisv32-low.c: Likewise.
10676 * linux-low.c: Likewise.
10677 * linux-m68k-low.c: Likewise.
10678 * linux-mips-low.c: Likewise.
10679 * linux-nios2-low.c: Likewise.
10680 * linux-s390-low.c: Likewise.
10681 * linux-sparc-low.c: Likewise.
10682 * linux-tic6x-low.c: Likewise.
10683 * linux-tile-low.c: Likewise.
10684 * linux-x86-low.c: Likewise.
10686 2015-07-24 Pedro Alves <palves@redhat.com>
10688 * config.in: Regenerate.
10689 * configure: Regenerate.
10691 2015-07-24 Pedro Alves <palves@redhat.com>
10693 * acinclude.m4: Include ../ptrace.m4.
10694 * configure.ac: Call GDB_AC_PTRACE.
10695 * config.in, configure: Regenerate.
10697 2015-07-24 Yao Qi <yao.qi@linaro.org>
10699 * linux-low.c (linux_create_inferior): Remove setting to
10700 proc->priv->new_inferior.
10701 (linux_attach): Likewise.
10702 (linux_low_filter_event): Likewise.
10703 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10705 2015-07-24 Yao Qi <yao.qi@linaro.org>
10707 * linux-low.c (linux_arch_setup): New function.
10708 (linux_low_filter_event): If proc->tdesc is NULL and
10709 proc->attached is true, call the_low_target.arch_setup.
10710 Otherwise, keep status pending, and return.
10711 (linux_resume_one_lwp_throw): Don't call get_pc if
10712 thread->while_stepping isn't NULL. Don't call
10713 get_thread_regcache if proc->tdesc is NULL.
10714 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10715 (linux_target_ops): Install arch_setup.
10716 * server.c (start_inferior): Call the_target->arch_setup.
10717 * target.h (struct target_ops) <arch_setup>: New field.
10718 (target_arch_setup): New marco.
10719 * lynx-low.c (lynx_target_ops): Update.
10720 * nto-low.c (nto_target_ops): Update.
10721 * spu-low.c (spu_target_ops): Update.
10722 * win32-low.c (win32_target_ops): Update.
10724 2015-07-24 Yao Qi <yao.qi@linaro.org>
10726 * linux-low.c (linux_add_process): Don't set
10727 proc->priv->new_inferior.
10728 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10729 (linux_attach): Likewise.
10731 2015-07-24 Yao Qi <yao.qi@linaro.org>
10733 * server.c (start_inferior): Code refactor.
10735 2015-07-24 Yao Qi <yao.qi@linaro.org>
10737 * server.c (process_serial_event): Set general_thread.
10739 2015-07-21 Yao Qi <yao.qi@linaro.org>
10741 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10742 aarch64_linux_get_debug_reg_capacity.
10744 2015-07-17 Yao Qi <yao.qi@linaro.org>
10746 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10747 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10748 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10749 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10750 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10751 (AARCH64_HWP_ALIGNMENT): Likewise.
10752 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10753 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10754 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10755 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10756 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10757 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10758 (struct aarch64_debug_reg_state): Likewise.
10759 (struct arch_lwp_info): Likewise.
10760 (aarch64_align_watchpoint): Likewise.
10761 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10762 (aarch64_watchpoint_length): Likewise.
10763 (aarch64_point_encode_ctrl_reg): Likewise
10764 (aarch64_point_is_aligned): Likewise.
10765 (aarch64_align_watchpoint): Likewise.
10766 (aarch64_linux_set_debug_regs):
10767 (aarch64_dr_state_insert_one_point): Likewise.
10768 (aarch64_dr_state_remove_one_point): Likewise.
10769 (aarch64_handle_breakpoint): Likewise.
10770 (aarch64_handle_aligned_watchpoint): Likewise.
10771 (aarch64_handle_unaligned_watchpoint): Likewise.
10772 (aarch64_handle_watchpoint): Likewise.
10774 2015-07-17 Yao Qi <yao.qi@linaro.org>
10776 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10777 and don't aarch64_get_debug_reg_state. All callers update.
10778 (aarch64_handle_aligned_watchpoint): Likewise.
10779 (aarch64_handle_unaligned_watchpoint): Likewise.
10780 (aarch64_handle_watchpoint): Likewise.
10781 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10782 (aarch64_remove_point): Likewise.
10784 2015-07-17 Yao Qi <yao.qi@linaro.org>
10786 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10788 (aarch64_handle_unaligned_watchpoint): Likewise.
10790 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10792 Revert the previous 3 commits:
10793 Move gdb_regex* to common/
10794 Move linux_find_memory_regions_full & co.
10795 gdbserver build-id attribute generator
10797 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10798 Jan Kratochvil <jan.kratochvil@redhat.com>
10800 gdbserver build-id attribute generator.
10801 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
10802 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
10803 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
10805 (get_dynamic): Use find_pdhr to traverse program headers.
10806 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
10807 (compare_mapping_entry_range, struct find_memory_region_callback_data)
10808 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
10809 (get_hex_build_id): New.
10810 (linux_qxfer_libraries_svr4): Add optional build-id attribute
10811 to reply XML document.
10813 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10814 Jan Kratochvil <jan.kratochvil@redhat.com>
10816 * target.c: Include target/target-utils.h and fcntl.h.
10817 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
10818 (target_fileio_read_stralloc): New functions.
10820 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10822 * Makefile.in (OBS): Add gdb_regex.o.
10823 (gdb_regex.o): New.
10824 * config.in: Rebuilt.
10825 * configure: Rebuilt.
10827 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10828 Jan Kratochvil <jan.kratochvil@redhat.com>
10830 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
10831 * Makefile.in (OBS): Add target-utils.o.
10832 (linux-maps.o, target-utils.o): New.
10833 * configure.srv (srv_linux_obj): Add linux-maps.o.
10835 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
10837 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
10838 function, return 1.
10839 (the_low_target): Install it.
10841 2015-07-14 Pedro Alves <palves@redhat.com>
10843 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
10844 Instead, ignore ECHILD, and throw an error for other errnos.
10846 2015-07-10 Pedro Alves <palves@redhat.com>
10848 * event-loop.c (struct callback_event) <data>: Change type to
10849 gdb_client_data instance instead of gdb_client_data pointer.
10850 (append_callback_event): Adjust.
10852 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
10854 * linux-aarch64-low.c: Add comments for each linux_target_ops
10855 method. Remove comments already covered in target_ops and
10856 linux_target_ops definitions.
10857 (the_low_target): Add comments for each unimplemented method.
10859 2015-07-09 Yao Qi <yao.qi@linaro.org>
10861 * linux-aarch64-low.c (aarch64_regmap): Remove.
10862 (aarch64_usrregs_info): Remove.
10863 (regs_info): Set field usrregs to NULL.
10865 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
10867 * linux-low.c: Include "rsp-low.h"
10868 (linux_low_encode_pt_config, linux_low_encode_raw): New.
10869 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
10870 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
10871 (handle_btrace_enable_pt): New.
10872 (handle_btrace_general_set): Support "pt".
10873 (handle_btrace_conf_general_set): Support "pt:size".
10875 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10877 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
10880 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
10882 * linux-aarch64-low.c: Remove comment about endianness.
10883 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
10884 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
10887 2015-06-24 Gary Benson <gbenson@redhat.com>
10889 * linux-i386-ipa.c (stdint.h): Do not include.
10890 * lynx-i386-low.c (stdint.h): Likewise.
10891 * lynx-ppc-low.c (stdint.h): Likewise.
10892 * mem-break.c (stdint.h): Likewise.
10893 * thread-db.c (stdint.h): Likewise.
10894 * tracepoint.c (stdint.h): Likewise.
10895 * win32-low.c (stdint.h): Likewise.
10897 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
10899 * server.c (write_qxfer_response): Update call to
10900 remote_escape_output.
10902 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
10903 Jan Kratochvil <jan.kratochvil@redhat.com>
10905 Merge multiple hex conversions.
10906 * gdbreplay.c (tohex): Rename to 'fromhex'.
10907 (logchar): Use fromhex.
10909 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10911 * server.c (handle_qxfer_libraries): Set `version' attribute for
10914 2015-06-10 Gary Benson <gbenson@redhat.com>
10916 * target.h (struct target_ops) <multifs_open>: New field.
10917 <multifs_unlink>: Likewise.
10918 <multifs_readlink>: Likewise.
10919 * linux-low.c (nat/linux-namespaces.h): New include.
10920 (linux_target_ops): Initialize the_target->multifs_open,
10921 the_target->multifs_unlink and the_target->multifs_readlink.
10922 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
10923 * hostio.c (hostio_fs_pid): New static variable.
10924 (hostio_handle_new_gdb_connection): New function.
10925 (handle_setfs): Likewise.
10926 (handle_open): Use the_target->multifs_open as appropriate.
10927 (handle_unlink): Use the_target->multifs_unlink as appropriate.
10928 (handle_readlink): Use the_target->multifs_readlink as
10930 (handle_vFile): Handle vFile:setfs packets.
10931 * server.c (handle_query): Call hostio_handle_new_gdb_connection
10932 after target_handle_new_gdb_connection.
10934 2015-06-10 Gary Benson <gbenson@redhat.com>
10936 * configure.ac (AC_CHECK_FUNCS): Add setns.
10937 * config.in: Regenerate.
10938 * configure: Likewise.
10939 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
10940 (linux-namespaces.o): New rule.
10941 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
10943 2015-06-09 Gary Benson <gbenson@redhat.com>
10945 * hostio.c (handle_open): Process mode argument with
10946 fileio_to_host_mode.
10948 2015-06-01 Yao Qi <yao.qi@linaro.org>
10950 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
10951 * linux-x86-low.c: Likewise.
10953 2015-05-28 Don Breazeal <donb@codesourcery.com>
10955 * linux-low.c (handle_extended_wait): Initialize
10956 thread_info.last_resume_kind for new fork children.
10958 2015-05-15 Pedro Alves <palves@redhat.com>
10960 * target.h (target_handle_new_gdb_connection): Rewrite using if
10961 wrapped in do/while.
10963 2015-05-14 Joel Brobecker <brobecker@adacore.com>
10965 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
10966 * configure, config.in: Regenerate.
10967 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
10970 2015-05-12 Don Breazeal <donb@codesourcery.com>
10972 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
10973 PTRACE_EVENT_VFORK_DONE.
10974 (linux_low_ptrace_options, extended_event_reported): Add vfork
10976 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
10977 and "vforkdone" for RSP 'T' Stop Reply Packet.
10978 * server.h (report_vfork_events): Declare
10981 2015-05-12 Don Breazeal <donb@codesourcery.com>
10983 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
10984 (the_low_target) <new_fork>: Initialize new member.
10985 * linux-arm-low.c (arm_new_fork): New function.
10986 (the_low_target) <new_fork>: Initialize new member.
10987 * linux-low.c (handle_extended_wait): Call new target function
10989 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
10990 * linux-mips-low.c (mips_add_watchpoint): New function
10991 extracted from mips_insert_point.
10992 (the_low_target) <new_fork>: Initialize new member.
10993 (mips_linux_new_fork): New function.
10994 (mips_insert_point): Call mips_add_watchpoint.
10995 * linux-x86-low.c (x86_linux_new_fork): New function.
10996 (the_low_target) <new_fork>: Initialize new member.
10998 2015-05-12 Don Breazeal <donb@codesourcery.com>
11000 * linux-low.c (handle_extended_wait): Implement return value,
11001 rename argument 'event_child' to 'event_lwp', handle
11002 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11003 (linux_low_ptrace_options): New function.
11004 (linux_low_filter_event): Call linux_low_ptrace_options,
11005 use different argument fo linux_enable_event_reporting,
11006 use return value from handle_extended_wait.
11007 (extended_event_reported): New function.
11008 (linux_wait_1): Call extended_event_reported and set
11009 status to report fork events.
11010 (linux_write_memory): Add pid to debug message.
11011 (reset_lwp_ptrace_options_callback): New function.
11012 (linux_handle_new_gdb_connection): New function.
11013 (linux_target_ops): Initialize new structure member.
11014 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11015 * lynx-low.c: Initialize new structure member.
11016 * remote-utils.c (prepare_resume_reply): Implement stop reason
11017 "fork" for "T" stop message.
11018 * server.c (handle_query): Call handle_new_gdb_connection.
11019 * server.h (report_fork_events): Declare global flag.
11020 * target.h (struct target_ops) <handle_new_gdb_connection>:
11022 (target_handle_new_gdb_connection): New macro.
11023 * win32-low.c: Initialize new structure member.
11025 2015-05-12 Don Breazeal <donb@codesourcery.com>
11027 * mem-break.c (APPEND_TO_LIST): Define macro.
11028 (clone_agent_expr): New function.
11029 (clone_one_breakpoint): New function.
11030 (clone_all_breakpoints): New function.
11031 * mem-break.h: Declare new functions.
11033 2015-05-12 Don Breazeal <donb@codesourcery.com>
11035 * linux-low.c (linux_supports_fork_events): New function.
11036 (linux_supports_vfork_events): New function.
11037 (linux_target_ops): Initialize new structure members.
11038 (initialize_low): Call linux_check_ptrace_features.
11039 * lynx-low.c (lynx_target_ops): Initialize new structure
11041 * server.c (report_fork_events, report_vfork_events):
11043 (handle_query): Add new features to qSupported packet and
11045 (captured_main): Initialize new global variables.
11046 * target.h (struct target_ops) <supports_fork_events>:
11048 <supports_vfork_events>: New member.
11049 (target_supports_fork_events): New macro.
11050 (target_supports_vfork_events): New macro.
11051 * win32-low.c (win32_target_ops): Initialize new structure
11054 2015-05-12 Gary Benson <gbenson@redhat.com>
11056 * server.c (handle_qxfer_exec_file): Use current process
11059 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11061 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11062 Remove HAVE_PTRACE_GETREGS conditionals.
11063 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11064 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11066 2015-05-08 Yao Qi <yao.qi@linaro.org>
11068 * linux-low.c (linux_supports_conditional_breakpoints): New
11070 (linux_target_ops): Install new target method.
11071 * lynx-low.c (lynx_target_ops): Install NULL hook for
11072 supports_conditional_breakpoints.
11073 * nto-low.c (nto_target_ops): Likewise.
11074 * spu-low.c (spu_target_ops): Likewise.
11075 * win32-low.c (win32_target_ops): Likewise.
11076 * server.c (handle_query): Check
11077 target_supports_conditional_breakpoints.
11078 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11080 (target_supports_conditional_breakpoints): New macro.
11082 2015-05-06 Pedro Alves <palves@redhat.com>
11085 * server.c (start_inferior): If the process exits, mourn it.
11087 2015-04-21 Gary Benson <gbenson@redhat.com>
11089 * hostio.c (fileio_open_flags_to_host): Factored out to
11090 fileio_to_host_openflags in common/fileio.c. Single use
11093 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11095 * linux-xtensa-low.c (xtensa_fill_gregset)
11096 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11099 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11101 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11102 (regs_info): Replace usrregs pointer with NULL.
11104 2015-04-17 Gary Benson <gbenson@redhat.com>
11106 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11107 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11108 * server.c (handle_qxfer_exec_file): New function.
11109 (qxfer_packets): Add exec-file entry.
11110 (handle_query): Report qXfer:exec-file:read as supported packet.
11112 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11114 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11116 2015-04-09 Gary Benson <gbenson@redhat.com>
11118 * hostio-errno.c (errno_to_fileio_error): Remove function.
11119 Update caller to use remote_fileio_to_fio_error.
11121 2015-04-09 Yao Qi <yao.qi@linaro.org>
11123 * linux-low.c (linux_insert_point): Call
11124 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11125 (linux_remove_point): Call remove_memory_breakpoint if type is
11127 * linux-x86-low.c (x86_insert_point): Don't call
11128 insert_memory_breakpoint.
11129 (x86_remove_point): Don't call remove_memory_breakpoint.
11131 2015-04-01 Pedro Alves <palves@redhat.com>
11132 Cleber Rosa <crosa@redhat.com>
11134 * server.c (gdbserver_usage): Reorganize and extend the usage
11137 2015-03-24 Pedro Alves <palves@redhat.com>
11139 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11140 output. Also dump TRAP_TRACE.
11141 (linux_low_filter_event): In debug output, distinguish a
11142 resume_stop SIGSTOP from a delayed SIGSTOP.
11144 2015-03-24 Gary Benson <gbenson@redhat.com>
11146 * linux-x86-low.c (x86_linux_new_thread): Moved to
11148 (x86_linux_prepare_to_resume): Likewise.
11150 2015-03-24 Gary Benson <gbenson@redhat.com>
11152 * Makefile.in (x86-linux-dregs.o): New rule.
11153 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11154 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11155 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11156 (x86_linux_dr_get): Likewise.
11157 (x86_linux_dr_set): Likewise.
11158 (update_debug_registers_callback): Likewise.
11159 (x86_linux_dr_set_addr): Likewise.
11160 (x86_linux_dr_get_addr): Likewise.
11161 (x86_linux_dr_set_control): Likewise.
11162 (x86_linux_dr_get_control): Likewise.
11163 (x86_linux_dr_get_status): Likewise.
11164 (x86_linux_update_debug_registers): Likewise.
11166 2015-03-24 Gary Benson <gbenson@redhat.com>
11168 * linux-x86-low.c (x86_linux_update_debug_registers):
11169 New function, factored out from...
11170 (x86_linux_prepare_to_resume): ...this.
11172 2015-03-24 Gary Benson <gbenson@redhat.com>
11174 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11175 (x86_linux_dr_set): Likewise.
11176 (update_debug_registers_callback): Likewise.
11177 (x86_linux_dr_set_addr): Likewise.
11178 (x86_linux_dr_get_addr): Likewise.
11179 (x86_linux_dr_set_control): Likewise.
11180 (x86_linux_dr_get_control): Likewise.
11181 (x86_linux_dr_get_status): Likewise.
11182 (x86_linux_prepare_to_resume): Likewise.
11184 2015-03-24 Gary Benson <gbenson@redhat.com>
11186 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11187 Use perror_with_name. Pass string through gettext.
11188 (x86_linux_dr_set): Likewise.
11190 2015-03-24 Gary Benson <gbenson@redhat.com>
11192 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11193 (x86_linux_dr_set_addr): ...this.
11194 (x86_dr_low_get_addr): Rename to...
11195 (x86_linux_dr_get_addr): ...this.
11196 (x86_dr_low_set_control): Rename to...
11197 (x86_linux_dr_set_control): ...this.
11198 (x86_dr_low_get_control): Rename to...
11199 (x86_linux_dr_get_control): ...this.
11200 (x86_dr_low_get_status): Rename to...
11201 (x86_linux_dr_get_status): ...this.
11202 (x86_dr_low): Update with new function names.
11204 2015-03-24 Gary Benson <gbenson@redhat.com>
11206 * Makefile.in (x86-linux.o): New rule.
11207 * configure.srv: Add x86-linux.o to relevant targets.
11208 * linux-low.c (lwp_set_arch_private_info): New function.
11209 (lwp_arch_private_info): Likewise.
11210 * linux-x86-low.c: Include nat/x86-linux.h.
11211 (arch_lwp_info): Removed structure.
11212 (update_debug_registers_callback):
11213 Use lwp_set_debug_registers_changed.
11214 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11215 and lwp_set_debug_registers_changed.
11216 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11218 2015-03-24 Gary Benson <gbenson@redhat.com>
11220 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11221 * linux-arm-low.c (arm_new_thread): Likewise.
11222 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11223 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11224 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11225 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11227 2015-03-24 Gary Benson <gbenson@redhat.com>
11229 * linux-low.c (ptid_of_lwp): New function.
11230 (lwp_is_stopped): Likewise.
11231 (lwp_stop_reason): Likewise.
11232 * linux-x86-low.c (update_debug_registers_callback):
11233 Use lwp_is_stopped.
11234 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11237 2015-03-24 Gary Benson <gbenson@redhat.com>
11239 * linux-low.h (linux_stop_lwp): Remove declaration.
11241 2015-03-24 Gary Benson <gbenson@redhat.com>
11243 * linux-low.h: Include nat/linux-nat.h.
11244 * linux-low.c (iterate_over_lwps_args): New structure.
11245 (iterate_over_lwps_filter): New function.
11246 (iterate_over_lwps): Likewise.
11247 * linux-x86-low.c (update_debug_registers_callback):
11248 Update signature to what iterate_over_lwps expects.
11249 Remove PID check that iterate_over_lwps now performs.
11250 (x86_dr_low_set_addr): Use iterate_over_lwps.
11251 (x86_dr_low_set_control): Likewise.
11253 2015-03-24 Gary Benson <gbenson@redhat.com>
11255 * linux-x86-low.c (x86_debug_reg_state): New function.
11256 (x86_linux_prepare_to_resume): Use the above.
11258 2015-03-24 Gary Benson <gbenson@redhat.com>
11260 * linux-low.c (current_lwp_ptid): New function.
11261 * linux-x86-low.c: Include nat/linux-nat.h.
11262 (x86_dr_low_get_addr): Use current_lwp_ptid.
11263 (x86_dr_low_get_control): Likewise.
11264 (x86_dr_low_get_status): Likewise.
11266 2015-03-20 Pedro Alves <palves@redhat.com>
11268 * tracepoint.c (cmd_qtstatus): Make "str" const.
11270 2015-03-20 Pedro Alves <palves@redhat.com>
11272 * server.c (handle_general_set): Make "req_str" const.
11274 2015-03-19 Pedro Alves <palves@redhat.com>
11276 * linux-low.c (linux_resume_one_lwp): Rename to ...
11277 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11278 instead call perror_with_name.
11279 (check_ptrace_stopped_lwp_gone): New function.
11280 (linux_resume_one_lwp): Reimplement as wrapper around
11281 linux_resume_one_lwp_throw that swallows errors if the LWP is
11284 2015-03-19 Pedro Alves <palves@redhat.com>
11286 * linux-low.c (count_events_callback, select_event_lwp_callback):
11287 No longer check whether the thread has resume_stop as last resume
11290 2015-03-19 Pedro Alves <palves@redhat.com>
11292 * linux-low.c (count_events_callback, select_event_lwp_callback):
11293 Use the lwp's status_pending_p field, not the thread's.
11295 2015-03-19 Pedro Alves <palves@redhat.com>
11297 * linux-low.c (select_event_lwp_callback): Update comments to
11298 no longer mention SIGTRAP.
11300 2015-03-18 Gary Benson <gbenson@redhat.com>
11302 * server.c (handle_query): Do not report vFile:fstat as supported.
11304 2015-03-11 Gary Benson <gbenson@redhat.com>
11306 * hostio.c (sys/types.h): New include.
11307 (sys/stat.h): Likewise.
11308 (common-remote-fileio.h): Likewise.
11309 (handle_fstat): New function.
11310 (handle_vFile): Handle vFile:fstat packets.
11312 2015-03-11 Gary Benson <gbenson@redhat.com>
11314 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11315 struct stat.st_blocks and struct stat.st_blksize.
11316 * configure: Regenerate.
11317 * config.in: Likewise.
11318 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11319 (OBS): Add common-remote-fileio.o.
11320 (common-remote-fileio.o): New rule.
11322 2015-03-09 Pedro Alves <palves@redhat.com>
11324 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11325 'struct sockaddr' pointer in 'accept' call.
11327 2015-03-09 Pedro Alves <palves@redhat.com>
11330 2015-03-07 Pedro Alves <palves@redhat.com>
11331 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11332 or <winsock2.h> here. Instead include "gdb_socket.h".
11333 (remote_open): Use union gdb_sockaddr_u.
11334 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11335 or <winsock2.h> here. Instead include "gdb_socket.h".
11336 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11337 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11339 (init_named_socket, gdb_agent_helper_thread): Use union
11342 2015-03-07 Pedro Alves <palves@redhat.com>
11344 * configure.ac (build_warnings): Move
11345 -Wdeclaration-after-statement to the C-specific set.
11346 * configure: Regenerate.
11348 2015-03-07 Pedro Alves <palves@redhat.com>
11350 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11351 or <winsock2.h> here. Instead include "gdb_socket.h".
11352 (remote_open): Use union gdb_sockaddr_u.
11353 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11354 or <winsock2.h> here. Instead include "gdb_socket.h".
11355 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11356 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11358 (init_named_socket, gdb_agent_helper_thread): Use union
11361 2015-03-07 Pedro Alves <palves@redhat.com>
11363 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11366 2015-03-06 Yao Qi <yao.qi@linaro.org>
11368 * linux-aarch64-low.c (aarch64_insert_point): Use
11369 show_debug_regs as a boolean.
11370 (aarch64_remove_point): Likewise.
11372 2015-03-05 Pedro Alves <palves@redhat.com>
11374 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11375 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11376 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11377 * nto-low.c (nto_target_ops): Likewise.
11378 * spu-low.c (spu_target_ops): Likewise.
11379 * win32-low.c (win32_target_ops): Likewise.
11381 2015-03-04 Pedro Alves <palves@redhat.com>
11383 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11384 Decide whether a breakpoint triggered based on the SIGTRAP's
11386 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11387 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11388 (linux_low_filter_event): Check for breakpoints before checking
11390 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11392 (linux_stopped_by_sw_breakpoint)
11393 (linux_supports_stopped_by_sw_breakpoint)
11394 (linux_stopped_by_hw_breakpoint)
11395 (linux_supports_stopped_by_hw_breakpoint): New functions.
11396 (linux_target_ops): Install new target methods.
11398 2015-03-04 Pedro Alves <palves@redhat.com>
11400 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11401 * server.c (swbreak_feature, hwbreak_feature): New globals.
11402 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11403 (captured_main): Clear swbreak_feature and hwbreak_feature.
11404 * server.h (swbreak_feature, hwbreak_feature): Declare.
11405 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11406 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11407 supports_stopped_by_hw_breakpoint>: New fields.
11408 (target_supports_stopped_by_sw_breakpoint)
11409 (target_stopped_by_sw_breakpoint)
11410 (target_supports_stopped_by_hw_breakpoint)
11411 (target_stopped_by_hw_breakpoint): Declare.
11413 2015-03-04 Pedro Alves <palves@redhat.com>
11415 enum lwp_stop_reason -> enum target_stop_reason
11416 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11417 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11418 (linux_wait_1, stuck_in_jump_pad_callback)
11419 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11420 (linux_stopped_by_watchpoint):
11421 * linux-low.h (enum lwp_stop_reason): Delete.
11422 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11423 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11425 2015-03-04 Yao Qi <yao.qi@linaro.org>
11427 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11429 2015-03-03 Gary Benson <gbenson@redhat.com>
11431 * hostio.c (handle_vFile): Fix prefix lengths.
11433 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11435 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11438 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11440 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11441 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11442 (clean): Add "rm -f" for above C files.
11443 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11444 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11445 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11446 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11447 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11448 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11449 (init_registers_s390x_vx_linux64)
11450 (init_registers_s390x_tevx_linux64)
11451 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11452 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11454 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11455 (s390_store_vxrs_high): New functions.
11456 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11458 (s390_arch_setup): Add logic for selecting one of the new target
11459 descriptions. Activate the new vector regsets if applicable.
11460 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11461 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11462 and init_registers_s390x_tevx_linux64.
11464 2015-03-01 Pedro Alves <palves@redhat.com>
11466 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11469 2015-02-27 Pedro Alves <palves@redhat.com>
11471 * linux-x86-low.c (u_debugreg_offset): New function.
11472 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11474 2015-02-27 Pedro Alves <palves@redhat.com>
11476 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11477 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11478 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11479 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11480 (ps_lsetfpregs, ps_getpid)
11481 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11482 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11483 (ps_lsetxregs, ps_plog): Declare.
11485 2015-02-27 Pedro Alves <palves@redhat.com>
11487 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11488 IP_AGENT_EXPORT_FUNC.
11489 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11490 IP_AGENT_EXPORT_FUNC.
11491 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11492 (IP_AGENT_EXPORT): Delete.
11493 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11494 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11495 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11496 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11497 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11498 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11499 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11500 (traceframe_read_count, traceframe_write_count)
11501 (traceframes_created, trace_state_variables, get_raw_reg)
11502 (get_trace_state_variable_value, set_trace_state_variable_value)
11503 (ust_loaded, helper_thread_id, cmd_buf): Use
11504 IPA_SYM_EXPORTED_NAME.
11505 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11506 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11507 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11508 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11509 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11510 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11511 EXTERN_C_PUSH/EXTERN_C_POP.
11512 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11513 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11514 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11515 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11516 (traceframe_write_count, traceframe_read_count)
11517 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11518 (about_to_request_buffer_space, get_trace_state_variable_value)
11519 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11520 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11521 EXTERN_C_PUSH/EXTERN_C_POP.
11522 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11523 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11524 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11525 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11526 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11527 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11528 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11529 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11531 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11532 (IP_AGENT_EXPORT_VAR_DECL): Define.
11533 (tracing): Declare.
11534 (gdb_agent_get_raw_reg): Declare.
11536 2015-02-27 Tom Tromey <tromey@redhat.com>
11537 Pedro Alves <palves@redhat.com>
11539 Rename symbols whose names are reserved C++ keywords throughout.
11541 2015-02-27 Pedro Alves <palves@redhat.com>
11543 * Makefile.in (COMPILER): New, get it from autoconf.
11544 (CXX): Get from autoconf instead.
11545 (COMPILE.pre): Use COMPILER.
11546 (CC-LD): Rename to ...
11547 (CC_LD): ... this. Use COMPILER.
11548 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11549 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11550 * acinclude.m4: Include build-with-cxx.m4.
11551 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11552 Disable -Werror by default if building in C++ mode.
11553 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11554 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11555 the C++ compiler. Save/restore CXXFLAGS too.
11556 * configure: Regenerate.
11558 2015-02-27 Pedro Alves <palves@redhat.com>
11560 * acinclude.m4: Include libiberty.m4.
11561 * configure.ac: Call libiberty_INIT.
11562 * config.in, configure: Regenerate.
11564 2015-02-26 Pedro Alves <palves@redhat.com>
11566 * linux-low.c (linux_wait_1): When incrementing the PC past a
11567 program breakpoint always use the_low_target.breakpoint_len as
11568 increment, rather than the maximum between that and
11569 the_low_target.decr_pc_after_break.
11571 2015-02-23 Pedro Alves <palves@redhat.com>
11573 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11574 thread was doing a step-over; always adjust the PC if
11575 we stepped over a permanent breakpoint.
11576 (linux_wait_1): If we stepped over breakpoint that was on top of a
11577 permanent breakpoint, manually advance the PC past it.
11579 2015-02-23 Pedro Alves <palves@redhat.com>
11581 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11583 (x86_fill_gregset, x86_store_gregset): Use it when handling
11586 2015-02-20 Pedro Alves <palves@redhat.com>
11588 * thread-db.c: Include "nat/linux-procfs.h".
11589 (thread_db_init): Skip listing new threads if the kernel supports
11590 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11592 2015-02-20 Pedro Alves <palves@redhat.com>
11594 * linux-low.c (status_pending_p_callback): Use ptid_match.
11596 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11598 PR breakpoints/16812
11599 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11600 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11601 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11603 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11605 PR breakpoints/15956
11606 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11608 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11610 * linux-low.c (linux_low_btrace_conf): Print size.
11611 * server.c (handle_btrace_conf_general_set): New.
11612 (hanle_general_set): Call handle_btrace_conf_general_set.
11613 (handle_query): Report Qbtrace-conf:bts:size as supported.
11615 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11617 * linux-low.c (linux_low_enable_btrace): Update parameters.
11618 (linux_low_btrace_conf): New.
11619 (linux_target_ops)<to_btrace_conf>: Initialize.
11620 * server.c (current_btrace_conf): New.
11621 (handle_btrace_enable): Rename to ...
11622 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11623 to target_enable_btrace. Update comment. Update users.
11624 (handle_qxfer_btrace_conf): New.
11625 (qxfer_packets): Add btrace-conf entry.
11626 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11627 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11628 (target_ops)<read_btrace_conf>: New.
11629 (target_enable_btrace): Update parameters.
11630 (target_read_btrace_conf): New.
11632 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11634 * server.c (handle_btrace_general_set): Remove call to
11635 target_supports_btrace.
11636 (supported_btrace_packets): New.
11637 (handle_query): Call supported_btrace_packets.
11638 * target.h: include btrace-common.h.
11639 (btrace_target_info): Removed.
11640 (supports_btrace, target_supports_btrace): Update parameters.
11642 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11644 * Makefile.in (SFILES): Add common/btrace-common.c.
11645 (OBS): Add common/btrace-common.o.
11646 (btrace-common.o): Add build rules.
11647 * linux-low: Include btrace-common.h.
11648 (linux_low_read_btrace): Use struct btrace_data. Call
11649 btrace_data_init and btrace_data_fini.
11651 2015-02-06 Pedro Alves <palves@redhat.com>
11653 * thread-db.c (find_new_threads_callback): Add debug output.
11655 2015-02-04 Pedro Alves <palves@redhat.com>
11657 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11658 (resume_stopped_resumed_lwps): New function.
11659 (linux_wait_for_event_filtered): Use it.
11661 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11663 * Makefile.in (SFILES): Add linux-personality.c.
11664 (linux-personality.o): New rule.
11665 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11666 list of objects to be built.
11667 * linux-low.c: Include nat/linux-personality.h.
11668 (linux_create_inferior): Remove code to disable address space
11669 randomization (moved to ../nat/linux-personality.c). Create
11670 cleanup to disable address space randomization.
11672 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11674 * Makefile.in (posix-strerror.o): New rule.
11675 (mingw-strerror.o): Likewise.
11676 * configure: Regenerated.
11677 * configure.ac: Source file ../common/common.host. Initialize new
11678 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11680 2015-01-14 Yao Qi <yao@codesourcery.com>
11682 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11683 (ppc-linux.o): New rule.
11684 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11685 * configure.ac: AC_CHECK_FUNCS(getauxval).
11686 * config.in: Re-generated.
11687 * configure: Re-generated.
11688 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11689 ppc64_64bit_inferior_p
11691 2015-01-14 Yao Qi <yao@codesourcery.com>
11693 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11694 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11695 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11696 (PT_ORIG_R3, PT_TRAP): Likewise.
11697 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11698 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11699 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11701 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11703 * i387-fp.c (i387_cache_to_xsave): In look over
11704 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11705 zmmh_low_space field by use of zmmh_high_space.
11707 2015-01-09 Pedro Alves <palves@redhat.com>
11709 * linux-low.c (step_over_bkpt): Move higher up in the file.
11710 (handle_extended_wait): Don't store the stop_pc here.
11711 (get_stop_pc): Adjust comments and rename to ...
11712 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11713 stopped for a software breakpoint or hardware breakpoint.
11714 (thread_still_has_status_pending_p): New function.
11715 (status_pending_p_callback): Use
11716 thread_still_has_status_pending_p. If the event is no longer
11717 interesting, resume the LWP.
11718 (handle_tracepoints): Add assert.
11719 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11720 (wstatus_maybe_breakpoint): New function.
11721 (cancel_breakpoint): Delete function.
11722 (check_stopped_by_watchpoint): New function, factored out from
11723 linux_low_filter_event.
11724 (lp_status_maybe_breakpoint): Delete function.
11725 (linux_low_filter_event): Remove filter_ptid argument.
11726 Leave thread group exits pending here. Store the LWP's stop PC.
11727 Always leave events pending.
11728 (linux_wait_for_event_filtered): Pull all events out of the
11729 kernel, and leave them all pending.
11730 (count_events_callback, select_event_lwp_callback): Consider all
11732 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11733 (select_event_lwp): Only give preference to the stepping LWP in
11734 all-stop mode. Adjust comments.
11735 (ignore_event): New function.
11736 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11737 references to cancel_breakpoints. Adjust to renames. Also give
11738 equal priority to all LWPs that have had events in non-stop mode.
11739 If reporting a software breakpoint event, unadjust the LWP's PC.
11740 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11741 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11743 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11744 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11745 (linux_stopped_by_watchpoint): Adjust.
11746 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11747 * linux-low.h (enum lwp_stop_reason): New.
11748 (struct lwp_info) <stop_pc>: Adjust comment.
11749 <stopped_by_watchpoint>: Delete field.
11750 <stop_reason>: New field.
11751 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11752 * mem-break.c (software_breakpoint_inserted_here)
11753 (hardware_breakpoint_inserted_here): New function.
11754 * mem-break.h (software_breakpoint_inserted_here)
11755 (hardware_breakpoint_inserted_here): Declare.
11756 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11757 (cancel_breakpoints): Delete.
11758 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11759 (upload_fast_traceframes): Remove references to
11760 cancel_breakpoints.
11762 2015-01-09 Pedro Alves <palves@redhat.com>
11764 * thread-db.c (find_new_threads_callback): Ignore thread if the
11765 kernel thread ID is -1.
11767 2015-01-09 Pedro Alves <palves@redhat.com>
11769 * linux-low.c (linux_attach_fail_reason_string): Move to
11770 nat/linux-ptrace.c, and rename.
11771 (linux_attach_lwp): Update comment.
11772 (attach_proc_task_lwp_callback): New function.
11773 (linux_attach): Adjust to rename and use
11774 linux_proc_attach_tgid_threads.
11775 (linux_attach_fail_reason_string): Delete declaration.
11777 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11779 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11780 * server.c (gdbserver_version): Likewise.
11782 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11784 * remote-utils.c: Include ctype.h.
11785 (input_interrupt): Explicitly handle the case when the char
11786 received is the NUL byte. Improve the printing of non-ASCII
11789 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11791 * linux-low.c (linux_low_filter_event): Update call to
11792 linux_enable_event_reporting following the addition of
11793 a new parameter to that function.
11795 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11798 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11799 (AARCH64_FPCR_REGNO): Likewise.
11800 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
11801 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
11802 (aarch64_store_fpregset): Likewise.
11804 2014-12-15 Joel Brobecker <brobecker@adacore.com>
11806 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
11807 Remove FIXME comment about assumption about N.
11809 2014-12-13 Joel Brobecker <brobecker@adacore.com>
11811 * configure.ac: If large-file support is disabled in GDBserver,
11812 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
11813 * configure: Regenerate.
11815 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11817 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
11818 warning upon ENODATA from ptrace.
11819 * linux-s390-low.c (s390_store_tdb): New.
11820 (s390_regsets): Add regset for NT_S390_TDB.
11822 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11824 * linux-low.c (regsets_store_inferior_registers): Skip regsets
11825 without a fill_function.
11826 * linux-s390-low.c (s390_fill_last_break): Remove.
11827 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
11828 (s390_arch_setup): Use regset's size instead of fill_function for
11829 loop end condition.
11831 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11833 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
11834 the regset's store function when ptrace returned an error.
11835 * regcache.c (get_thread_regcache): Invalidate register cache
11836 before fetching inferior's registers.
11838 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
11840 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
11841 while-loop as for-loop.
11842 (regsets_store_inferior_registers): Likewise.
11844 2014-11-28 Yao Qi <yao@codesourcery.com>
11846 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
11847 * config.in, configure: Re-generate.
11848 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
11851 2014-11-21 Yao Qi <yao@codesourcery.com>
11853 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
11854 (AC_CHECK_HEADERS): Remove malloc.h.
11855 * configure: Re-generated.
11856 * config.in: Re-generated.
11857 * server.h: Don't include alloca.h and malloc.h.
11858 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
11859 Don't include malloc.h.
11861 2014-11-17 Joel Brobecker <brobecker@adacore.com>
11863 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
11864 corresponding ERRNO check in same block.
11866 2014-11-12 Pedro Alves <palves@redhat.com>
11868 * server.c (cont_thread): Update comment.
11869 (start_inferior, attach_inferior): No longer clear cont_thread.
11870 (handle_v_cont): No longer set cont_thread.
11871 (captured_main): Clear cont_thread each time a GDB connects.
11873 2014-11-12 Pedro Alves <palves@redhat.com>
11875 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
11876 thread, and don't resume all threads if the Hc thread has exited.
11878 2014-11-12 Pedro Alves <palves@redhat.com>
11880 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
11881 the process group instead of to a specific LWP.
11883 2014-10-15 Pedro Alves <palves@redhat.com>
11886 * win32-arm-low.c (arm_set_thread_context): Remove current_event
11888 (arm_set_thread_context): Delete.
11889 (the_low_target): Adjust.
11890 * win32-i386-low.c (debug_registers_changed)
11891 (debug_registers_used): Delete.
11892 (update_debug_registers_callback): New function.
11893 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
11894 needing to update their debug registers.
11895 (win32_get_current_dr): New function.
11896 (x86_dr_low_get_addr, x86_dr_low_get_control)
11897 (x86_dr_low_get_status): Fetch the debug register from the thread
11899 (i386_initial_stuff): Adjust.
11900 (i386_get_thread_context): Remove current_event parameter. Don't
11901 clear debug_registers_changed nor copy DR values to
11903 (i386_set_thread_context): Delete.
11904 (i386_prepare_to_resume): New function.
11905 (i386_thread_added): Mark the thread as needing to update irs
11907 (the_low_target): Remove i386_set_thread_context and install
11908 i386_prepare_to_resume.
11909 * win32-low.c (win32_get_thread_context): Adjust.
11910 (win32_set_thread_context): Use SetThreadContext
11912 (win32_prepare_to_resume): New function.
11913 (win32_require_context): New function, factored out from ...
11914 (thread_rec): ... this.
11915 (continue_one_thread): Call win32_prepare_to_resume on each thread
11916 we're about to continue.
11917 (win32_resume): Call win32_prepare_to_resume on the event thread.
11918 * win32-low.h (struct win32_thread_info)
11919 <debug_registers_changed>: New field.
11920 (struct win32_target_ops): Change prototype of set_thread_context,
11921 delete set_thread_context and add prepare_to_resume.
11922 (win32_require_context): New declaration.
11924 2014-10-08 Gary Benson <gbenson@redhat.com>
11926 * server.h: Do not include common-exceptions.h.
11928 2014-10-08 Gary Benson <gbenson@redhat.com>
11930 * server.h: Do not include cleanups.h.
11932 2014-09-30 James Hogan <james.hogan@imgtec.com>
11934 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
11935 mips64-dsp-linux.c.
11937 2014-09-23 Yao Qi <yao@codesourcery.com>
11939 * linux-low.c (lp_status_maybe_breakpoint): New function.
11940 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
11941 (count_events_callback): Likewise.
11942 (select_event_lwp_callback): Likewise.
11943 (cancel_breakpoints_callback): Likewise.
11945 2014-09-19 Don Breazeal <donb@codesourcery.com>
11947 * linux-low.c (handle_extended_wait): Call
11948 linux_ptrace_get_extended_event.
11949 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
11950 linux_is_extended_waitstatus.
11952 2014-09-16 Joel Brobecker <brobecker@adacore.com>
11954 * Makefile.in (CPPFLAGS): Define.
11955 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
11956 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
11958 2014-09-16 Gary Benson <gbenson@redhat.com>
11960 * inferiors.h (current_inferior): Renamed as...
11961 (current_thread): New variable. All uses updated.
11962 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
11963 (maybe_move_out_of_jump_pad): Likewise.
11964 (cancel_breakpoint): Likewise.
11965 (linux_low_filter_event): Likewise.
11966 (wait_for_sigstop): Likewise.
11967 (linux_resume_one_lwp): Likewise.
11968 (need_step_over_p): Likewise.
11969 (start_step_over): Likewise.
11970 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
11971 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
11972 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
11973 and save_inferior as saved_thread.
11974 * regcache.c (get_thread_regcache): Renamed saved_inferior as
11976 (regcache_invalidate_thread): Likewise.
11977 * remote-utils.c (prepare_resume_reply): Likewise.
11978 * thread-db.c (thread_db_get_tls_address): Likewise.
11979 (disable_thread_event_reporting): Likewise.
11980 (remove_thread_event_breakpoints): Likewise.
11981 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
11983 * target.h (set_desired_inferior): Renamed as...
11984 (set_desired_thread): New declaration. All uses updated.
11985 * server.c (myresume): Updated comment to reference thread instead
11987 (handle_serial_event): Likewise.
11988 (handle_target_event): Likewise.
11990 2014-09-12 Tom Tromey <tromey@redhat.com>
11991 Gary Benson <gbenson@redhat.com>
11993 * regcache.h: Include common-regcache.h.
11994 (regcache_read_pc): Don't declare.
11995 * regcache.c (get_thread_regcache_for_ptid): New function.
11997 2014-09-11 Tom Tromey <tromey@redhat.com>
11998 Gary Benson <gbenson@redhat.com>
12000 * symbol.c: New file.
12001 * Makefile.in (SFILES): Add symbol.c.
12002 (OBS): Add symbol.o.
12004 2014-09-11 Gary Benson <gbenson@redhat.com>
12006 * target.c (target_stop_ptid, target_continue_ptid): New
12009 2014-09-11 Tom Tromey <tromey@redhat.com>
12010 Gary Benson <gbenson@redhat.com>
12012 * target.h: Include target/target.h.
12013 * target.c (target_read_memory, target_read_uint32)
12014 (target_write_memory): New functions.
12016 2014-09-11 Gary Benson <gbenson@redhat.com>
12018 * server.h (debug_hw_points): Don't declare.
12019 * server.c (debug_hw_points): Don't define. Replace all uses
12020 with show_debug_regs.
12021 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12022 all uses with show_debug_regs.
12024 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12026 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12027 endianness into account.
12028 (ppc_supply_ptrace_register): Likewise.
12030 2014-09-03 James Hogan <james.hogan@imgtec.com>
12032 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12033 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12035 2014-09-03 Gary Benson <gbenson@redhat.com>
12037 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12038 ALL_DEBUG_ADDRESS_REGISTERS.
12040 2014-09-02 Gary Benson <gbenson@redhat.com>
12042 * i386-low.h: Renamed as...
12043 * x86-low.h: New file. All type, function and variable name
12044 prefixes changed from "i386_" to "x86_". All references updated.
12045 * i386-low.c: Renamed as...
12046 * x86-low.c: New file. All type, function and variable name
12047 prefixes changed from "i386_" to "x86_". All references updated.
12049 2014-09-02 Gary Benson <gbenson@redhat.com>
12051 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12052 (x86_linux_new_thread): Likewise.
12054 2014-08-29 Gary Benson <gbenson@redhat.com>
12056 * server.h (setjmp.h): Do not include.
12057 (toplevel): Do not declare.
12058 (common-exceptions.h): Include.
12059 (cleanups.h): Likewise.
12060 * server.c (toplevel): Do not define.
12061 (exit_code): New static global.
12062 (detach_or_kill_for_exit_cleanup): New function.
12063 (main): New function. Original main renamed to...
12064 (captured_main): New function.
12065 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12067 2014-08-29 Gary Benson <gbenson@redhat.com>
12069 * Makefile.in (SFILES): Add common/common-exceptions.c.
12070 (OBS): Add common-exceptions.o.
12071 (common-exceptions.o): New rule.
12072 * utils.c (prepare_to_throw_exception): New function.
12074 2014-08-29 Gary Benson <gbenson@redhat.com>
12076 * config.in: Regenerate.
12077 * configure: Likewise.
12079 2014-08-29 Gary Benson <gbenson@redhat.com>
12081 * Makefile.in (SFILES): Add common/cleanups.c.
12083 (cleanups.o): New rule.
12085 2014-08-29 Gary Benson <gbenson@redhat.com>
12087 * utils.c (internal_vwarning): New function.
12089 2014-08-28 Gary Benson <gbenson@redhat.com>
12091 * utils.h (fatal): Remove declaration.
12092 * utils.c (fatal): Remove function.
12094 2014-08-28 Gary Benson <gbenson@redhat.com>
12096 * tracepoint.c (gdb_agent_init): Replace fatal with
12098 (initialize_tracepoint): Likewise.
12100 2014-08-28 Gary Benson <gbenson@redhat.com>
12102 * remote-utils.c (remote_prepare): Replace fatal with error.
12104 2014-08-28 Gary Benson <gbenson@redhat.com>
12106 * linux-low.c (linux_async): Replace fatal with warning.
12107 Tidy up and return.
12108 (linux_start_non_stop): Return -1 if linux_async failed.
12110 2014-08-28 Gary Benson <gbenson@redhat.com>
12112 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12114 (i386_dr_low_get_addr): Remove vague comment.
12115 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12118 2014-08-28 Gary Benson <gbenson@redhat.com>
12120 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12121 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12123 (linux_resume_one_lwp): Likewise.
12124 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12126 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12127 with internal_error.
12128 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12129 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12130 (find_register_by_name): Replace fatal with internal_error.
12131 (find_regno): Likewise.
12132 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12133 * thread-db.c (thread_db_create_event): Likewise.
12134 (thread_db_load_search): Likewise.
12135 (try_thread_db_load_1): Likewise.
12136 * tracepoint.c (get_jump_space_head): Replace fatal with
12138 (claim_trampoline_space): Likewise.
12139 (have_fast_tracepoint_trampoline_buffer): Likewise.
12140 (cmd_qtstart): Likewise.
12141 (stop_tracing): Likewise.
12142 (fast_tracepoint_collecting): Likewise.
12143 (target_malloc): Likewise.
12144 (download_tracepoint): Likewise.
12145 (download_trace_state_variables): Replace check with gdb_assert.
12146 (upload_fast_traceframes): Replace fatal with internal_error.
12148 2014-08-19 Tom Tromey <tromey@redhat.com>
12149 Gary Benson <gbenson@redhat.com>
12151 * Makefile.in (SFILES): Add common/common-debug.c.
12152 (OBS): Add common-debug.o.
12153 (common-debug.o): New rule.
12154 * debug.h (debug_printf): Don't declare.
12155 * debug.c (debug_printf): Renamed and rewritten as...
12156 (debug_vprintf): New function.
12158 2014-08-19 Gary Benson <gbenson@redhat.com>
12160 * utils.h: Do not include print-utils.h.
12162 2014-08-19 Tom Tromey <tromey@redhat.com>
12163 Gary Benson <gbenson@redhat.com>
12165 * server.h: Add static assertion.
12166 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12168 2014-08-19 Tom Tromey <tromey@redhat.com>
12169 Gary Benson <gbenson@redhat.com>
12171 * Makefile.in (SFILES): Add common/errors.c.
12172 (OBS): Add errors.o.
12173 (IPA_OBS): Add errors-ipa.o.
12174 (errors.o): New rule.
12175 (errors-ipa.o): Likewise.
12176 * utils.h (perror_with_name, error, warning): Don't declare.
12177 * utils.c (warning): Renamed and rewritten as...
12178 (vwarning): New function.
12179 (error): Renamed and rewritten as...
12180 (verror): New function.
12181 (internal_error): Renamed and rewritten as...
12182 (internal_verror): New function.
12184 2014-08-07 Gary Benson <gbenson@redhat.com>
12186 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12187 * configure: Regenerate.
12188 * config.in: Likewise.
12189 * server.h: Do not include errno.h.
12190 * event-loop.c: Likewise.
12191 * hostio-errno.c: Likewise.
12192 * linux-low.c: Likewise.
12193 * remote-utils.c: Likewise.
12194 * spu-low.c: Likewise.
12195 * utils.c: Likewise.
12196 * gdbreplay.c: Unconditionally include errno.h.
12198 2014-08-07 Gary Benson <gbenson@redhat.com>
12200 * server.h: Do not include string.h.
12201 * event-loop.c: Likewise.
12202 * linux-low.c: Likewise.
12203 * regcache.c: Likewise.
12204 * remote-utils.c: Likewise.
12205 * spu-low.c: Likewise.
12206 * utils.c: Likewise.
12208 2014-08-07 Gary Benson <gbenson@redhat.com>
12210 * server.h: Do not include gdb_assert.h.
12212 2014-08-07 Gary Benson <gbenson@redhat.com>
12214 * server.h: Do not include common-utils.h.
12216 2014-08-07 Gary Benson <gbenson@redhat.com>
12218 * server.h: Do not include ptid.h.
12219 * notif.h: Likewise.
12221 2014-08-07 Gary Benson <gbenson@redhat.com>
12223 * server.h: Do not include gdb_locale.h.
12225 2014-08-07 Gary Benson <gbenson@redhat.com>
12227 * server.h: Do not include gdb/signals.h.
12228 * win32-low.c: Likewise.
12230 2014-08-07 Gary Benson <gbenson@redhat.com>
12232 * server.h: Do not include pathmax.h.
12234 2014-08-07 Gary Benson <gbenson@redhat.com>
12236 * server.h: Do not include libiberty.h.
12237 * linux-bfin-low.c: Likewise.
12239 2014-08-07 Gary Benson <gbenson@redhat.com>
12241 * server.h: Do not include ansidecl.h.
12243 2014-08-07 Gary Benson <gbenson@redhat.com>
12245 * linux-x86-low.c: Do not include stddef.h.
12246 * lynx-ppc-low.c: Likewise.
12247 * tracepoint.c: Likewise.
12249 2014-08-07 Gary Benson <gbenson@redhat.com>
12251 * server.h: Do not include stdarg.h.
12252 * nto-low.c: Likewise.
12254 2014-08-07 Gary Benson <gbenson@redhat.com>
12256 * server.h: Do not include stdlib.h.
12257 * inferiors.c: Likewise.
12258 * linux-low.c: Likewise.
12259 * regcache.c: Likewise.
12260 * spu-low.c: Likewise.
12261 * tracepoint.c: Likewise.
12262 * utils.c: Likewise.
12264 2014-08-07 Gary Benson <gbenson@redhat.com>
12266 * server.h: Do not include stdio.h.
12267 * linux-low.c: Likewise.
12268 * remote-utils.c: Likewise.
12269 * spu-low.c: Likewise.
12270 * utils.c: Likewise.
12271 * wincecompat.c: Likewise.
12273 2014-08-06 Gary Benson <gbenson@redhat.com>
12275 * regcache.c (init_register_cache): Move conditionals inside if.
12277 2014-08-06 Gary Benson <gbenson@redhat.com>
12279 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12281 2014-07-31 Gary Benson <gbenson@redhat.com>
12283 * ax.h: Do not include server.h.
12284 * gdbthread.h: Likewise.
12285 * lynx-low.h: Likewise.
12286 * notif.h: Likewise.
12288 2014-07-30 Gary Benson <gbenson@redhat.com>
12290 * server.h: Include common-defs.h.
12291 Do not include config.h or build-gnulib-gdbserver/config.h.
12293 2014-07-30 Gary Benson <gbenson@redhat.com>
12295 * hostio-errno.c: Move server.h to top of includes list.
12296 * inferiors.c: Likewise.
12297 * linux-x86-low.c: Likewise.
12298 * notif.c: Include server.h.
12300 2014-07-24 Tom Tromey <tromey@redhat.com>
12301 Gary Benson <gbenson@redhat.com>
12303 * server.h (CORE_ADDR): Now unsigned.
12305 2014-07-16 Pedro Alves <palves@redhat.com>
12307 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12309 2014-07-15 Pedro Alves <palves@redhat.com>
12311 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12314 2014-07-11 Pedro Alves <palves@redhat.com>
12316 * linux-low.c (kill_wait_lwp): New function, based on
12317 kill_one_lwp_callback, but use my_waitpid directly.
12318 (kill_one_lwp_callback, linux_kill): Use it.
12320 2014-06-23 Pedro Alves <palves@redhat.com>
12322 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12323 before setting DR0..DR3.
12325 2014-06-20 Gary Benson <gbenson@redhat.com>
12327 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12328 * configure: Regenerated.
12329 * config.in: Likewise.
12331 2014-06-20 Gary Benson <gbenson@redhat.com>
12333 * Makefile.in (SFILES): Update locations for files moved
12334 from common to nat.
12335 (object file files): Reordered.
12337 2014-06-20 Gary Benson <gbenson@redhat.com>
12339 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12340 (i386_dr_low_set_addr): Likewise.
12341 (i386_dr_low_get_addr): Likewise.
12342 (i386_dr_low_can_set_control): Likewise.
12343 (i386_dr_low_set_control): Likewise.
12344 (i386_dr_low_get_control): Likewise.
12345 (i386_dr_low_get_status): Likewise.
12346 (i386_get_debug_register_length): Likewise.
12347 * linux-x86-low.c (i386_dr_low_set_addr):
12348 Changed signature. Made static.
12349 (i386_dr_low_get_addr): Likewise.
12350 (i386_dr_low_set_control): Likewise.
12351 (i386_dr_low_get_control): Likewise.
12352 (i386_dr_low_get_status): Likewise.
12353 (i386_dr_low): New global variable.
12354 * win32-i386-low.c (i386_dr_low_set_addr):
12355 Changed signature. Made static.
12356 (i386_dr_low_get_addr): Likewise.
12357 (i386_dr_low_set_control): Likewise.
12358 (i386_dr_low_get_control): Likewise.
12359 (i386_dr_low_get_status): Likewise.
12360 (i386_dr_low): New global variable.
12362 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12364 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12365 * Makefile.in (AR, AR_FLAGS): Define.
12366 * configure: Regenerate.
12368 2014-06-19 Gary Benson <gbenson@redhat.com>
12370 * Makefile.in (i386-dregs.o): New rule.
12371 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12372 * i386-low.c (target.h): Remove include.
12373 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12374 (DR_CONTROL_SHIFT): Likewise.
12375 (DR_CONTROL_SIZE): Likewise.
12376 (DR_RW_EXECUTE): Likewise.
12377 (DR_RW_WRITE): Likewise.
12378 (DR_RW_READ): Likewise.
12379 (DR_RW_IORW): Likewise.
12380 (DR_LEN_1): Likewise.
12381 (DR_LEN_2): Likewise.
12382 (DR_LEN_4): Likewise.
12383 (DR_LEN_8): Likewise.
12384 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12385 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12386 (DR_ENABLE_SIZE): Likewise.
12387 (DR_LOCAL_SLOWDOWN): Likewise.
12388 (DR_GLOBAL_SLOWDOWN): Likewise.
12389 (DR_CONTROL_RESERVED): Likewise.
12390 (I386_DR_CONTROL_MASK): Likewise.
12391 (I386_DR_VACANT): Likewise.
12392 (I386_DR_LOCAL_ENABLE): Likewise.
12393 (I386_DR_GLOBAL_ENABLE): Likewise.
12394 (I386_DR_DISABLE): Likewise.
12395 (I386_DR_SET_RW_LEN): Likewise.
12396 (I386_DR_GET_RW_LEN): Likewise.
12397 (I386_DR_WATCH_HIT): Likewise.
12398 (i386_wp_op_t): Likewise.
12399 (i386_show_dr): Likewise.
12400 (i386_length_and_rw_bits): Likewise.
12401 (i386_insert_aligned_watchpoint): Likewise.
12402 (i386_remove_aligned_watchpoint): Likewise.
12403 (i386_handle_nonaligned_watchpoint): Likewise.
12404 i386_update_inferior_debug_regs(): Likewise.
12405 (i386_dr_insert_watchpoint): Likewise.
12406 (i386_dr_remove_watchpoint): Likewise.
12407 (i386_dr_region_ok_for_watchpoint): Likewise.
12408 (i386_dr_stopped_data_address): Likewise.
12409 (i386_dr_stopped_by_watchpoint): Likewise.
12411 2014-06-19 Gary Benson <gbenson@redhat.com>
12413 * i386-low.c (i386_dr_show): Renamed to
12414 i386_show_dr and made static. All uses updated.
12415 (i386_dr_length_and_rw_bits): Renamed to
12416 i386_length_and_rw_bits and made static.
12418 (i386_dr_insert_aligned_watchpoint): Renamed to
12419 i386_insert_aligned_watchpoint and made static.
12421 (i386_dr_remove_aligned_watchpoint): Renamed to
12422 i386_remove_aligned_watchpoint and made static.
12424 (i386_dr_update_inferior_debug_regs): Renamed to
12425 i386_update_inferior_debug_regs and made static.
12428 2014-06-18 Gary Benson <gbenson@redhat.com>
12430 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12431 (i386_dr_low_can_set_control): Likewise.
12432 (i386_get_debug_register_length): Likewise.
12433 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12434 (i386_dr_low_can_set_control): Likewise.
12435 (i386_get_debug_register_length): Likewise.
12437 2014-06-17 Gary Benson <gbenson@redhat.com>
12439 * i386-low.h (i386-dregs.h): New include.
12440 (DR_FIRSTADDR): Now in i386-dregs.h.
12441 (DR_LASTADDR): Likewise.
12442 (DR_NADDR): Likewise.
12443 (DR_STATUS): Likewise.
12444 (DR_CONTROL): Likewise.
12445 (i386_debug_reg_state): Likewise.
12446 (i386_dr_insert_watchpoint): Likewise.
12447 (i386_dr_remove_watchpoint): Likewise.
12448 (i386_dr_region_ok_for_watchpoint): Likewise.
12449 (i386_dr_stopped_data_address): Likewise.
12450 (i386_dr_stopped_by_watchpoint): Likewise.
12451 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12453 2014-06-18 Gary Benson <gbenson@redhat.com>
12455 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12456 i386_dr_insert_watchpoint.
12457 (i386_low_remove_watchpoint): Renamed to
12458 i386_dr_remove_watchpoint.
12459 (i386_low_region_ok_for_watchpoint): Renamed to
12460 i386_dr_region_ok_for_watchpoint.
12461 (i386_low_stopped_data_address): Renamed to
12462 i386_dr_stopped_data_address.
12463 (i386_low_stopped_by_watchpoint): Renamed to
12464 i386_dr_stopped_by_watchpoint.
12465 * i386-low.c (i386_show_dr): Renamed to
12466 i386_dr_show and made nonstatic. All uses updated.
12467 (i386_length_and_rw_bits): Renamed to
12468 i386_dr_length_and_rw_bits and made nonstatic.
12470 (i386_insert_aligned_watchpoint): Renamed to
12471 i386_dr_insert_aligned_watchpoint and made nonstatic.
12473 (i386_remove_aligned_watchpoint): Renamed to
12474 i386_dr_remove_aligned_watchpoint and made nonstatic.
12476 (i386_update_inferior_debug_regs): Renamed to
12477 i386_dr_update_inferior_debug_regs and made nonstatic.
12479 (i386_low_insert_watchpoint): Renamed to
12480 i386_dr_insert_watchpoint. All uses updated.
12481 (i386_low_remove_watchpoint): Renamed to
12482 i386_dr_remove_watchpoint. All uses updated.
12483 (i386_low_region_ok_for_watchpoint): Renamed to
12484 i386_dr_region_ok_for_watchpoint. All uses updated.
12485 (i386_low_stopped_data_address): Renamed to
12486 i386_dr_stopped_data_address. All uses updated.
12487 (i386_low_stopped_by_watchpoint): Renamed to
12488 i386_dr_stopped_by_watchpoint. All uses updated.
12490 2014-06-18 Gary Benson <gbenson@redhat.com>
12492 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12493 (i386_dr_low_can_set_control): Likewise.
12494 (i386_insert_aligned_watchpoint): New check.
12496 2014-06-18 Gary Benson <gbenson@redhat.com>
12498 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12501 2014-06-18 Gary Benson <gbenson@redhat.com>
12503 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12504 instead of fatal and error.
12505 (i386_handle_nonaligned_watchpoint): Likewise.
12507 2014-06-18 Gary Benson <gbenson@redhat.com>
12509 * i386-low.c (i386_get_debug_register_length): New macro.
12510 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12511 (i386_show_dr): Use debug_printf instead of fprintf. Use
12512 phex to format values.
12514 2014-06-18 Gary Benson <gbenson@redhat.com>
12516 * i386-low.h: Comment changes.
12517 * i386-low.c: Likewise.
12519 2014-06-18 Gary Benson <gbenson@redhat.com>
12521 * i386-low.c: Whitespace changes.
12523 2014-06-12 Tom Tromey <tromey@redhat.com>
12525 * utils.c (freeargv): Remove.
12527 2014-06-12 Tom Tromey <tromey@redhat.com>
12529 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12530 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12531 (parse_debug_format_options): Likewise.
12532 (gdbserver_usage): Likewise.
12533 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12534 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12535 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12537 ($(LIBGNU)): Depend on libiberty.
12538 (all-lib): Recurse into all subdirs.
12539 (install-only): Invoke "install" target in subdirs.
12540 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12542 * configure: Rebuild.
12543 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12544 for vasprintf, vsnprintf, or gettimeofday.
12545 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12548 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12550 * development.sh: Delete.
12551 * Makefile.in (config.status): Adjust dependency on development.sh.
12552 * configure.ac: Adjust development.sh source call.
12553 * configure: Regenerate.
12555 2014-06-02 Pedro Alves <palves@redhat.com>
12557 * ax.c (gdb_free_agent_expr): New function.
12558 * ax.h (gdb_free_agent_expr): New declaration.
12559 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12561 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12563 (clear_breakpoint_conditions_and_commands): New function.
12564 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12565 (clear_breakpoint_conditions_and_commands): New declaration.
12567 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12569 * linux-aarch64-low.c (asm/ptrace.h): Include.
12571 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12573 Fix TLS access for -static -pthread.
12574 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12575 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12576 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12578 2014-05-20 Pedro Alves <palves@redhat.com>
12580 * linux-aarch64-low.c (aarch64_insert_point)
12581 (aarch64_remove_point): No longer check whether the type is
12582 supported here. Adjust to new interface.
12583 (the_low_target): Install aarch64_supports_z_point_type as
12584 supports_z_point_type method.
12585 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12586 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12587 instead of a Z packet char. Adjust.
12588 (arm_supports_z_point_type): New function.
12589 (arm_insert_point, arm_remove_point): Adjust to new interface.
12590 (the_low_target): Install arm_supports_z_point_type.
12591 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12592 (cris_insert_point, cris_remove_point): Adjust to new interface.
12593 Don't check whether the type is supported here.
12594 (the_low_target): Install cris_supports_z_point_type.
12595 * linux-low.c (linux_supports_z_point_type): New function.
12596 (linux_insert_point, linux_remove_point): Adjust to new interface.
12597 * linux-low.h (struct linux_target_ops) <insert_point,
12598 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12599 raw_breakpoint pointer parameter.
12600 <supports_z_point_type>: New method.
12601 * linux-mips-low.c (mips_supports_z_point_type): New function.
12602 (mips_insert_point, mips_remove_point): Adjust to new interface.
12603 Use mips_supports_z_point_type.
12604 (the_low_target): Install mips_supports_z_point_type.
12605 * linux-ppc-low.c (the_low_target): Install NULL as
12606 supports_z_point_type method.
12607 * linux-s390-low.c (the_low_target): Install NULL as
12608 supports_z_point_type method.
12609 * linux-sparc-low.c (the_low_target): Install NULL as
12610 supports_z_point_type method.
12611 * linux-x86-low.c (x86_supports_z_point_type): New function.
12612 (x86_insert_point): Adjust to new insert_point interface. Use
12613 insert_memory_breakpoint. Adjust to new
12614 i386_low_insert_watchpoint interface.
12615 (x86_remove_point): Adjust to remove_point interface. Use
12616 remove_memory_breakpoint. Adjust to new
12617 i386_low_remove_watchpoint interface.
12618 (the_low_target): Install x86_supports_z_point_type.
12619 * lynx-low.c (lynx_target_ops): Install NULL as
12620 supports_z_point_type callback.
12621 * nto-low.c (nto_supports_z_point_type): New.
12622 (nto_insert_point, nto_remove_point): Adjust to new interface.
12623 (nto_target_ops): Install nto_supports_z_point_type.
12624 * mem-break.c: Adjust intro comment.
12625 (struct raw_breakpoint) <raw_type, size>: New fields.
12626 <inserted>: Update comment.
12627 <shlib_disabled>: Delete field.
12628 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12629 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12630 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12631 (raw_bkpt_type_to_target_hw_bp_type): New function.
12632 (find_enabled_raw_code_breakpoint_at): New function.
12633 (find_raw_breakpoint_at): New type and size parameters. Use them.
12634 (insert_memory_breakpoint): New function, based off
12635 set_raw_breakpoint_at.
12636 (remove_memory_breakpoint): New function.
12637 (set_raw_breakpoint_at): Reimplement.
12638 (set_breakpoint): New, based on set_breakpoint_at.
12639 (set_breakpoint_at): Reimplement.
12640 (delete_raw_breakpoint): Go through the_target->remove_point
12641 instead of assuming memory breakpoints.
12642 (find_gdb_breakpoint_at): Delete.
12643 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12644 (find_gdb_breakpoint): New function.
12645 (set_gdb_breakpoint_at): Delete.
12646 (z_type_supported): New function.
12647 (set_gdb_breakpoint_1): New function, loosely based off
12648 set_gdb_breakpoint_at.
12649 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12650 (delete_gdb_breakpoint_at): Delete.
12651 (delete_gdb_breakpoint_1): New function, loosely based off
12652 delete_gdb_breakpoint_at.
12653 (delete_gdb_breakpoint): New function.
12654 (clear_gdb_breakpoint_conditions): Rename to ...
12655 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12657 (add_condition_to_breakpoint): Make static.
12658 (add_breakpoint_condition): Take a struct breakpoint pointer
12659 instead of an address. Adjust.
12660 (gdb_condition_true_at_breakpoint): Rename to ...
12661 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12663 (gdb_condition_true_at_breakpoint): Reimplement.
12664 (add_breakpoint_commands): Take a struct breakpoint pointer
12665 instead of an address. Adjust.
12666 (gdb_no_commands_at_breakpoint): Rename to ...
12667 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12668 parameter. Return true if no breakpoint was found. Change debug
12670 (gdb_no_commands_at_breakpoint): Reimplement.
12671 (run_breakpoint_commands): Rename to ...
12672 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12673 and change return type to boolean.
12674 (run_breakpoint_commands): New function.
12675 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12676 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12677 breakpoint. Go through the_target->remove_point instead of
12678 assuming memory breakpoint.
12679 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12680 software and hardware breakpoints.
12681 (reinsert_raw_breakpoint): Go through the_target->insert_point
12682 instead of assuming memory breakpoint.
12683 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12684 software and hardware breakpoints.
12685 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12686 Check both software and hardware breakpoints.
12687 (validate_inserted_breakpoint): Assert the breakpoint is a
12688 software breakpoint. Set the inserted flag to -1 instead of
12689 setting shlib_disabled.
12690 (delete_disabled_breakpoints): Adjust.
12691 (validate_breakpoints): Only validate software breakpoints.
12692 Adjust to inserted flag change.
12693 (check_mem_read, check_mem_write): Skip breakpoint types other
12694 than software breakpoints. Adjust to inserted flag change.
12695 * mem-break.h (enum raw_bkpt_type): New enum.
12696 (raw_breakpoint, struct process_info): Forward declare.
12697 (Z_packet_to_target_hw_bp_type): Delete declaration.
12698 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12699 (set_gdb_breakpoint, delete_gdb_breakpoint)
12700 (clear_breakpoint_conditions): New declarations.
12701 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12702 (breakpoint_inserted_here): Update comment.
12703 (add_breakpoint_condition, add_breakpoint_commands): Replace
12704 address parameter with a breakpoint pointer parameter.
12705 (gdb_breakpoint_here): Update comment.
12706 (delete_gdb_breakpoint_at): Delete.
12707 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12708 * server.c (process_point_options): Take a struct breakpoint
12709 pointer instead of an address. Adjust.
12710 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12711 delete_gdb_breakpoint.
12712 * spu-low.c (spu_target_ops): Install NULL as
12713 supports_z_point_type method.
12714 * target.h: Include mem-break.h.
12715 (struct target_ops) <prepare_to_access_memory>: Update comment.
12716 <supports_z_point_type>: New field.
12717 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12718 instead of a char. Also take a raw breakpoint pointer.
12719 * win32-arm-low.c (the_low_target): Install NULL as
12720 supports_z_point_type.
12721 * win32-i386-low.c (i386_supports_z_point_type): New function.
12722 (i386_insert_point, i386_remove_point): Adjust to new interface.
12723 (the_low_target): Install i386_supports_z_point_type.
12724 * win32-low.c (win32_supports_z_point_type): New function.
12725 (win32_insert_point, win32_remove_point): Adjust to new interface.
12726 (win32_target_ops): Install win32_supports_z_point_type.
12727 * win32-low.h (struct win32_target_ops):
12728 <supports_z_point_type>: New method.
12729 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12730 instead of a char. Also take a raw breakpoint pointer.
12732 2014-05-20 Pedro Alves <palves@redhat.com>
12734 * mem-break.h: Include break-common.h.
12735 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12736 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12737 (Z_packet_to_target_hw_bp_type): New declaration.
12738 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12739 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12740 (Z_PACKET_ACCESS_WP): Delete macros.
12741 (Z_packet_to_hw_type): Delete function.
12742 * i386-low.h: Don't include break-common.h here.
12743 (Z_packet_to_hw_type): Delete declaration.
12744 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12745 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12746 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12747 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12748 * linux-aarch64-low.c: Don't include break-common.h here.
12749 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12750 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12751 (Z_packet_to_target_hw_bp_type): Delete function.
12752 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12754 (mips_insert_point, mips_remove_point): Use
12755 Z_packet_to_target_hw_bp_type.
12757 2014-05-20 Pedro Alves <palves@redhat.com>
12759 * linux-aarch64-low.c: Include break-common.h.
12760 (enum target_point_type): Delete.
12761 (Z_packet_to_point_type): Rename to ...
12762 (Z_packet_to_target_hw_bp_type): ... this, and return a
12763 target_hw_bp_type instead.
12764 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12765 instead of an enum target_point_type.
12766 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12768 (aarch64_dr_state_insert_one_point)
12769 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12770 (aarch64_handle_aligned_watchpoint)
12771 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12772 Take an enum target_hw_bp_type instead of an enum
12774 (aarch64_supports_z_point_type): New function.
12775 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12776 use Z_packet_to_target_hw_bp_type.
12778 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12780 * configure.ac: Only use -Werror by default when DEVELOPMENT
12782 * configure: Regenerate.
12784 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12786 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12787 * linux-x86-low.c (X86_64_USER_REGS): New.
12788 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12790 2014-04-28 Yao Qi <yao@codesourcery.com>
12792 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12795 2014-04-25 Pedro Alves <palves@redhat.com>
12798 * linux-low.c (linux_attach_fail_reason_string): New function.
12799 (linux_attach_lwp): Delete.
12800 (linux_attach_lwp_1): Rename to ...
12801 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
12802 argument. Remove "initial" parameter. Return int instead of
12803 void. Don't error or warn here.
12804 (linux_attach): Adjust to call linux_attach_lwp. Call error on
12805 failure to attach to the tgid. Call warning when failing to
12807 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
12808 argument. Remove "initial" parameter. Return int instead of
12809 void. Don't error or warn here.
12810 (linux_attach_fail_reason_string): New declaration.
12811 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
12812 interface change. Use linux_attach_fail_reason_string.
12814 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
12815 Walfred Tedeschi <walfred.tedeschi@intel.com>
12817 * Makefile.in: Added rules to handle new files
12818 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
12819 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
12820 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
12821 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
12822 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
12823 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
12824 x32-avx512-linux.o.
12825 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
12826 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
12827 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
12828 i386/x32-avx512.xml.
12829 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
12830 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
12831 i386/x32-avx512-linux.xml.
12832 * i387-fp.c (num_avx512_k_registers): New constant for number
12834 (num_avx512_zmmh_low_registers): New constant for number of
12835 lower ZMM registers (0-15).
12836 (num_avx512_zmmh_high_registers): New constant for number of
12837 higher ZMM registers (16-31).
12838 (num_avx512_ymmh_registers): New contant for number of higher
12839 YMM registers (ymm16-31 added by avx521 on x86_64).
12840 (num_avx512_xmm_registers): New constant for number of higher
12841 XMM registers (xmm16-31 added by AVX512 on x86_64).
12842 (struct i387_xsave): Add space for AVX512 registers.
12843 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
12844 Add code to handle AVX512 registers.
12845 (i387_xsave_to_cache): Add code to handle AVX512 registers.
12846 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
12847 prototypei from generated file.
12848 (tdesc_amd64_avx512_linux): Likewise.
12849 (init_registers_x32_avx512_linux): Likewise.
12850 (tdesc_x32_avx512_linux): Likewise.
12851 (init_registers_i386_avx512_linux): Likewise.
12852 (tdesc_i386_avx512_linux): Likewise.
12853 (x86_64_regmap): Add AVX512 registers.
12854 (x86_linux_read_description): Add code to handle AVX512 XSTATE
12856 (initialize_low_arch): Add code to initialize AVX512 registers.
12858 2014-04-23 Pedro Alves <palves@redhat.com>
12860 * mem-break.c (find_gdb_breakpoint_at): Make static.
12861 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
12863 2014-04-23 Pedro Alves <palves@redhat.com>
12865 * i386-low.c: Don't include break-common.h here.
12866 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12867 prototype to take target_hw_bp_type as argument instead of a Z
12869 * i386-low.h: Include break-common.h here.
12870 (Z_packet_to_hw_type): Declare.
12871 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
12873 * linux-x86-low.c (x86_insert_point): Convert the packet number to
12874 a target_hw_bp_type before calling i386_low_insert_watchpoint.
12875 (x86_remove_point): Convert the packet number to a
12876 target_hw_bp_type before calling i386_low_remove_watchpoint.
12877 * win32-i386-low.c (i386_insert_point): Convert the packet number
12878 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
12879 (i386_remove_point): Convert the packet number to a
12880 target_hw_bp_type before calling i386_low_remove_watchpoint.
12882 2014-04-23 Pedro Alves <palves@redhat.com>
12884 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
12886 2014-04-10 Pedro Alves <palves@redhat.com>
12888 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
12889 Check if the condition or command is NULL before checking if the
12890 breakpoint is known. On success, return true.
12891 * mem-break.h (add_breakpoint_condition): Document return.
12892 (add_breakpoint_commands): Add describing comment.
12893 * server.c (skip_to_semicolon): New function.
12894 (process_point_options): Use it.
12896 2014-04-09 Pedro Alves <palves@redhat.com>
12898 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
12901 2014-02-27 Pedro Alves <palves@redhat.com>
12904 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
12906 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
12908 (last_thread_of_process_p): Take a PID argument instead of a
12910 (linux_wait_for_lwp): Delete.
12911 (num_lwps, check_zombie_leaders, not_stopped_callback): New
12913 (linux_low_filter_event): New function, party factored out from
12914 linux_wait_for_event.
12915 (linux_wait_for_event): Rename to ...
12916 (linux_wait_for_event_filtered): ... this. Add new filter ptid
12917 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
12918 sigsuspend. Check for zombie leaders.
12919 (linux_wait_for_event): Reimplement as wrapper around
12920 linux_wait_for_event_filtered.
12921 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
12922 a normal or signal exit is seen, it's the whole process exiting.
12923 (wait_for_sigstop): No longer a for_each_inferior callback.
12924 Rewrite on top of linux_wait_for_event_filtered.
12925 (stop_all_lwps): Call wait_for_sigstop directly.
12926 * server.c (resume, handle_target_event): Handle
12927 TARGET_WAITKIND_NO_RESUMED.
12929 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12931 * win32-low.c (psapi_get_dll_name,
12932 * win32_CreateToolhelp32Snapshot): Delete.
12933 (win32_CreateToolhelp32Snapshot, win32_Module32First)
12934 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
12936 (handle_load_dll): Add function description.
12937 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
12939 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12941 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
12943 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
12944 base address when calling win32_add_one_solib.
12945 (handle_load_dll): Delete local variable load_addr.
12946 Remove 0x1000 offset applied to DLL base address when calling
12947 win32_add_one_solib.
12948 (handle_unload_dll): Add comment.
12950 2014-02-26 Joel Brobecker <brobecker@adacore.com>
12952 * win32-low.c (win32_add_all_dlls): Renames
12953 win32_ensure_ntdll_loaded. Rewrite function documentation.
12954 Adjust implementation to always load all DLLs.
12955 Add 0x1000 offset to DLL base address when calling
12956 win32_add_one_solib.
12957 (child_initialization_done): New static global.
12958 (do_initial_child_stuff): Set child_initialization_done to
12959 zero during child initialization, and 1 after. Replace call
12960 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
12962 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
12963 (handle_unload_dll): Add function documentation.
12964 (get_child_debug_event): Ignore load and unload DLL events
12965 during child initialization.
12967 2014-02-20 Doug Evans <dje@google.com>
12969 Remove global all_lwps.
12970 * inferiors.h (ptid_of): Move here from linux-low.h.
12971 (pid_of, lwpid_of): Ditto.
12972 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
12973 parameter is a struct thread_info * now.
12974 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
12975 directly. Pass &all_threads to find_inferior instead of &all_lwps.
12976 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
12978 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
12979 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
12980 * linux-arm-low.c (update_registers_callback): Update, "entry"
12981 parameter is a struct thread_info * now.
12982 Fetch lwpid from current_inferior directly.
12983 (arm_insert_point): Pass &all_threads to find_inferior instead of
12985 (arm_remove_point): Ditto.
12986 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
12987 (arm_prepare_to_resume): Fetch pid from thread.
12988 (arm_read_description): Fetch lwpid from current_inferior directly.
12989 * linux-low.c (all_lwps): Delete.
12990 (delete_lwp): Delete call to remove_inferior.
12991 (handle_extended_wait): Fetch lwpid from thread.
12992 (add_lwp): Don't set lwp->entry.id. Remove call to
12993 add_inferior_to_list.
12994 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
12995 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
12996 (kill_one_lwp_callback): Ditto.
12997 (linux_kill): Don't dereference NULL pointer.
12998 Fetch ptid,lwpid from thread.
12999 (get_detach_signal): Fetch ptid from thread.
13000 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13001 Simplify call to regcache_invalidate_thread.
13002 (delete_lwp_callback): Update, "entry" parameter is a
13003 struct thread_info * now. Fetch pid from thread.
13004 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13005 (status_pending_p_callback): Update, "entry" parameter is a
13006 struct thread_info * now. Fetch ptid from thread.
13007 (find_lwp_pid): Update, "entry" parameter is a
13008 struct thread_info * now.
13009 (linux_wait_for_lwp): Fetch pid from thread.
13010 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13011 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13012 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13013 (dequeue_one_deferred_signal): Ditto.
13014 (cancel_breakpoint): Fetch ptid from current_inferior.
13015 (linux_wait_for_event): Pass &all_threads to find_inferior,
13016 not &all_lwps. Fetch ptid, lwpid from thread.
13017 (count_events_callback): Update, "entry" parameter is a
13018 struct thread_info * now.
13019 (select_singlestep_lwp_callback): Ditto.
13020 (select_event_lwp_callback): Ditto.
13021 (cancel_breakpoints_callback): Ditto.
13022 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13024 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13025 (unsuspend_one_lwp): Update, "entry" parameter is a
13026 struct thread_info * now.
13027 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13029 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13030 Fetch lwpid from thread, not lwp.
13031 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13032 Pass &all_threads to find_inferior, not &all_lwps.
13033 (send_sigstop): Fetch lwpid from thread, not lwp.
13034 (send_sigstop_callback): Update, "entry" parameter is a
13035 struct thread_info * now.
13036 (suspend_and_send_sigstop_callback): Ditto.
13037 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13038 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13039 struct thread_info * now.
13040 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13042 (lwp_running): Update, "entry" parameter is a
13043 struct thread_info * now.
13044 (stop_all_lwps): Fetch ptid from thread.
13045 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13046 (linux_resume_one_lwp): Fetch lwpid from thread.
13047 (linux_set_resume_request): Update, "entry" parameter is a
13048 struct thread_info * now. Fetch pid, lwpid from thread.
13049 (resume_status_pending_p): Update, "entry" parameter is a
13050 struct thread_info * now.
13051 (need_step_over_p): Ditto. Fetch lwpid from thread.
13052 (start_step_over): Fetch lwpid from thread.
13053 (linux_resume_one_thread): Update, "entry" parameter is a
13054 struct thread_info * now. Fetch lwpid from thread.
13055 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13056 (proceed_one_lwp): Update, "entry" parameter is a
13057 struct thread_info * now. Fetch lwpid from thread.
13058 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13059 struct thread_info * now.
13060 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13061 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13062 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13064 (regsets_store_inferior_registers): Ditto.
13065 (fetch_register, store_register): Ditto.
13066 (linux_read_memory, linux_write_memory): Ditto.
13067 (linux_request_interrupt): Ditto.
13068 (linux_read_auxv): Ditto.
13069 (linux_xfer_siginfo): Ditto.
13070 (linux_qxfer_spu): Ditto.
13071 (linux_qxfer_libraries_svr4): Ditto.
13072 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13073 moved to inferiors.h.
13075 (get_thread_lwp): Update.
13076 (struct lwp_info): Delete member "entry". Simplify comment for
13078 (all_lwps): Delete.
13079 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13080 current_inferior directly.
13081 (update_watch_registers_callback): Update, "entry" parameter is a
13082 struct thread_info * now. Fetch pid from thread.
13083 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13084 (mips_insert_point): Fetch lwpid from current_inferior.
13085 Pass &all_threads to find_inferior, not &all_lwps.
13086 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13087 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13089 (mips_stopped_data_address): Ditto.
13090 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13092 * linux-tile-low.c (tile_arch_setup): Ditto.
13093 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13094 (update_debug_registers_callback): Update, "entry" parameter is a
13095 struct thread_info * now. Fetch pid from thread.
13096 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13097 Pass &all_threads to find_inferior, not &all_lwps.
13098 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13099 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13100 Pass &all_threads to find_inferior, not &all_lwps.
13101 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13102 (i386_dr_low_get_status): Ditto.
13103 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13104 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13105 (x86_linux_read_description): Ditto.
13106 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13108 2014-02-20 Doug Evans <dje@google.com>
13110 * inferiors.c (get_first_inferior): Fix buglet.
13112 2014-02-19 Doug Evans <dje@google.com>
13114 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13115 * inferiors.c (add_thread): Change result type to struct thread_info *.
13116 All callers updated.
13117 (add_lwp): Call add_thread here instead of in callers.
13118 All callers updated.
13119 * linux-low.h (get_lwp_thread): Rewrite.
13120 (struct lwp_info): New member "thread".
13122 2014-02-19 Doug Evans <dje@google.com>
13124 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13125 All callers updated.
13127 2014-02-19 Doug Evans <dje@google.com>
13129 * inferiors.c (add_thread): Fix whitespace.
13131 2014-02-19 Doug Evans <dje@google.com>
13133 * dll.c (clear_dlls): Replace accessing list implemention details
13135 * gdbthread.h (get_first_thread): Declare.
13136 * inferiors.c (for_each_inferior_with_data): New function.
13137 (get_first_thread): New function.
13138 (find_thread_ptid): Simplify.
13139 (get_first_inferior): New function.
13140 (clear_list): Delete.
13141 (one_inferior_p): New function.
13142 (clear_inferior_list): New function.
13143 (clear_inferiors): Update.
13144 * inferiors.h (for_each_inferior_with_data): Declare.
13145 (clear_inferior_list): Declare.
13146 (one_inferior_p): Declare.
13147 (get_first_inferior): Declare.
13148 * linux-low.c (linux_wait_for_event): Replace accessing list
13149 implemention details with API function.
13150 * server.c (target_running): Ditto.
13151 (accumulate_file_name_length): New function.
13152 (emit_dll_description): New function.
13153 (handle_qxfer_libraries): Replace accessing list implemention
13154 details with API function.
13155 (handle_qxfer_threads_worker): New function.
13156 (handle_qxfer_threads_proper): Replace accessing list implemention
13157 details with API function.
13158 (handle_query): Ditto.
13159 (visit_actioned_threads_callback_ftype): New typedef.
13160 (visit_actioned_threads_data): New struct.
13161 (visit_actioned_threads): Rewrite to be find_inferior callback.
13162 (resume): Call find_inferior.
13163 (handle_status): Replace accessing list implemention
13164 details with API function.
13165 (process_serial_event): Replace accessing list implemention details
13167 * target.c (set_desired_inferior): Replace accessing list implemention
13168 details with API function.
13169 * tracepoint.c (same_process_p): New function.
13170 (gdb_agent_about_to_close): Replace accessing list implemention
13171 details with API function.
13172 * win32-low.c (child_delete_thread): Replace accessing list
13173 implemention details with API function.
13174 (match_dll_by_basename): New function.
13175 (dll_is_loaded_by_basename): New function.
13176 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13177 details call to dll_is_loaded_by_basename.
13179 2014-02-19 Doug Evans <dje@google.com>
13181 * dll.h (struct dll_info): Add comment.
13182 * gdbthread.h (struct thread_info): Add comment.
13183 (current_ptid): Simplify.
13184 * inferiors.c (add_process): Update.
13185 (remove_process): Update.
13186 * inferiors.h (struct process_info): Rename member "head" to "entry".
13187 * linux-low.c (delete_lwp): Update.
13189 (last_thread_of_process_p): Update.
13190 (kill_one_lwp_callback, linux_kill): Update.
13191 (status_pending_p_callback): Update.
13192 (wait_for_sigstop): Update. Simplify read of ptid.
13193 (start_step_over): Update.
13194 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13195 (get_lwp_thread): Update.
13196 (struct lwp_info): Rename member "head" to "entry".
13197 * regcache.h (inferior_list_entry): Delete.
13198 * server.c (kill_inferior_callback): Update.
13199 (detach_or_kill_inferior_callback): Update.
13200 (print_started_pid): Update.
13201 (print_attached_pid): Update.
13202 (process_serial_event): Simplify read of ptid.
13203 * thread-db.c (thread_db_create_event): Update.
13204 (thread_db_get_tls_address): Update.
13205 * win32-low.c (current_inferior_ptid): Simplify.
13207 2014-02-19 Tom Tromey <tromey@redhat.com>
13209 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13211 (target_supports_btrace): Update.
13213 2014-02-14 Yao Qi <yao@codesourcery.com>
13215 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13216 (rsp-low-ipa.o): New target.
13218 2014-02-12 Tom Tromey <tromey@redhat.com>
13220 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13221 convert_ascii_to_int.
13222 * regcache.c (registers_to_string): Likewise.
13223 * remote-utils.c (decode_M_packet): Likewise.
13224 * server.c (process_serial_event): Likewise.
13226 2014-02-12 Tom Tromey <tromey@redhat.com>
13228 * server.c (handle_query, handle_v_run): Use hex2bin, not
13230 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13232 2014-02-12 Tom Tromey <tromey@redhat.com>
13234 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13235 convert_int_to_ascii.
13236 * regcache.c (registers_to_string, collect_register_as_string):
13238 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13240 * server.c (process_serial_event): Likewise.
13241 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13242 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13244 2014-02-12 Tom Tromey <tromey@redhat.com>
13246 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13247 bin2hex, not hexify.
13248 * tracepoint.c (cmd_qtstatus): Likewise.
13250 2014-02-12 Tom Tromey <tromey@redhat.com>
13252 * remote-utils.c (monitor_output): Pass explicit length to
13255 2014-02-12 Tom Tromey <tromey@redhat.com>
13257 * tracepoint.c: Include rsp-low.h.
13258 * server.c: Include rsp-low.h.
13259 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13260 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13262 * remote-utils.c: Include rsp-low.h.
13263 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13264 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13265 (convert_int_to_ascii, convert_ascii_to_int): Move to
13267 * regcache.c: Include rsp-low.h.
13268 * ax.c: Include rsp-low.h.
13269 * Makefile.in (SFILES): Add common/rsp-low.c.
13270 (OBS): Add rsp-low.o.
13271 (rsp-low.o): New target.
13273 2014-02-12 Tom Tromey <tromey@redhat.com>
13275 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13276 Include print-utils.h.
13277 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13278 (plongest, thirty_two, phex_nz): Remove.
13279 * Makefile.in (SFILES): Add common/print-utils.c.
13280 (OBS): Add print-utils.o.
13281 (print-utils-ipa.o): New target.
13282 (print-utils.o): New target.
13283 (IPA_OBJS): Add print-utils-ipa.o.
13285 2014-02-06 Tom Tromey <tromey@redhat.com>
13287 * Makefile.in (SFILES): Fix indentation.
13289 2014-02-05 Doug Evans <dje@google.com>
13291 * linux-low.c (linux_wait_for_event): Improve comment.
13292 (linux_wait_1): Keep current_inferior in sync with event_child.
13294 2014-01-22 Doug Evans <dje@google.com>
13296 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13298 2014-01-22 Doug Evans <dje@google.com>
13300 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13301 * configure: Regenerate.
13302 * config.in: Regenerate.
13303 * Makefile.in (SFILES): Add debug.c.
13304 (OBS): Add debug.o.
13305 * debug.c: New file.
13306 * debug.h: New file.
13307 * linux-aarch64-low.c (*): Update all debugging printfs to use
13308 debug_printf instead of fprintf.
13309 * linux-arm-low.c (*): Ditto.
13310 * linux-cris-low.c (*): Ditto.
13311 * linux-crisv32-low.c (*): Ditto.
13312 * linux-m32r-low.c (*): Ditto.
13313 * linux-sparc-low.c (*): Ditto.
13314 * linux-x86.c (*): Ditto.
13315 * linux-low.c (*): Ditto.
13316 (linux_wait_1): Add calls to debug_enter, debug_exit.
13317 (linux_wait): Remove redundant debugging printf.
13318 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13319 (linux_resume, unstop_all_lwps): Ditto.
13320 * mem-break.c (*): Update all debugging printfs to use
13321 debug_printf instead of fprintf.
13322 * remote-utils.c (*): Ditto.
13323 * thread-db.c (*): Ditto.
13324 * server.c #include <ctype.h>, "gdb_vecs.h".
13325 (debug_threads): Moved to debug.c.
13326 (*): Update all debugging printfs to use debug_printf instead of
13328 (start_inferior): Replace call to fflush with call to debug_flush.
13329 (monitor_show_help): Mention set debug-format.
13330 (parse_debug_format_options): New function.
13331 (handle_monitor_command): Handle "monitor set debug-format".
13332 (gdbserver_usage): Mention --debug-format.
13333 (main): Parse --debug-format.
13334 * server.h (debug_threads): Declaration moved to debug.h.
13335 #include "debug.h".
13336 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13337 trace_debug_1 that uses debug_printf.
13338 (tracepoint_look_up_symbols): Update all debugging printfs to use
13339 debug_printf instead of fprintf.
13341 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13343 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13346 2014-01-17 Pedro Alves <palves@redhat.com>
13349 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13350 defined after including gdb_proc_service.h.
13352 2014-01-16 Doug Evans <dje@google.com>
13354 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13355 (match_dll): Use it.
13357 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13359 * target.h (target_ops) <read_btrace>: Change parameters and
13360 return type to allow error reporting.
13361 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13362 trace reading errors on.
13363 * linux-low.c (linux_low_read_btrace): Pass trace reading
13365 (linux_low_disable_btrace): New.
13367 2014-01-15 Doug Evans <dje@google.com>
13369 * inferiors.c (thread_id_to_gdb_id): Delete.
13370 * inferiors.h (thread_id_to_gdb_id): Delete.
13372 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13374 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13375 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13378 2014-01-08 Pedro Alves <palves@redhat.com>
13380 * server.c (handle_status): Don't discard previous queued stop
13381 replies or thread's pending status here.
13382 (main) <disconnection>: Do it here instead.
13384 2014-01-08 Pedro Alves <palves@redhat.com>
13386 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13387 * server.c (visit_actioned_threads, handle_pending_status): New
13389 (handle_v_cont): Factor out parts to ...
13390 (resume): ... this new function. If in all-stop, and a thread
13391 being resumed has a pending status, report it without actually
13393 (myresume): Adjust to use the new 'resume' function.
13394 (clear_pending_status_callback, set_pending_status_callback)
13395 (find_status_pending_thread_callback): New functions.
13396 (handle_status): Handle the case of multiple threads having
13397 interesting statuses to report. Report threads' real last signal
13398 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13399 with an interesting thread to report the status for, instead of
13400 always reporting the status of the first thread.
13402 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13404 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13405 * gdbreplay.c (gdbreplay_version): Likewise.
13407 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13409 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13410 iov.iov_len with the real length in use.
13412 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13414 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13415 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13416 for all targets that use win32-low.c.
13417 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13418 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13420 2013-12-13 Pedro Alves <palves@redhat.com>
13422 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13423 if equal to TARGET_WAITKIND_LOADED.
13424 * win32-low.c (cached_status): New static global.
13425 (win32_wait): Add declaration.
13426 (do_initial_child_stuff): Flush all initial pending debug events
13427 up to the initial breakpoint.
13428 (win32_wait): If CACHED_STATUS was set, return that instead
13429 of doing a real wait. Remove the code resuming the execution
13430 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13431 during the initial phase. Also remove the code changing
13432 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13433 TARGET_WAITKIND_STOPPED.
13435 2013-12-11 Yao Qi <yao@codesourcery.com>
13437 * notif.c (handle_notif_ack): Return 0 if no notification
13440 2013-11-20 Doug Evans <dje@google.com>
13442 * linux-low.c (linux_set_resume_request): Fix comment.
13444 2013-11-20 Doug Evans <dje@google.com>
13446 * linux-low.c (resume_status_pending_p): Tweak comment.
13448 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13450 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13451 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13452 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13453 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13454 (srv_amd64_regobj): Add amd64-mpx.o.
13455 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13456 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13457 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13458 * i387-fp.c (num_pl_bnd_register) Added constant.
13459 (num_pl_bnd_cfg_registers) Added constant.
13460 (struct i387_xsave) Added reserved area and MPX fields.
13461 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13462 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13464 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13465 (init_registers_amd64_mpx_linux): Declare new function.
13466 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13467 (x86_64_regmap): Add MPX registers.
13468 (x86_linux_read_description): Add MPX case.
13469 (initialize_low_arch): Initialize MPX targets.
13471 2013-11-18 Tom Tromey <tromey@redhat.com>
13473 * configure: Rebuild.
13474 * configure.ac: Don't check for stdlib.h.
13475 * gdbreplay.c: Unconditionally include stdlib.h.
13477 2013-11-18 Tom Tromey <tromey@redhat.com>
13479 * config.in: Rebuild.
13480 * configure: Rebuild.
13481 * configure.ac: Don't use AC_HEADER_DIRENT.
13483 2013-11-18 Tom Tromey <tromey@redhat.com>
13485 * server.h: Don't check HAVE_STRING_H.
13486 * gdbreplay.c: Don't check HAVE_STRING_H.
13487 * configure: Rebuild.
13489 2013-11-18 Tom Tromey <tromey@redhat.com>
13491 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13494 2013-11-08 Tom Tromey <tromey@redhat.com>
13496 * configure, config.in: Rebuild.
13497 * configure.ac: Remove unused configury.
13499 2013-11-08 Tom Tromey <tromey@redhat.com>
13501 * acinclude.m4: Include common.m4, codeset.m4.
13502 * configure, config.in: Rebuild.
13503 * configure.ac: Use GDB_AC_COMMON.
13505 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13507 * linux-s390-low.c (HWCAP_S390_TE): New define.
13508 (s390_arch_setup): Consider the TE field in the HWCAP for
13509 determining 'have_regset_tdb'.
13511 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13514 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13517 2013-10-02 Pedro Alves <palves@redhat.com>
13519 * server.c (process_serial_event): Don't output "GDBserver
13520 exiting" if GDB is connected through stdio.
13521 * target.c (mywait): Likewise, be silent if GDB is connected
13524 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13526 * lynx-low.c (lynx_add_threads_after_attach): New function.
13527 (lynx_attach): Remove call to add_thread. Add call to
13528 lynx_add_threads_after_attach instead.
13530 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13532 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13533 * config.in, configure: Regenerated.
13535 2013-09-18 Yao Qi <yao@codesourcery.com>
13538 * server.c (start_inferior): Clear 'resume_info'.
13540 2013-09-16 Jiong Wang <jiwang@tilera.com>
13542 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13545 2013-09-16 Jiong Wang <jiwang@tilera.com>
13547 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13548 linux-tile-low.o to srv_tgtobj.
13550 2013-09-16 Will Newton <will.newton@linaro.org>
13552 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13555 2013-09-06 Pedro Alves <palves@redhat.com>
13557 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13558 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13559 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13560 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13561 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13562 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13564 2013-09-06 Pedro Alves <palves@redhat.com>
13566 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13567 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13569 2013-09-06 Pedro Alves <palves@redhat.com>
13571 * linux-amd64-ipa.c: Include tracepoint.h.
13572 * linux-i386-ipa.c: Include tracepoint.h.
13574 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13576 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13577 (ps_get_thread_area): New function.
13579 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13581 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13582 (initialize_low_arch): Call init_registers_crisv32 rather than
13583 init_register_crisv32.
13585 2013-09-05 Pedro Alves <palves@redhat.com>
13587 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13589 * hostio.h: ... this new file.
13590 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13591 win32-low.c: Include hostio.h.
13593 2013-09-05 Pedro Alves <palves@redhat.com>
13595 * server.h (gdb_client_data, handler_func, callback_handler_func)
13596 (delete_file_handler, add_file_handler, append_callback_event)
13597 (delete_callback_event, start_event_loop, initialize_event_loop):
13598 Move to event-loop.h and include it.
13599 * event-loop.h: New file.
13601 2013-09-05 Pedro Alves <palves@redhat.com>
13603 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13604 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13605 (loaded_dll, unloaded_dll): Move to ...
13606 * dll.h: ... this new file.
13607 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13609 2013-09-05 Pedro Alves <palves@redhat.com>
13611 * server.h (current_process, get_thread_process, all_processes)
13612 (add_inferior_to_list, for_each_inferior, current_inferior)
13613 (remove_inferior, add_process, remove_process, find_process_pid)
13614 (have_started_inferiors_p, have_attached_inferiors_p)
13615 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13616 (clear_inferiors, find_inferior, find_inferior_id)
13617 (inferior_target_data, set_inferior_target_data)
13618 (inferior_regcache_data, set_inferior_regcache_data): Move to
13619 inferiors.h, and include it.
13620 * inferiors.h: New file.
13622 2013-09-05 Pedro Alves <palves@redhat.com>
13624 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13628 2013-09-05 Pedro Alves <palves@redhat.com>
13630 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13632 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13633 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13634 (handle_tracepoint_general_set, handle_tracepoint_query)
13635 (tracepoint_finished_step, tracepoint_was_hit)
13636 (release_while_stepping_state_list, current_traceframe)
13637 (in_readonly_region, traceframe_read_mem)
13638 (fetch_traceframe_registers, traceframe_read_sdata)
13639 (traceframe_read_info, struct fast_tpoint_collect_status)
13640 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13641 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13642 (supply_fast_tracepoint_registers)
13643 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13644 (ipa_tdesc, claim_trampoline_space)
13645 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13646 (agent_mem_read, agent_get_trace_state_variable_value)
13647 (agent_set_trace_state_variable_value, agent_tsv_read)
13648 (agent_mem_read_string, get_raw_reg_func_addr)
13649 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13650 * tracepoint.h: ... this new file.
13652 2013-09-05 Pedro Alves <palves@redhat.com>
13654 * server.h (perror_with_name, error, fatal, warning, paddress)
13655 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13657 * utils.h: New file.
13659 2013-09-05 Pedro Alves <palves@redhat.com>
13661 * server.h (remote_debug, noack_mode, transport_is_reliable)
13662 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13663 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13664 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13665 (write_enn, initialize_async_io, enable_async_io)
13666 (disable_async_io, check_remote_input_interrupt_request)
13667 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13668 (dead_thread_notify, prepare_resume_reply)
13669 (decode_address_to_semicolon, decode_address, decode_m_packet)
13670 (decode_M_packet, decode_X_packet, decode_xfer_write)
13671 (decode_search_memory_packet, unhexify, hexify)
13672 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13673 (look_up_one_symbol, relocate_instruction)
13674 (monitor_output): Move to remote-utils.h, and include it.
13675 * remote-utils.h: New file.
13677 2013-09-05 Pedro Alves <palves@redhat.com>
13679 * server.h (_): Delete.
13681 2013-09-02 Pedro Alves <palves@redhat.com>
13683 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13684 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13686 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13688 2013-09-02 Pierre Muller <muller@sourceware.org>
13690 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13691 or WriteProcessMemory complete successfully and handle
13692 ERROR_PARTIAL_COPY error.
13694 2013-09-02 Pedro Alves <palves@redhat.com>
13696 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13697 error instead of EIO.
13699 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13702 * linux-low.c: Include filestuff.h.
13703 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13704 * lynx-low.c: Include filestuff.h.
13705 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13706 * server.c: Include filestuff.h.
13707 (main): Call notice_open_fds.
13708 * spu-low.c: Include filestuff.h.
13709 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13711 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13713 * Makefile.in: Explain why ../target and ../nat are not
13714 listed as include file search paths.
13715 (linux-waitpid.o): New object file rule.
13716 * configure.srv (srv_native_linux_obj): New variable.
13717 Replace all occurrences of linux native object files with
13718 $srv_native_linux_obj.
13719 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13720 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13721 (linux_enable_event_reporting): Remove declaration.
13722 (my_waitpid): Moved to common/linux-waitpid.c.
13723 (linux_wait_for_event): Pass ptid when calling
13724 linux_enable_event_reporting.
13725 (linux_supports_tracefork_flag): Remove.
13726 (linux_enable_event_reporting): Likewise.
13727 (linux_tracefork_grandchild): Remove.
13728 (STACK_SIZE): Moved to common/linux-ptrace.c.
13729 (linux_tracefork_child): Remove.
13730 (linux_test_for_tracefork): Remove.
13731 (linux_look_up_symbols): Call linux_supports_traceclone.
13732 (initialize_low): Remove call to linux_test_for_tracefork.
13733 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13734 common/linux-ptrace.h.
13735 (PTRACE_TYPE_ARG4): Likewise.
13736 Include linux-ptrace.h.
13738 2013-08-21 Pedro Alves <palves@redhat.com>
13740 * config.in: Renegerate.
13742 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13744 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13745 (SFILES): Remove $(srcdir)/common/target-common.c and
13746 add $(srcdir)/target/waitstatus.c.
13747 (OBS): Remove target-common.o and add waitstatus.o.
13748 (server_h): Remove $(srcdir)/../common/target-common.h and
13749 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13750 and $(srcdir)/../target/waitstatus.h.
13751 (target-common.o): Remove.
13752 (waitstatus.o): New target object file.
13753 * target.h: Do not include target-common.h and
13754 include target/resume.h, target/wait.h and
13755 target/waitstatus.h.
13757 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13759 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13760 to PTRACE_TYPE_ARG3.
13761 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13762 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13764 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13765 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13767 2013-07-27 Jie Zhang <jie@codesourcery.com>
13768 Daniel Jacobowitz <dan@codesourcery.com>
13769 Yao Qi <yao@codesourcery.com>
13771 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13772 (mips-linux-watch.o): New rule.
13773 (mips_linux_watch_h): New variable.
13774 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13776 * linux-mips-low.c: Include mips-linux-watch.h.
13777 (struct arch_process_info, struct arch_lwp_info): New.
13778 (update_watch_registers_callback): New function.
13779 (mips_linux_new_process, mips_linux_new_thread) New functions.
13780 (mips_linux_prepare_to_resume, mips_insert_point): New
13782 (mips_remove_point, mips_stopped_by_watchpoint): New
13784 (rsp_bp_type_to_target_hw_bp_type): New function.
13785 (mips_stopped_data_address): New function.
13786 (the_low_target): Add watchpoint support functions.
13788 2013-07-27 Yao Qi <yao@codesourcery.com>
13790 * i386-low.c: Include break-common.h.
13791 (enum target_hw_bp_type): Remove.
13793 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13795 * Makefile.in (SFILES): /common/target-common.c.
13796 (OBS): Add target-common.o.
13797 (server_h): Add $(srcdir)/../common/target-common.h.
13798 (target-common.o): New target.
13799 * server.c (queue_stop_reply_callback): Free
13800 status string after use.
13801 * target.c (target_waitstatus_to_string): Remove.
13802 * target.h: Include target-common.h.
13803 (resume_kind): Likewise.
13804 (target_waitkind): Likewise.
13805 (target_waitstatus): Likewise.
13806 (TARGET_WNOHANG): Likewise.
13808 2013-07-04 Yao Qi <yao@codesourcery.com>
13810 * Makefile.in (host_alias): Use @host_noncanonical@.
13811 (target_alias): Use @target_noncanonical@.
13812 * configure.ac: Use ACX_NONCANONICAL_TARGET and
13813 ACX_NONCANONICAL_HOST.
13814 * configure: Regenerated.
13817 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13819 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13820 * configure: Rebuild.
13821 * Makefile.in (version_host, version_target): Get from configure.
13822 (version.c): Use $(version_host) and $(version_target).
13824 2013-07-03 Pedro Alves <palves@redhat.com>
13826 * Makefile.in (config.status): Depend on development.sh.
13827 * acinclude.m4: Include libmcheck.m4.
13828 * configure: Regenerate.
13830 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13832 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
13833 attribute inside the parentheses.
13834 (winapi_DebugSetProcessKillOnExit): Ditto.
13835 (winapi_DebugBreakProcess): Ditto.
13836 (winapi_GenerateConsoleCtrlEvent): Ditto.
13838 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
13840 * notif.h (notif_event): Add a dummy member to avoid compiler
13843 2013-07-01 Pedro Alves <palves@redhat.com>
13845 * hostio.c (HOSTIO_PATH_MAX): Define.
13846 (require_filename, handle_open, handle_unlink, handle_readlink):
13849 2013-07-01 Pedro Alves <palves@redhat.com>
13851 * server.h: Include "pathmax.h".
13852 * linux-low.c: Don't include sys/param.h.
13853 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
13855 * win32-low.c: Don't include sys/param.h.
13856 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
13858 2013-07-01 Pedro Alves <palves@redhat.com>
13860 * event-loop.c: Don't check HAVE_UNISTD_H before including
13862 * gdbreplay.c: Likewise.
13863 * remote-utils.c: Likewise.
13864 * server.c: Likewise.
13865 * configure.ac: Don't check for unistd.h.
13866 * configure: Regenerate.
13868 2013-06-28 Tom Tromey <tromey@redhat.com>
13870 * Makefile.in (version.c): Use version.in, not
13873 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
13875 * configure.ac (version_host, version_target): Set and AC_SUBST them.
13876 * configure: Rebuild.
13877 * Makefile.in (version_host, version_target): Get from configure.
13878 (version.c): Use $(version_host) and $(version_target).
13880 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13882 Fix trace-status to output user name without trailing colon.
13883 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
13885 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
13887 Fix trace-status to output proper start-time and stop-time.
13888 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
13889 output start time and stop time in hex as gdb expects.
13891 2013-06-26 Pedro Alves <pedro@codesourcery.com>
13893 * tracepoint.c (build_traceframe_info_xml): Output trace state
13894 variables present in the trace buffer.
13896 2013-06-24 Tom Tromey <tromey@redhat.com>
13898 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
13900 (version.o): Remove.
13901 * gdbreplay.c: Include version.h.
13902 (version, host_name): Don't declare.
13903 * server.h: Include version.h.
13904 (version, host_name): Don't declare.
13906 2013-06-12 Pedro Alves <palves@redhat.com>
13908 * linux-x86-low.c (linux_is_elf64): Delete global.
13909 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
13910 with local linux_pid_exe_is_elf_64_file use.
13912 2013-06-11 Pedro Alves <palves@redhat.com>
13914 * linux-low.c (regset_disabled, disable_regset): New functions.
13915 (regsets_fetch_inferior_registers)
13916 (regsets_store_inferior_registers): Use them.
13917 (initialize_regsets_info); Don't allocate the disabled_regsets
13919 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
13922 2013-06-11 Pedro Alves <palves@redhat.com>
13924 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
13927 2013-06-11 Pedro Alves <palves@redhat.com>
13929 * linux-x86-low.c (initialize_low_arch): Call
13930 init_registers_x32_avx_linux.
13932 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
13934 Fix compatibility with Android Bionic.
13935 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
13938 2013-06-07 Pedro Alves <palves@redhat.com>
13941 * Makefile.in (OBS): Add tdesc.o.
13942 (IPA_OBJS): Add tdesc-ipa.o.
13943 (tdesc-ipa.o): New rule.
13944 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
13946 * linux-low.c (new_inferior): Delete.
13947 (disabled_regsets, num_regsets): Delete.
13948 (linux_add_process): Adjust to set the new per-process
13950 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
13951 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
13952 was a stop. When calling arch_setup, switch the current inferior
13953 to the thread that got an event.
13954 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
13955 (regsets_fetch_inferior_registers)
13956 (regsets_store_inferior_registers): New regsets_info parameter.
13958 (linux_register_in_regsets): New regs_info parameter. Adjust to
13960 (register_addr, fetch_register, store_register): New usrregs_info
13961 parameter. Adjust to use it.
13962 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
13963 parameter regs_info. Adjust to use it.
13964 (linux_fetch_registers): Get the current inferior's regs_info, and
13966 (linux_store_registers): Ditto.
13967 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
13968 (initialize_low): Don't initialize the target_regsets here. Call
13969 initialize_low_arch.
13970 * linux-low.h (target_regsets): Delete declaration.
13971 (struct regsets_info): New.
13972 (struct usrregs_info): New.
13973 (struct regs_info): New.
13974 (struct process_info_private) <new_inferior>: New field.
13975 (struct linux_target_ops): Delete the num_regs, regmap, and
13976 regset_bitmap fields. New field regs_info.
13977 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
13978 * i387-fp.c (num_xmm_registers): Delete.
13979 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
13980 calls to new interface.
13981 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
13982 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
13983 Infer the number of xmm registers from the regcache's target
13985 * i387-fp.h (num_xmm_registers): Delete.
13986 * inferiors.c (add_thread): Don't install the thread's regcache
13988 * proc-service.c (gregset_info): Fetch the current inferior's
13989 regs_info. Adjust to use it.
13990 * regcache.c: Include tdesc.h.
13991 (register_bytes, reg_defs, num_registers)
13992 (gdbserver_expedite_regs): Delete.
13993 (get_thread_regcache): If the thread doesn't have a regcache yet,
13994 create one, instead of aborting gdbserver.
13995 (regcache_invalidate_one): Rename to ...
13996 (regcache_invalidate_thread): ... this.
13997 (regcache_invalidate_one): New.
13998 (regcache_invalidate): Only invalidate registers of the current
14000 (init_register_cache): Add target_desc parameter, and use it.
14001 (new_register_cache): Ditto. Assert the target description has a
14002 non zero registers_size.
14003 (regcache_cpy): Add assertions. Adjust.
14004 (realloc_register_cache, set_register_cache): Delete.
14005 (registers_to_string, registers_from_string): Adjust.
14006 (find_register_by_name, find_regno, find_register_by_number)
14007 (register_cache_size): Add target_desc parameter, and use it.
14008 (free_register_cache_thread, free_register_cache_thread_one)
14009 (regcache_release, register_cache_size): New.
14010 (register_size): Add target_desc parameter, and use it.
14011 (register_data, supply_register, supply_register_zeroed)
14012 (supply_regblock, supply_register_by_name, collect_register)
14013 (collect_register_as_string, collect_register_by_name): Adjust.
14014 * regcache.h (struct target_desc): Forward declare.
14015 (struct regcache) <tdesc>: New field.
14016 (init_register_cache, new_register_cache): Add target_desc
14018 (regcache_invalidate_thread): Declare.
14019 (regcache_invalidate_one): Delete declaration.
14020 (regcache_release): Declare.
14021 (find_register_by_number, register_cache_size, register_size)
14022 (find_regno): Add target_desc parameter.
14023 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14025 * remote-utils.c: Include tdesc.h.
14026 (outreg, prepare_resume_reply): Adjust.
14027 * server.c: Include tdesc.h.
14028 (gdbserver_xmltarget): Delete declaration.
14029 (get_features_xml, process_serial_event): Adjust.
14030 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14032 (struct process_info) <tdesc>: New field.
14033 (ipa_tdesc): Declare.
14034 * tdesc.c: New file.
14035 * tdesc.h: New file.
14036 * tracepoint.c: Include tdesc.h.
14037 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14038 (get_context_regcache): Adjust to pass ipa_tdesc down.
14039 (do_action_at_tracepoint): Adjust to get the register cache size
14040 from the context regcache's description.
14041 (traceframe_walk_blocks): Adjust to get the register cache size
14042 from the current trace frame's description.
14043 (traceframe_get_pc): Adjust to get current trace frame's
14044 description and pass it down.
14045 (gdb_collect): Adjust to get the register cache size from the
14047 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14048 (gdbserver_xmltarget): Delete.
14049 (initialize_low_tracepoint): Set the ipa's target description.
14050 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14051 (initialize_low_tracepoint): Set the ipa's target description.
14052 * linux-x86-low.c: Include tdesc.h.
14053 [__x86_64__] (is_64bit_tdesc): New.
14054 (ps_get_thread_area, x86_get_thread_area): Use it.
14055 (i386_cannot_store_register): Rename to ...
14056 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14057 (i386_cannot_fetch_register): Rename to ...
14058 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14059 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14061 (target_regsets): Rename to ...
14062 (x86_regsets): ... this.
14063 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14065 (x86_siginfo_fixup): Use is_64bit_tdesc.
14066 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14067 (tdesc_x32_avx_linux, tdesc_x32_linux)
14068 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14070 (x86_linux_update_xmltarget): Delete.
14071 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14072 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14073 (AMD64_LINUX_USER64_CS): New.
14074 (x86_linux_read_description): New, based on
14075 x86_linux_update_xmltarget.
14076 (same_process_callback): New.
14077 (x86_arch_setup_process_callback): New.
14078 (x86_linux_update_xmltarget): New.
14079 (x86_regsets_info): New.
14080 (amd64_linux_regs_info): New.
14081 (i386_linux_usrregs_info): New.
14082 (i386_linux_regs_info): New.
14083 (x86_linux_regs_info): New.
14084 (x86_arch_setup): Reimplement.
14085 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14086 (x86_emit_ops): Ditto.
14087 (the_low_target): Adjust. Install x86_linux_regs_info,
14088 x86_cannot_fetch_register, and x86_cannot_store_register.
14089 (initialize_low_arch): New.
14090 * linux-ia64-low.c (tdesc_ia64): Declare.
14091 (ia64_fetch_register): Adjust.
14092 (ia64_usrregs_info, regs_info): New globals.
14093 (ia64_regs_info): New function.
14094 (the_low_target): Adjust.
14095 (initialize_low_arch): New function.
14096 * linux-sparc-low.c (tdesc_sparc64): Declare.
14097 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14099 (sparc_arch_setup): New function.
14100 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14101 (the_low_target): Adjust.
14102 (initialize_low_arch): New function.
14103 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14104 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14105 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14106 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14107 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14108 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14109 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14110 (tdesc_powerpc_isa205_vsx64l): Declare.
14111 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14112 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14113 (ppc_set_pc, ppc_get_hwcap): Adjust.
14114 (ppc_usrregs_info): Forward declare.
14115 (!__powerpc64__) ppc_regmap_adjusted: New global.
14116 (ppc_arch_setup): Adjust to the current process'es target
14118 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14119 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14120 (ppc_store_evrregset): Adjust.
14121 (target_regsets): Rename to ...
14122 (ppc_regsets): ... this, and make static.
14123 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14124 (ppc_regs_info): New function.
14125 (the_low_target): Adjust.
14126 (initialize_low_arch): New function.
14127 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14128 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14129 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14130 (tdesc_s390x_linux64v2): Declare.
14131 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14132 (s390_fill_gregset, s390_store_last_break): Adjust.
14133 (target_regsets): Rename to ...
14134 (s390_regsets): ... this, and make static.
14135 (s390_get_pc, s390_set_pc): Adjust.
14136 (s390_get_hwcap): New target_desc parameter, and use it.
14137 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14138 (s390_arch_setup): Adjust to set the current process'es target
14139 description. Don't adjust the regmap.
14140 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14141 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14142 (regs_info_3264): New globals.
14143 (s390_regs_info): New function.
14144 (the_low_target): Adjust.
14145 (initialize_low_arch): New function.
14146 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14147 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14148 [__mips64] (init_registers_mips_linux)
14149 (init_registers_mips_dsp_linux): Delete defines.
14150 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14151 (have_dsp): New global.
14152 (mips_read_description): New, based on mips_arch_setup.
14153 (mips_arch_setup): Reimplement.
14154 (get_usrregs_info): New function.
14155 (mips_cannot_fetch_register, mips_cannot_store_register)
14156 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14157 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14158 (target_regsets): Rename to ...
14159 (mips_regsets): ... this, and make static.
14160 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14161 (dsp_regs_info, regs_info): New globals.
14162 (mips_regs_info): New function.
14163 (the_low_target): Adjust.
14164 (initialize_low_arch): New function.
14165 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14166 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14168 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14169 (arm_read_description): New, with bits factored from
14171 (arm_arch_setup): Reimplement.
14172 (target_regsets): Rename to ...
14173 (arm_regsets): ... this, and make static.
14174 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14175 (arm_regs_info): New function.
14176 (the_low_target): Adjust.
14177 (initialize_low_arch): New function.
14178 * linux-m68k-low.c (tdesc_m68k): Declare.
14179 (target_regsets): Rename to ...
14180 (m68k_regsets): ... this, and make static.
14181 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14182 (m68k_regs_info): New function.
14183 (m68k_arch_setup): New function.
14184 (the_low_target): Adjust.
14185 (initialize_low_arch): New function.
14186 * linux-sh-low.c (tdesc_sharch): Declare.
14187 (target_regsets): Rename to ...
14188 (sh_regsets): ... this, and make static.
14189 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14190 (sh_regs_info, sh_arch_setup): New functions.
14191 (the_low_target): Adjust.
14192 (initialize_low_arch): New function.
14193 * linux-bfin-low.c (tdesc_bfin): Declare.
14194 (bfin_arch_setup): New function.
14195 (bfin_usrregs_info, regs_info): New globals.
14196 (bfin_regs_info): New function.
14197 (the_low_target): Adjust.
14198 (initialize_low_arch): New function.
14199 * linux-cris-low.c (tdesc_cris): Declare.
14200 (cris_arch_setup): New function.
14201 (cris_usrregs_info, regs_info): New globals.
14202 (cris_regs_info): New function.
14203 (the_low_target): Adjust.
14204 (initialize_low_arch): New function.
14205 * linux-cris-low.c (tdesc_crisv32): Declare.
14206 (cris_arch_setup): New function.
14207 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14208 (cris_regs_info): New function.
14209 (the_low_target): Adjust.
14210 (initialize_low_arch): New function.
14211 * linux-m32r-low.c (tdesc_m32r): Declare.
14212 (m32r_arch_setup): New function.
14213 (m32r_usrregs_info, regs_info): New globals.
14214 (m32r_regs_info): Adjust.
14215 (initialize_low_arch): New function.
14216 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14217 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14218 (tic6x_usrregs_info): Forward declare.
14219 (tic6x_read_description): New function, based on ...
14220 (tic6x_arch_setup): ... this. Reimplement.
14221 (target_regsets): Rename to ...
14222 (tic6x_regsets): ... this, and make static.
14223 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14224 (tic6x_regs_info): New function.
14225 (the_low_target): Adjust.
14226 (initialize_low_arch): New function.
14227 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14228 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14229 (target_regsets): Rename to ...
14230 (xtensa_regsets): ... this, and make static.
14231 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14233 (xtensa_arch_setup, xtensa_regs_info): New functions.
14234 (the_low_target): Adjust.
14235 (initialize_low_arch): New function.
14236 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14237 (nios2_arch_setup): Set the current process'es tdesc.
14238 (target_regsets): Rename to ...
14239 (nios2_regsets): ... this.
14240 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14241 (nios2_regs_info): New function.
14242 (the_low_target): Adjust.
14243 (initialize_low_arch): New function.
14244 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14245 (aarch64_arch_setup): Set the current process'es tdesc.
14246 (target_regsets): Rename to ...
14247 (aarch64_regsets): ... this.
14248 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14249 (aarch64_regs_info): New function.
14250 (the_low_target): Adjust.
14251 (initialize_low_arch): New function.
14252 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14254 (target_regsets): Rename to ...
14255 (tile_regsets): ... this.
14256 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14257 (tile_regs_info): New function.
14258 (tile_arch_setup): Set the current process'es tdesc.
14259 (the_low_target): Adjust.
14260 (initialize_low_arch): New function.
14261 * spu-low.c (tdesc_spu): Declare.
14262 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14263 * win32-arm-low.c (tdesc_arm): Declare.
14264 (arm_arch_setup): New function.
14265 (the_low_target): Install arm_arch_setup instead of
14266 init_registers_arm.
14267 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14268 (init_windows_x86): Rename to ...
14269 (i386_arch_setup): ... this. Set `win32_tdesc'.
14270 (the_low_target): Adjust.
14271 * win32-low.c (win32_tdesc): New global.
14272 (child_add_thread): Don't create the thread cache here.
14273 (do_initial_child_stuff): Set the new process'es tdesc.
14274 * win32-low.h (struct target_desc): Forward declare.
14275 (win32_tdesc): Declare.
14276 * lynx-i386-low.c (tdesc_i386): Declare global.
14277 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14278 * lynx-low.c (lynx_tdesc): New global.
14279 (lynx_add_process): Set the new process'es tdesc.
14280 * lynx-low.h (struct target_desc): Forward declare.
14281 (lynx_tdesc): Declare global.
14282 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14283 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14284 * nto-low.c (nto_tdesc): New global.
14285 (do_attach): Set the new process'es tdesc.
14286 * nto-low.h (struct target_desc): Forward declare.
14287 (nto_tdesc): Declare.
14288 * nto-x86-low.c (tdesc_i386): Declare.
14289 (nto_x86_arch_setup): Set `nto_tdesc'.
14291 2013-06-04 Gary Benson <gbenson@redhat.com>
14293 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14294 to qSupported response when appropriate.
14295 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14296 with nonzero-length annex.
14297 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14298 arguments supplied in annex.
14300 2013-05-31 Doug Evans <dje@google.com>
14303 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14304 64 bits in 64-cross-32 environment.
14306 2013-05-28 Pedro Alves <palves@redhat.com>
14308 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14309 (aarch64-without-fpu.c): Delete rule.
14310 * configure.srv (aarch64*-*-linux*): Remove references to
14311 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14312 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14315 2013-05-24 Pedro Alves <palves@redhat.com>
14317 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14318 instead of strchr/decode_address. Error if the range isn't split
14319 with a ','. Don't assume there's be a ':' in the action.
14321 2013-05-23 Yao Qi <yao@codesourcery.com>
14322 Pedro Alves <palves@redhat.com>
14324 * linux-low.c (lwp_in_step_range): New function.
14325 (linux_wait_1): If the thread was range stepping and stopped
14326 outside the stepping range, report the stop to GDB. Otherwise,
14327 continue stepping. Add range stepping debug output.
14328 (linux_set_resume_request): Copy the step range from the resume
14329 request to the lwp.
14330 (linux_supports_range_stepping): New.
14331 (linux_target_ops) <supports_range_stepping>: Set to
14332 linux_supports_range_stepping.
14333 * linux-low.h (struct linux_target_ops)
14334 <supports_range_stepping>: New field.
14335 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14336 * linux-x86-low.c (x86_supports_range_stepping): New.
14337 (the_low_target) <supports_range_stepping>: Set to
14338 x86_supports_range_stepping.
14339 * server.c (handle_v_cont): Handle 'r' action.
14340 (handle_v_requests): Append ";r" if the target supports range
14342 * target.h (struct thread_resume) <step_range_start,
14343 step_range_end>: New fields.
14344 (struct target_ops) <supports_range_stepping>:
14346 (target_supports_range_stepping): New macro.
14348 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14350 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14351 confusion in comment.
14353 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14355 * lynx-low.c (struct process_info_private): New type.
14356 (lynx_add_process): New function.
14357 (lynx_create_inferior, lynx_attach): Replace calls to
14358 add_process by calls to lynx_add_process.
14359 (lynx_resume): If PTID is null, then try using
14360 current_process()->private->last_wait_event_ptid.
14362 (lynx_clear_inferiors): Delete. The contents of that function
14363 has been inlined in lynx_mourn;
14364 (lynx_wait_1): Save the ptid in the process's private data.
14365 (lynx_mourn): Free the process' private data. Replace call
14366 to lynx_clear_inferiors by call to clear_inferiors.
14368 2013-05-17 Yao Qi <yao@codesourcery.com>
14370 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14373 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14375 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14376 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14377 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14378 PT_TEXT_END_ADDR guards. Update comments.
14379 (linux_target_op) <read_offsets>: Conditionally define to
14380 linux_read_offsets if the target is UCLIBC and if it defines
14381 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14383 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14384 Andrew Jenner <andrew@codesourcery.com>
14386 * Makefile.in (SFILES): Add linux-nios2-low.c.
14387 (clean): Add action to delete nios2-linux.c.
14388 (nios2-linux.c): New rule.
14389 * configure.srv: Add nios2*-*-linux*.
14390 * linux-nios2-low.c: New.
14392 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14394 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14396 2013-04-25 Hui Zhu <hui@codesourcery.com>
14399 * ax.c (ax_printf): Add fflush.
14401 2013-04-22 Tom Tromey <tromey@redhat.com>
14403 * Makefile.in (SFILES): Add filestuff.c.
14404 (OBS): Add filestuff.o.
14405 (filestuff.o): New target.
14406 * config.in, configure: Rebuild.
14407 * configure.ac: Check for fdwalk, pipe2.
14409 2013-04-17 Pedro Alves <palves@redhat.com>
14411 * configure.ac (USE_THREAD_DB): Delete variable.
14412 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14413 Don't AC_SUBST USE_THREAD_DB.
14414 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14415 * config.in, configure: Regenerate.
14417 2013-04-16 Pedro Alves <palves@redhat.com>
14419 * linux-low.h (struct lwp_info) <thread_known>: Move under
14420 the USE_THREAD_DB #ifdef.
14422 2013-04-16 Pedro Alves <palves@redhat.com>
14424 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14425 (linux-low.o): Delete rule.
14426 * linux-low.h: Always include "gdb_thread_db.h" instead of
14427 conditionally including thread_db.h.
14428 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14431 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14433 * Makefile.in (install-only): Fix make install regression.
14435 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14437 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14438 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14440 * gdbserver.1: Remove.
14442 2013-03-22 Pedro Alves <palves@redhat.com>
14444 * linux-low.c (handle_extended_wait): Don't call
14445 linux_enable_event_reporting.
14447 2013-03-15 Tony Theodore <tonyt@logyst.com>
14450 * Makefile.in (SHELL): Use @SHELL@.
14452 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14454 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14457 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14459 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14460 Remove extraneous NULL element.
14462 2013-03-13 Yao Qi <yao@codesourcery.com>
14464 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14465 'V' block in trace frame.
14467 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14469 * target.h (struct target_ops): Add btrace ops.
14470 (target_supports_btrace): New macro.
14471 (target_enable_btrace): New macro.
14472 (target_disable_btrace): New macro.
14473 (target_read_btrace): New macro.
14474 * gdbthread.h (struct thread_info): Add btrace field.
14475 * server.c: Include btrace-common.h.
14476 (handle_btrace_general_set): New function.
14477 (handle_btrace_enable): New function.
14478 (handle_btrace_disable): New function.
14479 (handle_general_set): Call handle_btrace_general_set.
14480 (handle_qxfer_btrace): New function.
14481 (struct qxfer qxfer_packets[]): Add btrace entry.
14482 * inferiors.c (remove_thread): Disable btrace.
14483 * linux-low: Include linux-btrace.h.
14484 (linux_low_enable_btrace): New function.
14485 (linux_low_read_btrace): New function.
14486 (linux_target_ops): Add btrace ops.
14487 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14488 Add srv_linux_btrace=yes.
14489 (x86_64-*-linux*): Add linux-btrace.o.
14490 Add srv_linux_btrace=yes.
14491 * configure.ac: Define HAVE_LINUX_BTRACE.
14492 * config.in: Regenerated.
14493 * configure: Regenerated.
14495 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14497 * server.c (handle_qxfer): Preserve error message if -3 is
14499 (qxfer): Document the -3 return value.
14501 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14503 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14504 (linux_btrace_h): New variable.
14505 (linux-btrace.o): New rule.
14507 2013-03-08 Stan Shebs <stan@codesourcery.com>
14508 Hafiz Abid Qadeer <abidh@codesourcery.com>
14510 * tracepoint.c (trace_buffer_size): New global.
14511 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14512 (init_trace_buffer): Change to one-argument function. Allocate
14513 trace buffer memory.
14514 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14515 handle QTBuffer:size packet.
14516 (cmd_bigqtbuffer_size): New function.
14517 (initialize_tracepoint): Call init_trace_buffer with
14518 DEFAULT_TRACE_BUFFER_SIZE.
14519 * server.c (handle_query): Add QTBuffer:size in the
14522 2013-03-07 Yao Qi <yao@codesourcery.com>
14524 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14525 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14527 (cmd_qtsp): Adjust condition. Do post increment.
14528 Set cur_action and cur_step_action back to 0.
14530 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14533 * linux-low.c (linux_write_memory): Return early success if LEN is
14536 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14538 * configure.srv: Add x86_64-*-cygwin* as target.
14540 2013-02-28 Tom Tromey <tromey@redhat.com>
14542 * configure.ac: Invoke AC_SYS_LARGEFILE.
14543 * configure, config.in: Rebuild.
14545 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14547 * win32-low.c: Throughout, fix format strings and casts of
14548 printf-like functions to avoid type related warnings on all
14550 (get_child_debug_event): Print dwDebugEventCode as hex since
14551 that's how it's usually documented.
14553 2013-02-28 Yao Qi <yao@codesourcery.com>
14555 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14558 2013-02-27 Jiong Wang <jiwang@tilera.com>
14560 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14561 (reg-tilegx32.c): New rule.
14562 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14563 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14564 different register info initializer according to elf class.
14565 (init_registers_tilgx32): New function. The tilegx32 register info
14567 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14568 (tile_store_gregset): Likewise.
14570 2013-02-27 Yao Qi <yao@codesourcery.com>
14572 * server.c (process_point_options): Print debug message when
14573 debug_threads is true.
14575 2013-02-26 Yao Qi <yao@codesourcery.com>
14577 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14579 2013-02-19 Pedro Alves <palves@redhat.com>
14580 Kai Tietz <ktietz@redhat.com>
14584 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14585 instead of strtoul to extract address from packet.
14586 (process_serial_event) <'z'>: Likewise.
14588 2013-02-18 Yao Qi <yao@codesourcery.com>
14590 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14592 2013-02-14 Pedro Alves <palves@redhat.com>
14596 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14597 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14599 2013-02-14 Pedro Alves <palves@redhat.com>
14601 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14603 2013-02-14 Pedro Alves <palves@redhat.com>
14605 * tracepoint.c (save_string): Delete.
14606 (add_tracepoint_action): Use savestring instead of save_string.
14608 2013-02-12 Pedro Alves <palves@redhat.com>
14610 * linux-xtensa-low.c: Ditto.
14611 * xtensa-xtregs.c: Ditto.
14613 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14615 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14618 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14620 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14621 aarch64_num_wp_regs and aarch64_num_bp_regs to
14622 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14624 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14626 * linux-aarch64-low.c (ps_get_thread_area): Replace
14627 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14629 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14630 Marcus Shawcroft <marcus.shawcroft@arm.com>
14631 Nigel Stephens <nigel.stephens@arm.com>
14632 Yufeng Zhang <yufeng.zhang@arm.com>
14634 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14635 (aarch64.c, aarch64-without-fpu.c): New targets.
14636 * configure.srv (aarch64*-*-linux*): New.
14637 * linux-aarch64-low.c: New file.
14639 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14641 * linux-low.c (handle_extended_wait, linux_create_inferior)
14642 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14643 (dequeue_one_deferred_signal, linux_resume_one_thread)
14644 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14645 (linux_tracefork_grandchild, linux_test_for_tracefork)
14646 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14647 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14648 where the argument is 0.
14650 2013-01-25 Yao Qi <yao@codesourcery.com>
14652 * event-loop.c: Include "queue.h".
14653 (gdb_event_p): New typedef.
14654 (struct gdb_event) <next_event>: Remove.
14655 (event_queue): Change to QUEUE(gdb_event_p).
14656 (async_queue_event): Remove.
14657 (gdb_event_xfree): New.
14658 (initialize_event_loop): New.
14659 (process_event): Use API from QUEUE.
14660 (wait_for_event): Likewise.
14661 * server.c (main): Call initialize_event_loop.
14662 * server.h (initialize_event_loop): Declare.
14664 2013-01-18 Yao Qi <yao@codesourcery.com>
14666 * ax.h (struct eval_agent_expr_context): New.
14667 (gdb_eval_agent_expr): Update declaration.
14668 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14669 TFRAME. Add new argument CTX.
14670 * server.h (struct eval_agent_expr_context): Declare.
14671 (agent_mem_read, agent_tsv_read): Update declaration.
14672 (agent_mem_read_string): Likewise.
14673 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14674 (add_traceframe_block): Add new argument TPOINT.
14675 Increase TPOINT->traceframe_usage.
14676 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14677 eval_tracepoint_agent_expr.
14678 (condition_true_at_tracepoint): Likewise.
14679 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14680 (agent_mem_read_string, agent_tsv_read): Likewise.
14682 2013-01-16 Yao Qi <yao@codesourcery.com>
14684 * linux-low.c (linux_resume_one_lwp): Don't check
14685 'lwp->bp_reinsert != 0'.
14687 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14688 Pedro Alves <palves@redhat.com>
14690 * lynx-low.c (ptrace_request_to_str): Define a temporary
14691 macro and use it to simplify this function's implementation.
14693 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14695 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14698 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14700 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14702 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14704 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14706 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14708 * lynx-low.c (lynx_resume): Use the resume_info parameter
14709 to determine the ptid for the lynx_ptrace call, unless
14710 it is equal to minus_one_ptid, in which case we use the
14711 ptid of the current_inferior.
14712 (lynx_wait_1): After having received a thread create/exit
14713 event, resume the inferior's execution using the signaling
14714 thread's ptid, rather than the old ptid.
14716 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14718 * lynx-low.c (lynx_resume): Delete variable ret.
14720 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14722 * gdbreplay.c (gdbreplay_version): Update copyright year.
14723 * server.c (gdbserver_version): Likewise.
14725 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14727 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14730 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14732 * lynx-low.c (ptrace_request_to_str): Add handling for
14733 PTRACE_GETTRACESIG.
14735 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14737 * lynx-low.c (lynx_attach): Delete variable new_process.
14739 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14741 * lynx-low.c (lynx_create_inferior): Delete variable
14744 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14746 * lynx-low.c (ptrace_request_to_str): Do not handle
14747 PTRACE_GETTHREADLIST if this macro does not exist.
14749 2012-12-15 Yao Qi <yao@codesourcery.com>
14751 * Makefile.in (OBS): Add notif.o.
14752 * notif.c, notif.h: New.
14753 * server.c: Include "notif.h".
14754 (struct vstop_notif) <next>: Remove.
14756 (queue_stop_reply): Update.
14757 (push_event, send_next_stop_reply): Remove.
14758 (discard_queued_stop_replies): Update.
14759 (notif_stop): New variable.
14760 (handle_v_stopped): Remove.
14761 (handle_v_requests): Don't call handle_v_stopped. Call
14762 handle_ack_notif instead.
14763 (queue_stop_reply_callback): Call notif_event_enque instead
14764 of queue_stop_reply.
14765 (handle_status): Don't call send_next_stop_reply, call
14766 notif_write_event instead.
14767 (kill_inferior_callback): Likewise.
14768 (detach_or_kill_inferior_callback): Likewise.
14769 (main): Call initialize_notif.
14770 (process_serial_event): Call QUEUE_is_empty.
14771 (handle_target_event): Call notif_push instead of push event.
14772 * server.h (push_event): Remove declaration.
14774 2012-12-10 Tom Tromey <tromey@redhat.com>
14776 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14777 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14780 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14781 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14782 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14783 (amd64-linux-ipa.o, ax.o): Rewrite.
14784 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14785 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14786 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14787 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14788 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14789 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14790 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14791 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14792 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14793 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14794 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14795 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14796 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14797 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14798 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14799 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14800 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
14801 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
14802 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
14803 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
14804 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
14805 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
14806 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
14807 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
14808 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
14809 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
14810 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
14811 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
14812 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
14813 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
14814 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
14815 (reg-tilegx.o): Remove.
14816 (all_object_files): New macro.
14817 Include .deps files.
14818 * aclocal.m4, configure: Rebuild.
14819 * acinclude.m4: Include depstand.m4, lead-dot.m4.
14820 * configure.ac: Invoke ZW_CREATE_DEPDIR,
14821 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
14823 2012-12-05 Tom Tromey <tromey@redhat.com>
14826 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
14828 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
14830 * configure.ac: Check for linux/perf_event.h.
14831 * config.in: Regenerated.
14832 * configure: Regenerated.
14834 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
14836 * hostio.c (handle_readlink): Decrease buffer size
14837 parameter passed to readlink by one byte.
14839 2012-11-26 Yao Qi <yao@codesourcery.com>
14841 * configure.ac (build_warnings): Append '-Wempty-body'.
14842 * configure: Regenerated.
14843 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
14846 2012-11-15 Pierre Muller <muller@sourceware.org>
14848 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
14849 * config.in: Regenerate.
14850 * configure: Regenerate.
14851 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
14852 Use "gdb_wait.h" header instead of <sys/wait.h> header.
14853 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14854 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
14856 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
14857 instead of <sys/wait.h> header.
14858 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
14860 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
14862 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
14863 (various make rules): Remove -DGDBSERVER
14865 2012-11-09 Yao Qi <yao@codesourcery.com>
14867 * spu-low.c (current_ptid): Move it to ..
14868 * gdbthread.h: ... here. New.
14869 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
14870 * server.c (myresume, process_serial_event): Likewise.
14871 * thread-db.c (thread_db_find_new_threads): Likewise.
14872 * tracepoint.c (run_inferior_command): Likewise.
14874 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
14876 * server.c (handle_search_memory_1): Include access length in
14879 2012-09-05 Michael Brandt <michael.brandt@axis.com>
14881 * linux-crisv32-low.c: Fix compile errors.
14883 2012-09-04 Yao Qi <yao@codesourcery.com>
14885 * tracepoint.c (cmd_qtsv): Adjust debug message.
14886 Don't check CUR_TPOINT.
14888 2012-08-28 Yao Qi <yao@codesourcery.com>
14890 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
14891 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
14892 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
14893 Remove declarations of xmalloc, xreallloc, xstrdup and
14895 * Makefile.in (libiberty_h): New.
14896 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
14897 (linux-bfin-low.o): Append dependency 'libiberty.h'.
14899 2012-08-23 Yao Qi <yao@codesourcery.com>
14901 * server.h: Remove declaration of 'xsnprintf'.
14903 2012-08-22 Keith Seitz <keiths@redhat.com>
14905 * server.h: Include build-gnulib-gbserver/config.h.
14906 * gdbreplay.c: Likewise.
14908 2012-08-08 Doug Evans <dje@google.com>
14910 * Makefile.in (SFILES): Add gdb_vecs.c.
14911 (OBS): Add gdb_vecs.o.
14912 (gdb_vecs_h, host_defs_h): New variables.
14913 (thread-db.o): Add $(gdb_vecs_h) dependency.
14914 (gdb_vecs.o): New rule.
14915 * thread-db.c: #include "gdb_vecs.h".
14916 (thread_db_load_search): Use a vector to iterate over path elements.
14917 Handle text appearing after "$pdir".
14919 * configure.ac: Add check for strstr.
14920 * config.in: Regenerate.
14921 * configure: Regenerate.
14923 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14925 * hostio.c (handle_pread): If pread fails, fall back to attempting
14927 (handle_pwrite): Likewise for pwrite.
14929 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
14931 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
14932 between unsupported TYPE and unimplementable ADDR/LEN combination.
14933 (arm_insert_point): Act on new return value.
14935 2012-07-31 Pedro Alves <palves@redhat.com>
14937 * server.c (process_point_options): Only skip tokens if we find
14938 one that is unrecognized. Don't treat 'X' specially while
14939 skipping unrecognized tokens.
14941 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14943 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
14944 to 4-byte-align HW breakpoint addresses for Thumb.
14946 2012-07-27 Yao Qi <yao@codesourcery.com>
14950 * server.h: Declare gdb_agent_about_to_close.
14951 * target.c (kill_inferior): Include "agent.h".
14952 New. Send command 'kill'.
14953 * target.h (kill_inferior): Removed macro.
14954 * tracepoint.c (gdb_agent_about_to_close): New.
14955 (gdb_agent_helper_thread): Handle command 'close'.
14956 Wait endlessly until the inferior stops.
14957 Install gdb_agent_remove_socket to atexit hook.
14958 (agent_socket_name): New static variable.
14959 (gdb_agent_socket_init): Replace local variable 'name' with
14960 'agent_socket_name'.
14961 (gdb_agent_remove_socket): New.
14963 2012-07-27 Yao Qi <yao@codesourcery.com>
14965 * server.c (process_point_options): Stop at 'X' when parsing.
14967 2012-07-19 Michael Eager <eager@eagercon.com>
14969 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
14971 * linux-x86-low.c (x86_insert_point, x86_remove_point):
14972 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
14973 hardware breakpoint.
14975 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14977 * gdbserver/linux-low.c (initialize_low): Call
14978 linux_ptrace_init_warnings.
14980 2012-07-02 Doug Evans <dje@google.com>
14982 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
14985 2012-07-02 Stan Shebs <stan@codesourcery.com>
14987 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
14988 (ax.o): Add it to build rule.
14990 (OBS): Add format.o.
14991 (IPA_OBS): Add format.o.
14992 * server.c (handle_query): Claim support for breakpoint commands.
14993 (process_point_options): Add command case.
14994 (process_serial_event): Leave running if there are printfs in
14996 * mem-break.h (any_persistent_commands): Declare.
14997 (add_breakpoint_commands): Declare.
14998 (gdb_no_commands_at_breakpoint): Declare.
14999 (run_breakpoint_commands): Declare.
15000 * mem-break.c (struct point_command_list): New struct.
15001 (struct breakpoint): New field command_list.
15002 (any_persistent_commands): New function.
15003 (add_commands_to_breakpoint): New function.
15004 (add_breakpoint_commands): New function.
15005 (gdb_no_commands_at_breakpoint): New function.
15006 (run_breakpoint_commands): New function.
15007 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15009 * ax.c: Include format.h.
15010 (ax_printf): New function.
15011 (gdb_eval_agent_expr): Add printf opcode.
15013 2012-06-13 Yao Qi <yao@codesourcery.com>
15015 * server.c (start_inferior): Remove duplicated writes to fields
15016 'last_resume_kind' and 'last_status' of 'current_inferior'.
15018 2012-06-12 Yao Qi <yao@codesourcery.com>
15019 Pedro Alves <palves@redhat.com>
15021 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15023 * server.c (handle_v_cont): Extend comment.
15025 2012-06-11 Yao Qi <yao@codesourcery.com>
15027 * linux-low.c (linux_attach): Add 'static'.
15029 2012-06-06 Yao Qi <yao@codesourcery.com>
15031 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15033 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15035 Fix gcc -flto compilation warning.
15036 * server.c (main): Make variable multi_mode and attach volatile.
15038 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15040 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15041 if the platform doesn't know about it.
15043 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15045 * Makefile.in (SFILES): Add linux-tile-low.c.
15046 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15047 * configure.srv: Handle tilegx-*-linux*.
15048 * linux-tile-low.c: New file.
15050 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15052 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15054 2012-05-24 Pedro Alves <palves@redhat.com>
15058 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15060 2012-05-24 Pedro Alves <palves@redhat.com>
15064 Replace target_signal with gdb_signal throughout.
15066 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15068 * linux-low.c (linux_store_registers): Avoid the copying sequence
15069 when no data has been retrieved by ptrace.
15071 2012-05-22 Will Deacon <will.deacon@arm.com>
15073 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15074 Include asm/ptrace.h.
15075 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15078 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15080 * linux-low.c (linux_store_registers): Don't re-retrieve data
15081 with ptrace that has already been obtained from /proc. Always
15082 copy any data retrieved with ptrace to the buffer supplied.
15084 2012-05-11 Yao Qi <yao@codesourcery.com>
15085 Pedro Alves <palves@redhat.com>
15087 * linux-low.c (enum stopping_threads_kind): New.
15088 (stopping_threads): Change type to `enum stopping_threads_kind'.
15089 (handle_extended_wait): If stopping and suspending threads, leave
15090 the new_lwp suspended too.
15091 (linux_wait_for_event): Adjust.
15092 (stop_all_lwps): Set `stopping_threads' to
15093 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15094 whether we're suspending threads or just stopping them. Assert no
15097 2012-04-29 Yao Qi <yao@codesourcery.com>
15099 * server.h: Move some code to ...
15100 * gdbthread.h: ... here. New.
15101 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15102 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15103 (nto-low.o, win32-low.o): Likewise.
15104 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15105 * regcache.c, remote-utils.c, server.c: Likewise.
15106 * target.c, tracepoint.c, win32-low.c: Likewise.
15108 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15110 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15111 (PTRACE_ARG4_TYPE): Likewise.
15112 (PTRACE_XFER_TYPE): Likewise.
15113 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15114 ptrace to PTRACE_ARG3_TYPE.
15115 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15116 (PTRACE_ARG4_TYPE): Likewise.
15117 (PTRACE_XFER_TYPE): Likewise.
15118 (linux_detach_one_lwp): Cast fourth argument of
15119 ptrace to long then PTRACE_ARG4_TYPE.
15120 (regsets_fetch_inferior_registers): Cast third argument of
15121 ptrace to long then PTRACE_ARG3_TYPE.
15122 (regsets_store_inferior_registers): Likewise.
15124 2012-04-20 Pedro Alves <palves@redhat.com>
15126 * configure: Regenerate.
15128 2012-04-19 Pedro Alves <palves@redhat.com>
15130 * Makefile.in (GNULIB_BUILDDIR): New.
15131 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15132 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15133 (all, install-only, uninstall, clean-info, all-lib, clean): No
15134 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15135 (maintainer-clean realclean distclean): Use subdir_do.
15137 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15138 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15139 * acinclude.m4: Include acx_configure_dir.m4.
15140 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15141 calls. Call AC_PROG_RANLIB. Configure gnulib using
15144 (GNULIB_STDINT_H): Adjust.
15145 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15146 * gdbreplay.c: Include build-gnulib/config.h.
15147 * server.h: Likewise.
15148 * aclocal.m4: Regenerate.
15149 * config.in: Regenerate.
15150 * configure: Regenerate.
15152 2012-04-19 Pedro Alves <palves@redhat.com>
15154 * Makefile.in (LIBGNU, INCGNU): Adjust.
15155 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15156 (all, install-only, uninstall, clean-info, all-lib, clean)
15157 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15158 * configure.ac: Adjust AC_OUTPUT output.
15159 * aclocal.m4: Regenerate.
15160 * configure: Regenerate.
15162 2012-04-19 Pedro Alves <palves@redhat.com>
15164 * Makefile.in (generated_files): New.
15165 (server_h): Remove the explicit dependency on config.h, and depend
15166 on $generated_files.
15168 2012-04-19 Pedro Alves <palves@redhat.com>
15170 * Makefile.in (INCGNU): Add -Ignulib.
15172 2012-04-19 Pedro Alves <palves@redhat.com>
15174 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15175 (INCGNU): ... this, and spell out -I here.
15176 (GNULIB_LIB): Rename to ...
15177 (LIBGNU): ... this.
15178 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15180 2012-04-19 Pedro Alves <palves@redhat.com>
15182 * config.in: Regenerate.
15184 2012-04-19 Pedro Alves <palves@redhat.com>
15186 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15187 * server.h (memmem): Remove declaration.
15188 * config.in: Regenerate.
15189 * configure: Regenerate.
15191 2012-04-19 Yao Qi <yao@codesourcery.com>
15193 * Makefile.in (SFILES): Add common/vec.c.
15197 2012-04-19 Yao Qi <yao@codesourcery.com>
15199 * remote-utils.c (prepare_resume_reply): Replace with macro
15200 target_core_of_thread.
15201 * server.c (handle_qxfer_threads_proper): Likewise.
15202 * target.h (traget_core_of_thread): New macro.
15204 2012-04-18 Pedro Alves <palves@redhat.com>
15206 * aclocal.m4: Regenerate.
15207 * configure: Regenerate.
15209 2012-04-16 Yao Qi <yao@codesourcery.com>
15211 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15212 duplicated on address.
15214 2012-04-16 Yao Qi <yao@codesourcery.com>
15216 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15217 (struct tracepoint_action_ops) <send>: New field.
15218 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15219 (agent_expr_send, x_tracepoint_action_send): New.
15220 (l_tracepoint_action_send): New.
15221 (cmd_qtdp): Download and install tracepoint
15222 according to `use_agent'.
15223 (run_inferior_command): Add one more parameter `len'.
15225 (tracepoint_send_agent): New.
15226 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15228 2012-04-16 Yao Qi <yao@codesourcery.com>
15230 * tracepoint.c (download_tracepoints): Moved to ...
15231 (cmd_qtstart): ... here.
15233 2012-04-14 Yao Qi <yao@codesourcery.com>
15235 * tracepoint.c: Include inttypes.h.
15236 (struct collect_memory_action): Use sized types.
15237 (struct tracepoint): Likewise.
15238 (cmd_qtdp, stop_tracing): Update print specifiers.
15239 (cmd_qtp, response_tracepoint): Likewise.
15240 (collect_data_at_tracepoint): Likewise.
15241 (collect_data_at_step): Likewise.
15243 2012-04-14 Yao Qi <yao@codesourcery.com>
15245 Import gnulib module inttypes.
15246 * aclocal.m4, config.in, configure: Regenerated.
15248 2012-04-14 Yao Qi <yao@codesourcery.com>
15250 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15251 Makefile and config.status at last.
15253 2012-04-13 Yao Qi <yao@codesourcery.com>
15255 * tracepoint.c: Include stdint.h unconditionally.
15257 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15259 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15260 on BFD_HAVE_SYS_PROCFS_TYPE.
15261 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15262 * configure: Regenerate.
15263 * config.in: Likewise.
15265 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15267 * Makefile.in (clean): Also remove x32.c x32-linux.c
15268 x32-avx.c x32-avx-linux.c.
15269 (x32.o): New target.
15271 (x32-linux.o): Likewise.
15272 (x32-linux.c): Likewise.
15273 (x32-avx.o): Likewise.
15274 (x32-avx.c): Likewise.
15275 (x32-avx-linux.o): Likewise.
15276 (x32-avx-linux.c): Likewise.
15278 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15279 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15280 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15281 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15282 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15283 i386/x32-avx-linux.xml.
15285 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15286 (init_registers_x32_avx_linux): Likwise.
15287 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15288 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15290 2012-04-13 Pedro Alves <palves@redhat.com>
15292 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15293 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15294 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15295 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15298 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15300 * linux-x86-low.c (compat_x32_clock_t): New.
15301 (compat_x32_siginfo_t): Likewise.
15302 (compat_x32_siginfo_from_siginfo): Likewise.
15303 (siginfo_from_compat_x32_siginfo): Likewise.
15304 (linux_is_elf64): Likewise.
15305 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15306 and siginfo_from_compat_x32_siginfo for x32.
15307 (x86_arch_setup): Set linux_is_elf64.
15309 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15312 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15314 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15315 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15316 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15317 compatible with process.
15319 2012-04-12 Yao Qi <yao@codesourcery.com>
15321 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15322 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15323 (install-only, install-info, clean): Handle sub dir gnulib.
15324 (all-lib, am--refresh): New targets.
15325 (memmem.o): Remove target.
15326 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15327 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15328 (AC_REPLACE_FUNCS): Remove memmem.
15329 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15330 (AC_OUTPUT): Generate Makefile in gnulib/.
15331 * aclocal.m4, config.in, configure: Regenerated.
15333 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15335 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15337 2012-04-05 Pedro Alves <palves@redhat.com>
15339 -Werror=strict-aliasing
15341 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15344 2012-04-04 Pedro Alves <palves@redhat.com>
15346 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15347 (sparc_store_gregset_from_stack, sparc_store_gregset)
15348 (sparc_breakpoint_at): Fix formatting.
15350 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15352 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15354 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15355 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15356 * config.in: Regenerate.
15357 * configure: Likewise.
15359 2012-03-29 Pedro Alves <palves@redhat.com>
15361 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15362 Correct ptrace arguments.
15364 2012-03-28 Pedro Alves <palves@redhat.com>
15366 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15367 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15368 (IA64_FR1_REGNUM): New defines.
15369 (ia64_fetch_register): New.
15370 (the_low_target): Install it.
15371 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15373 * linux-low.c (linux_fetch_registers): Try the
15374 the_low_target.fetch_register hook first.
15376 * linux-arm-low.c (the_low_target): Adjust.
15377 * linux-bfin-low.c (the_low_target): Adjust.
15378 * linux-cris-low.c (the_low_target): Adjust.
15379 * linux-crisv32-low.c (the_low_target): Adjust.
15380 * linux-m32r-low.c (the_low_target): Adjust.
15381 * linux-m68k-low.c (the_low_target): Adjust.
15382 * linux-mips-low.c (the_low_target): Adjust.
15383 * linux-ppc-low.c (the_low_target): Adjust.
15384 * linux-s390-low.c (the_low_target): Adjust.
15385 * linux-sh-low.c (the_low_target): Adjust.
15386 * linux-sparc-low.c (the_low_target): Adjust.
15387 * linux-tic6x-low.c (the_low_target): Adjust.
15388 * linux-x86-low.c (the_low_target): Adjust.
15389 * linux-xtensa-low.c (the_low_target): Adjust.
15391 2012-03-26 Pedro Alves <palves@redhat.com>
15393 * server.c (handle_qxfer_libraries): Don't bail early if
15394 the_target->qxfer_libraries_svr4 is not NULL.
15396 2012-03-26 Pedro Alves <palves@redhat.com>
15398 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15400 2012-03-23 Pedro Alves <palves@redhat.com>
15402 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15403 "library-list-svr4" element's start tag when the the DSO list is
15406 2012-03-23 Pedro Alves <palves@redhat.com>
15408 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15409 a variable whose type size is the same as the inferior's pointer
15412 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15414 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15416 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15417 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15418 * linux-low.h: Include <signal.h>.
15419 (struct siginfo): Remove forward declaration.
15420 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15423 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15425 * .gitignore: Ignore more files.
15427 2012-03-19 Pedro Alves <palves@redhat.com>
15428 Jan Kratochvil <jan.kratochvil@redhat.com>
15430 * server.c (cont_thread, general_thread): Add describing comments.
15431 (start_inferior): Clear `cont_thread'.
15432 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15435 2012-03-15 Yao Qi <yao@codesourcery.com>
15437 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15439 (cmd_qtdp): ... here.
15441 2012-03-15 Yao Qi <yao@codesourcery.com>
15443 * tracepoint.c (struct tracepoint_action_ops): New.
15444 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15445 (m_tracepoint_action_download): New.
15446 (r_tracepoint_action_download): New.
15447 (x_tracepoint_action_download): New.
15448 (l_tracepoint_action_download): New.
15449 (add_tracepoint_action): Install `action->ops' according type.
15450 (download_tracepoint_1): Move code `download' function pointer
15451 of various tracepoint_action_ops.
15453 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15455 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15456 linux_ptrace_attach_warnings.
15458 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15460 * Makefile.in (linux-ptrace.o): New.
15461 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15462 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15463 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15464 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15465 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15467 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15469 2012-03-08 Yao Qi <yao@codesourcery.com>
15470 Pedro Alves <palves@redhat.com>
15472 Fix PR server/13392.
15473 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15474 offset of JMP insn.
15475 * tracepoint.c (remove_tracepoint): New.
15476 (cmd_qtdp): Call remove_tracepoint when failed to install.
15478 2012-03-07 Pedro Alves <palves@redhat.com>
15480 * linux-low.c (get_detach_signal): New.
15481 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15482 Pass on pending signals to PTRACE_DETACH. Check the result of the
15484 * server.c (program_signals, program_signals_p): New.
15485 (handle_general_set): Handle QProgramSignals.
15486 * server.h (program_signals, program_signals_p): Declare.
15488 2012-03-05 Pedro Alves <palves@redhat.com>
15489 Jan Kratochvil <jan.kratochvil@redhat.com>
15491 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15494 2012-03-03 Yao Qi <yao@codesourcery.com>
15496 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15497 agent_look_up_symbols.
15499 2012-03-03 Yao Qi <yao@codesourcery.com>
15501 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15502 (linux-x86-low.o): Likewise.
15503 * server.h: Remove in_process_agent_loaded.
15504 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15508 2012-03-03 Yao Qi <yao@codesourcery.com>
15510 * tracepoint.c (gdb_agent_capability): New global.
15511 (in_process_agent_loaded_ust): Renamed to
15512 `in_process_agent_supports_ust'.
15514 (in_process_agent_supports_ust): Call agent_capability_check.
15515 (clear_installed_tracepoints): Assert that agent supports
15518 2012-03-03 Yao Qi <yao@codesourcery.com>
15520 * linux-low.c (linux_supports_agent): New.
15521 (linux_target_ops): Initialize field `supports_agent' with
15522 linux_supports_agent.
15523 * target.h (struct target_ops) <supports_agent>: New.
15524 (target_supports_agent): New macro.
15525 * server.c (handle_general_set): Handle packet 'QAgent'.
15526 (handle_query): Send `QAgent+'.
15527 * Makefile.in (server.o): Depends on agent.h.
15529 2012-03-03 Yao Qi <yao@codesourcery.com>
15531 * Makefile.in (OBS): Add agent.o.
15532 Add new rule for agent.o.
15533 Track dependence of tracepoint.c on agent.h.
15534 * tracepoint.c (run_inferior_command_1):
15535 (run_inferior_command): Call agent_run_command.
15536 (gdb_ust_connect_sync_socket): Deleted. Move it to
15538 (resume_thread, stop_thread): Likewise.
15539 (gdb_ust_socket_init): Renamed to ...
15540 (gdb_agent_socket_init): ... New.
15541 (gdb_ust_thread): Renamed to ...
15542 (gdb_agent_helper_thread): ... New.
15543 (gdb_ust_init): Move some code to ...
15544 (gdb_agent_init): ... here. New.
15545 [HAVE_UST]: Call gdb_ust_init.
15546 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15547 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15548 * config.in, configure: Regenerated.
15550 2012-03-02 Pedro Alves <palves@redhat.com>
15552 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15553 * linux-low.c (struct simple_pid_list): New.
15554 (stopped_pids): New a struct simple_pid_list pointer.
15555 (add_to_pid_list, pull_pid_from_list): New.
15556 (handle_extended_wait): Don't assume the first signal new children
15557 report is SIGSTOP. Adjust call to pull_pid_from_list.
15558 (linux_wait_for_lwp): Adjust.
15560 2012-03-02 Yao Qi <yao@codesourcery.com>
15562 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15565 2012-03-02 Yao Qi <yao@codesourcery.com>
15567 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15568 `stop_pc' and `tpoint'. Update caller.
15570 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15572 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15573 * linux-low.c (use_linux_regsets): New macro.
15574 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15575 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15576 (linux_register_in_regsets): New function.
15577 (usr_fetch_inferior_registers): Skip registers covered by
15579 (usr_store_inferior_registers): Likewise.
15580 (usr_fetch_inferior_registers): New macro.
15581 (usr_store_inferior_registers): Likewise.
15582 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15583 (linux_store_registers): Likewise.
15584 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15586 (init_registers_mips64_dsp_linux): Likewise.
15587 (init_registers_mips_linux): New macro.
15588 (init_registers_mips_dsp_linux): Likewise.
15589 (mips_dsp_num_regs): Likewise.
15590 (DSP_BASE, DSP_CONTROL): New fallback macros.
15591 (mips_base_regs): New macro.
15592 (mips_regmap): Use it. Fix the size.
15593 (mips_dsp_regmap): New variable.
15594 (mips_dsp_regset_bitmap): Likewise.
15595 (mips_arch_setup): New function.
15596 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15598 (mips_cannot_store_register): Likewise.
15599 (the_low_target): Update .arch_setup, .num_regs and .regmap
15600 initializers. Add .regset_bitmap initializer.
15601 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15603 * linux-bfin-low.c (the_low_target): Likewise.
15604 * linux-cris-low.c (the_low_target): Likewise.
15605 * linux-crisv32-low.c (the_low_target): Likewise.
15606 * linux-ia64-low.c (the_low_target): Likewise.
15607 * linux-m32r-low.c (the_low_target): Likewise.
15608 * linux-m68k-low.c (the_low_target): Likewise.
15609 * linux-ppc-low.c (the_low_target): Likewise.
15610 * linux-s390-low.c (the_low_target): Likewise.
15611 * linux-sh-low.c (the_low_target): Likewise.
15612 * linux-sparc-low.c (the_low_target): Likewise.
15613 * linux-tic6x-low.c (the_low_target): Likewise.
15614 * linux-x86-low.c (the_low_target): Likewise.
15615 * linux-xtensa-low.c (the_low_target): Likewise.
15616 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15617 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15618 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15620 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15621 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15623 2012-02-29 Yao Qi <yao@codesourcery.com>
15624 Pedro Alves <palves@redhat.com>
15626 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15627 `step_over_finished' is true.
15629 2012-02-27 Pedro Alves <palves@redhat.com>
15631 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15632 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15634 2012-02-27 Pedro Alves <palves@redhat.com>
15637 * linux-low.c (pid_is_stopped): New.
15638 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15640 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15642 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15645 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15647 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15649 2012-02-24 Luis Machado <lgustavo@codesourcery>
15651 * server.c (handle_query): Advertise support for target-side
15652 breakpoint condition evaluation.
15653 (process_point_options): New function.
15654 (process_serial_event): When inserting a breakpoint, check for
15655 a target-side condition that should be evaluated.
15657 * mem-break.c: Include regcache.h and ax.h.
15658 (point_cond_list_t): New data structure.
15659 (breakpoint) <cond_list>: New field.
15660 (find_gdb_breakpoint_at): Make non-static.
15661 (delete_gdb_breakpoint_at): Clear any target-side
15663 (clear_gdb_breakpoint_conditions): New function.
15664 (add_condition_to_breakpoint): Likewise.
15665 (add_breakpoint_condition): Likewise.
15666 (gdb_condition_true_at_breakpoint): Likewise.
15667 (gdb_breakpoint_here): Return result directly instead
15668 of going through a local variable.
15670 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15671 (clear_gdb_breakpoint_conditions): Likewise.
15672 (add_breakpoint_condition): Likewise.
15673 (gdb_condition_true_at_breakpoint): Likewise.
15675 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15676 (need_step_over_p): Take target-side breakpoint condition into
15679 2012-02-24 Luis Machado <lgustavo@codesourcery>
15681 * server.h: Include tracepoint.h.
15682 (agent_mem_read, agent_get_trace_state_variable_value,
15683 agent_set_trace_state_variable_value,
15684 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15685 get_set_tsv_func_addr): New prototypes.
15687 * ax.h: New include file.
15688 * ax.c: New source file.
15690 * tracepoint.c: Include ax.h.
15691 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15692 agent_expr, eval_result_type): Move to ax.h.
15693 (parse_agent_expr): Rename to ...
15694 (gdb_parse_agent_expr): ... this, make it non-static and move
15696 (unparse_agent_expr) Rename to ...
15697 (gdb_unparse_agent_expr): ... this, make it non-static and move
15699 (eval_agent_expr): Rename to ...
15700 (eval_tracepoint_agent_expr): ... this.
15701 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15702 forward declarations.
15703 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15704 (agent_get_trace_state_variable_value): New function.
15705 (agent_set_trace_state_variable_value): New function.
15706 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15707 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15708 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15709 (condition_true_at_tracepoint): Likewise.
15710 (parse_agent_expr): Rename to ...
15711 (gdb_parse_agent_expr): ... this and move to ax.c.
15712 (unparse_agent_expr): Rename to ...
15713 (gdb_unparse_agent_expr): ... this and move to ax.c.
15714 (gdb_agent_op_name): Move to ax.c.
15715 (eval_agent_expr): Rename to ...
15716 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15718 (eval_tracepoint_agent_expr): New function.
15719 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15721 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15723 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15724 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15725 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15726 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15727 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15728 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15729 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15730 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15731 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15732 (compile_bytecodes): Remove forward declaration.
15733 (is_goto_target): Move to ax.c.
15734 (compile_bytecodes): Move to ax.c and call
15735 agent_get_trace_state_variable_value (...) and
15736 agent_set_trace_state_variable_value (...).
15738 * Makefile.in: Update ax.c and IPA dependencies.
15740 2012-02-24 Pedro Alves <palves@redhat.com>
15742 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15743 (cmd_bigqtbuffer_circular): ... this. Only handle
15744 'QTBuffer:circular:'.
15745 (handle_tracepoint_general_set): Adjust.
15747 2012-02-16 Yao Qi <yao@codesourcery.com>
15749 * inferiors.c: Move code to ...
15750 * dll.c: .... here. New.
15751 * server.h: Declare clear_dlls.
15752 * Makefile.in (SFILES): Add dll.c.
15756 2012-02-11 Yao Qi <yao@codesourcery.com>
15758 * server.c: (handle_monitor_command): Add a new parameter
15760 (handle_query): Update caller.
15762 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15764 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15765 * configure, config.in: Regenerate.
15766 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15769 2012-02-02 Pedro Alves <palves@redhat.com>
15771 Try SIGKILL first, then PTRACE_KILL.
15772 * linux-low.c (linux_kill_one_lwp): New.
15773 (linux_kill_one_lwp): Rename to ...
15774 (kill_one_lwp_callback): ... this. Use the new
15775 linux_kill_one_lwp.
15777 2012-02-02 Pedro Alves <palves@redhat.com>
15779 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15782 2012-01-27 Pedro Alves <palves@redhat.com>
15784 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15785 (elf_64_file_p): Make static.
15786 (linux_pid_exe_is_elf_64_file): New.
15787 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15788 Delete declarations.
15789 (linux_pid_exe_is_elf_64_file): Declare.
15790 * linux-x86-low.c (x86_arch_setup): Use
15791 linux_pid_exe_is_elf_64_file.
15793 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15795 * linux-low.c (linux_wait_for_event_1): Rename to ...
15796 (linux_wait_for_event): ... here and merge it with former
15797 linux_wait_for_event - new variable wait_ptid, use it.
15798 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15800 2012-01-23 Pedro Alves <palves@redhat.com>
15802 * server.c (main): Avoid yet another case of infinite loop while
15803 detaching/killing after a longjmp.
15805 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
15808 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
15810 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
15812 * hostio.c (handle_readlink): New function.
15813 (handle_vFile): Call it to handle "vFile:readlink" packets.
15815 2012-01-20 Pedro Alves <palves@redhat.com>
15816 Ulrich Weigand <ulrich.weigand@linaro.org>
15818 * server.c (handle_v_requests): Only support vAttach and vRun to
15819 start multiple processes when in extended protocol mode.
15821 2012-01-17 Pedro Alves <palves@redhat.com>
15823 * tracepoint.c (initialize_tracepoint): Use mmap instead of
15824 memalign plus mprotect to allocate the scratch buffer.
15826 2012-01-13 Pedro Alves <palves@redhat.com>
15828 * server.c (attach_inferior): Clear `cont_thread'.
15830 2012-01-13 Pedro Alves <palves@redhat.com>
15832 * server.c (main): Avoid infinite loop while detaching/killing
15835 2012-01-09 Doug Evans <dje@google.com>
15837 * server.c (start_inferior): Set last_ptid in --wrapper case.
15839 2012-01-06 Yao Qi <yao@codesourcery.com>
15841 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
15843 [IN_PROCESS_AGENT] (debug_agent): New global variable.
15845 2012-01-04 Yao Qi <yao@codesourcery.com>
15847 * tracepoint.c (cmd_qtdp): Print debug message
15848 for static tracepoint.
15850 2012-01-04 Yao Qi <yao@codesourcery.com>
15852 * tracepoint.c (trace_vdebug): Differentiate debug message
15853 between gdbserver and IPA.
15855 2012-01-03 Yao Qi <yao@codesourcery.com>
15857 * tracepoint.c (tracepoint_was_hit): Don't collect for
15860 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15862 * terminal.h: Reformat copyright header.
15864 2012-01-02 Joel Brobecker <brobecker@adacore.com>
15866 * server.c (gdbserver_version): Update copyright year.
15867 * gdbreplay.c (gdbreplay_version): Likewise.
15869 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
15871 * linux-low.c (linux_create_inferior): Put empty if clause for write.
15874 2011-12-18 Hui Zhu <teawater@gmail.com>
15875 * linux-low.c (linux_create_inferior): Save return value to ret.
15877 2011-12-18 Hui Zhu <teawater@gmail.com>
15879 * linux-low.c (linux_create_inferior): Save return value to ret.
15881 2011-12-16 Doug Evans <dje@google.com>
15883 * linux-low.c (linux_create_inferior): If stdio connection,
15884 redirect stdin from /dev/null, stdout to stderr.
15885 * remote-utils.c (remote_is_stdio): New static global.
15886 (remote_connection_is_stdio): New function.
15887 (remote_prepare): Handle stdio connection.
15888 (remote_open): Ditto.
15889 (remote_close): Don't close stdin for stdio connections.
15890 (read_prim,write_prim): New functions. Replace all calls to
15891 read/write to these.
15892 * server.c (main): Watch for "-" argument. Move call to
15893 remote_prepare before start_inferior.
15894 * server.h (STDIO_CONNECTION_NAME): New macro.
15895 (remote_connection_is_stdio): Declare.
15897 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
15898 in debugging output.
15900 2011-12-15 Yao Qi <yao@codesourcery.com>
15902 * tracepoint.c: Include sys/syscall.h.
15903 (gdb_ust_thread): Remove preprocessor conditional.
15905 2011-12-14 Pedro Alves <pedro@codesourcery.com>
15907 * linux-low.c (linux_detach_one_lwp): Call
15908 the_low_target.prepare_to_resume before detaching.
15910 2011-12-14 Yao Qi <yao@codesourcery.com>
15912 * tracepoint.c (gdb_ust_thread): Don't ignore return value
15915 2011-12-14 Yao Qi <yao@codesourcery.com>
15917 * i386-low.c (i386_low_stopped_data_address): Initialize local
15918 variable `control'.
15920 2011-12-13 Pedro Alves <pedro@codesourcery.com>
15924 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
15925 DR_CONTROL unless necessary. Extend comments.
15926 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
15927 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
15929 2011-12-13 Yao Qi <yao@codesourcery.com>
15931 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
15933 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
15935 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
15937 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
15938 Print new debug message for such case.
15940 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
15942 Fix overlapping memcpy.
15943 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
15944 the read_inferior_memory transfer.
15945 (delete_fast_tracepoint_jump): New variable buf. Use it for the
15946 write_inferior_memory transfer.
15947 (set_fast_tracepoint_jump): New variable buf. Use it for the
15948 read_inferior_memory and write_inferior_memory transfers.
15949 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
15950 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
15951 Use it for the write_inferior_memory transfer.
15952 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
15955 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15957 * linux-low.c (fetch_register, store_register): Make code
15958 consistent, fix formatting.
15960 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
15962 * linux-low.c (usr_store_inferior_registers): Factor out code
15963 to handle individual registers into...
15964 (store_register): ... this new function.
15966 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
15968 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
15969 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
15970 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
15971 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
15972 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
15973 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
15974 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
15975 (srv_xmlfiles): Add new XML files.
15977 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
15979 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
15980 (init_registers_s390_linux32v1): Add prototype.
15981 (init_registers_s390_linux32v2): Likewise.
15982 (init_registers_s390_linux64v1): Likewise.
15983 (init_registers_s390_linux64v2): Likewise.
15984 (init_registers_s390x_linux64v1): Likewise.
15985 (init_registers_s390x_linux64v2): Likewise.
15986 (s390_num_regs): Increment to 52.
15987 (s390_regmap): Add orig_r2 register.
15988 (s390_num_regs_3264): Increment to 68.
15989 (s390_regmap_3264): Add orig_r2 register.
15990 (s390_collect_ptrace_register): Handle orig_r2 register.
15991 (s390_supply_ptrace_register): Likewise.
15992 (s390_fill_last_break): New function.
15993 (s390_store_last_break): Likewise.
15994 (s390_fill_system_call): New function.
15995 (s390_store_system_call): Likewise.
15996 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
15998 (s390_check_regset): New function.
15999 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16000 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16001 Update target_regsets for available register sets.
16003 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16004 Jan Kratochvil <jan.kratochvil@redhat.com>
16006 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16007 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16009 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16010 * linux-low.h (struct process_info_private): New member r_debug.
16011 * server.c (handle_qxfer_libraries): Call
16012 the_target->qxfer_libraries_svr4.
16013 (handle_qxfer_libraries_svr4): New function.
16014 (qxfer_packets): New entry "libraries-svr4".
16015 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16016 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16017 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16018 PACKET_qXfer_libraries_svr4.
16020 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16022 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16023 PSW address/mask between 8-byte and 16-byte formats.
16024 (s390_supply_ptrace_register): Likewise.
16025 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16026 basic addressing mode bit.
16028 2011-11-24 Stan Shebs <stan@codesourcery.com>
16030 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16032 2011-11-17 Stan Shebs <stan@codesourcery.com>
16034 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16035 (tracing_start_time): New global.
16036 (tracing_stop_time): New global.
16037 (tracing_user_name): New global.
16038 (tracing_notes): New global.
16039 (tracing_stop_note): New global.
16040 (cmd_qtstart): Set traceframe_usage, start_time.
16041 (stop_tracing): Set stop_time.
16042 (cmd_qtstatus): Report additional status.
16043 (cmd_qtp): New function.
16044 (handle_tracepoint_query): Call it.
16045 (cmd_qtnotes): New function.
16046 (handle_tracepoint_general_set): Call it.
16047 (get_timestamp): Rename from tsv_get_timestamp.
16049 2011-11-14 Stan Shebs <stan@codesourcery.com>
16050 Kwok Cheung Yeung <kcy@codesourcery.com>
16052 * linux-x86-low.c (small_jump_insn): New.
16053 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16054 trampoline and error message, build a trampoline and issue a small
16055 jump instruction to it.
16056 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16057 trampoline and error message.
16058 (x86_get_min_fast_tracepoint_insn_len): New.
16059 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16060 * linux-low.h (struct linux_target_ops): Add arguments to
16061 install_fast_tracepoint_jump_pad operation, add new operation.
16062 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16064 (linux_get_min_fast_tracepoint_insn_len): New function.
16065 (linux_target_op): Add new operation.
16066 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16067 (gdb_trampoline_buffer_end): Ditto.
16068 (gdb_trampoline_buffer_error): Ditto.
16069 (struct ipa_sym_addresses): Add fields for new IPA variables.
16070 (symbol_list): Add entries for new IPA variables.
16071 (struct tracepoint): Add fields to hold the address range of the
16072 trampoline used by the tracepoint.
16073 (trampoline_buffer_head): New static variable.
16074 (trampoline_buffer_tail): Ditto.
16075 (claim_trampoline_space): New function.
16076 (have_fast_tracepoint_trampoline_buffer): New function.
16077 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16079 (install_fast_tracepoint): Ditto, also add error buffer argument.
16080 (cmd_qtminftpilen): New function.
16081 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16082 (fast_tracepoint_from_trampoline_address): New function.
16083 (fast_tracepoint_collecting): Handle trampoline as part of jump
16085 (set_trampoline_buffer_space): New function.
16086 (initialize_tracepoint): Initialize new IPA variables.
16087 * target.h (struct target_ops): Add arguments to
16088 install_fast_tracepoint_jump_pad operation, add new
16089 get_min_fast_tracepoint_insn_len operation.
16090 (target_get_min_fast_tracepoint_insn_len): New.
16091 (install_fast_tracepoint_jump_pad): Add arguments.
16092 * server.h (IPA_BUFSIZ): Define.
16093 * linux-i386-ipa.c: Include extra header files.
16094 (initialize_fast_tracepoint_trampoline_buffer): New function.
16095 (initialize_low_tracepoint): Call it.
16096 * server.h (set_trampoline_buffer_space): Declare.
16097 (claim_trampoline_space): Ditto.
16098 (have_fast_tracepoint_trampoline_buffer): Ditto.
16100 2011-11-14 Yao Qi <yao@codesourcery.com>
16102 * server.c (handle_query): Handle InstallInTrace for qSupported.
16103 * tracepoint.c (add_tracepoint): Sort list.
16104 (install_tracepoint, download_tracepoint): New.
16105 (cmd_qtdp): Call them to install and download tracepoints.
16106 (sort_tracepoints): Removed.
16107 (cmd_qtstart): Update.
16109 2011-11-14 Yao Qi <yao@codesourcery.com>
16111 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16112 * mem-break.h: Declare.
16113 * tracepoint.c (cmd_qtstart): Move some code to ...
16114 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16116 (download_tracepoints): Move some code to ...
16117 (download_tracepoint_1): ... here. New.
16119 2011-11-08 Yao Qi <yao@codesourcery.com>
16121 * remote-utils.c (relocate_instruction): A comment fix.
16123 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16125 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16126 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16127 dr_status_mirror and dr_control_mirror from debug_reg_state.
16128 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16129 (i386_initial_stuff): Remove use of deleted globals.
16130 (i386_get_thread_context, i386_set_thread_context,
16131 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16132 from debug_reg_state.
16134 2011-11-05 Yao Qi <yao@codesourcery.com>
16136 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16137 address as TPOINT's.
16139 2011-11-02 Stan Shebs <stan@codesourcery.com>
16141 * tracepoint.c (agent_mem_read_string): New function.
16142 (eval_agent_expr): Call it for tracenz.
16143 * server.c (handle_query): Report support for tracenz.
16145 2011-11-02 Yao Qi <yao@codesourcery.com>
16147 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16149 2011-11-02 Yao Qi <yao@codesourcery.com>
16151 * target.h: Fix a typo in comment.
16153 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16155 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16156 clobber the breakpoints' shadows with fast tracepoint jumps.
16157 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16158 * target.c (write_inferior_memory): Also pass MYADDR down to
16161 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16163 * configure.ac: Check support for personality routine.
16164 * configure: Regenerate.
16165 * config.in: Likewise.
16166 * linux-low.c: Include <sys/personality.h>.
16167 Define ADDR_NO_RANDOMIZE if necessary.
16168 (linux_create_inferior): Disable address space randomization when
16169 forking inferior, if requested.
16170 (linux_supports_disable_randomization): New function.
16171 (linux_target_ops): Install it.
16172 * server.h (disable_randomization): Declare.
16173 * server.c (disable_randomization): New global variable.
16174 (handle_general_set): Handle QDisableRandomization.
16175 (handle_query): Likewise for qSupported.
16176 (main): Support --disable-randomization and --no-disable-randomization
16177 command line arguments.
16178 * target.h (struct target_ops): Add supports_disable_randomization.
16179 (target_supports_disable_randomization): New macro.
16181 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16183 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16185 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16186 [!PT_GETDSBT] (target_loadmap): New definition.
16187 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16188 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16189 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16190 and PT_GETDSBT to LINUX_LOADMAP.
16191 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16192 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16194 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16196 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16197 (arm_linux_hwbp_cap): New static variable.
16198 (arm_linux_get_hwbp_cap): Replace by ...
16199 (arm_linux_init_hwbp_cap): ... this new function.
16200 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16201 (arm_linux_get_hw_watchpoint_count): Likewise.
16202 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16203 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16204 (arm_prepare_to_resume): Use perror_with_name instead of error.
16206 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16208 * linux-arm-low.c: Include <signal.h>.
16209 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16210 (struct arm_linux_hwbp_cap): New data type.
16211 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16212 (struct arm_linux_hw_breakpoint): New data type.
16213 (MAX_BPTS, MAX_WPTS): Define.
16214 (struct arch_process_info, struct arch_lwp_info): New data types.
16215 (arm_linux_get_hwbp_cap): New function.
16216 (arm_linux_get_hw_breakpoint_count): Likewise.
16217 (arm_linux_get_hw_watchpoint_count): Likewise.
16218 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16219 (arm_hwbp_control_initialize): Likewise.
16220 (arm_hwbp_control_is_enabled): Likewise.
16221 (arm_hwbp_control_is_initialized): Likewise.
16222 (arm_hwbp_control_disable): Likewise.
16223 (arm_linux_hw_breakpoint_equal): Likewise.
16224 (arm_linux_hw_point_initialize): Likewise.
16225 (struct update_registers_data): New data structure.
16226 (update_registers_callback: New function.
16227 (arm_insert_point): Likewise.
16228 (arm_remove_point): Likewise.
16229 (arm_stopped_by_watchpoint): Likewise.
16230 (arm_stopped_data_address): Likewise.
16231 (arm_new_process): Likewise.
16232 (arm_new_thread): Likewise.
16233 (arm_prepare_to_resume): Likewise.
16234 (the_low_target): Register arm_insert_point, arm_remove_point,
16235 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16236 arm_new_thread, and arm_prepare_to_resume.
16238 2011-09-15 Stan Shebs <stan@codesourcery.com>
16240 * server.h (struct emit_ops): Add compare-goto fields.
16241 * tracepoint.c (gdb_agent_op_sizes): New table.
16242 (emit_eq_goto): New function.
16243 (emit_ne_goto): New function.
16244 (emit_lt_goto): New function.
16245 (emit_le_goto): New function.
16246 (emit_gt_goto): New function.
16247 (emit_ge_goto): New function.
16248 (is_goto_target): New function.
16249 (compile_bytecodes): Recognize special cases of compare-goto
16250 combinations and call specialized emitters for them.
16251 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16252 (amd64_emit_ne_goto): New function.
16253 (amd64_emit_lt_goto): New function.
16254 (amd64_emit_le_goto): New function.
16255 (amd64_emit_gt_goto): New function.
16256 (amd64_emit_ge_goto): New function.
16257 (amd64_emit_ops): Add the new functions.
16258 (i386_emit_eq_goto): New function.
16259 (i386_emit_ne_goto): New function.
16260 (i386_emit_lt_goto): New function.
16261 (i386_emit_le_goto): New function.
16262 (i386_emit_gt_goto): New function.
16263 (i386_emit_ge_goto): New function.
16264 (i386_emit_ops): Add the new functions.
16266 2011-09-08 Stan Shebs <stan@codesourcery.com>
16268 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16269 (i386_emit_epilogue): Restore %ebx.
16271 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16273 * server.c (step_thread): Remove definition.
16274 (process_serial_event): Don't handle Hs.
16275 * server.h (step_thread): Remove declaration.
16276 * target.c (set_desired_inferior): Remove use of step_thread.
16278 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16280 * linux-low.c: Include linux-procfs.h.
16281 (linux_attach_lwp_1): Update comments.
16282 (linux_attach): Scan for existing threads when attaching to a
16283 process that is the tgid.
16284 * Makefile.in: Update dependencies.
16286 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16288 * configure.srv: Add linux-procfs.o dependencies.
16290 2011-08-14 Yao Qi <yao@codesourcery.com>
16292 * target.h (struct target_ops): Fix indent.
16293 * win32-low.c (win32_target_ops): Fix comment.
16295 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16296 Yao Qi <yao@codesourcery.com>
16298 * Makefile.in (clean): Remove tic6x-*.c files.
16299 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16300 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16301 (tic6x-c64xp-linux.c): Likewise.
16302 * configure.srv: Add support for tic6x-*-uclinux.
16303 * linux-tic6x-low.c: New.
16304 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16306 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16307 Yao Qi <yao@codesourcery.com>
16309 * target.h (struct target_ops): Add read_loadmap.
16310 * linux-low.c (struct target_loadseg): New type.
16311 (struct target_loadmap): New type.
16312 (linux_read_loadmap): New function.
16313 (linux_target_ops): Add linux_read_loadmap.
16314 * server.c (handle_query): Support qXfer:fdpic:read packet.
16315 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16318 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16320 * win32-low.c: Include <stdint.h>.
16322 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16324 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16325 to the inferior here.
16326 (i386_remove_aligned_watchpoint): Ditto.
16327 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16328 fit part of the watchpoint in the debug registers.
16329 (i386_update_inferior_debug_regs): New.
16330 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16331 registers, and only update the inferior on success.
16332 (i386_low_remove_watchpoint): Ditto.
16334 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16336 * linux-low.c (compare_ints, unique, list_threads, show_process,
16337 linux_core_of_thread): Delete.
16338 (linux_target_ops): Change linux_core_of_thread to
16339 linux_common_core_of_thread.
16340 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16341 * utils.c (malloc_failure): Change type of argument.
16342 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16343 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16344 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16345 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16346 (IPA_OBJS): Add common-utils-ipa.o.
16347 (ptid_h, linux_osdata_h): New macros.
16348 (server_h): Add common/common-utils.h, common/xml-utils.h,
16349 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16351 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16352 ptid.o, buffer.o): New rules.
16353 (linux-low.o): Add common/linux-osdata.h as a dependency.
16354 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16355 * configure.ac: Add AC_HEADER_DIRENT check.
16356 * config.in: Regenerate.
16357 * configure: Regenerate.
16358 * remote-utils.c (xml_escape_text): Delete.
16359 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16360 buffer_xml_printf): Move to common/buffer.c.
16361 * server.c (main): Remove call to initialize_inferiors.
16362 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16363 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16364 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16365 internal_error, gdb_assert, gdb_assert_fail): Delete.
16366 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16367 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16369 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16370 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16371 initialize_inferiors): Delete.
16373 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16375 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16378 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16380 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16382 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16384 2011-05-26 Yao Qi <yao@codesourcery.com>
16386 * Makefile.in (thread-db.o): Track dependence to
16387 common/gdb_thread_db.h.
16388 * thread-db.c: include gdb_thread_db.h from right place.
16390 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16392 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16393 __FILE__ and __LINE__ to internal_error.
16395 2011-05-13 Doug Evans <dje@google.com>
16397 * thread-db.c (try_thread_db_load_from_sdir): New function.
16398 (try_thread_db_load_from_dir): New function.
16399 (thread_db_load_search): Handle $sdir, ignore $pdir.
16400 Remove trying of system directories if search of
16401 libthread-db-search-path fails, that is now done via $sdir.
16403 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16405 * server.c (handle_query): Add EnableDisableTracepoints to the list
16406 of supported features.
16407 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16409 (cmd_qtenable_disable): New.
16410 (cmd_qtstart): Install tracepoints even if disabled.
16411 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16412 receiving a QTEnable or QTDisable packet.
16413 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16414 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16416 (gdb_probe): Skip data collection if static tracepoint is disabled.
16418 2011-05-10 Doug Evans <dje@google.com>
16420 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16422 2011-05-04 Doug Evans <dje@google.com>
16424 * linux-low.c (linux_join): Skip process lookup.
16425 * spu-low.c (spu_join): Ditto.
16426 * server.c (join_inferiors_callback): Delete.
16427 (process_serial_event): For 'D' packet (detach) call join_inferior
16430 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16432 * README: Don't mention xscale*-*-linux*.
16433 * configure.srv (xscale*-*-linux*): Don't handle target.
16435 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16437 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16439 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16440 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16441 (i386_emit_void_call_2): Likewise.
16443 2011-04-26 Yao Qi <yao@codesourcery.com>
16445 * linux-low.c: Move common macros to linux-ptrace.h.
16446 Include linux-ptrace.h.
16447 * Makefile.in (linux_ptrace_h): New.
16448 (linux-low.o): Depends on linux-ptrace.h.
16450 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16452 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16453 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16454 (remote_prepare): New function with most of the TCP code from ...
16455 (remote_open): ... here. Detect PORT here unconditionally. Move also
16456 setting transport_is_reliable.
16457 * server.c (run_once): New variable.
16458 (gdbserver_usage): Document it.
16459 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16460 the first run if RUN_ONCE.
16461 * server.h (run_once, remote_prepare): New declarations.
16463 2011-04-19 Tom Tromey <tromey@redhat.com>
16465 * win32-low.c (handle_load_dll): Remove duplicate "the".
16467 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16469 Remove support for old Cygwin 1.5 versions.
16470 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16471 function to avoid warning.
16472 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16475 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16477 * gdbserver/server.h (Macro _): Define it if not available.
16479 2011-03-14 Michael Snyder <msnyder@vmware.com>
16481 * hostio.c (handle_close): Remove unnecessary null test.
16483 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16485 * Makefile.in (maintainer-clean realclean distclean): Remove
16486 "make ... subdir_do" command.
16488 2011-03-10 Michael Snyder <msnyder@vmware.com>
16490 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16492 * server.c (handle_v_run): Free alloced buffer on early return.
16494 2011-03-09 Yao Qi <yao@codesourcery.com>
16497 2011-03-04 Yao Qi <yao@codesourcery.com>
16499 * Makefile.in: Remove GNU make feature --directory.
16501 2011-03-05 Yao Qi <yao@codesourcery.com>
16503 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16504 (subdir_do): New make target. Copied from gdb/Makefile.
16505 (maintainer-clean, realclean, distclean, clean): Call corresponding
16506 make targets in common/Makefile.
16508 2011-02-11 Yao Qi <yao@codesourcery.com>
16510 * configure.ac: Call AC_PROG_RANLIB.
16511 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16512 * configure: Regenerate.
16514 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16516 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16518 2011-03-06 Yao Qi <yao@codesourcery.com>
16520 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16522 2011-03-05 Yao Qi <yao@codesourcery.com>
16524 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16525 (subdir_do): New make target. Copied from gdb/Makefile.
16526 (maintainer-clean, realclean, distclean, clean): Call corresponding
16527 make targets in common/Makefile.
16529 2011-03-04 Yao Qi <yao@codesourcery.com>
16531 * Makefile.in: Remove GNU make feature --directory.
16533 2011-03-04 Michael Snyder <msnyder@vmware.com>
16535 * server.c (queue_stop_reply): Call xmalloc not malloc.
16537 2011-03-02 Michael Snyder <msnyder@vmware.com>
16539 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16541 2011-02-28 Michael Snyder <msnyder@vmware.com>
16543 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16544 (cmd_qtframe): Ditto.
16545 (cmd_qtbuffer): Ditto.
16546 (cmd_bigqtbuffer): Ditto.
16548 * utils.c (decimal2str): Initialize 'width' to nine, then
16549 don't mess with it.
16551 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16553 * hostio.c (require_data): Free *data, not data.
16555 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16557 * hostio.c (require_data): Use free, not xfree.
16559 2011-02-27 Michael Snyder <msnyder@vmware.com>
16561 * server.c (handle_query): Discard unused value.
16563 * hostio.c (require_data): Free malloc memory before returning
16566 2011-02-26 Michael Snyder <msnyder@vmware.com>
16568 * linux-low.c (list_threads): Call closedir for dirent.
16570 2011-02-27 Michael Snyder <msnyder@vmware.com>
16572 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16573 a case statement falls through.
16575 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16577 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16580 2011-02-26 Michael Snyder <msnyder@vmware.com>
16582 * utils.c (decimal2str): Eliminate dead code and dead param.
16583 (pulongest): Drop dead param from call to decimal2str.
16586 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16588 Revert the following patch (not approved yet):
16589 2011-02-21 Hui Zhu <teawater@gmail.com>
16590 * tracepoint.c (tp_printf): New function.
16591 (eval_agent_expr): Handle gdb_agent_op_printf.
16593 2011-02-21 Hui Zhu <teawater@gmail.com>
16595 * tracepoint.c (tp_printf): New function.
16596 (eval_agent_expr): Handle gdb_agent_op_printf.
16598 2011-02-18 Tom Tromey <tromey@redhat.com>
16600 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16601 (tracepoint.o): Likewise.
16602 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16603 (gdb_agent_op_names): Likewise.
16605 2011-02-18 Tom Tromey <tromey@redhat.com>
16607 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16608 gdb_agent_op_rot>: New constants.
16609 (gdb_agent_op_names): Add pick and roll.
16610 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16613 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16615 * aclocal.m4: Regenerated with aclocal-1.11.1.
16617 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16619 * server.c (handle_qxfer_traceframe_info): New.
16620 (qxfer_packets): Register "traceframe-info".
16621 (handle_query): Report support for qXfer:traceframe-info:read+.
16622 * tracepoint.c (match_blocktype): New.
16623 (traceframe_find_block_type): Rename to ...
16624 (traceframe_walk_blocks): ... this. Add callback filter argument,
16626 (traceframe_find_block_type): New, reimplemented on top of
16627 traceframe_walk_blocks.
16628 (build_traceframe_info_xml): New.
16629 (traceframe_read_info): New.
16630 * server.h (traceframe_read_info): Declare.
16632 2011-02-11 Yao Qi <yao@codesourcery.com>
16634 * configure.ac: Call AC_PROG_RANLIB.
16635 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16636 * configure: Regenerate.
16638 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16640 * server.c (gdb_read_memory): Change return semantics to allow
16642 (handle_search_memory_1): Adjust.
16643 (process_serial_event) <'m' packet>: Handle partial transfers.
16644 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16646 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16648 * regcache.c (init_register_cache): Initialize
16649 regcache->register_status.
16650 (free_register_cache): Release regcache->register_status.
16651 (regcache_cpy): Copy register_status.
16652 (registers_to_string): Print 'x's for unavailable registers.
16653 (supply_register): Mark the register's status valid or
16654 unavailable, depending on whether a buffer was passed in or not.
16655 (supply_register_zeroed): New.
16656 (supply_regblock): Mark the registers' status valid or
16657 unavailable, depending on whether a buffer was passed in or not.
16658 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16659 (struct regcache): New `register_status' field.
16660 (supply_register_zeroed): Declare.
16661 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16662 supply_register_zeroed, rather than passing a NULL buffer to
16664 * tracepoint.c (fetch_traceframe_registers): Update comment.
16666 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16668 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16671 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16673 * server.h (decode_xfer_write): Change prototype.
16674 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16675 and don't extract the annex here.
16676 * server.c (decode_xfer_read): Remove `annex' parameter,
16677 and don't extract the annex here.
16678 (decode_xfer): New.
16679 (struct qxfer): New.
16680 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16681 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16682 (handle_qxfer_statictrace): New functions, abstracted out from
16683 handle_query, and made to use the struct qxfer interface.
16684 (handle_threads_qxfer_proper): Rename to ...
16685 (handle_qxfer_threads_proper): ... this.
16686 (handle_threads_qxfer): Rename to ...
16687 (handle_qxfer_threads): ... this. Adjust.
16688 (qxfer_packets): New array.
16689 (handle_qxfer): New function.
16690 (handle_query): Use handle_qxfer.
16692 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16694 * gdbreplay.c: Shorten lines of >= 80 columns.
16695 * linux-low.c: Ditto.
16696 * linux-ppc-low.c: Ditto.
16697 * linux-s390-low.c: Ditto.
16698 * linux-sparc-low.c: Ditto.
16699 * linux-x86-low.c: Ditto.
16700 * linux-xtensa-low.c: Ditto.
16701 * mem-break.c: Ditto.
16702 * nto-low.c: Ditto.
16703 * regcache.h: Ditto.
16704 * remote-utils.c: Ditto.
16707 * thread-db.c: Ditto.
16708 * tracepoint.c: Ditto.
16710 * win32-low.h: Ditto.
16712 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16714 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16717 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16719 * server.c (gdbserver_version): Update copyright year in version
16721 * gdbreplay.c (gdbreplay_version): Ditto.
16723 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16725 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16726 * linux-bfin-low.c: New file.
16727 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16728 PT_DATA_ADDR for BFIN targets.
16729 * Makefile.in (SFILES): Add linux-bfin-low.c.
16730 (clean): Remove reg-bfin.c.
16731 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16732 * README: Mention supported Blackfin targets.
16734 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16736 * .gitignore: New file.
16738 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16740 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16742 2010-10-22 Jie Zhang <jie@codesourcery.com>
16744 * Makefile.in: Add FLAGS_TO_PASS variable.
16745 (install): Remove dependency of install-only and recursively
16746 invoke make for install-only.
16748 2010-10-04 Doug Evans <dje@google.com>
16750 * Makefile.in (uninstall): Use $(DESTDIR).
16752 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16756 * linux-x86-low.c (compat_siginfo_from_siginfo)
16757 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16758 si_code is < 0. Check for si_code == SI_TIMER before checking for
16761 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16763 * lynx-i386-low.c: New file.
16764 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16766 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16768 * lynx-low.c (ptrace_request_to_str): Remove handling for
16769 request values that have been removed in LynxOS 5.x.
16771 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16773 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16776 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16778 * configure.ac: Add --enable-inprocess-agent option.
16779 * configure: Rebuilt.
16781 2010-09-06 Yao Qi <yao@codesourcery.com>
16783 * linux-low.c (linux_kill): Remove unused variable.
16784 (linux_stabilize_threads): Likewise.
16785 * server.c (start_inferior): Likewise.
16786 (queue_stop_reply_callback): Likewise.
16787 * tracepoint.c (do_action_at_tracepoint): Likewise.
16789 2010-09-06 Yao Qi <yao@codesourcery.com>
16791 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16794 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16796 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16798 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16800 * Makefile.in (install-only): Replace $IPA_DEPFILES with
16803 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16805 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
16806 gdbserver/lynx-ppc-low.c: New files.
16807 * Makefile.in (lynx_low_h): New variable.
16808 (lynx-low.o, lynx-ppc-low.o): New rules.
16809 * configure.ac: On LynxOS, link with -lnetinet.
16810 * configure.srv: Add handling of powerpc-*-lynxos* targets.
16811 * configure: regenerate.
16813 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16815 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
16816 * configure.ac: Add check for vasprintf and vsnprintf.
16817 * configure, config.in: Regenerate.
16818 * server.h (vasprintf, vsnprintf): Add conditional declarations.
16820 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16822 * gdbreplay.c: Move include of alloca.h up, next to include of
16824 * server.h: Add include of malloc.h.
16825 * mem-break.c: Remove include of malloc.h.
16826 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
16828 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16830 * Makefile.in (memmem.o): Build with -Wno-error.
16832 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16834 * utils.c (xsnprintf): Make non-static.
16835 * server.h: Add xsnprintf declaration.
16836 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
16837 replace calls to snprintf by calls to xsnprintf throughout.
16839 2010-09-01 Joel Brobecker <brobecker@adacore.com>
16841 * configure.ac: Add configure check for alloca.
16842 * configure, config.in: Regenerate.
16843 * server.h: Include alloca.h if it exists.
16844 * gdbreplay.c: Include alloca.h if it exists.
16846 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16848 * linux-low.c (__SIGRTMIN): Define if not already defined.
16849 (linux_create_inferior): Check for __ANDROID__ rather than
16851 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
16852 are already deferred.
16853 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
16854 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
16855 stopped and already has a pending signal to report.
16856 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
16857 a pending signal to report or is moving out of a jump pad.
16858 (linux_init_signals): Check for __ANDROID__ rather than
16861 2010-08-28 Pedro Alves <pedro@codesourcery.com>
16863 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
16864 debug_threads check. Avoid a linear search when not doing debug
16867 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16869 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
16870 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
16871 (struct file_handler) <fd>: Change type to gdb_fildes_t.
16872 (process_event): Change local fd's type to gdb_fildes_t.
16873 (create_file_handler): Adjust prototype.
16874 (delete_file_handler): Adjust prototype.
16875 (handle_file_event): Adjust prototype. Use pfildes.
16876 (create_file_event): Adjsut prototype.
16877 * remote-utils.c (remote_desc, listen_desc): Change type to
16879 * server.h: New gdb_fildes_t typedef.
16880 [USE_WIN32API]: Include winsock2.h.
16881 (delete_file_handler, add_file_handler): Adjust prototypes.
16882 (pfildes): Declare.
16883 * utils.c (pfildes): New.
16885 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16887 * configure.ac (build_warnings): Add -Wno-char-subscripts.
16888 * configure: Regenerate.
16890 2010-08-27 Pedro Alves <pedro@codesourcery.com>
16892 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
16893 (linux_done_accessing_memory): ... this.
16894 (linux_target_ops): Adjust.
16895 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
16896 * nto-low.c (nto_target_ops): Adjust comment.
16897 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
16898 * spu-low.c (spu_target_ops): Adjust comment.
16899 * target.h (target_ops): Rename unprepare_to_access_memory field
16900 to done_accessing_memory.
16901 (unprepare_to_access_memory): Rename to ...
16902 (done_accessing_memory): ... this.
16904 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16906 * linux-low.c (linux_prepare_to_access_memory): New.
16907 (linux_unprepare_to_access_memory): New.
16908 (linux_target_ops): Install them.
16909 * server.c (read_memory): Rename to ...
16910 (gdb_read_memory): ... this. Use
16911 prepare_to_access_memory/prepare_to_access_memory.
16912 (write_memory): Rename to ...
16913 (gdb_write_memory): ... this. Use
16914 prepare_to_access_memory/prepare_to_access_memory.
16915 (handle_search_memory_1): Adjust.
16916 (process_serial_event): Adjust.
16917 * target.h (struct target_ops): New fields
16918 prepare_to_access_memory and unprepare_to_access_memory.
16919 (prepare_to_access_memory, unprepare_to_access_memory): New.
16920 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
16921 prepare_to_access_memory/prepare_to_access_memory.
16922 * nto-low.c (nto_target_ops): Adjust.
16923 * spu-low.c (spu_target_ops): Adjust.
16924 * win32-low.c (win32_target_ops): Adjust.
16926 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16928 * Makefile.in (WARN_CFLAGS): Get it from configure.
16929 (WERROR_CFLAGS): New.
16930 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
16931 * configure.ac: Introduce --enable-werror, which adds -Werror to
16932 the compiler command line. Enabled by default. Disable with
16933 --disable-werror. Add -Wdeclaration-after-statement
16934 Wpointer-arith and -Wformat-nonliteral to warning flags.
16935 * configure: Regenerate.
16937 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16939 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
16941 2010-08-26 Pedro Alves <pedro@codesourcery.com>
16943 * gdbreplay.c (remote_error): New.
16945 (expect): Use gdbchar. Check for error reading from GDB.
16946 Clarify sync error output.
16947 (play): Check for errors writing to GDB.
16948 * linux-low.c (sigchld_handler): Really ignore `write' errors.
16949 * remote-utils.c (getpkt): Check for errors writing to the remote
16952 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16954 * linux-low.c (linux_wait_1): Move non-debugging code out of
16955 `debug_threads' control.
16957 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16959 * linux-low.c (linux_wait_1): Don't set last_status here.
16960 * server.c (push_event, queue_stop_reply_callback): Assert we're
16961 not pushing a TARGET_WAITKIND_IGNORE event.
16962 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
16963 (myresume, handle_target_event): Set the thread's last_resume_kind
16964 and last_status from the target returned status.
16966 2010-08-25 Pedro Alves <pedro@codesourcery.com>
16970 * linux-x86-low.c (update_debug_registers_callback): New.
16971 (i386_dr_low_set_addr): Use it.
16972 (i386_dr_low_get_addr): New.
16973 (i386_dr_low_set_control): Use update_debug_registers_callback.
16974 (i386_dr_low_get_control): New.
16975 (i386_dr_low_get_status): Adjust.
16976 * linux-low.c (linux_stop_lwp): New.
16977 * linux-low.h (linux_stop_lwp): Declare.
16979 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
16980 argument instead of a i386_debug_reg_state.
16981 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
16982 a i386_debug_reg_state.
16983 (i386_insert_aligned_watchpoint): Adjust.
16984 (i386_remove_aligned_watchpoint): Adjust.
16985 (i386_low_stopped_data_address): Read the debug registers from the
16986 inferior instead of from the mirrors.
16987 * i386-low.h (struct i386_debug_reg_state): Extend comment.
16988 (i386_dr_low_get_addr): Declare.
16989 (i386_dr_low_get_control): Declare.
16990 (i386_dr_low_get_status): Change prototype.
16992 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
16993 (i386_dr_low_get_addr): New.
16994 (i386_dr_low_get_control): New.
16995 (i386_dr_low_get_status): Adjust prototype. Return
16997 (i386_initial_stuff): Clear dr_status_mirror and
16999 (i386_get_thread_context): Adjust.
17000 (i386_set_thread_context): Adjust.
17001 (i386_thread_added): Adjust.
17003 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17005 * linux-low.h (linux_thread_area): Delete declaration.
17007 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17009 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17010 after its termination.
17012 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17014 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17015 (gdb_wants_all_stopped): Delete.
17016 (linux_wait_1): Don't call them.
17017 * server.c (handle_v_cont): Tag all threads as want-stopped.
17018 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17019 stopped as "client-wants-stopped".
17021 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17023 * Makefile.in (signals_h): New.
17024 (server_h): Depend on it.
17025 (server.o): Don't depend on $(signals_def).
17026 (signals.o): Depend on $(signals_def).
17028 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17030 * Makefile.in (signals_def): New.
17031 (server_h): Append include/gdb/signals.h and signals_def.
17032 (server.o): Append signals_def.
17034 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17036 * server.c (handle_target_event): Use target_signal_to_host for
17037 resume_info.sig initialization.
17038 * target.h (struct thread_resume) <sig>: New comment.
17040 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17042 * server.c (handle_query): strcpy() the returned string from paddress()
17043 instead of sprintf().
17044 * utils.c (paddress): Return phex_nz().
17046 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17048 * server.c (handle_v_cont): Call mourn_inferior if process
17050 (myresume): Likewise.
17052 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17054 Static tracepoints, and integration with UST.
17056 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17057 * mem-break.c (uninsert_all_breakpoints)
17058 (reinsert_all_breakpoints): New.
17059 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17060 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17061 (gdb_agent_ust_loaded, helper_thread_id)
17062 (gdb_agent_helper_thread_id): New macros.
17063 (struct ipa_sym_addresses): Add addr_ust_loaded,
17064 addr_helper_thread_id, addr_cmd_buf.
17065 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17066 (in_process_agent_loaded_ust): New.
17067 (write_e_ust_not_loaded): New.
17068 (maybe_write_ipa_ust_not_loaded): New.
17069 (struct collect_static_trace_data_action): New.
17070 (enum tracepoint_type) <static_tracepoint>: New.
17071 (struct tracepoint) <handle>: Mention static tracepoints.
17072 (struct static_tracepoint_ctx): New.
17073 (CMD_BUF_SIZE): New.
17074 (add_tracepoint_action): Handle static tracepoint actions.
17075 (unprobe_marker_at): New.
17076 (clear_installed_tracepoints): Handle static tracepoints.
17077 (cmd_qtdp): Handle static tracepoints.
17078 (probe_marker_at): New.
17079 (cmd_qtstart): Handle static tracepoints.
17080 (response_tracepoint): Handle static tracepoints.
17081 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17082 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17083 (get_context_regcache): Handle static tracepoints.
17084 (do_action_at_tracepoint): Handle static tracepoint actions.
17085 (traceframe_find_block_type): Handle static trace data blocks.
17086 (traceframe_read_sdata): New.
17087 (download_tracepoints): Download static tracepoint actions.
17088 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17089 (GDB_PROBE_NAME): New.
17091 (GET_UST_SYM): New.
17094 (ust_marker_to_static_tracepoint): New.
17096 (collect_ust_data_at_tracepoint): New.
17097 (gdb_ust_probe): New.
17098 (UNIX_PATH_MAX, SOCK_DIR): New.
17099 (gdb_ust_connect_sync_socket): New.
17100 (resume_thread, stop_thread): New.
17101 (run_inferior_command): New.
17102 (init_named_socket): New.
17103 (gdb_ust_socket_init): New.
17104 (cstr_to_hexstr): New.
17106 (first_marker, next_marker): New.
17107 (response_ust_marker): New.
17108 (cmd_qtfstm, cmd_qtsstm): New.
17109 (unprobe_marker_at, probe_marker_at): New.
17110 (cmd_qtstmat, gdb_ust_thread): New.
17111 (gdb_ust_init): New.
17112 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17113 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17114 (ST_REGENTRY): New.
17115 (x86_64_st_collect_regmap): New.
17116 (X86_64_NUM_ST_COLLECT_GREGS): New.
17117 (AMD64_RIP_REGNUM): New.
17118 (supply_static_tracepoint_registers): New.
17119 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17120 (ST_REGENTRY): New.
17121 (i386_st_collect_regmap): New.
17122 (i386_NUM_ST_COLLECT_GREGS): New.
17123 (supply_static_tracepoint_registers): New.
17124 * server.c (handle_query): Handle qXfer:statictrace:read.
17125 <qSupported>: Report support for StaticTracepoints, and
17126 qXfer:statictrace:read features.
17127 * server.h (traceframe_read_sdata)
17128 (supply_static_tracepoint_registers): Declare.
17129 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17130 (unpack_varlen_hex): Include in IPA build.
17131 * Makefile.in (ustlibs, ustinc): New.
17132 (IPA_OBJS): Add remote-utils-ipa.o.
17133 ($(IPA_LIB)): Link -ldl and -lpthread.
17135 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17136 * config.in, configure: Regenerate.
17138 2010-06-20 Ian Lance Taylor <iant@google.com>
17139 Pedro Alves <pedro@codesourcery.com>
17141 * linux-x86-low.c (always_true): Delete.
17142 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17143 trying to fool the compiler with always_true.
17145 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17147 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17148 conditions in gdbserver.
17150 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17152 * spu-low.c (spu_read_memory): Wrap around local store limit.
17153 (spu_write_memory): Likewise.
17155 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17157 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17158 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17160 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17162 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17163 uses with LONGEST uses.
17165 2010-06-14 Stan Shebs <stan@codesourcery.com>
17166 Pedro Alves <pedro@codesourcery.com>
17170 * linux-x86-low.c: Include limits.h.
17172 (always_true): New.
17175 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17176 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17177 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17178 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17179 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17180 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17181 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17182 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17183 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17184 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17185 (amd64_emit_void_call_2): New.
17186 (amd64_emit_ops): New.
17187 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17188 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17189 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17190 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17191 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17192 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17193 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17194 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17195 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17196 (i386_emit_stack_adjust, i386_emit_int_call_1)
17197 (i386_emit_void_call_2): New.
17198 (i386_emit_ops): New.
17199 (x86_emit_ops): New.
17200 (the_low_target): Install x86_emit_ops.
17201 * server.h (struct emit_ops): New.
17202 (get_raw_reg_func_addr): Declare.
17203 (current_insn_ptr, emit_error): Declare.
17204 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17205 (set_trace_state_variable_value): New defines.
17206 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17207 addr_get_trace_state_variable_value and
17208 addr_set_trace_state_variable_value.
17209 (symbol_list): New fields for get_raw_reg,
17210 get_trace_state_variable_value and set_trace_state_variable_value.
17211 (condfn): New typedef.
17212 (struct tracepoint): New field `compiled_cond'.
17213 (do_action_at_tracepoint): Clear compiled_cond.
17214 (get_trace_state_variable_value, set_trace_state_variable_value):
17216 (condition_true_at_tracepoint): If there's a compiled condition,
17218 (current_insn_ptr, emit_error): New globals.
17219 (struct bytecode_address): New.
17220 (get_raw_reg_func_addr): New.
17221 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17222 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17223 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17224 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17225 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17226 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17227 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17228 (compile_tracepoint_condition, compile_bytecodes): New.
17229 * target.h (emit_ops): Forward declare.
17230 (struct target_ops): New field emit_ops.
17231 (target_emit_ops): New.
17232 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17233 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17234 * linux-low.c (linux_emit_ops): New.
17235 (linux_target_ops): Install it.
17236 * linux-low.h (struct linux_target_ops): New field emit_ops.
17238 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17240 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17241 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17243 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17244 Stan Shebs <stan@codesourcery.com>
17246 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17247 (all): Depend on $(extra_libraries).
17248 (install-only): Install the IPA.
17249 (IPA_OBJS, IPA_LIB): New.
17250 (clean): Remove the IPA lib.
17251 (IPAGENT_CFLAGS): New.
17252 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17253 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17254 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17255 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17256 * configure.ac: Check for atomic builtins support in the compiler.
17257 (IPA_DEPFILES, extra_libraries): Define.
17258 * configure.srv (ipa_obj): Add description.
17259 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17260 (i[34567]86-*-linux*): Set ipa_obj.
17261 (x86_64-*-linux*): Set ipa_obj.
17262 * linux-low.c (stabilizing_threads): New.
17263 (supports_fast_tracepoints): New.
17264 (linux_detach): Stabilize threads before detaching.
17265 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17266 the lwp is either not stabilizing, or is moving out of a jump pad.
17267 (linux_fast_tracepoint_collecting): New.
17268 (maybe_move_out_of_jump_pad): New.
17269 (enqueue_one_deferred_signal): New.
17270 (dequeue_one_deferred_signal): New.
17271 (linux_wait_for_event_1): If moving out of a jump pad, defer
17272 pending signals to later.
17273 (linux_stabilize_threads): New.
17274 (linux_wait_1): Check if threads need moving out of jump pads, and
17276 (stuck_in_jump_pad_callback): New.
17277 (move_out_of_jump_pad_callback): New.
17278 (lwp_running): New.
17279 (linux_resume_one_lwp): Handle moving out of jump pads.
17280 (linux_set_resume_request): Dequeue deferred signals.
17281 (need_step_over_p): Also step over fast tracepoint jumps.
17282 (start_step_over): Also uninsert fast tracepoint jumps.
17283 (finish_step_over): Also reinsert fast tracepoint jumps.
17284 (linux_install_fast_tracepoint_jump): New.
17285 (linux_target_ops): Install linux_stabilize_threads and
17286 linux_install_fast_tracepoint_jump_pad.
17287 * linux-low.h (linux_target_ops) <get_thread_area,
17288 install_fast_tracepoint_jump_pad>: New fields.
17289 (struct lwp_info) <collecting_fast_tracepoint,
17290 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17291 (linux_get_thread_area): Declare.
17292 * linux-x86-low.c (jump_insn): New.
17293 (x86_get_thread_area): New.
17294 (append_insns): New.
17295 (push_opcode): New.
17296 (amd64_install_fast_tracepoint_jump_pad): New.
17297 (i386_install_fast_tracepoint_jump_pad): New.
17298 (x86_install_fast_tracepoint_jump_pad): New.
17299 (the_low_target): Install x86_get_thread_area and
17300 x86_install_fast_tracepoint_jump_pad.
17301 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17302 (struct fast_tracepoint_jump): New.
17303 (fast_tracepoint_jump_insn): New.
17304 (fast_tracepoint_jump_shadow): New.
17305 (find_fast_tracepoint_jump_at): New.
17306 (fast_tracepoint_jump_here): New.
17307 (delete_fast_tracepoint_jump): New.
17308 (set_fast_tracepoint_jump): New.
17309 (uninsert_fast_tracepoint_jumps_at): New.
17310 (reinsert_fast_tracepoint_jumps_at): New.
17311 (set_breakpoint_at): Use write_inferior_memory.
17312 (uninsert_raw_breakpoint): Use write_inferior_memory.
17313 (check_mem_read): Mask out fast tracepoint jumps.
17314 (check_mem_write): Mask out fast tracepoint jumps.
17315 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17316 (set_fast_tracepoint_jump): Declare.
17317 (delete_fast_tracepoint_jump)
17318 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17319 (reinsert_fast_tracepoint_jumps_at): Declare.
17320 * regcache.c: Don't compile many functions when building the
17321 in-process agent library.
17322 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17323 the register buffer in the heap.
17324 (free_register_cache): If the register buffer isn't owned by the
17325 regcache, don't free it.
17326 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17327 pre-existing register caches.
17328 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17330 (convert_ascii_to_int): : Constify `from' parameter type.
17331 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17332 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17333 the needed buffer in-place.
17334 (relocate_instruction): New.
17335 * server.c (handle_query) <qSymbols>: If the target supports
17336 tracepoints, give it a chance of looking up symbols. Report
17337 support for fast tracepoints.
17338 (handle_status): Stabilize threads.
17339 (process_serial_event): Adjust.
17340 * server.h (struct fast_tracepoint_jump): Forward declare.
17341 (struct process_info) <fast_tracepoint_jumps>: New field.
17342 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17343 (decode_X_packet, decode_M_packet): Adjust.
17344 (relocate_instruction): Declare.
17345 (in_process_agent_loaded): Declare.
17346 (tracepoint_look_up_symbols): Declare.
17347 (struct fast_tpoint_collect_status): Declare.
17348 (fast_tracepoint_collecting): Declare.
17349 (force_unlock_trace_buffer): Declare.
17350 (handle_tracepoint_bkpts): Declare.
17351 (initialize_low_tracepoint)
17352 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17353 * target.h (struct target_ops) <stabilize_threads,
17354 install_fast_tracepoint_jump_pad>: New fields.
17355 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17356 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17357 [HAVE_STDINT_H]: Include stdint.h.
17358 (trace_debug_1): Rename to ...
17359 (trace_vdebug): ... this.
17360 (trace_debug): Rename to ...
17361 (trace_debug_1): ... this. Add `level' parameter.
17362 (trace_debug): New.
17363 (ATTR_USED, ATTR_NOINLINE): New.
17364 (IP_AGENT_EXPORT): New.
17365 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17366 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17367 (about_to_request_buffer_space, trace_buffer_is_full)
17368 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17369 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17370 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17371 (traceframe_write_count, traceframes_created)
17372 (trace_state_variables)
17373 New renaming defines.
17374 (struct ipa_sym_addresses): New.
17375 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17376 (symbol_list): New.
17377 (ipa_sym_addrs): New.
17378 (all_tracepoint_symbols_looked_up): New.
17379 (in_process_agent_loaded): New.
17380 (write_e_ipa_not_loaded): New.
17381 (maybe_write_ipa_not_loaded): New.
17382 (tracepoint_look_up_symbols): New.
17383 (debug_threads) [IN_PROCESS_AGENT]: New.
17384 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17385 (UNKNOWN_SIDE_EFFECTS): New.
17386 (stop_tracing): New.
17387 (flush_trace_buffer): New.
17388 (stop_tracing_bkpt): New.
17389 (flush_trace_buffer_bkpt): New.
17390 (read_inferior_integer): New.
17391 (read_inferior_uinteger): New.
17392 (read_inferior_data_pointer): New.
17393 (write_inferior_data_pointer): New.
17394 (write_inferior_integer): New.
17395 (write_inferior_uinteger): New.
17396 (struct collect_static_trace_data_action): Delete.
17397 (enum tracepoint_type): New.
17398 (struct tracepoint) <type>: New field `type'.
17399 <actions_str, step_actions, step_actions_str>: Only include in
17401 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17402 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17403 (tracepoints): Use IP_AGENT_EXPORT.
17404 (last_tracepoint): Don't include in the IPA.
17405 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17406 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17407 (alloced_trace_state_variables): New.
17408 (trace_state_variables): Use IP_AGENT_EXPORT.
17409 (traceframe_t): Delete unused variable.
17410 (circular_trace_buffer): Don't include in the IPA.
17411 (trace_buffer_start): Delete.
17412 (struct trace_buffer_control): New.
17413 (trace_buffer_free): Delete.
17414 (struct ipa_trace_buffer_control): New.
17415 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17416 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17418 (trace_buffer_ctrl): New.
17419 (TRACE_BUFFER_CTRL_CURR): New.
17420 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17421 Reimplement as macros.
17422 (trace_buffer_wrap): Delete.
17423 (traceframe_write_count, traceframe_read_count)
17424 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17425 (struct tracepoint_hit_ctx) <type>: New field.
17426 (struct fast_tracepoint_ctx): New.
17427 (memory_barrier): New.
17429 (record_tracepoint_error): Update atomically in the IPA.
17430 (clear_inferior_trace_buffer): New.
17431 (about_to_request_buffer_space): New.
17432 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17433 updating the same buffer.
17434 (add_tracepoint): Default the tracepoint's type to trap
17435 tracepoint, and orig_size to -1.
17436 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17437 internal variables.
17438 (create_trace_state_variable): New parameter `gdb'. Handle it.
17439 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17440 (cmd_qtdp): Handle fast tracepoints.
17441 (cmd_qtdv): Adjust.
17442 (max_jump_pad_size): New.
17443 (gdb_jump_pad_head): New.
17444 (get_jump_space_head): New.
17445 (claim_jump_space): New.
17446 (sort_tracepoints): New.
17447 (MAX_JUMP_SIZE): New.
17448 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17450 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17451 support. Upload fast traceframes, and delete internal IPA
17453 (stop_tracing_handler): New.
17454 (flush_trace_buffer_handler): New.
17455 (cmd_qtstop): Upload fast tracepoints.
17456 (response_tracepoint): Handle fast tracepoints.
17457 (tracepoint_finished_step): Upload fast traceframes. Set the
17458 tracepoint hit context's tracepoint type.
17459 (handle_tracepoint_bkpts): New.
17460 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17461 type. Add comment about fast tracepoints.
17462 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17463 non-existing action_str field.
17464 (get_context_regcache): Handle fast tracepoints.
17465 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17467 (fast_tracepoint_from_jump_pad_address): New.
17468 (fast_tracepoint_from_ipa_tpoint_address): New.
17469 (collecting_t): New.
17470 (force_unlock_trace_buffer): New.
17471 (fast_tracepoint_collecting): New.
17473 (gdb_collect): New.
17474 (write_inferior_data_ptr): New.
17475 (target_tp_heap): New.
17476 (target_malloc): New.
17477 (download_agent_expr): New.
17479 (download_tracepoints): New.
17480 (download_trace_state_variables): New.
17481 (upload_fast_traceframes): New.
17482 (IPA_FIRST_TRACEFRAME): New.
17483 (IPA_NEXT_TRACEFRAME_1): New.
17484 (IPA_NEXT_TRACEFRAME): New.
17485 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17486 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17487 (gdb_jump_pad_buffer_end): New.
17488 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17489 (initialize_tracepoint): Adjust.
17490 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17491 buffer. Initialize the low module.
17492 * utils.c (PREFIX, TOOLNAME): New.
17493 (malloc_failure): Use PREFIX.
17494 (error): In the IPA, an error causes an exit.
17495 (fatal, warning): Use PREFIX.
17496 (internal_error): Use TOOLNAME.
17497 (NUMCELLS): Increase to 10.
17498 * configure, config.in: Regenerate.
17500 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17502 * server.c (handle_query) <qSupported>: Do two passes over the
17503 qSupported string to avoid nesting strtok.
17505 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17507 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17509 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17510 -Wl,--dynamic-list.
17511 * configure: Regenerate.
17512 * proc-service.list: New.
17514 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17516 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17519 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17521 * gdbreplay.c (remote_open): Check error return from socket() call by
17522 its equality to -1 not by it being negative.
17523 * remote-utils.c (remote_open): Likewise.
17525 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17527 * config.h: Regenerate.
17529 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17531 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17532 doesn't provide PTRACE_GET_THREAD_AREA.
17534 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17536 * linux-m68k-low.c: Include <asm/ptrace.h>
17537 (ps_get_thread_area): Implement.
17539 2010-05-03 Doug Evans <dje@google.com>
17541 * event-loop.c (struct callback_event): New struct.
17542 (callback_list): New global.
17543 (append_callback_event, delete_callback_event): New functions.
17544 (process_callback): New function.
17545 (start_event_loop): Call it.
17546 * remote-utils.c (NOT_SCHEDULED): Define.
17547 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17548 moved out of readchar.
17549 (readchar): Rewrite. Call reschedule before returning.
17550 (reset_readchar): New function.
17551 (remote_close): Call it.
17552 (process_remaining, reschedule): New functions.
17553 * server.h (callback_handler_func): New typedef.
17554 (append_callback_event, delete_callback_event): Declare.
17556 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17558 * proc-service.c (ps_pglobal_lookup): Use
17559 thread_db_look_up_one_symbol.
17560 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17561 parameter. Use it instead of all_symbols_looked_up.
17562 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17564 (all_symbols_looked_up): Don't declare.
17565 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17566 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17568 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17569 Set all_symbols_looked_up here.
17570 (thread_db_look_up_one_symbol): New.
17571 (thread_db_get_tls_address): Adjust.
17572 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17573 thread_db object on the heap, and tentatively set it in the
17575 (thread_db_init): Don't set all_symbols_looked_up here.
17576 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17578 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17580 * linux-low.c (linux_kill, linux_detach): Adjust.
17581 (status_pending_p_callback): Remove redundant statement. Check
17582 for !TARGET_WAITIKIND_IGNORE, instead of
17583 TARGET_WAITKIND_STOPPED.
17584 (handle_tracepoints): Make sure LWP is locked. Adjust.
17585 (linux_wait_for_event_1): Adjust.
17586 (linux_cancel_breakpoints): New.
17587 (unsuspend_one_lwp): New.
17588 (unsuspend_all_lwps): New.
17589 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17590 (send_sigstop_callback): Change return type to int, add new
17591 `except' parameter and handle it.
17592 (suspend_and_send_sigstop_callback): New.
17593 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17594 pass them down. If SUSPEND, also increment the lwp's suspend
17596 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17597 (need_step_over_p): Don't consider suspended LWPs.
17598 (start_step_over): Adjust.
17599 (proceed_one_lwp): Change return type to int, add new `except'
17600 parameter and handle it.
17601 (unsuspend_and_proceed_one_lwp): New.
17602 (proceed_all_lwps): Use find_inferior instead of
17604 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17605 also decrement the suspend count of LWPs. Pass `except' down,
17606 instead of hacking its suspend count.
17607 (linux_pause_all): Add `freeze' parameter. Adjust.
17608 (linux_unpause_all): New.
17609 (linux_target_ops): Install linux_unpause_all.
17610 * server.c (handle_status): Adjust.
17611 * target.h (struct target_ops): New fields `unpause_all' and
17612 `cancel_breakpoints'. Add new parameter to `pause_all'.
17613 (pause_all): Add new `freeze' parameter.
17614 (unpause_all): New.
17615 (cancel_breakpoints): New.
17616 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17617 cancel breakpoints.
17618 (cmd_qtstart): Pause threads.
17619 (stop_tracing): Pause threads, and cancel breakpoints.
17620 * win32-low.c (win32_target_ops): Adjust.
17622 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17624 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17625 the inferior right away from here...
17626 (linux_wait_1): ... to here, and adjust to check the thread's
17627 last_resume_kind instead of the lwp's step or stop_expected flags.
17629 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17631 * README: Use consistent `GDB' and `GDBserver' spellings.
17633 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17635 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17636 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17637 (linux_detach_one_lwp): Assume the lwp is stopped.
17638 (any_thread_of): Delete.
17639 (linux_detach): Stop all lwps here. Don't blindly delete all
17641 (delete_lwp_callback): New.
17642 (linux_mourn): Delete all lwps of the process that is gone.
17643 (linux_wait_1): Don't delete the last lwp of the process here.
17644 * mem-break.h (mark_breakpoints_out): Declare.
17645 * mem-break.c (mark_breakpoints_out): New.
17646 (free_all_breakpoints): Use it.
17647 * server.c (handle_target_event): If the process is gone, mark
17649 * thread-db.c (struct thread_db) <create_bp>: New field.
17650 (thread_db_enable_reporting): Fix prototype. Store a thread event
17651 breakpoint reference in the thread_db struct.
17652 (thread_db_load_search): Clear the thread_db object.
17653 (try_thread_db_load_1): Ditto.
17654 (switch_to_process): New.
17655 (disable_thread_event_reporting): Use it.
17656 (remove_thread_event_breakpoints): New.
17657 (thread_db_detach, thread_db_mourn): Use it.
17659 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17661 * linux-low.c (linux_enable_event_reporting): New.
17662 (linux_wait_for_event_1, handle_extended_wait): Use it.
17664 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17666 * linux-low.c (linux_kill_one_lwp, linux_kill)
17667 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17668 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17669 SIGSTOP even if the LWP is stopped.
17670 (send_sigstop_callback): New.
17671 (stop_all_lwps): Use send_sigstop_callback instead.
17672 (linux_resume_one_thread): Adjust.
17673 (proceed_one_lwp): Still proceed an LWP that the client has
17674 requested to stop, if we haven't reported it as stopped yet. Make
17675 sure that LWPs the client want stopped, have a pending SIGSTOP.
17677 2010-04-26 Doug Evans <dje@google.com>
17679 * server.c (handle_general_set): Make static.
17681 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17682 Print received char after testing for error/eof instead of before.
17683 (input_interrupt): Tweak comment.
17685 2010-04-23 Doug Evans <dje@google.com>
17687 * server.c (start_inferior): Print inferior argv if --debug.
17689 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17691 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17692 * nto-x86-low.c: Include server.h
17694 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17696 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17697 be consistent with other sources of this directory.
17698 (init_registers_amd64): Correct name of source file of this function
17701 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17703 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17704 64-bit executables.
17706 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17708 * win32-i386-low.c: Add 64-bit support.
17709 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17710 (init_registers_amd64): Declare.
17711 (mappings): Add 64-bit version of array.
17712 (init_windows_x86): New function.
17713 (the_low_target): Change init_arch field to init_windows_x86.
17715 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17717 * win32-low.c: Adapt to support also 64-bit architecture.
17718 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17719 (get_image_name): Use SIZE_T type for local variable `done'.
17720 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17721 (toolhelp_get_dll_name): Idem.
17722 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17723 Use uintptr_t typecast to avoid warning.
17724 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17725 (handle_exception): Use phex_nz to avoid warning.
17726 (win32_wait): Remove unused local variable `process'.
17728 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17730 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17733 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17735 * configure.ac: Use `ws2_32' library for srv_mingw.
17736 * configure: Regenerate.
17737 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17738 * remote-utils.c: Likewise.
17740 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17742 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17743 if __x86_64__ is defined.
17745 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17747 * configure: Regenerate.
17749 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17751 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17752 * target.h (target_ops): New get_tib_address field.
17753 * win32-low.h (win32_thread_info): Add thread_local_base field.
17754 * win32-low.c (child_add_thread): Add tlb argument.
17755 Set thread_local_base field to TLB.
17756 (get_child_debug_event): Adapt to child_add_thread change.
17757 (win32_get_tib_address): New function.
17758 (win32_target_ops): Set get_tib_address field to
17759 win32_get_tib_address.
17760 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17762 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17764 * linux-low.c (linux_mourn): Also remove the process.
17765 * server.c (handle_target_event): Don't remove the process here.
17766 * nto-low.c (nto_mourn): New.
17767 (nto_target_ops): Install it.
17768 * spu-low.c (spu_mourn): New.
17769 (spu_target_ops): Install it.
17770 * win32-low.c (win32_mourn): New.
17771 (win32_target_ops): Install it.
17773 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17775 * server.h (buffer_xml_printf): Remove redundant `;'.
17777 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17779 * regcache.c (set_register_cache): Invalidate regcaches before
17780 changing the register cache layout.
17781 (regcache_invalidate_one): Allow a NULL regcache.
17782 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17783 regcaches before changing the register cache layout or the target
17786 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17788 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17789 variable warning on Linux/x86-64.
17791 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17793 GDBserver disconnected tracing support.
17795 * linux-low.c (linux_remove_process): Delete.
17796 (add_lwp): Don't set last_resume_kind here.
17797 (linux_kill): Use `mourn'.
17798 (linux_detach): Use `thread_db_detach', and `mourn'.
17799 (linux_mourn): New.
17800 (linux_attach_lwp_1): Adjust comment.
17801 (linux_attach): last_resume_kind moved the thread_info; adjust.
17802 (status_pending_p_callback): Adjust.
17803 (linux_wait_for_event_1): Adjust.
17804 (count_events_callback, select_singlestep_lwp_callback)
17805 (select_event_lwp_callback, cancel_breakpoints_callback)
17806 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
17807 (proceed_one_lwp): Adjust.
17808 (linux_async): Add debug output.
17809 (linux_thread_stopped): New.
17810 (linux_pause_all): New.
17811 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
17813 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
17814 (thread_db_free): Delete declaration.
17815 (thread_db_detach, thread_db_mourn): Declare.
17816 * thread-db.c (thread_db_init): Use thread_db_mourn.
17817 (thread_db_free): Delete, split in two.
17818 (disable_thread_event_reporting): New.
17819 (thread_db_detach): New.
17820 (thread_db_mourn): New.
17822 * server.h (struct thread_info) <last_resume_kind>: New field.
17823 <attached>: Add comment.
17824 <gdb_detached>: New field.
17825 (handler_func): Change return type to int.
17826 (handle_serial_event, handle_target_event): Ditto.
17827 (gdb_connected): Declare.
17829 (disconnected_tracing): Declare.
17830 (stop_tracing): Declare.
17832 * server.c (handle_query) <qSupported>: Report support for
17833 disconnected tracing.
17834 (queue_stop_reply_callback): Account for running threads.
17835 (gdb_wants_thread_stopped): New.
17836 (gdb_wants_all_threads_stopped): New.
17837 (gdb_reattached_process): New.
17838 (handle_status): Clear the `gdb_detached' flag of all processes.
17839 In all-stop, stop all threads.
17840 (main): Be sure to leave tfind mode. Handle disconnected tracing.
17841 (process_serial_event): If the remote connection breaks, or if an
17842 exit was forced with "monitor exit", force an event loop exit.
17843 Handle disconnected tracing on detach.
17844 (handle_serial_event): Adjust.
17845 (handle_target_event): If GDB isn't connected, forward events back
17846 to the inferior, unless the last process exited, in which case,
17847 exit gdbserver. Adjust interface.
17849 * remote-utils.c (remote_open): Don't block in accept. Instead
17850 register an event loop source on the listen socket file
17851 descriptor. Refactor bits into ...
17852 (listen_desc): ... this new global.
17853 (gdb_connected): ... this new function.
17854 (enable_async_notification): ... this new function.
17855 (handle_accept_event): ... this new function.
17856 (remote_close): Clear remote_desc.
17858 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
17860 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
17862 (mourn_inferior): Define.
17863 (target_process_qsupported): Avoid the dangling else problem.
17864 (thread_stopped): Define.
17865 (pause_all): Define.
17866 (target_waitstatus_to_string): Declare.
17867 * target.c (target_waitstatus_to_string): New.
17869 * tracepoint.c (tracing): Make extern.
17870 (disconnected_tracing): New.
17871 (stop_tracing): Make extern. Handle tracing stops due to GDB
17873 (cmd_qtdisconnected): New.
17874 (cmd_qtstatus): Report disconnected tracing status in trace reply.
17875 (handle_tracepoint_general_set): Handle QTDisconnected.
17877 * event-loop.c (event_handler_func): Change return type to int.
17878 (process_event): Bail out if the event handler wants the event
17880 (handle_file_event): Ditto.
17881 (start_event_loop): Bail out if the event handler wants the event
17884 * nto-low.c (nto_target_ops): Adjust.
17885 * spu-low.c (spu_wait): Don't remove the process here.
17886 (spu_target_ops): Adjust.
17887 * win32-low.c (win32_wait): Don't remove the process here.
17888 (win32_target_ops): Adjust.
17890 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17892 * regcache.c (realloc_register_cache): Invalidate inferior's
17893 regcache before recreating it.
17895 2010-04-09 Pedro Alves <pedro@codesourcery.com>
17897 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
17899 2010-04-09 Stan Shebs <stan@codesourcery.com>
17900 Pedro Alves <pedro@codesourcery.com>
17902 * server.h (LONGEST): New.
17903 (struct thread_info) <while_stepping>: New field.
17904 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
17906 (initialize_tracepoint, handle_tracepoint_general_set)
17907 (handle_tracepoint_query, tracepoint_finished_step)
17908 (tracepoint_was_hit, release_while_stepping_state_list):
17909 (current_traceframe): Declare.
17910 * server.c (handle_general_set): Handle tracepoint packets.
17911 (read_memory): New.
17912 (write_memory): New.
17913 (handle_search_memory_1): Use read_memory.
17914 (handle_query): Report support for conditional tracepoints, trace
17915 state variables, and tracepoint sources. Handle tracepoint
17917 (main): Initialize the tracepoints module.
17918 (process_serial_event): Handle traceframe reads/writes.
17920 * linux-low.c (handle_tracepoints): New.
17921 (linux_wait_1): Call it.
17922 (linux_resume_one_lwp): Handle while-stepping.
17923 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
17924 (linux_target_ops): Install them.
17925 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
17927 * linux-x86-low.c (x86_supports_tracepoints): New.
17928 (the_low_target). Install it.
17930 * mem-break.h (delete_breakpoint): Declare.
17931 * mem-break.c (delete_breakpoint): Make external.
17933 * target.h (struct target_ops): Add `supports_tracepoints',
17934 `read_pc', and `write_pc' fields.
17935 (target_supports_tracepoints): Define.
17936 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
17939 * regcache.h (struct regcache) <registers_owned>: New field.
17940 (init_register_cache, regcache_cpy): Declare.
17941 (regcache_read_pc, regcache_write_pc): Declare.
17942 (register_cache_size): Declare.
17943 (supply_regblock): Declare.
17944 * regcache.c (init_register_cache): New.
17945 (new_register_cache): Use it.
17946 (regcache_cpy): New.
17947 (register_cache_size): New.
17948 (supply_regblock): New.
17949 (regcache_read_pc, regcache_write_pc): New.
17951 * tracepoint.c: New.
17953 * Makefile.in (OBS): Add tracepoint.o.
17954 (tracepoint.o): New rule.
17956 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
17958 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
17960 (i386-mmx.c): Likewise.
17961 (i386-mmx-linux.o): Likewise.
17962 (i386-mmx-linux.c): Likewise.
17964 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
17965 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
17966 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
17967 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
17969 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
17970 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
17971 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
17973 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17975 * Makefile.in (clean): Updated.
17977 (i386-avx.c): Likewise.
17978 (i386-avx-linux.o): Likewise.
17979 (i386-avx-linux.c): Likewise.
17980 (amd64-avx.o): Likewise.
17981 (amd64-avx.c): Likewise.
17982 (amd64-avx-linux.o): Likewise.
17983 (amd64-avx-linux.c): Likewise.
17985 * configure.srv (srv_i386_regobj): Add i386-avx.o.
17986 (srv_i386_linux_regobj): Add i386-avx-linux.o.
17987 (srv_amd64_regobj): Add amd64-avx.o.
17988 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
17989 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
17990 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
17991 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
17992 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
17993 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
17994 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
17996 * i387-fp.c: Include "i386-xstate.h".
17998 (i387_cache_to_xsave): Likewise.
17999 (i387_xsave_to_cache): Likewise.
18000 (x86_xcr0): Likewise.
18002 * i387-fp.h (i387_cache_to_xsave): Likewise.
18003 (i387_xsave_to_cache): Likewise.
18004 (x86_xcr0): Likewise.
18006 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18007 * linux-crisv32-low.c (target_regsets): Likewise.
18008 * linux-m68k-low.c (target_regsets): Likewise.
18009 * linux-mips-low.c (target_regsets): Likewise.
18010 * linux-ppc-low.c (target_regsets): Likewise.
18011 * linux-s390-low.c (target_regsets): Likewise.
18012 * linux-sh-low.c (target_regsets): Likewise.
18013 * linux-sparc-low.c (target_regsets): Likewise.
18014 * linux-xtensa-low.c (target_regsets): Likewise.
18016 * linux-low.c: Include <sys/uio.h>.
18017 (regsets_fetch_inferior_registers): Support nt_type.
18018 (regsets_store_inferior_registers): Likewise.
18019 (linux_process_qsupported): New.
18020 (linux_target_ops): Add linux_process_qsupported.
18022 * linux-low.h (regset_info): Add nt_type.
18023 (linux_target_ops): Add process_qsupported.
18025 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18027 (init_registers_i386_avx_linux): New.
18028 (init_registers_amd64_avx_linux): Likewise.
18029 (xmltarget_i386_linux_no_xml): Likewise.
18030 (xmltarget_amd64_linux_no_xml): Likewise.
18031 (PTRACE_GETREGSET): Likewise.
18032 (PTRACE_SETREGSET): Likewise.
18033 (x86_fill_xstateregset): Likewise.
18034 (x86_store_xstateregset): Likewise.
18035 (use_xml): Likewise.
18036 (x86_linux_update_xmltarget): Likewise.
18037 (x86_linux_process_qsupported): Likewise.
18038 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18039 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18040 init_registers_i386_linux here. Call
18041 x86_linux_update_xmltarget.
18042 (the_low_target): Add x86_linux_process_qsupported.
18044 * server.c (handle_query): Call target_process_qsupported.
18046 * target.h (target_ops): Add process_qsupported.
18047 (target_process_qsupported): New.
18049 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18051 * inferiors.c (add_thread): Set last_status kind to
18052 TARGET_WAITKIND_IGNORE.
18053 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18054 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18055 (linux_wait_1): Move `thread' local definition to block that uses
18056 it. Don't NULL initialize `event_child'.
18057 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18058 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18059 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18061 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18063 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18064 an extended waitstatus, or by a watchpoint.
18065 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18066 thread was stepping or has been stopped by a watchpoint.
18068 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18070 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18071 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18072 of another, then delete the previous, and validate all
18074 (validate_inserted_breakpoint): New.
18075 (delete_disabled_breakpoints): New.
18076 (validate_breakpoints): New.
18077 (check_mem_read): Validate breakpoints before trusting their
18078 shadow. Delete disabled breakpoints.
18079 (check_mem_write): Validate breakpoints before trusting they
18080 should be inserted. Delete disabled breakpoints.
18081 * mem-break.h (validate_breakpoints):
18082 * server.c (handle_query): Validate breakpoints when we see a
18085 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18087 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18088 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18089 if we could tell there's a GDB breakpoint at stop_pc.
18090 (need_step_over_p): Don't do a step over if we find a GDB
18091 breakpoint at the resume PC.
18093 * mem-break.c (struct raw_breakpoint): New.
18094 (enum bkpt_type): New type `gdb_breakpoint'.
18095 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18096 fields. New field `raw'.
18097 (find_raw_breakpoint_at): New.
18098 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18099 breakpoint instead.
18100 (set_breakpoint_at): Adjust.
18101 (delete_raw_breakpoint): New.
18102 (release_breakpoint): New.
18103 (delete_breakpoint): Rename to...
18104 (delete_breakpoint_1): ... this. Add proc parameter. Use
18105 release_breakpoint. Return ENOENT.
18106 (delete_breakpoint): Reimplement.
18107 (find_breakpoint_at): Delete.
18108 (find_gdb_breakpoint_at): New.
18109 (delete_breakpoint_at): Delete.
18110 (set_gdb_breakpoint_at): New.
18111 (delete_gdb_breakpoint_at): New.
18112 (gdb_breakpoint_here): New.
18113 (set_reinsert_breakpoint): Use release_breakpoint.
18114 (uninsert_breakpoint): Rename to ...
18115 (uninsert_raw_breakpoint): ... this.
18116 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18117 (reinsert_raw_breakpoint): Change parameter type to
18119 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18121 (check_breakpoints): Adjust. Use release_breakpoint.
18122 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18123 (breakpoint_inserted_here): Ditto.
18124 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18125 Don't trust the breakpoint's shadow if it is not inserted.
18126 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18127 (delete_all_breakpoints): Adjust.
18128 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18129 use delete_breakpoint_1.
18131 * mem-break.h (breakpoints_supported): Delete declaration.
18132 (set_gdb_breakpoint_at): Declare.
18133 (gdb_breakpoint_here): Declare.
18134 (delete_breakpoint_at): Delete.
18135 (delete_gdb_breakpoint_at): Declare.
18137 * server.h (struct raw_breakpoint): Forward declare.
18138 (struct process_info): New field `raw_breakpoints'.
18140 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18143 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18145 * linux-low.c (status_pending_p_callback): Fix comment.
18146 (linux_wait_for_event_1): Move most of the internal breakpoint
18147 handling from here...
18148 (linux_wait_1): ... to here.
18149 (count_events_callback): New.
18150 (select_singlestep_lwp_callback): New.
18151 (select_event_lwp_callback): New.
18152 (cancel_breakpoints_callback): New.
18153 (select_event_lwp): New.
18154 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18155 priority to all LWPs that have had events that should be reported
18156 to the client. Cancel breakpoints when about to reporting the
18157 event to the client, not while stopping lwps. No longer cancel
18158 finished single-steps here.
18159 (cancel_finished_single_step): Delete.
18160 (cancel_finished_single_steps): Delete.
18162 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18164 * mem-break.c (enum bkpt_type): New.
18165 (struct breakpoint): New field `type'.
18166 (set_breakpoint_at): Change return type to struct breakpoint
18167 pointer. Set type to `other_breakpoint' by default.
18168 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18169 in the breakpoint list.
18170 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18171 (reinsert_breakpoint): Rename to ...
18172 (reinsert_raw_breakpoint): ... this.
18173 (reinsert_breakpoints_at): Adjust.
18174 * mem-break.h (struct breakpoint): Declare.
18175 (set_breakpoint_at): Change return type to struct breakpoint
18178 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18180 * server.c (handle_query): Assign, not compare.
18182 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18184 Teach linux gdbserver to step-over-breakpoints.
18186 * linux-low.c (can_hardware_single_step): New.
18187 (supports_breakpoints): New.
18188 (handle_extended_wait): If stopping threads, read the stop pc of
18189 the new cloned LWP.
18191 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18192 low target doesn't support retrieving the PC.
18193 (add_lwp): Set last_resume_kind to resume_continue.
18194 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18195 (linux_attach): Don't clear stop_expected. Set the lwp's
18196 last_resume_kind to resume_stop.
18197 (linux_detach_one_lwp): Don't check for removed breakpoints.
18198 (check_removed_breakpoint): Delete.
18199 (status_pending_p): Rename to ...
18200 (status_pending_p_callback): ... this. Don't check for removed
18201 breakpoints. Don't consider threads that are stopped from GDB's
18203 (linux_wait_for_lwp): Always read the stop_pc here.
18204 (cancel_breakpoint): New.
18205 (step_over_bkpt): New global.
18206 (linux_wait_for_event_1): Implement stepping over breakpoints.
18207 (gdb_wants_lwp_stopped): New.
18208 (gdb_wants_all_stopped): New.
18209 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18210 single-step traps here. Store the thread's last reported target
18212 (send_sigstop): Don't clear stop_expected. Always set it,
18214 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18215 (cancel_finished_single_step): New.
18216 (cancel_finished_single_steps): New.
18217 (wait_for_sigstop): Don't cancel finished single-step traps here.
18218 (linux_resume_one_lwp): Don't check for removed breakpoints.
18219 Don't set `step' on non-hardware step archs.
18220 (linux_set_resume_request): Ignore resume_stop requests if already
18221 stopping or stopped. Set the lwp's last_resume_kind.
18222 (resume_status_pending_p): Don't check for removed breakpoints.
18223 (need_step_over_p): New.
18224 (start_step_over): New.
18225 (finish_step_over): New.
18226 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18227 requests. Clear the thread's last reported target waitstatus.
18228 Don't use the `suspended' flag. Don't consider pending breakpoints.
18229 (linux_resume): Start a step-over if necessary.
18230 (proceed_one_lwp): New.
18231 (proceed_all_lwps): New.
18232 (unstop_all_lwps): New.
18233 * linux-low.h (struct lwp_info): Rewrite comment for the
18234 `suspended' flag. Add the `stop_pc' field. Delete the
18235 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18236 Add `'last_resume_kind' and `need_step_over' fields.
18237 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18238 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18239 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18240 (set_raw_breakpoint_at): New.
18241 (set_breakpoint_at): Rewrite to use it.
18242 (reinsert_breakpoint_handler): Delete.
18243 (set_reinsert_breakpoint): New.
18244 (reinsert_breakpoint_by_bp): Delete.
18245 (delete_reinsert_breakpoints): New.
18246 (uninsert_breakpoint): Rewrite.
18247 (uninsert_breakpoints_at): New.
18248 (reinsert_breakpoint): Rewrite.
18249 (reinsert_breakpoints_at): New.
18250 (check_breakpoints): Rewrite.
18251 (breakpoint_here): New.
18252 (breakpoint_inserted_here): New.
18253 (check_mem_read): Adjust.
18254 * mem-break.h (breakpoints_supported, breakpoint_here)
18255 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18256 (reinsert_breakpoint_by_bp): Delete declaration.
18257 (delete_reinsert_breakpoints): Declare.
18258 (reinsert_breakpoint): Delete declaration.
18259 (reinsert_breakpoints_at): Declare.
18260 (uninsert_breakpoint): Delete declaration.
18261 (uninsert_breakpoints_at): Declare.
18262 (check_breakpoints): Adjust prototype.
18263 * server.h: Adjust include order.
18264 (struct thread_info): Declare here. Add a `last_status' field.
18266 2010-03-23 Michael Snyder <msnyder@vmware.com>
18268 * server.c (crc32): New function.
18269 (handle_query): Add handling for 'qCRC:' request.
18271 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18273 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18274 lwp had been stopped by a watchpoint.
18276 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18278 * server.h (internal_error): Declare.
18279 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18280 * utils.c (internal_error): New function.
18282 2010-03-15 Andreas Schwab <schwab@redhat.com>
18284 * configure.srv: Fix typo setting srv_regobj.
18286 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18288 * linux-low.c (fetch_register): Avoid passing a non string literal
18290 (usr_store_inferior_registers): Ditto.
18292 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18294 * linux-low.c (linux_write_memory): Bail out early if peeking
18297 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18299 * linux-low.h (struct lwp_info): New fields
18300 `stopped_by_watchpoint' and `stopped_data_address'.
18301 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18302 here, and cache them in the lwp object.
18303 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18305 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18307 (linux_stopped_by_watchpoint): Rewrite.
18308 (linux_stopped_data_address): Rewrite.
18310 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18312 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18313 switching the current inferior, not before.
18315 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18317 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18318 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18319 i386-linux.c and amd64-linux.c.
18320 (reg-i386.o): Removed.
18321 (reg-i386.c): Likewise.
18322 (reg-i386-linux.o): Likewise.
18323 (reg-i386-linux.c): Likewise.
18324 (reg-x86-64.o): Likewise.
18325 (reg-x86-64.c): Likewise.
18326 (reg-x86-64-linux.o): Likewise.
18327 (reg-x86-64-linux.c): Likewise.
18329 (i386.c): Likewise.
18330 (i386-linux.o): Likewise.
18331 (i386-linux.c): Likewise.
18332 (amd64.o): Likewise.
18333 (amd64.c): Likewise.
18334 (amd64-linux.o): Likewise.
18335 (amd64-linux.c): Likewise.
18337 * configure.srv (srv_i386_regobj): New.
18338 (srv_i386_linux_regobj): Likewise.
18339 (srv_amd64_regobj): Likewise.
18340 (srv_amd64_linux_regobj): Likewise.
18341 (srv_i386_32bit_xmlfiles): Likewise.
18342 (srv_i386_64bit_xmlfiles): Likewise.
18343 (srv_i386_xmlfiles): Likewise.
18344 (srv_amd64_xmlfiles): Likewise.
18345 (srv_i386_linux_xmlfiles): Likewise.
18346 (srv_amd64_linux_xmlfiles): Likewise.
18347 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18348 srv_xmlfiles to $srv_i386_xmlfiles.
18349 (i[34567]86-*-mingw32ce*): Likewise.
18350 (i[34567]86-*-mingw*): Likewise.
18351 (i[34567]86-*-nto*): Likewise.
18352 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18353 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18354 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18355 (x86_64-*-linux*): Likewise.
18357 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18358 (init_registers_amd64_linux): New.
18359 (x86_arch_setup): Replace init_registers_x86_64_linux with
18360 init_registers_amd64_linux.
18362 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18364 * configure.ac: Check for libdl. If it is not available link against
18365 static libthread_db.
18366 * configure: Regenerate.
18368 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18372 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18373 handing a read watchpoint.
18374 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18376 2010-02-12 Doug Evans <dje@google.com>
18378 * linux-low.c (linux_supports_tracefork_flag): Document.
18379 (linux_look_up_symbols): Add comment.
18381 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18383 * regcache.c (supply_register): Clear regcache if buf is NULL.
18385 2010-02-02 Nicolas Roche <roche@sourceware.org>
18386 Joel Brobecker <brobecker@adacore.com>
18388 * inferiors.c (find_inferior): Add function documentation.
18389 (unloaded_dll): Handle the case where the unloaded dll has not
18390 been previously registered in the dll list.
18392 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18394 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18395 (thumb2_breakpoint): New.
18396 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18398 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18400 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18401 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18404 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18406 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18408 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18410 * linux-s390-low.c (s390_collect_ptrace_register)
18411 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18413 2010-01-21 Doug Evans <dje@google.com>
18415 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18416 (PTRACE_ARG4_TYPE): New macro.
18417 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18418 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18419 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18420 (usr_store_inferior_registers): Ditto.
18421 (linux_read_memory, linux_write_memory): Ditto.
18422 (linux_test_for_tracefork): Ditto.
18424 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18425 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18427 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18429 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18432 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18434 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18435 prototype to take a regcache. Adjust.
18437 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18439 * regcache.h (struct thread_info): Forward declare.
18440 (struct regcache): New.
18441 (new_register_cache): Adjust prototype.
18442 (get_thread_regcache): Declare.
18443 (free_register_cache): Adjust prototype.
18444 (registers_to_string, registers_from_string): Ditto.
18445 (supply_register, supply_register_by_name, collect_register)
18446 (collect_register_as_string, collect_register_by_name): Ditto.
18447 * regcache.c (struct inferior_regcache_data): Delete.
18448 (get_regcache): Rename to ...
18449 (get_thread_regcache): ... this. Adjust. Switch inferior before
18450 fetching registers.
18451 (regcache_invalidate_one): Adjust.
18452 (regcache_invalidate): Fix prototype.
18453 (new_register_cache): Return the new register cache.
18454 (free_register_cache): Change prototype.
18455 (realloc_register_cache): Adjust.
18456 (registers_to_string): Change prototype to take a regcache. Adjust.
18457 (registers_from_string): Ditto.
18458 (register_data): Ditto.
18459 (supply_register): Ditto.
18460 (supply_register_by_name): Ditto.
18461 (collect_register): Ditto.
18462 (collect_register_as_string): Ditto.
18463 (collect_register_by_name): Ditto.
18464 * server.c (process_serial_event): Adjust.
18465 * linux-low.h (regset_fill_func, regset_store_func): Change
18467 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18469 * linux-low.c (get_stop_pc): Adjust.
18470 (check_removed_breakpoint): Adjust.
18471 (linux_wait_for_event): Adjust.
18472 (linux_resume_one_lwp): Adjust.
18473 (fetch_register): Add regcache parameter. Adjust.
18474 (usr_store_inferior_registers): Ditto.
18475 (regsets_fetch_inferior_registers): Ditto.
18476 (regsets_store_inferior_registers): Ditto.
18477 (linux_fetch_registers, linux_store_registers): Ditto.
18478 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18480 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18482 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18483 prototype to take a regcache.
18484 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18485 * remote-utils.c (convert_ascii_to_int, outreg)
18486 (prepare_resume_reply): Change prototype to take a regcache.
18488 * target.h (struct target_ops) <fetch_registers, store_registers>:
18489 Change prototype to take a regcache.
18490 (fetch_inferior_registers, store_inferior_registers): Change
18491 prototype to take a regcache. Adjust.
18492 * proc-service.c (ps_lgetregs): Adjust.
18493 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18494 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18495 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18496 take a regcache. Adjust.
18497 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18498 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18499 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18500 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18501 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18502 (cris_cannot_fetch_register):
18503 (cris_breakpoint_at): Change prototype to take a regcache.
18505 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18506 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18507 to take a regcache. Adjust.
18508 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18510 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18511 take a regcache. Adjust.
18512 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18513 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18514 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18515 * linux-mips-low.c (mips_get_pc):
18516 (mips_set_pc): Change prototype to take a regcache. Adjust.
18517 (mips_reinsert_addr): Adjust.
18518 (mips_collect_register): Change prototype to take a regcache.
18520 (mips_supply_register):
18521 (mips_collect_register_32bit, mips_supply_register_32bit)
18522 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18523 (mips_store_fpregset): Ditto.
18524 * linux-ppc-low.c (ppc_supply_ptrace_register)
18525 (ppc_supply_ptrace_register): Ditto.
18526 (parse_spufs_run): Adjust.
18527 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18528 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18529 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18530 take a regcache. Adjust.
18531 * linux-s390-low.c (s390_collect_ptrace_register)
18532 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18533 (s390_set_pc): Change prototype to take a regcache. Adjust.
18534 (s390_arch_setup): Adjust.
18535 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18536 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18537 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18538 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18539 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18541 (sparc_breakpoint_at): Adjust.
18542 * linux-xtensa-low.c (xtensa_fill_gregset):
18543 (xtensa_store_gregset):
18544 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18545 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18546 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18547 prototype to take a regcache. Adjust.
18548 * win32-arm-low.c (arm_fetch_inferior_register)
18549 (arm_store_inferior_register): Change prototype to take a
18551 * win32-i386-low.c (i386_fetch_inferior_register)
18552 (i386_store_inferior_register): Change prototype to take a
18554 * win32-low.c (child_fetch_inferior_registers)
18555 (child_store_inferior_registers): Change prototype to take a
18557 (win32_wait): Adjust.
18558 (win32_fetch_inferior_registers): Change prototype to take a
18560 (win32_store_inferior_registers): Adjust.
18561 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18562 store_inferior_register>: Change prototype to take a regcache.
18564 2010-01-20 Doug Evans <dje@google.com>
18566 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18568 (linux_wait_for_event1, linux_init_signals): Ditto.
18569 (W_STOPCODE): Provide definition if missing.
18571 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18573 * linux-low.c (linux_core_of_thread): New.
18574 (compare_ints, show_process, list_threads): New.
18575 (linux_qxfer_osdata): Report threads and cores.
18576 (linux_target_op): Register linux_core_of_thread.
18577 * remote-utils.c (prepare_resume_reply): Report the core.
18578 (buffer_xml_printf): Support %d specifier.
18579 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18581 (handle_query): Handle qXfer:threads. Announce availability
18583 * target.h (struct target_ops): New field core_of_thread.
18585 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18587 * Makefile.in (clean): Remove new generated files.
18588 (reg-s390.o, reg-s390.c): Remove rules.
18589 (reg-s390x.o, reg-s390x.c): Likewise.
18590 (s390-linux32.o, s390-linux32.c): Add rules.
18591 (s390-linux64.o, s390-linux64.c): Likewise.
18592 (s390x-linux64.o, s390x-linux64.c): Likewise.
18593 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18594 * linux-s390-low.c: Include <elf.h>.
18595 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18596 (init_registers_s390): Remove prototype.
18597 (init_registers_s390x): Likewise.
18598 (init_registers_s390_linux32): Add prototype.
18599 (init_registers_s390_linux64): Likewise.
18600 (init_registers_s390x_linux64): Likewise.
18601 (s390_num_regs_3264): New define.
18602 (s390_regmap_3264): New global variable.
18603 (s390_cannot_fetch_register): Remove obsolete check.
18604 (s390_cannot_store_register): Likewise.
18605 (s390_collect_ptrace_register): Handle upper/lower register halves.
18606 (s390_supply_ptrace_register): Likewise.
18607 (s390_fill_gregset): Update to register number changes.
18608 (s390_get_hwcap): New routine.
18609 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18610 Install appropriate regmap and register set.
18612 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18614 * server.c (gdbserver_version): Update copyright year to 2010.
18615 * gdbreplay.c (gdbreplay_version): Likewise.
18617 2009-12-28 Doug Evans <dje@google.com>
18619 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18620 elf/external.h. Include <elf.h> instead but only if necessary.
18622 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18624 * linux-low.c (linux_remove_process): Remove `detaching'
18625 parameter. Don't release/detach from thread_db here.
18626 (linux_kill): Release/detach from thread_db here, ...
18627 (linux_detach): ... and here, before actually detaching.
18628 (linux_wait_1): ... and here, when a process exits.
18629 * thread-db.c (any_thread_of): New.
18630 (thread_db_free): Switch the current inferior to a thread of the
18633 2009-12-21 Doug Evans <dje@google.com>
18635 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18637 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18638 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18639 warning ifndef __NR_tkill. Move setting of errno there too.
18640 Delete unnecessary resetting of errno after syscall.
18641 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18643 * configure.ac: Check for dladdr.
18644 * config.in: Regenerate.
18645 * configure: Regenerate.
18646 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18647 (try_thread_db_load): Update.
18649 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18651 2009-12-18 Doug Evans <dje@google.com>
18653 * event-loop.c: Include unistd.h if it exists.
18655 * linux-low.c (my_waitpid): Move definition away from being in
18656 between linux_tracefork_child/linux_test_for_tracefork.
18658 * gdb_proc_service.h (psaddr_t): Fix type.
18659 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18660 signature to match glibc.
18662 2009-12-16 Doug Evans <dje@google.com>
18664 * linux-low.c (linux_read_memory): Fix argument to read.
18666 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18668 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18669 events, don't leave current_inferior pointing at null.
18671 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18673 * win32-low.c (LOG): Delete.
18674 (OUTMSG): Output to stderr.
18675 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18676 on compile time LOG macro.
18677 (win32_wait): Fix debug output.
18679 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18681 * win32-low.c (win32_add_one_solib): If the dll name is
18682 "ntdll.dll", prepend the system directory to the dll path.
18684 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18686 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18688 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18689 Vladimir Prus <vladimir@codesourcery.com>
18691 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18692 * configure.ac: Check for __mcoldfire__ and set
18693 gdb_cv_m68k_is_coldfire.
18694 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18695 reg-cf.o and reg-m68k.o.
18696 * configure: Regenerated.
18698 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18700 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18701 Pass it to thread_db_free.
18702 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18703 proper `detaching' argument to linux_remove_process.
18704 * linux-low.h (thread_db_free): Add `detaching' parameter.
18705 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18707 (thread_db_free): Add `detaching' parameter. Only
18708 call td_ta_clear_event if detaching from process.
18710 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18712 * thread-db.c (thread_db_free): Fix typo.
18714 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18717 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18719 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18721 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18722 with an i686 compiler.
18723 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18725 * configure: Rebuilt.
18727 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18731 * server.c (handle_search_memory_1): Correct read_addr initialization
18732 in loop for searching subsequent chunks.
18734 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18736 * configure.ac: New --with-libthread-db option.
18737 * thread-db.c: Allow direct dependence on libthread_db.
18738 (thread_db_free): Adjust.
18739 * config.in: Regenerate.
18740 * configure: Likewise.
18742 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18745 * thread-db.c (attach_thread): New function.
18746 (maybe_attach_thread): Return success/failure.
18747 (find_new_threads_callback): Adjust.
18748 (thread_db_find_new_threads): Loop until no new threads.
18750 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18752 * proc-service.c (ps_lgetregs): Formatting.
18754 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18756 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18757 * configure.ac: Adjust.
18758 * linux-low.h (struct process_info_private): Move members to struct
18760 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18761 * linux-low.c (linux_remove_process): Adjust.
18762 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18763 * server.c (handle_query): Move code ...
18764 (handle_monitor_command): ... here. New function.
18765 * target.h (struct target_ops): New member.
18766 * thread-db.c (struct thread_db): New.
18767 (libthread_db_search_path): New variable.
18768 (thread_db_create_event, thread_db_enable_reporting)
18769 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18770 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18771 (try_thread_db_load_1, dladdr_to_soname): New functions.
18772 (try_thread_db_load, thread_db_load_search): New functions.
18773 (thread_db_init): Search for libthread_db.
18774 (thread_db_free): New function.
18775 (thread_db_handle_monitor_command): Likewise.
18776 * config.in: Regenerate.
18777 * configure: Regenerate.
18779 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18781 * spu-low.c (spu_kill): Wait for inferior to terminate.
18782 Call clear_inferiors.
18783 (spu_detach): Call clear_inferiors.
18785 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18787 * aclocal.m4: Regenerate.
18788 * config.in: Likewise.
18789 * configure: Likewise.
18791 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18793 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18794 (parse_spufs_run): New function.
18795 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18796 (ppc_breakpoint_at): Handle SPU breakpoints.
18798 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18800 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
18801 (SPUFS_MAGIC): Define.
18802 (spu_enumerate_spu_ids): New function.
18803 (linux_qxfer_spu): New function.
18804 (linux_target_ops): Install linux_qxfer_spu.
18806 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18808 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
18809 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
18810 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
18811 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
18812 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
18813 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
18814 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
18815 (init_registers_powerpc_cell32l): Add prototype.
18816 (init_registers_powerpc_cell64l): Likewise.
18817 (ppc_arch_setup): Detect Cell/B.E. architecture.
18819 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18821 * Makefile.in (datarootdir): New variable.
18823 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18825 * linux-low.c (linux_write_memory): Update debugging output.
18826 * Makefile.in (clean): Add new descriptions.
18827 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
18828 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
18829 * configure.srv: Add new files for arm*-*-linux*.
18830 * linux-arm-low.c: Add new declarations.
18831 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
18832 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
18833 (HWCAP_VFPv3D16): New.
18834 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
18835 instead of __IWMMXT__.
18836 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
18837 (arm_arch_setup): New.
18838 (target_regsets): Remove #ifdef. Add VFP regset.
18839 (the_low_target): Use arm_arch_setup.
18841 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
18843 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
18844 the main thread again.
18846 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
18848 Adding Neutrino gdbserver.
18849 * configure: Regenerated.
18850 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
18851 * configure.srv (i[34567]86-*-nto*): New target.
18852 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
18853 * remote-utils.c [__QNX__]: Include sys/iomgr.h
18854 (nto_comctrl) [__QNX__]: New function.
18855 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
18857 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
18859 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
18862 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
18863 Pedro Alves <pedro@codesourcery.com>
18865 * win32-i386-low.c (i386_get_thread_context): Handle systems that
18866 don't support CONTEXT_EXTENDED_REGISTERS.
18867 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
18868 (the_low_target): Install them.
18869 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
18870 failing with ERROR_PIPE_NOT_CONNECTED.
18872 2009-06-30 Doug Evans <dje@google.com>
18873 Pierre Muller <muller@ics.u-strasbg.fr>
18875 Add h/w watchpoint support to x86-linux, win32-i386.
18876 * Makefile.in (SFILES): Add i386-low.c
18877 (i386_low_h): Define.
18878 (i386-low.o): Add dependencies.
18879 (linux-x86-low.o): Add i386-low.h dependency.
18880 (win32-i386-low.o): Ditto.
18881 * i386-low.c: New file.
18882 * i386-low.h: New file.
18883 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
18884 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
18885 * linux-low.c (linux_add_process): Initialize arch_private.
18886 (linux_remove_process): Free arch_private.
18887 (add_lwp): Initialize arch_private.
18888 (delete_lwp): Free arch_private.
18889 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
18891 * linux-low.h (process_info_private): New member arch_private.
18892 (lwp_info): New member arch_private.
18893 (linux_target_ops): New members new_process, new_thread,
18895 (ptid_of): New macro.
18896 * linux-x86-low.c: Include stddef.h, i386-low.h.
18897 (arch_process_info): New struct.
18898 (arch_lwp_info): New struct.
18899 (x86_linux_dr_get, x86_linux_dr_set): New functions.
18900 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18901 (i386_dr_low_get_status): New function.
18902 (x86_insert_point, x86_remove_point): New functions.
18903 (x86_stopped_by_watchpoint): New function.
18904 (x86_stopped_data_address): New function.
18905 (x86_linux_new_process, x86_linux_new_thread): New functions.
18906 (x86_linux_prepare_to_resume): New function.
18907 (the_low_target): Add entries for insert_point, remove_point,
18908 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
18910 * server.c (debug_hw_points): New global.
18911 (monitor_show_help): Document set debug-hw-points.
18912 (handle_query): Process "set debug-hw-points".
18913 * server.h (debug_hw_points): Declare.
18914 (paddress): Declare.
18915 * utils.c (NUMCELLS, CELLSIZE): New macros.
18916 (get_sell, xsnprintf, paddress): New functions.
18917 * win32-arm-low.c (the_low_target): Add entries for insert_point,
18918 remove_point, stopped_by_watchpoint, stopped_data_address.
18919 * win32-i386-low.c: Include i386-low.h.
18920 (debug_reg_state): Replaces dr.
18921 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
18922 (i386_dr_low_get_status): New function.
18923 (i386_insert_point, i386_remove_point): New functions.
18924 (i386_stopped_by_watchpoint): New function.
18925 (i386_stopped_data_address): New function.
18926 (i386_initial_stuff): Update.
18927 (get_thread_context,set_thread_context,i386_thread_added): Update.
18928 (the_low_target): Add entries for insert_point,
18929 remove_point, stopped_by_watchpoint, stopped_data_address.
18930 * win32-low.c (win32_insert_watchpoint): New function.
18931 (win32_remove_watchpoint): New function.
18932 (win32_stopped_by_watchpoint): New function.
18933 (win32_stopped_data_address): New function.
18934 (win32_target_ops): Add entries for insert_watchpoint,
18935 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
18936 * win32-low.h (win32_target_ops): New members insert_point,
18937 remove_point, stopped_by_watchpoint, stopped_data_address.
18939 2009-06-25 Pedro Alves <pedro@codesourcery.com>
18941 * server.c (process_serial_event): Re-return unsupported, not
18942 error, if the type isn't recognized. Re-allow supporting only
18943 insert or remove packets. Also call require_running for
18944 breakpoints. Add missing break statement to default case. Tidy.
18945 * target.h (struct target_ops): Rename insert_watchpoint to
18946 insert_point, and remove_watchpoint to remove_point.
18948 * linux-low.h (struct linux_target_ops): Likewise.
18949 * linux-low.c (linux_insert_watchpoint): Rename to ...
18950 (linux_insert_point): ... this. Adjust.
18951 (linux_remove_watchpoint): Rename to ...
18952 (linux_remove_point): ... this. Adjust.
18953 (linux_target_ops): Adjust.
18954 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
18955 (cris_insert_point): ... this.
18956 (cris_remove_watchpoint): Rename to ...
18957 (cris_remove_point): ... this.
18958 (the_low_target): Adjust.
18960 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
18962 * server.c (handle_v_kill): Pass signal_pid to
18963 kill_inferior if multi_process is zero.
18965 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
18967 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
18968 * target.h (target_ops): Comment for *_watchpoint to make it clear
18969 the functions can get types '0' and '1'.
18971 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
18973 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
18974 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
18975 * regcache.c (get_regcache): Likewise.
18976 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
18977 * win32-low.c (child_fetch_inferior_registers): Remove check for
18980 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
18981 Pedro Alves <pedro@codesourcery.com>
18983 * target.h (struct target_ops) <supports_multi_process>: New
18985 (target_supports_multi_process): New.
18986 * server.c (handle_query): Even if GDB reports support, only
18987 enable multi-process if the target also supports it. Report
18988 multi-process support only if the target backend supports it.
18989 * linux-low.c (linux_supports_multi_process): New function.
18990 (linux_target_ops): Install it as target_supports_multi_process
18993 2009-05-24 Doug Evans <dje@google.com>
18995 Global renaming of find_thread_pid to find_thread_ptid.
18996 * server.h (find_thread_ptid): Renamed from find_thread_pid.
18997 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
18998 All callers updated.
19000 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19001 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19004 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19005 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19006 (linux_resume_one_lwp): Ditto.
19008 2009-05-23 Doug Evans <dje@google.com>
19010 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19011 from struct inferior_list_entry * to struct lwp_info *.
19012 All callers updated.
19014 2009-05-13 Doug Evans <dje@google.com>
19016 * linux-x86-low.c: Don't include assert.h.
19017 (x86_siginfo_fixup): Use fatal, not assert.
19018 (x86_arch_setup): Fix comment.
19020 2009-05-12 Doug Evans <dje@google.com>
19022 Biarch support for i386/amd64 gdbserver.
19023 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19024 Add linux-x86-low.c.
19025 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19026 (linux-x86-low.o): Add.
19027 * linux-x86-64-low.c: Delete.
19028 * linux-i386-low.c: Delete.
19029 * linux-x86-low.c: New file.
19030 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19032 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19034 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19035 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19036 (linux_child_pid_to_exec_file): New function.
19037 (elf_64_header_p, elf_64_file_p): New functions.
19038 (siginfo_fixup): New function.
19039 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19040 give target a chance to convert layout.
19041 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19042 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19044 2009-05-07 Doug Evans <dje@google.com>
19046 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19047 (regsets_store_inferior_registers): Ditto.
19049 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19053 * linux-low.c (must_set_ptrace_flags): Delete.
19054 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19056 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19057 `lwp->must_set_ptrace_flags' instead.
19058 (linux_wait_for_event_1): Set ptrace options here.
19059 (linux_wait_1): ... not here.
19061 2009-04-30 Doug Evans <dje@google.com>
19063 * inferiors.c (started_inferior_callback): New function.
19064 (attached_inferior_callback): New function.
19065 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19066 * server.c (print_started_pid, print_attached_pid): New functions.
19067 (detach_or_kill_for_exit): New function.
19068 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19069 * server.h (have_started_inferiors_p): Declare.
19070 (have_attached_inferiors_p): Declare.
19072 * inferiors.c (remove_process): Fix memory leak, free process.
19073 * linux-low.c (linux_remove_process): New function.
19074 (linux_kill): Call it instead of remove_process.
19075 (linux_detach, linux_wait_1): Ditto.
19077 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19079 * configure.srv: Add x86 Windows CE target.
19081 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19083 * inferiors.c (get_thread_process): Make global.
19084 * server.h (get_thread_process): Add prototype.
19085 * thread-db.c (find_one_thread): Use get_thread_process
19086 instead of current_process.
19087 (thread_db_get_tls_address): Do not crash if called when
19088 thread layer is not yet initialized.
19090 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19092 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19093 * spu-low.c (current_tid): Rename to ...
19094 (current_ptid): ... this.
19095 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19096 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19097 ptid_get_lwp (current_ptid) instead of current_tid.
19098 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19099 instead of current_tid. Use find_process_pid to verify pid
19100 argument is valid. Pass proper argument to remove_process.
19101 (spu_thread_alive): Compare current_ptid instead of current_tid.
19102 (spu_resume): Likewise.
19104 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19106 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19109 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19111 Implement the multiprocess extensions, and add linux multiprocess
19114 * server.h (ULONGEST): Declare.
19115 (struct ptid, ptid_t): New.
19116 (minus_one_ptid, null_ptid): Declare.
19117 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19118 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19119 (struct inferior_list_entry): Change `id' type from unsigned from
19121 (struct sym_cache, struct breakpoint, struct
19122 process_info_private): Forward declare.
19123 (struct process_info): Declare.
19124 (current_process): Declare.
19125 (all_processes): Declare.
19126 (initialize_inferiors): Declare.
19127 (add_thread): Adjust to use ptid_t.
19128 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19129 (add_process, remove_process, find_thread_pid): Declare.
19130 (find_inferior_id): Adjust to use ptid_t.
19131 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19132 (multi_process): Declare.
19133 (push_event): Adjust to use ptid_t.
19134 (read_ptid, write_ptid): Declare.
19135 (prepare_resume_reply): Adjust to use ptid_t.
19136 (clear_symbol_cache): Declare.
19137 * inferiors.c (all_processes): New.
19138 (null_ptid, minus_one_ptid): New.
19139 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19140 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19141 (add_thread): Change unsigned long to ptid. Remove gdb_id
19143 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19144 (gdb_id_to_thread): Rename to ...
19145 (find_thread_pid): ... this. Change unsigned long to ptid.
19146 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19147 (loaded_dll, pull_pid_from_list): Adjust.
19148 (add_process, remove_process, find_process_pid)
19149 (get_thread_process, current_process, initialize_inferiors): New.
19150 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19151 (struct target_waitstatus) <related_pid>: Ditto.
19152 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19153 return type to int.
19154 (struct target_ops) <join>: Add `pid' argument.
19155 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19156 (struct target_ops) <wait>: Add `ptid' field. Change return type
19158 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19159 (mywait): Add `ptid' argument. Change return type to ptid_t.
19160 (target_pid_to_str): Declare.
19161 * target.c (set_desired_inferior): Adjust to use ptids.
19162 (mywait): Add new `ptid' argument. Adjust.
19163 (target_pid_to_str): New.
19164 * mem-break.h (free_all_breakpoints): Declare.
19165 * mem-break.c (breakpoints): Delelete.
19166 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19167 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19168 to use per-process breakpoint list.
19169 (free_all_breakpoints): New.
19170 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19171 (symbol_cache, all_symbols_looked_up): Delete.
19173 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19175 (prepare_resume_reply): Change ptid argument's type from unsigned
19176 long to ptid_t. Adjust. Implement W;process and X;process.
19177 (free_sym_cache, clear_symbol_cache): New.
19178 (look_up_one_symbol): Adjust to per-process symbol cache. *
19179 * server.c (cont_thread, general_thread, step_thread): Change type
19181 (attached): Delete.
19182 (multi_process): New.
19183 (last_ptid): Change type to ptid_t.
19184 (struct vstop_notif) <ptid>: Change type to ptid_t.
19185 (queue_stop_reply, push_event): Change `ptid' argument's type to
19187 (discard_queued_stop_replies): Add `pid' argument.
19188 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19189 changes. Don't reference the `attached' global.
19190 (attach_inferior): Adjust to mywait interface changes.
19191 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19192 features. Handle and report "multiprocess+". Handle
19194 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19196 (handle_v_kill): New.
19197 (handle_v_stopped): Adjust to use target_pid_to_str.
19198 (handle_v_requests): Allow multiple attaches and runs when
19199 multiprocess extensions are in effect. Handle "vKill".
19200 (myresume): Adjust to use ptids.
19201 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19202 (handle_status): Adjust to discard_queued_stop_replies interface
19204 (first_thread_of, kill_inferior_callback)
19205 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19206 (main): Call initialize_inferiors. Adjust to use ptids, killing
19207 and detaching from all inferiors. Handle multiprocess packet
19209 * linux-low.h: Include gdb_proc_service.h.
19210 (struct process_info_private): New.
19211 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19212 <lwpid_of>: Use ptid_get_lwp.
19213 (get_lwp_thread): Adjust.
19214 (struct lwp_info): Add `dead' member.
19215 (find_lwp_pid): Declare.
19216 * linux-low.c (thread_db_active): Delete.
19217 (new_inferior): Adjust comment.
19218 (inferior_pid): Delete.
19219 (linux_add_process): New.
19220 (handle_extended_wait): Adjust.
19221 (add_lwp): Change unsigned long to ptid.
19222 (linux_create_inferior): Add process to processes table. Adjust
19223 to use ptids. Don't set new_inferior here.
19224 (linux_attach_lwp): Rename to ...
19225 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19226 it. Adjust to use ptids.
19227 (linux_attach_lwp): New.
19228 (linux_attach): Add process to processes table. Don't set
19230 (struct counter): New.
19231 (second_thread_of_pid_p, last_thread_of_process_p): New.
19232 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19233 multiple processes.
19234 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19235 processes. Remove process from process table.
19236 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19237 to multiple processes.
19238 (any_thread_of): New.
19239 (linux_detach): Add `pid' argument, and handle it. Remove process
19240 from processes table.
19241 (linux_join): Add `pid' argument. Handle it.
19242 (linux_thread_alive): Change unsighed long argument to ptid_t.
19243 Consider dead lwps as not being alive.
19244 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19245 threads we're not interested in.
19246 (same_lwp, find_lwp_pid): New.
19247 (linux_wait_for_lwp): Change `pid' argument's type from int to
19249 (linux_wait_for_event): Rename to ...
19250 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19251 from int to ptid_t. Adjust.
19252 (linux_wait_for_event): New.
19253 (linux_wait_1): Add `ptid' argument. Change return type to
19254 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19255 that exit from the process table.
19256 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19258 (mark_lwp_dead): New.
19259 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19260 stopping all threads, mark its main lwp as dead.
19261 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19263 (fetch_register, usr_store_inferior_registers)
19264 (regsets_fetch_inferior_registers)
19265 (regsets_store_inferior_registers, linux_read_memory)
19266 (linux_write_memory): Inline `inferior_pid'.
19267 (linux_look_up_symbols): Adjust to use per-process
19268 `thread_db_active'.
19269 (linux_request_interrupt): Adjust to use ptids.
19270 (linux_read_auxv): Inline `inferior_pid'.
19271 (initialize_low): Don't reference thread_db_active.
19272 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19273 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19274 (ps_getpid): Return the pid of the current inferior.
19275 * thread-db.c (proc_handle, thread_agent): Delete.
19276 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19278 (find_one_thread): Change argument type to ptid_t. Adjust to
19280 (maybe_attach_thread): Adjust to per-process data and ptids.
19281 (thread_db_find_new_threads): Ditto.
19282 (thread_db_init): Ditto.
19283 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19284 processes table. Adjust to use ptids.
19285 (spu_kill, spu_detach): Adjust interface. Remove process from
19287 (spu_join, spu_thread_alive): Adjust interface.
19288 (spu_wait): Adjust interface. Remove process from processes
19289 table. Adjust to use ptids.
19290 * win32-low.c (current_inferior_tid): Delete.
19291 (current_inferior_ptid): New.
19292 (debug_event_ptid): New.
19293 (thread_rec): Take a ptid. Adjust.
19294 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19295 (child_delete_thread): Ditto.
19296 (do_initial_child_stuff): Add `attached' argument. Add process to
19298 (child_fetch_inferior_registers, child_store_inferior_registers):
19300 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19301 (win32_attach): Pass 1 to do_initial_child_stuff.
19302 (win32_kill): Adjust interface. Remove process from processes
19304 (win32_detach): Ditto.
19305 (win32_join): Adjust interface.
19306 (win32_thread_alive): Take a ptid.
19307 (win32_resume): Adjust to use ptids.
19308 (get_child_debug_event): Ditto.
19309 (win32_wait): Adjust interface. Remove exiting process from
19312 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19314 Non-stop mode support.
19316 * server.h (non_stop): Declare.
19317 (gdb_client_data, handler_func): Declare.
19318 (delete_file_handler, add_file_handler, start_event_loop):
19320 (handle_serial_event, handle_target_event, push_event)
19321 (putpkt_notif): Declare.
19322 * target.h (enum resume_kind): New.
19323 (struct thread_resume): Replace `step' field by `kind' field.
19324 (TARGET_WNOHANG): Define.
19325 (struct target_ops) <wait>: Add `options' argument.
19326 <supports_non_stop, async, start_non_stop>: New fields.
19327 (target_supports_non_stop, target_async): New.
19328 (start_non_stop): Declare.
19329 (mywait): Add `options' argument.
19330 * target.c (mywait): Add `options' argument. Print child exit
19331 notifications here.
19332 (start_non_stop): New.
19333 * server.c (non_stop, own_buf, mem_buf): New globals.
19334 (struct vstop_notif): New.
19335 (notif_queue): New global.
19336 (queue_stop_reply, push_event, discard_queued_stop_replies)
19337 (send_next_stop_reply): New.
19338 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19340 (attach_inferior): In non-stop mode, don't wait for the target
19342 (handle_general_set): Handle QNonStop.
19343 (handle_query): When handling qC, return the current general
19344 thread, instead of the first thread of the list.
19345 (handle_query): If the backend supports non-stop mode, include
19346 QNonStop+ in the qSupported query response.
19347 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19349 (handle_v_attach, handle_v_run): Handle non-stop mode.
19350 (handle_v_stopped): New.
19351 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19352 (myresume): Adjust to use resume_kind. Handle non-stop.
19353 (queue_stop_reply_callback): New.
19354 (handle_status): Handle non-stop mode.
19355 (main): Clear non_stop flag on reconnection. Use the event-loop.
19356 Refactor serial protocol handling from here ...
19357 (process_serial_event): ... to this new function. When GDB
19358 selects any thread, select one here. In non-stop mode, wait until
19359 GDB acks all pending events before exiting.
19360 (handle_serial_event, handle_target_event): New.
19361 * remote-utils.c (remote_open): Install remote_desc in the event
19363 (remote_close): Remove remote_desc from the event loop.
19364 (putpkt_binary): Rename to...
19365 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19366 (putpkt_binary): New as wrapper around putpkt_binary_1.
19367 (putpkt_notif): New.
19368 (prepare_resume_reply): In non-stop mode, don't change the
19370 * event-loop.c: New.
19371 * Makefile.in (OBJ): Add event-loop.o.
19372 (event-loop.o): New rule.
19374 * linux-low.h (pid_of): Moved here.
19376 (get_lwp_thread): Use lwpid_of.
19377 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19378 * linux-low.c (pid_of): Delete.
19379 (inferior_pid): Use lwpid_of.
19380 (linux_event_pipe): New.
19381 (target_is_async_p): New.
19383 (handle_extended_wait): Use lwpid_of.
19384 (add_lwp): Don't set lwpid field.
19385 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19386 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19387 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19388 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19389 first. Adjust to linux_wait_for_event interface changes. Use
19391 (linux_detach): Don't delete the main lwp here.
19392 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19393 (status_pending_p): Don't consider explicitly suspended lwps.
19394 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19395 pointer. Add OPTIONS argument. Change return type to int. Use
19396 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19397 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19398 pointer. Add status pointer argument. Return a pid instead of a
19399 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19400 changes. In non-stop mode, don't switch to a random thread.
19401 (linux_wait): Rename to...
19402 (linux_wait_1): ... this. Add target_options argument, and handle
19403 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19404 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19405 clean exit and signal exit code. Don't stop all threads in
19406 non-stop mode. In all-stop mode, only stop all threads when
19407 reporting a stop to GDB. Handle explicit thread stop requests.
19408 (async_file_flush, async_file_mark): New.
19410 (send_sigstop): Use lwpid_of.
19411 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19412 interface changes. In non-stop mode, don't switch to a random
19414 (linux_resume_one_lwp): Use lwpid_of.
19415 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19416 (linux_resume_one_thread): ... this. Handle resume_stop. In
19417 non-stop mode, don't look for pending flag in all threads.
19418 (resume_status_pending_p): Don't consider explicitly suspended
19420 (my_waitpid): Reimplement. Emulate __WALL.
19421 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19423 (sigchld_handler, linux_supports_non_stop, linux_async)
19424 (linux_start_non_stop): New.
19425 (linux_target_ops): Register linux_supports_non_stop, linux_async
19426 and linux_start_non_stop.
19427 (initialize_low): Install SIGCHLD handler.
19428 * thread-db.c (thread_db_create_event, find_one_thread)
19429 (thread_db_get_tls_address): Use lwpid_of.
19430 * win32-low.c (win32_detach): Adjust to use resume_kind.
19431 (win32_wait): Add `options' argument.
19432 * spu-low.c (spu_resume): Adjust to use resume_kind.
19433 (spu_wait): Add `options' argument.
19435 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19437 Decouple target code from remote protocol.
19439 * target.h (enum target_waitkind): New.
19440 (struct target_waitstatus): New.
19441 (struct target_ops) <wait>: Return an unsigned long. Take a
19442 target_waitstatus pointer instead of a char pointer.
19443 (mywait): Likewise.
19444 * target.c (mywait): Change prototype to return an unsigned long.
19445 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19446 * server.h (thread_from_wait, old_thread_from_wait): Delete
19448 (prepare_resume_reply): Change prototype to take a
19450 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19451 (last_status, last_ptid): New.
19452 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19453 pid instead of a signal.
19454 (attach_inferior): Remove "status" and "signal" parameters.
19456 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19458 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19459 (handle_v_requests, myresume): Remove "status" and "signal"
19460 parameters. Adjust.
19461 (handle_status): New.
19462 (main): Delete local `status'. Adjust.
19463 * remote-utils.c: Include target.h.
19464 (prepare_resume_reply): Change prototype to take a
19465 target_waitstatus. Adjust.
19467 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19469 * spu-low.c (spu_wait): Adjust.
19470 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19472 (win32_wait): Adjust.
19474 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19476 * target.h (struct thread_resume): Delete leave_stopped member.
19477 (struct target_ops): Add a `n' argument to the `resume' callback.
19478 * server.c (start_inferior): Adjust.
19479 (handle_v_cont, myresume): Adjust.
19480 * linux-low.c (check_removed_breakpoint): Adjust to resume
19481 interface change, and to removed leave_stopped field.
19482 (resume_ptr): Delete.
19483 (struct thread_resume_array): New.
19484 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19485 resume interface change.
19486 (linux_continue_one_thread, linux_queue_one_thread)
19487 (resume_status_pending_p): Check if the resume field is NULL
19488 instead of checking the leave_stopped member.
19489 (linux_resume): Adjust to the target resume interface change.
19490 * spu-low.c (spu_resume): Adjust to the target resume interface
19492 * win32-low.c (win32_detach, win32_resume): Ditto.
19494 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19496 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19498 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19500 (linux_continue_one_thread): Only preserve the stepping flag if
19501 there's a pending breakpoint.
19503 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19505 * server.c (main): After the inferior having exited, call
19506 remote_close before exiting gdbserver.
19508 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19510 Fix size of FPSCR in Power 7 processors.
19511 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19512 (PPC_FEATURE_HAS_DFP): New #define.
19513 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19516 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19518 * server.c (handle_query) Whitespace and formatting.
19520 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19522 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19523 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19524 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19525 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19526 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19527 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19528 Makefile.in, configure.ac: Fix whitespace throughout.
19529 * configure: Regenerate.
19531 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19533 * inferiors.c (find_inferior): Make it safe for the callback
19534 function to delete the currently iterated inferior.
19536 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19538 * Makefile.in (linuw_low_h): Move higher.
19539 (thread-db.o): Depend on $(linux_low_h).
19541 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19543 Rename "process" to "lwp" throughout.
19545 * linux-low.c (all_processes): Rename to...
19546 (all_lwps): ... this.
19547 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19548 (add_process): Rename to ...
19549 (add_lwp): ... this. Adjust.
19550 (linux_create_inferior): Adjust.
19551 (linux_attach_lwp): Adjust.
19552 (linux_attach): Adjust.
19553 (linux_kill_one_process): Rename to ...
19554 (linux_kill_one_lwp): ... this. Adjust.
19555 (linux_kill): Adjust.
19556 (linux_detach_one_process): Rename to ...
19557 (linux_detach_one_lwp): ... this. Adjust.
19558 (linux_detach): Adjust.
19559 (check_removed_breakpoint): Adjust.
19560 (status_pending_p): Adjust.
19561 (linux_wait_for_process): Rename to ...
19562 (linux_wait_for_lwp): ... this. Adjust.
19563 (linux_wait_for_event): Adjust.
19564 (send_sigstop): Adjust.
19565 (wait_for_sigstop): Adjust.
19566 (stop_all_processes): Rename to ...
19567 (stop_all_lwps): ... this.
19568 (linux_resume_one_process): Rename to ...
19569 (linux_resume_one_lwp): ... this. Adjust.
19570 (linux_set_resume_request, linux_continue_one_thread)
19571 (linux_queue_one_thread, resume_status_pending_p)
19572 (usr_store_inferior_registers, regsets_store_inferior_registers)
19573 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19575 * linux-low.h (get_process): Rename to ...
19576 (get_lwp): ... this. Adjust.
19577 (get_thread_process): Rename to ...
19578 (get_thread_lwp): ... this. Adjust.
19579 (get_process_thread): Rename to ...
19580 (get_lwp_thread): ... this. Adjust.
19581 (struct process_info): Rename to ...
19582 (struct lwp_info): ... this.
19583 (all_processes): Rename to ...
19584 (all_lwps): ... this.
19585 * proc-service.c (ps_lgetregs): Adjust.
19586 * thread-db.c (thread_db_create_event, find_one_thread)
19587 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19589 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19591 * server.c (handle_query): Handle "qAttached".
19593 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19595 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19596 GPLv3, update license URL.
19598 2009-03-01 Doug Evans <dje@google.com>
19600 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19601 (server_h): Add gdb_signals.h.
19602 (signals.o): Update.
19603 * server.h (target_signal_from_host,target_signal_to_host_p)
19604 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19606 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19608 * remote-utils.c (getpkt): Also generate remote-debug
19609 information if noack_mode is set.
19611 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19613 * server.c (handle_query): Report qXfer:siginfo:read and
19614 qXfer:siginfo:write as supported and handle them.
19615 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19616 * linux-low.c (linux_xfer_siginfo): New.
19617 (linux_target_ops): Set it.
19619 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19621 * server.c (gdbserver_usage): Mention --remote-debug.
19622 (main): Accept '--remote-debug' switch.
19624 2009-01-18 Doug Evans <dje@google.com>
19626 * regcache.c (new_register_cache): No need to check result of xcalloc.
19627 * server.c (handle_search_memory): Back out calls to xmalloc,
19628 result is checked and error is returned to user upon failure.
19629 (handle_query): Ditto. Add more checks for result of malloc.
19630 (handle_v_cont): Check result of malloc, report error back to
19632 (handle_v_run): Ditto. Call freeargv.
19633 * server.h (freeargv): Declare.
19634 * utils.c (freeargv): New fn.
19636 2009-01-15 Doug Evans <dje@google.com>
19638 * gdbreplay.c (perror_with_name): Make arg const char *.
19639 * server.h (target_signal_to_name): Make return type const char *.
19640 * thread-db.c (thread_db_err_str): Make return type const char *.
19641 * utils.c (perror_with_name): Make arg const char *.
19643 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19645 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19646 when handling a EXIT_PROCESS_DEBUG_EVENT.
19648 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19650 * gdbreplay.c (gdbreplay_version): Update copyright year.
19651 * server.c (gdbserver_version): Likewise.
19653 2009-01-05 Doug Evans <dje@google.com>
19655 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19656 (handle_extended_wait): Improve comment.
19658 2008-12-13 Doug Evans <dje@google.com>
19660 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19661 * server.h (ATTR_MALLOC): New macro.
19662 (xmalloc,xcalloc,xstrdup): Declare.
19663 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19664 * inferiors.c: Ditto.
19665 * linux-low.c: Ditto.
19666 * mem-break.c: Ditto.
19667 * regcache.c: Ditto.
19668 * remote-utils.c: Ditto.
19671 * win32-low.c: Ditto.
19673 2008-12-12 Doug Evans <dje@google.com>
19675 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19676 in debugging printf.
19678 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19680 2008-12-09 Doug Evans <dje@google.com>
19682 * linux-low.h (struct process_info): Delete member tid, unused.
19683 * thread-db.c (find_one_thread): Update.
19684 (maybe_attach_thread): Update.
19686 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19688 * target.h (struct target_ops): Add qxfer_osdata member.
19689 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19691 (linux_qxfer_osdata): New functions.
19692 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19694 * server.c (handle_query): Handle "qXfer:osdata:read:".
19695 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19696 (buffer_xml_printf): New functions.
19697 * server.h (struct buffer): New.
19698 (buffer_grow_str, buffer_grow_str0): New macros.
19699 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19700 (buffer_xml_printf): Declare.
19702 2008-11-24 Doug Evans <dje@google.com>
19704 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19706 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19708 * server.c (handle_v_run): Always use the supplied argument list.
19710 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19712 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19713 (xtensa_regmap_table): Add entry for scompare1.
19715 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19717 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19718 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19719 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19720 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19721 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19722 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19723 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19724 XML target descriptions.
19725 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19726 when inferior is running on an ISA 2.05 or later processor. Add
19727 special case to return offset for full 64-bit slot of FPSCR when
19730 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19732 * Makefile.in (SFILES, clean): Added sparc64 files.
19733 (reg-sparc64.o, reg-sparc64.c): New.
19734 * configure.srv (sparc*-*-linux*): New configuration.
19735 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19736 syscall arguments for SPARC.
19737 (regsets_store_inferior_registers): Likewise.
19738 * linux-sparc-low.c: New file.
19740 2008-10-21 Doug Evans <dje@google.com>
19742 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19743 (READLINE_DIR,READLINE_DEP): Delete.
19744 (INTERNAL_CFLAGS): Update.
19745 (LINTFLAGS): Update.
19747 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19749 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19750 whole argv from the last run, not just argv[0].
19752 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19754 * regcache.c (new_register_cache): Return NULL if the register
19755 cache size isn't known yet.
19756 (free_register_cache): Avoid dereferencing a NULL regcache.
19758 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19760 * configure.srv: Merge MIPS and MIPS64.
19762 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19764 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19766 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19768 * Makefile.in: Add required vsx dependencies.
19770 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19771 Declare init_registers_powerpc_vsx32l.
19772 Declare init_registers_powerpc_vsx64l.
19773 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19774 (ppc_arch_setup): Check for VSX in hwcap.
19775 (ppc_fill_vsxregset): New function.
19776 (ppc_store_vsxregset): New function.
19777 Add new VSX entry in regset_info target_regsets.
19779 * configure.srv: Add new VSX dependencies.
19781 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19783 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19784 (remote_open): Set or clear transport_is_reliable.
19785 (putpkt_binary): Don't expect acks in noack mode.
19786 (getpkt): Don't send ack/nac in noack mode.
19787 * server.c (handle_general_set): Handle QStartNoAckMode.
19788 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19790 (main): Reset noack_mode on every connection.
19791 * server.h (noack_mode): Declare.
19793 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19795 * Makefile.in (GDBREPLAY_OBS): New variable.
19796 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19798 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19799 Daniel Jacobowitz <dan@codesourcery.com>
19801 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
19802 (usr_store_inferior_registers): Likewise.
19803 (regsets_store_inferior_registers): Likewise.
19805 2008-07-31 Rolf Jansen <rj@surtec.com>
19806 Pedro Alves <pedro@codesourcery.com>
19808 * configure.ac: Check for memmem declaration.
19809 * server.c [HAVE_MALLOC_H]: Include malloc.h.
19810 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
19811 (disable_packet_qfThreadInfo): Unconditionally compile.
19812 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
19813 * configure, config.in: Regenerate.
19815 2008-07-28 Doug Kwan <dougkwan@google.com>
19817 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
19818 (linux_write_memory): Remove declaration of errno.
19820 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
19822 * linux-low.c (handle_extended_wait): Do not use "status"
19823 variable uninitialized.
19825 2008-07-07 Pedro Alves <pedro@codesourcery.com>
19827 * server.c (handle_v_attach): Inhibit reporting dll changes.
19829 2008-06-27 Pedro Alves <pedro@codesourcery.com>
19831 * remote-utils.c (prepare_resume_reply): If requested, don't
19832 output "thread:TID" in the T stop reply.
19834 * server.c (disable_packet_vCont, disable_packet_Tthread)
19835 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
19836 (handle_query): If requested, disable support for qC, qfThreadInfo
19838 (handle_v_requests): If requested, disable support for vCont.
19839 (gdbserver_show_disableable): New.
19840 (main): Handle --disable-packet and --disable-packet=LIST.
19842 * server.h (disable_packet_vCont, disable_packet_Tthread)
19843 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
19845 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
19847 * server.c (gdbserver_usage): Mention --version.
19849 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
19851 * Makefile.in (gdbreplay.o): New rule.
19853 2008-06-06 Joseph Myers <joseph@codesourcery.com>
19855 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
19856 message, not gdbserver.
19858 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
19859 Nathan Sidwell <nathan@codesourcery.com>
19860 Joseph Myers <joseph@codesourcery.com>
19862 * acinclude.m4: Include ../../config/acx.m4.
19863 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
19864 * configure, config.in: Regenerate.
19865 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
19866 * server.c (gdbserver_version): Print PKGVERSION.
19867 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
19868 (main): Adjust gdbserver_usage calls.
19869 * gdbreplay.c (version, host_name): Add declarations.
19870 (gdbreplay_version, gdbreplay_usage): New.
19871 (main): Accept --version and --help options.
19873 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
19875 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
19876 (arm_breakpoint_at): Handle Thumb.
19877 (the_low_target): Add comment.
19879 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
19881 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
19883 2008-05-09 Doug Evans <dje@google.com>
19885 * server.h (decode_search_memory_packet): Declare.
19886 * remote-utils.c (decode_search_memory_packet): New fn.
19887 * server.c (handle_search_memory_1): New fn.
19888 (handle_search_memory): New fn.
19889 (handle_query): Process qSearch:memory packets.
19891 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
19893 * regcache.c (registers_length): Remove.
19894 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
19895 full register packet.
19896 * regcache.h (registers_length): Remove prototype.
19897 * server.h (PBUFSIZ): Define to 16384.
19899 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
19901 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
19902 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
19903 powerpc-64l.o, and powerpc-altivec64l.o.
19904 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
19905 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
19906 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
19907 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
19908 rs6000/power-linux.xml, and rs6000/power64-linux.xml
19911 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
19912 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
19913 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
19914 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
19915 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
19916 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
19917 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
19918 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
19919 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
19920 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
19923 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
19924 (init_registers_powerpc_32l): ... this new prototype.
19925 (init_registers_powerpc_32): Remove, replace by ...
19926 (init_registers_powerpc_altivec32l): ... this new prototype.
19927 (init_registers_powerpc_e500): Remove, replace by ...
19928 (init_registers_powerpc_e500l): ... this new prototype.
19929 (init_registers_ppc64): Remove, replace by ...
19930 (init_registers_powerpc_64l): ... this new prototype.
19931 (init_registers_powerpc_64): Remove, replace by ...
19932 (init_registers_powerpc_altivec64l): ... this new prototype.
19933 (ppc_num_regs): Set to 73.
19934 (PT_ORIG_R3, PT_TRAP): Define if necessary.
19935 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
19936 (ppc_cannot_store_register): Handle orig_r3 and trap.
19937 (ppc_arch_setup): Update init_registers_... calls.
19938 (ppc_fill_gregset): Handle orig_r3 and trap.
19940 * inferiors.c (clear_inferiors): Reset current_inferior.
19942 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
19944 * acinclude.m4: Add override.m4.
19945 * configure: Regenerate.
19947 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19949 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
19950 initial call to init_register_ppc64.
19952 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
19954 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
19955 single powerpc*-*-linux* case.
19956 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
19958 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
19960 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
19961 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
19963 * linux-ppc-low.c: Include <elf.h>.
19964 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
19965 (ppc_hwcap): New global variable.
19966 (ppc_regmap): Remove __SPE__ #ifdef sections.
19967 (ppc_regmap_e500): New global variable.
19968 (ppc_cannot_store_register): Update __SPE__ special case.
19969 (ppc_get_hwcap): New function.
19970 (ppc_arch_setup): Use it to determine whether inferior supports
19971 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
19972 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
19973 Do not access registers if target does not support AltiVec.
19974 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
19975 Do not access registers if target does not support SPE.
19976 (target_regsets): Unconditionally include AltiVec and SPE regsets.
19978 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
19980 * linux-low.c (disabled_regsets, num_regsets): New.
19981 (use_regsets_p): Delete.
19982 (linux_wait_for_process): Clear disabled_regsets.
19983 (regsets_fetch_inferior_registers): Check and set it.
19984 (regsets_store_inferior_registers): Likewise.
19985 (linux_fetch_registers, linux_store_registers): Do not use
19987 (initialize_low): Allocate disabled_regsets.
19989 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
19991 * Makefile.in (LIBOBJS): New.
19992 (OBS): Use LIBOBJS.
19993 (memmem.o): New rule.
19994 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
19995 * configure: Regenerated.
19997 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
19999 * server.c (handle_query): Never return "unsupported" for
20000 qXfer:features:read queries.
20002 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20004 * server.c (get_features_xml): Fix inverted condition.
20005 (handle_query): Always support qXfer:feature:read.
20007 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20009 * server.c (wrapper_argv): New.
20010 (start_inferior): Handle wrapper_argv. If set, expect an extra
20012 (gdbserver_usage): Document --wrapper.
20013 (main): Parse --wrapper.
20015 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20017 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20018 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20019 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20020 (ppc_set_pc): Likewise.
20021 (ppc_arch_setup): New function.
20022 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20023 of collect_register.
20024 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20026 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20028 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20029 instead of linux-ppc64-low.o.
20030 * linux-ppc64-low.c: Remove file.
20031 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20032 (linux-ppc64-low.o): Remove rule.
20034 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20035 (init_registers_powerpc_64): Likewise.
20036 (ppc_regmap): Conditionally define depending on __powerpc64__.
20037 (ppc_cannot_store_register): Do not special-case "fpscr" when
20038 compiled on __powerpc64__.
20039 (ppc_collect_ptrace_register): New function.
20040 (ppc_supply_ptrace_register): New function.
20041 (ppc_breakpoint): Change type to "unsigned int".
20042 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20043 (the_low_target): Conditionally provide initializers for the
20044 arch_setup member depending on __powerpc64__. Install
20045 collect_ptrace_register and supply_ptrace_register members.
20047 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20049 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20050 * server.c (gdbserver_xmltarget): Define.
20051 (get_features_xml): Use it to replace "target.xml" and arch_string.
20053 * configure.srv: Remove srv_xmltarget. Add XML files that were
20054 mentioned there to srv_xmlfiles instead. Remove conditional tests
20055 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20056 srv_xmlfiles and srv_regobj to include all possible choices.
20057 * configure.ac (srv_xmltarget): Remove.
20058 (srv_xmlfiles): Do not add "target.xml".
20059 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20060 checks for supplementary target information.
20061 * configure: Regenerate.
20062 * Makefile.in (XML_TARGET): Remove.
20063 (target.xml): Remove rule.
20064 (clean): Do not clean up target.xml.
20065 (.PRECIOUS): Do not mention target.xml.
20067 * target.h (struct target_ops): Remove arch_string member.
20068 * linux-low.c (linux_arch_string): Remove.
20069 (linux_target_ops): Remove arch_string initializer.
20070 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20071 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20072 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20073 * spu-low.c (spu_arch_string): Remove.
20074 (spu_target_ops): Remove arch_string initializer.
20075 * win32-low.c (win32_arch_string): Remove.
20076 (win32_target_ops): Remove arch_string initializer.
20077 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20078 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20079 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20081 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20083 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20084 by collect_ptrace_register and supply_ptrace_register hooks.
20085 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20086 instead of checking for the_low_target.left_pad_xfer.
20087 (usr_store_inferior_registers): Use collect_ptrace_register callback
20088 instead of checking for the_low_target.left_pad_xfer.
20090 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20091 (s390_supply_ptrace_register): Likewise.
20092 (s390_fill_gregset): Call s390_collect_ptrace_register.
20093 (the_low_target): Update.
20095 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20096 (ppc_supply_ptrace_register): Likewise.
20097 (the_low_target): Update.
20099 * linux-i386-low.c (the_low_target): Update.
20100 * linux-x86-64-low.c (the_low_target): Update.
20102 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20104 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20105 reg-s390.o and reg-s390x.o.
20107 * linux-low.c (new_inferior): New global variable.
20108 (linux_create_inferior, linux_attach): Set it.
20109 (linux_wait_for_process): Call the_low_target.arch_setup after the
20110 target has stopped for the first time.
20111 (initialize_low): Do not call the_low_target.arch_setup.
20113 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20114 (s390_set_pc): Likewise.
20115 (s390_arch_setup): New function.
20116 (the_low_target): Use s390_arch_setup as arch_setup routine.
20118 * regcache.c (realloc_register_cache): New function.
20119 (set_register_cache): Call it for each existing regcache.
20121 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20123 * server.h (init_registers): Remove prototype.
20125 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20126 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20127 instead of init_registers ().
20128 * linux-arm-low.c (init_registers_arm): Add prototype.
20129 (init_registers_arm_with_iwmmxt): Likewise.
20130 (the_low_target): Add initializer for arch_setup field.
20131 * linux-cris-low.c (init_registers_cris): Add prototype.
20132 (the_low_target): Add initializer for arch_setup field.
20133 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20134 (the_low_target): Add initializer for arch_setup field.
20135 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20136 (the_low_target): Add initializer for arch_setup field.
20137 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20138 (the_low_target): Add initializer for arch_setup field.
20139 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20140 (the_low_target): Add initializer for arch_setup field.
20141 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20142 (the_low_target): Add initializer for arch_setup field.
20143 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20144 (init_registers_mips64_linux): Likewise.
20145 (the_low_target): Add initializer for arch_setup field.
20146 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20147 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20148 (the_low_target): Add initializer for arch_setup field.
20149 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20150 (init_registers_powerpc_64): Likewise.
20151 (the_low_target): Add initializer for arch_setup field.
20152 * linux-s390-low.c (init_registers_s390): Add prototype.
20153 (init_registers_s390x): Likewise.
20154 (the_low_target): Add initializer for arch_setup field.
20155 * linux-sh-low.c (init_registers_sh): Add prototype.
20156 (the_low_target): Add initializer for arch_setup field.
20157 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20158 (the_low_target): Add initializer for arch_setup field.
20159 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20160 (the_low_target): Add initializer for arch_setup field.
20162 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20163 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20164 instead of init_registers ().
20165 * win32-arm-low.c (init_registers_arm): Add prototype.
20166 (the_low_target): Add initializer for arch_setup field.
20167 * win32-i386-low.c (init_registers_i386): Add prototype.
20168 (the_low_target): Add initializer for arch_setup field.
20170 * spu-low.c (init_registers_spu): Add prototype.
20171 (initialize_low): Call initialie_registers_spu () instead of
20172 initialize_registers ().
20174 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20176 * server.c (handle_v_requests): When handling the vRun and vAttach
20177 packets, if already debugging a process, don't kill it. Return an
20180 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20182 * server.c (handle_query): Correct length check.
20184 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20186 * win32-low.c (do_initial_child_stuff): Add process handle
20187 parameter. Set current_process_handle and current_process_id from the
20188 parameters. Clear globals.
20189 (win32_create_inferior): Don't set current_process_handle and
20190 current_process_id here. Instead pass them on the call to
20191 do_initial_child_stuff.
20192 (win32_attach): Likewise.
20193 (win32_clear_inferiors): New.
20194 (win32_kill): Don't close the current process handle or the
20195 current thread handle here. Instead call win32_clear_inferiors.
20196 (win32_detach): Don't open a new handle to the process. Call
20197 win32_clear_inferiors.
20198 (win32_join): Don't rely on current_process_handle; open a new
20199 handle using the process id.
20200 (win32_wait): Call win32_clear_inferiors when the inferior process
20203 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20205 * server.c (monitor_show_help): Add "exit".
20207 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20209 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20210 (clean): Add reg-xtensa.c.
20211 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20212 * configure.srv (xtensa*-*-linux*) New target.
20213 * linux-xtensa-low.c: New.
20214 * xtensa-xtregs.c: New.
20216 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20218 * hostio.c: Don't include errno.h.
20219 (errno_to_fileio_errno): Move to hostio-errno.
20220 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20221 error number outputting to the target->hostio_last_error callback.
20222 (hostio_packet_error): Use FILEIO_EINVAL directly.
20223 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20224 calls to hostio_error.
20225 * hostio-errno.c: New.
20226 * server.h (hostio_last_error_from_errno): Declare.
20227 * target.h (target_ops): Add hostio_last_error member.
20228 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20229 as hostio_last_error handler.
20230 * spu-low.c (spu_target_ops): Likewise.
20231 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20232 (wince_hostio_last_error): New functions.
20233 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20234 as hostio_last_error handler.
20235 (win32_target_ops) [!_WIN32_WCE]: Register
20236 hostio_last_error_from_errno as hostio_last_error handler.
20237 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20238 (hostio-errno.o): New rule.
20239 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20240 * configure.srv (srv_hostio_err_objs): New variable. Default to
20242 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20243 * configure: Regenerate.
20245 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20247 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20248 (linux_kill, linux_detach): Clean up the process list.
20249 * remote-utils.c (remote_open): Improve port number parsing.
20250 (putpkt_binary, input_interrupt): Only send interrupts if the target
20252 * server.c (extended_protocol): Make static.
20253 (attached): Define earlier.
20254 (exit_requested, response_needed, program_argv): New variables.
20255 (target_running): New.
20256 (start_inferior): Clear attached here.
20257 (attach_inferior): Set attached here.
20258 (require_running): Define.
20259 (handle_query): Use require_running and target_running. Implement
20261 (handle_v_attach, handle_v_run): New.
20262 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20263 (gdbserver_usage): Update.
20264 (main): Redo argument parsing. Handle --debug and --multi. Handle
20265 --attach along with other options or after the port. Save
20266 program_argv. Support no initial program. Resynchronize
20267 communication with GDB after an error. Handle "monitor exit".
20268 Use require_running and target_running. Always allow the extended
20269 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20270 restart in extended mode.
20271 * README: Refer to the GDB manual. Update --attach usage.
20273 2007-12-20 Andreas Schwab <schwab@suse.de>
20275 * linux-low.c (STACK_SIZE): Define.
20276 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20277 (linux_test_for_tracefork): Likewise.
20279 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20281 * linux-low.c (linux_wait_for_event): Update messages. Do not
20282 reinsert auto-delete breakpoints.
20283 * mem-break.c (struct breakpoint): Change return type of handler to
20285 (set_breakpoint_at): Update handler type.
20286 (reinsert_breakpoint_handler): Return 1 instead of calling
20288 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20290 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20291 * mem-break.h (set_breakpoint_at): Update handler type.
20292 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20293 * win32-low.c (auto_delete_breakpoint): New.
20294 (get_child_debug_event): Use it.
20296 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20298 * configure.ac: Check for pread and pwrite.
20299 * hostio.c (handle_pread): Fall back to lseek and read.
20300 (handle_pwrite): Fall back to lseek and write.
20301 * config.in, configure: Regenerated.
20303 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20305 * server.c (myresume): Add own_buf argument.
20306 (main): Update calls.
20308 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20310 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20311 * remote-utils.c (remote_open): Do not call disable_async_io.
20312 (block_async_io): Delete.
20313 (unblock_async_io): Make static.
20314 (initialize_async_io): New.
20315 * server.c (handle_v_cont): Handle async I/O here.
20316 (myresume): Likewise. Move other common resume tasks here...
20317 (main): ... from here. Call initialize_async_io. Disable async
20318 I/O before the main loop.
20319 * server.h (initialize_async_io): Declare.
20320 (block_async_io, unblock_async_io): Delete prototypes.
20321 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20323 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20325 * remote-utils.c (readchar): Allow binary data in received messages.
20327 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20329 * win32-low.c (attaching): New global.
20330 (win32_create_inferior): Clear the `attaching' global.
20331 (win32_attach): Set the `attaching' global.
20332 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20333 attaching. Only set a breakpoint at the entry point if not
20336 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20338 * server.c (main): Don't report dll events on the initial
20339 connection on attaches.
20341 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20343 * server.c (main): Relax numerical bases supported for the pid of
20344 the --attach command line argument.
20346 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20348 * win32-low.c (win32_attach): Call OpenProcess before
20349 DebugActiveProcess, not after. Add last error output to error
20352 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20354 * win32-low.c (win32_get_thread_context)
20355 (win32_set_thread_context): New functions.
20356 (thread_rec): Use win32_get_thread_context.
20357 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20358 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20361 2007-12-03 Leo Zayas
20362 Pedro Alves <pedro_alves@portugalmail.pt>
20364 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20366 (child_add_thread): Minor cleanup.
20367 (child_continue): Resume artificially suspended threads before
20368 calling ContinueDebugEvent.
20369 (suspend_one_thread): New.
20370 (fake_breakpoint_event): New.
20371 (get_child_debug_event): Change return type to int. Check here if
20372 gdb sent an interrupt request. If a soft interrupt was requested,
20373 fake a breakpoint event. Return 0 if there is no event to handle,
20375 (win32_wait): Don't check here if gdb sent an interrupt request.
20376 Ensure there is a valid event to handle.
20377 (win32_request_interrupt): Add soft interruption method as last
20380 2007-12-03 Leo Zayas
20381 Pedro Alves <pedro_alves@portugalmail.pt>
20383 * win32-low.h (win32_thread_info): Add descriptions to the
20384 structure members. Replace `suspend_count' counter by a
20386 * win32-low.c (thread_rec): Update condition of when to get the
20387 context from the inferior. Rely on ContextFlags being set if it
20388 has already been retrieved. Only suspend the inferior thread if
20389 we haven't already. Warn if that fails.
20390 (continue_one_thread): s/suspend_count/suspended/. Only call
20391 ResumeThread once. Warn if that fails.
20393 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20395 * win32-low.c (win32_wait): Don't read from the inferior when it
20396 has already exited.
20398 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20400 * Makefile.in (win32_low_h): New variable.
20401 (win32-low.o): Add dependency on $(win32_low_h).
20402 (win32-arm-low.o, win32-i386-low.o): New rules.
20404 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20406 * hostio.c: Correct copyright year.
20408 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20410 * Makefile.in (OBS): Add hostio.o.
20411 (hostio.o): New rule.
20412 * server.h (handle_vFile): Declare.
20413 * hostio.c: New file.
20414 * server.c (handle_v_requests): Take packet_len and new_packet_len
20415 for binary packets. Call handle_vFile.
20416 (main): Update call to handle_v_requests.
20418 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20420 * linux-low.c: Include <sched.h>.
20422 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20424 * linux-low.c (linux_tracefork_grandchild): New.
20425 (linux_tracefork_child): Use clone.
20426 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20428 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20430 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20432 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20434 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20436 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20438 * inferiors.c (change_inferior_id): Delete.
20439 (add_pid_to_list, pull_pid_from_list): New.
20440 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20441 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20442 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20443 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20444 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20445 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20446 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20447 (using_threads): Always set to 1.
20448 (handle_extended_wait): New.
20449 (add_process): Do not set TID.
20450 (linux_create_inferior): Set must_set_ptrace_flags.
20451 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20452 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20453 (linux_thread_alive): Rename TID argument to LWPID.
20454 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20455 (linux_wait_for_event): Do not use TID or check using_threads. Update
20456 call to dead_thread_notify. Call handle_extended_wait.
20457 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20458 (send_sigstop): Delete sigstop_sent.
20459 (wait_for_sigstop): Avoid TID.
20460 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20461 (linux_test_for_tracefork): New.
20462 (linux_lookup_signals): Use thread_db_active and
20463 linux_supports_tracefork_flag.
20464 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20465 * linux-low.h (get_process_thread): Avoid TID.
20466 (struct process_ifo): Move thread_known and tid to the end. Remove
20468 (linux_attach_lwp, thread_db_init): Update prototypes.
20469 * server.h (change_inferior_id): Delete prototype.
20470 (add_pid_to_list, pull_pid_from_list): New prototypes.
20471 * thread-db.c (thread_db_use_events): New.
20472 (find_first_thread): Rename to...
20473 (find_one_thread): ...this. Update callers and messages. Do not
20474 call fatal. Check thread_db_use_events. Do not call
20475 change_inferior_id or new_thread_notify.
20476 (maybe_attach_thread): Update. Do not call new_thread_notify.
20477 (thread_db_init): Set thread_db_use_events. Check use_events.
20478 * utils.c (fatal, warning): Correct message prefix.
20480 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20482 * Makefile.in (clean): Remove new files.
20483 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20484 (powerpc-64.o, powerpc-64.c): New rules.
20485 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20486 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20488 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20490 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20491 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20492 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20493 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20494 (target_regsets): Add AltiVec and SPE register sets.
20495 * configure.ac: Check for AltiVec and SPE.
20496 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20497 (ppc_fill_vrregset, ppc_store_vrregset): New.
20498 (target_regsets): Add AltiVec register set.
20499 * configure: Regenerated.
20501 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20503 * linux-low.c (O_LARGEFILE): Define.
20504 (linux_read_memory): Use /proc/PID/mem.
20505 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20506 * configure, config.in: Regenerated.
20508 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20510 * linux-low.c (linux_wait_for_event): Do not pass signals while
20513 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20515 * win32-low.c (create_process): New.
20516 (win32_create_inferior): Use create_process instead of
20517 CreateProcess. If create_process failed retry appending an ".exe"
20518 suffix. Store the GetLastError result immediatelly after
20519 create_process calls and use it on the call to error.
20521 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20523 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20525 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20527 * configure.ac: Switch license to GPLv3.
20529 2007-08-01 Michael Snyder <msnyder@access-company.com>
20531 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20533 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20535 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20537 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20538 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20539 CloseToolhelp32Snapshot.
20540 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20541 CloseToolhelp32Snapshot.
20543 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20545 * server.c (main): Check for inferior exit before main loop.
20547 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20549 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20550 instead of on tmp_desc.
20552 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20553 Daniel Jacobowitz <dan@codesourcery.com>
20555 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20556 (add_thread): Minor cleanups.
20557 (clear_inferiors): Move lower in the file. Clear the DLL
20559 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20560 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20561 (xml_escape_text): New.
20562 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20564 (handle_v_cont): Report errors.
20565 (gdbserver_version): Update.
20566 (main): Correct size of own_buf. Do not report initial DLL events.
20567 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20568 (unloaded_dll, xml_escape_text): New.
20569 * win32-low.c (enum target_waitkind): Update comments.
20570 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20571 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20572 (win32_EnumProcessModules, win32_GetModuleInformation)
20573 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20574 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20575 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20576 (win32_Module32First, win32_Module32Next, load_toolhelp)
20577 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20578 (get_child_debug_event): Handle DLL events.
20579 (win32_wait): Likewise.
20581 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20583 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20584 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20586 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20588 * win32-low.c (handle_output_debug_string): Ignore event if not
20591 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20593 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20595 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20597 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20599 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20601 * inferiors.c (change_inferior_id): Add comment.
20602 * linux-low.c (check_removed_breakpoint): Add an early
20603 prototype. Improve debug output.
20604 (linux_attach): Doc update.
20605 (linux_detach_one_process, linux_detach): Clean up before releasing
20607 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20608 * linux-low.h (struct process_info): Doc improvement.
20609 * mem-break.c (delete_all_breakpoints): New.
20610 * mem-break.h (delete_all_breakpoints): New prototype.
20611 * thread-db.c (find_first_thread): New.
20612 (thread_db_create_event): Call it instead of
20613 thread_db_find_new_threads. Clean up unused variables.
20614 (maybe_attach_thread): Remove first thread handling.
20615 (thread_db_find_new_threads): Use find_first_thread.
20616 (thread_db_get_tls_address): Likewise.
20618 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20620 * thread-db.c (thread_db_find_new_threads): Add prototype.
20621 (thread_db_create_event): Check for the main thread before adding
20623 (maybe_attach_thread): Only enable event reporting if TID == 0.
20624 (thread_db_get_tls_address): Check for new threads.
20626 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20628 * linux-low.c (linux_create_inferior): Try execv before execvp.
20629 * spu-low.c (spu_create_inferior): Likewise.
20631 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20633 * linux-low.c (linux_create_inferior): Change execv to execvp.
20634 * spu-low.c (spu_create_inferior): Likewies.
20636 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20638 * Makefile.in (clean): Clean new files instead of deleted ones.
20639 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20640 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20642 * configure.srv: Specify XML files and new regformats for MIPS and
20644 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20645 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20646 an entry for the restart register.
20647 (mips_cannot_fetch_register, mips_cannot_store_register)
20648 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20649 register names to match the XML descriptions.
20650 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20651 restart register instead of $0.
20653 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20654 Markus Deuling <deuling@de.ibm.com>
20656 * remote-utils.c (decode_xfer_write): New function.
20657 * server.h (decode_xfer_write): Add prototype.
20658 * server.c (handle_query): Add PACKET_LEN argument. Support
20659 qXfer:spu:read and qXfer:spu:write packets.
20660 (main): Pass packet_len to handle_query.
20661 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20662 * target.h (target_ops): Add qxfer_spu.
20664 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20666 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20667 accessing non-seekable spufs files.
20669 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20671 * server.c (handle_query): Add reply for qC packet.
20673 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20674 Leo Zayas <lerele@champenstudios@com>
20676 * server.h (check_remote_input_interrupt_request): New function.
20677 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20678 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20679 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20680 (check_remote_input_interrupt_request): New function.
20681 * server.h (check_remote_input_interrupt_request): Declare.
20682 * win32-low.c (winapi_DebugBreakProcess,
20683 winapi_GenerateConsoleCtrlEvent): New typedefs.
20684 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20686 (win32_wait): Check for remote interrupt request
20687 with check_remote_input_interrupt_request.
20688 (win32_request_interrupt): New function.
20689 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20691 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20693 * win32-low.c (debug_registers_changed,
20694 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20695 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20696 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20697 (thread_rec): Get context using the low target.
20698 (child_add_thread): Call thread_added on the low target,
20699 which does the same thing.
20701 (do_initial_child_stuff): Remove debug registers references.
20702 Set context using the low target. Resume threads after
20703 setting the contexts.
20704 (child_continue): Remove dead variable. Remove debug
20705 registers references.
20706 (child_fetch_inferior_registers): Go through the low target.
20707 (do_child_store_inferior_registers): Remove.
20708 (child_store_inferior_registers): Go through the low target.
20709 (win32_resume): Remove debug registers references.
20710 Set context using the low target.
20711 (handle_exception): Change return type to void. Don't record
20712 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20713 first chance exception.
20714 (get_child_debug_event): Change return type to void. Remove
20715 goto loop. Always return after waiting for debug event.
20716 (win32_wait): Convert to switch statement. Handle spurious
20719 * win32-i386-low.c (debug_registers_changed,
20720 debug_registers_used): New.
20721 (initial_stuff): Rename to ...
20722 (i386_initial_stuff): ... this. Clear debug registers
20724 (store_debug_registers): Delete.
20725 (i386_get_thread_context): New.
20726 (load_debug_registers): Delete.
20727 (i386_set_thread_context): New.
20728 (i386_thread_added): New.
20729 (single_step): Rename to ...
20730 (i386_single_step): ... this.
20731 (do_fetch_inferior_registers): Rename to ...
20732 (i386_fetch_inferior_register): ... this.
20733 (i386_store_inferior_register): New.
20734 (the_low_target): Adapt to new interface.
20736 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20737 (arm_get_thread_context): New.
20738 (arm_set_thread_context): New.
20740 (do_fetch_inferior_registers): Rename to ...
20741 (arm_fetch_inferior_register): ... this.
20742 (arm_store_inferior_register): New.
20743 (arm_wince_breakpoint): Reimplement as unsigned long.
20744 (arm_wince_breakpoint_len): Define.
20745 (the_low_target): Adapt to new interface.
20747 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20748 load_debug_registers. Add get_thread_context, set_thread_context,
20749 thread_added and store_inferior_register. Rename
20750 fetch_inferior_registers to fetch_inferior_register.
20751 (regptr): Remove declaration.
20753 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20755 * linux-low.c (linux_detach): Change return type to int. Return 0.
20756 * spu-low.c (spu_detach): Likewise.
20758 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20760 * target.h (target_ops): Change return type of detach to int.
20762 (join_inferior): New.
20763 * server.c (main): Don't skip detach support on mingw32.
20764 If the inferior doesn't support detaching return error.
20765 Call join_inferior instead of using waitpid.
20766 * linux-low.c (linux_join): New.
20767 (linux_target_op): Add linux_join.
20768 * spu-low.c (spu_join): New.
20769 (spu_target_ops): Add spu_join.
20770 * win32-low.c (win32_detach): Adapt to new interface.
20771 Reopen current_process_handle before detaching. Issue a child
20772 resume before detaching.
20774 (win32_target_op): Add win32_join.
20776 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20778 * win32-low.c (win32-attach): Fix return value.
20779 * target.h (target_ops): Describe ATTACH return values.
20781 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20783 * win32-low.c (GETPROCADDRESS): Define.
20784 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20785 (winapi_DebugSetProcessKillOnExit): Likewise.
20786 (win32_create_inferior): Force usage of ansi CreateProcessA.
20787 (win32_attach): Use GETPROCADDRESS.
20788 (win32_detach): Likewise.
20790 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20792 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20794 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20796 * win32-low.c: Commit leftover changes from 2007-03-29.
20798 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20800 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
20801 fields short instead of int. Add explicit padding.
20802 (i387_cache_to_fsave): Remove unnecessary casts.
20803 (i387_fsave_to_cache): Doc fix.
20804 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
20806 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20808 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
20809 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
20811 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20813 * configure.srv (arm*-*-mingw32ce*): Move near the other
20816 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
20818 * configure.ac: Add errno checking.
20819 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
20820 sys/file.h and malloc.h.
20821 (AC_CHECK_DECLS): Add perror.
20822 (srv_mingwce): Handle.
20823 * configure.srv (i[34567]86-*-cygwin*): Add
20824 win32-i386-low.o to srv_tgtobj.
20825 (i[34567]86-*-mingw*): Likewise.
20826 (arm*-*-mingw32ce*): Add case.
20827 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20828 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
20829 [__MINGW32CE__] (strerror): New function.
20830 [__MINGW32CE__] (errno): Define to GetLastError.
20831 [__MINGW32CE__] (COUNTOF): New macro.
20832 (remote_open): Remove extra close call.
20833 * mem-break.c (delete_breakpoint_at): New function.
20834 * mem-break.h (delete_breakpoint_at): Declare.
20835 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
20836 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
20837 [USE_WIN32API] (read, write): Add char* casts.
20838 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
20839 * server.h: Include wincecompat.h on Windows CE.
20840 [HAVE_ERRNO_H]: Check.
20841 (perror): Declare if not declared.
20842 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
20843 (perror_with_name): Remove errno declaration.
20844 * wincecompat.h: New.
20845 * wincecompat.c: New.
20846 * win32-low.h: New.
20847 * win32-arm-low.c: New.
20848 * win32-i386-low.c: New.
20849 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
20850 (OUTMSG2): Make it safe.
20852 (COUNTOF): New macro.
20853 (NUM_REGS): Get it from the low target.
20854 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
20855 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
20856 (thread_rec): Let low target handle debug registers.
20857 (child_add_thread): Likewise.
20858 (child_init_thread_list): Likewise.
20859 (continue_one_thread): Likewise.
20861 (do_child_fetch_inferior_registers): Move to ...
20862 * win32-i386-low.c: ... here, and rename to ...
20863 (do_fetch_inferior_registers): ... this.
20864 * win32-low.c (child_fetch_inferior_registers):
20865 Go through the low target.
20866 (do_child_store_inferior_registers): Use regptr.
20867 (strwinerror): New function.
20868 (win32_create_inferior): Handle Windows CE.
20869 Use strwinerror instead of strerror on Windows error
20870 codes. Add program to the error output.
20871 Don't close the main thread handle on Windows CE.
20872 (win32_attach): Use coredll.dll on Windows CE.
20873 (win32_kill): Close current process and current
20875 (win32_detach): Use coredll.dll on Windows CE.
20876 (win32_resume): Let low target handle debug registers, and
20878 (handle_exception): Add/Remove initial breakpoint. Avoid
20879 non-existant WSTOPSIG on Windows CE.
20880 (win32_read_inferior_memory): Cast to remove warning.
20881 (win32_arch_string): Go through the low target.
20882 (initialize_low): Call set_breakpoint_data with the low
20883 target's breakpoint.
20884 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
20885 FOP_REGNUM, mappings): Move to ...
20886 * win32-i386-low.c: ... here.
20887 * win32-low.c (win32_thread_info): Move to ...
20888 * win32-low.h: ... here.
20889 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
20890 win32-arm-low.c and wincecompat.c.
20891 (all:): Add $EXEEXT.
20892 (install-only:): Likewise.
20893 (gdbserver:): Likewise.
20894 (gdbreplay:): Likewise.
20895 * config.in: Regenerate.
20896 * configure: Regenerate.
20898 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20900 * win32-low.c: Rename typedef thread_info to
20901 win32_thread_info throughout.
20903 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
20905 * win32-i386-low.c: Rename to ...
20906 * win32-low.c: ... this.
20907 * configure.srv: Replace win32-i386-low.o with win32-low.o.
20908 * Makefile.in: Likewise.
20910 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
20912 * remote-utils.c (monitor_output): Constify msg parameter.
20913 * server.h (monitor_output): Likewise.
20914 * win32-i386-low.c (handle_output_debug_string): New.
20915 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
20916 handle_output_debug_string.
20917 (get_child_debug_event): Likewise.
20919 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
20921 * server.c (main): Correct strtoul check.
20923 2007-03-27 Jon Ringle <jon@ringle.org>
20925 * linux-low.c: Check __ARCH_HAS_MMU__ also.
20927 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
20929 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
20931 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
20933 * terminal.h: Check HAVE_SGTTY_H.
20935 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
20937 * remote-utils.c (remote_open): Print out the assigned port number.
20939 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
20941 * remote-utils.c (monitor_output): New function.
20942 * server.c (debug_threads): Define here.
20943 (monitor_show_help): New function.
20944 (handle_query): Handle qRcmd.
20945 (main): Do not handle 'd' packet.
20946 * server.h (debug_threads, remote_debug, monitor_output): Declare.
20947 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
20950 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20952 * Makefile.in (EXEEXT): New.
20953 (clean): Use $(EXEEXT).
20955 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20957 * target.h (target_ops): Rename send_signal to request_interrupt,
20958 and remove enum target_signal parameter.
20959 * linux-low.c (linux_request_interrupt): Rename from
20960 linux_send_signal, and always send SIGINT.
20961 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
20962 and always send SIGINT.
20963 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
20965 (input_interrupt): Likewise.
20967 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
20969 * server.c (get_features_xml): Check if target implemented
20971 * win32-i386-low.c (win32_arch_string): New.
20972 (win32_target_ops): Add win32_arch_string as arch_string member.
20974 2007-02-22 Markus Deuling <deuling@de.ibm.com>
20976 * spu-low.c (spu_arch_string): New.
20977 (spu_target_ops): Add spu_arch_string.
20979 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
20981 * remote-utils.c: Remove HAVE_TERMINAL_H check.
20982 * configure.ac: Do not check for terminal.h.
20983 * configure, config.in: Regenerated.
20985 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
20987 * Makefile.in (OBS): Add $(XML_BUILTIN).
20988 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
20990 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
20991 (arm-with-iwmmxt.c): New.
20992 * config.in, configure: Regenerate.
20993 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
20994 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
20995 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
20996 (arm*-*-linux*): Add iWMMXt and regset support.
20997 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
20998 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
20999 (arm_store_wmmxregset, target_regsets): New.
21000 * server.c (get_features_xml): Take annex argument. Check builtin
21002 (handle_query): Handle multiple annexes.
21004 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21006 * remote-utils.c [USE_WIN32API] (read, write): Define.
21007 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21010 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21012 * linux-i386-low.c (the_low_target): Set arch_string.
21013 * linux-x86-64-low.c (the_low_target): Likewise.
21014 * linux-low.c (linux_arch_string): New.
21015 (linux_target_ops): Add it.
21016 * linux-low.h (struct linux_target_ops): Add arch_string.
21017 * server.c (write_qxfer_response): Use const void * for DATA.
21018 (get_features_xml): New.
21019 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21020 * target.h (struct target_ops): Add arch_string method.
21022 2007-01-03 Denis Pilat <denis.pilat@st.com>
21023 Daniel Jacobowitz <dan@codesourcery.com>
21025 * linux-low.c (linux_kill): Handle being called with no threads.
21026 * win32-i386-low.c (win32_kill): Likewise.
21027 (get_child_debug_event): Clear current_process_handle.
21029 2006-12-30 Denis PILAT <denis.pilat@st.com>
21030 Daniel Jacobowitz <dan@codesourcery.com>
21032 * remote-utils.c (remote_open): Check the type of specified
21033 serial port devices before opening them.
21034 * server.c (main): Kill the inferior if an error occurs during
21035 the first remote_open.
21037 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21039 * README: Update supported targets.
21041 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21043 * Makefile.in (clean): Remove reg-mips64.c.
21044 (reg-mips64.c, reg-mips64.o): New rules.
21045 * configure.srv: Handle mips64. Include regset support for mips.
21046 * linux-mips-low.c (union mips_register): New.
21047 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21048 (mips_breakpoint, mips_breakpoint_at): Use int.
21049 (mips_collect_register, mips_supply_register)
21050 (mips_collect_register_32bit, mips_supply_register_32bit)
21051 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21052 (mips_store_fpregset, target_regsets): New.
21053 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21055 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21057 * configure.srv: Add target "spu*-*-*".
21058 * Makefile.in (clean): Remove reg-spu.c.
21059 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21060 * spu-low.c: New file.
21062 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21064 * configure.ac: Correct td_thr_tls_get_addr test.
21065 * configure: Regenerated.
21067 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21069 * linux-low.c (linux_wait_for_event): Reformat. Use the
21070 pass_signals array.
21071 * remote-utils.c (decode_address_to_semicolon): New.
21072 * server.c (pass_signals, handle_general_set): New.
21073 (handle_query): Mention QPassSignals for qSupported.
21074 (main): Call handle_general_set.
21075 * server.h (pass_signals, decode_address_to_semicolon): New.
21077 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21079 * server.c (handle_query): Correct error handling for read_auxv.
21081 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21083 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21084 and srv_linux_thread_db to yes.
21085 * linux-s390-low.c (s390_fill_gregset): New function.
21086 (target_regsets): Define data structure.
21088 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21090 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21091 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21092 * config.in, configure: Regenerated.
21093 * inferiors.c (gdb_id_to_thread): New function.
21094 (gdb_id_to_thread_id): Use it.
21095 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21096 * linux-low.h (struct process_info): Add th member.
21097 (thread_db_get_tls_address): New prototype.
21098 * remote-utils.c (decode_address): Make non-static.
21099 * server.c (handle_query): Handle qGetTLSAddr.
21100 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21101 * target.h (struct target_ops): Add get_tls_address.
21102 * thread-db.c (maybe_attach_thread): Save the thread handle.
21103 (thread_db_get_tls_address): New.
21105 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21107 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21108 (linux_resume_one_process): Take a siginfo_t *. Update all
21109 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21110 (struct pending_signals): Add a siginfo_t.
21111 (linux_wait_for_process): Always set last_status.
21112 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21113 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21114 * linux-low.h (struct process_info): Add last_status.
21116 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21118 * remote-utils.c (try_rle): New function.
21119 (putpkt_binary): Use it.
21121 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21123 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21124 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21125 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21126 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21127 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21130 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21132 * server.c (terminal_fd): New variable.
21133 (old_foreground_pgrp): Likewise.
21134 (restore_old_foreground_pgrp): New function.
21135 (start_inferior): Record the terminal file descriptor in terminal_fd
21136 and its original foreground group in old_foreground_pgrp. Register
21137 restore_old_foreground_pgrp with atexit().
21139 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21141 * server.c (handle_query): Correct qPart to qXfer.
21143 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21145 * configure.ac: Check for more headers which are missing on
21146 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21147 * configure.srv: Add Cygwin and mingw32.
21148 * remote-utils.c: Don't include headers unconditionally which
21149 are missing on mingw32. Include <winsock.h> for mingw32.
21150 (remote_open): Adjust for mingw32 support. Flush
21151 standard error after writing to it.
21152 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21153 (unblock_async_io, enable_async_io, disable_async_io)
21154 (readchar, getpkt): Update for Winsock support.
21155 (prepare_resume_reply): Expect a protocol signal number.
21156 * server.c: Disable <sys/wait.h> on mingw32.
21157 (start_inferior): Adjust for mingw32 support. Flush
21158 standard error after writing to it.
21159 (attach_inferior): Likewise. Use protocol signal
21161 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21163 * win32-i386-low.c: New file.
21164 * Makefile.in (XM_CLIBS): Set.
21165 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21166 (win32-i386-low.o): New dependency rule.
21167 * linux-low.c (linux_wait): Use target signal numbers.
21168 * target.h (struct target_ops): Doc fix.
21169 * server.h (target_signal_to_name): New prototype.
21170 * gdbreplay.c: Don't include headers unconditionally which
21171 are missing on mingw32. Include <winsock.h> for mingw32.
21172 (remote_close, remote_open): Adjust for Winsock support.
21173 * configure, config.in: Regenerated.
21175 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21177 * server.c (decode_xfer_read, write_qxfer_response): New.
21178 (handle_query): Take a packet length argument. Handle
21179 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21180 the qSupported response.
21181 (main): Update call to handle_query.
21183 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21185 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21186 (putpkt_binary): Renamed from putpkt and adjusted for binary
21188 (putpkt): New wrapper for putpkt_binary.
21189 (readchar): Don't mask off the high bit.
21190 (decode_X_packet): New function.
21191 * server.c (main): Call putpkt_binary if a handler sets the packet
21192 length. Save the length of the incoming packet. Handle 'X'.
21193 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21195 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21197 * server.c (handle_query): Handle qSupported.
21199 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21201 * remote-utils.c (all_symbols_looked_up): New variable.
21202 (look_up_one_symbol): Check it.
21203 * server.h (look_up_one_symbol): New declaration.
21204 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21206 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21208 * Makefile.in (linux-arm-low.o): Update dependencies.
21209 * linux-arm-low.c: Include "gdb_proc_service.h".
21210 (PTRACE_GET_THREAD_AREA): Define.
21211 (ps_get_thread_area): New function.
21213 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21215 * configure.srv (m68k*-*-uclinux*): New target.
21216 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21217 (linux_resume_one_process): Remove extraneous cast.
21218 (linux_read_offsets): New.
21219 (linux_target_op): Add linux_read_offsets on mmuless systems.
21220 * server.c (handle_query): Add qOffsets logic.
21221 * target.h (struct target_ops): Add read_offsets.
21223 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21225 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21226 (PTRACE_GET_THREAD_AREA): Define.
21227 (ps_get_thread_area): New function.
21228 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21229 (linux-x86-64-low.o): Update.
21231 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21233 * configure.ac: Remove checks for prfpregset_t.
21234 * gdb_proc_service.h: New file.
21235 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21236 new "gdb_proc_service.h".
21237 * proc-service.c: Likewise.
21238 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21239 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21240 * Makefile.in (gdb_proc_service_h): Updated.
21241 * configure, config.in: Regenerated.
21243 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21245 * remote-utils.c (prepare_resume_reply): Move declaration
21246 of gdb_id_from_wait to the top of the block.
21248 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21250 * linux-low.c (regsets_store_inferior_registers): Read the regset
21251 from the target before filling it.
21253 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21255 * server.c (attach_inferior): Return SIGTRAP for a successful
21258 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21260 * Makefile.in (OBS): Add version.o.
21261 (STAGESTUFF): Delete.
21262 (version.o): Add dependencies.
21263 (version.c): Replace rule.
21264 (clean): Remove version.c.
21265 * server.c (gdbserver_version): New.
21266 (gdbserver_usage): Use printf.
21267 (main): Handle --version and --help.
21268 * server.h (version, host_name): Add declarations.
21270 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21282 * linux-x86-64-low.c:
21284 * linux-s390-low.c:
21285 * linux-ppc64-low.c:
21287 * linux-mips-low.c:
21288 * linux-m68k-low.c:
21289 * linux-m32r-low.c:
21292 * linux-ia64-low.c:
21293 * linux-i386-low.c:
21294 * linux-crisv32-low.c:
21306 * gdbserver.1: Add (C) after Copyright. Update the FSF
21309 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21311 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21312 (arm_breakpoint_at): Recognize both breakpoints.
21313 (the_low_target): Use the correct breakpoint instruction.
21315 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21317 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21318 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21319 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21320 (the_low_target): Update.
21322 2005-10-25 Andreas Schwab <schwab@suse.de>
21324 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21326 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21327 (ia64_num_regs): Reduce to 462.
21329 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21331 * acinclude.m4: Correct quoting.
21332 * aclocal.m4: Regenerated.
21334 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21335 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21336 (thread_db_init): Call thread_db_err_str.
21337 * configure.ac: Check for TD_VERSION.
21338 * config.in, configure: Regenerated.
21340 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21342 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21344 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21346 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21347 is not available. Define HAVE_PTRACE_GETREGS if it is.
21348 * config.in, configure: Regenerated.
21349 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21350 * linux-i386-low.c, linux-m68k-low.c: Update to use
21351 HAVE_PTRACE_GETREGS.
21352 * linux-low.c (regsets_fetch_inferior_registers)
21353 (regsets_store_inferior_registers): Only return 0 if we processed
21355 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21356 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21358 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21360 * inferiors.c (struct thread_info): Add gdb_id.
21361 (add_thread): Add gdb_id argument.
21362 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21363 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21364 calls to add_thread.
21365 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21366 * server.c (handle_query): Use thread_to_gdb_id.
21367 (handle_v_cont, main): Use gdb_id_to_thread_id.
21368 * server.h (add_thread): Update prototype.
21369 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21372 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21374 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21375 left-padded registers.
21376 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21377 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21379 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21381 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21382 * configure: Regenerate.
21383 * config.in: Regenerate.
21384 * server.h (NEED_DECLARATION_STRERROR):
21385 Replace with !HAVE_DECL_STRERROR.
21387 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21389 * linux-low.c (linux_wait, linux_send_signal): Don't test
21390 an unsigned long variable for > 0 if it could be MAX_ULONG.
21391 * server.c (myresume): Likewise.
21392 * target.c (set_desired_inferior): Likewise.
21394 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21396 * configure.ac: Simplify and improve check for socklen_t.
21397 * configure, config.in: Regenerate.
21399 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21401 * acconfig.h: Remove.
21402 * configure.ac: Add a test for socklen_t. Use three-argument
21403 AC_DEFINE throughout.
21404 * config.in: Regenerated using autoheader 2.59.
21405 * configure: Regenerated.
21407 * gdbreplay.c (socklen_t): Provide a default.
21408 (remote_open): Use socklen_t.
21409 * remote-utils.c (socklen_t): Provide a default.
21410 (remote_open): Use socklen_t.
21411 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21414 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21416 * linux-low.c (linux_read_memory, linux_write_memory)
21417 (linux_read_auxv): Likewise.
21418 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21419 (check_mem_write): Likewise.
21420 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21422 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21423 (registers_from_string, register_data): Likewise.
21424 * server.c (handle_query, main): Likewise.
21425 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21426 (decode_M_packet): Likewise.
21427 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21428 * target.h (struct target_ops): Update read_memory, write_memory,
21430 (read_inferior_memory, write_inferior_memory): Update.
21431 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21432 to unsigned char *.
21433 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21434 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21435 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21436 linux-s390-low.c, linux-sh-low.c: Update for changes in
21437 read_inferior_memory and the_low_target->breakpoint.
21439 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21441 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21442 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21443 * configure.srv: Add powerpc64-*-linux*.
21444 * linux-ppc64-low.c: New file.
21446 2005-05-23 Orjan Friberg <orjanf@axis.com>
21448 * linux-cris-low.c: New file with support for CRIS.
21449 * linux-crisv32-low.c: Ditto for CRISv32.
21450 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21451 (clean): Add reg-cris.c and reg-crisv32.c.
21452 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21453 reg-crisv32.o, and reg-crisv32.c to make rules.
21454 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21455 recognized targets.
21457 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21459 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21460 of sizeof (PTRACE_XFER_TYPE).
21461 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21463 2005-05-12 Orjan Friberg <orjanf@axis.com>
21465 * target.h (struct target_ops): Add insert_watchpoint,
21466 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21467 pointers for hardware watchpoint support.
21468 * linux-low.h (struct linux_target_ops): Ditto.
21469 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21470 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21471 to linux_target_ops.
21472 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21474 * server.c (main): Recognize 'Z' and 'z' packets.
21476 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21478 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21479 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21480 (the_low_target): Add new members.
21482 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21484 * proc-service.c (ps_lgetregs): Search all_processes instead of
21487 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21489 * server.c (start_inferior): Change return type to int.
21490 (attach_inferior): Change sigptr to int *.
21491 (handle_v_cont, handle_v_requests): Change signal to int *.
21492 (main): Change signal to int.
21494 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21496 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21497 * configure.srv: Add m32r*-*-linux*.
21498 * linux-m32r-low.c: New file.
21500 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21502 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21504 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21506 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21507 Take unsigned long arguments for PIDs.
21508 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21509 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21510 (wait_for_sigstop, linux_resume_one_process)
21511 (regsets_fetch_inferior_registers, linux_send_signal)
21512 (linux_read_auxv): Likewise. Update the types of variables holding
21513 PIDs. Update format string specifiers.
21514 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21515 * remote-utils.c (prepare_resume_reply): Likewise.
21516 * server.c (cont_thread, general_thread, step_thread)
21517 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21519 (handle_query): Update format specifiers.
21520 (handle_v_cont, main): Use strtoul for thread IDs.
21521 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21522 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21523 (general_thread, step_thread, thread_from_wait)
21524 (old_thread_from_wait): Update.
21525 * target.h (struct thread_resume): Use unsigned long for THREAD.
21526 (struct target_ops): Use unsigned long for arguments to attach and
21529 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21531 * acinclude.m4: Include bfd/bfd.m4 directly.
21532 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21533 <agriffis@toolchain.org>.
21534 * aclocal.m4, configure: Regenerated.
21536 2005-01-07 Andrew Cagney <cagney@gnu.org>
21538 * configure.ac: Rename configure.in, require autoconf 2.59.
21539 * configure: Re-generate.
21541 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21543 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21544 LIBS when finished.
21545 * aclocal.m4: Regenerated.
21546 * configure: Regenerated.
21548 2004-11-21 Andreas Schwab <schwab@suse.de>
21550 * linux-m68k-low.c (m68k_num_gregs): Define.
21551 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21552 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21553 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21554 (m68k_breakpoint_at): New. Add to the_low_target.
21556 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21557 srv_linux_thread_db to yes.
21559 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21561 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21562 (ARCH_SET_FS): Likewise.
21563 (ARCH_GET_FS): Likewise.
21564 (ARCH_GET_GS): Likewise.
21566 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21568 * linux-i386-low.c (ps_get_thread_area): New.
21569 * linux-x86-64-low.c (ps_get_thread_area): New.
21570 * linux-low.c: Include <sys/syscall.h>.
21571 (linux_kill_one_process): Don't kill the first thread here.
21572 (linux_kill): Kill the first thread here.
21573 (kill_lwp): New function.
21574 (send_sigstop, linux_send_signal): Use it.
21575 * proc-service.c: Clean up #ifdefs.
21576 (fpregset_info): Delete.
21577 (ps_lgetregs): Update and enable implementation.
21578 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21580 * remote-utils.c (struct sym_cache, symbol_cache): New.
21581 (input_interrupt): Print a clearer message.
21582 (async_io_enabled): New variable.
21583 (enable_async_io, disable_async_io): Use it. Update comments.
21584 (look_up_one_symbol): Use the symbol cache.
21585 * thread-db.c (thread_db_look_up_symbols): New function.
21586 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21588 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21590 * configure.in: Test for -rdynamic.
21591 * configure: Regenerated.
21592 * Makefile (INTERNAL_LDFLAGS): New.
21593 (gdbserver, gdbreplay): Use it.
21595 2004-09-02 Andrew Cagney <cagney@gnu.org>
21597 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21599 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21601 * linux-low.c (linux_wait): Clear all_processes list also.
21603 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21605 * linux-low.c: Include <errno.h>. Remove extern declaration of
21608 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21610 * gdbreplay.c, server.h, utils.c: Update copyright years.
21612 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21614 * server.c (main): Print child status or termination signal from
21615 variable 'signal', not 'sig'.
21617 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21619 * linux-low.c (linux_read_memory): Change return type to
21620 int. Check for and return error from ptrace().
21621 * target.c (read_inferior_memory): Change return type to int. Pass
21622 back return status from the_target->read_memory().
21623 * target.h (struct target_ops): Adapt *read_memory() prototype.
21625 (read_inferior_memory): Adapt prototype.
21626 * server.c (main): Return an error packet if
21627 read_inferior_memory() returns an error.
21629 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21631 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21632 Unify with other clean targets.
21634 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21636 * server.c (handle_v_cont): Call set_desired_inferior.
21638 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21640 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21642 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21644 * linux-low.c (linux_wait): Unblock async I/O.
21645 (linux_resume): Block and enable async I/O.
21646 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21647 * server.h (block_async_io, unblock_async_io): Add prototypes.
21649 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21651 * remote-utils.c (remote_open): Print a status notice after
21652 opening a TCP port.
21653 * server.c (attach_inferior): Print a status notice after
21656 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21658 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21660 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21662 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21664 * server.c, target.h: Update copyright years.
21666 2004-02-25 Roland McGrath <roland@redhat.com>
21668 * target.h (struct target_ops): New member `read_auxv'.
21669 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21670 * linux-low.c (linux_read_auxv): New function.
21671 (linux_target_ops): Initialize `read_auxv' member to that.
21673 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21675 Committed by Jim Blandy <jimb@redhat.com>.
21677 * linux-s390-low.c (s390_num_regs): Update.
21678 (s390_regmap): Remove control registers. Use __s390x__ predefine
21679 instead of GPR_SIZE to distiguish s390 and s390x targets.
21681 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21683 * linux-low.c: Update copyright year.
21684 (check_removed_breakpoint): Clear pending_is_breakpoint.
21685 (linux_set_resume_request, linux_queue_one_thread)
21686 (resume_status_pending_p): New functions.
21687 (linux_continue_one_thread): Use process->resume.
21688 (linux_resume): Only resume threads if there are no pending events.
21689 * linux-low.h (struct process_info): Add resume request
21692 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21694 * regcache.c (new_register_cache): Clear the allocated register
21695 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21697 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21699 * linux-low.c (linux_resume): Take a struct thread_resume *
21701 (linux_wait): Update call.
21702 (resume_ptr): New static variable.
21703 (linux_continue_one_thread): Renamed from
21704 linux_continue_one_process. Use resume_ptr.
21705 (linux_resume): Use linux_continue_one_thread.
21706 * server.c (handle_v_cont, handle_v_requests): New functions.
21707 (myresume): New function.
21708 (main): Handle 'v' case.
21709 * target.h (struct thread_resume): New type.
21710 (struct target_ops): Change argument of "resume" to struct
21712 (myresume): Delete macro.
21714 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21716 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21717 (uninstall): Support DESTDIR.
21719 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21721 * configure.srv: Add xscale*linux copy of arm*linux entry.
21723 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21725 * linux-arm-low.c (arm_reinsert_addr): New function.
21726 (the_low_target): Add arm_reinsert_addr.
21728 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21730 * mem-break.c: Remove whitespace at end of file.
21732 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21734 * configure.in: Check whether we need to prototype strerror.
21735 * server.h: Optionally prototype strerror.
21736 * gdbreplay.c (perror_with_name): Use strerror.
21737 * linux-low.c (linux_attach_lwp): Use strerror.
21738 * utils.c (perror_with_name): Use strerror.
21739 * config.in, configure: Regenerated.
21741 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21743 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21744 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21746 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21748 * Makefile.in (SFILES): Update.
21749 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21750 low-sun3.c: Remove files.
21752 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21754 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21755 (linux_detach_one_process, linux_detach): New functions.
21756 (linux_target_ops): Add linux_detach.
21757 * server.c (main): Handle 'D' packet.
21758 * target.h (struct target_ops): Add "detach" member.
21759 (detach_inferior): Define.
21761 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21763 From Kelley Cook <kelleycook@wideopenwest.com>:
21764 * configure.srv: Accept i[34567]86 variants.
21766 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21768 * linux-low.c (linux_wait_for_event): Correct comment typos.
21769 (linux_resume_one_process): Call check_removed_breakpoint.
21770 (linux_send_signal): New function.
21771 (linux_target_ops): Add linux_send_signal.
21772 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21774 * target.h (struct target_ops): Add send_signal.
21776 2003-05-29 Jim Blandy <jimb@redhat.com>
21778 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21779 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21780 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21781 away part of the register's value.
21783 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21785 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21786 (linux_wait_for_event, linux_init_signals): Likewise.
21788 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21790 * configure.in: Check for stdlib.h.
21791 * configure: Regenerated.
21792 * config.in: Regenerated.
21794 2003-01-04 Andreas Schwab <schwab@suse.de>
21796 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21798 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21800 * Makefile.in: Remove obsolete code.
21802 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
21804 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
21805 defined(PT_FPR0_HI).
21807 2002-11-17 Stuart Hughes <seh@zee2.com>
21809 * linux-arm-low.c (arm_num_regs): Increase.
21810 (arm_regmap): Include status register.
21812 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
21814 * linux-low.c (register_addr): Remove incorrect -1 check.
21816 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
21818 * linux-low.c (linux_create_inferior): Call setpgid. Return
21820 (unstopped_p, linux_signal_pid): Remove.
21821 (linux_target_ops): Remove linux_signal_pid.
21822 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
21823 global instead of target method.
21824 * target.h (struct target_ops): Remove signal_pid. Update comment
21825 for create_inferior.
21826 * server.c (signal_pid): New variable.
21827 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
21828 gdbserver. Set the child to be the foreground process group.
21829 (attach_inferior): Set signal_pid.
21831 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
21833 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
21835 2002-08-20 Jim Blandy <jimb@redhat.com>
21837 * Makefile.in (LDFLAGS): Allow the configure script to establish a
21840 2002-08-01 Andrew Cagney <cagney@redhat.com>
21842 * Makefile.in: Make chill references obsolete.
21844 2002-07-24 Kevin Buettner <kevinb@redhat.com>
21846 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
21847 * configure: Regenerate.
21848 * config.in: Regenerate.
21850 2002-07-09 David O'Brien <obrien@FreeBSD.org>
21852 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
21853 (perror_with_name, remote_close, remote_open, expect, play): Static.
21855 2002-07-04 Michal Ludvig <mludvig@suse.cz>
21857 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
21858 byte offsets instead of an array of indexes.
21859 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
21861 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
21863 * regcache.c: Add comment.
21865 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
21867 * thread-db.c: New file.
21868 * proc-service.c: New file.
21869 * acinclude.m4: New file.
21870 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
21871 proc-service.o, and thread-db.o.
21872 (linux-low.o): Add USE_THREAD_DB.
21873 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
21874 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
21875 * aclocal.m4: Regenerated.
21876 * config.in: Regenerated.
21877 * configure: Regenerated.
21878 * configure.in: Check for proc_service.h, sys/procfs.h,
21879 thread_db.h, and linux/elf.h headrs.
21880 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
21881 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
21882 Check for -lthread_db and thread support.
21883 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
21884 PowerPC, and SuperH.
21885 * i387-fp.c: Constify arguments.
21886 * i387-fp.h: Likewise.
21887 * inferiors.c: (struct thread_info): Renamed from
21888 `struct inferior_info'. Remove PID member. Use generic inferior
21889 list header. All uses updated.
21890 (inferiors, signal_pid): Removed.
21891 (all_threads): New variable.
21892 (get_thread): Define.
21893 (add_inferior_to_list): New function.
21894 (for_each_inferior): New function.
21895 (change_inferior_id): New function.
21896 (add_inferior): Removed.
21897 (remove_inferior): New function.
21898 (add_thread): New function.
21899 (free_one_thread): New function.
21900 (remove_thread): New function.
21901 (clear_inferiors): Use for_each_inferior and free_one_thread.
21902 (find_inferior): New function.
21903 (find_inferior_id): New function.
21904 (inferior_target_data): Update argument type.
21905 (set_inferior_target_data): Likewise.
21906 (inferior_regcache_data): Likewise.
21907 (set_inferior_regcache_data): Likewise.
21908 * linux-low.c (linux_bp_reinsert): Remove.
21909 (all_processes, stopping_threads, using_thrads)
21910 (struct pending_signals, debug_threads, pid_of): New.
21911 (inferior_pid): Replace with macro.
21912 (struct inferior_linux_data): Remove.
21913 (get_stop_pc, add_process): New functions.
21914 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
21915 Use add_process and add_thread.
21916 (linux_attach_lwp): New function, based on old linux_attach. Use
21917 add_process and add_thread. Set stop_expected for new threads.
21918 (linux_attach): New function.
21919 (linux_kill_one_process): New function.
21920 (linux_kill): Kill all LWPs.
21921 (linux_thread_alive): Use find_inferior_id.
21922 (check_removed_breakpoints, status_pending_p): New functions.
21923 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
21924 Update. Use WNOHANG. Wait for cloned processes also. Update process
21925 struct for the found process.
21926 (linux_wait_for_event): New function.
21927 (linux_wait): Use it. Support LWPs.
21928 (send_sigstop, wait_for_sigstop, stop_all_processes)
21929 (linux_resume_one_process, linux_continue_one_process): New functions.
21930 (linux_resume): Support LWPs.
21931 (REGISTER_RAW_SIZE): Remove.
21932 (fetch_register): Use register_size instead. Call supply_register.
21933 (usr_store_inferior_registers): Likewise. Call collect_register.
21934 Fix recursive case.
21935 (regsets_fetch_inferior_registers): Improve error message.
21936 (regsets_store_inferior_registers): Add debugging.
21937 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
21938 (unstopped_p, linux_signal_pid): New functions.
21939 (linux_target_ops): Add linux_signal_pid.
21940 (linux_init_signals): New function.
21941 (initialize_low): Call it. Initialize using_threads.
21942 * regcache.c (inferior_regcache_data): Add valid
21944 (get_regcache): Fetch registers lazily. Add fetch argument
21945 and update all callers.
21946 (regcache_invalidate_one, regcache_invalidate): New
21948 (new_register_cache): Renamed from create_register_cache.
21949 Return the new regcache.
21950 (free_register_cache): Change argument to a void *.
21951 (registers_to_string, registers_from_string): Call get_regcache
21952 with fetch flag set.
21953 (register_data): Make static. Pass fetch flag to get_regcache.
21954 (supply_register): Call get_regcache with fetch flag clear.
21955 (collect_register): Call get_regcache with fetch flag set.
21956 (collect_register_as_string): New function.
21957 * regcache.h: Update.
21958 * remote-utils.c (putpkt): Flush after debug output and use
21960 Handle input interrupts while waiting for an ACK.
21961 (input_interrupt): Use signal_pid method.
21962 (getpkt): Flush after debug output and use stderr.
21963 (outreg): Use collect_register_as_string.
21964 (new_thread_notify, dead_thread_notify): New functions.
21965 (prepare_resume_reply): Check using_threads. Set thread_from_wait
21966 and general_thread.
21967 (look_up_one_symbol): Flush after debug output.
21968 * server.c (step_thread, server_waiting): New variables.
21969 (start_inferior): Don't use signal_pid. Update call to mywait.
21970 (attach_inferior): Update call to mywait.
21971 (handle_query): Handle qfThreadInfo and qsThreadInfo.
21972 (main): Don't fetch/store registers explicitly. Use
21973 set_desired_inferior. Support proposed ``Hs'' packet. Update
21975 * server.h: Update.
21976 (struct inferior_list, struct_inferior_list_entry): New.
21977 * target.c (set_desired_inferior): New.
21978 (write_inferior_memory): Constify.
21979 (mywait): New function.
21980 * target.h: Update.
21981 (struct target_ops): New signal_pid method.
21982 (mywait): Removed macro, added prototype.
21984 * linux-low.h (regset_func): Removed.
21985 (regset_fill_func, regset_store_func): New.
21986 (enum regset_type): New.
21987 (struct regset_info): Add type field. Use new operation types.
21988 (struct linux_target_ops): stop_pc renamed to get_pc.
21989 Add decr_pc_after_break and breakpoint_at.
21990 (get_process, get_thread_proess, get_process_thread)
21991 (strut process_info, all_processes, linux_attach_lwp)
21992 (thread_db_init): New.
21994 * linux-arm-low.c (arm_get_pc, arm_set_pc,
21995 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
21996 (the_low_target): Add new members.
21997 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
21998 (i386_store_fpxregset): Constify.
21999 (target_regsets): Add new kind identifier.
22000 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22001 (i386_set_pc): Add debugging.
22002 (i386_breakpoint_at): New function.
22003 (the_low_target): Add new members.
22004 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22005 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22006 (mips_breakpoint_at): New.
22007 (the_low_target): Add new members.
22008 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22009 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22010 (the_low_target): Add new members.
22011 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22012 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22013 (the_low_target): Add new members.
22014 * linux-x86-64-low.c (target_regsets): Add new kind
22017 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22019 From Martin Pool <mbp@samba.org>:
22020 * server.c (gdbserver_usage): New function.
22023 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22025 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22026 stop_at -> stop_pc.
22028 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22030 * Makefile.in: Remove obsolete code.
22032 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22034 * linux-low.c (regsets_fetch_inferior_registers),
22035 (regsets_store_inferior_registers): Removed cast to int from
22037 * regcache.h: Added declaration of struct inferior_info.
22039 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22041 * inferiors.c (struct inferior_info): Add regcache_data.
22042 (add_inferior): Call create_register_cache.
22043 (clear_inferiors): Call free_register_cache.
22044 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22045 * regcache.c (struct inferior_regcache_data): New.
22046 (registers): Remove.
22047 (get_regcache): New function.
22048 (create_register_cache, free_register_cache): New functions.
22049 (set_register_cache): Don't initialize the register cache here.
22050 (registers_to_string, registers_from_string, register_data): Call
22052 * regcache.h: Add prototypes.
22053 * server.h: Likewise.
22055 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22057 * mem-break.c: New file.
22058 * mem-break.h: New file.
22059 * Makefile.in: Add mem-break.o rule; update server.h
22061 * inferiors.c (struct inferior_info): Add target_data
22063 (clear_inferiors): Free target_data member if set.
22064 (inferior_target_data, set_inferior_target_data): New functions.
22065 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22066 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22067 * linux-low.c (linux_bp_reinsert): New variable.
22068 (struct inferior_linux_data): New.
22069 (linux_create_inferior): Use set_inferior_target_data.
22070 (linux_attach): Likewise. Call add_inferior.
22071 (linux_wait_for_one_inferior): New function.
22072 (linux_wait): Call it.
22073 (linux_write_memory): Add const.
22074 (initialize_low): Call set_breakpoint_data.
22075 * linux-low.h (struct linux_target_ops): Add breakpoint
22077 * server.c (attach_inferior): Remove extra add_inferior
22079 * server.h: Include mem-break.h. Update inferior.c
22081 * target.c (read_inferior_memory)
22082 (write_inferior_memory): New functions.
22083 * target.h (read_inferior_memory)
22084 (write_inferior_memory): Change macros to prototypes.
22085 (struct target_ops): Update comments. Add const to write_memory
22088 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22090 * linux-low.c (usr_store_inferior_registers): Support
22091 registers which are allowed to fail to store.
22092 * linux-low.h (linux_target_ops): Likewise.
22093 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22094 (ppc_cannot_store_register): FPSCR may not be storable.
22096 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22098 * server.h: Include <string.h> if HAVE_STRING_H.
22099 * ChangeLog: Correct paths in last ChangeLog entry.
22101 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22103 * linux-low.h: Remove obsolete prototypes.
22104 (struct linux_target_ops): New.
22105 (extern the_low_target): New.
22106 * linux-low.c (num_regs, regmap): Remove declarations.
22107 (register_addr): Use the_low_target explicitly.
22108 (fetch_register): Likewise.
22109 (usr_fetch_inferior_registers): Likewise.
22110 (usr_store_inferior_registers): Likewise.
22111 * linux-arm-low.c (num_regs): Remove.
22112 (arm_num_regs): Define.
22113 (arm_regmap): Renamed from regmap, made static.
22114 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22116 (arm_cannot_store_register): Renamed from cannot_store_register,
22118 (the_low_target): New.
22119 * linux-i386-low.c (num_regs): Remove.
22120 (i386_num_regs): Define.
22121 (i386_regmap): Renamed from regmap, made static.
22122 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22124 (i386_cannot_store_register): Renamed from cannot_store_register,
22126 (the_low_target): New.
22127 * linux-ia64-low.c (num_regs): Remove.
22128 (ia64_num_regs): Define.
22129 (ia64_regmap): Renamed from regmap, made static.
22130 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22132 (ia64_cannot_store_register): Renamed from cannot_store_register,
22134 (the_low_target): New.
22135 * linux-m68k-low.c (num_regs): Remove.
22136 (m68k_num_regs): Define.
22137 (m68k_regmap): Renamed from regmap, made static.
22138 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22140 (m68k_cannot_store_register): Renamed from cannot_store_register,
22142 (the_low_target): New.
22143 * linux-mips-low.c (num_regs): Remove.
22144 (mips_num_regs): Define.
22145 (mips_regmap): Renamed from regmap, made static.
22146 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22148 (mips_cannot_store_register): Renamed from cannot_store_register,
22150 (the_low_target): New.
22151 * linux-ppc-low.c (num_regs): Remove.
22152 (ppc_num_regs): Define.
22153 (ppc_regmap): Renamed from regmap, made static.
22154 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22156 (ppc_cannot_store_register): Renamed from cannot_store_register,
22158 (the_low_target): New.
22159 * linux-s390-low.c (num_regs): Remove.
22160 (s390_num_regs): Define.
22161 (s390_regmap): Renamed from regmap, made static.
22162 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22164 (s390_cannot_store_register): Renamed from cannot_store_register,
22166 (the_low_target): New.
22167 * linux-sh-low.c (num_regs): Remove.
22168 (sh_num_regs): Define.
22169 (sh_regmap): Renamed from regmap, made static.
22170 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22172 (sh_cannot_store_register): Renamed from cannot_store_register,
22174 (the_low_target): New.
22175 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22176 (the_low_target): New.
22178 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22180 * Makefile.in: Add stamp-h target.
22181 * configure.in: Create stamp-h.
22182 * configure: Regenerated.
22184 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22186 * inferiors.c: New file.
22187 * target.c: New file.
22188 * target.h: New file.
22189 * Makefile.in: Add target.o and inferiors.o. Update
22191 * linux-low.c (inferior_pid): New static variable,
22192 moved from server.c.
22193 (linux_create_inferior): Renamed from create_inferior.
22194 Call add_inferior. Return 0 on success instead of a PID.
22195 (linux_attach): Renamed from myattach.
22196 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22197 (linux_thread_alive): Renamed from mythread_alive.
22198 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22200 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22201 (regsets_store_inferior_registers): Correct error message.
22202 Add missing ``return 0''.
22203 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22204 (linux_store_registers): Renamed from store_inferior_registers.
22205 (linux_read_memory): Renamed from read_inferior_memory.
22206 (linux_write_memory): Renamed from write_inferior_memory.
22207 (linux_target_ops): New structure.
22208 (initialize_low): Call set_target_ops ().
22209 * remote-utils.c (unhexify): New function.
22210 (hexify): New function.
22211 (input_interrupt): Send signals to ``signal_pid''.
22212 * server.c (inferior_pid): Remove.
22213 (start_inferior): Update create_inferior call.
22214 (attach_inferior): Call add_inferior.
22215 (handle_query): New function.
22216 (main): Call handle_query for `q' packets.
22217 * server.h: Include "target.h". Remove obsolete prototypes.
22218 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22220 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22222 * Makefile.in: Add WARN_CFLAGS. Update configury
22224 * configure.in: Check for <string.h>
22225 * configure: Regenerate.
22226 * config.in: Regenerate.
22227 * gdbreplay.c: Include needed system headers.
22228 (remote_open): Remove strchr prototype.
22229 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22230 * regcache.c (supply_register): Change buf argument to const void *.
22231 (supply_register_by_name): Likewise.
22232 (collect_register): Change buf argument to void *.
22233 (collect_register_by_name): Likewise.
22234 * regcache.h: Add missing prototypes.
22235 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22236 * server.c (handle_query): New function.
22237 (attached): New static variable, moved out of main.
22238 (main): Quiet longjmp clobber warnings.
22239 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22240 * utils.c (error): Remove NORETURN.