1 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
3 * Makefile.in (COMPILE): Add CXXFLAGS.
4 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
5 (gdbserver$(EXEEXT)): Add CXXFLAGS.
6 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
7 ($(IPA_LIB)): Add CXXFLAGS.
8 (IPAGENT_COMPILE): Add CXXFLAGS.
10 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
12 * configure.srv: Support ARC architecture.
13 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
14 * linux-arc-low.cc: New file.
16 2020-10-07 Kamil Rytarowski <n54@gmx.com>
18 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
19 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
20 (netbsd_process_target::qxfer_libraries_svr4): Update.
22 2020-10-07 Kamil Rytarowski <n54@gmx.com>
24 * netbsd-low.cc: Fix whitespace formatting.
25 * netbsd-amd64-low.cc: Likewise.
27 2020-10-07 Kamil Rytarowski <n54@gmx.com>
29 * netbsd-low.cc (netbsd_process_target::read_memory)
30 (netbsd_process_target::write_memory): Update.
32 2020-10-07 Kamil Rytarowski <n54@gmx.com>
34 * netbsd-aarch64-low.cc: Add.
35 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
36 * configure.srv: Add aarch64*-*-netbsd*.
38 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
40 * regcache.cc (register_data): Remove unused "fetch" argument.
42 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
44 * server.cc (handle_monitor_command): Handle "set
46 (captured_main): Handle "--debug-event-loop".
47 (monitor_show_help): Mention new setting.
48 (gdbserver_usage): Mention new flag.
50 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
52 * linux-low.cc (linux_process_target::async): Pass name to
54 * remote-utils.cc (handle_accept_event): Likewise.
55 (remote_open): Likewise.
57 2020-10-01 Kamil Rytarowski <n54@gmx.com>
59 * netbsd-i386-low.cc: Add.
60 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
61 * configure.srv: Add i[34567]86-*-netbsd*.
63 2020-10-01 Kamil Rytarowski <n54@gmx.com>
65 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
66 (netbsd_target_regsets): Now const.
67 (the_low_target): Remove.
68 (class netbsd_amd64_target, the_netbsd_amd64_target)
69 (the_netbsd_target): Add.
70 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
72 (netbsd_process_target::fetch_registers)
73 (netbsd_process_target::store_registers, initialize_low): Update.
74 (the_netbsd_target): Remove.
75 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
76 (the_low_target, netbsd_tdesc): Remove.
77 (netbsd_process_target::get_regs_info)
78 (netbsd_process_target::low_arch_setup): Add.
80 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
82 * win32-low.cc: Remove local wow64_process variable.
83 * win32-low.h: Remove local wow64_process variable.
85 2020-09-18 Tom Tromey <tromey@adacore.com>
87 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
88 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
89 (netbsd_process_target::wait): Change type of target_options.
90 * win32-low.h (class win32_process_target) <wait>: Update.
91 * win32-low.cc (win32_process_target::wait): Update.
92 * target.h (class process_stratum_target) <wait>: Update.
94 * target.cc (mywait, target_wait): Change type of "options".
95 * linux-low.h (class linux_process_target) <wait, wait_1>:
97 * linux-low.cc (linux_process_target::wait)
98 (linux_process_target::wait_1): Update.
100 2020-09-15 Tom Tromey <tromey@adacore.com>
102 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
103 (xmltarget_amd64_linux_no_xml): Now arrays.
105 2020-09-14 Tom Tromey <tromey@adacore.com>
107 * tracepoint.cc (eval_result_names): Now const.
108 * ax.cc (gdb_agent_op_names): Now const.
110 2020-09-10 Kamil Rytarowski <n54@gmx.com>
112 * netbsd-low.cc: Add.
113 * netbsd-low.h: Likewise.
114 * netbsd-amd64-low.cc: Likewise.
115 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
116 "netbsd-amd64-low.cc".
117 * configure.srv: Add x86_64-*-netbsd*.
119 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
121 * server.cc (captured_main): Accept multiple `--selftest=`
122 options. Pass all `--selftest=` arguments to run_tests.
124 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
126 * configure, config.in: Regenerate.
128 2020-07-26 Eli Zaretskii <eliz@gnu.org>
130 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
131 When checking whether socklen_t type is defined, use ws2tcpip.h if
132 it is available and sys/socket.h isn't.
133 * configure: Regenerate.
134 * config.in: Regenerate.
136 2020-07-22 Pedro Alves <pedro@palves.net>
138 * inferiors.cc (switch_to_process): New, moved here from
139 thread-db.cc, and made extern.
140 * inferiors.h (switch_to_process): Declare.
141 * server.cc: Include "gdbsupport/scoped_restore.h".
142 (handle_qxfer_threads_proper): Now returns bool. Prepare to
143 access memory around target calls.
144 (handle_qxfer_threads): Handle errors.
145 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
147 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
149 * linux-low.cc (stopped_pids): Make static.
151 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
153 * tdesc.cc (allocate_target_description): Add header comment.
154 (target_desc_deleter::operator()): New function.
155 * tdesc.h (struct target_desc): Declare as final.
157 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
159 * server.cc (handle_query): Use std::vector of
160 std::string for `qsupported` vector. Use separate
162 * target.h (class process_stratum_target) <process_qsupported>:
163 Change parameters to array_view of const char *.
164 (target_process_qsupported): Remove `count` parameter.
165 * target.cc (process_stratum_target::process_qsupported): Change
166 parameters to array_view of const char *.
167 * linux-x86-low.cc (class x86_target) <process_qsupported>:
170 2020-06-29 Tom de Vries <tdevries@suse.de>
172 * ax.h: Include gdbsupport/debug_agent.h.
174 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
176 * tdesc.cc (struct tdesc_compatible_info): New struct.
177 (tdesc_compatible_info_list): New function.
178 (tdesc_compatible_info_arch_name): New function.
180 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
182 Use std::list to stop pending signal instead of manually-created
184 * linux-low.h: Include <list>.
185 (struct pending_signal): Move here from linux-low.cc.
186 (struct lwp_info) <pending_signals>
187 <pending_signals_to_report>: Update the type.
188 * linux-low.cc (struct pending_signals): Remove.
189 (linux_process_target::delete_lwp)
190 (linux_process_target::add_lwp)
191 (enqueue_one_deferred_signal)
192 (dequeue_one_deferred_signal)
193 (enqueue_pending_signal)
194 (linux_process_target::resume_one_lwp_throw)
195 (linux_process_target::thread_needs_step_over)
196 (linux_process_target::resume_one_thread)
197 (linux_process_target::proceed_one_lwp): Update the use of pending
200 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
202 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
205 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
207 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
208 * configure.srv: Remove mingw32ce cases.
209 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
210 * win32-low.h (to_back_slashes): Remove.
211 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
213 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
215 * Makefile.in (SFILES): linux-tile-low.cc.
216 * configure.srv: Remove tilegx case.
217 * linux-tile-low.cc: Remove.
219 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
221 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
222 * configure.srv: Remove m32r case.
223 * linux-m32r-low.cc: Remove.
225 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
227 * Makefile.in (SFILES): Remove linux-cris-low.c.
228 * configure.srv: Remove cris cases.
229 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
231 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
233 * Makefile.in (SFILES): Remove linux-bfin-low.c.
234 * configure.srv: Remove bfin case.
235 * linux-bfin-low.cc: Remove.
236 * linux-low.cc: Remove BFIN-conditional code.
238 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
240 * configure: Re-generate.
241 * configure.ac: Remove srv_qnx test.
242 * configure.srv: Remove nto case.
243 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
244 * remote-utils.c: Remove __QNX__-guarded code.
246 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
248 * configure: Re-generate.
249 * configure.ac: Remove srv_lynxos test.
250 * configure.srv: Remove lynxos cases.
251 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
254 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
256 * README: Fix a few outdated or incoherent things.
258 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
260 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
261 (win32_clear_inferiors): Use open_process_used.
262 (get_child_debug_event): Likewise.
264 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
267 * linux-low.cc (linux_process_target::create_inferior),
268 lynx-low.cc (lynx_process_target::create_inferior),
269 win32-low.cc (win32_process_target::create_inferior): Use
270 construct_inferior_arguments instead of stringify_argv
271 to get string representation which properly escapes
273 * server.cc (handle_v_run): Just pass empty program arg
274 as such, since any further processing is now handled via
275 construct_inferior_arguments.
277 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
279 * nto-low.cc (nto_process_target::create_inferior): Pass
280 argv to spawnp function as char **.
282 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
284 * server.cc (captured_main), (handle_v_run): No longer
285 insert extra NULL element to args vector.
287 2020-05-23 Pedro Alves <palves@redhat.com>
289 * gdb-safe-ctype.h: New.
291 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
293 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
294 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
295 (ia64_target::low_breakpoint_at): Ditto.
297 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
299 * win32-i386-low.cc (i386_supports_z_point_type): Handle
300 Z_PACKET_HW_BP z_type.
301 (i386_insert_point): Handle raw_bkpt_type type.
302 (i386_remove_point): Likewise.
304 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
306 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
308 * win32-arm-low.cc (arm_num_regs): New function.
309 (struct win32_target_ops): Use arm_num_regs.
310 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
312 (i386_get_thread_context): Likewise.
313 (i386_prepare_to_resume): Likewise.
314 (i386_thread_added): Likewise.
315 (i386_single_step): Likewise.
316 (i386_fetch_inferior_register): Likewise.
317 (i386_store_inferior_register): Likewise.
318 (i386_arch_setup): Likewise.
319 (i386_win32_num_regs): New function.
320 (struct win32_target_ops): Use i386_win32_num_regs.
321 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
323 (win32_require_context): Likewise.
324 (child_add_thread): Likewise.
325 (do_initial_child_stuff): Likewise.
326 (continue_one_thread): Likewise.
327 (win32_process_target::resume): Likewise.
328 (load_psapi): Likewise.
329 (win32_add_all_dlls): Likewise.
330 (maybe_adjust_pc): Likewise.
331 (win32_process_target::qxfer_siginfo): Likewise.
332 (initialize_low): Likewise.
333 * win32-low.h (struct win32_target_ops): Change num_regs to
336 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
338 * configure.ac: Remove check for fs_base/gs_base in
340 * configure: Re-generate.
341 * config.in: Re-generate.
342 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
343 x86_store_gregset): Adjust.
345 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
347 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
350 2020-04-16 Tom Tromey <tromey@adacore.com>
352 * win32-low.cc (windows_nat::handle_access_violation): New
355 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
357 * win32-low.cc (get_child_debug_event): Fix format string warning.
359 2020-04-13 Tom Tromey <tom@tromey.com>
361 * server.h (gdb_fildes_t): Remove typedef.
362 * remote-utils.c (remote_desc, list_desc): Now int.
363 (INVALID_DESCRIPTOR): Remove.
364 (gdb_connected, remote_close)
365 (check_remote_input_interrupt_request): Update.
366 * utils.h (pfildes): Don't declare.
367 * utils.c (pfildes): Remove.
369 2020-04-13 Tom Tromey <tom@tromey.com>
371 * server.h (handle_serial_event, handle_target_event): Update.
372 * server.c: Don't call initialize_event_loop.
373 (keep_processing_events): New global.
374 (handle_serial_event): Return void. Set keep_processing_events.
375 (handle_target_event): Return void.
376 (start_event_loop): Move from event-loop.c. Rewrite.
377 * remote-utils.c (handle_accept_event): Return void.
378 (reset_readchar): Use delete_timer.
379 (process_remaining): Return void.
380 (reschedule): Use create_timer.
381 * event-loop.h: Remove.
382 * event-loop.cc: Remove.
383 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
385 2020-04-13 Tom Tromey <tom@tromey.com>
387 * server.c (invoke_async_signal_handlers)
388 (check_async_event_handlers, flush_streams, gdb_select): New
391 2020-04-13 Tom Tromey <tom@tromey.com>
393 * configure: Rebuild.
394 * config.in: Rebuild.
396 2020-04-08 Tom Tromey <tromey@adacore.com>
399 * win32-low.c (child_continue): Call matching_pending_stop.
400 (get_child_debug_event): Call fetch_pending_stop. Push pending
403 2020-04-08 Tom Tromey <tromey@adacore.com>
405 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
406 (win32_process_target::supports_stopped_by_sw_breakpoint):
408 * win32-low.c (win32_supports_z_point_type): Always handle
410 (win32_insert_point): Call insert_memory_breakpoint when needed.
411 (win32_remove_point): Call remove_memory_breakpoint when needed.
412 (win32_process_target::stopped_by_sw_breakpoint)
413 (win32_process_target::supports_stopped_by_sw_breakpoint): New
415 (win32_target_ops): Update.
416 (maybe_adjust_pc): New function.
417 (win32_wait): Call maybe_adjust_pc.
419 2020-04-08 Tom Tromey <tromey@adacore.com>
421 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
423 * win32-i386-low.c (the_low_target): Update.
424 * win32-arm-low.c (the_low_target): Update.
426 2020-04-08 Tom Tromey <tromey@adacore.com>
428 * win32-low.h (win32_process_target::read_pc)
429 (win32_process_target::write_pc): Declare.
430 * win32-low.c (win32_process_target::read_pc)
431 (win32_process_target::write_pc): New methods.
432 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
434 (the_low_target): Update.
435 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
437 (the_low_target): Update.
439 2020-04-08 Tom Tromey <tromey@adacore.com>
441 * win32-low.c (win32_kill, get_child_debug_event): Use
442 wait_for_debug_event.
444 2020-04-08 Tom Tromey <tromey@adacore.com>
446 * win32-low.c (child_continue): Call continue_last_debug_event.
448 2020-04-08 Tom Tromey <tromey@adacore.com>
450 * win32-low.c (handle_exception): Remove.
451 (windows_nat::handle_ms_vc_exception): New function.
452 (get_child_debug_event): Add "continue_status" parameter.
454 (win32_wait): Update.
456 2020-04-08 Tom Tromey <tromey@adacore.com>
458 * win32-low.c (windows_nat::handle_load_dll): Rename from
459 handle_load_dll. No longer static.
460 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
463 2020-04-08 Tom Tromey <tromey@adacore.com>
465 * win32-low.c (handle_output_debug_string): Add parameter. Change
467 (win32_kill, get_child_debug_event): Update.
469 2020-04-08 Tom Tromey <tromey@adacore.com>
471 * win32-low.c (current_process_handle, current_process_id)
472 (main_thread_id, last_sig, current_event, siginfo_er): Move to
475 2020-04-08 Tom Tromey <tromey@adacore.com>
477 * win32-low.c (get_image_name): Remove.
478 (handle_load_dll): Update.
480 2020-04-08 Tom Tromey <tromey@adacore.com>
482 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
483 No longer static. Change parameters.
484 (child_add_thread, child_fetch_inferior_registers)
485 (child_store_inferior_registers, win32_resume)
486 (win32_get_tib_address): Update.
488 2020-04-08 Tom Tromey <tromey@adacore.com>
490 * win32-low.h (struct win32_target_ops): Use qualified names where
492 * win32-i386-low.c: Add "using namespace".
493 * win32-low.c: Add "using namespace".
494 * win32-arm-low.c: Add "using namespace".
496 2020-04-08 Tom Tromey <tromey@adacore.com>
498 * win32-low.c (delete_thread_info): Don't call CloseHandle.
500 2020-04-08 Tom Tromey <tromey@adacore.com>
502 * win32-low.c (win32_require_context, suspend_one_thread): Use
503 windows_thread_info::suspend.
504 (continue_one_thread): Use windows_thread_info::resume.
505 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
507 2020-04-08 Tom Tromey <tromey@adacore.com>
509 * win32-i386-low.c (update_debug_registers)
510 (i386_prepare_to_resume, i386_thread_added): Update.
512 2020-04-08 Tom Tromey <tromey@adacore.com>
514 * win32-low.c (child_add_thread): Use new.
515 (delete_thread_info): Use delete.
517 2020-04-08 Tom Tromey <tromey@adacore.com>
519 * win32-low.h (struct windows_thread_info): Remove.
521 2020-04-08 Tom Tromey <tromey@adacore.com>
523 * win32-low.h (struct windows_thread_info): Rename from
524 win32_thread_info. Remove typedef.
525 (struct win32_target_ops, win32_require_context): Update.
526 * win32-low.c (win32_get_thread_context)
527 (win32_set_thread_context, win32_prepare_to_resume)
528 (win32_require_context, thread_rec, child_add_thread)
529 (delete_thread_info, continue_one_thread)
530 (child_fetch_inferior_registers, child_store_inferior_registers)
531 (win32_resume, suspend_one_thread, win32_get_tib_address):
533 * win32-i386-low.c (update_debug_registers)
534 (win32_get_current_dr, i386_get_thread_context)
535 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
536 (i386_fetch_inferior_register, i386_store_inferior_register):
538 * win32-arm-low.c (arm_get_thread_context)
539 (arm_fetch_inferior_register, arm_store_inferior_register):
542 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
544 * linux-low.h (struct linux_target_ops): Remove.
545 (the_low_target): Remove.
546 * linux-x86-low.cc (the_low_target): Remove.
547 * linux-aarch64-low.cc (the_low_target): Ditto.
548 * linux-arm-low.cc (the_low_target): Ditto.
549 * linux-bfin-low.cc (the_low_target): Ditto.
550 * linux-cris-low.cc (the_low_target): Ditto.
551 * linux-crisv32-low.cc (the_low_target): Ditto.
552 * linux-ia64-low.cc (the_low_target): Ditto.
553 * linux-m32r-low.cc (the_low_target): Ditto.
554 * linux-m68k-low.cc (the_low_target): Ditto.
555 * linux-mips-low.cc (the_low_target): Ditto.
556 * linux-nios2-low.cc (the_low_target): Ditto.
557 * linux-ppc-low.cc (the_low_target): Ditto.
558 * linux-riscv-low.cc (the_low_target): Ditto.
559 * linux-s390-low.cc (the_low_target): Ditto.
560 * linux-sh-low.cc (the_low_target): Ditto.
561 * linux-sparc-low.cc (the_low_target): Ditto.
562 * linux-tic6x-low.cc (the_low_target): Ditto.
563 * linux-tile-low.cc (the_low_target): Ditto.
564 * linux-xtensa-low.cc (the_low_target): Ditto.
566 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
568 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
569 linux target define the op by overriding the declaration in
570 process_stratum_target.
572 * linux-low.h (struct linux_target_ops): Remove the op.
573 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
574 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
575 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
576 (x86_get_ipa_tdesc_idx): Turn into...
577 (x86_target::get_ipa_tdesc_idx): ...this.
578 (the_low_target): Remove the op field.
579 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
580 (ppc_get_ipa_tdesc_idx): Turn into...
581 (ppc_target::get_ipa_tdesc_idx): ...this.
582 (the_low_target): Remove the op field.
583 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
584 (s390_get_ipa_tdesc_idx): Turn into...
585 (s390_target::get_ipa_tdesc_idx): ...this.
586 (the_low_target): Remove the op field.
588 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
590 Turn the 'get_syscall_trapinfo' linux target op into a method
591 of process_stratum_target.
593 * linux-low.h (struct linux_target_ops): Remove the op.
594 (class linux_process_target) <get_syscall_trapinfo>
595 <gdb_catch_this_syscall>
596 <low_supports_catch_syscall>
597 <low_get_syscall_trapinfo>: Declare.
598 * linux-low.cc (get_syscall_trapinfo): Turn into...
599 (linux_process_target::get_syscall_trapinfo): ...this.
600 (linux_process_target::low_get_syscall_trapinfo): Define.
601 (gdb_catch_this_syscall_p): Turn into...
602 (linux_process_target::gdb_catch_this_syscall): ...this.
603 (linux_process_target::low_supports_catch_syscall): Define.
605 Update the callers below.
607 (linux_process_target::wait_1)
608 (linux_process_target::supports_catch_syscall)
610 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
611 <low_get_syscall_trapinfo>: Declare.
612 (x86_target::low_supports_catch_syscall): Define.
613 (x86_get_syscall_trapinfo): Turn into...
614 (x86_target::low_get_syscall_trapinfo): ...this.
615 (the_low_target): Remove the op field.
616 * linux-aarch64-low.cc (class aarch64_target)
617 <low_supports_catch_syscall>
618 <low_get_syscall_trapinfo>: Declare.
619 (aarch64_target::low_supports_catch_syscall): Define.
620 (aarch64_get_syscall_trapinfo): Turn into...
621 (aarch64_target::low_get_syscall_trapinfo): ...this.
622 (the_low_target): Remove the op field.
623 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
624 <low_get_syscall_trapinfo>: Declare.
625 (arm_target::low_supports_catch_syscall): Define.
626 (arm_get_syscall_trapinfo): Turn into...
627 (arm_target::low_get_syscall_trapinfo): ...this.
628 (the_low_target): Remove the op field.
629 * linux-ppc-low.cc (the_low_target): Remove the op field.
630 * linux-s390-low.cc (the_low_target): Remove the op field.
632 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
634 Remove the 'supports_hardware_single_step' linux target op and
635 override the process_stratum_target's op definition in
636 linux_process_target to return true.
638 * linux-low.h (struct linux_target_ops): Remove the op.
639 (class linux_process_target) <finish_step_over>
640 <maybe_hw_step>: Declare.
641 * linux-low.cc (can_hardware_single_step): Remove.
642 (maybe_hw_step): Turn into...
643 (linux_process_target::maybe_hw_step): ...this.
644 (finish_step_over): Turn into...
645 (linux_process_target::finish_step_over): ...this.
646 (linux_process_target::supports_hardware_single_step): Update
649 Update the callers below.
651 (linux_process_target::single_step)
652 (linux_process_target::resume_one_lwp_throw)
654 * linux-arm-low.cc (class arm_target)
655 <supports_hardware_single_step>: Declare.
656 (arm_supports_hardware_single_step): Turn into...
657 (arm_target::supports_hardware_single_step): ...this.
658 (the_low_target): Remove the op field.
659 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
660 (the_low_target): Remove the op field.
661 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
663 (the_low_target): Remove the op field.
664 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
665 (the_low_target): Remove the op field.
666 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
667 (the_low_target): Remove the op field.
668 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
669 (the_low_target): Remove the op field.
670 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
671 (the_low_target): Remove the op field.
672 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
673 (the_low_target): Remove the op field.
674 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
675 (the_low_target): Remove the op field.
676 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
677 (the_low_target): Remove the op field.
678 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
679 (the_low_target): Remove the op field.
680 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
681 (the_low_target): Remove the op field.
682 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
684 (the_low_target): Remove the op field.
686 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
688 Turn the 'supports_range_stepping' linux target op into a method
689 of linux_process_target.
691 * linux-low.h (struct linux_target_ops): Remove the op.
692 (class linux_process_target) <low_supports_range_stepping>: Declare.
693 * linux-low.cc (linux_process_target::low_supports_range_stepping):
695 (linux_process_target::supports_range_stepping): Update the call
697 * linux-x86-low.cc (class x86_target)
698 <low_supports_range_stepping>: Declare.
699 (x86_supports_range_stepping): Turn into...
700 (x86_target::low_supports_range_stepping): ...this.
701 (the_low_target): Remove the op field.
702 * linux-aarch64-low.cc (class aarch64_target)
703 <low_supports_range_stepping>: Declare.
704 (aarch64_supports_range_stepping): Turn into...
705 (aarch64_target::low_supports_range_stepping): ...this.
706 (the_low_target): Remove the op field.
707 * linux-arm-low.cc (the_low_target): Remove the op field.
708 * linux-bfin-low.cc (the_low_target): Ditto.
709 * linux-crisv32-low.cc (the_low_target): Ditto.
710 * linux-m32r-low.cc (the_low_target): Ditto.
711 * linux-m68k-low.cc (the_low_target): Ditto.
712 * linux-ppc-low.cc (the_low_target): Ditto.
713 * linux-s390-low.cc (the_low_target): Ditto.
714 * linux-sh-low.cc (the_low_target): Ditto.
715 * linux-tic6x-low.cc (the_low_target): Ditto.
716 * linux-tile-low.cc (the_low_target): Ditto.
717 * linux-xtensa-low.cc (the_low_target): Ditto.
719 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
721 Remove the 'emit_ops' linux target ops and let the concrete
722 linux target define the op by overriding the declaration of
723 process_stratum_target.
725 * linux-low.h (struct linux_target_ops): Remove the op.
726 (class linux_process_target) <emit_ops>: Remove.
727 * linux-low.cc (linux_process_target::emit_ops): Remove.
728 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
729 (x86_emit_ops): Turn into...
730 (x86_target::emit_ops): ...this.
731 (the_low_target): Remove the op field.
732 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
733 (aarch64_emit_ops): Turn into...
734 (aarch64_target::emit_ops): ...this.
735 (the_low_target): Remove the op field.
736 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
737 (ppc_emit_ops): Turn into...
738 (ppc_target::emit_ops): ...this.
739 (the_low_target): Remove the op field.
740 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
741 (s390_emit_ops): Turn into...
742 (s390_target::emit_ops): ...this.
743 (the_low_target): Remove the op field.
744 * linux-arm-low.cc (the_low_target): Remove the op field.
745 * linux-bfin-low.cc (the_low_target): Ditto.
746 * linux-crisv32-low.cc (the_low_target): Ditto.
747 * linux-m32r-low.cc (the_low_target): Ditto.
748 * linux-m68k-low.cc (the_low_target): Ditto.
749 * linux-sh-low.cc (the_low_target): Ditto.
750 * linux-tic6x-low.cc (the_low_target): Ditto.
751 * linux-tile-low.cc (the_low_target): Ditto.
752 * linux-xtensa-low.cc (the_low_target): Ditto.
754 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
756 Remove the 'install_fast_tracepoint_jump_pad' and
757 'get_min_fast_tracepoint_insn_len' linux target ops to let the
758 concrete linux target define the ops by overriding the declarations
759 of process_stratum_target.
761 * linux-low.h (struct linux_target_ops): Remove the ops.
762 (class linux_process_target) <supports_fast_tracepoints>
763 <install_fast_tracepoint_jump_pad>
764 <get_min_fast_tracepoint_insn_len>: Remove.
765 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
766 (linux_process_target::install_fast_tracepoint_jump_pad)
767 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
768 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
769 <install_fast_tracepoint_jump_pad>
770 <get_min_fast_tracepoint_insn_len>: Declare.
771 (x86_target::supports_fast_tracepoints): Define.
772 (x86_install_fast_tracepoint_jump_pad): Turn into...
773 (x86_target::install_fast_tracepoint_jump_pad): ...this.
774 (x86_get_min_fast_tracepoint_insn_len): Turn into...
775 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
776 (the_low_target): Remove the op fields.
777 * linux-aarch64-low.cc (class aarch64_target)
778 <supports_fast_tracepoints>
779 <install_fast_tracepoint_jump_pad>
780 <get_min_fast_tracepoint_insn_len>: Declare.
781 (aarch64_target::supports_fast_tracepoints): Define.
782 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
783 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
784 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
785 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
786 (the_low_target): Remove the op fields.
787 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
788 <install_fast_tracepoint_jump_pad>
789 <get_min_fast_tracepoint_insn_len>: Declare.
790 (ppc_target::supports_fast_tracepoints): Define.
791 (ppc_install_fast_tracepoint_jump_pad): Turn into...
792 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
793 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
794 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
795 (the_low_target): Remove the op fields.
796 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
797 <install_fast_tracepoint_jump_pad>
798 <get_min_fast_tracepoint_insn_len>: Declare.
799 (s390_target::supports_fast_tracepoints): Define.
800 (s390_install_fast_tracepoint_jump_pad): Turn into...
801 (s390_target::install_fast_tracepoint_jump_pad): ...this.
802 (s390_get_min_fast_tracepoint_insn_len): Turn into...
803 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
804 (the_low_target): Remove the op fields.
805 * linux-arm-low.cc (the_low_target): Remove the op fields.
806 * linux-bfin-low.cc (the_low_target): Ditto.
807 * linux-crisv32-low.cc (the_low_target): Ditto.
808 * linux-m32r-low.cc (the_low_target): Ditto.
809 * linux-m68k-low.cc (the_low_target): Ditto.
810 * linux-sh-low.cc (the_low_target): Ditto.
811 * linux-tic6x-low.cc (the_low_target): Ditto.
812 * linux-tile-low.cc (the_low_target): Ditto.
813 * linux-xtensa-low.cc (the_low_target): Ditto.
815 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
817 Turn the 'get_thread_area' linux target op into a method of
818 process_stratum_target.
820 * linux-low.h (struct linux_target_ops): Remove the op.
821 (class linux_process_target) <stuck_in_jump_pad>
822 <linux_fast_tracepoint_collecting>
823 <low_get_thread_area>: Declare.
824 * linux-low.cc (supports_fast_tracepoints): Remove.
825 (linux_fast_tracepoint_collecting): Turn into...
826 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
827 (linux_process_target::low_get_thread_area): Define.
828 (stuck_in_jump_pad_callback): Turn into...
829 (linux_process_target::stuck_in_jump_pad): ...this.
831 Update the caller below.
833 (linux_process_target::stabilize_threads)
835 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
837 (x86_get_thread_area): Turn into...
838 (x86_target::low_get_thread_area): ...this.
839 (the_low_target): Remove the op field.
840 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
842 (aarch64_get_thread_area): Turn into...
843 (aarch64_target::low_get_thread_area): ...this.
844 (the_low_target): Remove the op field.
845 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
847 (ppc_get_thread_area): Turn into...
848 (ppc_target::low_get_thread_area): ...this.
849 (the_low_target): Remove the op field.
850 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
852 (s390_get_thread_area): Turn into...
853 (s390_target::low_get_thread_area): ...this.
854 (the_low_target): Remove the op field.
855 * linux-arm-low.cc (the_low_target): Remove the op field.
856 * linux-bfin-low.cc (the_low_target): Ditto.
857 * linux-crisv32-low.cc (the_low_target): Ditto.
858 * linux-m32r-low.cc (the_low_target): Ditto.
859 * linux-m68k-low.cc (the_low_target): Ditto.
860 * linux-sh-low.cc (the_low_target): Ditto.
861 * linux-tic6x-low.cc (the_low_target): Ditto.
862 * linux-tile-low.cc (the_low_target): Ditto.
863 * linux-xtensa-low.cc (the_low_target): Ditto.
865 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
867 Remote the 'supports_tracepoints' linux target op and let the
868 concrete linux target define it by overriding the op declared in
869 process_stratum_target.
871 * linux-low.h (struct linux_target_ops): Remove the op.
872 (class linux_process_target) <supports_tracepoints>: Remove.
873 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
874 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
876 (x86_supports_tracepoints): Turn into...
877 (x86_target::supports_tracepoints): ...this.
878 (the_low_target): Remove the op field.
879 * linux-aarch64-low.cc (class aarch64_target)
880 <supports_tracepoints>: Declare.
881 (aarch64_supports_tracepoints): Turn into...
882 (aarch64_target::supports_tracepoints): ...this.
883 (the_low_target): Remove the op field.
884 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
886 (ppc_supports_tracepoints): Turn into...
887 (ppc_target::supports_tracepoints): ...this.
888 (the_low_target): Remove the op field.
889 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
891 (s390_supports_tracepoints): Turn into...
892 (s390_target::supports_tracepoints): ...this.
893 (the_low_target): Remove the op field.
894 * linux-arm-low.cc (the_low_target): Remove the op field.
895 * linux-bfin-low.cc (the_low_target): Ditto.
896 * linux-crisv32-low.cc (the_low_target): Ditto.
897 * linux-m32r-low.cc (the_low_target): Ditto.
898 * linux-m68k-low.cc (the_low_target): Ditto.
899 * linux-sh-low.cc (the_low_target): Ditto.
900 * linux-tic6x-low.cc (the_low_target): Ditto.
901 * linux-tile-low.cc (the_low_target): Ditto.
902 * linux-xtensa-low.cc (the_low_target): Ditto.
904 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
906 Remove the 'process_qsupported' linux target op and let a concrete
907 linux target define the op by overriding the op declaration in
908 process_stratum_target.
910 * linux-low.h (struct linux_target_ops): Remove the op.
911 (class linux_process_target) <process_qsupported>: Remove.
912 * linux-low.cc (linux_process_target::process_qsupported): Remove.
913 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
914 (x86_linux_process_qsupported): Turn into...
915 (x86_target::process_qsupported): ...this.
916 (the_low_target): Remove the op field.
917 * linux-aarch64-low.cc (the_low_target): Remove the op
919 * linux-arm-low.cc (the_low_target): Ditto.
920 * linux-bfin-low.cc (the_low_target): Ditto.
921 * linux-crisv32-low.cc (the_low_target): Ditto.
922 * linux-m32r-low.cc (the_low_target): Ditto.
923 * linux-m68k-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 'prepare_to_resume' linux target op into a method of
934 linux_process_target.
936 * linux-low.h (struct linux_target_ops): Remove the op.
937 (class linux_process_target) <low_prepare_to_resume>: Declare.
938 * linux-low.cc (linux_process_target::low_prepare_to_resume):
941 Update the callers below:
943 (linux_process_target::resume_one_lwp_throw)
944 (linux_process_target::low_prepare_to_resume)
946 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
948 (x86_target::low_prepare_to_resume): Define.
949 (the_low_target): Remove the op field.
950 * linux-aarch64-low.cc (class aarch64_target)
951 <low_prepare_to_resume>: Declare.
952 (aarch64_target::low_prepare_to_resume): Define.
953 (the_low_target): Remove the op field.
954 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
956 (arm_prepare_to_resume): Turn into...
957 (arm_target::low_prepare_to_resume): ...this.
958 (the_low_target): Remove the op field.
959 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
961 (mips_linux_prepare_to_resume): Turn into...
962 (mips_target::low_prepare_to_resume): ...this.
963 (the_low_target): Remove the op field.
964 * linux-bfin-low.cc (the_low_target): Remove the op field.
965 * linux-crisv32-low.cc (the_low_target): Ditto.
966 * linux-m32r-low.cc (the_low_target): Ditto.
967 * linux-m68k-low.cc (the_low_target): Ditto.
968 * linux-ppc-low.cc (the_low_target): Ditto.
969 * linux-s390-low.cc (the_low_target): Ditto.
970 * linux-sh-low.cc (the_low_target): Ditto.
971 * linux-tic6x-low.cc (the_low_target): Ditto.
972 * linux-tile-low.cc (the_low_target): Ditto.
973 * linux-xtensa-low.cc (the_low_target): Ditto.
975 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
977 Turn the 'new_process', 'delete_process', 'new_thread',
978 'delete_thread', and 'new_fork' linux target ops into methods
979 of linux_process_target.
981 * linux-low.h (struct linux_target_ops): Remove the ops.
982 (class linux_process_target) <add_linux_process>
987 <check_zombie_leaders>
993 <low_new_fork>: Declare.
994 * linux-low.cc (delete_lwp): Turn into...
995 (linux_process_target::delete_lwp): ...this.
996 (linux_process_target::low_delete_thread): Define.
997 (linux_add_process): Turn into...
998 (linux_process_target::add_linux_process): ...this.
999 (linux_process_target::low_new_process): Define.
1000 (linux_process_target::low_delete_process): Define.
1001 (linux_process_target::low_new_fork): Define.
1002 (add_lwp): Turn into...
1003 (linux_process_target::add_lwp): ...this.
1004 (linux_process_target::low_new_thread): Define.
1005 (linux_attach_lwp): Turn into...
1006 (linux_process_target::attach_lwp): ...this.
1007 (linux_detach_one_lwp): Turn into...
1008 (linux_process_target::detach_one_lwp): ...this.
1009 (linux_detach_lwp_callback): Remove and inline...
1010 (linux_process_target::detach): ...here.
1011 (check_zombie_leaders): Turn into...
1012 (linux_process_target::check_zombie_leaders): ...this.
1013 (filter_exit_event): Turn into...
1014 (linux_process_target::filter_exit_event): ...this.
1016 Update the callers below.
1018 (linux_process_target::handle_extended_wait)
1019 (linux_process_target::create_inferior)
1020 (attach_proc_task_lwp_callback)
1021 (linux_process_target::attach)
1022 (linux_process_target::detach)
1023 (linux_process_target::mourn)
1024 * thread-db.cc (attach_thread)
1026 * linux-x86-low.cc (class x86_target) <low_new_process>
1027 <low_delete_process>
1030 <low_new_fork>: Declare.
1031 (x86_linux_new_process): Turn into...
1032 (x86_target::low_new_process): ...this.
1033 (x86_linux_delete_process): Turn into...
1034 (x86_target::low_delete_process): ...this.
1035 (x86_target::low_new_thread): Define.
1036 (x86_target::low_delete_thread): Define.
1037 (x86_linux_new_fork): Turn into...
1038 (x86_target::low_new_fork): ...this.
1039 (the_low_target): Remove the op fields.
1040 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1041 <low_delete_process>
1044 <low_new_fork>: Declare.
1045 (aarch64_linux_new_process): Turn into...
1046 (aarch64_target::low_new_process): ...this.
1047 (aarch64_linux_delete_process): Turn into...
1048 (aarch64_target::low_delete_process): ...this.
1049 (aarch64_target::low_new_thread): Define.
1050 (aarch64_target::low_delete_thread): Define.
1051 (aarch64_linux_new_fork): Turn into...
1052 (aarch64_target::low_new_fork): ...this.
1053 (the_low_target): Remove the op fields.
1054 * linux-arm-low.cc (class arm_target) <low_new_process>
1055 <low_delete_process>
1058 <low_new_fork>: Declare.
1059 (arm_new_process): Turn into...
1060 (arm_target::low_new_process): ...this.
1061 (arm_delete_process): Turn into...
1062 (arm_target::low_delete_process): ...this.
1063 (arm_new_thread): Turn into...
1064 (arm_target::low_new_thread): ...this.
1065 (arm_delete_thread): Turn into...
1066 (arm_target::low_delete_thread): ...this.
1067 (arm_new_fork): Turn into...
1068 (arm_target::low_new_fork): ...this.
1069 (the_low_target): Remove the op fields.
1070 * linux-mips-low.cc (class mips_target) <low_new_process>
1071 <low_delete_process>
1074 <low_new_fork>: Declare.
1075 (mips_linux_new_process): Turn into...
1076 (mips_target::low_new_process): ...this.
1077 (mips_linux_delete_process): Turn into...
1078 (mips_target::low_delete_process): ...this.
1079 (mips_linux_new_thread): Turn into...
1080 (mips_target::low_new_thread): ...this.
1081 (mips_linux_delete_thread): Turn into...
1082 (mips_target::low_delete_thread): ...this.
1083 (mips_linux_new_fork): Turn into...
1084 (mips_target::low_new_fork): ...this.
1085 (the_low_target): Remove the op fields.
1086 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1087 * linux-crisv32-low.cc (the_low_target): Ditto.
1088 * linux-m32r-low.cc (the_low_target): Ditto.
1089 * linux-m68k-low.cc (the_low_target): Ditto.
1090 * linux-ppc-low.cc (the_low_target): Ditto.
1091 * linux-s390-low.cc (the_low_target): Ditto.
1092 * linux-sh-low.cc (the_low_target): Ditto.
1093 * linux-tic6x-low.cc (the_low_target): Ditto.
1094 * linux-tile-low.cc (the_low_target): Ditto.
1095 * linux-xtensa-low.cc (the_low_target): Ditto.
1097 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1099 Turn the 'siginfo_fixup' linux target op into a method of
1100 linux_process_target.
1102 * linux-low.h (struct linux_target_ops): Remove the op.
1103 (class linux_process_target) <siginfo_fixup>
1104 <low_siginfo_fixup>: Declare.
1105 * linux-low.cc (siginfo_fixup): Turn into...
1106 (linux_process_target::siginfo_fixup): ...this.
1107 (linux_process_target::low_siginfo_fixup): Define.
1108 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1109 (x86_siginfo_fixup): Turn into...
1110 (x86_target::low_siginfo_fixup): ...this.
1111 (the_low_target): Remove the op field.
1112 * linux-aarch64-low.cc (class aarch64_target):
1113 <low_siginfo_fixup>: Declare.
1114 (aarch64_linux_siginfo_fixup): Turn into...
1115 (aarch64_target::low_siginfo_fixup): ...this.
1116 (the_low_target): Remove the op field.
1117 * linux-arm-low.cc (the_low_target): Remove the op field.
1118 * linux-bfin-low.cc (the_low_target): Ditto.
1119 * linux-crisv32-low.cc (the_low_target): Ditto.
1120 * linux-m32r-low.cc (the_low_target): Ditto.
1121 * linux-m68k-low.cc (the_low_target): Ditto.
1122 * linux-mips-low.cc (the_low_target): Ditto.
1123 * linux-ppc-low.cc (the_low_target): Ditto.
1124 * linux-s390-low.cc (the_low_target): Ditto.
1125 * linux-sh-low.cc (the_low_target): Ditto.
1126 * linux-tic6x-low.cc (the_low_target): Ditto.
1127 * linux-tile-low.cc (the_low_target): Ditto.
1128 * linux-xtensa-low.cc (the_low_target): Ditto.
1130 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1132 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1133 linux target ops into methods of linux_process_target.
1135 * linux-low.h (struct linux_target_ops): Remove the ops.
1136 (class linux_process_target) <low_collect_ptrace_register>
1137 <low_store_ptrace_register>: Declare.
1138 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1139 (linux_process_target::low_supply_ptrace_register): Define.
1141 Update the callers below.
1143 (linux_process_target::fetch_register)
1144 (linux_process_target::store_register)
1146 * linux-x86-low.cc (the_low_target): Remove the op fields.
1147 * linux-aarch64-low.cc (the_low_target): Ditto.
1148 * linux-arm-low.cc (the_low_target): Ditto.
1149 * linux-bfin-low.cc (the_low_target): Ditto.
1150 * linux-crisv32-low.cc (the_low_target): Ditto.
1151 * linux-m32r-low.cc (the_low_target): Ditto.
1152 * linux-m68k-low.cc (the_low_target): Ditto.
1153 * linux-sh-low.cc (the_low_target): Ditto.
1154 * linux-sparc-low.cc (the_low_target): Ditto.
1155 * linux-tic6x-low.cc (the_low_target): Ditto.
1156 * linux-tile-low.cc (the_low_target): Ditto.
1157 * linux-xtensa-low.cc (the_low_target): Ditto.
1158 * linux-mips-low.cc (class mips_target)
1159 <low_collect_ptrace_register>
1160 <low_supply_ptrace_register>: Declare.
1161 (mips_collect_ptrace_register): Turn into ...
1162 (mips_target::low_collect_ptrace_register): ...this.
1163 (mips_supply_ptrace_register): Turn into...
1164 (mips_target::low_supply_ptrace_register): ...this.
1165 (the_low_target): Remove the op fields.
1166 * linux-ppc-low.cc (class ppc_target)
1167 <low_collect_ptrace_register>
1168 <low_supply_ptrace_register>: Declare.
1169 (ppc_collect_ptrace_register): Turn into ...
1170 (ppc_target::low_collect_ptrace_register): ...this.
1171 (ppc_supply_ptrace_register): Turn into ...
1172 (ppc_target::low_supply_ptrace_register): ...this.
1173 (ppc_fill_gregset): Update for the calls to
1174 low_collect_ptrace_register.
1175 (the_low_target): Remove the op fields.
1176 * linux-s390-low.cc (class s390_target)
1177 <low_collect_ptrace_register>
1178 <low_supply_ptrace_register>: Declare.
1179 (s390_collect_ptrace_register): Turn into ...
1180 (s390_target::low_collect_ptrace_register): ...this.
1181 (s390_supply_ptrace_register): Turn into ...
1182 (s390_target::low_supply_ptrace_register): ...this.
1183 (s390_fill_gregset): Update for the calls to
1184 low_collect_ptrace_register.
1185 (the_low_target): Remove the op fields.
1187 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1189 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1190 target ops into methods of linux_process_target.
1192 * linux-low.h (struct linux_target_ops): Remove the ops.
1193 (class linux_process_target) <check_stopped_by_watchpoint>
1194 <low_stopped_by_watchpoint>
1195 <low_stopped_data_address>: Declare.
1196 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1197 (linux_process_target::check_stopped_by_watchpoint): ...this.
1198 (linux_process_target::low_stopped_by_watchpoint): Define.
1199 (linux_process_target::low_stopped_data_address): Define.
1200 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1201 <low_stopped_data_address>: Declare.
1202 (x86_stopped_by_watchpoint): Turn into...
1203 (x86_target::low_stopped_by_watchpoint): ...this.
1204 (x86_stopped_data_address): Turn into...
1205 (x86_target::low_stopped_data_address): ...this.
1206 (the_low_target): Remove the op fields.
1207 * linux-aarch64-low.cc (class aarch64_target)
1208 <low_stopped_by_watchpoint>
1209 <low_stopped_data_address>: Declare.
1210 (aarch64_stopped_by_watchpoint): Turn into...
1211 (aarch64_target::low_stopped_by_watchpoint): ...this.
1212 (aarch64_stopped_data_address): Turn into...
1213 (aarch64_target::low_stopped_data_address): ...this.
1214 (the_low_target): Remove the op fields.
1215 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1216 <low_stopped_data_address>: Declare.
1217 (arm_stopped_by_watchpoint): Turn into...
1218 (arm_target::low_stopped_by_watchpoint): ...this.
1219 (arm_stopped_data_address): Turn into...
1220 (arm_target::low_stopped_data_address): ...this.
1221 (the_low_target): Remove the op fields.
1222 * linux-crisv32-low.cc (class crisv32_target)
1223 <low_stopped_by_watchpoint>
1224 <low_stopped_data_address>: Declare.
1225 (cris_stopped_by_watchpoint): Turn into...
1226 (crisv32_target::low_stopped_by_watchpoint): ...this.
1227 (cris_stopped_data_address): Turn into...
1228 (crisv32_target::low_stopped_data_address): ...this.
1229 (the_low_target): Remove the op fields.
1230 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1231 <low_stopped_data_address>: Declare.
1232 (mips_stopped_by_watchpoint): Turn into...
1233 (mips_target::low_stopped_by_watchpoint): ...this.
1234 (mips_stopped_data_address): Turn into...
1235 (mips_target::low_stopped_data_address): ...this.
1236 (the_low_target): Remove the op fields.
1237 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1238 * linux-m32r-low.cc (the_low_target): Ditto.
1239 * linux-m68k-low.cc (the_low_target): Ditto.
1240 * linux-ppc-low.cc (the_low_target): Ditto.
1241 * linux-s390-low.cc (the_low_target): Ditto.
1242 * linux-sh-low.cc (the_low_target): Ditto.
1243 * linux-sparc-low.cc (the_low_target): Ditto.
1244 * linux-tic6x-low.cc (the_low_target): Ditto.
1245 * linux-tile-low.cc (the_low_target): Ditto.
1246 * linux-xtensa-low.cc (the_low_target): Ditto.
1248 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1250 Turn the 'insert_point' and 'remove_point' linux target ops into
1251 methods of linux_process_target.
1253 * linux-low.h (struct linux_target_ops): Remove the ops.
1254 (class linux_process_target) <low_insert_point>
1255 <low_remove_point>: Declare.
1256 * linux-low.cc (linux_process_target::low_insert_point)
1257 (linux_process_target::low_remove_point): Define.
1258 (linux_process_target::insert_point)
1259 (linux_process_target::remove_point): Update for calls to
1260 low_insert_point and low_remove_point.
1261 * linux-x86-low.cc (class x86_target) <low_insert_point>
1262 <low_remove_point>: Declare.
1263 (x86_insert_point): Turn into...
1264 (x86_target::low_insert_point): ...this.
1265 (x86_remove_point): Turn into...
1266 (x86_target::low_remove_point): ...this.
1267 (the_low_target): Remove the op fields.
1268 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1269 <low_remove_point>: Declare.
1270 (aarch64_insert_point): Turn into...
1271 (aarch64_target::low_insert_point): ...this.
1272 (aarch64_remove_point): Turn into...
1273 (aarch64_target::low_remove_point): ...this.
1274 (the_low_target): Remove the op fields.
1275 * linux-arm-low.cc (class arm_target) <low_insert_point>
1276 <low_remove_point>: Declare.
1277 (arm_insert_point): Turn into...
1278 (arm_target::low_insert_point): ...this.
1279 (arm_remove_point): Turn into...
1280 (arm_target::low_remove_point): ...this.
1281 (the_low_target): Remove the op fields.
1282 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1283 <low_remove_point>: Declare.
1284 (crisv32_insert_point): Turn into...
1285 (crisv32_target::low_insert_point): ...this.
1286 (crisv32_remove_point): Turn into...
1287 (crisv32_target::low_remove_point): ...this.
1288 (the_low_target): Remove the op fields.
1289 * linux-mips-low.cc (class mips_target) <low_insert_point>
1290 <low_remove_point>: Declare.
1291 (mips_insert_point): Turn into...
1292 (mips_target::low_insert_point): ...this.
1293 (mips_remove_point): Turn into...
1294 (mips_target::low_remove_point): ...this.
1295 (the_low_target): Remove the op fields.
1296 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1297 <low_remove_point>: Declare.
1298 (ppc_insert_point): Turn into...
1299 (ppc_target::low_insert_point): ...this.
1300 (ppc_remove_point): Turn into...
1301 (ppc_target::low_remove_point): ...this.
1302 (the_low_target): Remove the op fields.
1303 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1304 * linux-m32r-low.cc (the_low_target): Ditto.
1305 * linux-m68k-low.cc (the_low_target): Ditto.
1306 * linux-s390-low.cc (the_low_target): Ditto.
1307 * linux-sh-low.cc (the_low_target): Ditto.
1308 * linux-sparc-low.cc (the_low_target): Ditto.
1309 * linux-tic6x-low.cc (the_low_target): Ditto.
1310 * linux-tile-low.cc (the_low_target): Ditto.
1311 * linux-xtensa-low.cc (the_low_target): Ditto.
1313 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1315 Remove the 'supports_z_point_type' linux target op and let the
1316 concrete linux target define it by overriding the op declared in
1317 process_stratum_target.
1319 * linux-low.cc (linux_process_target::supports_z_point_type):
1321 * linux-low.h (struct linux_target_ops): Remove the op.
1322 (class linux_process_target) <supports_z_point_type>: Remove.
1323 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1325 (x86_supports_z_point_type): Turn into...
1326 (x86_target::supports_z_point_type): ...this.
1327 (the_low_target): Remove the op field.
1328 * linux-aarch64-low.cc (class aarch64_target)
1329 <supports_z_point_type>: Declare.
1330 (aarch64_supports_z_point_type): Turn into...
1331 (aarch64_target::supports_z_point_type): ...this.
1332 (the_low_target): Remove the op field.
1333 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1335 (arm_supports_z_point_type): Turn into...
1336 (arm_target::supports_z_point_type): ...this.
1337 (the_low_target): Remove the op field.
1338 * linux-crisv32-low.cc (class crisv32_target)
1339 <supports_z_point_type>: Declare.
1340 (cris_supports_z_point_type): Turn into...
1341 (crisv32_target::supports_z_point_type): ...this.
1342 (the_low_target): Remove the op field.
1343 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1345 (mips_supports_z_point_type): Turn into...
1346 (mips_target::supports_z_point_type): ...this.
1347 (the_low_target): Remove the op field.
1348 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1350 (ppc_supports_z_point_type): Turn into...
1351 (ppc_target::supports_z_point_type): ...this.
1352 (the_low_target): Remove the op field.
1353 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1355 (s390_supports_z_point_type): Turn into...
1356 (s390_target::supports_z_point_type): ...this.
1357 (the_low_target): Remove the op field.
1358 * linux-bfin-low.cc (the_low_target): Remove the op field.
1359 * linux-m32r-low.cc (the_low_target): Ditto.
1360 * linux-m68k-low.cc (the_low_target): Ditto.
1361 * linux-sh-low.cc (the_low_target): Ditto.
1362 * linux-sparc-low.cc (the_low_target): Ditto.
1363 * linux-tic6x-low.cc (the_low_target): Ditto.
1364 * linux-tile-low.cc (the_low_target): Ditto.
1365 * linux-xtensa-low.cc (the_low_target): Ditto.
1367 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1369 Turn the 'breakpoint_at' linux target op into a method of
1370 linux_process_target.
1372 * linux-low.h (struct linux_target_ops): Remove the op.
1373 (class linux_process_target) <low_breakpoint_at>: Declare.
1375 Update the callers below:
1377 * linux-low.cc (linux_process_target::save_stop_reason)
1378 (linux_process_target::thread_still_has_status_pending)
1379 (linux_process_target::wait_1)
1381 * linux-x86-low.cc (class x86_target)
1382 <low_breakpoint_at>: Declare.
1383 (x86_breakpoint_at): Turn into...
1384 (x86_target::low_breakpoint_at): ...this.
1385 (the_low_target): Remove the op field.
1386 * linux-aarch64-low.cc (class aarch64_target)
1387 <low_breakpoint_at>: Declare.
1388 (aarch64_breakpoint_at): Turn into...
1389 (aarch64_target::low_breakpoint_at): ...this.
1390 (the_low_target): Remove the op field.
1391 * linux-arm-low.cc (class arm_target)
1392 <low_breakpoint_at>: Declare.
1393 (arm_target::low_breakpoint_at): Define.
1394 (the_low_target): Remove the op field.
1395 * linux-bfin-low.cc (class bfin_target)
1396 <low_breakpoint_at>: Declare.
1397 (bfin_breakpoint_at): Turn into...
1398 (bfin_target::low_breakpoint_at): ...this.
1399 (the_low_target): Remove the op field.
1400 * linux-cris-low.cc (class cris_target)
1401 <low_breakpoint_at>: Declare.
1402 (cris_breakpoint_at): Turn into...
1403 (cris_target::low_breakpoint_at): ...this.
1404 (the_low_target): Remove the op field.
1405 * linux-crisv32-low.cc (class crisv32_target)
1406 <low_breakpoint_at>: Declare.
1407 (crisv32_breakpoint_at): Turn into...
1408 (crisv32_target::low_breakpoint_at): ...this.
1409 (the_low_target): Remove the op field.
1410 * linux-ia64-low.cc (class ia64_target)
1411 <low_breakpoint_at>: Declare.
1412 (ia64_target::low_breakpoint_at): Define.
1413 * linux-m32r-low.cc (class m32r_target)
1414 <low_breakpoint_at>: Declare.
1415 (m32r_breakpoint_at): Turn into...
1416 (m32r_target::low_breakpoint_at): ...this.
1417 (the_low_target): Remove the op field.
1418 * linux-m68k-low.cc (class m68k_target)
1419 <low_breakpoint_at>: Declare.
1420 (m68k_breakpoint_at): Turn into...
1421 (m68k_target::low_breakpoint_at): ...this.
1422 (the_low_target): Remove the op field.
1423 * linux-mips-low.cc (class mips_target)
1424 <low_breakpoint_at>: Declare.
1425 (mips_breakpoint_at): Turn into...
1426 (mips_target::low_breakpoint_at): ...this.
1427 (the_low_target): Remove the op field.
1428 * linux-nios2-low.cc (class nios2_target)
1429 <low_breakpoint_at>: Declare.
1430 (nios2_breakpoint_at): Turn into...
1431 (nios2_target::low_breakpoint_at): ...this.
1432 (the_low_target): Remove the op field.
1433 * linux-ppc-low.cc (class ppc_target)
1434 <low_breakpoint_at>: Declare.
1435 (ppc_breakpoint_at): Turn into...
1436 (ppc_target::low_breakpoint_at): ...this.
1437 (the_low_target): Remove the op field.
1438 * linux-riscv-low.cc (class riscv_target)
1439 <low_breakpoint_at>: Declare.
1440 (riscv_breakpoint_at): Turn into...
1441 (riscv_target::low_breakpoint_at): ...this.
1442 (the_low_target): Remove the op field.
1443 * linux-s390-low.cc (class s390_target)
1444 <low_breakpoint_at>: Declare.
1445 (s390_breakpoint_at): Turn into...
1446 (s390_target::low_breakpoint_at): ...this.
1447 (the_low_target): Remove the op field.
1448 * linux-sh-low.cc (class sh_target)
1449 <low_breakpoint_at>: Declare.
1450 (sh_breakpoint_at): Turn into...
1451 (sh_target::low_breakpoint_at): ...this.
1452 (the_low_target): Remove the op field.
1453 * linux-sparc-low.cc (class sparc_target)
1454 <low_breakpoint_at>: Declare.
1455 (sparc_breakpoint_at): Turn into...
1456 (sparc_target::low_breakpoint_at): ...this.
1457 (the_low_target): Remove the op field.
1458 * linux-tic6x-low.cc (class tic6x_target)
1459 <low_breakpoint_at>: Declare.
1460 (tic6x_breakpoint_at): Turn into...
1461 (tic6x_target::low_breakpoint_at): ...this.
1462 (the_low_target): Remove the op field.
1463 * linux-tile-low.cc (class tile_target)
1464 <low_breakpoint_at>: Declare.
1465 (tile_breakpoint_at): Turn into...
1466 (tile_target::low_breakpoint_at): ...this.
1467 (the_low_target): Remove the op field.
1468 * linux-xtensa-low.cc (class xtensa_target)
1469 <low_breakpoint_at>: Declare.
1470 (xtensa_breakpoint_at): Turn into...
1471 (xtensa_target::low_breakpoint_at): ...this.
1472 (the_low_target): Remove the op field.
1474 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1476 Turn the 'decr_pc_after_break' linux_target_ops field into
1477 a method of linux_process_target.
1479 * linux-low.h (struct linux_target_ops)
1480 <decr_pc_after_break>: Remove.
1481 (class linux_process_target) <low_decr_pc_after_break>: New method
1483 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1484 New method implementation.
1486 Update the users below.
1488 (linux_process_target::save_stop_reason)
1489 (linux_process_target::wait_1)
1490 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1492 (x86_target::low_decr_pc_after_break): New method implementation.
1493 (the_low_target): Remove the field.
1494 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1496 (bfin_target::low_decr_pc_after_break): New method implementation.
1497 (the_low_target): Remove the field.
1498 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1500 (m68k_target::low_decr_pc_after_break): New method implementation.
1501 (the_low_target): Remove the field.
1502 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1504 (s390_target::low_decr_pc_after_break): New method implementation.
1505 (the_low_target): Remove the field.
1506 * linux-aarch64-low.cc (the_low_target): Remove the field.
1507 * linux-arm-low.cc (the_low_target): Remove the field.
1508 * linux-cris-low.cc (the_low_target): Remove the field.
1509 * linux-crisv32-low.cc (the_low_target): Remove the field.
1510 * linux-m32r-low.cc (the_low_target): Remove the field.
1511 * linux-mips-low.cc (the_low_target): Remove the field.
1512 * linux-nios2-low.cc (the_low_target): Remove the field.
1513 * linux-ppc-low.cc (the_low_target): Remove the field.
1514 * linux-riscv-low.cc (the_low_target): Remove the field.
1515 * linux-sh-low.cc (the_low_target): Remove the field.
1516 * linux-sparc-low.cc (the_low_target): Remove the field.
1517 * linux-tic6x-low.cc (the_low_target): Remove the field.
1518 * linux-tile-low.cc (the_low_target): Remove the field.
1519 * linux-xtensa-low.cc (the_low_target): Remove the field.
1521 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1523 Remove the 'supports_software_single_step' linux target op and let
1524 the concrete linux target define it by overriding the op in
1525 process_stratum_target.
1526 Turn the 'get_next_pcs' linux target op into a method of
1527 linux_process_target.
1529 * linux-low.h (struct linux_target_ops): Remove the ops.
1530 (class linux_process_target) <supports_software_single_step>:
1532 <low_get_next_pcs>: Declare.
1533 * linux-low.cc (can_software_single_step): Remove.
1534 (linux_process_target::low_get_next_pcs): Define.
1535 (linux_process_target::supports_software_single_step): Remove.
1537 Update the callers below.
1539 (linux_process_target::handle_extended_wait)
1540 (linux_process_target::wait_1)
1541 (linux_process_target::install_software_single_step_breakpoints)
1542 (linux_process_target::single_step)
1543 (linux_process_target::thread_needs_step_over)
1544 (linux_process_target::proceed_one_lwp)
1545 (linux_process_target::supports_range_stepping)
1547 * linux-x86-low.cc (the_low_target): Remove the op field.
1548 * linux-aarch64-low.cc (the_low_target): Ditto.
1549 * linux-bfin-low.cc (the_low_target): Ditto.
1550 * linux-cris-low.cc (the_low_target): Ditto.
1551 * linux-crisv32-low.cc (the_low_target): Ditto.
1552 * linux-m32r-low.cc (the_low_target): Ditto.
1553 * linux-m68k-low.cc (the_low_target): Ditto.
1554 * linux-mips-low.cc (the_low_target): Ditto.
1555 * linux-nios2-low.cc (the_low_target): Ditto.
1556 * linux-ppc-low.cc (the_low_target): Ditto.
1557 * linux-riscv-low.cc (the_low_target): Ditto.
1558 * linux-s390-low.cc (the_low_target): Ditto.
1559 * linux-sh-low.cc (the_low_target): Ditto.
1560 * linux-sparc-low.cc (the_low_target): Ditto.
1561 * linux-tic6x-low.cc (the_low_target): Ditto.
1562 * linux-tile-low.cc (the_low_target): Ditto.
1563 * linux-xtensa-low.cc (the_low_target): Ditto.
1564 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1565 <supports_software_single_step>: Declare.
1566 (arm_target::supports_software_single_step): Define.
1567 (arm_gdbserver_get_next_pcs): Turn into...
1568 (arm_target::low_get_next_pcs): ...this.
1569 (the_low_target): Remove the op field.
1571 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1573 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1574 the concrete linux target define it by overriding the op
1575 in process_stratum_target.
1577 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1579 * linux-low.h (struct linux_target_ops): Remove the op.
1580 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1581 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1583 (x86_sw_breakpoint_from_kind): Turn into...
1584 (x86_target::sw_breakpoint_from_kind): ...this.
1585 (the_low_target): Remove the op field.
1586 * linux-aarch64-low.cc (class aarch64_target)
1587 <sw_breakpoint_from_kind>: Declare.
1588 (aarch64_sw_breakpoint_from_kind): Turn into...
1589 (aarch64_target::sw_breakpoint_from_kind): ...this.
1590 (the_low_target): Remove the op field.
1591 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1593 (arm_target::sw_breakpoint_from_kind): Define.
1594 (the_low_target): Remove the op field.
1595 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1597 (bfin_sw_breakpoint_from_kind): Turn into...
1598 (bfin_target::sw_breakpoint_from_kind): ...this.
1599 (the_low_target): Remove the op field.
1600 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1602 (cris_sw_breakpoint_from_kind): Turn into...
1603 (cris_target::sw_breakpoint_from_kind): ...this.
1604 (the_low_target): Remove the op field.
1605 * linux-crisv32-low.cc (class crisv32_target)
1606 <sw_breakpoint_from_kind>: Declare.
1607 (cris_sw_breakpoint_from_kind): Turn into...
1608 (crisv32_target::sw_breakpoint_from_kind): ...this.
1609 (the_low_target): Remove the op field.
1610 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1612 (ia64_target::sw_breakpoint_from_kind): Define.
1613 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1615 (m32r_sw_breakpoint_from_kind): Turn into...
1616 (m32r_target::sw_breakpoint_from_kind): ...this.
1617 (the_low_target): Remove the op field.
1618 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1620 (m68k_sw_breakpoint_from_kind): Turn into...
1621 (m68k_target::sw_breakpoint_from_kind): ...this.
1622 (the_low_target): Remove the op field.
1623 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1625 (mips_sw_breakpoint_from_kind): Turn into...
1626 (mips_target::sw_breakpoint_from_kind): ...this.
1627 (the_low_target): Remove the op field.
1628 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1630 (nios2_sw_breakpoint_from_kind): Turn into...
1631 (nios2_target::sw_breakpoint_from_kind): ...this.
1632 (the_low_target): Remove the op field.
1633 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1635 (ppc_sw_breakpoint_from_kind): Turn into...
1636 (ppc_target::sw_breakpoint_from_kind): ...this.
1637 (the_low_target): Remove the op field.
1638 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1640 (riscv_sw_breakpoint_from_kind): Turn into...
1641 (riscv_target::sw_breakpoint_from_kind): ...this.
1642 (the_low_target): Remove the op field.
1643 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1645 (s390_sw_breakpoint_from_kind): Turn into...
1646 (s390_target::sw_breakpoint_from_kind): ...this.
1647 (the_low_target): Remove the op field.
1648 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1650 (sh_sw_breakpoint_from_kind): Turn into...
1651 (sh_target::sw_breakpoint_from_kind): ...this.
1652 (the_low_target): Remove the op field.
1653 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1655 (sparc_sw_breakpoint_from_kind): Turn into...
1656 (sparc_target::sw_breakpoint_from_kind): ...this.
1657 (the_low_target): Remove the op field.
1658 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1660 (tic6x_sw_breakpoint_from_kind): Turn into...
1661 (tic6x_target::sw_breakpoint_from_kind): ...this.
1662 (the_low_target): Remove the op field.
1663 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1665 (tile_sw_breakpoint_from_kind): Turn into...
1666 (tile_target::sw_breakpoint_from_kind): ...this.
1667 (the_low_target): Remove the op field.
1668 * linux-xtensa-low.cc (class xtensa_target)
1669 <sw_breakpoint_from_kind>: Declare.
1670 (xtensa_sw_breakpoint_from_kind): Turn into...
1671 (xtensa_target::sw_breakpoint_from_kind): ...this.
1672 (the_low_target): Remove the op field.
1674 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1676 Remove the 'breakpoint_kind_from_pc' and
1677 'breakpoint_kind_from_current_state' linux target ops, and let the
1678 concrete linux target define them by overriding the ops of
1679 process_stratum_target.
1681 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1683 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1684 * linux-low.h (struct linux_target_ops): Remove ops.
1685 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1686 <breakpoint_kind_from_current_state>: Remove.
1687 * linux-x86-low.cc (the_low_target): Remove the op fields.
1688 * linux-bfin-low.cc (the_low_target): Ditto.
1689 * linux-cris-low.cc (the_low_target): Ditto.
1690 * linux-crisv32-low.cc (the_low_target): Ditto.
1691 * linux-m32r-low.cc (the_low_target): Ditto.
1692 * linux-m68k-low.cc (the_low_target): Ditto.
1693 * linux-mips-low.cc (the_low_target): Ditto.
1694 * linux-nios2-low.cc (the_low_target): Ditto.
1695 * linux-ppc-low.cc (the_low_target): Ditto.
1696 * linux-s390-low.cc (the_low_target): Ditto.
1697 * linux-sh-low.cc (the_low_target): Ditto.
1698 * linux-sparc-low.cc (the_low_target): Ditto.
1699 * linux-tic6x-low.cc (the_low_target): Ditto.
1700 * linux-tile-low.cc (the_low_target): Ditto.
1701 * linux-xtensa-low.cc (the_low_target): Ditto.
1702 * linux-aarch64-low.cc (class aarch64_target)
1703 <breakpoint_kind_from_pc>
1704 <breakpoint_kind_from_current_state>: Declare.
1705 (aarch64_breakpoint_kind_from_pc): Turn into...
1706 (aarch64_target::breakpoint_kind_from_pc): ...this.
1707 (aarch64_breakpoint_kind_from_current_state): Turn into...
1708 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1709 (the_low_target): Remove the op fields.
1710 * linux-arm-low.cc (class arm_target):
1711 <breakpoint_kind_from_pc>
1712 <breakpoint_kind_from_current_state>: Declare.
1713 (arm_target::breakpoint_kind_from_pc): Define.
1714 (arm_target::breakpoint_kind_from_current_state): Define.
1715 (the_low_target): Remove the op fields.
1716 * linux-riscv-low.cc (class riscv_target):
1717 <breakpoint_kind_from_pc>: Declare.
1718 (riscv_breakpoint_kind_from_pc): Turn into...
1719 (riscv_target::breakpoint_kind_from_pc): ...this.
1720 (the_low_target): Remove the op fields.
1722 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1724 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1725 of linux_process_target.
1727 * linux-low.h (struct linux_target_ops): Remove the ops.
1728 (class linux_process_target) <low_supports_breakpoints>
1730 <low_set_pc>: Declare.
1731 * linux-low.cc (supports_breakpoints): Turn into...
1732 (linux_process_target::low_supports_breakpoints): ...this.
1733 (linux_process_target::low_get_pc): Define.
1734 (linux_process_target::low_set_pc): Define.
1736 Update the callers below.
1738 (linux_process_target::get_pc)
1739 (linux_process_target::save_stop_reason)
1740 (linux_process_target::maybe_move_out_of_jump_pad)
1741 (linux_process_target::wait_1)
1742 (linux_process_target::resume_one_lwp_throw)
1743 (linux_process_target::resume)
1744 (linux_process_target::proceed_all_lwps)
1745 (linux_process_target::read_pc)
1746 (linux_process_target::write_pc)
1748 * linux-x86-low.cc (class linux_process_target)
1749 <low_supports_breakpoints>
1751 <low_set_pc>: Declare.
1752 (x86_target::low_supports_breakpoints): Define.
1753 (x86_get_pc): Turn into...
1754 (x86_target::low_get_pc): ...this.
1755 (x86_set_pc): Turn into...
1756 (x86_target::low_set_pc): ...this.
1757 (the_low_target): Remove the op fields.
1758 * linux-arm-low.cc (class arm_target)
1759 <low_supports_breakpoints>
1761 <low_set_pc>: Declare.
1762 (arm_target::low_supports_breakpoints)
1763 (arm_target::low_get_pc)
1764 (arm_target::low_set_pc): Define.
1765 (the_low_target): Remove the op fields.
1766 * linux-bfin-low.cc (class bfin_target)
1767 <low_supports_breakpoints>
1769 <low_set_pc>: Declare.
1770 (bfin_target::low_supports_breakpoints)
1771 (bfin_target::low_get_pc)
1772 (bfin_target::low_set_pc): Define.
1773 (the_low_target): Remove the op fields.
1774 * linux-cris-low.cc (class cris_target)
1775 <low_supports_breakpoints>
1777 <low_set_pc>: Declare.
1778 (cris_target::low_supports_breakpoints)
1779 (cris_target::low_get_pc)
1780 (cris_target::low_set_pc): Define.
1781 (the_low_target): Remove the op fields.
1782 * linux-crisv32-low.cc (class crisv32_target)
1783 <low_supports_breakpoints>
1785 <low_set_pc>: Declare.
1786 (crisv32_target::low_supports_breakpoints)
1787 (crisv32_target::low_get_pc)
1788 (crisv32_target::low_set_pc): Define.
1789 (the_low_target): Remove the op fields.
1790 * linux-m32r-low.cc (class m32r_target)
1791 <low_supports_breakpoints>
1793 <low_set_pc>: Declare.
1794 (m32r_target::low_supports_breakpoints)
1795 (m32r_target::low_get_pc)
1796 (m32r_target::low_set_pc): Define.
1797 (the_low_target): Remove the op fields.
1798 * linux-m68k-low.cc (class m68k_target)
1799 <low_supports_breakpoints>
1801 <low_set_pc>: Declare.
1802 (m68k_target::low_supports_breakpoints)
1803 (m68k_target::low_get_pc)
1804 (m68k_target::low_set_pc): Define.
1805 (the_low_target): Remove the op fields.
1806 * linux-nios2-low.cc (class nios2_target)
1807 <low_supports_breakpoints>
1809 <low_set_pc>: Declare.
1810 (nios2_target::low_supports_breakpoints)
1811 (nios2_target::low_get_pc)
1812 (nios2_target::low_set_pc): Define.
1813 (the_low_target): Remove the op fields.
1814 * linux-sh-low.cc (class sh_target)
1815 <low_supports_breakpoints>
1817 <low_set_pc>: Declare.
1818 (sh_target::low_supports_breakpoints)
1819 (sh_target::low_get_pc)
1820 (sh_target::low_set_pc): Define.
1821 (the_low_target): Remove the op fields.
1822 * linux-xtensa-low.cc (class xtensa_target)
1823 <low_supports_breakpoints>
1825 <low_set_pc>: Declare.
1826 (xtensa_target::low_supports_breakpoints)
1827 (xtensa_target::low_get_pc)
1828 (xtensa_target::low_set_pc): Define.
1829 (the_low_target): Remove the op fields.
1830 * linux-sparc-low.cc (class sparc_target)
1831 <low_supports_breakpoints>
1832 <low_get_pc>: Declare.
1833 (sparc_target::low_supports_breakpoints)
1834 (sparc_target::low_get_pc): Define.
1835 (the_low_target): Remove the op fields.
1836 * linux-tile-low.cc (class tile_target)
1837 <low_supports_breakpoints>
1839 <low_set_pc>: Declare.
1840 (tile_target::low_supports_breakpoints)
1841 (tile_target::low_get_pc)
1842 (tile_target::low_set_pc): Define.
1843 (the_low_target): Remove the op fields.
1844 * linux-aarch64-low.cc (class aarch64_target)
1845 <low_supports_breakpoints>
1847 <low_set_pc>: Declare.
1848 (aarch64_target::low_supports_breakpoints): Define.
1849 (aarch64_get_pc): Turn into...
1850 (aarch64_target::low_get_pc): ...this.
1851 (aarch64_set_pc): Turn into...
1852 (aarch64_target::low_set_pc): ...this.
1853 (the_low_target): Remove the op fields.
1854 * linux-mips-low.cc (class mips_target)
1855 <low_supports_breakpoints>
1857 <low_set_pc>: Declare.
1858 (mips_target::low_supports_breakpoints): Define.
1859 (mips_get_pc): Turn into...
1860 (mips_target::low_get_pc): ...this.
1861 (mips_set_pc): Turn into...
1862 (mips_target::low_set_pc): ...this.
1863 (the_low_target): Remove the op fields.
1864 * linux-ppc-low.cc (class ppc_target)
1865 <low_supports_breakpoints>
1867 <low_set_pc>: Declare.
1868 (ppc_target::low_supports_breakpoints): Define.
1869 (ppc_get_pc): Turn into...
1870 (ppc_target::low_get_pc): ...this.
1871 (ppc_set_pc): Turn into...
1872 (ppc_target::low_set_pc): ...this.
1873 (the_low_target): Remove the op fields.
1874 * linux-riscv-low.cc (class riscv_target)
1875 <low_supports_breakpoints>
1877 <low_set_pc>: Declare.
1878 (riscv_target::low_supports_breakpoints): Define.
1879 (riscv_get_pc): Turn into...
1880 (riscv_target::low_get_pc): ...this.
1881 (riscv_set_pc): Turn into...
1882 (riscv_target::low_set_pc): ...this.
1883 (the_low_target): Remove the op fields.
1884 * linux-s390-low.cc (class s390_target)
1885 <low_supports_breakpoints>
1887 <low_set_pc>: Declare.
1888 (s390_target::low_supports_breakpoints): Define.
1889 (s390_get_pc): Turn into...
1890 (s390_target::low_get_pc): ...this.
1891 (s390_set_pc): Turn into...
1892 (s390_target::low_set_pc): ...this.
1893 (the_low_target): Remove the op fields.
1894 * linux-tic6x-low.cc (class tic6x_target)
1895 <low_supports_breakpoints>
1897 <low_set_pc>: Declare.
1898 (tic6x_target::low_supports_breakpoints): Define.
1899 (tic6x_get_pc): Turn into...
1900 (tic6x_target::low_get_pc): ...this.
1901 (tic6x_set_pc): Turn into...
1902 (tic6x_target::low_set_pc): ...this.
1903 (the_low_target): Remove the op fields.
1905 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1907 Turn some more static methods in linux-low into private methods
1908 of linux_process_target.
1910 * linux-low.cc (get_pc): Turn into...
1911 (linux_process_target::get_pc): ...this.
1912 (save_stop_reason): Turn into...
1913 (linux_process_target::save_stop_reason): ...this.
1914 (thread_still_has_status_pending_p): Turn into...
1915 (linux_process_target::thread_still_has_status_pending): ...this.
1916 (status_pending_p_callback): Turn into...
1917 (linux_process_target::status_pending_p_callback): ...this.
1918 (resume_stopped_resumed_lwps): Turn into...
1919 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1920 (install_software_single_step_breakpoints): Turn into...
1921 (linux_process_target::install_software_single_step_breakpoints):
1923 (single_step): Turn into...
1924 (linux_process_target::single_step): ...this.
1925 (linux_resume_one_lwp_throw): Turn into...
1926 (linux_process_target::resume_one_lwp_throw): ...this.
1927 (linux_resume_one_lwp): Turn into...
1928 (linux_process_target::resume_one_lwp): ...this.
1929 (resume_status_pending_p): Turn into...
1930 (linux_process_target::resume_status_pending): ...this.
1931 (need_step_over_p): Turn into...
1932 (linux_process_target::thread_needs_step_over): ...this.
1933 (linux_resume_one_thread): Turn into...
1934 (linux_process_target::resume_one_thread): ...this.
1935 (proceed_one_lwp): Turn into...
1936 (linux_process_target::proceed_one_lwp): ...this.
1937 (unsuspend_and_proceed_one_lwp): Turn into...
1938 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1940 Update the calls/references to the above functions below.
1942 (linux_process_target::handle_extended_wait)
1943 (linux_process_target::filter_event)
1944 (linux_process_target::wait_for_event_filtered)
1945 (linux_process_target::wait_1)
1946 (linux_process_target::move_out_of_jump_pad)
1947 (linux_process_target::start_step_over)
1948 (linux_process_target::resume)
1949 (linux_process_target::proceed_all_lwps)
1950 (regsets_store_inferior_registers)
1951 (linux_process_target::store_register)
1953 * linux-low.h (class linux_process_target)
1956 <thread_still_has_status_pending>
1957 <status_pending_p_callback>
1958 <resume_stopped_resumed_lwps>
1959 <install_software_single_step_breakpoints>
1961 <resume_one_lwp_throw>
1963 <resume_status_pending>
1964 <thread_needs_step_over>
1967 <unsuspend_and_proceed_one_lwp>: Declare.
1969 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1971 Turn the 'fetch_register' linux target op into a method of
1972 linux_process_target.
1974 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
1975 (class linux_process_target) <low_fetch_register>: Declare.
1976 * linux-x86-low.cc (the_low_target)
1977 * linux-aarch64-low.cc (the_low_target)
1978 * linux-arm-low.cc (the_low_target)
1979 * linux-bfin-low.cc (the_low_target)
1980 * linux-cris-low.cc (the_low_target)
1981 * linux-crisv32-low.cc (the_low_target)
1982 * linux-m32r-low.cc (the_low_target)
1983 * linux-m68k-low.cc (the_low_target)
1984 * linux-nios2-low.cc (the_low_target)
1985 * linux-ppc-low.cc (the_low_target)
1986 * linux-s390-low.cc (the_low_target)
1987 * linux-sh-low.cc (the_low_target)
1988 * linux-sparc-low.cc (the_low_target)
1989 * linux-tic6x-low.cc (the_low_target)
1990 * linux-tile-low.cc (the_low_target)
1991 * linux-xtensa-low.cc (the_low_target): Remove the op field.
1992 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
1994 (ia64_fetch_register): Turn into...
1995 (ia64_target::low_fetch_register): ...this.
1996 (the_low_target): Remove the op field.
1997 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
1999 (mips_fetch_register): Turn into...
2000 (mips_target::low_fetch_register): ...this.
2001 (the_low_target): Remove the op field.
2002 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2004 (riscv_fetch_register): Turn into...
2005 (riscv_target::low_fetch_register): ...this.
2006 (the_low_target): Remove the op field.
2008 Update the callers below.
2010 * linux-low.cc (linux_process_target::fetch_registers)
2011 (linux_process_target::low_fetch_register)
2013 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2015 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2016 linux target ops into methods of linux_process_target.
2018 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2019 (class linux_process_target) <fetch_register>
2021 <usr_fetch_inferior_registers>
2022 <usr_store_inferior_registers>
2023 <low_cannot_fetch_register>
2024 <low_cannot_fetch_register> Declare.
2025 * linux-low.cc (fetch_register): Turn into...
2026 (linux_process_target::fetch_register): ...this.
2027 (store_register): Turn into ...
2028 (linux_process_target::store_register): ...this.
2029 (usr_fetch_inferior_registers): Turn into...
2030 (linux_process_target::usr_fetch_inferior_registers): ...this.
2031 (usr_store_inferior_registers): Turn into...
2032 (linux_process_target::usr_store_inferior_registers): ...this.
2033 * linux-x86-low.cc (class x86_target)
2034 <low_cannot_fetch_register>
2035 <low_cannot_store_register>: Declare.
2036 (x86_cannot_store_register): Turn into...
2037 (x86_target::low_cannot_store_register): ...this.
2038 (x86_cannot_fetch_register): Turn into...
2039 (x86_target::low_cannot_fetch_register): ...this.
2040 (the_low_target): Remove the target op fields.
2041 * linux-aarch64-low.cc (class aarch64_target)
2042 <low_cannot_fetch_register>
2043 <low_cannot_store_register>: Declare.
2044 (aarch64_target::low_cannot_fetch_register)
2045 (aarch64_target::low_cannot_store_register): Define.
2046 (the_low_target): Remove the op fields.
2047 * linux-arm-low.cc (class arm_target)
2048 <low_cannot_fetch_register>
2049 <low_cannot_store_register>: Declare.
2050 (arm_cannot_fetch_register): Turn into...
2051 (arm_target::low_cannot_fetch_register): ...this.
2052 (arm_cannot_store_register): Turn into...
2053 (arm_target::low_cannot_store_register): ...this.
2054 (the_low_target): Remove the op fields.
2055 * linux-bfin-low.cc (class bfin_target)
2056 <low_cannot_fetch_register>
2057 <low_cannot_store_register>: Declare.
2058 (bfin_cannot_fetch_register): Turn into...
2059 (bfin_target::low_cannot_fetch_register): ...this.
2060 (bfin_cannot_store_register): Turn into...
2061 (bfin_target::low_cannot_store_register): ...this.
2062 (the_low_target): Remove the op fields.
2063 * linux-cris-low.cc (class cris_target)
2064 <low_cannot_fetch_register>
2065 <low_cannot_store_register>: Declare.
2066 (cris_cannot_fetch_register): Turn into...
2067 (cris_target::low_cannot_fetch_register): ...this.
2068 (cris_cannot_store_register): Turn into...
2069 (cris_target::low_cannot_store_register): ...this.
2070 (the_low_target): Remove the op fields.
2071 * linux-crisv32-low.cc (class crisv32_target)
2072 <low_cannot_fetch_register>
2073 <low_cannot_store_register>: Declare.
2074 (crisv32_target::low_cannot_fetch_register)
2075 (crisv32_target::low_cannot_store_register): Define.
2076 (the_low_target): Remove the op fields.
2077 * linux-ia64-low.cc (class ia64_target)
2078 <low_cannot_fetch_register>
2079 <low_cannot_store_register>: Declare.
2080 (ia64_cannot_fetch_register): Turn into...
2081 (ia64_target::low_cannot_fetch_register): ...this.
2082 (ia64_cannot_store_register): Turn into...
2083 (ia64_target::low_cannot_store_register): ...this.
2084 (the_low_target): Remove the op fields.
2085 * linux-m32r-low.cc (class m32r_target)
2086 <low_cannot_fetch_register>
2087 <low_cannot_store_register>: Declare.
2088 (m32r_cannot_fetch_register): Turn into...
2089 (m32r_target::low_cannot_fetch_register): ...this.
2090 (m32r_cannot_store_register): Turn into...
2091 (m32r_target::low_cannot_store_register): ...this.
2092 (the_low_target): Remove the op fields.
2093 * linux-m68k-low.cc (class m68k_target)
2094 <low_cannot_fetch_register>
2095 <low_cannot_store_register>: Declare.
2096 (m68k_cannot_fetch_register): Turn into...
2097 (m68k_target::low_cannot_fetch_register): ...this.
2098 (m68k_cannot_store_register): Turn into...
2099 (m68k_target::low_cannot_store_register): ...this.
2100 (the_low_target): Remove the op fields.
2101 * linux-mips-low.cc (class mips_target)
2102 <low_cannot_fetch_register>
2103 <low_cannot_store_register>: Declare.
2104 (mips_cannot_fetch_register): Turn into...
2105 (mips_target::low_cannot_fetch_register): ...this.
2106 (mips_cannot_store_register): Turn into...
2107 (mips_target::low_cannot_store_register): ...this.
2108 (get_usrregs_info): Inline at the call sites in
2109 low_cannot_fetch_register and low_cannot_store_register,
2111 (the_low_target): Remove the op fields.
2112 * linux-nios2-low.cc (class nios2_target)
2113 <low_cannot_fetch_register>
2114 <low_cannot_store_register>: Declare.
2115 (nios2_cannot_fetch_register): Turn into...
2116 (nios2_target::low_cannot_fetch_register): ...this.
2117 (nios2_cannot_store_register): Turn into...
2118 (nios2_target::low_cannot_store_register): ...this.
2119 (the_low_target): Remove the op fields.
2120 * linux-ppc-low.cc (class ppc_target)
2121 <low_cannot_fetch_register>
2122 <low_cannot_store_register>: Declare.
2123 (ppc_cannot_fetch_register): Turn into...
2124 (ppc_target::low_cannot_fetch_register): ...this.
2125 (ppc_cannot_store_register): Turn into...
2126 (ppc_target::low_cannot_store_register): ...this.
2127 (the_low_target): Remove the op fields.
2128 * linux-riscv-low.cc (class riscv_target)
2129 <low_cannot_fetch_register>
2130 <low_cannot_store_register>: Declare.
2131 (riscv_target::low_cannot_fetch_register)
2132 (riscv_target::low_cannot_store_register): Define.
2133 (the_low_target): Remove the op fields.
2134 * linux-s390-low.cc (class s390_target)
2135 <low_cannot_fetch_register>
2136 <low_cannot_store_register>: Declare.
2137 (s390_cannot_fetch_register): Turn into...
2138 (s390_target::low_cannot_fetch_register): ...this.
2139 (s390_cannot_store_register): Turn into...
2140 (s390_target::low_cannot_store_register): ...this.
2141 (the_low_target): Remove the op fields.
2142 * linux-sh-low.cc (class sh_target)
2143 <low_cannot_fetch_register>
2144 <low_cannot_store_register>: Declare.
2145 (sh_cannot_fetch_register): Turn into...
2146 (sh_target::low_cannot_fetch_register): ...this.
2147 (sh_cannot_store_register): Turn into...
2148 (sh_target::low_cannot_store_register): ...this.
2149 (the_low_target): Remove the op fields.
2150 * linux-sparc-low.cc (class sparc_target)
2151 <low_cannot_fetch_register>
2152 <low_cannot_store_register>: Declare.
2153 (sparc_cannot_fetch_register): Turn into...
2154 (sparc_target::low_cannot_fetch_register): ...this.
2155 (sparc_cannot_store_register): Turn into...
2156 (sparc_target::low_cannot_store_register): ...this.
2157 (the_low_target): Remove the op fields.
2158 * linux-tic6x-low.cc (class tic6x_target)
2159 <low_cannot_fetch_register>
2160 <low_cannot_store_register>: Declare.
2161 (tic6x_cannot_fetch_register): Turn into...
2162 (tic6x_target::low_cannot_fetch_register): ...this.
2163 (tic6x_cannot_store_register): Turn into...
2164 (tic6x_target::low_cannot_store_register): ...this.
2165 (the_low_target): Remove the op fields.
2166 * linux-tile-low.cc (class tile_target)
2167 <low_cannot_fetch_register>
2168 <low_cannot_store_register>: Declare.
2169 (tile_cannot_fetch_register): Turn into...
2170 (tile_target::low_cannot_fetch_register): ...this.
2171 (tile_cannot_store_register): Turn into...
2172 (tile_target::low_cannot_store_register): ...this.
2173 (the_low_target): Remove the op fields.
2174 * linux-xtensa-low.cc (class xtensa_target)
2175 <low_cannot_fetch_register>
2176 <low_cannot_store_register>: Declare.
2177 (xtensa_target::low_cannot_fetch_register)
2178 (xtensa_target::low_cannot_store_register): Define.
2179 (the_low_target): Remove the op fields.
2181 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2183 Turn the 'regs_info' linux target op into a method of
2184 linux_process_target.
2186 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2187 (class linux_process_target) <get_regs_info>: Define.
2189 Update the callers below.
2191 * linux-low.cc (linux_process_target::fetch_registers)
2192 (linux_process_target::store_registers)
2193 * proc-service.cc (gregset_info)
2195 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2196 (x86_linux_regs_info): Turn into ...
2197 (x86_target::get_regs_info): ...this.
2198 (the_low_target): Remove the op field.
2199 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2201 (aarch64_regs_info): Turn into ...
2202 (aarch64_target::get_regs_info): ...this.
2203 (the_low_target): Remove the op field.
2204 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2205 (arm_regs_info): Turn into ...
2206 (arm_target::get_regs_info): ...this.
2207 (the_low_target): Remove the op field.
2208 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2209 (bfin_regs_info): Turn into ...
2210 (bfin_target::get_regs_info): ...this.
2211 (the_low_target): Remove the op field.
2212 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2213 (cris_regs_info): Turn into ...
2214 (cris_target::get_regs_info): ...this.
2215 (the_low_target): Remove the op field.
2216 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2218 (crisv32_regs_info): Turn into ...
2219 (crisv32_target::get_regs_info): ...this.
2220 (the_low_target): Remove the op field.
2221 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2222 (ia64_regs_info): Turn into ...
2223 (ia64_target::get_regs_info): ...this.
2224 (the_low_target): Remove the op field.
2225 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2226 (m32r_regs_info): Turn into ...
2227 (m32r_target::get_regs_info): ...this.
2228 (the_low_target): Remove the op field.
2229 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2230 (m68k_regs_info): Turn into ...
2231 (m68k_target::get_regs_info): ...this.
2232 (the_low_target): Remove the op field.
2233 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2234 (mips_regs_info): Turn into ...
2235 (mips_target::get_regs_info): ...this.
2236 (the_low_target): Remove the op field.
2237 (get_usrregs_info): Update the call to the op.
2238 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2239 (nios2_regs_info): Turn into ...
2240 (nios2_target::get_regs_info): ...this.
2241 (the_low_target): Remove the op field.
2242 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2243 (ppc_regs_info): Turn into ...
2244 (ppc_target::get_regs_info): ...this.
2245 (the_low_target): Remove the op field.
2246 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2247 (riscv_regs_info): Turn into ...
2248 (riscv_target::get_regs_info): ...this.
2249 (the_low_target): Remove the op field.
2250 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2251 (s390_regs_info): Turn into ...
2252 (s390_target::get_regs_info): ...this.
2253 (the_low_target): Remove the op field.
2254 (s390_collect_ptrace_register)
2255 (s390_supply_ptrace_register)
2256 (s390_fill_gregset): Update the call to the op.
2257 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2258 (sh_regs_info): Turn into ...
2259 (sh_target::get_regs_info): ...this.
2260 (the_low_target): Remove the op field.
2261 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2262 (sparc_regs_info): Turn into ...
2263 (sparc_target::get_regs_info): ...this.
2264 (the_low_target): Remove the op field.
2265 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2266 (tic6x_regs_info): Turn into ...
2267 (tic6x_target::get_regs_info): ...this.
2268 (the_low_target): Remove the op field.
2269 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2270 (tile_regs_info): Turn into ...
2271 (tile_target::get_regs_info): ...this.
2272 (the_low_target): Remove the op field.
2273 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2275 (xtensa_regs_info): Turn into ...
2276 (xtensa_target::get_regs_info): ...this.
2277 (the_low_target): Remove the op field.
2279 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2281 Turn the 'arch_setup' linux target op into a method of
2282 linux_process_target.
2284 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2285 (class linux_process_target) <arch_setup_thread>
2286 <low_arch_setup>: New declarations.
2287 * linux-low.cc (linux_arch_setup): Delete.
2288 (linux_arch_setup_thread): Turn into...
2289 (linux_process_target::arch_setup_thread): ... this.
2291 Update the callers below.
2293 (linux_process_target::handle_extended_wait)
2294 (linux_process_target::post_create_inferior)
2295 (linux_process_target::filter_event)
2297 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2299 (x86_linux_update_xmltarget): Turn into...
2300 (x86_target::update_xmltarget): ...this.
2301 (x86_linux_process_qsupported): Update the call to
2302 x86_linux_update_xmltarget.
2303 (x86_arch_setup): Turn into ...
2304 (x86_target::low_arch_setup): ...this.
2305 (the_low_target): Remove the op field.
2306 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2308 (aarch64_arch_setup): Turn into ...
2309 (aarch64_target::low_arch_setup): ...this.
2310 (the_low_target): Remove the op field.
2311 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2313 (arm_arch_setup): Turn into ...
2314 (arm_target::low_arch_setup): ...this.
2315 (the_low_target): Remove the op field.
2316 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2318 (bfin_arch_setup): Turn into ...
2319 (bfin_target::low_arch_setup): ...this.
2320 (the_low_target): Remove the op field.
2321 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2323 (cris_arch_setup): Turn into ...
2324 (cris_target::low_arch_setup): ...this.
2325 (the_low_target): Remove the op field.
2326 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2328 (crisv32_arch_setup): Turn into ...
2329 (crisv32_target::low_arch_setup): ...this.
2330 (the_low_target): Remove the op field.
2331 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2333 (ia64_arch_setup): Turn into ...
2334 (ia64_target::low_arch_setup): ...this.
2335 (the_low_target): Remove the op field.
2336 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2338 (m32r_arch_setup): Turn into ...
2339 (m32r_target::low_arch_setup): ...this.
2340 (the_low_target): Remove the op field.
2341 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2343 (m68k_arch_setup): Turn into ...
2344 (m68k_target::low_arch_setup): ...this.
2345 (the_low_target): Remove the op field.
2346 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2348 (mips_arch_setup): Turn into ...
2349 (mips_target::low_arch_setup): ...this.
2350 (the_low_target): Remove the op field.
2351 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2353 (nios2_arch_setup): Turn into ...
2354 (nios2_target::low_arch_setup): ...this.
2355 (the_low_target): Remove the op field.
2356 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2358 (ppc_arch_setup): Turn into ...
2359 (ppc_target::low_arch_setup): ...this.
2360 (the_low_target): Remove the op field.
2361 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2363 (riscv_arch_setup): Turn into ...
2364 (riscv_target::low_arch_setup): ...this.
2365 (the_low_target): Remove the op field.
2366 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2368 (s390_arch_setup): Turn into ...
2369 (s390_target::low_arch_setup): ...this.
2370 (the_low_target): Remove the op field.
2371 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2373 (sh_arch_setup): Turn into ...
2374 (sh_target::low_arch_setup): ...this.
2375 (the_low_target): Remove the op field.
2376 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2378 (sparc_arch_setup): Turn into ...
2379 (sparc_target::low_arch_setup): ...this.
2380 (the_low_target): Remove the op field.
2381 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2383 (tic6x_arch_setup): Turn into ...
2384 (tic6x_target::low_arch_setup): ...this.
2385 (the_low_target): Remove the op field.
2386 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2388 (tile_arch_setup): Turn into ...
2389 (tile_target::low_arch_setup): ...this.
2390 (the_low_target): Remove the op field.
2391 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2393 (xtensa_arch_setup): Turn into ...
2394 (xtensa_target::low_arch_setup): ...this.
2395 (the_low_target): Remove the op field.
2397 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2399 * linux-low.h (the_linux_target): New extern declaration.
2400 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2402 (the_linux_target): Remove.
2403 * linux-x86-low.cc (class x86_target): New class.
2404 (the_x86_target): New static object.
2405 (the_linux_target): Define as pointer to the_x86_target.
2406 * linux-aarch64-low.cc (class aarch64_target): New class.
2407 (the_aarch64_target): New static object.
2408 (the_linux_target): Define as pointer to the_aarch64_target.
2409 * linux-arm-low.cc (class arm_target): New class.
2410 (the_arm_target): New static object.
2411 (the_linux_target): Define as pointer to the_arm_target.
2412 * linux-bfin-low.cc (class bfin_target): New class.
2413 (the_bfin_target): New static object.
2414 (the_linux_target): Define as pointer to the_bfin_target.
2415 * linux-cris-low.cc (class cris_target): New class.
2416 (the_cris_target): New static object.
2417 (the_linux_target): Define as pointer to the_cris_target.
2418 * linux-crisv32-low.cc (class crisv32_target): New class.
2419 (the_crisv32_target): New static object.
2420 (the_linux_target): Define as pointer to the_crisv32_target.
2421 * linux-ia64-low.cc (class ia64_target): New class.
2422 (the_ia64_target): New static object.
2423 (the_linux_target): Define as pointer to the_ia64_target.
2424 * linux-m32r-low.cc (class m32r_target): New class.
2425 (the_m32r_target): New static object.
2426 (the_linux_target): Define as pointer to the_m32r_target.
2427 * linux-m68k-low.cc (class m68k_target): New class.
2428 (the_m68k_target): New static object.
2429 (the_linux_target): Define as pointer to the_m68k_target.
2430 * linux-mips-low.cc (class mips_target): New class.
2431 (the_mips_target): New static object.
2432 (the_linux_target): Define as pointer to the_mips_target.
2433 * linux-nios2-low.cc (class nios2_target): New class.
2434 (the_nios2_target): New static object.
2435 (the_linux_target): Define as pointer to the_nios2_target.
2436 * linux-ppc-low.cc (class ppc_target): New class.
2437 (the_ppc_target): New static object.
2438 (the_linux_target): Define as pointer to the_ppc_target.
2439 * linux-riscv-low.cc (class riscv_target): New class.
2440 (the_riscv_target): New static object.
2441 (the_linux_target): Define as pointer to the_riscv_target.
2442 * linux-s390-low.cc (class s390_target): New class.
2443 (the_s390_target): New static object.
2444 (the_linux_target): Define as pointer to the_s390_target.
2445 * linux-sh-low.cc (class sh_target): New class.
2446 (the_sh_target): New static object.
2447 (the_linux_target): Define as pointer to the_sh_target.
2448 * linux-sparc-low.cc (class sparc_target): New class.
2449 (the_sparc_target): New static object.
2450 (the_linux_target): Define as pointer to the_sparc_target.
2451 * linux-tic6x-low.cc (class tic6x_target): New class.
2452 (the_tic6x_target): New static object.
2453 (the_linux_target): Define as pointer to the_tic6x_target.
2454 * linux-tile-low.cc (class tile_target): New class.
2455 (the_tile_target): New static object.
2456 (the_linux_target): Define as pointer to the_tile_target.
2457 * linux-xtensa-low.cc (class xtensa_target): New class.
2458 (the_xtensa_target): New static object.
2459 (the_linux_target): Define as pointer to the_xtensa_target.
2461 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2463 Turn some static functions in linux-low.cc into private methods of
2464 linux_process_target.
2466 * linux-low.cc (handle_extended_wait): Turn into ...
2467 (linux_process_target::handle_extended_wait): ...this. Call
2468 'mourn' on 'this' object instead of 'the_target'.
2469 (maybe_move_out_of_jump_pad): Turn into...
2470 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2471 (linux_low_filter_event): Turn into...
2472 (linux_process_target::filter_event): ...this.
2473 (linux_wait_for_event_filtered): Turn into...
2474 (linux_process_target::wait_for_event_filtered): ...this.
2475 (linux_wait_for_event): Turn into...
2476 (linux_process_target::wait_for_event): ...this.
2477 (linux_wait_1): Turn into...
2478 (linux_process_target::wait_1): ...this.
2479 (wait_for_sigstop): Turn into...
2480 (linux_process_target::wait_for_sigstop): ...this.
2481 (move_out_of_jump_pad_callback): Turn into...
2482 (linux_process_target::move_out_of_jump_pad): ...this.
2483 (stop_all_lwps): Turn into...
2484 (linux_process_target::stop_all_lwps): ...this.
2485 (start_step_over): Turn into...
2486 (linux_process_target::start_step_over): ...this.
2487 (complete_ongoing_step_over): Turn into...
2488 (linux_process_target::complete_ongoing_step_over): ...this.
2489 (proceed_all_lwps): Turn into...
2490 (linux_process_target::proceed_all_lwps): ...this.
2491 (unstop_all_lwps): Turn into...
2492 (linux_process_target::unstop_all_lwps): ...this.
2494 * linux-low.h (class linux_process_target)
2495 <handle_extended_wait>
2496 <maybe_move_out_of_jump_pad>
2498 <wait_for_event_filtered>
2502 <move_out_of_jump_pad>
2505 <complete_ongoing_step_over>
2507 <unstop_all_lwps>: Declare.
2509 Update the callers below.
2511 * linux-low.cc (linux_process_target::attach): Update.
2512 (linux_process_target::stabilize_threads): Ditto.
2513 (linux_process_target::wait): Ditto.
2515 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2517 * linux-low.h (struct linux_target_ops): Update the comment for
2518 'cannot_store_register' to return 0 or 1.
2519 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2522 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2524 * config.in: Re-generate.
2525 * configure: Re-generate.
2527 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2529 * regcache.cc (find_register_by_number): Update.
2530 * tdesc.cc (init_target_desc): Likewise.
2531 * tdesc.h (target_desc::reg_defs): Likewise.
2533 2020-03-12 Tom Tromey <tom@tromey.com>
2535 * configure: Rebuild.
2536 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2537 (WIN32APILIBS): New subst.
2538 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2540 (gdbsupport/%.o): Remove target.
2541 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2542 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2543 (WIN32APILIBS): New variable.
2544 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2545 (gdbreplay$(EXEEXT)): Likewise.
2547 2020-03-12 Tom Tromey <tom@tromey.com>
2549 * config.in, configure: Rebuild.
2550 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2551 * acinclude.m4: Include gettext-sister.m4.
2552 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2554 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2555 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2557 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2559 * acinclude.m4: Update path to selftest.m4.
2561 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2563 * configure.ac: Don't source bfd/development.sh, move
2564 GDB_AC_COMMON higher.
2565 * configure: Re-generate.
2567 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2569 * configure: Re-generate.
2571 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2573 * configure: Re-generate.
2575 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2577 * .dir-locals.el: New file.
2579 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2581 * .gitattributes: New file.
2583 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2585 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2586 reply into an S reply.
2587 * server.cc (disable_packet_T): New global.
2588 (captured_main): Set new global when appropriate.
2589 * server.h (disable_packet_T): Declare.
2591 2020-02-21 Tom Tromey <tom@tromey.com>
2593 * Makefile.in (mostlyclean): New target.
2595 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2597 * target.h (struct process_stratum_target): Remove.
2598 (class process_target): Rename to ...
2599 (class process_stratum_target): ... this.
2600 * linux-low.h (class linux_process_target): Derive from
2601 'process_stratum_target'.
2602 * linux-low.cc (linux_target_ops): Remove.
2603 (initialize_low): Set the_target to the singleton instance of
2604 linux_process_target.
2605 * lynx-low.h (class lynx_process_target): Derive from
2606 'process_stratum_target'.
2607 * lynx-low.cc (lynx_target_ops): Remove.
2608 (initialize_low): Set the_target to the singleton instance of
2609 lynx_process_target.
2610 * nto-low.h (class nto_process_target): Derive from
2611 'process_stratum_target'.
2612 * nto-low.cc (nto_target_ops): Remove.
2613 (initialize_low): Set the_target to the singleton instance of
2615 * win32-low.h (class win32_process_target): Derive from
2616 'process_stratum_target'.
2617 * win32-low.cc (win32_target_ops): Remove.
2618 (initialize_low): Set the_target to the singleton instance of
2619 win32_process_target.
2621 Replace 'the_target->pt' with 'the_target' in the uses below.
2623 * hostio.cc (hostio_error)
2628 * linux-aarch32-low.cc (arm_breakpoint_at)
2629 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2630 * linux-arm-low.cc (arm_sigreturn_next_pc)
2632 (arm_get_syscall_trapinfo)
2633 * linux-cris-low.cc (cris_breakpoint_at)
2634 * linux-crisv32-low.cc (cris_breakpoint_at)
2635 * linux-low.cc (handle_extended_wait)
2638 (linux_process_target::breakpoint_kind_from_pc)
2640 * linux-m32r-low.cc (m32r_breakpoint_at)
2641 * linux-mips-low.cc (mips_breakpoint_at)
2642 * linux-nios2-low.cc (nios2_breakpoint_at)
2643 * linux-ppc-low.cc (ppc_breakpoint_at)
2644 * linux-s390-low.cc (s390_get_hwcap)
2645 * linux-sh-low.cc (sh_breakpoint_at)
2646 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2647 (sparc_store_gregset_from_stack)
2648 (sparc_breakpoint_at)
2649 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2650 * linux-tile-low.cc (tile_breakpoint_at)
2651 * linux-x86-low.cc (x86_breakpoint_at)
2652 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2653 * mem-break.cc (bp_size)
2655 (insert_memory_breakpoint)
2656 (set_raw_breakpoint_at)
2657 (delete_raw_breakpoint)
2659 (uninsert_raw_breakpoint)
2660 (reinsert_raw_breakpoint)
2661 (validate_inserted_breakpoint)
2662 * regcache.cc (regcache_read_pc)
2664 * remote-utils.cc (putpkt_binary_1)
2667 (prepare_resume_reply)
2668 * server.cc (handle_general_set)
2671 (handle_qxfer_exec_file)
2672 (handle_qxfer_libraries_svr4)
2673 (handle_qxfer_osdata)
2674 (handle_qxfer_siginfo)
2675 (handle_qxfer_fdpic)
2679 (queue_stop_reply_callback)
2681 * target.cc (prepare_to_access_memory)
2682 (done_accessing_memory)
2683 (read_inferior_memory)
2684 (target_write_memory)
2685 (target_stop_and_wait)
2687 (target_mourn_inferior)
2688 (target_continue_no_signal)
2690 (target_supports_multi_process)
2693 (target_create_inferior)
2694 (target_post_create_inferior)
2696 (target_supports_fork_events)
2697 (target_supports_vfork_events)
2698 (target_supports_exec_events)
2699 (target_handle_new_gdb_connection)
2702 (fetch_inferior_registers)
2703 (store_inferior_registers)
2705 (target_supports_non_stop)
2707 (target_process_qsupported)
2708 (target_supports_catch_syscall)
2709 (target_get_ipa_tdesc_idx)
2710 (target_supports_tracepoints)
2711 (target_supports_fast_tracepoints)
2712 (target_get_min_fast_tracepoint_insn_len)
2713 (target_thread_stopped)
2715 (target_unpause_all)
2716 (target_stabilize_threads)
2717 (target_install_fast_tracepoint_jump_pad)
2719 (target_supports_disable_randomization)
2720 (target_supports_agent)
2721 (target_enable_btrace)
2722 (target_disable_btrace)
2723 (target_read_btrace)
2724 (target_read_btrace_conf)
2725 (target_supports_range_stepping)
2726 (target_supports_stopped_by_sw_breakpoint)
2727 (target_stopped_by_sw_breakpoint)
2728 (target_supports_stopped_by_hw_breakpoint)
2729 (target_supports_hardware_single_step)
2730 (target_stopped_by_hw_breakpoint)
2731 (target_breakpoint_kind_from_pc)
2732 (target_breakpoint_kind_from_current_state)
2733 (target_supports_software_single_step)
2734 (target_core_of_thread)
2735 (target_thread_name)
2736 (target_thread_handle)
2737 * win32-low.cc (do_initial_child_stuff)
2739 Rename target op default definitions listed below.
2741 * target.cc (process_target::post_create_inferior): Rename as ...
2742 (process_stratum_target::post_create_inferior): ... this.
2743 (process_target::prepare_to_access_memory): Rename as ...
2744 (process_stratum_target::prepare_to_access_memory): ... this.
2745 (process_target::done_accessing_memory): Rename as ...
2746 (process_stratum_target::done_accessing_memory): ... this.
2747 (process_target::look_up_symbols): Rename as ...
2748 (process_stratum_target::look_up_symbols): ... this.
2749 (process_target::supports_read_auxv): Rename as ...
2750 (process_stratum_target::supports_read_auxv): ... this.
2751 (process_target::read_auxv): Rename as ...
2752 (process_stratum_target::read_auxv): ... this.
2753 (process_target::supports_z_point_type): Rename as ...
2754 (process_stratum_target::supports_z_point_type): ... this.
2755 (process_target::insert_point): Rename as ...
2756 (process_stratum_target::insert_point): ... this.
2757 (process_target::remove_point): Rename as ...
2758 (process_stratum_target::remove_point): ... this.
2759 (process_target::stopped_by_sw_breakpoint): Rename as ...
2760 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2761 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2762 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2763 (process_target::stopped_by_hw_breakpoint): Rename as ...
2764 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2765 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2766 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2767 (process_target::supports_hardware_single_step): Rename as ...
2768 (process_stratum_target::supports_hardware_single_step): ... this.
2769 (process_target::stopped_by_watchpoint): Rename as ...
2770 (process_stratum_target::stopped_by_watchpoint): ... this.
2771 (process_target::stopped_data_address): Rename as ...
2772 (process_stratum_target::stopped_data_address): ... this.
2773 (process_target::supports_read_offsets): Rename as ...
2774 (process_stratum_target::supports_read_offsets): ... this.
2775 (process_target::read_offsets): Rename as ...
2776 (process_stratum_target::read_offsets): ... this.
2777 (process_target::supports_get_tls_address): Rename as ...
2778 (process_stratum_target::supports_get_tls_address): ... this.
2779 (process_target::get_tls_address): Rename as ...
2780 (process_stratum_target::get_tls_address): ... this.
2781 (process_target::hostio_last_error): Rename as ...
2782 (process_stratum_target::hostio_last_error): ... this.
2783 (process_target::supports_qxfer_osdata): Rename as ...
2784 (process_stratum_target::supports_qxfer_osdata): ... this.
2785 (process_target::qxfer_osdata): Rename as ...
2786 (process_stratum_target::qxfer_osdata): ... this.
2787 (process_target::supports_qxfer_siginfo): Rename as ...
2788 (process_stratum_target::supports_qxfer_siginfo): ... this.
2789 (process_target::qxfer_siginfo): Rename as ...
2790 (process_stratum_target::qxfer_siginfo): ... this.
2791 (process_target::supports_non_stop): Rename as ...
2792 (process_stratum_target::supports_non_stop): ... this.
2793 (process_target::async): Rename as ...
2794 (process_stratum_target::async): ... this.
2795 (process_target::start_non_stop): Rename as ...
2796 (process_stratum_target::start_non_stop): ... this.
2797 (process_target::supports_multi_process): Rename as ...
2798 (process_stratum_target::supports_multi_process): ... this.
2799 (process_target::supports_fork_events): Rename as ...
2800 (process_stratum_target::supports_fork_events): ... this.
2801 (process_target::supports_vfork_events): Rename as ...
2802 (process_stratum_target::supports_vfork_events): ... this.
2803 (process_target::supports_exec_events): Rename as ...
2804 (process_stratum_target::supports_exec_events): ... this.
2805 (process_target::handle_new_gdb_connection): Rename as ...
2806 (process_stratum_target::handle_new_gdb_connection): ... this.
2807 (process_target::handle_monitor_command): Rename as ...
2808 (process_stratum_target::handle_monitor_command): ... this.
2809 (process_target::core_of_thread): Rename as ...
2810 (process_stratum_target::core_of_thread): ... this.
2811 (process_target::supports_read_loadmap): Rename as ...
2812 (process_stratum_target::supports_read_loadmap): ... this.
2813 (process_target::read_loadmap): Rename as ...
2814 (process_stratum_target::read_loadmap): ... this.
2815 (process_target::process_qsupported): Rename as ...
2816 (process_stratum_target::process_qsupported): ... this.
2817 (process_target::supports_tracepoints): Rename as ...
2818 (process_stratum_target::supports_tracepoints): ... this.
2819 (process_target::read_pc): Rename as ...
2820 (process_stratum_target::read_pc): ... this.
2821 (process_target::write_pc): Rename as ...
2822 (process_stratum_target::write_pc): ... this.
2823 (process_target::supports_thread_stopped): Rename as ...
2824 (process_stratum_target::supports_thread_stopped): ... this.
2825 (process_target::thread_stopped): Rename as ...
2826 (process_stratum_target::thread_stopped): ... this.
2827 (process_target::supports_get_tib_address): Rename as ...
2828 (process_stratum_target::supports_get_tib_address): ... this.
2829 (process_target::get_tib_address): Rename as ...
2830 (process_stratum_target::get_tib_address): ... this.
2831 (process_target::pause_all): Rename as ...
2832 (process_stratum_target::pause_all): ... this.
2833 (process_target::unpause_all): Rename as ...
2834 (process_stratum_target::unpause_all): ... this.
2835 (process_target::stabilize_threads): Rename as ...
2836 (process_stratum_target::stabilize_threads): ... this.
2837 (process_target::supports_fast_tracepoints): Rename as ...
2838 (process_stratum_target::supports_fast_tracepoints): ... this.
2839 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2840 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2841 (process_target::emit_ops): Rename as ...
2842 (process_stratum_target::emit_ops): ... this.
2843 (process_target::supports_disable_randomization): Rename as ...
2844 (process_stratum_target::supports_disable_randomization): ... this.
2845 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2846 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2847 (process_target::qxfer_libraries_svr4): Rename as ...
2848 (process_stratum_target::qxfer_libraries_svr4): ... this.
2849 (process_target::supports_agent): Rename as ...
2850 (process_stratum_target::supports_agent): ... this.
2851 (process_target::enable_btrace): Rename as ...
2852 (process_stratum_target::enable_btrace): ... this.
2853 (process_target::disable_btrace): Rename as ...
2854 (process_stratum_target::disable_btrace): ... this.
2855 (process_target::read_btrace): Rename as ...
2856 (process_stratum_target::read_btrace): ... this.
2857 (process_target::read_btrace_conf): Rename as ...
2858 (process_stratum_target::read_btrace_conf): ... this.
2859 (process_target::supports_range_stepping): Rename as ...
2860 (process_stratum_target::supports_range_stepping): ... this.
2861 (process_target::supports_pid_to_exec_file): Rename as ...
2862 (process_stratum_target::supports_pid_to_exec_file): ... this.
2863 (process_target::pid_to_exec_file): Rename as ...
2864 (process_stratum_target::pid_to_exec_file): ... this.
2865 (process_target::supports_multifs): Rename as ...
2866 (process_stratum_target::supports_multifs): ... this.
2867 (process_target::multifs_open): Rename as ...
2868 (process_stratum_target::multifs_open): ... this.
2869 (process_target::multifs_unlink): Rename as ...
2870 (process_stratum_target::multifs_unlink): ... this.
2871 (process_target::multifs_readlink): Rename as ...
2872 (process_stratum_target::multifs_readlink): ... this.
2873 (process_target::breakpoint_kind_from_pc): Rename as ...
2874 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2875 (process_target::breakpoint_kind_from_current_state): Rename as ...
2876 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2877 (process_target::thread_name): Rename as ...
2878 (process_stratum_target::thread_name): ... this.
2879 (process_target::thread_handle): Rename as ...
2880 (process_stratum_target::thread_handle): ... this.
2881 (process_target::supports_software_single_step): Rename as ...
2882 (process_stratum_target::supports_software_single_step): ... this.
2883 (process_target::supports_catch_syscall): Rename as ...
2884 (process_stratum_target::supports_catch_syscall): ... this.
2885 (process_target::get_ipa_tdesc_idx): Rename as ...
2886 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2888 2020-02-20 Pedro Alves <palves@redhat.com>
2890 * target.cc (set_target_ops): Simply copy the given target pointer
2891 instead of creating a copy of the pointed object.
2893 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2895 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2898 * target.h (struct process_stratum_target): Remove the target op.
2899 (class process_target): Add the target op.
2900 (target_get_ipa_tdesc_idx): Update the macro.
2901 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2903 Update the derived classes and callers below.
2905 * linux-low.cc (linux_target_ops): Update.
2906 (linux_get_ipa_tdesc_idx): Turn into ...
2907 (linux_process_target::get_ipa_tdesc_idx): ... this.
2908 * linux-low.h (class linux_process_target): Update.
2909 * lynx-low.cc (lynx_target_ops): Update.
2910 * nto-low.cc (nto_target_ops): Update.
2911 * win32-low.cc (win32_target_ops): Update.
2913 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2915 Turn process_stratum_target's supports_catch_syscall op into a
2916 method of process_target.
2918 * target.h (struct process_stratum_target): Remove the target op.
2919 (class process_target): Add the target op.
2920 (target_supports_catch_syscall): Update the macro.
2921 * target.cc (process_target::supports_catch_syscall): Define.
2923 Update the derived classes and callers below.
2925 * linux-low.cc (linux_target_ops): Update.
2926 (linux_supports_catch_syscall): Turn into ...
2927 (linux_process_target::supports_catch_syscall): ... this.
2928 * linux-low.h (class linux_process_target): Update.
2929 * lynx-low.cc (lynx_target_ops): Update.
2930 * nto-low.cc (nto_target_ops): Update.
2931 * win32-low.cc (win32_target_ops): Update.
2933 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2935 Turn process_stratum_target's supports_software_single_step op
2936 into a method of process_target.
2938 * target.h (struct process_stratum_target): Remove the target op.
2939 (class process_target): Add the target op.
2940 (target_supports_software_single_step): Update the macro.
2941 * target.cc (process_target::supports_software_single_step): Define.
2943 Update the derived classes and callers below.
2945 * linux-low.cc (linux_target_ops): Update.
2946 (linux_supports_software_single_step): Turn into ...
2947 (linux_process_target::supports_software_single_step): ... this.
2948 * linux-low.h (class linux_process_target): Update.
2949 * lynx-low.cc (lynx_target_ops): Update.
2950 * nto-low.cc (nto_target_ops): Update.
2951 * win32-low.cc (win32_target_ops): Update.
2953 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2955 Turn process_stratum_target's thread_name and thread_handle ops
2956 into methods of process_target.
2958 * target.h (struct process_stratum_target): Remove the target ops.
2959 (class process_target): Add the target ops.
2960 (target_thread_name): Update the macro.
2961 (target_thread_handle): Update the macro.
2962 * target.cc (process_target::thread_name): Define.
2963 (process_target::thread_handle): Define.
2965 Update the derived classes and callers below.
2967 * linux-low.cc (linux_target_ops): Update.
2968 (linux_process_target::thread_name): Define.
2969 (linux_process_target::thread_handle): Define.
2970 * linux-low.h (class linux_process_target): Update.
2971 * lynx-low.cc (lynx_target_ops): Update.
2972 * nto-low.cc (nto_target_ops): Update.
2973 * win32-low.cc (win32_target_ops): Update.
2975 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2977 Turn process_stratum_target's breakpoint_kind_from_pc,
2978 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
2979 ops into methods of process_target.
2981 * target.h (struct process_stratum_target): Remove the target op.
2982 (class process_target): Add the target op.
2983 (target_breakpoint_kind_from_pc): Update the macro.
2984 (target_breakpoint_kind_from_current_state): Update the macro.
2985 (default_breakpoint_kind_from_pc): Remove declaration.
2986 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
2987 (process_target::breakpoint_kind_from_pc): ... this.
2988 (process_target::breakpoint_kind_from_current_state): Define.
2990 Update the derived classes and callers below.
2992 * mem-break.cc (bp_size): Update.
2993 (bp_opcode): Update.
2994 * linux-low.cc (linux_target_ops): Update.
2995 (linux_wait_1): Update.
2996 (linux_breakpoint_kind_from_pc): Turn into ...
2997 (linux_process_target::breakpoint_kind_from_pc): ... this.
2998 (linux_sw_breakpoint_from_kind): Turn into ...
2999 (linux_process_target::sw_breakpoint_from_kind): ... this.
3000 (linux_breakpoint_kind_from_current_state): Turn into ...
3001 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 (lynx_process_target::sw_breakpoint_from_kind): Define.
3005 * lynx-low.h (class lynx_process_target): Update.
3006 * nto-low.cc (nto_target_ops): Update.
3007 (nto_sw_breakpoint_from_kind): Turn into ...
3008 (nto_process_target::sw_breakpoint_from_kind): ... this.
3009 * nto-low.h (class nto_process_target): Update.
3010 * win32-low.cc (win32_target_ops): Update.
3011 (win32_sw_breakpoint_from_kind): Turn into ...
3012 (win32_process_target::sw_breakpoint_from_kind): ... this.
3013 * win32-low.h (class win32_process_target): Update.
3015 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3017 Turn process_stratum_target's multifs_open, multifs_readlink,
3018 multifs_unlink ops into methods of process_target.
3020 * target.h (struct process_stratum_target): Remove the target ops.
3021 (class process_target): Add the target ops. Also add
3023 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3025 (process_target::supports_multifs): Define.
3026 (process_target::multifs_open): Define.
3027 (process_target::multifs_readlink): Define.
3028 (process_target::multifs_unlink): Define.
3030 Update the derived classes and callers below.
3032 * hostio.cc (handle_setfs): Update.
3033 (handle_open): Update.
3034 (handle_unlink): Update.
3035 (handle_readlink): Update.
3036 * linux-low.cc (linux_target_ops): Update.
3037 (linux_process_target::supports_multifs): Define.
3038 (linux_process_target::multifs_open): Define.
3039 (linux_process_target::multifs_readlink): Define.
3040 (linux_process_target::multifs_unlink): Define.
3041 * linux-low.h (class linux_process_target): Update.
3042 * lynx-low.cc (lynx_target_ops): Update.
3043 * nto-low.cc (nto_target_ops): Update.
3044 * win32-low.cc (win32_target_ops): Update.
3046 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3048 Turn process_stratum_target's pid_to_exec_file op into a method
3051 * target.h (struct process_stratum_target): Remove the target op.
3052 (class process_target): Add the target op. Also add
3053 'supports_pid_to_exec_file'.
3054 * target.cc (process_target::pid_to_exec_file): Define.
3055 (process_target::supports_pid_to_exec_file): Define.
3057 Update the derived classes and callers below.
3059 * server.cc (handle_qxfer_exec_file): Update.
3060 (handle_query): Update.
3061 * linux-low.cc (linux_target_ops): Update.
3062 (linux_process_target::supports_pid_to_exec_file): Define.
3063 (linux_process_target::pid_to_exec_file): Define.
3064 * linux-low.h (class linux_process_target): Update.
3065 * lynx-low.cc (lynx_target_ops): Update.
3066 * nto-low.cc (nto_target_ops): Update.
3067 * win32-low.cc (win32_target_ops): Update.
3069 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3071 Turn process_stratum_target's supports_range_stepping op into a
3072 method of process_target.
3074 * target.h (struct process_stratum_target): Remove the target op.
3075 (class process_target): Add the target op.
3076 (target_supports_range_stepping): Update the macro.
3077 * target.cc (process_target::supports_range_stepping): Define.
3079 Update the derived classes and callers below.
3081 * linux-low.cc (linux_target_ops): Update.
3082 (linux_supports_range_stepping): Turn into ...
3083 (linux_process_target::supports_range_stepping): ... this.
3084 * linux-low.h (class linux_process_target): Update.
3085 * lynx-low.cc (lynx_target_ops): Update.
3086 * nto-low.cc (nto_target_ops): Update.
3087 * win32-low.cc (win32_target_ops): Update.
3089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3091 Turn process_stratum_target's btrace-related ops (enable_btrace,
3092 disable_btrace, read_btrace, read_btrace_conf) into methods of
3095 * target.h (struct process_stratum_target): Remove the target ops.
3096 (class process_target): Add the target ops.
3097 (target_enable_btrace): Update.
3098 (target_disable_btrace): Update.
3099 (target_read_btrace): Update.
3100 (target_read_btrace_conf): Update.
3101 * target.cc (process_target::enable_btrace): Define.
3102 (process_target::disable_btrace): Define.
3103 (process_target::read_btrace): Define.
3104 (process_target::read_btrace_conf): Define.
3106 Update the derived classes and callers below.
3108 * linux-low.cc (linux_target_ops): Update.
3109 (linux_process_target:enable_btrace): Define as a wrapper around
3110 linux_enable_btrace.
3111 (linux_low_disable_btrace): Turn into ...
3112 (linux_process_target::disable_btrace): ... this.
3113 (linux_low_read_btrace): Turn into ...
3114 (linux_process_target::read_btrace): ... this.
3115 (linux_low_btrace_conf): Turn into ...
3116 (linux_process_target::read_btrace_conf): ... this.
3117 * linux-low.h (class linux_process_target): Update.
3118 * lynx-low.cc (lynx_target_ops): Update.
3119 * nto-low.cc (nto_target_ops): Update.
3120 * win32-low.cc (win32_target_ops): Update.
3122 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3124 Turn process_stratum_target's supports_agent op into a method of
3127 * target.h (struct process_stratum_target): Remove the target op.
3128 (class process_target): Add the target op.
3129 (target_supports_agent): Update the macro.
3130 * target.cc (process_target::supports_agent): Define.
3132 Update the derived classes and callers below.
3134 * linux-low.cc (linux_target_ops): Update.
3135 (linux_supports_agent): Turn into ...
3136 (linux_process_target::supports_agent): ... this.
3137 * linux-low.h (class linux_process_target): Update.
3138 * lynx-low.cc (lynx_target_ops): Update.
3139 * nto-low.cc (nto_target_ops): Update.
3140 * win32-low.cc (win32_target_ops): Update.
3142 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3144 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3145 method of process_target.
3147 * target.h (struct process_stratum_target): Remove the target op.
3148 (class process_target): Add the target op. Also add
3149 'supports_qxfer_libraries_svr4'.
3150 * target.cc (process_target::qxfer_libraries_svr4): Define.
3151 (process_target::supports_qxfer_libraries_svr4): Define.
3153 Update the derived classes and callers below.
3155 * server.cc (handle_qxfer_libraries_svr4): Update.
3156 (handle_query): Update.
3157 * linux-low.cc (linux_target_ops): Update.
3158 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3159 (linux_qxfer_libraries_svr4): Turn into ...
3160 (linux_process_target::qxfer_libraries_svr4): ... this.
3161 * linux-low.h (class linux_process_target): Update.
3162 * lynx-low.cc (lynx_target_ops): Update.
3163 * nto-low.cc (nto_target_ops): Update.
3164 * win32-low.cc (win32_target_ops): Update.
3166 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3168 Turn process_stratum_target's supports_disable_randomization op
3169 into a method of process_target.
3171 * target.h (struct process_stratum_target): Remove the target op.
3172 (class process_target): Add the target op.
3173 (target_supports_disable_randomization): Update the macro.
3174 * target.cc (process_target::supports_disable_randomization): Define.
3176 Update the derived classes and callers below.
3178 * linux-low.cc (linux_target_ops): Update.
3179 (linux_supports_disable_randomization): Turn into ...
3180 (linux_process_target::supports_disable_randomization): ... this.
3181 * linux-low.h (class linux_process_target): Update.
3182 * lynx-low.cc (lynx_target_ops): Update.
3183 * nto-low.cc (nto_target_ops): Update.
3184 * win32-low.cc (win32_target_ops): Update.
3186 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3188 Turn process_stratum_target's emit_ops op into a method of
3191 * target.h (struct process_stratum_target): Remove the target op.
3192 (class process_target): Add the target op.
3193 (target_emit_ops): Update the macro.
3194 * target.cc (process_target::emit_ops): Define.
3196 Update the derived classes and callers below.
3198 * linux-low.cc (linux_target_ops): Update.
3199 (linux_emit_ops): Turn into ...
3200 (linux_process_target::emit_ops): ... this.
3201 * linux-low.h (class linux_process_target): Update.
3202 * lynx-low.cc (lynx_target_ops): Update.
3203 * nto-low.cc (nto_target_ops): Update.
3204 * win32-low.cc (win32_target_ops): Update.
3206 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3208 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3209 and get_min_fast_tracepoint_insn_len ops into methods of
3212 * target.h (struct process_stratum_target): Remove the target ops.
3213 (class process_target): Add the target ops. Also add
3214 'supports_fast_tracepoints'.
3215 (target_supports_fast_tracepoints): Update the macro.
3216 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3217 (install_fast_tracepoint_jump_pad): Update and rename the macro
3219 (target_install_fast_tracepoint_jump_pad): ... this.
3220 * target.cc (process_target::supports_fast_tracepoints): Define.
3221 (process_target::install_fast_tracepoint_jump_pad): Define.
3222 (process_target::get_min_fast_tracepoint_insn_len): Define.
3224 Update the derived classes and callers below.
3226 * tracepoint.cc (install_fast_tracepoint): Update.
3227 * linux-low.cc (linux_target_ops): Update.
3228 (linux_process_target::supports_fast_tracepoints): Define.
3229 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3230 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3231 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3232 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3233 * linux-low.h (class linux_process_target): Update.
3234 * lynx-low.cc (lynx_target_ops): Update.
3235 * nto-low.cc (nto_target_ops): Update.
3236 * win32-low.cc (win32_target_ops): Update.
3238 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3240 Turn process_stratum_target's stabilize_threads op into a
3241 method of process_target.
3243 * target.h (struct process_stratum_target): Remove the target op.
3244 (class process_target): Add the target op.
3245 (target_stabilize_threads): Update the macro.
3246 * target.cc (process_target::stabilize_threads): Define.
3248 Update the derived classes and callers below.
3250 * server.cc (handle_status): Update.
3251 * tracepoint.cc (cmd_qtdp): Update.
3252 (cmd_qtstart): Update.
3253 * linux-low.cc (linux_target_ops): Update.
3254 (linux_stabilize_threads): Turn into ...
3255 (linux_process_target::stabilize_threads): ... this.
3256 (linux_wait_1): Update.
3257 * linux-low.h (class linux_process_target): Update.
3258 * lynx-low.cc (lynx_target_ops): Update.
3259 * nto-low.cc (nto_target_ops): Update.
3260 * win32-low.cc (win32_target_ops): Update.
3262 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3264 Turn process_stratum_target's pause_all and unpause_all ops
3265 into methods of process_target.
3267 * target.h (struct process_stratum_target): Remove the target ops.
3268 (class process_target): Add the target ops.
3269 (pause_all): Update the macro and rename to...
3270 (target_pause_all): ... this.
3271 (unpause_all): Update the macro and rename to...
3272 (target_unpause_all): ... this.
3273 * target.cc (process_target::pause_all): Define.
3274 (process_target::unpause_all): Define.
3276 Update the derived classes and callers below.
3278 * server.cc (handle_status): Update.
3279 * tracepoint.cc (clear_installed_tracepoints): Update.
3281 (cmd_qtstart): Update.
3282 (stop_tracing): Update.
3283 (cmd_qtstatus): Update.
3284 (upload_fast_traceframes): Update.
3285 (run_inferior_command): Update.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_pause_all): Turn into ...
3288 (linux_process_target::pause_all): ... this.
3289 (linux_unpause_all): Turn into ...
3290 (linux_process_target::unpause_all): ... this.
3291 (linux_process_target::prepare_to_access_memory): Update.
3292 (linux_process_target::done_accessing_memory): Update.
3293 * linux-low.h (class linux_process_target): Update.
3294 * lynx-low.cc (lynx_target_ops): Update.
3295 * nto-low.cc (nto_target_ops): Update.
3296 * win32-low.cc (win32_target_ops): Update.
3298 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3300 Turn process_stratum_target's get_tib_address op into a method of
3303 * target.h (struct process_stratum_target): Remove the target op.
3304 (class process_target): Add the target op. Also add
3305 'supports_get_tib_address'.
3306 * target.cc (process_target::get_tib_address): Define.
3307 (process_target::supports_get_tib_address): Define.
3309 Update the derived classes and callers below.
3311 * server.cc (handle_query): Update.
3312 * linux-low.cc (win32_target_ops): Update.
3313 * lynx-low.cc (lynx_target_ops): Update.
3314 * nto-low.cc (nto_target_ops): Update.
3315 * win32-low.cc (win32_target_ops): Update.
3316 (win32_process_target::supports_get_tib_address): Define.
3317 (win32_get_tib_address): Turn into ...
3318 (win32_process_target::get_tib_address): ... this.
3319 * win32-low.h (class win32_process_target): Update.
3321 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3323 Turn process_stratum_target's thread_stopped op into a method of
3326 * target.h (struct process_stratum_target): Remove the target op.
3327 (class process_target): Add the target op. Also add
3328 'supports_thread_stopped'.
3329 (target_thread_stopped): Update the macro.
3330 * target.cc (process_target::thread_stopped): Define.
3331 (process_target::supports_thread_stopped): Define.
3332 (prepare_to_access_memory): Update.
3334 Update the derived classes and callers below.
3336 * server.cc (queue_stop_reply_callback): Update.
3337 * linux-low.cc (linux_target_ops): Update.
3338 (linux_process_target::supports_thread_stopped): Define.
3339 (linux_thread_stopped): Turn into ...
3340 (linux_process_target::thread_stopped): ... this.
3341 * linux-low.h (class linux_process_target): Update.
3342 * lynx-low.cc (lynx_target_ops): Update.
3343 * nto-low.cc (nto_target_ops): Update.
3344 * win32-low.cc (win32_target_ops): Update.
3346 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3348 Turn process_stratum_target's read_pc and write_pc ops into
3349 methods of process_target.
3351 * target.h (struct process_stratum_target): Remove the target ops.
3352 (class process_target): Add the target ops.
3353 * target.cc (process_target::read_pc): Define.
3354 (process_target::write_pc): Define.
3356 Update the derived classes and callers below.
3358 * regcache.cc (regcache_read_pc): Update.
3359 (regcache_write_pc): Update.
3360 * linux-low.cc (linux_target_ops): Update.
3361 (linux_read_pc): Turn into ...
3362 (linux_process_target::read_pc): ... this.
3363 (linux_write_pc): Turn into ...
3364 (linux_process_target::write_pc): ... this.
3365 * linux-low.h (class linux_process_target): Update.
3366 * lynx-low.cc (lynx_target_ops): Update.
3367 * nto-low.cc (nto_target_ops): Update.
3368 * win32-low.cc (win32_target_ops): Update.
3370 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3372 Turn process_stratum_target's supports_tracepoints op into a
3373 method of process_target.
3375 * target.h (struct process_stratum_target): Remove the target op.
3376 (class process_target): Add the target op.
3377 (target_supports_tracepoints): Update the macro.
3378 * target.cc (process_target::supports_tracepoints): Define.
3380 Update the derived classes and callers below.
3382 * linux-low.cc (linux_target_ops): Update.
3383 (linux_supports_tracepoints): Turn into ...
3384 (linux_process_target::supports_tracepoints): ... this.
3385 * linux-low.h (class linux_process_target): Update.
3386 * lynx-low.cc (lynx_target_ops): Update.
3387 * nto-low.cc (nto_target_ops): Update.
3388 * win32-low.cc (win32_target_ops): Update.
3390 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3392 Turn process_stratum_target's process_qsupported op into a method
3395 * target.h (struct process_stratum_target): Remove the target op.
3396 (class process_target): Add the target op.
3397 (target_process_qsupported): Update the macro.
3398 * target.cc (process_target::process_qsupported): Define.
3400 Update the derived classes and callers below.
3402 * linux-low.cc (linux_target_ops): Update.
3403 (linux_process_qsupported): Turn into ...
3404 (linux_process_target::process_qsupported): ... this.
3405 * linux-low.h (class linux_process_target): Update.
3406 * lynx-low.cc (lynx_target_ops): Update.
3407 * nto-low.cc (nto_target_ops): Update.
3408 * win32-low.cc (win32_target_ops): Update.
3410 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3412 Turn process_stratum_target's read_loadmap op into a method of
3415 * target.h (struct process_stratum_target): Remove the target op.
3416 (class process_target): Add the target op. Also add
3417 'supports_read_loadmap'.
3418 * target.cc (process_target::read_loadmap): Define.
3419 (process_target::supports_read_loadmap): Define.
3421 Update the derived classes and callers below.
3423 * server.cc (handle_qxfer_fdpic): Update.
3424 (handle_query): Update.
3425 * linux-low.cc (linux_target_ops): Update.
3426 (linux_process_target::supports_read_loadmap): Define.
3427 (linux_read_loadmap): Turn into ...
3428 (linux_process_target::read_loadmap): ... this.
3429 * linux-low.h (class linux_process_target): Update.
3430 * lynx-low.cc (lynx_target_ops): Update.
3431 * nto-low.cc (nto_target_ops): Update.
3432 * win32-low.cc (win32_target_ops): Update.
3434 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3436 Turn process_stratum_target's core_of_thread op into a method of
3439 * target.h (struct process_stratum_target): Remove the target op.
3440 (class process_target): Add the target op.
3441 (target_core_of_thread): Update the macro.
3442 * target.cc (process_target::core_of_thread): Define.
3444 Update the derived classes and callers below.
3446 * linux-low.cc (linux_target_ops): Update.
3447 (linux_process_target::core_of_thread): Define.
3448 * linux-low.h (class linux_process_target): Update.
3449 * lynx-low.cc (lynx_target_ops): Update.
3450 * nto-low.cc (nto_target_ops): Update.
3451 * win32-low.cc (win32_target_ops): Update.
3453 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3455 Turn process_stratum_target's handle_monitor_command op into a
3456 method of process_target.
3458 * target.h (struct process_stratum_target): Remove the target op.
3459 (class process_target): Add the target op.
3460 (target_handle_monitor_command): Update the macro.
3461 * target.cc (process_target::handle_monitor_command): Define.
3463 Update the derived classes and callers below.
3465 * server.cc (handle_query): Update.
3466 * linux-low.cc (linux_target_ops): Update.
3467 (linux_process_target::handle_monitor_command): Define.
3468 * linux-low.h (class linux_process_target): Update.
3469 * lynx-low.cc (lynx_target_ops): Update.
3470 * nto-low.cc (nto_target_ops): Update.
3471 * win32-low.cc (win32_target_ops): Update.
3473 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3475 Turn process_stratum_target's handle_new_gdb_connection op into a
3476 method of process_target.
3478 * target.h (struct process_stratum_target): Remove the target op.
3479 (class process_target): Add the target op.
3480 (target_handle_new_gdb_connection): Update the macro.
3481 * target.cc (process_target::handle_new_gdb_connection): Define.
3483 Update the derived classes and callers below.
3485 * linux-low.cc (linux_target_ops): Update.
3486 (linux_handle_new_gdb_connection): Turn into ...
3487 (linux_process_target::handle_new_gdb_connection): ... this.
3488 * linux-low.h (class linux_process_target): Update.
3489 * lynx-low.cc (lynx_target_ops): Update.
3490 * nto-low.cc (nto_target_ops): Update.
3491 * win32-low.cc (win32_target_ops): Update.
3493 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3495 Turn process_stratum_target's supports_fork_events,
3496 supports_vfork_events, and supports_exec_events ops into methods
3499 * target.h (struct process_stratum_target): Remove the target ops.
3500 (class process_target): Add the target ops.
3501 (target_supports_fork_events): Update the macro.
3502 (target_supports_vfork_events): Update the macro.
3503 (target_supports_exec_events): Update the macro.
3504 * target.cc (process_target::supports_fork_events): Define.
3505 (process_target::supports_vfork_events): Define.
3506 (process_target::supports_exec_events): Define.
3508 Update the derived classes and callers below.
3510 * linux-low.cc (linux_target_ops): Update.
3511 (linux_supports_fork_events): Turn into ...
3512 (linux_process_target::supports_fork_events): ... this.
3513 (linux_supports_vfork_events): Turn into ...
3514 (linux_process_target::supports_vfork_events): ... this.
3515 (linux_supports_exec_events): Turn into ...
3516 (linux_process_target::supports_exec_events): ... this.
3517 * linux-low.h (class linux_process_target): Update.
3518 * lynx-low.cc (lynx_target_ops): Update.
3519 * nto-low.cc (nto_target_ops): Update.
3520 * win32-low.cc (win32_target_ops): Update.
3522 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3524 Turn process_stratum_target's supports_multi_process op into a
3525 method of process_target.
3527 * target.h (struct process_stratum_target): Remove the target op.
3528 (class process_target): Add the target op.
3529 * target.cc (process_target::supports_multi_process): Define.
3530 (target_supports_multi_process): Update.
3532 Update the derived classes and callers below.
3534 * linux-low.cc (linux_target_ops): Update.
3535 (linux_supports_multi_process): Turn into ...
3536 (linux_process_target::supports_multi_process): ... this.
3537 * linux-low.h (class linux_process_target): Update.
3538 * lynx-low.cc (lynx_target_ops): Update.
3539 * nto-low.cc (nto_target_ops): Update.
3540 * win32-low.cc (win32_target_ops): Update.
3542 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3544 Turn process_stratum_target's supports_non_stop, async, and
3545 start_non_stop ops into methods of process_target.
3547 * target.h (struct process_stratum_target): Remove the target ops.
3548 (class process_target): Add the target ops.
3549 (target_supports_non_stop): Update the macro.
3550 (target_async): Update the macro.
3551 (start_non_stop): Remove declaration.
3552 * target.cc (process_target::supports_non_stop): Define.
3553 (process_target::async): Define.
3554 (process_target::start_non_stop): Define.
3555 (start_non_stop): Remove.
3557 Update the derived classes and callers below.
3559 * server.cc (handle_qxfer_siginfo): Update.
3560 (handle_query): Update.
3561 * linux-low.cc (linux_target_ops): Update.
3562 (linux_supports_non_stop): Turn into ...
3563 (linux_process_target::supports_non_stop): ... this.
3564 (linux_async): Turn into ...
3565 (linux_process_target::async): ... this.
3566 (linux_start_non_stop): Turn into ...
3567 (linux_process_target::start_non_stop): ... this.
3568 * linux-low.h (class linux_process_target): Update.
3569 * lynx-low.cc (lynx_target_ops): Update.
3570 * nto-low.cc (nto_target_ops): Update.
3571 (nto_supports_non_stop): Remove; rely on the default behavior
3573 * win32-low.cc (win32_target_ops): Update.
3575 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3577 Turn process_stratum_target's qxfer_siginfo op into a method of
3580 * target.h (struct process_stratum_target): Remove the target op.
3581 (class process_target): Add the target op. Also add
3582 'supports_qxfer_siginfo'.
3583 * target.cc (process_target::qxfer_siginfo): Define.
3584 (process_target::supports_qxfer_siginfo): Define.
3586 Update the derived classes and callers below.
3588 * server.cc (handle_qxfer_siginfo): Update.
3589 (handle_query): Update.
3590 * linux-low.cc (linux_target_ops): Update.
3591 (linux_process_target::supports_qxfer_siginfo): Define.
3592 (linux_xfer_siginfo): Turn into ...
3593 (linux_process_target::qxfer_siginfo): ... this.
3594 * linux-low.h (class linux_process_target): Update.
3595 * lynx-low.cc (lynx_target_ops): Update.
3596 * nto-low.cc (nto_target_ops): Update.
3597 * win32-low.cc (win32_target_ops): Update.
3599 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3601 Turn process_stratum_target's qxfer_osdata op into a method of
3604 * target.h (struct process_stratum_target): Remove the target op.
3605 (class process_target): Add the target op. Also add
3606 'supports_qxfer_osdata'.
3607 * target.cc (process_target::qxfer_osdata): Define.
3608 (process_target::supports_qxfer_osdata): Define.
3610 Update the derived classes and callers below.
3612 * server.cc (handle_qxfer_osdata): Update.
3613 (handle_query): Update.
3614 * linux-low.cc (linux_target_ops): Update.
3615 (linux_process_target::supports_qxfer_osdata): Define.
3616 (linux_qxfer_osdata): Turn into ...
3617 (linux_process_target::qxfer_osdata): ... this.
3618 * linux-low.h (class linux_process_target): Update.
3619 * lynx-low.cc (lynx_target_ops): Update.
3620 * nto-low.cc (nto_target_ops): Update.
3621 * win32-low.cc (win32_target_ops): Update.
3623 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3625 Turn process_stratum_target's hostio_last_error op into a
3626 method of process_target.
3628 * target.h (struct process_stratum_target): Remove the target op.
3629 (class process_target): Add the target op.
3630 * target.cc: Add "hostio.h" to includes.
3631 (process_target::hostio_last_error): Define.
3633 Update the derived classes and callers below.
3635 * hostio.cc (hostio_error): Update.
3636 * linux-low.cc: Remove "hostio.h" from includes.
3637 (linux_target_ops): Update.
3638 * lynx-low.cc (lynx_target_ops): Update.
3639 * nto-low.cc (nto_target_ops): Update.
3640 * win32-low.h (class win32_process_target): Update.
3641 * win32-low.cc (win32_target_ops): Update.
3642 (wince_hostio_last_error): Turn into ...
3643 (win32_process_target::hostio_last_error): ... this.
3645 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3647 Turn process_stratum_target's get_tls_address op into a method of
3650 * target.h (struct process_stratum_target): Remove the target op.
3651 (class process_target): Add the target op. Also add
3652 'supports_get_tls_address'.
3653 * target.cc (process_target::get_tls_address): Define.
3654 (process_target::supports_get_tls_address): Define.
3656 Update the derived classes and callers below.
3658 * server.cc (handle_query): Update.
3659 * linux-low.cc (linux_target_ops): Update.
3660 (linux_process_target::supports_get_tls_address): Define.
3661 (linux_process_target::get_tls_address): Define.
3662 * linux-low.h (class linux_process_target): Update.
3663 * lynx-low.cc (lynx_target_ops): Update.
3664 * nto-low.cc (nto_target_ops): Update.
3665 * win32-low.cc (win32_target_ops): Update.
3667 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3669 Turn process_stratum_target's read_offsets op into a method of
3672 * target.h (struct process_stratum_target): Remove the target op.
3673 (class process_target): Add the target op. Also add
3674 'supports_read_offsets'.
3675 * target.cc (process_target::read_offsets): Define.
3676 (process_target::supports_read_offsets): Define.
3678 Update the derived classes and callers below.
3680 * server.cc (handle_query): Update.
3681 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3682 (linux_target_ops): Update.
3683 (linux_process_target::supports_read_offsets): Define.
3684 (linux_read_offsets): Turn into ...
3685 (linux_process_target::read_offsets): ... this.
3686 * linux-low.h (class linux_process_target): Update.
3687 * lynx-low.cc (lynx_target_ops): Update.
3688 * nto-low.cc (nto_target_ops): 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 stopped_by_watchpoint and
3694 stopped_data_address ops into methods of process_target.
3696 * target.h (struct process_stratum_target): Remove the target ops.
3697 (class process_target): Add the target ops.
3698 * target.cc (process_target::stopped_by_watchpoint): Define.
3699 (process_target::stopped_data_address): Define.
3701 Update the derived classes and callers below.
3703 * remote-utils.cc (prepare_resume_reply): Update.
3704 * linux-low.cc (linux_target_ops): Update.
3705 (linux_stopped_by_watchpoint): Turn into ...
3706 (linux_process_target::stopped_by_watchpoint): ... this.
3707 (linux_stopped_data_address): Turn into ...
3708 (linux_process_target::stopped_data_address): ... this.
3709 * linux-low.h (class linux_process_target): Update.
3710 * lynx-low.cc (lynx_target_ops): Update.
3711 * nto-low.cc (nto_target_ops): Update.
3712 (nto_stopped_by_watchpoint): Turn into ...
3713 (nto_process_target::stopped_by_watchpoint): ... this.
3714 (nto_stopped_data_address): Turn into ...
3715 (nto_process_target::stopped_data_address): ... this.
3716 * nto-low.h (class nto_process_target): Update.
3717 * win32-low.cc (win32_target_ops): Update.
3718 (win32_stopped_by_watchpoint): Turn into ...
3719 (win32_process_target::stopped_by_watchpoint): ... this.
3720 (win32_stopped_data_address): Turn into ...
3721 (win32_process_target::stopped_data_address): ... this.
3722 * win32-low.h (class win32_process_target): Update.
3724 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3726 Turn process_stratum_target's supports_hardware_single_step op into
3727 a method of process_target.
3729 * target.h (struct process_stratum_target): Remove the target op.
3730 (class process_target): Add the target op.
3731 (target_supports_hardware_single_step): Update the macro.
3732 (target_can_do_hardware_single_step): Remove declaration.
3733 * target.cc (process_target::supports_hardware_single_step): Define.
3734 (target_can_do_hardware_single_step): Remove.
3736 Update the derived classes and callers below.
3738 * linux-low.h (class linux_process_target): Update.
3739 * linux-low.cc (linux_target_ops): Update.
3740 (linux_supports_hardware_single_step): Turn into ...
3741 (linux_process_target::supports_hardware_single_step): ... this.
3742 * lynx-low.h (class lynx_process_target): Update.
3743 * lynx-low.cc (lynx_target_ops): Update.
3744 (lynx_process_target::supports_hardware_single_step): Define.
3745 * nto-low.h (class nto_process_target): Update.
3746 * nto-low.cc (nto_target_ops): Update.
3747 (nto_process_target::supports_hardware_single_step): Define.
3748 * win32-low.h (class win32_process_target): Update.
3749 * win32-low.cc (win32_target_ops): Update.
3750 (win32_process_target::supports_hardware_single_step): Define.
3752 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3754 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3755 ops into methods of process_target.
3757 * target.h (struct process_stratum_target): Remove the target ops.
3758 (class process_target): Add the target ops.
3759 (target_stopped_by_hw_breakpoint): Update the macro.
3760 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3761 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3762 (process_target::supports_stopped_by_hw_breakpoint): Define.
3764 Update the derived classes and callers below.
3766 * linux-low.cc (linux_target_ops): Update.
3767 (linux_stopped_by_hw_breakpoint): Turn into ...
3768 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3769 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3770 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3771 * linux-low.h (class linux_process_target): Update.
3772 * lynx-low.cc (lynx_target_ops): Update.
3773 * nto-low.cc (nto_target_ops): Update.
3774 * win32-low.cc (win32_target_ops): Update.
3776 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3778 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3779 ops into methods of process_target.
3781 * target.h (struct process_stratum_target): Remove the target ops.
3782 (class process_target): Add the target ops.
3783 (target_stopped_by_sw_breakpoint): Update the macro.
3784 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3785 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3786 (process_target::supports_stopped_by_sw_breakpoint): Define.
3788 Update the derived classes and callers below.
3790 * linux-low.cc (linux_target_ops): Update.
3791 (linux_stopped_by_sw_breakpoint): Turn into ...
3792 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3793 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3794 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3795 * linux-low.h (class linux_process_target): Update.
3796 * lynx-low.cc (lynx_target_ops): Update.
3797 * nto-low.cc (nto_target_ops): Update.
3798 * win32-low.cc (win32_target_ops): Update.
3800 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3802 Turn process_stratum_target's insert_point and remove_point ops
3803 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::insert_point): Define.
3808 (process_target::remove_point): Define.
3810 Update the derived classes and callers below.
3812 * mem-break.cc (set_raw_breakpoint_at): Update.
3813 (delete_raw_breakpoint): Update.
3814 (uninsert_raw_breakpoint): Update.
3815 (reinsert_raw_breakpoint): Update.
3816 * linux-low.cc (linux_target_ops): Update.
3817 (linux_insert_point): Turn into ...
3818 (linux_process_target::insert_point): ... this.
3819 (linux_remove_point): Turn into ...
3820 (linux_process_target::remove_point): ... this.
3821 * linux-low.h (class linux_process_target): Update.
3822 * lynx-low.cc (lynx_target_ops): Update.
3823 * nto-low.cc (nto_target_ops): Update.
3824 (nto_insert_point): Turn into ...
3825 (nto_process_target::insert_point): ... this.
3826 (nto_remove_point): Turn into ...
3827 (nto_process_target::remove_point): ... this.
3828 * nto-low.h (class nto_process_target): Update.
3829 * win32-low.cc (win32_target_ops): Update.
3830 (win32_insert_point): Turn into ...
3831 (win32_process_target::insert_point): ... this.
3832 (win32_remove_point): Turn into ...
3833 (win32_process_target::remove_point): ... this.
3834 * win32-low.h (class win32_process_target): Update.
3836 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3838 Turn process_stratum_target's supports_z_point_type op into a
3839 method of process_target.
3841 * target.h (struct process_stratum_target): Remove the target op.
3842 (class process_target): Add the target op.
3843 * target.cc (process_target::supports_z_point_type): Define.
3845 Update the derived classes and callers below.
3847 * mem-break.cc (z_type_supported): Update.
3848 * linux-low.cc (linux_target_ops): Update.
3849 (linux_supports_z_point_type): Turn into ...
3850 (linux_process_target::supports_z_point_type): ... this.
3851 * linux-low.h (class linux_process_target): Update.
3852 * lynx-low.cc (lynx_target_ops): Update.
3853 * nto-low.cc (nto_target_ops): Update.
3854 (nto_supports_z_point_type): Turn into ...
3855 (nto_process_target::supports_z_point_type): ... this.
3856 * nto-low.h (class nto_process_target): Update.
3857 * win32-low.cc (win32_target_ops): Update.
3858 (win32_supports_z_point_type): Turn into ...
3859 (win32_process_target::supports_z_point_type): ... this.
3860 * win32-low.h (class win32_process_target): Update.
3862 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3864 Turn process_stratum_target's read_auxv op into a method of
3867 * target.h (class process_stratum_target): Remove the target op.
3868 (struct process_target): Add the target op. Also add
3869 'supports_read_auxv'.
3870 * target.cc (process_target::read_auxv): Define.
3871 (process_target::supports_read_auxv): Define.
3873 Update the derived classes and callers below.
3875 * server.cc (handle_qxfer_auxv): Update.
3876 (handle_query): Update.
3877 * linux-low.cc (linux_target_ops): Update.
3878 (linux_process_target::supports_read_auxv): Define.
3879 (linux_read_auxv): Turn into ...
3880 (linux_process_target::read_auxv): ... this.
3881 * linux-low.h (class linux_process_target): Update.
3882 * lynx-low.cc (lynx_target_ops): Update.
3883 * nto-low.cc (nto_target_ops): Update.
3884 (nto_process_target::supports_read_auxv): Define.
3885 (nto_read_auxv): Turn into ...
3886 (nto_process_target::read_auxv): ... this.
3887 * nto-low.h (class nto_process_target): Update.
3888 * win32-low.cc (win32_target_ops): Update.
3890 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3892 Turn process_stratum_target's request_interrupt 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 * remote-utils.cc (putpkt_binary_1): Update.
3901 (input_interrupt): Update.
3903 * server.cc (handle_v_requests): Update.
3904 * linux-low.cc (linux_target_ops): Update.
3905 (linux_request_interrupt): Turn into ...
3906 (linux_process_target::request_interrupt): ... this.
3907 * linux-low.h (class linux_process_target): Update.
3908 * lynx-low.cc (lynx_target_ops): Update.
3909 (lynx_request_interrupt): Turn into ...
3910 (lynx_process_target::request_interrupt): ... this.
3911 * lynx-low.h (class lynx_process_target): Update.
3912 * nto-low.cc (nto_target_ops): Update.
3913 (nto_request_interrupt): Turn into ...
3914 (nto_process_target::request_interrupt): ... this.
3915 * nto-low.h (class nto_process_target): Update.
3916 * win32-low.cc (win32_target_ops): Update.
3917 (win32_request_interrupt): Turn into ...
3918 (win32_process_target::request_interrupt): ... this.
3919 * win32-low.h (class win32_process_target): Update.
3921 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3923 Turn process_stratum_target's look_up_symbols op into a method of
3926 * target.h (struct process_stratum_target): Remove the target op.
3927 (class process_target): Add the target op.
3928 * target.cc (process_target::look_up_symbols): Define.
3930 Update the derived classes and callers below.
3932 * server.cc (handle_query): Update.
3933 * linux-low.cc (linux_target_ops): Update.
3934 (linux_look_up_symbols): Turn into ...
3935 (linux_process_target::look_up_symbols): ... this.
3936 * linux-low.h (class linux_process_target): Update.
3937 * lynx-low.cc (lynx_target_ops): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3941 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3943 Turn process_stratum_target's read_memory and write_memory
3944 ops into methods of process_target.
3946 * target.h (struct process_stratum_target): Remove the target ops.
3947 (class process_target): Add the target ops.
3949 Update the derived classes and callers below.
3951 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3952 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3953 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3954 (arm_get_syscall_trapinfo): Update.
3955 * linux-cris-low.cc (cris_breakpoint_at): Update.
3956 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3957 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3958 * linux-mips-low.cc (mips_breakpoint_at): Update.
3959 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3960 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3961 * linux-sh-low.cc (sh_breakpoint_at): Update.
3962 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3963 (sparc_store_gregset_from_stack): Update.
3964 (sparc_breakpoint_at): Update.
3965 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3966 * linux-tile-low.cc (tile_breakpoint_at): Update.
3967 * linux-x86-low.cc (x86_breakpoint_at): Update.
3968 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
3969 * mem-brea.cc (insert_memory_breakpoint): Update.
3970 (validate_inserted_breakpoint): Update.
3971 * target.cc (read_inferior_memory): Update.
3972 (target_write_memory): Update.
3973 * linux-low.cc (linux_target_ops): Update.
3974 (linux_read_memory): Make a wrapper around the read_memory target
3976 (linux_process_target::read_memory): Rename from linux_read_memory.
3977 (linux_write_memory): Turn into ...
3978 (linux_process_target::write_memory): ... this.
3979 * linux-low.h (class linux_process_target): Update.
3980 * lynx-low.cc (lynx_target_ops): Update.
3981 (lynx_read_memory): Turn into ...
3982 (lynx_process_target::read_memory): ... this.
3983 (lynx_write_memory): Turn into ...
3984 (lynx_process_target::write_memory): ... this.
3985 * lynx-low.h (class lynx_process_target): Update.
3986 * nto-low.cc (nto_target_ops): Update.
3987 (nto_read_memory): Turn into ...
3988 (nto_process_target::read_memory): ... this.
3989 (nto_write_memory): Turn into ...
3990 (nto_process_target::write_memory): ... this.
3991 * nto-low.h (class nto_process_target): Update.
3992 * win32-low.cc (win32_target_ops): Update.
3993 (win32_read_inferior_memory): Turn into ...
3994 (win32_process_target::read_memory): ... this.
3995 (win32_write_inferior_memory): Turn into ...
3996 (win32_process_target::write_memory): ... this.
3997 * win32-low.h (class win32_process_target): Update.
3999 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4001 Turn process_stratum_target's prepare_to_access_memory and
4002 done_accessing_memory ops into methods of process_target.
4004 * target.h (struct process_stratum_target): Remove the target ops.
4005 (class process_target): Add the target ops.
4006 * target.cc (process_target::prepare_to_access_memory): Define.
4007 (process_target::done_accessing_memory): Define.
4008 (prepare_to_access_memory): Update.
4009 (done_accessing_memory): Update.
4011 Update the derived classes and callers below.
4013 * linux-low.cc (linux_target_ops): Update.
4014 (linux_prepare_to_access_memory): Turn into ...
4015 (linux_process_target::prepare_to_access_memory): ... this.
4016 (linux_done_accessing_memory): Turn into ...
4017 (linux_process_target::done_accessing_memory): ... this.
4018 * linux-low.h (class linux_process_target): Update.
4019 * lynx-low.cc (lynx_target_ops): Update.
4020 * nto-low.cc (nto_target_ops): Update.
4021 * win32-low.cc (win32_target_ops): Update.
4023 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4025 Turn process_stratum_target's fetch_registers and store_registers
4026 ops into methods of process_target.
4028 * target.h (struct process_stratum_target): Remove the target ops.
4029 (class process_target): Add the target ops.
4030 (fetch_inferior_registers): Update the macro.
4031 (store_inferior_registers): Update the macro.
4033 Update the derived classes and callers below.
4035 * linux-low.cc (linux_target_ops): Update.
4036 (linux_fetch_registers): Turn into ...
4037 (linux_process_target::fetch_registers): ... this.
4038 (linux_store_registers): Turn into ...
4039 (linux_process_target::store_registers): ... this.
4040 * linux-low.h (class linux_process_target): Update.
4041 * lynx-low.cc (lynx_target_ops): Update.
4042 (lynx_fetch_registers): Turn into ...
4043 (lynx_process_target::fetch_registers): ... this.
4044 (lynx_store_registers): Turn into ...
4045 (lynx_process_target::store_registers): ... this.
4046 * lynx-low.h (class lynx_process_target): Update.
4047 * nto-low.cc (nto_target_ops): Update.
4048 (nto_fetch_registers): Turn into ...
4049 (nto_process_target::fetch_registers): ... this.
4050 (nto_store_registers): Turn into ...
4051 (nto_process_target::store_registers): ... this.
4052 * nto-low.h (class nto_process_target): Update.
4053 * win32-low.cc (win32_target_ops): Update.
4054 (win32_fetch_inferior_registers): Turn into ...
4055 (win32_process_target::fetch_registers): ... this.
4056 (win32_store_inferior_registers): Turn into ...
4057 (win32_process_target::store_registers): ... this.
4058 * win32-low.h (class win32_process_target): Update.
4060 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4062 Turn process_stratum_target's wait op into a method of
4065 * target.h (struct process_stratum_target): Remove the target op.
4066 (class process_target): Add the target op.
4068 Update the derived classes and callers below.
4070 * target.cc (target_wait): Update.
4071 * linux-low.cc (linux_target_ops): Update.
4072 (linux_wait): Turn into ...
4073 (linux_process_target::wait): ... this.
4074 * linux-low.h (class linux_process_target): Update.
4075 * lynx-low.cc (lynx_target_ops): Update.
4076 (lynx_wait): Turn into ...
4077 (lynx_process_target::wait): ... this.
4078 * lynx-low.h (class lynx_process_target): Update.
4079 * nto-low.cc (nto_target_ops): Update.
4080 (nto_wait): Turn into ...
4081 (nto_process_target::wait): ... this.
4082 * nto-low.h (class nto_process_target): Update.
4083 * win32-low.cc (win32_target_ops): Update.
4084 (win32_wait): Turn into ...
4085 (win32_process_target::wait): ... this.
4086 (do_initial_child_stuff): Update.
4087 * win32-low.h (class win32_process_target): Update.
4089 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4091 Turn process_stratum_target's resume op into a method of
4094 * target.h (struct process_stratum_target): Remove the target op.
4095 (class process_target): Add the target op.
4097 Update the derived classes and callers below.
4099 * server.cc (resume): Update.
4100 * target.cc (target_stop_and_wait): Update.
4101 (target_continue_no_signal): Update.
4102 (target_continue): Update.
4103 * linux-low.cc (linux_target_ops): Update.
4104 (linux_resume): Turn into ...
4105 (linux_process_target::resume): ... this.
4106 * linux-low.h (class linux_process_target): Update.
4107 * lynx-low.cc (lynx_target_ops): Update.
4108 (lynx_resume): Turn into ...
4109 (lynx_process_target::resume): ... this.
4110 * lynx-low.h (class lynx_process_target): Update.
4111 * nto-low.cc (nto_target_ops): Update.
4112 (nto_resume): Turn into ...
4113 (nto_process_target::resume): ... this.
4114 * nto-low.h (class nto_process_target): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4116 (win32_resume): Turn into ...
4117 (win32_process_target::resume): ... this.
4118 (win32_process_target::detach): Update.
4119 (do_initial_child_stuff): Update.
4120 * win32-low.h (class win32_process_target): Update.
4122 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4124 Turn process_stratum_target's thread_alive op into a method of
4127 * target.h (struct process_stratum_target): Remove the target op.
4128 (class process_target): Add the target op.
4129 (mythread_alive): Update the macro.
4131 Update the derived classes and callers below.
4133 * linux-low.cc (linux_target_ops): Update.
4134 (linux_thread_alive): Turn into ...
4135 (linux_process_target::thread_alive): ... this.
4136 (wait_for_sigstop): Update.
4137 * linux-low.h (class linux_process_target): Update.
4138 * lynx-low.cc (lynx_target_ops): Update.
4139 (lynx_thread_alive): Turn into ...
4140 (lynx_process_target::thread_alive): ... this.
4141 * lynx-low.h (class lynx_process_target): Update.
4142 * nto-low.cc (nto_target_ops): Update.
4143 (nto_thread_alive): Turn into ...
4144 (nto_process_target::thread_alive): ... this.
4145 * nto-low.h (class nto_process_target): Update.
4146 * win32-low.cc (win32_target_ops): Update.
4147 (win32_thread_alive): Turn into ...
4148 (win32_process_target::thread_alive): ... this.
4149 * win32-low.h (class win32_process_target): Update.
4151 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4153 Turn process_stratum_target's join op into a method of
4156 * target.h (struct process_stratum_target): Remove the target op.
4157 (class process_target): Add the target op.
4158 (join_inferior): Update the macro.
4160 Update the derived classes and callers below.
4162 * linux-low.cc (linux_target_ops): Update.
4163 (linux_join): Turn into ...
4164 (linux_process_target::join): ... this.
4165 * linux-low.h (class linux_process_target): Update.
4166 * lynx-low.cc (lynx_target_ops): Update.
4167 (lynx_join): Turn into ...
4168 (lynx_process_target::join): ... this.
4169 * lynx-low.h (class lynx_process_target): Update.
4170 * nto-low.cc (nto_target_ops): Update.
4171 (nto_process_target::join): Define.
4172 * nto-low.h (class nto_process_target): Update.
4173 * win32-low.cc (win32_target_ops): Update.
4174 (win32_join): Turn into ...
4175 (win32_process_target::join): ... this.
4176 * win32-low.h (class win32_process_target): Update.
4178 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4180 Turn process_stratum_target's mourn op into a method of
4183 * target.h (struct process_stratum_target): Remove the target op.
4184 (class process_target): Add the target op.
4186 Update the derived classes and callers below.
4188 * target.cc (target_mourn_inferior): Update.
4189 * linux-low.cc (linux_target_ops): Update.
4190 (linux_mourn): Turn into ...
4191 (linux_process_target::mourn): ... this.
4192 (handle_extended_wait): Update.
4193 (linux_process_target::kill): Update.
4194 (linux_process_target::detach): Update.
4195 * linux-low.h (class linux_process_target): Update.
4196 * lynx-low.cc (lynx_target_ops): Update.
4197 (lynx_mourn): Turn into ...
4198 (lynx_process_target::mourn): ... this.
4199 * lynx-low.h (class lynx_process_target): Update.
4200 * nto-low.cc (nto_target_ops): Update.
4201 (nto_mourn): Turn into ...
4202 (nto_process_target::mourn): ... this.
4203 * nto-low.h (class nto_process_target): Update.
4204 * win32-low.cc (win32_target_ops): Update.
4205 (win32_mourn): Turn into ...
4206 (win32_process_target::mourn): ... this.
4207 * win32-low.h (class win32_process_target): Update.
4209 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4211 Turn process_stratum_target's detach op into a method of
4214 * target.h (struct process_stratum_target): Remove the target op.
4215 (class process_target): Add the target op.
4216 (detach_inferior): Update the macro.
4218 Update the derived classes and callers below.
4220 * linux-low.cc (linux_target_ops): Update.
4221 (linux_detach): Turn into ...
4222 (linux_process_target::detach): ... this.
4223 * linux-low.h (class linux_process_target): Update.
4224 * lynx-low.cc (lynx_target_ops): Update.
4225 (lynx_detach): Turn into ...
4226 (lynx_process_target::detach): ... this.
4227 * lynx-low.h (class lynx_process_target): Update.
4228 * nto-low.cc (nto_target_ops): Update.
4229 (nto_detach): Turn into ...
4230 (nto_process_target::detach): ... this.
4231 * nto-low.h (class nto_process_target): Update.
4232 * win32-low.cc (win32_target_ops): Update.
4233 (win32_detach): Turn into ...
4234 (win32_process_target::detach): ... this.
4235 * win32-low.h (class win32_process_target): Update.
4237 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4239 Turn process_stratum_target's kill op into a method of
4242 * target.h (struct process_stratum_target): Remove the target op.
4243 (class process_target): Add the target op.
4245 Update the derived classes and callers below.
4247 * target.cc (kill_inferior): Update.
4248 * linux-low.cc (linux_target_ops): Update.
4249 (linux_kill): Turn into ...
4250 (linux_process_target::kill): ... this.
4251 * linux-low.h (class linux_process_target): Update.
4252 * lynx-low.cc (lynx_target_ops): Update.
4253 (lynx_kill): Turn into ...
4254 (lynx_process_target::kill): ... this.
4255 * lynx-low.h (class lynx_process_target): Update.
4256 * nto-low.cc (nto_target_ops): Update.
4257 (nto_kill): Turn into ...
4258 (nto_process_target::kill): ... this.
4259 * nto-low.h (class nto_process_target): Update.
4260 * win32-low.cc (win32_target_ops): Update.
4261 (win32_kill): Turn into ...
4262 (win32_process_target::kill): ... this.
4263 * win32-low.h (class win32_process_target): Update.
4265 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4267 Turn process_stratum_target's attach op into a method of
4270 * target.h (struct process_stratum_target): Remove the target op.
4271 (class process_target): Add the target op.
4272 (myattach): Update the macro.
4274 Update the derived classes and callers below.
4276 * linux-low.cc (linux_target_ops): Update.
4277 (linux_attach): Turn into ...
4278 (linux_process_target::attach): ... this.
4279 * linux-low.h (class linux_process_target): Update.
4280 * lynx-low.cc (lynx_target_ops): Update.
4281 (lynx_attach): Turn into ...
4282 (lynx_process_target::attach): ... this.
4283 * lynx-low.h (class lynx_process_target): Update.
4284 * nto-low.cc (nto_target_ops): Update.
4285 (nto_attach): Turn into ...
4286 (nto_process_target::attach): ... this.
4287 * nto-low.h (class nto_process_target): Update.
4288 * win32-low.cc (win32_target_ops): Update.
4289 (win32_attach): Turn into ...
4290 (win32_process_target::attach): ... this.
4291 * win32-low.h (class win32_process_target): Update.
4293 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4295 Turn process_stratum_target's post_create_inferior op into a method
4298 * target.h (struct process_stratum_target): Remove the target op.
4299 (class process_target): Add the target op.
4300 (target_post_create_inferior): Update the macro.
4301 * target.cc (process_target::post_create_inferior): Define.
4303 Update the derived classes and callers below.
4305 * linux-low.cc (linux_target_ops): Update.
4306 (linux_post_create_inferior): Turn into ...
4307 (linux_process_target::post_create_inferior): ... this.
4308 * linux-low.h (class linux_process_target): Update.
4309 * lynx-low.cc (lynx_target_ops): Update.
4310 * nto-low.cc (nto_target_ops): Update.
4311 * win32-low.cc (win32_target_ops): Update.
4313 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4315 Turn process_stratum_target's create_inferior op into a method of
4318 * target.h (struct process_stratum_target): Remove the target op.
4319 (class process_target): Add the target op.
4320 (create_inferior): Rename the macro to ...
4321 (target_create_inferior): ... this.
4323 Update the derived classes and callers below.
4325 * server.cc (handle_v_run): Update.
4326 (captured_main): Update.
4327 (process_serial_event): Update.
4328 * linux-low.cc (linux_target_ops): Update.
4329 (linux_create_inferior): Turn into ...
4330 (linux_process_target::create_inferior): ... this.
4331 * linux-low.h (class linux_process_target): Update.
4332 * lynx-low.cc (lynx_target_ops): Update.
4333 (lynx_create_inferior): Turn into ...
4334 (lynx_process_target::create_inferior): ... this.
4335 * lynx-low.h (class lynx_process_target): Update.
4336 * nto-low.cc (nto_target_ops): Update.
4337 (nto_create_inferior): Turn into ...
4338 (nto_process_target::create_inferior): ... this.
4339 * nto-low.h (class nto_process_target): Update.
4340 * win32-low.cc (win32_target_ops): Update.
4341 (win32_create_inferior): Turn into ...
4342 (win32_process_target::create_inferior): ... this.
4343 * win32-low.h (class win32_process_target): Update.
4345 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4347 * target.h (class process_target): New class definition.
4348 (struct process_stratum_target) <pt>: New field with type
4350 * linux-low.h (class linux_process_target): Define as a derived
4351 class of 'process_target'.
4352 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4354 * lynx-low.h (class lynx_process_target): Define as a derived
4355 class of 'process_target'.
4356 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4358 * nto-low.h (class nto_process_target): Define as a derived
4359 class of 'process_target'.
4360 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4362 * win32-low.h (class win32_process_target): Define as a derived
4363 class of 'process_target'.
4364 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4367 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4369 * configure: Regenerate.
4371 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4372 Andrew Burgess <andrew.burgess@embecosm.com>
4374 * linux-riscv-low.cc: New file.
4375 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4376 and nat/riscv-linux-tdesc.c.
4377 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4378 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4381 2020-02-14 Tom Tromey <tom@tromey.com>
4383 * acinclude.m4: Don't include acx_configure_dir.m4.
4384 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4385 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4386 (all, install-only, uninstall, clean-info, clean)
4387 (maintainer-clean): Don't recurse.
4388 (subdir_do, all-lib): Remove.
4389 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4391 (generated_files): Update.
4392 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4393 * configure: Rebuild.
4394 * configure.ac: Don't configure gnulib or libiberty.
4397 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4399 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4400 preparing the command line for CreateProcess.
4401 (win32_create_inferior): Reflect the program name in debugging
4402 output that shows the process and its command line.
4404 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4406 * Makefile.in: Rename source files from .c to .cc.
4407 * %.c: Rename to %.cc.
4408 * configure.ac: Rename server.c to server.cc.
4409 * configure: Re-generate.
4411 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4413 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4415 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4417 * win32-low.c (win32_create_inferior): Set signal_pid.
4419 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4420 Pedro Alves <palves@redhat.com>
4422 Skip building gdbserver in a cross-configuration.
4423 * configure.srv: Set $gdbserver_host depending on whether $target
4424 is $host. Use $gdbserver_host instead of $host.
4426 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4428 * configure: Re-generate.
4430 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4432 * configure: Re-generate.
4434 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4436 * acinclude.m4: Update warning.m4 path.
4438 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4440 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4441 (handle_exception): Set siginfo_er.
4442 (win32_xfer_siginfo): New function.
4444 2020-02-07 Tom Tromey <tom@tromey.com>
4445 Pedro Alves <palves@redhat.com>
4447 * README: Update build documentation.
4448 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4450 * configure.ac: Update paths.
4451 * configure: Rebuild.
4452 * acinclude.m4: Update paths.
4453 * Makefile.in: Update include paths.
4454 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4455 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4456 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4457 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4458 (%-generated.c): Update paths.
4459 * Move entire directory from ../gdb/gdbserver.
4461 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4463 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4465 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4467 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4468 assignment instead of srv_linux_obj.
4470 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4472 * server.c (handle_qxfer_libraries): Write segment-address with
4475 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4477 * Makefile.in (install-strip): New target.
4478 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4479 * aclocal.m4: Regenerate.
4480 * configure: Regenerate.
4481 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4483 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4485 * Makefile.in (SFILES): Adjust paths to point to real files.
4486 (OBS): Move waitstatus.o to target/waitstatus.o.
4487 (TAGS): Transform paths appropriately.
4489 (nat/%.o): ... this pattern rule.
4491 (target/%.o): ... this pattern rule.
4492 * configure.srv: Adjust paths throughout to include nat/ prefix
4493 with the revant files.
4494 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4495 * configure: Regenerate.
4497 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4499 * Makefile.in (TAGS): Remove config files from the recipe.
4501 2020-01-14 Tom Tromey <tom@tromey.com>
4503 * configure: Rebuild.
4504 * configure.ac: Remove any checks that were added to common.m4.
4505 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4508 2020-01-14 Tom Tromey <tom@tromey.com>
4510 * server.h: Include config.h.
4511 * gdbreplay.c: Include config.h.
4512 * configure: Rebuild.
4513 * configure.ac: Don't source common.host.
4514 * acinclude.m4: Update path.
4515 * Makefile.in (INCSUPPORT): New variable.
4516 (INCLUDE_CFLAGS): Add INCSUPPORT.
4517 (SFILES): Update paths.
4518 (version-generated.c): Update path to create-version.sh.
4519 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4521 2020-01-14 Tom Tromey <tom@tromey.com>
4523 * configure.ac (LIBS): Use WIN32APILIBS.
4524 (USE_WIN32API): Don't define.
4525 * configure: Rebuild.
4527 2020-01-14 Tom Tromey <tom@tromey.com>
4529 * configure: Rebuild.
4531 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4533 * Makefile.in (%-generated.c): Remove rule for files from
4536 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4538 * configure: Re-generate.
4540 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4542 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4544 * tracepoint.c (stop_tracing, flush_trace_buffer,
4545 about_to_request_buffer_space, get_trace_state_variable_value,
4546 set_trace_state_variable_value, gdb_collect): Add declaration.
4548 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4550 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4551 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4552 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4553 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4554 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4557 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4559 * inferiors.c: Include gdbsupport/common-inferior.h.
4561 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4563 * hostio-errno.c: Include hostio.h.
4565 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4567 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4570 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4572 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4573 * linux-arm-tdesc.h: Include arch/arm.h.
4575 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4577 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4579 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4581 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4582 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4584 2020-01-10 Pedro Alves <palves@redhat.com>
4586 * fork-child.c (post_fork_inferior): Pass target down to
4588 * inferiors.c (switch_to_thread): Add process_stratum_target
4590 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4591 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4592 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4593 * remote-utils.c (prepare_resume_reply): Pass the target to
4595 * target.c (the_target): Now a process_stratum_target.
4596 (done_accessing_memory): Pass the target to switch_to_thread.
4597 (set_target_ops): Ajust to use process_stratum_target.
4598 * target.h (struct target_ops): Rename to ...
4599 (struct process_stratum_target): ... this.
4600 (the_target, set_target_ops): Adjust.
4601 (prepare_to_access_memory): Adjust comment.
4602 * win32-low.c (child_xfer_memory): Adjust to use
4603 process_stratum_target.
4604 (win32_target_ops): Now a process_stratum_target.
4606 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4607 Pedro Alves <palves@redhat.com>
4609 * win32-low.c (get_child_debug_event): Extract the fatal exception
4610 from the exit status and convert to the equivalent Posix signal
4612 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4613 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4615 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4617 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4619 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4621 * server.c (gdbserver_version): Change copyright year to 2020.
4622 * gdbreplay.c (gdbreplay_version): Likewise.
4624 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4626 * configure: Regenerate.
4627 * configure.ac: Quote variable arguments of test.
4629 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4631 * Makefile.in: Fix build with GNU Make 3.81
4633 2019-12-16 Tom Tromey <tromey@adacore.com>
4635 * server.c (get_exec_file): Constify result.
4637 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4639 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4640 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4641 * config.in: Regenerate.
4642 * configure: Regenerate.
4643 * configure.ac: Don't check for strerror.
4644 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4645 Call safe_strerror instead of strerror.
4646 * server.h (strerror): Remove this now-unnecessary declaration.
4647 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4649 (gdb_agent_helper_thread): Likewise.
4650 * utils.c (perror_with_name): Likewise.
4652 2019-11-26 Tom Tromey <tom@tromey.com>
4654 * configure, config.in: Rebuild.
4656 2019-11-26 Tom Tromey <tom@tromey.com>
4658 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4659 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4661 * configure, config.in: Rebuild.
4663 2019-11-26 Tom Tromey <tom@tromey.com>
4665 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4666 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4667 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4668 * acinclude.m4: Include ax_pthread.m4.
4669 * config.in, configure: Rebuild.
4671 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4673 * debug.c (debug_set_output): Call safe_strerror instead of
4675 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4676 (linux_kill_one_lwp): Likewise.
4677 (linux_detach_one_lwp): Likewise.
4678 (linux_wait_for_event_filtered): Likewise.
4679 (store_register): Likewise.
4680 * lynx-low.c (lynx_attach): Likewise.
4681 * mem-break.c (insert_memory_breakpoint): Likewise.
4682 (remove_memory_breakpoint): Likewise.
4683 (delete_fast_tracepoint_jump): Likewise.
4684 (set_fast_tracepoint_jump): Likewise.
4685 (uninsert_fast_tracepoint_jumps_at): Likewise.
4686 (reinsert_fast_tracepoint_jumps_at): Likewise.
4687 * nto-low.c (nto_xfer_memory): Likewise.
4688 (nto_resume): Likewise.
4690 2019-11-20 Luis Machado <luis.machado@linaro.org>
4692 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4693 instead of register count.
4694 * tdesc.c (tdesc_contains_feature): New function.
4695 * tdesc.h (tdesc_contains_feature): New prototype.
4697 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4699 * Makefile.in: Add safe-strerror.c.
4700 * configure: Regenerate.
4701 * configure.ac: Don't source common.host.
4703 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4705 * config.in: Regenerate.
4706 * configure: Regenerate.
4708 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4710 * ax.c (ax_printf): Handle size_t_arg.
4712 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4714 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4715 * mi/mi-main.c (output_cores): Likewise.
4716 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4717 (linux_xfer_osdata_modules): Likewise.
4718 * remote.c (register_remote_support_xml): Likewise.
4719 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4720 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4722 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4724 * configure: Regenerate.
4725 * configure.ac: Remove check for strerror_r.
4727 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4729 * config.in: Regenerate.
4730 * configure: Regenerate.
4731 * configure.ac: Also check for strerror_r.
4733 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4735 * ax.h (debug_agent): Remove duplicate declaration.
4737 2019-10-26 Tom de Vries <tdevries@suse.de>
4739 * linux-aarch64-low.c: Fix typos in comments.
4740 * linux-arm-low.c: Same.
4741 * linux-low.c: Same.
4742 * linux-ppc-low.c: Same.
4743 * proc-service.c: Same.
4746 * tracepoint.c: Same.
4747 * win32-low.c: Same.
4749 2019-10-25 Tom Tromey <tromey@adacore.com>
4751 * utils.c (xstrdup): Remove.
4753 2019-10-23 Tom Tromey <tom@tromey.com>
4755 * configure, config.in: Rebuild.
4757 2019-10-23 Tom Tromey <tom@tromey.com>
4759 * configure: Rebuild.
4760 * acinclude.m4: Use m4_include, not sinclude.
4762 2019-10-17 Tom Tromey <tromey@adacore.com>
4764 * configure: Rebuild.
4765 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4766 in AC_CONFIG_FILES invocation.
4767 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4770 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4772 * server.c: Include xml-builtin.h.
4773 (get_xml_features): Don't declare xml_builtins here.
4775 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4777 * Makefile.in: Remove references to vec-ipa.o.
4779 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4781 * Makefile.in: Remove references to vec.c.
4783 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4785 * server.c (server_waiting): Change to bool.
4786 (extended_protocol): Likewise.
4787 (response_needed): Likewise.
4788 (exit_requested): Likewise.
4789 (run_once): Likewise.
4790 (report_no_resumed): Likewise.
4791 (non_stop): Likewise.
4792 (disable_packet_vCont): Likewise.
4793 (disable_packet_Tthread): Likewise.
4794 (disable_packet_qC): Likewise.
4795 (disable_packet_qfThreadInfo): Likewise.
4796 (handle_general_set): Update.
4797 (handle_detach): Update.
4798 (handle_monitor_command): Update.
4799 (handle_query): Update.
4800 (captured_main): Update.
4801 (process_serial_event): Update.
4802 * server.h (server_waiting): Change to bool.
4803 (disable_packet_vCont): Likewise.
4804 (disable_packet_Tthread): Likewise.
4805 (disable_packet_qC): Likewise.
4806 (disable_packet_qfThreadInfo): Likewise.
4807 (run_once): Likewise.
4808 (non_stop): Likewise.
4809 * target.c (target_stop_and_wait): Update.
4811 2019-10-02 Tom Tromey <tromey@adacore.com>
4813 * Makefile.in (SFILES): Add common-inferior.c.
4814 (OBS): Add common-inferior.o.
4815 * server.c (startup_with_shell): Don't define.
4817 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4819 * linux-low.c (linux_low_read_btrace): Update for change to
4822 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4824 * debug.c (debug_threads): Remove comment in favor of the header.
4825 * debug.h (using_threads): Add declaration.
4826 (debug_threads): Add comment.
4827 * linux-aarch64-low.c: Include debug.h and remove declaration of
4829 * nto-low.c: Likewise.
4830 * remote-utils.c: Likewise.
4831 * thread-db.c: Likewise.
4833 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4835 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4836 and powerpc-cell64l-ipa.o.
4837 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4838 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4839 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4842 * spu-low.c: Remove file.
4844 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4845 (parse_spufs_run): Remove.
4846 (ppc_get_pc): Remove Cell/B.E. support.
4847 (ppc_set_pc): Likewise.
4848 (ppc_breakpoint_at): Likewise.
4849 (ppc_arch_setup): Likewise.
4850 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4851 tdesc_powerpc_cell32l.
4852 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4853 or init_registers_powerpc_cell32l.
4854 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4855 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4856 or init_registers_powerpc_cell32l.
4857 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4858 (init_registers_powerpc_cell32l): Remove prototype.
4859 (init_registers_powerpc_cell64l): Likewise.
4861 * target.h (struct target_ops): Remove qxfer_spu member.
4862 * server.c (handle_qxfer_spu): Remove.
4863 (qxfer_packets): Remove entry for "spu".
4864 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4865 * linux-low.c (SPUFS_MAGIC): Remove.
4866 (spu_enumerate_spu_ids): Remove.
4867 (linux_qxfer_spu): Remove.
4868 (linux_target_ops): Remove qxfer_spu member.
4869 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4870 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4871 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4873 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4875 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4876 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4877 * config.in: Regenerate.
4878 * configure: Regenerate.
4880 2019-08-15 Tom Tromey <tromey@adacore.com>
4882 * target.c (target_write_memory): Use gdb::byte_vector.
4884 2019-08-15 Tom Tromey <tromey@adacore.com>
4886 * tracepoint.c (write_inferior_data_pointer)
4887 (write_inferior_integer, write_inferior_int8)
4888 (write_inferior_uinteger, m_tracepoint_action_download)
4889 (r_tracepoint_action_download, x_tracepoint_action_download)
4890 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4891 (download_agent_expr, download_tracepoint_1)
4892 (download_trace_state_variables, upload_fast_traceframes): Update.
4893 * server.c (gdb_write_memory): Update.
4894 * remote-utils.c (relocate_instruction): Update.
4895 * proc-service.c (ps_pdwrite): Update.
4896 * mem-break.c (remove_memory_breakpoint)
4897 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4898 (uninsert_fast_tracepoint_jumps_at)
4899 (reinsert_fast_tracepoint_jumps_at): Update.
4900 * linux-x86-low.c (append_insns)
4901 (i386_install_fast_tracepoint_jump_pad)
4902 (amd64_write_goto_address, i386_write_goto_address): Update.
4903 * linux-s390-low.c (append_insns, s390_write_goto_address):
4905 * linux-ppc-low.c (ppc_relocate_instruction)
4906 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4907 (ppc_write_goto_address): Update.
4908 * linux-aarch64-low.c (append_insns): Update.
4909 * target.h (struct target_ops): Update.
4910 (write_inferior_memory): Don't declare.
4911 * target.c (target_write_memory): Rename from
4912 write_inferior_memory. Remove old target_write_memory.
4914 2019-08-15 Tom Tromey <tromey@adacore.com>
4916 * target.c (write_inferior_memory): Use std::vector.
4918 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4921 * configure.ac: Drop enable-libmcheck support.
4922 * configure, config.in: Rebuild.
4923 * acinclude.m4: Don't include it.
4925 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4927 * configure.srv: Remove Arm xml files.
4929 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4931 * configure.srv: Add new files. Remove xml generated files.
4932 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4934 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4935 * linux-aarch32-tdesc.c: New file.
4936 * linux-aarch32-tdesc.h: New file.
4937 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4938 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4939 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4940 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4941 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4942 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4943 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4944 (arm_read_description): Call arm_linux_read_description.
4945 (initialize_low_arch): Don't init registers.
4946 * linux-arm-tdesc.c: New file.
4947 * linux-arm-tdesc.h: New file.
4949 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4951 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4952 Move counter inside for.
4953 (arm_read_description): Check ptrace earlier.
4954 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4956 2019-07-09 Tom Tromey <tom@tromey.com>
4958 * configure: Rebuild.
4959 * configure.ac: Change common to gdbsupport.
4960 * acinclude.m4: Change common to gdbsupport.
4961 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4962 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4963 common to gdbsupport.
4964 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4965 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4966 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4967 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
4968 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
4969 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
4970 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
4971 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
4972 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
4973 common to gdbsupport.
4975 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4977 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
4979 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
4981 2019-07-04 Alan Hayward <alan.hayward@arm.com>
4983 * configure.srv: Remove legacy xml.
4984 * linux-aarch64-low.c (initialize_low_arch): Remove
4985 initialize_low_tdesc call.
4986 * linux-aarch64-tdesc-selftest.c: Remove file.
4987 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
4988 * linux-x86-low.c (initialize_low_arch): Remove
4989 initialize_low_tdesc call.
4990 * linux-x86-tdesc-selftest.c: Remove file.
4991 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
4993 2019-06-20 Tom de Vries <tdevries@suse.de>
4995 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
4996 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
4998 2019-06-19 Tom de Vries <tdevries@suse.de>
5000 * debug.h (debug_write): Change return type to ssize_t.
5001 * debug.c (debug_write): Same.
5003 2019-06-14 Tom Tromey <tom@tromey.com>
5005 * configure.ac: Use new path to gnulib.
5006 * configure: Rebuild.
5007 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5010 2019-06-11 Tom Tromey <tom@tromey.com>
5012 * Makefile.in (SFILES): Add alloc.c.
5014 (IPA_OBJS): Add alloc-ipa.o.
5015 (alloc-ipa.o): New target.
5016 (%.o: ../%.c): New pattern rule.
5018 2019-06-10 Tom Tromey <tromey@adacore.com>
5020 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5021 end warning with a newline.
5022 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5024 * thread-db.c (attach_thread): Don't end warning with a newline.
5025 (thread_db_notice_clone): Likewise.
5026 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5028 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5029 end warning with a newline.
5031 2019-06-04 Pedro Alves <palves@redhat.com>
5033 * server.c (captured_main): Use make_unique_xstrdup.
5035 2019-06-02 Tom Tromey <tom@tromey.com>
5037 * gdbreplay.c (fromhex): Remove.
5038 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5040 2019-05-29 Tom Tromey <tromey@adacore.com>
5042 * configure: Rebuild.
5044 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5046 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5047 sign extension code on 32-bit builds.
5049 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5052 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5054 2019-04-19 Tom Tromey <tom@tromey.com>
5056 * server.c (struct vstop_notif): Derive from notif_event.
5058 (queue_stop_reply): Update.
5059 (remove_all_on_match_ptid): Change type. Rewrite.
5060 (discard_queued_stop_replies): Rewrite.
5061 (in_queued_stop_replies_ptid): Change type.
5062 (in_queued_stop_replies): Rewrite.
5063 (notif_stop): Update.
5064 (queue_stop_reply_callback): Update.
5065 (captured_main): Don't call initialize_notif.
5066 (push_stop_notification): Update.
5067 * notif.c (notif_write_event, handle_notif_ack)
5068 (notif_event_enque, notif_push): Update.
5069 (notif_event_xfree, initialize_notif): Remove.
5070 * notif.h (struct notif_event): Include <list>, not
5072 (struct notif_server) <queue>: Now a std::list.
5073 (notif_event_p): Remove typedef.
5074 (initialize_notif): Don't declare.
5075 (struct notif_event): Add virtual destructor.
5077 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5079 * ax.c (ax_vdebug): Call debug_printf.
5080 * debug.c (debug_write): New function.
5081 * debug.h (debug_write): New declaration.
5082 * linux-low.c (sigchld_handler): Call debug_write.
5084 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5086 * debug.c (debug_set_output): New function.
5087 (debug_vprintf): Send output to debug_file.
5088 (debug_flush): Likewise.
5089 * debug.h (debug_set_output): New declaration.
5090 * server.c (handle_monitor_command): Add debug-file option.
5091 (captured_main): Likewise.
5093 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5095 * debug.c (remote_debug): Add definition.
5096 * debug.h (remote_debug): Add declaration.
5097 * hostio.c (remote_debug): Remove declaration.
5098 * remote-utils.c (struct ui_file): Likewise.
5099 (remote_debug): Likewise.
5100 * remote-utils.h (remote_debug): Likewise,
5101 * server.c (remote_debug): Remove definition.
5103 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5105 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5106 when using a 64-bit gdbserver.
5108 2019-04-09 Tom Tromey <tromey@adacore.com>
5110 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5112 2019-04-08 Tom Tromey <tom@tromey.com>
5114 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5116 (linux_resume_one_lwp): Likewise.
5118 2019-04-08 Tom Tromey <tom@tromey.com>
5120 * gdbreplay.c: Update.
5121 * linux-low.c: Update.
5124 2019-04-08 Tom Tromey <tom@tromey.com>
5126 * server.c: Use C++ exception handling.
5127 * linux-low.c: Use C++ exception handling.
5128 * gdbreplay.c: Use C++ exception handling.
5130 2019-04-08 Tom Tromey <tom@tromey.com>
5132 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5133 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5134 (captured_main, main): Update.
5135 * gdbreplay.c (main): Update.
5137 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5139 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5140 value in argument pointer, return 1 if the entry is found and 0
5141 otherwise. Move comment.
5142 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5143 * linux-low.h (linux_get_auxv): Declare.
5144 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5146 2019-04-05 Tom Tromey <tromey@adacore.com>
5148 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5151 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5153 * linux-low.c (AT_HWCAP2): Add define if not already included.
5155 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5157 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5158 (aarch64_arch_setup): Call linux_get_hwcap.
5159 * linux-arm-low.c (arm_get_hwcap): Remove function.
5160 (arm_read_description): Call linux_get_hwcap.
5161 * linux-low.c (linux_get_auxv): New function.
5162 (linux_get_hwcap): Likewise.
5163 (linux_get_hwcap2): Likewise.
5164 * linux-low.h (linux_get_hwcap): New declaration.
5165 (linux_get_hwcap2): Likewise.
5166 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5167 (ppc_arch_setup): Call linux_get_hwcap.
5168 * linux-s390-low.c (s390_get_hwcap): Remove function.
5169 (s390_arch_setup): Call linux_get_hwcap.
5171 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5172 Jiong Wang <jiong.wang@arm.com>
5174 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5175 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5177 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5179 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5180 Jiong Wang <jiong.wang@arm.com>
5182 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5183 (aarch64_get_hwcap): New function.
5184 (aarch64_arch_setup): Read APIA hwcap.
5186 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5187 Jiong Wang <jiong.wang@arm.com>
5189 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5190 (initialize_low_tracepoint): Likewise.
5191 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5192 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5193 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5194 (aarch64_linux_read_description): Likewise.
5195 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5197 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5199 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5200 i386_create_target_description for 'segments' parameter.
5201 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5202 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5203 * win32-i386-low.c (i386_arch_setup): Likewise.
5205 2019-03-12 Tom Tromey <tromey@adacore.com>
5207 * linux-low.c (iterate_over_lwps): Update.
5209 2019-03-06 Tom Tromey <tom@tromey.com>
5211 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5212 (captured_main): Use SCOPE_EXIT.
5214 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5216 * configure.srv: Use '$enable_unittest' instead of '$development'
5217 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5220 2019-02-27 Tom Tromey <tromey@adacore.com>
5222 * gdbreplay.c (logchar): Handle \r\n.
5224 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5226 * linux-low.c (linux_attach): Add process before lwp.
5227 * server.c (attach_inferior): Check if already attached.
5229 2019-02-07 Tom Tromey <tom@tromey.com>
5231 * x86-tdesc.h: Rename include guard.
5232 * x86-low.h: Add include guard.
5233 * wincecompat.h: Rename include guard.
5234 * win32-low.h: Add include guard.
5235 * utils.h: Rename include guard.
5236 * tracepoint.h: Rename include guard.
5237 * tdesc.h: Rename include guard.
5238 * target.h: Rename include guard.
5239 * server.h: Rename include guard.
5240 * remote-utils.h: Rename include guard.
5241 * regcache.h: Rename include guard.
5242 * nto-low.h: Rename include guard.
5243 * notif.h: Add include guard.
5244 * mem-break.h: Rename include guard.
5245 * lynx-low.h: Add include guard.
5246 * linux-x86-tdesc.h: Add include guard.
5247 * linux-s390-tdesc.h: Add include guard.
5248 * linux-ppc-tdesc-init.h: Add include guard.
5249 * linux-low.h: Add include guard.
5250 * linux-aarch64-tdesc.h: Add include guard.
5251 * linux-aarch32-low.h: Add include guard.
5252 * inferiors.h: Rename include guard.
5253 * i387-fp.h: Rename include guard.
5254 * hostio.h: Rename include guard.
5255 * gdbthread.h: Rename include guard.
5256 * gdb_proc_service.h: Rename include guard.
5257 * event-loop.h: Rename include guard.
5258 * dll.h: Rename include guard.
5259 * debug.h: Rename include guard.
5260 * ax.h: Rename include guard.
5262 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5265 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5266 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5268 2019-01-25 Tom Tromey <tom@tromey.com>
5270 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5272 2019-01-25 Tom Tromey <tom@tromey.com>
5274 * win32-low.c: Fix common/ includes.
5275 * win32-i386-low.c: Fix common/ includes.
5276 * tracepoint.c: Fix common/ includes.
5277 * thread-db.c: Fix common/ includes.
5278 * target.h: Fix common/ includes.
5279 * symbol.c: Fix common/ includes.
5280 * spu-low.c: Fix common/ includes.
5281 * server.h: Fix common/ includes.
5282 * server.c: Fix common/ includes.
5283 * remote-utils.c: Fix common/ includes.
5284 * regcache.h: Fix common/ includes.
5285 * regcache.c: Fix common/ includes.
5286 * nto-x86-low.c: Fix common/ includes.
5287 * notif.h: Fix common/ includes.
5288 * mem-break.h: Fix common/ includes.
5289 * lynx-low.c: Fix common/ includes.
5290 * lynx-i386-low.c: Fix common/ includes.
5291 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5292 * linux-x86-low.c: Fix common/ includes.
5293 * linux-low.c: Fix common/ includes.
5294 * inferiors.h: Fix common/ includes.
5295 * i387-fp.c: Fix common/ includes.
5296 * hostio.c: Fix common/ includes.
5297 * hostio-errno.c: Fix common/ includes.
5298 * gdbthread.h: Fix common/ includes.
5299 * gdbreplay.c: Fix common/ includes.
5300 * fork-child.c: Fix common/ includes.
5301 * event-loop.c: Fix common/ includes.
5303 (enum gdb_agent_op): Fix common/ includes.
5305 2019-01-21 Tom Tromey <tom@tromey.com>
5307 * tracepoint.c: Fix includes.
5308 * remote-utils.c: Fix includes.
5309 * linux-x86-low.c: Fix includes.
5311 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5313 * gdbreplay.c (gdbreplay_version): Update copyright year in
5315 * server.c (gdbserver_version): Likewise.
5317 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5319 * linux-low.c (add_lwp): Switch ordering.
5321 2018-11-29 Tom Tromey <tom@tromey.com>
5323 * win32-low.c (win32_join): Take pid, not process.
5324 * target.h (struct target_ops) <join>: Change argument type.
5325 (join_inferior): Change argument name.
5326 * spu-low.c (spu_join): Take pid, not process.
5327 * server.c (handle_detach): Preserve pid before destroying
5329 * lynx-low.c (lynx_join): Take pid, not process.
5330 * linux-low.c (linux_join): Take pid, not process.
5332 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5334 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5335 (aarch64_cannot_fetch_register): Likewise.
5336 (struct linux_target_ops): Update references.
5338 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5340 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5342 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5344 * configure.srv (ipa_ppc_linux_regobj): Add
5345 powerpc-isa207-htm-vsx32l-ipa.o and
5346 powerpc-isa207-htm-vsx64l-ipa.o.
5347 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5348 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5349 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5350 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5351 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5352 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5353 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5354 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5355 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5356 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5357 (init_registers_powerpc_isa207_htm_vsx32l)
5358 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5359 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5360 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5361 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5362 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5363 (ppc_store_tm_ctarregset): New functions.
5364 (ppc_regsets): Add entries for HTM regsets.
5365 (ppc_arch_setup): Set htm in features struct when needed. Set
5366 sizes for the HTM regsets.
5367 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5368 (initialize_low_arch): Call
5369 init_registers_powerpc_isa207_htm_vsx32l and
5370 init_registers_powerpc_isa207_htm_vsx64l.
5371 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5372 PPC_TDESC_ISA207_HTM_VSX.
5373 (initialize_low_tracepoint): Call
5374 init_registers_powerpc_isa207_htm_vsx32l and
5375 init_registers_powerpc_isa207_htm_vsx64l.
5377 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5379 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5380 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5381 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5382 (ppc_store_pmuregset): New functions.
5383 (ppc_regsets): Add entries for ebb and pmu regsets.
5384 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5385 pmu regsets are available. Set sizes for these regsets.
5387 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5389 * configure.srv (ipa_ppc_linux_regobj): Add
5390 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5391 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5392 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5393 rs6000/powerpc-isa207-vsx32l.xml, and
5394 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5395 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5396 <PPC_TDESC_ISA207_VSX>: New enum value.
5397 (init_registers_powerpc_isa207_vsx32l): Declare.
5398 (init_registers_powerpc_isa207_vsx64l): Declare.
5399 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5400 (ppc_store_tarregset): New function.
5401 (ppc_regsets): Add entry for the TAR regset.
5402 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5403 size for the TAR regsets.
5404 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5405 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5406 and init_registers_powerpc_isa207_vsx64l.
5407 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5408 (initialize_low_tracepoint): Call
5409 init_registers_powerpc_isa207_vsx32l and
5410 init_registers_powerpc_isa207_vsx64l.
5412 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5413 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5415 * configure.srv (ipa_ppc_linux_regobj): Add
5416 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5417 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5418 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5419 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5420 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5421 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5422 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5423 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5424 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5425 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5426 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5427 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5428 (ppc_hwcap): Add comment.
5429 (ppc_hwcap2): New global.
5430 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5431 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5432 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5433 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5434 when needed. Set sizes for the the DSCR and PPR regsets.
5435 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5436 (initialize_low_arch): Call
5437 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5438 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5439 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5440 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5441 (initialize_low_tracepoint): Call
5442 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5443 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5445 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5447 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5449 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5450 Simon Marchi <simark@simark.ca>
5452 * acinclude.m4: Include "../selftest.m4".
5453 * configure: Regenerate.
5454 * configure.ac: Use "GDB_AC_SELFTEST".
5455 * configure.srv: Use "$enable_unittests" instead of
5456 "$development" when checking whether unit tests have been
5458 * server.c (captured_main): Update message informing that
5459 selftests have been disabled.
5461 2018-10-04 Tom Tromey <tom@tromey.com>
5463 * configure: Rebuild.
5465 2018-10-04 Tom Tromey <tom@tromey.com>
5467 * server.c (handle_status): Rename inner "thread".
5468 (process_serial_event): Declare "res" in 'm' case.
5469 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5470 (iterate_over_lwps): Rename inner "thread".
5471 (linux_qxfer_libraries_svr4): Rename inner "len".
5472 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5474 2018-10-01 Gary Benson <gbenson@redhat.com>
5476 * gdb_proc_service.h: Moved common code to
5477 common/gdb_proc_service.h.
5479 2018-10-01 Gary Benson <gbenson@redhat.com>
5481 * gdb_proc_service.h: Synchronize comments and whitespace with
5482 GDB's version of this file.
5484 2018-09-25 Tom Tromey <tom@tromey.com>
5486 * configure: Rebuild.
5487 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5489 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5491 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5492 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5493 ($(IPA_LIB)): Sort IPA_OBJS.
5495 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5497 * Makefile.in: Remove references to $(ADD_DEPS).
5499 2018-09-16 Tom Tromey <tom@tromey.com>
5501 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5503 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5506 2018-09-05 Tom Tromey <tom@tromey.com>
5508 * configure: Rebuild.
5510 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5513 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5515 2018-08-27 Tom Tromey <tom@tromey.com>
5518 * configure: Rebuild.
5520 2018-08-27 Tom Tromey <tom@tromey.com>
5522 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5523 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5524 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5525 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5526 (s390x_emit_stack_adjust): Add casts to unsigned char.
5528 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5532 * server.h (struct client_state) <disable_randomization>:
5535 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5537 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5539 (mips_supply_ptrace_register): Likewise.
5541 2018-07-22 Tom Tromey <tom@tromey.com>
5543 * configure: Rebuild.
5545 2018-07-22 Tom Tromey <tom@tromey.com>
5547 * win32-low.c (win32_create_inferior): Remove unused variables.
5548 * gdbreplay.c (remote_open): Remove unused variable.
5549 * remote-utils.c (remote_prepare): Remove unused variable.
5550 * x86-tdesc.h (X86_TDESC_H): Define.
5551 (amd64_expedite_regs): Define conditionally.
5552 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5553 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5554 * remote-utils.c (readchar): Remove unused variable.
5556 2018-07-13 Pedro Alves <palves@redhat.com>
5558 * linux-low.c (linux_kill): Change parameter to process_info
5559 pointer instead of pid. Adjust.
5560 * lynx-low.c (lynx_kill): Likewise.
5561 * nto-low.c (nto_kill): Likewise.
5562 * spu-low.c (spu_kill): Likewise.
5563 * win32-low.c (win32_kill): Likewise.
5564 * server.c (handle_v_kill, kill_inferior_callback)
5565 (detach_or_kill_for_exit): Adjust.
5566 * target.c (kill_inferior): Change parameter to process_info
5567 pointer instead of pid. Adjust.
5568 * target.h (struct target_ops) <kill>: Change parameter to
5569 process_info pointer instead of pid. Adjust all implementations
5571 (kill_inferior): Likewise.
5573 2018-07-13 Pedro Alves <palves@redhat.com>
5575 * linux-low.c (linux_detach, linux_join): Change parameter to
5576 process_info pointer instead of pid. Adjust.
5577 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5578 * nto-low.c (nto_detach): Likewise.
5579 * spu-low.c (spu_detach, spu_join): Likewise.
5580 * win32-low.c (win32_detach, win32_join): Likewise.
5581 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5582 * target.h (struct target_ops) <detach, join>: Change parameter to
5583 process_info pointer instead of pid. Adjust all implementations
5585 (detach_inferior, join_inferior): Rename 'pid' parameter to
5588 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5589 Jan Kratochvil <jan.kratochvil@redhat.com>
5590 Paul Fertser <fercerpav@gmail.com>
5591 Tsutomu Seki <sekiriki@gmail.com>
5593 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5594 (OBS): Add 'common/netstuff.o'.
5595 (GDBREPLAY_OBS): Likewise.
5596 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5597 (remote_open): Implement support for IPv6
5599 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5601 (handle_accept_event): Accept connections from IPv6 sources.
5602 (remote_prepare): Handle IPv6-style hostnames; implement
5603 support for IPv6 connections.
5604 (remote_open): Implement support for printing connections from
5607 2018-07-11 Pedro Alves <palves@redhat.com>
5610 * mem-break.c (any_persistent_commands): Add process_info
5611 parameter and use it instead of relying on the current process.
5612 Change return type to bool.
5613 * mem-break.h (any_persistent_commands): Add process_info
5614 parameter and change return type to bool.
5615 * server.c (handle_detach): Remove require_running_or_return call.
5616 Look up the process_info for the process we're about to detach.
5617 If not found, return back error to GDB. Adjust
5618 any_persistent_commands call to pass down a process pointer.
5620 2018-07-11 Pedro Alves <palves@redhat.com>
5622 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5623 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5624 instead of collect_register_by_name.
5625 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5626 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5628 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5629 Pedro Alves <palves@redhat.com>
5631 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5633 2018-07-03 Tom Tromey <tom@tromey.com>
5635 * linux-low.c: Update.
5636 * lynx-low.c: Update.
5637 * mem-break.c: Update.
5638 * nto-low.c: Update.
5639 * remote-utils.c: Update.
5641 * spu-low.c: Update.
5643 * win32-low.c: Update.
5645 2018-07-03 Tom Tromey <tom@tromey.com>
5649 2018-07-03 Tom Tromey <tom@tromey.com>
5651 * linux-low.c: Update.
5653 2018-07-03 Tom Tromey <tom@tromey.com>
5657 2018-07-03 Tom Tromey <tom@tromey.com>
5659 * linux-low.c: Update.
5660 * linux-mips-low.c: Update.
5661 * lynx-low.c: Update.
5662 * nto-low.c: Update.
5663 * remote-utils.c: Update.
5665 * spu-low.c: Update.
5667 * thread-db.c: Update.
5669 2018-07-03 Tom Tromey <tom@tromey.com>
5671 * linux-low.c: Update.
5672 * linux-mips-low.c: Update.
5673 * lynx-low.c: Update.
5674 * mem-break.c: Update.
5675 * nto-low.c: Update.
5676 * remote-utils.c: Update.
5678 * spu-low.c: Update.
5680 * tracepoint.c: Update.
5682 2018-07-03 Tom Tromey <tom@tromey.com>
5684 * linux-low.c: Update.
5685 * linux-ppc-low.c: Update.
5686 * linux-x86-low.c: Update.
5687 * proc-service.c: Update.
5689 * spu-low.c: Update.
5690 * thread-db.c: Update.
5691 * win32-low.c: Update.
5693 2018-07-03 Tom Tromey <tom@tromey.com>
5695 * linux-low.c: Update.
5696 * lynx-low.c: Update.
5697 * nto-low.c: Update.
5698 * remote-utils.c: Update.
5699 * spu-low.c: Update.
5700 * thread-db.c: Update.
5701 * win32-low.c: Update.
5703 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5705 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5706 parameter in call to 'amd64_create_target_description'.
5708 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5710 * x86-tdesc.h: Remove executable permission flag.
5712 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5714 * configure.ac: Remove AC_PREREQ, add missing quoting.
5715 * configure: Re-generate.
5716 * config.in: Re-generate.
5717 * aclocal.m4: Re-generate.
5719 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5721 * tracepoint.h (current_traceframe): Remove declaration.
5723 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5725 * linux-aarch64-low.c (is_sve_tdesc): New function.
5726 (aarch64_sve_regs_copy_to_regcache): Likewise.
5727 (aarch64_sve_regs_copy_from_regcache): Likewise.
5728 (aarch64_regs_info): Add SVE checks.
5729 (initialize_low_arch): Initialize SVE.
5731 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5733 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5735 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5737 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5738 (initialize_low_tracepoint): Likewise
5739 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5740 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5742 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5744 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5746 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5748 * server.h (PBUFSIZ): Increase size
5750 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5752 * regcache.c (regcache::raw_compare): New function.
5753 * regcache.h (regcache::raw_compare): New declaration.
5755 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5757 * regcache.c (new_register_cache): Use new.
5758 (free_register_cache): Use delete.
5759 (register_data): Use const.
5760 (supply_register): Move body inside regcache.
5761 (regcache::raw_supply): New override function.
5762 (collect_register): Move body inside regcache.
5763 (regcache::raw_collect): New override function.
5764 (regcache::get_register_status): New override function.
5765 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5767 2018-06-09 Tom Tromey <tom@tromey.com>
5769 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5771 (event_queue): Use std::queue.
5772 (gdb_event_xfree): Remove.
5773 (initialize_event_loop, process_event, wait_for_event): Update.
5775 2018-06-08 Stan Cox <scox@redhat.com>
5777 * win32-low.c (win32_create_inferior): last_ptid and last_status
5778 moved to client_state.
5780 2018-06-08 Pedro Alves <palves@redhat.com>
5782 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5783 common/common-exceptions.o, common/common-utils.o,
5784 common/errors.o, common/print-utils.o and utils.o.
5785 * gdbreplay.c: Include "common-defs.h" instead of the two
5786 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5787 string.h or alloca.h.
5788 (perror_with_name): Delete.
5789 (remote_open): Use xstrdup instead of strdup.
5790 (main): Rename to ...
5791 (captured_main): ... this.
5794 2018-06-08 Tom Tromey <tom@tromey.com>
5796 * linux-low.c (linux_low_read_btrace): Update.
5798 2018-06-04 Stan Cox <scox@redhat.com>
5800 * server.h (struct client_state): New.
5801 * server.c (cont_thread, general_thread, multi_process)
5802 (report_fork_events, report_vfork_events, report_exec_events)
5803 (report_thread_events, swbreak_feature, hwbreak_feature)
5804 (vCont_supported, disable_randomization, pass_signals)
5805 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5806 Moved to client_state.
5807 * remote-utils.c (remote_debug, noack_mode)
5808 (transport_is_reliable): Moved to client_state.
5809 * tracepoint.c (current_traceframe): Moved to client_state.
5812 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5813 linux-low.c, remote-utils.h, target.c: Use client_state.
5815 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5817 * configure.srv: Add new c/h file.
5819 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5821 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5824 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5826 * gdb.arch/mips-fpregset-core.exp: New test.
5827 * gdb.arch/mips-fpregset-core.c: New test source.
5829 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5832 * hostio.c (require_int): Do not report overflow for integers
5833 between 0xfffffff and 0x7fffffff.
5835 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5837 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5838 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5839 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5841 (the_low_target): Wire them.
5843 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5845 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5846 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5847 mode. Call collect_register_by_name with vscr using
5848 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5849 (ppc_store_vrregset): Add and set vscr_offset variable as in
5850 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5853 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5855 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5856 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5857 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5859 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5861 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5862 (ppc_store_vsxregset): Likewise.
5863 (ppc_fill_vrregset): Likewise.
5864 (ppc_store_vrregset): Likewise.
5865 (ppc_fill_evrregset): Likewise.
5866 (ppc_store_evrregset): Likewise.
5867 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5868 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5871 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5873 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5874 wordsize of the inferior. Call ppc_linux_target_wordsize.
5876 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5878 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5879 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5880 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5881 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5882 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5883 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5884 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5885 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5886 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5887 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5888 (tdesc_powerpc_e500l): Remove.
5889 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5890 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5891 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5892 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5894 (ppc_arch_setup): Remove target description matching code. Fill a
5895 ppc_linux_features struct and call ppc_linux_match_description
5898 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5900 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5901 width of the requested register exceeds the width of the
5903 (mips_cannot_store_register): Likewise.
5905 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5907 * linux-mips-low.c (mips_fetch_register): New function. Update
5909 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5910 (the_low_target): Wire `mips_fetch_register'.
5912 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5914 * lynx-i386-low.c (LYNXOS_178): New macro.
5915 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5916 the layout on LynxOS-178.
5917 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5918 handle floating point registers that are not supported by
5921 2018-05-10 Tom Tromey <tom@tromey.com>
5923 * configure: Rebuild.
5925 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5928 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5929 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5930 Use it to set the expedite_regs field in the given tdesc.
5931 * x86-tdesc.h: New file.
5932 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5933 Adjust following the addition of the new expedite_regs parameter
5934 to init_target_desc.
5935 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5936 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5937 (i386_linux_read_description, amd64_linux_read_description):
5938 Adjust following the addition of the new expedite_regs parameter
5939 to init_target_desc.
5940 * lynx-i386-low.c: #include "x86-tdesc.h".
5941 (lynx_i386_arch_setup): Adjust following the addition of the new
5942 expedite_regs parameter to init_target_desc.
5943 * nto-x86-low.c: #include "x86-tdesc.h".
5944 (nto_x86_arch_setup): Adjust following the addition of the new
5945 expedite_regs parameter to init_target_desc.
5946 * win32-i386-low.c: #include "x86-tdesc.h".
5947 (i386_arch_setup): Adjust following the addition of the new
5948 expedite_regs parameter to init_target_desc.
5950 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5953 * win32-low.c (win32_create_inferior): Add call to my_wait
5954 setting last_status global.
5956 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5959 * win32-low.c (create_process): Only call gdb_tilde_expand if
5960 inferior_cwd is not NULL.
5962 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5964 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5965 registers to the cache if their values have changed.
5966 (i387_xsave_to_cache): Provide default values for x87 control
5967 registers when these features are available, but disabled.
5968 * regcache.c (supply_register_by_name_zeroed): New function.
5969 * regcache.h (supply_register_by_name_zeroed): Declare new
5972 2018-05-07 Tom Tromey <tom@tromey.com>
5974 * configure: Rebuild.
5976 2018-05-04 Tom Tromey <tom@tromey.com>
5978 * configure: Rebuild.
5980 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5981 Pedro Alves <palves@redhat.com>
5983 * linux-aarch64-low.c (aarch64_stopped_data_address):
5986 2018-04-27 Tom Tromey <tom@tromey.com>
5988 * configure: Rebuild.
5990 2018-04-23 Tom Tromey <tom@tromey.com>
5992 * configure: Rebuild.
5994 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
5996 * Makefile.in (depcomp): Add "..".
5997 (all_deps_files): New and use it.
5999 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6001 * configure.srv (aarch64*-*-linux*): Don't include xml.
6002 (i[34567]86-*-cygwin*): Likewise.
6003 (i[34567]86-*-linux*): Likewise.
6004 (i[34567]86-*-lynxos*): Likewise.
6005 (i[34567]86-*-mingw32ce*): Likewise.
6006 (i[34567]86-*-mingw*): Likewise.
6007 (i[34567]86-*-nto*): Likewise.
6008 (tic6x-*-uclinux): Likewise.
6009 (x86_64-*-linux*): Likewise.
6010 (x86_64-*-mingw*): Likewise.
6011 (x86_64-*-cygwin*): Likewise.
6013 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6015 * tdesc.c: Remove xml parameter.
6017 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6019 * server.c (get_features_xml): Remove cast.
6020 * tdesc.c (void target_desc::accept): Fill in function.
6021 (tdesc_get_features_xml): Remove old xml creation.
6022 (print_xml_feature::visit_pre): Add xml vistor.
6023 * tdesc.h (struct target_desc): Make xmltarget mutable.
6024 (tdesc_get_features_xml): Remove declaration.
6026 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6028 * tdesc.c (tdesc_architecture_name): Add new function.
6029 (tdesc_osabi_name): Likewise.
6030 (tdesc_get_features_xml): Use new functions.
6032 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6034 * tdesc.c (tdesc_create_flags): Remove.
6035 (tdesc_add_flag): Likewise.
6036 (tdesc_named_type): Likewise.
6037 (tdesc_create_union): Likewise.
6038 (tdesc_create_struct): Likewise.
6039 (tdesc_create_vector): Likewise.
6040 (tdesc_add_bitfield): Likewise.
6041 (tdesc_add_field): Likewise.
6042 (tdesc_set_struct_size): Likewise.
6044 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6046 * tdesc.c (~target_desc): Remove implictly deleted items.
6047 (init_target_desc): Iterate all features.
6048 (tdesc_get_features_xml): Use vector.
6049 (tdesc_create_feature): Create feature.
6050 * tdesc.h (tdesc_feature) Remove
6051 (target_desc): Add features.
6053 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6055 * Makefile.in: Add common/tdesc.c
6056 * tdesc.c (init_target_desc): init all reg_defs from register
6058 (tdesc_create_reg): Create tdesc_reg.
6059 * tdesc.h (tdesc_feature): Add register vector.
6061 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6063 * tdesc.h (struct target_desc) <features>: Change type to
6064 std::vector<std::string>.
6065 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6067 (tdesc_get_features_xml): Likewise.
6068 (tdesc_create_feature): Likewise.
6070 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6072 * regcache.c (find_register_by_number): Return a ref.
6073 (find_regno): Use references.
6074 (register_size): Likewise.
6075 (register_data): Likewise.
6076 * tdesc.c (target_desc::~target_desc): Remove free calls.
6077 (target_desc::operator==): Use std::vector compare.
6078 (init_target_desc): Use reference.
6079 (tdesc_create_reg): Use reg constructors.
6080 * tdesc.h (struct target_desc): Replace pointer with object.
6082 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6084 * regcache.c (find_register_by_number): Make static.
6085 (find_regno): Use find_register_by_number
6086 * regcache.h (struct reg): Remove declaration.
6088 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6090 * tdesc.c (target_desc::~target_desc): Move to here.
6091 (target_desc::operator==): Likewise.
6092 * tdesc.h (target_desc::~target_desc): Move from here.
6093 (target_desc::operator==): Likewise.
6095 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6097 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6099 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6101 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6103 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6104 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6105 and init_registers_s390_gs_linux64.
6107 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6109 * linux-s390-low.c (s390_fill_gs): Remove function.
6110 (s390_fill_gsbc): Remove function.
6111 (s390_regsets): Set fill functions for the guarded storage regsets
6114 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6116 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6117 the word size. Add comment.
6118 (s390_get_wordsize): New function.
6119 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6120 pswm with it. Instead, use s390_get_wordsize to determine the
6121 word size first and derive the correct tdesc from that directly.
6123 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6125 * Makefile.in: Include silent-rules.mk.
6126 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6127 (COMPILE): Add ECHO_CXX.
6128 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6129 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6130 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6131 (version-generated.c): Add ECHO_GEN.
6132 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6133 (IPAGENT_COMPILE): Add ECHO_CXX.
6134 (%-generated.c): Add ECHO_REGDAT.
6136 2018-03-14 Tom Tromey <tom@tromey.com>
6139 * ax.c (ax_printf): Special case for NULL.
6141 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6143 * linux-low.c (linux_qxfer_libraries_svr4): Use
6144 xml_escape_text_append.
6146 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6148 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6150 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6152 * server.c (handle_general_set): Remove unnecessary xstrdup.
6154 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6156 * server.c (parse_debug_format_options): Adjust to
6157 delim_string_to_char_ptr_vec changes.
6158 * thread-db.c (thread_db_load_search): Adjust to
6159 dirnames_to_char_ptr_vec changes.
6161 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6163 * target.h (target_enable_btrace, target_disable_btrace)
6164 (target_read_btrace, target_read_btrace_conf): Turn macro into
6165 inline function. Throw error if target method is not defined.
6166 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6167 check for btrace target method. Be prepared to handle exceptions
6168 from btrace target methods.
6170 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6172 * server.c (captured_main): Change order of error message printed
6173 when the current working directory cannot be found.
6175 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6177 * server.c: Include "filenames.h" and "pathstuff.h".
6178 (program_name): Delete variable.
6179 (program_path): New anonymous class.
6180 (get_exec_wrapper): Use "program_path" instead of
6182 (handle_v_run): Likewise.
6183 (captured_main): Likewise.
6184 (process_serial_event): Likewise.
6186 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6188 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6189 (OBJS): Add "pathstuff.o".
6190 * server.c (current_directory): New global variable.
6191 (captured_main): Initialize "current_directory".
6193 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6195 * tdesc.c: Use common/tdesc.h.
6196 * tdesc.h: Likewise.
6198 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6199 Simon Marchi <simon.marchi@ericsson.com>
6201 * Makefile.in: Switch order of make rules.
6203 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6205 * Makefile.in: Add common directory in build.
6206 * configure.ac: Add common reference.
6207 * configure: Regenerate.
6209 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6211 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6212 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6213 * spu-low.c (spu_target_ops): Likewise.
6214 * win32-low.c (win32_target_ops): Likewise.
6215 * server.c (supported_btrace_packets): Report packets unconditionally.
6216 * target.h (target_ops) <supports_btrace>: Remove.
6217 (target_supports_btrace): Remove.
6219 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6221 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6222 (handle_btrace_disable): Change return type to void. Use exceptions
6224 (handle_btrace_general_set): Catch exception and copy message to
6227 2018-02-08 Tom Tromey <tom@tromey.com>
6229 * linux-low.c (install_software_single_step_breakpoints): Use
6230 make_scoped_restore.
6231 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6232 (do_restore_current_thread_cleanup): Remove.
6233 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6236 2018-02-08 Tom Tromey <tom@tromey.com>
6238 * mem-break.c (set_raw_breakpoint_at): Use
6239 gdb::unique_xmalloc_ptr.
6241 2018-01-30 Pedro Alves <palves@redhat.com>
6244 * target.c (target_terminal::terminal_state): Rename to ...
6245 (target_terminal::m_terminal_state): ... this.
6247 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6249 * linux-low.c (handle_extended_wait): Surround call to
6250 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6252 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6254 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6255 linux_ptrace_attach_fail_reason_string now returning an
6257 (linux_attach): Likewise.
6258 * thread-db.c (attach_thread): Likewise.
6260 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6263 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6264 checking for fs_base/gs_base fields in struct user_regs_struct.
6265 * configure: Regenerate.
6267 2018-01-16 Yao Qi <yao.qi@linaro.org>
6270 * linux-low.c (fetch_register): Call supply_register instead of
6273 2018-01-08 Yao Qi <yao.qi@linaro.org>
6274 Simon Marchi <simon.marchi@ericsson.com>
6276 * Makefile.in (OBS): Remove selftest.o.
6277 * configure.ac: Set srv_selftest_objs if $development is true.
6278 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6279 * configure: Re-generated.
6280 * server.c (captured_main): Wrap variable selftest_filter with
6283 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6285 * server.c (parse_debug_format_options): Return std::string.
6286 (handle_monitor_command, captured_main): Adjust.
6288 2018-01-05 Pedro Alves <palves@redhat.com>
6291 * server.c (captured_main): Pass quiet=false to
6292 save_original_signals_state.
6294 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6296 * gdbreplay.c (gdbreplay_version): Update copyright year in
6298 * server.c (gdbserver_version): Likewise.
6300 2017-12-08 Tom Tromey <tom@tromey.com>
6302 * ax.c (ax_printf): Update.
6304 2017-12-07 Yao Qi <yao.qi@linaro.org>
6306 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6307 aarch64_linux_read_description.
6308 * linux-amd64-ipa.c (idx2mask): New array.
6309 (get_ipa_tdesc): Move idx2mask out.
6310 (initialize_low_tracepoint): Initialize target descriptions.
6311 * linux-i386-ipa.c (idx2mask): New array.
6312 (get_ipa_tdesc): Move idx2mask out.
6313 (initialize_low_tracepoint): Initialize target descriptions.
6315 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6317 * tdesc.c (struct tdesc_type): Change return type.
6318 (tdesc_add_flag): Change parameter type.
6319 (tdesc_add_bitfield): Likewise.
6320 (tdesc_add_field): Likewise.
6321 (tdesc_set_struct_size): Likewise.
6323 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6325 * regcache.c (registers_to_string): Remove unused variable.
6327 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6329 * inferiors.c (for_each_inferior_with_data): Remove.
6330 * inferiors.h (for_each_inferior_with_data): Remove.
6331 * server.c (handle_qxfer_threads_worker): Change parameter type.
6332 (handle_qxfer_threads_proper): Use for_each_thread.
6334 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6336 * inferiors.c (for_each_inferior): Remove.
6337 (clear_inferiors): Use for_each_thread.
6338 * inferiors.h (for_each_inferior): Remove.
6339 * linux-low.c (linux_wait_for_event_filtered): Use
6341 (linux_stabilize_threads): Likewise.
6342 * regcache.c (regcache_release): Likewise.
6343 * server.c (gdb_wants_all_threads_stopped): Likewise.
6344 (clear_pending_status_callback): Remove.
6345 (handle_status): Use for_each_thread.
6346 (captured_main): Likewise.
6347 * win32-low.c (child_init_thread_list): Likewise.
6348 (win32_clear_inferiors): Likewise.
6349 (fake_breakpoint_event): Likewise.
6351 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6353 * inferiors.h (find_inferior): Remove.
6354 * inferiors.c (find_inferior): Remove.
6356 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6358 * linux-low.c (resume_status_pending_p): Update comment.
6359 (need_step_over_p): Update comment.
6361 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6363 * linux-low.c (proceed_one_lwp): Return void, change parameter
6365 (unsuspend_and_proceed_one_lwp): Likewise.
6366 (proceed_all_lwps): Use for_each_thread.
6367 (unstop_all_lwps): Likewise.
6369 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6371 * linux-low.c (linux_resume_one_thread): Return void, take
6373 (linux_resume): Use for_each_thread.
6375 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6377 * linux-low.c (send_sigstop_callback): Return void, change
6378 parameter type. Rename to...
6379 (send_sigstop): ... this.
6380 (suspend_and_send_sigstop_callback): Return void, change parameter
6382 (suspend_and_send_sigstop): ... this.
6383 (stop_all_lwps): Use for_each_thread.
6385 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6387 * linux-low.c (lwp_running): Return bool, remove unused
6389 (linux_stabilize_threads): Use find_thread.
6391 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6393 * linux-low.c (select_singlestep_lwp_callback): Remove.
6394 (count_events_callback): Remove.
6395 (select_event_lwp_callback): Remove.
6396 (select_event_lwp): Use find_thread/for_each_thread.
6398 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6400 * linux-low.c (not_stopped_callback): Return bool, take filter
6402 (linux_wait_for_event_filtered): Use find_thread.
6403 (linux_wait_1): Likewise.
6405 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6407 * linux-low.c (same_lwp): Remove.
6408 (find_lwp_pid): Use find_thread.
6410 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6412 * linux-low.c (delete_lwp_callback): Remove.
6413 (linux_mourn): Use for_each_thread.
6415 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6417 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6418 args parameter, don't check for pid.
6419 (linux_detach): Use for_each_thread.
6421 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6423 * linux-low.c (struct counter): Remove.
6424 (second_thread_of_pid_p): Remove.
6425 (last_thread_of_process_p): Use find_thread.
6427 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6429 * inferiors.c (find_inferior_in_random): Remove.
6430 * inferiors.h (find_inferior_in_random): Remove.
6431 * linux-low.c (status_pending_p_callback): Return bool, accept
6432 parameter ptid directly.
6433 (linux_wait_for_event_filtered): Use find_thread_in_random.
6434 (linux_wait_1): Likewise.
6436 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6438 * inferiors.c (find_inferior_id): Remove.
6439 (find_thread_ptid): Move implemention from find_inferior_id to
6441 * inferiors.h (find_inferior_id): Remove.
6442 * server.c (handle_status): Use find_thread_ptid.
6443 (process_serial_event): Likewise.
6444 * thread-db.c (find_one_thread): Likewise.
6445 (thread_db_thread_handle): Likewise.
6446 * win32-low.c (thread_rec): Likewise.
6447 (child_delete_thread): Likewise.
6448 (win32_thread_alive): Likewise.
6449 (get_child_debug_event): Likewise.
6451 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6453 * linux-mips-low.c (update_watch_registers_callback): Return
6454 void, remove pid_p parameter, don't check for pid.
6455 (mips_insert_point, mips_remove_point): Use for_each_thread.
6457 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6459 * lynx.low (lynx_delete_thread_callback): Remove.
6460 (lynx_mourn): Use for_each_thread.
6462 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6464 * regcache.c (regcache_invalidate_one): Remove.
6465 (regcache_invalidate_pid): use for_each_thread.
6467 2017-11-26 Tom Tromey <tom@tromey.com>
6469 * linux-low.c (linux_create_inferior): Update.
6471 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6473 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6475 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6477 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6478 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6479 * linux-aarch64-tdesc-selftest.c: New file.
6480 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6482 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6484 * configure.srv: Add new file.
6485 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6486 * linux-aarch64-tdesc-selftest.c: New file.
6487 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6489 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6491 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6492 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6493 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6495 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6497 * configure.srv: Add new files.
6498 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6499 aarch64_linux_read_description.
6500 * linux-aarch64-low.c (aarch64_linux_read_description):
6501 Merge with aarch64_arch_setup.
6502 (aarch64_arch_setup): Call aarch64_linux_read_description.
6503 * linux-aarch64-tdesc.c: New file.
6504 * linux-aarch64-tdesc.h: New file.
6506 2017-11-24 Yao Qi <yao.qi@linaro.org>
6508 * configure.srv: Set $srv_regobj for tic6x-linux.
6509 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6510 (tic6x_read_description): Move some code to tic6x_arch_setup.
6511 (tic6x_tdesc_test): New function.
6512 (initialize_low_arch): Call selftests::register_test.
6514 2017-11-22 Yao Qi <yao.qi@linaro.org>
6516 * remote-utils.c (prepare_resume_reply): Use memcpy.
6518 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6520 * linux-low.c (kill_one_lwp_callback): Return void, take
6521 argument directly, don't filter on pid.
6522 (linux_kill): Use for_each_thread.
6524 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6526 * linux-low.c (need_step_over_p): Return bool, remove dummy
6528 (linux_resume, proceed_all_lwps): Use find_thread.
6530 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6532 * linux-low.c (resume_status_pending_p): Return bool, remove
6534 (linux_resume): Use find_thread.
6536 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6538 * linux-low.c (struct thread_resume_array): Remove.
6539 (linux_set_resume_request): Return void, take arguments
6541 (linux_resume): Use for_each_thread.
6543 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6545 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6546 return bool, remove data argument.
6547 (linux_stabilize_threads): Use find_thread.
6549 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6551 * linux-low.c (unsuspend_one_lwp): Remove.
6552 (unsuspend_all_lwps): Use for_each_thread, inline code from
6555 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6557 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6558 * linux-low.c (struct iterate_over_lwps_args): Remove.
6559 (iterate_over_lwps_filter): Remove.
6560 (iterate_over_lwps): Use find_thread.
6562 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6564 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6565 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6566 code from reset_lwp_ptrace_options_callback.
6568 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6570 * linux-arm-low.c (struct update_registers_data): Remove.
6571 (update_registers_callback): Return void, take arguments
6572 directly, don't check thread's pid.
6573 (arm_insert_point, arm_remove_point): Use for_each_thread.
6575 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6577 * win32-low.c (continue_one_thread): Return void, take argument
6579 (child_continue): Use for_each_thread.
6581 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6583 * win32-i386-low.c (update_debug_registers_callback): Rename
6585 (update_debug_registers): ... this, return void, remove pid_p arg.
6586 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6588 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6590 * inferiors.h (struct process_info): Add constructor, initialize
6592 <syscalls_to_catch>: Change type to std::vector<int>.
6593 * inferiors.c (add_process): Allocate process_info with new.
6594 (remove_process): Free process_info with delete.
6595 * linux-low.c (handle_extended_wait): Adjust.
6596 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6597 * server.c (handle_general_set): Adjust.
6599 2017-11-16 Pedro Alves <palves@redhat.com>
6601 * remote-utils.c (remote_close): Block SIGIO signals instead of
6602 uninstalling the SIGIO handler.
6604 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6606 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6608 2017-11-16 Yao Qi <yao.qi@linaro.org>
6610 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6611 (tic6x_store_gregset): Likewise.
6612 (tic6x_usrregs_info): Move it up.
6614 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6616 * Makefile.in: Update arch rules.
6617 * configure.srv: Explicitly mark arch/ files.
6619 2017-11-13 Andreas Schwab <schwab@suse.de>
6621 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6623 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6625 2017-11-06 Pedro Alves <palves@redhat.com>
6627 * config.in, configure: Regenerate.
6629 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6631 * target.c (struct thread_search): Remove.
6632 (thread_search_callback): Remove.
6633 (prepare_to_access_memory): Use for_each_thread instead of
6634 find_inferior. Inline code from thread_search_callback.
6636 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6638 * server.c (struct visit_actioned_threads_data): Remove.
6639 (visit_actioned_threads): Change prototype to take arguments
6641 (resume): Use find_thread instead of find_inferior.
6643 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6645 * server.c (queue_stop_reply_callback): Change prototype, return
6647 (find_status_pending_thread_callback): Remove.
6648 (handle_status): Replace find_inferior with find_thread and
6651 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6653 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6655 (aarch64_store_gregset): Likewise.
6656 (aarch64_fill_fpregset): Likewise.
6657 (aarch64_store_fpregset): Likewise.
6659 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6661 * gdbthread.h (find_thread, for_each_thread): New functions.
6662 * inferiors.c (thread_of_pid): Remove.
6663 (find_any_thread_of_pid): Use find_thread.
6664 * linux-low.c (num_lwps): Use for_each_thread.
6666 2017-10-17 Yao Qi <yao.qi@linaro.org>
6668 * Makefile.in: Remove one rule.
6669 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6671 2017-10-17 Yao Qi <yao.qi@linaro.org>
6673 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6674 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6676 2017-10-17 Yao Qi <yao.qi@linaro.org>
6678 * configure.srv: Rename arm.o with arch/arm.o.
6680 2017-10-17 Yao Qi <yao.qi@linaro.org>
6682 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6683 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6684 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6685 (arch-i386.o, arch-amd64.o): Remove rules.
6686 (arch/%.o): New rule.
6687 Update POSTCOMPILE and COMPILE.pre.
6688 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6689 * configure: Re-generated.
6690 * configure.srv: Replace arch-i386.o with arch/i386.o.
6691 Replace arch-amd64.o with arch/amd64.o.
6693 2017-10-16 Yao Qi <yao.qi@linaro.org>
6695 * configure: Regenerated.
6697 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6699 * inferiors.h: (struct inferior_list): Remove.
6700 (struct inferior_list_entry); Remove.
6701 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6702 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6703 get_first_inferior): Remove.
6704 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6705 find_inferior_id, find_inferior_in_random): Change signature.
6706 * inferiors.c (all_threads): Change type to
6707 std::list<thread_info *>.
6708 (get_thread): Remove macro.
6709 (find_inferior, find_inferior_id): Change signature, implement
6711 (find_inferior_in_random): Change signature, implement using
6712 find_thread_in_random.
6713 (for_each_inferior, for_each_inferior_with_data): Change
6714 signature, implement using for_each_thread.
6715 (add_inferior_to_list, remove_inferior): Remove.
6716 (add_thread, get_first_thread, thread_of_pid,
6717 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6718 (get_first_inferior, one_inferior_p, clear_inferior_list):
6720 (clear_inferiors, get_thread_process): Update.
6721 * gdbthread.h: Include <list>.
6722 (struct thread_info) <entry>: Remove field.
6724 (all_threads): Change type to std::list<thread_info *>.
6725 (get_first_inferior): Add doc.
6726 (find_thread, for_each_thread, find_thread_in_random): New
6728 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6729 * linux-arm-low.c (update_registers_callback): Update.
6730 * linux-low.c (second_thread_of_pid_p): Update.
6731 (kill_one_lwp_callback, linux_detach_lwp_callback,
6732 delete_lwp_callback, status_pending_p_callback, same_lwp,
6733 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6734 iterate_over_lwps, not_stopped_callback,
6735 resume_stopped_resumed_lwps, count_events_callback,
6736 select_singlestep_lwp_callback, select_event_lwp_callback,
6737 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6738 suspend_and_send_sigstop_callback, wait_for_sigstop,
6739 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6740 lwp_running, linux_set_resume_request, resume_status_pending_p,
6741 need_step_over_p, start_step_over, linux_resume_one_thread,
6742 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6743 reset_lwp_ptrace_options_callback): Update.
6744 * linux-mips-low.c (update_watch_registers_callback): Update.
6745 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6747 (free_register_cache_thread_one): Remove.
6748 (regcache_release): Update.
6749 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6750 handle_qxfer_threads_worker): Update.
6751 (handle_query): Update, use list iterator.
6752 (visit_actioned_threads, handle_pending_status,
6753 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6754 clear_pending_status_callback, set_pending_status_callback,
6755 find_status_pending_thread_callback, handle_status,
6756 process_serial_event): Update.
6757 * target.c (thread_search_callback): Update.
6758 * thread-db.c (thread_db_get_tls_address): Update.
6759 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6761 * win32-i386-low.c (update_debug_registers_callback): Update.
6762 * win32-low.c (delete_thread_info, child_delete_thread,
6763 continue_one_thread, suspend_one_thread,
6764 get_child_debug_event): Adjust.
6766 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6768 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6769 * inferiors.h: Include <list>.
6770 (struct process_info) <entry>: Remove field.
6772 (pid_of): Change macro to function.
6773 (ptid_of, lwpid_of): Remove macro.
6774 (all_processes): Change type to std::list<process_info *>.
6775 (ALL_PROCESSES): Remove macro.
6776 (for_each_process, find_process): New function.
6777 * inferiors.c (all_processes): Change type to
6778 std::list<process_info *>.
6779 (find_thread_process): Adjust.
6780 (add_process): Likewise.
6781 (remove_process): Likewise.
6782 (find_process_pid): Likewise.
6783 (get_first_process): Likewise.
6784 (started_inferior_callback): Remove.
6785 (have_started_inferiors_p): Adjust.
6786 (attached_inferior_callback): Remove.
6787 (have_attached_inferiors_p): Adjust.
6788 * linux-low.c (check_zombie_leaders): Likewise.
6789 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6790 (x86_linux_update_xmltarget): Adjust.
6791 * server.c (handle_query): Likewise.
6792 (gdb_reattached_process): Remove.
6793 (handle_status): Adjust.
6794 (kill_inferior_callback): Likewise.
6795 (detach_or_kill_inferior): Remove.
6796 (print_started_pid): Likewise.
6797 (print_attached_pid): Likewise.
6798 (detach_or_kill_for_exit): Update.
6799 (process_serial_event): Likewise.
6800 * linux-arm-low.c (arm_new_fork): Likewise.
6802 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6804 * dll.h: Include <list>.
6805 (struct dll_info): Add constructor.
6806 <entry>: Remove field.
6807 (all_dlls): Change type to std::list<dll_info>.
6808 * dll.c: Include <algorithm>.
6809 (get_dll): Remove macro.
6810 (all_dlls): Change type to std::list<dll_info *>.
6811 (free_one_dll): Remove.
6812 (match_dll): Likewise.
6813 (loaded_dll): Adjust.
6814 (unloaded_dll): Adjust to all_dlls type change, use
6815 std::find_if. Inline code from match_dll.
6816 (clear_dlls): Adjust to all_dlls type change.
6817 * server.c (emit_dll_description): Remove.
6818 (handle_qxfer_libraries): Adjust to all_dlls type change,
6819 integrate emit_dll_description's functionality.
6821 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6823 * linux-low.h (struct linux_target_ops) <delete_process>: New
6825 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6826 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6827 (struct linux_target_ops): Add delete_process callback.
6828 * linux-arm-low.c (arm_delete_process): New.
6829 (struct linux_target_ops): Add delete_process callback.
6830 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6831 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6832 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6833 * linux-mips-low.c (mips_linux_delete_process): New.
6834 (struct linux_target_ops): Add delete_process callback.
6835 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6836 * linux-s390-low.c (struct linux_target_ops): Likewise.
6837 * linux-sh-low.c (struct linux_target_ops): Likewise.
6838 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6839 * linux-tile-low.c (struct linux_target_ops): Likewise.
6840 * linux-x86-low.c (x86_linux_delete_process): New.
6841 (struct linux_target_ops): Add delete_process callback.
6842 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6844 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6846 * linux-aarch64-low.c (the_low_target): Add thread delete
6848 * linux-arm-low.c (arm_delete_thread): New function.
6849 (the_low_target): Add thread delete callback.
6850 * linux-bfin-low.c (the_low_target): Likewise.
6851 * linux-crisv32-low.c (the_low_target): Likewise.
6852 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6854 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6856 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6857 * linux-mips-low.c (mips_linux_delete_thread): New function.
6858 (the_low_target): Add thread delete callback.
6859 * linux-ppc-low.c (the_low_target): Likewise.
6860 * linux-s390-low.c (the_low_target): Likewise.
6861 * linux-sh-low.c (the_low_target): Likewise.
6862 * linux-tic6x-low.c (the_low_target): Likewise.
6863 * linux-tile-low.c (the_low_target): Likewise.
6864 * linux-x86-low.c (the_low_target): Likewise.
6865 * linux-xtensa-low.c (the_low_target): Likewise.
6867 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6869 * win32-low.c: Include "common-inferior.h".
6871 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6873 * inferiors.c (set_inferior_cwd): New function.
6874 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6875 (handle_query): Inform that QSetWorkingDir is supported.
6876 * win32-low.c (create_process): Pass the inferior's cwd to
6879 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6881 * inferiors.c (current_inferior_cwd): New global variable.
6882 (get_inferior_cwd): New function.
6883 * inferiors.h (struct process_info) <cwd>: New field.
6885 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6887 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6888 (OBS): Add gdb_tilde_expand.o.
6890 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6892 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6893 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6895 2017-09-29 Pedro Alves <palves@redhat.com>
6897 * ax.c (gdb_parse_agent_expr): Constify.
6898 * ax.h (gdb_parse_agent_expr): Constify.
6899 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6901 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6902 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6903 * remote-utils.h (read_ptid): Constify.
6904 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6905 (process_point_options, process_serial_event): Constify.
6906 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6907 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6908 (cmd_qtbuffer): Constify.
6910 2017-09-29 Pedro Alves <palves@redhat.com>
6912 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6915 2017-09-29 Pedro Alves <palves@redhat.com>
6917 * linux-low.c (handle_extended_wait): Pass parent thread instead
6918 of process to thread_db_notice_clone.
6919 * linux-low.h (thread_db_notice_clone): Replace parent process
6920 parameter with parent thread parameter.
6921 * thread-db.c (find_one_thread): Add comment.
6922 (thread_db_notice_clone): Replace parent process parameter with
6923 parent thread parameter. Temporarily switch to the parent thread.
6925 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6927 * gdbthread.h: Include "common-gdbthread.h".
6928 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6929 "if" when validating the ptid.
6930 * remote-utils.c: Include "gdbthread.h".
6931 (prepare_resume_reply): Use "switch_to_thread".
6932 * target.c (done_accessing_memory): Likewise.
6934 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6936 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6937 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6938 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6939 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6940 s390x-gs-linux64-ipa.o to ipa_obj.
6941 * linux-s390-low.c (HWCAP_S390_GS): New define.
6942 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6944 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6945 (s390_arch_setup): Check for guarded-storage support and choose
6947 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6948 init_registers_s390x_gs_linux64.
6949 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6951 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6952 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6954 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6956 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6958 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6960 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6961 (thread_db_thread_handle): Declare.
6962 * linux-low.c (linux_target_ops): Initialize thread_handle.
6963 * server.c (handle_qxfer_threads_worker): Add support for
6965 * target.h (struct target_ops): Add new function pointer,
6967 (target_thread_handle): Define.
6968 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
6970 (thread_db_thread_handle): New function.
6972 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6974 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
6975 * linux-low.h (thread_db_notice_clone): Declare.
6976 * thread-db.c (thread_db_notice_clone): New function.
6978 2017-09-21 Pedro Alves <palves@redhat.com>
6980 * server.c (gdb_read_memory, handle_status, process_serial_event)
6981 (handle_serial_event, handle_target_event): Adjust to
6982 set_desired_thread prototype change.
6983 * target.c (set_desired_thread): Remove 'use_general' parameter
6985 * target.h (set_desired_thread): Remove 'use_general' parameter.
6987 2017-09-20 Tom Tromey <tom@tromey.com>
6989 * target.c (target_terminal::terminal_state): Define.
6990 (target_terminal::init): Rename from target_terminal_init.
6991 (target_terminal::inferior): Rename from
6992 target_terminal_inferior.
6993 (target_terminal::ours): Rename from target_terminal_ours.
6994 (target_terminal::ours_for_output, target_terminal::info): New.
6996 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
6998 * server.c (accumulate_file_name_length): Remove.
6999 (emit_dll_description): Adjust to std::string change.
7000 (handle_qxfer_libraries): Use std::string to hold document.
7002 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7004 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7005 return type of xml_escape_text.
7006 * server.c (emit_dll_description): Likewise.
7008 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7010 * server.c (captured_main): Accept argument for --selftest.
7011 Update run_tests call.
7012 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7013 when registering selftests.
7015 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7017 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7018 instead of "VEC" for "target_desc.reg_defs".
7019 (regcache_cpy): Likewise.
7020 (registers_to_string): Likewise.
7021 (registers_from_string): Likewise.
7022 (find_regno): Likewise.
7023 (supply_regblock): Likewise.
7024 (regcache_raw_read_unsigned): Likewise.
7025 * tdesc.c (init_target_desc): Likewise.
7026 (tdesc_create_reg): Likewise.
7027 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7028 (struct target_desc) <reg_defs>: Convert to "std::vector".
7029 (target_desc): Do not initialize "reg_defs".
7030 (~target_desc): Update code to use "std::vector" instead of "VEC"
7031 for "target_desc.reg_defs".
7032 (operator==): Likewise.
7034 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7036 * inferiors.h (thread_to_gdb_id): Remove.
7037 * inferiors.c (thread_to_gdb_id): Remove.
7038 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7039 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7040 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7042 * nto-low.c (nto_fetch_registers, nto_store_registers,
7043 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7045 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7047 * inferiors.h (gdb_id_to_thread_id): Remove.
7048 * inferiors.c (gdb_id_to_thread_id): Remove.
7049 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7050 removal. Move pid declaration closer to where it's used.
7052 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7054 * server.c (handle_detach): New function.
7055 (process_serial_event): Move code out, call handle_detach.
7057 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7059 * server.c (require_running): Rename to ...
7060 (require_running_or_return): ... this ...
7061 (require_running_or_break): ... and this.
7062 (handle_query, process_serial_event): Adjust.
7064 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7066 * linux-low.c (linux_set_resume_request): Remove unused
7069 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7071 * server.c (first_thread_of): Remove.
7072 (process_serial_event): Replace usage of first_thread_of with
7073 find_any_thread_of_pid.
7074 * tracepoint.c (same_process_p): Remove.
7075 (gdb_agent_about_to_close): Replace usage of same_process_p with
7076 find_any_thread_of_pid.
7077 * linux-x86-low.c (same_process_callback): Remove.
7078 (x86_arch_setup_process_callback): Replace usage of
7079 same_process_callback with find_any_thread_of_pid.
7080 * thread-db.c (any_thread_of): Remove.
7081 (switch_to_process): Replace usage of any_thread_of with
7082 find_any_thread_of_pid.
7083 * inferiors.c (thread_pid_matches_callback): Remove.
7084 (find_thread_process): Adjust to use find_any_thread_of_pid.
7086 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7088 * regcache.c (get_thread_regcache): Guard calls to "memset"
7091 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7093 * linux-low.c (handle_extended_wait): Use
7094 "allocate_target_description" instead of "XNEW".
7095 * linux-x86-low.c (initialize_low_arch): Likewise.
7097 2017-09-05 Yao Qi <yao.qi@linaro.org>
7099 * configure.srv (srv_i386_regobj): Remove.
7100 (srv_amd64_regobj): Remove.
7101 (srv_regobj): Set it to "" for x86 non-linux targets.
7102 * linux-x86-tdesc.c (i386_linux_read_description):
7103 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7104 (init_registers_i386): Remove the declaration.
7105 (tdesc_i386): Remove the declaration.
7106 (lynx_i386_arch_setup): Call i386_create_target_description.
7107 * nto-x86-low.c: Likewise.
7108 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7109 [!__x86_64__]: include arch/i386.h.
7110 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7112 2017-09-05 Yao Qi <yao.qi@linaro.org>
7114 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7115 i386/amd64-XXX-linux from it.
7117 2017-09-05 Yao Qi <yao.qi@linaro.org>
7119 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7121 (ipa_amd64_linux_regobj): Remove.
7122 (ipa_x32_linux_regobj): Remove.
7124 2017-09-05 Yao Qi <yao.qi@linaro.org>
7126 * Makefile.in (arch-amd64.o): New rule.
7127 * configure.srv: Append arch-amd64.o.
7128 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7129 (get_ipa_tdesc): Call amd64_linux_read_description.
7130 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7131 and init_registers_amd64_XXX.
7132 * linux-x86-low.c (x86_linux_read_description): Call
7133 amd64_linux_read_description.
7134 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7135 (initialize_low_arch): Don't call init_registers_x32_XXX and
7136 init_registers_amd64_XXX.
7137 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7138 and tdesc_amd64_XXX.
7139 [__x86_64__] (amd64_tdesc_test): New function.
7140 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7141 and init_registers_amd64_XXX.
7142 * linux-x86-tdesc.c: Include arch/amd64.h.
7143 (xcr0_to_tdesc_idx): New function.
7144 (i386_linux_read_description): New function.
7145 (amd64_get_ipa_tdesc_idx): New function.
7146 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7147 (amd64_get_ipa_tdesc): Declare.
7149 2017-09-05 Yao Qi <yao.qi@linaro.org>
7151 * configure.srv (srv_i386_linux_xmlfiles): Remove
7152 i386/i386-XXX-linux.xml from it.
7154 2017-09-05 Yao Qi <yao.qi@linaro.org>
7156 * configure.srv: Set srv_i386_linux_regobj empty if $development
7158 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7159 initialize_low_tdesc.
7160 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7161 with #if initialize_low_tdesc.
7162 * linux-x86-tdesc-selftest.c: New file.
7163 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7165 2017-09-05 Yao Qi <yao.qi@linaro.org>
7167 * Makefile.in (arch-i386.o): New rule.
7168 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7169 (x86_64-*-linux*): Likewise.
7170 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7171 include arch/i386.h.
7172 (i386_linux_read_description): Remove code and call
7173 i386_create_target_description.
7174 * tdesc.c (allocate_target_description): New function.
7175 * tdesc.h (set_tdesc_architecture): Remove declaration.
7176 (set_tdesc_osabi): Likewise.
7178 2017-09-05 Yao Qi <yao.qi@linaro.org>
7180 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7181 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7182 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7184 * server.c (get_features_xml): Call tdesc_get_features_xml.
7185 * tdesc.c (set_tdesc_architecture): New function.
7186 (set_tdesc_osabi): New function.
7187 (tdesc_get_features_xml): New function.
7188 (tdesc_create_feature): Add an argument.
7189 * tdesc.h (struct target_desc) <features>: New field.
7190 <arch, osabi>: New field.
7191 (~target_desc): xfree features, arch, and osabi.
7192 (target_desc::oerator==): Don't compare .xmltarget.
7193 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7194 (set_tdesc_osabi): Likewise.
7195 (tdesc_get_features_xml): Likewise.
7197 2017-09-05 Yao Qi <yao.qi@linaro.org>
7199 * linux-x86-tdesc.c: Include selftest.h.
7200 (i386_tdesc_test): New function.
7201 (initialize_low_tdesc): Call selftests::register_test.
7202 * tdesc.h: Include regdef.h.
7203 (target_desc): Override operator == and !=.
7205 2017-09-05 Yao Qi <yao.qi@linaro.org>
7207 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7208 (ipa_obj): Likewise.
7209 * linux-i386-ipa.c: Include common/x86-xstate.h
7210 (get_ipa_tdesc): Call i386_linux_read_description.
7211 (initialize_low_tracepoint): Don't call init_registers_XXX
7212 functions, call initialize_low_tdesc instead.
7213 * linux-x86-low.c (x86_linux_read_description): Call
7214 i386_linux_read_description.
7215 (initialize_low_arch): Don't call init_registers_i386_XXX
7216 functions, call initialize_low_tdesc.
7217 * linux-x86-tdesc.c: New file.
7218 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7219 (i386_get_ipa_tdesc_idx): Declare.
7220 (i386_get_ipa_tdesc): Declare.
7221 (initialize_low_tdesc): Declare.
7223 2017-09-05 Yao Qi <yao.qi@linaro.org>
7225 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7228 2017-09-05 Yao Qi <yao.qi@linaro.org>
7230 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7231 * regcache.c (get_thread_regcache): Use VEC_length.
7232 (init_register_cache): Likewise.
7233 (regcache_cpy): Likewise.
7234 (registers_to_string): Iterate reg_defs via VEC_iterate.
7235 (find_regno): Likewise.
7236 (find_register_by_number): Use VEC_index.
7237 (register_size): Call find_register_by_number.
7238 (register_data): Call find_register_by_number.
7239 (supply_regblock): Use VEC_length.
7240 (regcache_raw_read_unsigned): Likewise.
7241 * tdesc.c (init_target_desc): Iterate reg_defs via
7243 (default_description): Update initializer.
7244 (copy_target_description): Don't update field num_registers.
7245 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7246 <num_registers>: Remove.
7248 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7250 * Makefile.in (.SECONDARY): Define target.
7252 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7254 * linux-low.c (linux_wait_1): Adjust.
7255 * server.c (queue_stop_reply_callback): Adjust.
7257 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7259 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7260 QEnvironmentUnset and QEnvironmentReset packets.
7261 (handle_query): Inform remote that QEnvironmentHexEncoded,
7262 QEnvironmentUnset and QEnvironmentReset are supported.
7264 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7266 * inferiors.h (inferior_target_data): Rename to ...
7267 (thread_target_data): ... this.
7268 (inferior_regcache_data): Rename to ...
7269 (thread_regcache_data): ... this.
7270 (set_inferior_regcache_data): Rename to ...
7271 (set_thread_regcache_data): ... this.
7272 * inferiors.c (inferior_target_data): Rename to ...
7273 (thread_target_data): ... this.
7274 (inferior_regcache_data): Rename to ...
7275 (thread_regcache_data): ... this.
7276 (set_inferior_regcache_data): Rename to ...
7277 (set_thread_regcache_data): ... this.
7278 (free_one_thread): Update.
7279 * linux-low.h (get_thread_lwp): Update.
7280 * regcache.c (get_thread_regcache): Update.
7281 (regcache_invalidate_thread): Update.
7282 (free_register_cache_thread): Update.
7283 * win32-i386-low.c (update_debug_registers_callback): Update.
7284 (win32_get_current_dr): Update.
7285 * win32-low.c (thread_rec): Update.
7286 (delete_thread_info): Update.
7287 (continue_one_thread): Update.
7288 (suspend_one_thread): Update.
7290 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7292 * inferiors.c (set_inferior_target_data): Remove.
7293 * inferiors.h (set_inferior_target_data): Remove.
7295 2017-08-18 Yao Qi <yao.qi@linaro.org>
7297 * Makefile.in (OBS): Add selftest.o.
7298 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7299 * configure, config.in: Re-generated.
7300 * server.c: Include common/sefltest.h.
7301 (captured_main): Handle option --selftest.
7303 2017-08-09 Yao Qi <yao.qi@linaro.org>
7305 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7306 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7307 i386-avx-mpx.o and i386-mmx.o.
7308 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7309 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7310 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7311 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7312 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7313 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7314 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7315 i386/amd64-avx-mpx.xml.
7317 2017-08-09 Yao Qi <yao.qi@linaro.org>
7319 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7320 and x32-avx-avx512.o.
7321 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7322 i386/x32-avx-avx512.xml.
7324 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7326 * tracepoint.h (enum class fast_tpoint_collect_result): New
7328 (fast_tracepoint_collecting): Change return type to
7329 fast_tpoint_collect_result.
7330 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7331 * linux-low.h: Include tracepoint.h.
7332 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7333 fast_tpoint_collect_result.
7334 * linux-low.c (handle_tracepoints): Adjust.
7335 (linux_fast_tracepoint_collecting): Change return type to
7336 fast_tpoint_collect_result.
7337 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7338 linux_wait_1, stuck_in_jump_pad_callback,
7339 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7340 proceed_one_lwp): Adjust to type change.
7342 2017-07-10 Yao Qi <yao.qi@linaro.org>
7344 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7346 2017-06-29 Yao Qi <yao.qi@linaro.org>
7348 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7350 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7352 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7354 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7356 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7358 * linux-low.c (linux_create_inferior): Adjust code to access the
7359 environment information via 'gdb_environ' class.
7360 * lynx-low.c (lynx_create_inferior): Likewise.
7361 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7362 (get_environ): Return a pointer to 'our_environ'.
7363 (captured_main): Initialize 'our_environ'.
7364 * server.h (get_environ): Adjust prototype.
7365 * spu-low.c (spu_create_inferior): Adjust code to access the
7366 environment information via 'gdb_environ' class.
7368 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7370 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7371 usage of "register" keyword.
7373 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7375 * configure: Re-generate.
7377 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7379 * configure: Re-generate.
7381 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7383 * Makefile.in (COMPILE.pre): Add "-x c++".
7385 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7387 * fork-child.c: Conditionally include <signal.h>.
7389 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7391 * server.c (handle_general_set): Handle new packet
7392 "QStartupWithShell".
7393 (handle_query): Add "QStartupWithShell" to the list of supported
7395 (gdbserver_usage): Add help text explaining the
7396 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7398 (captured_main): Recognize and act upon the presence of the new
7401 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7402 Pedro Alves <palves@redhat.com>
7404 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7405 * configure: Regenerate.
7406 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7408 (i[34567]86-*-lynxos*): Likewise.
7409 (spu*-*-*): Likewise.
7410 * fork-child.c: New file.
7411 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7413 (linux_ptrace_fun): New function.
7414 (linux_create_inferior): Adjust function prototype to reflect
7415 change on "target.h". Adjust function code to use
7417 (linux_request_interrupt): Delete "signal_pid".
7418 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7419 (lynx_ptrace_fun): New function.
7420 (lynx_create_inferior): Adjust function prototype to reflect
7421 change on "target.h". Adjust function code to use
7423 * nto-low.c (nto_create_inferior): Adjust function prototype and
7424 code to reflect change on "target.h". Update comments.
7425 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7426 "common-terminal.h" and "environ.h".
7427 (terminal_fd): Moved to fork-child.c.
7428 (old_foreground_pgrp): Likewise.
7429 (restore_old_foreground_pgrp): Likewise.
7430 (last_status): Make it global.
7431 (last_ptid): Likewise.
7432 (our_environ): New variable.
7433 (startup_with_shell): Likewise.
7434 (program_name): Likewise.
7435 (program_argv): Rename to...
7436 (program_args): ...this.
7437 (wrapper_argv): New variable.
7438 (start_inferior): Delete function.
7439 (get_exec_wrapper): New function.
7440 (get_exec_file): Likewise.
7441 (get_environ): Likewise.
7442 (prefork_hook): Likewise.
7443 (post_fork_inferior): Likewise.
7444 (postfork_hook): Likewise.
7445 (postfork_child_hook): Likewise.
7446 (handle_v_run): Update code to deal with arguments coming from the
7447 remote host. Update calls from "start_inferior" to
7449 (captured_main): Likewise. Initialize environment variable. Call
7451 * server.h (post_fork_inferior): New prototype.
7452 (get_environ): Likewise.
7453 (last_status): Declare.
7454 (last_ptid): Likewise.
7455 (signal_pid): Likewise.
7456 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7457 (spu_ptrace_fun): New function.
7458 (spu_create_inferior): Adjust function prototype to reflect change
7459 on "target.h". Adjust function code to use "fork_inferior".
7460 * target.c (target_terminal_init): New function.
7461 (target_terminal_inferior): Likewise.
7462 (target_terminal_ours): Likewise.
7463 * target.h: Include <vector>.
7464 (struct target_ops) <create_inferior>: Update prototype.
7465 (create_inferior): Update macro.
7466 * utils.c (gdb_flush_out_err): New function.
7467 * win32-low.c (win32_create_inferior): Adjust function prototype
7468 and code to reflect change on "target.h".
7470 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7472 * inferiors.c (switch_to_thread): New function.
7474 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7476 * Makefile.in (SFILE): Add "common/job-control.c".
7477 (OBS): Add "job-control.o".
7479 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7481 * Makefile: Remove "@host_makefile_frag@".
7483 2017-05-05 Pedro Alves <palves@redhat.com>
7485 * configure: Regenerate.
7487 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7489 * configure: Regenerate.
7491 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7493 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7494 software_single_step change of return type to
7495 std::vector<CORE_ADDR>.
7496 * linux-low.c (install_software_single_step_breakpoints):
7498 * linux-low.h (install_software_single_step_breakpoints):
7501 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7503 * remote-utils.c: Include "gdb_termios.h" instead of
7505 * terminal.h: Delete file.
7507 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7509 * server.c: Include <vector>.
7510 <program_argv, wrapper_argv>: Convert to std::vector.
7511 (start_inferior): Rewrite function to use C++.
7512 (handle_v_run): Likewise. Update code that calculates the argv
7513 based on the vRun packet; use C++.
7514 (captured_main): Likewise.
7516 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7518 * server.c (handle_v_cont): Initialize thread_resume::thread
7521 2017-04-05 Pedro Alves <palves@redhat.com>
7523 * configure: Regenerate.
7525 2017-04-05 Pedro Alves <palves@redhat.com>
7527 * gdbreplay.c (sync_error): Constify.
7528 * linux-x86-low.c (push_opcode): Constify.
7530 2017-04-05 Pedro Alves <palves@redhat.com>
7532 * win32-low.c (get_child_debug_event)
7533 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7534 Report TARGET_WAITKIND_SPURIOUS instead.
7536 2017-04-05 Pedro Alves <palves@redhat.com>
7538 * remote-utils.c (remote_prepare, remote_open): Constify.
7539 * remote-utils.h (remote_prepare, remote_open): Constify.
7540 * server.c (captured_main): Constify 'port' handling.
7542 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7544 * Makefile.in (clean): Clear .deps.
7546 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7548 * .gitignore: Remove generated files, replace with wildcard.
7549 * (clean): Replace removal of generated files with wildcard.
7550 (version.c): Replace with...
7551 (version-generated.c): ...this.
7552 (xml-builtin.c): Replace with...
7553 (xml-builtin-generated.c): ...this.
7554 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7555 (%.c: *regformats*): Replace with...
7556 (%-generated.c: *regformats*): ...this.
7558 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7560 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7561 (xtensa_fill_gregset): Call collect_register_by_name for
7563 (xtensa_store_gregset): Call supply_register_by_name for
7566 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7568 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7569 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7570 (xtensa_store_gregset): Call supply_register for all registers in
7571 a0_regnum..a0_regnum + C0_NREGS range.
7573 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7575 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7576 (ax-ipa.o: ax.c): Remove.
7577 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7578 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7579 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7580 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7581 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7583 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7585 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7586 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7587 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7588 (errors-ipa.o: ../common/errors.c): Remove.
7589 (format-ipa.o: ../common/format.c): Remove.
7590 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7592 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7594 * Makefile.in (%-ipa.o: %.c): New rule.
7595 (tracepoint-ipa.o: tracepoint.c): Remove.
7596 (utils-ipa.o: utils.c): Remove.
7597 (remote-utils-ipa.o: remote-utils.c): Remove.
7598 (regcache-ipa.o: regcache.c): Remove.
7599 (i386-linux-ipa.o: i386-linux.c): Remove.
7600 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7601 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7602 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7603 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7604 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7605 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7606 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7607 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7608 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7609 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7610 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7611 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7612 (aarch64-ipa.o: aarch64.c): Remove.
7613 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7614 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7615 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7616 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7617 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7618 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7619 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7620 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7621 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7622 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7623 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7624 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7625 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7626 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7627 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7628 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7629 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7630 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7631 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7632 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7633 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7634 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7635 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7636 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7637 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7638 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7639 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7640 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7641 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7642 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7643 (tdesc-ipa.o: tdesc.c): Remove.
7644 (x32-linux-ipa.o: x32-linux.c): Remove.
7645 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7646 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7648 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7650 * Makefile.in (%.o: ../arch/%.c): New rule.
7651 (arm.o: ../arch/arm.c): Remove.
7652 (arm-linux.o: ../arch/arm-linux.c): Remove.
7653 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7654 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7656 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7658 * Makefile.in (%.o: ../nat/%.c): New rule.
7659 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7660 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7661 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7662 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7663 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7664 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7665 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7666 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7667 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7668 (linux-personality.o: ../nat/linux-personality.c): Remove.
7669 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7670 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7671 (x86-linux.o: ../nat/x86-linux.c): Remove.
7672 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7673 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7675 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7677 * Makefile.in (%.o: ../common/%.c): New rule.
7678 (signals.o: ../common/signals.c): Remove.
7679 (print-utils.o: ../common/print-utils.c): Remove.
7680 (rsp-low.o: ../common/rsp-low.c): Remove.
7681 (common-utils.o: ../common/common-utils.c): Remove.
7682 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7683 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7684 (vec.o: ../common/vec.c): Remove.
7685 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7686 (xml-utils.o: ../common/xml-utils.c): Remove.
7687 (ptid.o: ../common/ptid.c): Remove.
7688 (buffer.o: ../common/buffer.c): Remove.
7689 (format.o: ../common/format.c): Remove.
7690 (filestuff.o: ../common/filestuff.c): Remove.
7691 (agent.o: ../common/agent.c): Remove.
7692 (errors.o: ../common/errors.c): Remove.
7693 (environ.o: ../common/environ.c): Remove.
7694 (common-debug.o: ../common/common-debug.c): Remove.
7695 (cleanups.o: ../common/cleanups.c): Remove.
7696 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7697 (fileio.o: ../common/fileio.c): Remove.
7698 (common-regcache.o: ../common/common-regcache.c): Remove.
7699 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7700 (new-op.o: ../common/new-op.c): Remove.
7701 (btrace-common.o: ../common/btrace-common.c): Remove.
7703 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7705 * Makefile.in (%.o: ../target/%.c): New rule.
7706 (waitstatus.o: ../target/waitstatus.c): Remove.
7708 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7711 (%.c: ../regformats/%.dat,
7712 (%.c: ../regformats/arm/%.dat,
7713 (%.c: ../regformats/i386/%.dat,
7714 (%.c: ../regformats/rs6000/%.dat): New rules.
7715 (aarch64.c): Remove.
7716 (reg-arm.c): Remove.
7717 (arm-with-iwmmxt.c): Remove.
7718 (arm-with-vfpv2.c): Remove.
7719 (arm-with-vfpv3.c): Remove.
7720 (arm-with-neon.c): Remove.
7721 (reg-bfin.c): Remove.
7722 (reg-cris.c): Remove.
7723 (reg-crisv32.c): Remove.
7725 (i386-linux.c): Remove.
7726 (i386-avx.c): Remove.
7727 (i386-avx-linux.c): Remove.
7728 (i386-avx-avx512.c): Remove.
7729 (i386-avx-avx512-linux.c): Remove.
7730 (i386-mpx.c): Remove.
7731 (i386-mpx-linux.c): Remove.
7732 (i386-avx-mpx-avx512-pku.c): Remove.
7733 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7734 (i386-avx-mpx.c): Remove.
7735 (i386-avx-mpx-linux.c): Remove.
7736 (i386-mmx.c): Remove.
7737 (i386-mmx-linux.c): Remove.
7738 (reg-ia64.c): Remove.
7739 (reg-m32r.c): Remove.
7740 (reg-m68k.c): Remove.
7742 (mips-linux.c): Remove.
7743 (mips-dsp-linux.c): Remove.
7744 (mips64-linux.c): Remove.
7745 (mips64-dsp-linux.c): Remove.
7746 (nios2-linux.c): Remove.
7747 (powerpc-32.c): Remove.
7748 (powerpc-32l.c): Remove.
7749 (powerpc-altivec32l.c): Remove.
7750 (powerpc-cell32l.c): Remove.
7751 (powerpc-vsx32l.c): Remove.
7752 (powerpc-isa205-32l.c): Remove.
7753 (powerpc-isa205-altivec32l.c): Remove.
7754 (powerpc-isa205-vsx32l.c): Remove.
7755 (powerpc-e500l.c): Remove.
7756 (powerpc-64l.c): Remove.
7757 (powerpc-altivec64l.c): Remove.
7758 (powerpc-cell64l.c): Remove.
7759 (powerpc-vsx64l.c): Remove.
7760 (powerpc-isa205-64l.c): Remove.
7761 (powerpc-isa205-altivec64l.c): Remove.
7762 (powerpc-isa205-vsx64l.c): Remove.
7763 (s390-linux32.c): Remove.
7764 (s390-linux32v1.c): Remove.
7765 (s390-linux32v2.c): Remove.
7766 (s390-linux64.c): Remove.
7767 (s390-linux64v1.c): Remove.
7768 (s390-linux64v2.c): Remove.
7769 (s390-te-linux64.c): Remove.
7770 (s390-vx-linux64.c): Remove.
7771 (s390-tevx-linux64.c): Remove.
7772 (s390x-linux64.c): Remove.
7773 (s390x-linux64v1.c): Remove.
7774 (s390x-linux64v2.c): Remove.
7775 (s390x-te-linux64.c): Remove.
7776 (s390x-vx-linux64.c): Remove.
7777 (s390x-tevx-linux64.c): Remove.
7778 (tic6x-c64xp-linux.c): Remove.
7779 (tic6x-c64x-linux.c): Remove.
7780 (tic6x-c62x-linux.c): Remove.
7782 (reg-sparc64.c): Remove.
7783 (reg-spu.c): Remove.
7785 (amd64-linux.c): Remove.
7786 (amd64-avx.c): Remove.
7787 (amd64-avx-linux.c): Remove.
7788 (amd64-avx-avx512.c): Remove.
7789 (amd64-avx-avx512-linux.c): Remove.
7790 (amd64-mpx.c): Remove.
7791 (amd64-mpx-linux.c): Remove.
7792 (amd64-avx-mpx-avx512-pku.c): Remove.
7793 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7794 (amd64-avx-mpx.c): Remove.
7795 (amd64-avx-mpx-linux.c): Remove.
7797 (x32-linux.c): Remove.
7798 (x32-avx.c): Remove.
7799 (x32-avx-linux.c): Remove.
7800 (x32-avx-avx512.c): Remove.
7801 (x32-avx-avx512-linux.c): Remove.
7802 (reg-xtensa.c): Remove.
7803 (reg-tilegx.c): Remove.
7804 (reg-tilegx32.c): Remove.
7806 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7808 * Makefile.in (SFILES): Add "common/environ.c".
7809 (OBJS): Add "common/environ.h".
7811 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7813 * configure.ac: Check if the fs_base and gs_base members of
7814 `struct user_regs_struct' exist.
7815 * config.in: Regenerated.
7816 * configure: Likewise.
7818 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7820 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7822 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7823 (get_next_pcs_syscall_next_pc): Likewise.
7825 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7827 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7828 * nto-x86-low.c: Likewise.
7830 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7832 * Makefile.in: Include disable-implicit-rules.mk.
7834 2016-11-23 Pedro Alves <palves@redhat.com>
7836 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7837 (debug_vprintf): Use std::chrono::steady_clock instead of
7838 gettimeofday. Use '.' instead of ':'.
7839 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7840 (get_timestamp): Use std::chrono::steady_clock instead of
7843 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7845 * Makefile.in: Fix whitespace formatting.
7847 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7849 * Makefile.in (SFILES, OBS): Flatten list and order
7852 2016-11-23 Pedro Alves <palves@redhat.com>
7854 * event-loop.c (handle_file_event): Use warning.
7855 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7856 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7859 2016-11-23 Pedro Alves <palves@redhat.com>
7861 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7863 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7864 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7865 debug_printf and debug_flush for debug output.
7866 * server.c (handle_general_set): Likewise.
7867 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7870 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7872 * Makefile.in (.c.o): Replace rule with ...
7873 (%.o: %.c): ... this one.
7875 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7877 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7878 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7880 * configure.ac: Remove checks for the make program.
7881 * configure: Re-generate.
7883 2016-10-28 Pedro Alves <palves@redhat.com>
7885 * Makefile.in (CXX_DIALECT): Get from configure.
7886 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7887 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7888 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7889 * config.in: Regenerate.
7890 * configure: Regenerate.
7892 2016-10-27 Yao Qi <yao.qi@linaro.org>
7894 * linux-low.c (linux_supports_range_stepping): Return true if
7895 can_software_single_step return true.
7897 2016-10-27 Yao Qi <yao.qi@linaro.org>
7899 * inferiors.c (find_inferior_in_random): New function.
7900 * inferiors.h (find_inferior_in_random): Declare.
7901 * linux-low.c (linux_wait_for_event_filtered): Call
7902 find_inferior_in_random instead of find_inferior.
7904 2016-10-27 Yao Qi <yao.qi@linaro.org>
7906 * linux-low.c (linux_wait_1): If single-step breakpoints are
7907 inserted, remove them.
7909 2016-10-26 Pedro Alves <palves@redhat.com>
7911 * linux-low.c (handle_extended_wait): Link parent/child fork
7913 (linux_wait_1): Unlink them.
7914 (linux_set_resume_request): Ignore resume requests for
7915 already-resumed and unhandled fork child threads.
7916 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7917 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7919 (handle_v_requests) <vCont>: Don't call require_running.
7920 * server.h (in_queued_stop_replies): New declaration.
7922 2016-10-24 Yao Qi <yao.qi@linaro.org>
7925 * linux-aarch64-low.c (append_insns): Cast the return value to
7928 2016-10-10 Yao Qi <yao.qi@linaro.org>
7930 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7932 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7934 * target.c (target_supports_multi_process): New function, moved
7936 * target.h (target_supports_multi_process): ... here. Remove
7939 2016-10-05 Tom Tromey <tom@tromey.com>
7942 * tracepoint.c (handle_tracepoint_bkpts): Check
7943 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7945 2016-10-05 Yao Qi <yao.qi@linaro.org>
7947 * configure.srv: Update the path of arm-*.xml files.
7949 2016-10-05 Terry Guo <terry.guo@arm.com>
7950 Yao Qi <yao.qi@linaro.org>
7952 * Makefile.in: Adjust the path of rules.
7953 * configure.srv: Update the path of xml files.
7954 * regformats/arm-with-iwmmxt.dat: Regenerated.
7955 * regformats/arm-with-neon.dat: Likewise.
7956 * regformats/arm-with-vfpv2.dat: Likewise.
7957 * regformats/arm-with-vfpv3.dat Likewise.
7959 2016-09-30 Yao Qi <yao.qi@linaro.org>
7962 * target.c (target_stop_and_wait): Don't call
7963 target_continue_no_signal, use resume_stop instead.
7965 2016-09-26 Yao Qi <yao.qi@linaro.org>
7967 * linux-low.c (linux_wait_1): Call debug_exit.
7969 2016-09-23 Pedro Alves <palves@redhat.com>
7971 * Makefile.in (SFILES): Add common/new-op.c.
7972 (OBS): Add common/new-op.o.
7973 (new-op.o): New rule.
7975 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
7977 * .gitinore: Ignore more files.
7979 2016-09-21 Yao Qi <yao.qi@linaro.org>
7981 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
7984 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
7986 * server.c (start_inferior): Call target_mourn_inferior instead of
7987 mourn_inferior; pass ptid_t argument to it.
7989 (handle_target_event): Likewise.
7990 * target.c (target_mourn_inferior): New function.
7991 * target.h (mourn_inferior): Delete macro.
7993 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
7995 * linux-low.c (lwp_is_stepping): New function.
7997 2016-09-06 Carl Love <cel@us.ibm.com>
7999 * server.c (start_inferior): Fixed comment, requested comment change
8000 didn't get updated correctly. Removed reference to ptrace () call as
8001 it is only true on Linux systems.
8003 2016-09-06 Carl Love <cel@us.ibm.com>
8005 * server.c (start_inferior): Do not call
8006 function target_post_create_inferior () if the
8007 inferior process has already exited.
8009 2016-09-05 Pedro Alves <palves@redhat.com>
8011 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8012 (COMPILE.pre, CC_LD): Use CXX directly.
8013 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8014 * acinclude.m4: Don't include build-with-cxx.m4.
8015 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8016 * configure: Regenerate.
8018 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8021 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8022 call writing data to own_buf.
8024 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8026 * target.c (mywait): Call target_wait instead of
8028 (target_wait): New function.
8030 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8032 * server.c (start_inferior): New variable 'ptid'. Replace calls
8033 to the_target->resume by target_continue{,_no_signal}, depending
8035 * target.c (target_stop_and_wait): Call target_continue_no_signal
8036 instead of the_target->resume.
8037 (target_continue): New function.
8039 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8041 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8043 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8046 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8048 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8049 * linux-arm-low.c (ps_get_thread_area): Likewise.
8050 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8051 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8052 * linux-mips-low.c (ps_get_thread_area): Likewise.
8053 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8054 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8055 * linux-x86-low.c (ps_get_thread_area): Likewise.
8056 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8058 2016-08-19 Pedro Alves <palves@redhat.com>
8060 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8062 2016-08-19 Pedro Alves <palves@redhat.com>
8064 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8065 comment. Use memcpy instead of casting through unsigned long.
8067 2016-08-19 Pedro Alves <palves@redhat.com>
8069 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8070 allocating around 0x80000000.
8072 2016-08-19 Pedro Alves <palves@redhat.com>
8075 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8076 (x32-avx512-linux-ipa.o): New rules.
8077 * configure.ac (x86_64-*-linux*): New x32 check.
8078 * configure.srv (ipa_x32_linux_regobj): New.
8079 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8080 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8082 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8084 * configure: Regenerate.
8086 2016-08-09 Pedro Alves <palves@redhat.com>
8089 * Makefile.in (OBS): Add signals-state-save-restore.o.
8090 (signals-state-save-restore.o): New rule.
8091 * config.in: Regenerate.
8092 * configure: Regenerate.
8093 * linux-low.c: Include "signals-state-save-restore.h".
8094 (linux_create_inferior): Call
8095 restore_original_signals_state.
8096 * server.c: Include "dispositions-save-restore.h".
8097 (captured_main): Call save_original_signals_state.
8099 2016-08-05 Pedro Alves <palves@redhat.com>
8101 * configure: Regenerate.
8103 2016-08-04 Yao Qi <yao.qi@linaro.org>
8105 * linux-low.c (regsets_fetch_inferior_registers): Check
8106 errno is ESRCH or not.
8108 2016-08-02 Yao Qi <yao.qi@linaro.org>
8110 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8111 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8112 (thread_db_load_search): Update.
8113 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8114 td_ta_set_event and td_ta_event_getmsg.
8116 2016-07-26 Pedro Alves <palves@redhat.com>
8119 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8120 of unsigned long for 64-bit registers and use uint32_t instead of
8121 unsigned int for 32-bit registers.
8123 2016-07-26 Pedro Alves <palves@redhat.com>
8125 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8128 2016-07-21 Tom Tromey <tom@tromey.com>
8130 * configure: Rebuild.
8132 2016-07-21 Yao Qi <yao.qi@linaro.org>
8134 * mem-break.c (find_gdb_breakpoint): Cast bp to
8135 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8137 2016-07-21 Yao Qi <yao.qi@linaro.org>
8139 * server.c (handle_v_requests): Support s and S actions
8140 if target_supports_software_single_step return true.
8142 2016-07-21 Yao Qi <yao.qi@linaro.org>
8144 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8145 is resume_step, call maybe_hw_step.
8146 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8148 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8150 (proceed_one_lwp): If resume request is resume_step, install
8151 reinsert breakpoints and call maybe_hw_step.
8153 2016-07-21 Yao Qi <yao.qi@linaro.org>
8155 * linux-low.c (proceed_one_lwp): Declare.
8156 (linux_resume_one_thread): Remove local variable 'step'.
8157 Lift code enqueue signal. Call proceed_one_lwp instead of
8158 linux_resume_one_lwp.
8160 2016-07-21 Yao Qi <yao.qi@linaro.org>
8162 * linux-low.c (linux_resume_one_thread): Call
8163 enqueue_pending_signal.
8165 2016-07-21 Yao Qi <yao.qi@linaro.org>
8167 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8168 * inferiors.c (do_restore_current_thread_cleanup): New function.
8169 (make_cleanup_restore_current_thread): Likewise.
8170 * linux-low.c (install_software_single_step_breakpoints): Call
8171 make_cleanup_restore_current_thread. Switch current_thread to
8174 2016-07-21 Yao Qi <yao.qi@linaro.org>
8176 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8177 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8178 (clone_one_breakpoint): Likewise.
8179 (delete_reinsert_breakpoints): Change parameter to thread.
8181 (has_reinsert_breakpoints): Likewise.
8182 (uninsert_reinsert_breakpoints): Likewise.
8183 (reinsert_reinsert_breakpoints): Likewise.
8184 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8185 (delete_reinsert_breakpoints): Likewise.
8186 (reinsert_reinsert_breakpoints): Likewise.
8187 (uninsert_reinsert_breakpoints): Likewise.
8188 (has_reinsert_breakpoints): Likewise.
8190 2016-07-21 Yao Qi <yao.qi@linaro.org>
8192 * inferiors.c (get_thread_process): Make parameter const.
8193 * inferiors.h (get_thread_process): Update declaration.
8194 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8195 Add new parameters child_thread and parent_thread. Callers
8197 * mem-break.h (clone_all_breakpoints): Update declaration.
8199 2016-07-21 Yao Qi <yao.qi@linaro.org>
8201 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8202 <command_list, handler>: Remove.
8203 (struct gdb_breakpoint): New.
8204 (struct other_breakpoint): New.
8205 (struct reinsert_breakpoint): New.
8206 (is_gdb_breakpoint): New function.
8207 (any_persistent_commands): Update command_list if
8208 is_gdb_breakpoint returns true.
8209 (set_breakpoint): Create breakpoints according to their types.
8210 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8211 (set_gdb_breakpoint_1): Likewise.
8212 (set_gdb_breakpoint): Likewise.
8213 (clear_breakpoint_conditions): Change parameter type to
8214 'struct gdb_breakpoint *'.
8215 (clear_breakpoint_commands): Likewise.
8216 (clear_breakpoint_conditions_and_commands): Likewise.
8217 (add_condition_to_breakpoint): Likewise.
8218 (add_breakpoint_condition): Likewise.
8219 (add_commands_to_breakpoint): Likewise.
8220 (check_breakpoints): Check other_breakpoint.
8221 (clone_one_breakpoint): Clone breakpopint according to its type.
8222 * mem-break.h (struct gdb_breakpoint): Declare.
8223 (set_gdb_breakpoint): Update declaration.
8224 (clear_breakpoint_conditions_and_commands): Likewise.
8225 (add_breakpoint_condition): Likewise.
8226 (add_breakpoint_commands): Likewise.
8227 * server.c (process_point_options): Change parameter type to
8228 'struct gdb_breakpoint *'.
8230 2016-07-21 Yao Qi <yao.qi@linaro.org>
8232 * mem-break.c (set_breakpoint_at): Rename it to ...
8233 (set_breakpoint_type_at): ... it.
8234 (set_breakpoint_at): Call set_breakpoint_type_at.
8235 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8236 * mem-break.h (set_breakpoint_at): Update comments.
8238 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8240 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8242 (nios2_store_gregset): Likewise.
8244 2016-07-01 Pedro Alves <palves@redhat.com>
8245 Antoine Tremblay <antoine.tremblay@ericsson.com>
8247 * linux-low.c: Change interface to take the target lwp_info
8248 pointer directly and return void. Handle detaching from a zombie
8250 (linux_detach_lwp_callback): New function.
8251 (linux_detach): Detach from the leader thread after detaching from
8254 2016-06-28 Yao Qi <yao.qi@linaro.org>
8256 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8257 for variable new_offset.
8258 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8259 (aarch64_ftrace_insn_reloc_cb): Likewise.
8260 (aarch64_ftrace_insn_reloc_tb): Likewise.
8261 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8262 PRIx64 instead of PRIx32.
8264 2016-06-28 Yao Qi <yao.qi@linaro.org>
8266 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8267 (the_low_target): Install arm_get_syscall_trapinfo.
8269 2016-06-28 Yao Qi <yao.qi@linaro.org>
8271 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8273 (the_low_target): Install aarch64_get_syscall_trapinfo.
8275 2016-06-28 Yao Qi <yao.qi@linaro.org>
8277 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8279 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8280 Remove parameter sysno.
8281 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8284 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8286 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8287 (s390_emit_ne_goto): Likewise.
8288 (s390_emit_lt_goto): Likewise.
8289 (s390_emit_le_goto): Likewise.
8290 (s390_emit_gt_goto): Likewise.
8291 (s390_emit_ge_goto): Likewise.
8292 (s390x_emit_eq_goto): Likewise.
8293 (s390x_emit_ne_goto): Likewise.
8294 (s390x_emit_lt_goto): Likewise.
8295 (s390x_emit_le_goto): Likewise.
8296 (s390x_emit_gt_goto): Likewise.
8297 (s390x_emit_ge_goto): Likewise.
8298 (s390_emit_ops_impl): Mark variable static.
8299 (s390x_emit_ops): Likewise.
8301 2016-06-17 Yao Qi <yao.qi@linaro.org>
8303 * linux-low.c (handle_extended_wait): Call
8304 uninsert_reinsert_breakpoints for the parent process. Remove
8305 reinsert breakpoints from the child process. Reinsert them to
8306 the parent process when vfork is done.
8307 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8308 (reinsert_reinsert_breakpoints): New function.
8309 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8310 (reinsert_reinsert_breakpoints): Declare.
8312 2016-06-17 Yao Qi <yao.qi@linaro.org>
8314 * linux-low.c (handle_extended_wait): If the parent is doing
8315 step-over, remove the reinsert breakpoints from the forked child.
8317 2016-06-17 Yao Qi <yao.qi@linaro.org>
8319 * linux-low.c (unsuspend_all_lwps): Declare.
8320 (linux_low_filter_event): If thread exited, call finish_step_over.
8321 If step-over is finished, unsuspend other threads.
8323 2016-06-17 Yao Qi <yao.qi@linaro.org>
8325 * linux-low.c (linux_resume_one_lwp_throw): Assert
8326 has_reinsert_breakpoints returns false.
8327 * mem-break.c (delete_disabled_breakpoints): Assert
8328 bp type isn't reinsert_breakpoint.
8330 2016-06-17 Yao Qi <yao.qi@linaro.org>
8332 * linux-low.c (maybe_hw_step): New function.
8333 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8334 (finish_step_over): Switch current_thread to lwp temporarily,
8335 and assert has_reinsert_breakpoints returns true.
8336 (proceed_one_lwp): Call maybe_hw_step.
8337 * mem-break.c (has_reinsert_breakpoints): New function.
8338 * mem-break.h (has_reinsert_breakpoints): Declare.
8340 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8342 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8344 2016-05-17 Yao Qi <yao.qi@linaro.org>
8346 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8347 instead of find_inferior.
8349 2016-05-05 Yao Qi <yao.qi@linaro.org>
8351 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8352 Initialize res to zero.
8354 2016-05-05 Yao Qi <yao.qi@linaro.org>
8356 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8359 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8361 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8362 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8363 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8365 2016-04-28 Par Olsson <par.olsson@windriver.com>
8366 Simon Marchi <simon.marchi@ericsson.com>
8368 * tracepoint.c (write_inferior_int8): New function.
8369 (cmd_qtenable_disable): Write enable flag using
8370 write_inferior_int8.
8372 2016-04-25 Yao Qi <yao.qi@linaro.org>
8374 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8375 (need_step_over_p): Return zero if the LWP has pending signals
8376 can be delivered on software single step target.
8378 2016-04-25 Yao Qi <yao.qi@linaro.org>
8380 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8381 return instead of error.
8383 2016-04-22 Yao Qi <yao.qi@linaro.org>
8385 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8388 2016-04-22 Yao Qi <yao.qi@linaro.org>
8390 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8391 signal when stepping over breakpoint with software single
8394 2016-04-21 Pedro Alves <palves@redhat.com>
8396 * linux-s390-low.c (s390_collect_ptrace_register)
8397 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8399 (s390_check_regset): Use void * instead of gdb_byte *.
8401 2016-04-20 Pedro Alves <palves@redhat.com>
8403 * configure: Renegerate.
8405 2016-04-20 Yao Qi <yao.qi@linaro.org>
8407 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8408 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8410 (arm_store_gregset): Likewise.
8412 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8414 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8415 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8416 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8417 (amd64-avx-mpx-linux.c): New rules.
8418 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8419 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8420 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8421 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8422 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8423 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8424 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8425 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8426 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8427 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8428 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8429 * linux-x86-low.c (x86_linux_read_description): Add case for
8430 X86_XSTATE_AVX_MPX_MASK.
8431 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8432 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8433 init_registers_i386_avx_mpx_linux.
8434 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8435 (initialize_low_tracepoint): Call
8436 init_registers_i386_avx_mpx_linux.
8437 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8438 (initialize_low_tracepoint): Call
8439 init_registers_amd64_avx_mpx_linux.
8440 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8441 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8442 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8445 2016-04-18 Pedro Alves <palves@redhat.com>
8447 * configure: Regenerate.
8449 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8451 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8452 (aarch64_emit_sub): Likewise.
8454 2016-04-12 Pedro Alves <palves@redhat.com>
8456 * utils.c (prepare_to_throw_exception): Delete.
8458 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8460 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8462 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8464 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8466 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8468 * linux-aarch64-ipa.c: Add <elf.h> include.
8469 * linux-ppc-ipa.c: Add <elf.h> include.
8470 * linux-s390-ipa.c: Add <elf.h> include.
8472 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8474 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8475 (get_raw_reg_ptr): Likewise.
8476 (get_trace_state_variable_value_ptr): Likewise.
8477 (set_trace_state_variable_value_ptr): Likewise.
8478 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8481 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8482 Marcin Kościelnicki <koriakin@0x04.net>
8485 * linux-ppc-low.c (emit_insns): New function.
8486 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8487 (ppc_emit_prologue): New function.
8488 (ppc_emit_epilogue): New function.
8489 (ppc_emit_add): New function.
8490 (ppc_emit_sub): New function.
8491 (ppc_emit_mul): New function.
8492 (ppc_emit_lsh): New function.
8493 (ppc_emit_rsh_signed): New function.
8494 (ppc_emit_rsh_unsigned): New function.
8495 (ppc_emit_ext): New function.
8496 (ppc_emit_zero_ext): New function.
8497 (ppc_emit_log_not): New function.
8498 (ppc_emit_bit_and): New function.
8499 (ppc_emit_bit_or): New function.
8500 (ppc_emit_bit_xor): New function.
8501 (ppc_emit_bit_not): New function.
8502 (ppc_emit_equal): New function.
8503 (ppc_emit_less_signed): New function.
8504 (ppc_emit_less_unsigned): New function.
8505 (ppc_emit_ref): New function.
8506 (ppc_emit_const): New function.
8507 (ppc_emit_reg): New function.
8508 (ppc_emit_pop): New function.
8509 (ppc_emit_stack_flush): New function.
8510 (ppc_emit_swap): New function.
8511 (ppc_emit_stack_adjust): New function.
8512 (ppc_emit_call): New function.
8513 (ppc_emit_int_call_1): New function.
8514 (ppc_emit_void_call_2): New function.
8515 (ppc_emit_if_goto): New function.
8516 (ppc_emit_goto): New function.
8517 (ppc_emit_eq_goto): New function.
8518 (ppc_emit_ne_goto): New function.
8519 (ppc_emit_lt_goto): New function.
8520 (ppc_emit_le_goto): New function.
8521 (ppc_emit_gt_goto): New function.
8522 (ppc_emit_ge_goto): New function.
8523 (ppc_write_goto_address): New function.
8524 (ppc_emit_ops_impl): New static variable.
8525 (ppc64v1_emit_prologue): New function.
8526 (ppc64v2_emit_prologue): New function.
8527 (ppc64_emit_epilogue): New function.
8528 (ppc64_emit_add): New function.
8529 (ppc64_emit_sub): New function.
8530 (ppc64_emit_mul): New function.
8531 (ppc64_emit_lsh): New function.
8532 (ppc64_emit_rsh_signed): New function.
8533 (ppc64_emit_rsh_unsigned): New function.
8534 (ppc64_emit_ext): New function.
8535 (ppc64_emit_zero_ext): New function.
8536 (ppc64_emit_log_not): New function.
8537 (ppc64_emit_bit_and): New function.
8538 (ppc64_emit_bit_or): New function.
8539 (ppc64_emit_bit_xor): New function.
8540 (ppc64_emit_bit_not): New function.
8541 (ppc64_emit_equal): New function.
8542 (ppc64_emit_less_signed): New function.
8543 (ppc64_emit_less_unsigned): New function.
8544 (ppc64_emit_ref): New function.
8545 (ppc64_emit_const): New function.
8546 (ppc64v1_emit_reg): New function.
8547 (ppc64v2_emit_reg): New function.
8548 (ppc64_emit_pop): New function.
8549 (ppc64_emit_stack_flush): New function.
8550 (ppc64_emit_swap): New function.
8551 (ppc64v1_emit_call): New function.
8552 (ppc64v2_emit_call): New function.
8553 (ppc64v1_emit_int_call_1): New function.
8554 (ppc64v2_emit_int_call_1): New function.
8555 (ppc64v1_emit_void_call_2): New function.
8556 (ppc64v2_emit_void_call_2): New function.
8557 (ppc64_emit_if_goto): New function.
8558 (ppc64_emit_eq_goto): New function.
8559 (ppc64_emit_ne_goto): New function.
8560 (ppc64_emit_lt_goto): New function.
8561 (ppc64_emit_le_goto): New function.
8562 (ppc64_emit_gt_goto): New function.
8563 (ppc64_emit_ge_goto): New function.
8564 (ppc64v1_emit_ops_impl): New static variable.
8565 (ppc64v2_emit_ops_impl): New static variable.
8566 (ppc_emit_ops): New function.
8567 (linux_low_target): Wire in ppc_emit_ops.
8569 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8570 Marcin Kościelnicki <koriakin@0x04.net>
8573 * Makefile.in: Add powerpc-*-ipa.o
8574 * configure.srv: Add ipa_obj for powerpc*-linux.
8575 * linux-ppc-ipa.c: New file.
8576 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8578 (PPC_FIELD): New macro.
8579 (PPC_SEXT): New macro.
8580 (PPC_OP6): New macro.
8581 (PPC_BO): New macro.
8582 (PPC_LI): New macro.
8583 (PPC_BD): New macro.
8584 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8585 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8586 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8587 (ppc_get_thread_area): New function.
8588 (is_elfv2_inferior): New function.
8589 (gen_ds_form): New function.
8590 (GEN_STD): New macro.
8591 (GEN_STDU): New macro.
8592 (GEN_LD): New macro.
8593 (GEN_LDU): New macro.
8594 (gen_d_form): New function.
8595 (GEN_ADDI): New macro.
8596 (GEN_ADDIS): New macro.
8597 (GEN_LI): New macro.
8598 (GEN_LIS): New macro.
8599 (GEN_ORI): New macro.
8600 (GEN_ORIS): New macro.
8601 (GEN_LWZ): New macro.
8602 (GEN_STW): New macro.
8603 (GEN_STWU): New macro.
8604 (gen_xfx_form): New function.
8605 (GEN_MFSPR): New macro.
8606 (GEN_MTSPR): New macro.
8607 (GEN_MFCR): New macro.
8608 (GEN_MTCR): New macro.
8609 (GEN_SYNC): New macro.
8610 (GEN_LWSYNC): New macro.
8611 (gen_x_form): New function.
8612 (GEN_OR): New macro.
8613 (GEN_MR): New macro.
8614 (GEN_LWARX): New macro.
8615 (GEN_STWCX): New macro.
8616 (GEN_CMPW): New macro.
8617 (gen_md_form): New function.
8618 (GEN_RLDICL): New macro.
8619 (GEN_RLDICR): New macro.
8620 (gen_i_form): New function.
8622 (GEN_BL): New macro.
8623 (gen_b_form): New function.
8624 (GEN_BNE): New macro.
8625 (GEN_LOAD): New macro.
8626 (GEN_STORE): New macro.
8627 (gen_limm): New function.
8628 (gen_atomic_xchg): New function.
8629 (gen_call): New function.
8630 (ppc_relocate_instruction): New function.
8631 (ppc_install_fast_tracepoint_jump_pad): New function.
8632 (ppc_get_min_fast_tracepoint_insn_len): New function.
8633 (ppc_get_ipa_tdesc_idx): New function.
8634 (the_low_target): Wire in the new functions.
8635 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8637 * linux-ppc-tdesc.h: New file.
8639 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8641 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8642 (alloc_jump_pad_buffer): New function.
8643 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8644 (alloc_jump_pad_buffer): New function.
8645 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8646 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8647 (alloc_jump_pad_buffer): New function.
8648 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8649 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8650 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8651 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8653 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8655 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8656 * linux-amd64-ipa.c: Likewise.
8657 * linux-i386-ipa.c: Likewise.
8658 * linux-s390-ipa.c: Likewise.
8659 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8660 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8661 set_trace_state_variable_value_ptr.
8662 (struct ipa_sym_addresses): Likewise.
8663 (symbol_list): Likewise.
8664 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8665 accessing gdb_collect directly.
8666 (gdb_collect_ptr_type): New typedef.
8667 (get_raw_reg_ptr_type): New typedef.
8668 (get_trace_state_variable_value_ptr_type): New typedef.
8669 (set_trace_state_variable_value_ptr_type): New typedef.
8670 (gdb_collect_ptr): New global.
8671 (get_raw_reg_ptr): New global.
8672 (get_trace_state_variable_value_ptr): New global.
8673 (set_trace_state_variable_value_ptr): New global.
8674 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8675 accessing get_raw_reg directly.
8676 (get_get_tsv_func_addr): Likewise for
8677 get_trace_state_variable_value_ptr.
8678 (get_set_tsv_func_addr): Likewise for
8679 set_trace_state_variable_value_ptr.
8680 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8682 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8684 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8686 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8688 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8690 (relocate_instruction): Remove own_buf.
8691 * server.c (own_buf): Make global.
8692 (handle_v_requests): Make global.
8693 * server.h (own_buf): New declaration.
8694 (handle_v_requests): New prototype.
8696 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8699 * linux-s390-low.c (add_insns): New function.
8700 (s390_emit_prologue): New function.
8701 (s390_emit_epilogue): New function.
8702 (s390_emit_add): New function.
8703 (s390_emit_sub): New function.
8704 (s390_emit_mul): New function.
8705 (s390_emit_lsh): New function.
8706 (s390_emit_rsh_signed): New function.
8707 (s390_emit_rsh_unsigned): New function.
8708 (s390_emit_ext): New function.
8709 (s390_emit_log_not): New function.
8710 (s390_emit_bit_and): New function.
8711 (s390_emit_bit_or): New function.
8712 (s390_emit_bit_xor): New function.
8713 (s390_emit_bit_not): New function.
8714 (s390_emit_equal): New function.
8715 (s390_emit_less_signed): New function.
8716 (s390_emit_less_unsigned): New function.
8717 (s390_emit_ref): New function.
8718 (s390_emit_if_goto): New function.
8719 (s390_emit_goto): New function.
8720 (s390_write_goto_address): New function.
8721 (s390_emit_litpool): New function.
8722 (s390_emit_const): New function.
8723 (s390_emit_call): New function.
8724 (s390_emit_reg): New function.
8725 (s390_emit_pop): New function.
8726 (s390_emit_stack_flush): New function.
8727 (s390_emit_zero_ext): New function.
8728 (s390_emit_swap): New function.
8729 (s390_emit_stack_adjust): New function.
8730 (s390_emit_set_r2): New function.
8731 (s390_emit_int_call_1): New function.
8732 (s390_emit_void_call_2): New function.
8733 (s390_emit_eq_goto): New function.
8734 (s390_emit_ne_goto): New function.
8735 (s390_emit_lt_goto): New function.
8736 (s390_emit_le_goto): New function.
8737 (s390_emit_gt_goto): New function.
8738 (s390_emit_ge_goto): New function.
8739 (s390x_emit_prologue): New function.
8740 (s390x_emit_epilogue): New function.
8741 (s390x_emit_add): New function.
8742 (s390x_emit_sub): New function.
8743 (s390x_emit_mul): New function.
8744 (s390x_emit_lsh): New function.
8745 (s390x_emit_rsh_signed): New function.
8746 (s390x_emit_rsh_unsigned): New function.
8747 (s390x_emit_ext): New function.
8748 (s390x_emit_log_not): New function.
8749 (s390x_emit_bit_and): New function.
8750 (s390x_emit_bit_or): New function.
8751 (s390x_emit_bit_xor): New function.
8752 (s390x_emit_bit_not): New function.
8753 (s390x_emit_equal): New function.
8754 (s390x_emit_less_signed): New function.
8755 (s390x_emit_less_unsigned): New function.
8756 (s390x_emit_ref): New function.
8757 (s390x_emit_if_goto): New function.
8758 (s390x_emit_const): New function.
8759 (s390x_emit_call): New function.
8760 (s390x_emit_reg): New function.
8761 (s390x_emit_pop): New function.
8762 (s390x_emit_stack_flush): New function.
8763 (s390x_emit_zero_ext): New function.
8764 (s390x_emit_swap): New function.
8765 (s390x_emit_stack_adjust): New function.
8766 (s390x_emit_int_call_1): New function.
8767 (s390x_emit_void_call_2): New function.
8768 (s390x_emit_eq_goto): New function.
8769 (s390x_emit_ne_goto): New function.
8770 (s390x_emit_lt_goto): New function.
8771 (s390x_emit_le_goto): New function.
8772 (s390x_emit_gt_goto): New function.
8773 (s390x_emit_ge_goto): New function.
8774 (s390_emit_ops): New function.
8775 (struct linux_target_ops): Fill in emit_ops hook.
8777 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8780 * Makefile.in: Add s390 IPA files.
8781 * configure.srv: Build IPA for s390.
8782 * linux-s390-ipa.c: New file.
8783 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8784 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8785 (tdesc_s390_linux32): Likewise.
8786 (init_registers_s390_linux32v1): Likewise.
8787 (tdesc_s390_linux32v1): Likewise.
8788 (init_registers_s390_linux32v2): Likewise.
8789 (tdesc_s390_linux32v2): Likewise.
8790 (init_registers_s390_linux64): Likewise.
8791 (tdesc_s390_linux64): Likewise.
8792 (init_registers_s390_linux64v1): Likewise.
8793 (tdesc_s390_linux64v1): Likewise.
8794 (init_registers_s390_linux64v2): Likewise.
8795 (tdesc_s390_linux64v2): Likewise.
8796 (init_registers_s390_te_linux64): Likewise.
8797 (tdesc_s390_te_linux64): Likewise.
8798 (init_registers_s390_vx_linux64): Likewise.
8799 (tdesc_s390_vx_linux64): Likewise.
8800 (init_registers_s390_tevx_linux64): Likewise.
8801 (tdesc_s390_tevx_linux64): Likewise.
8802 (init_registers_s390x_linux64): Likewise.
8803 (tdesc_s390x_linux64): Likewise.
8804 (init_registers_s390x_linux64v1): Likewise.
8805 (tdesc_s390x_linux64v1): Likewise.
8806 (init_registers_s390x_linux64v2): Likewise.
8807 (tdesc_s390x_linux64v2): Likewise.
8808 (init_registers_s390x_te_linux64): Likewise.
8809 (tdesc_s390x_te_linux64): Likewise.
8810 (init_registers_s390x_vx_linux64): Likewise.
8811 (tdesc_s390x_vx_linux64): Likewise.
8812 (init_registers_s390x_tevx_linux64): Likewise.
8813 (tdesc_s390x_tevx_linux64): Likewise.
8814 (have_hwcap_s390_vx): New static variable.
8815 (s390_arch_setup): Fill have_hwcap_s390_vx.
8816 (s390_get_thread_area): New function.
8817 (s390_ft_entry_gpr_esa): New const.
8818 (s390_ft_entry_gpr_zarch): New const.
8819 (s390_ft_entry_misc): New const.
8820 (s390_ft_entry_fr): New const.
8821 (s390_ft_entry_vr): New const.
8822 (s390_ft_main_31): New const.
8823 (s390_ft_main_64): New const.
8824 (s390_ft_exit_fr): New const.
8825 (s390_ft_exit_vr): New const.
8826 (s390_ft_exit_misc): New const.
8827 (s390_ft_exit_gpr_esa): New const.
8828 (s390_ft_exit_gpr_zarch): New const.
8829 (append_insns): New function.
8830 (s390_relocate_instruction): New function.
8831 (s390_install_fast_tracepoint_jump_pad): New function.
8832 (s390_get_min_fast_tracepoint_insn_len): New function.
8833 (s390_get_ipa_tdesc_idx): New function.
8834 (struct linux_target_ops): Wire in the above functions.
8835 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8836 * linux-s390-tdesc.h: New file.
8838 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8840 * linux-s390-low.c (s390_supports_tracepoints): New function.
8841 (struct linux_target_ops): Fill supports_tracepoints hook.
8843 2016-03-18 Yao Qi <yao.qi@linaro.org>
8845 * linux-low.c (lwp_signal_can_be_delivered): New function.
8846 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8848 2016-03-18 Yao Qi <yao.qi@linaro.org>
8850 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8851 0 if signal is enqueued. Remove 'signal' from one debugging
8852 message. Move one debugging message to some lines below.
8853 Remove code setting 'signal' to 0.
8855 2016-03-18 Yao Qi <yao.qi@linaro.org>
8857 * linux-low.c (linux_low_filter_event): Remove redundant
8858 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8860 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8862 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8863 (struct linux_target_ops): Wire in the above.
8865 2016-03-03 Yao Qi <yao.qi@linaro.org>
8867 * linux-low.c: Update comments to start_step_over.
8869 2016-03-03 Yao Qi <yao.qi@linaro.org>
8872 * linux-low.c (handle_extended_wait): Set child suspended
8873 if event_lwp->bp_reinsert isn't zero.
8875 2016-03-02 Yao Qi <yao.qi@linaro.org>
8877 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8878 enqueue_pending_signal.
8880 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8882 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8885 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8887 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8888 (s390_regmap_3264) [!__s390x__]: New global.
8889 (s390_collect_ptrace_register): Skip map entries containing -1.
8890 (s390_supply_ptrace_register): Ditto.
8891 (s390_fill_gprs_high): New function.
8892 (s390_store_gprs_high): New function.
8893 (s390_regsets): Add NT_S390_HIGH_GPRS.
8894 (s390_get_hwcap): Enable on 31-bit.
8895 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8896 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8897 Detect NT_S390_HIGH_GPRS.
8898 (s390_usrregs_info_3264): Enable on 31-bit.
8899 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8900 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8902 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8905 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8906 * configure.srv: Ditto.
8907 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8908 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8909 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8910 (init_registers_amd64_linux): Remove prototype.
8911 (tdesc_amd64_linux): Remove declaration.
8912 (get_ipa_tdesc): New function.
8913 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8914 initialize remaining tdescs.
8915 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8916 (init_registers_i386_linux): Remove prototype.
8917 (tdesc_i386_linux): Remove declaration.
8918 (get_ipa_tdesc): New function.
8919 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8920 initialize remaining tdescs.
8921 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8922 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8923 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8924 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8925 (x86_get_ipa_tdesc_idx): New function.
8926 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8927 * linux-x86-tdesc.h: New file.
8928 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8929 (target_get_ipa_tdesc_idx): New macro.
8930 * tracepoint.c (ipa_tdesc_idx): New macro.
8931 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8932 (symbol_list): Add ipa_tdesc_idx.
8933 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8934 (ipa_tdesc): Remove.
8935 (ipa_tdesc_idx): New variable.
8936 (get_context_regcache): Use get_ipa_tdesc.
8937 (gdb_collect): Ditto.
8939 * tracepoint.h (get_ipa_tdesc): New prototype.
8940 (ipa_tdesc): Remove.
8942 2016-02-24 Pedro Alves <palves@redhat.com>
8944 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8945 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8946 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8947 Factor out common code between the USE_SIGTRAP_SIGINFO and
8948 !USE_SIGTRAP_SIGINFO blocks.
8949 (linux_low_filter_event): Call save_stop_reason instead of
8950 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8952 (linux_wait_1): Update comments.
8954 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8956 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8957 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8958 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8959 ppc_insert_point, ppc_remove_point.
8961 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8963 * linux-s390-low.c (s390_supports_z_point_type): New function.
8964 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8966 2016-02-16 Yao Qi <yao.qi@linaro.org>
8968 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
8969 PC. Get pc from regcache_read_pc.
8971 2016-02-12 Yao Qi <yao.qi@linaro.org>
8973 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
8974 or linux_get_pc_32bit.
8975 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
8977 2016-02-12 Yao Qi <yao.qi@linaro.org>
8979 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
8980 arm_linux_get_next_pcs_fixup.
8982 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
8984 * tracepoint.c (x_tracepoint_action_download): Change
8985 write_inferior_data_ptr to write_inferior_data_pointer.
8986 (cmd_qtstart): Likewise.
8987 (write_inferior_data_ptr): Remove.
8988 (download_agent_expr): Change write_inferior_data_ptr to
8989 write_inferior_data_pointer.
8990 (download_tracepoint_1): Likewise.
8991 (download_tracepoint): Likewise.
8992 (download_trace_state_variables): Likewise.
8994 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
8995 Marcin Kościelnicki <koriakin@0x04.net>
8997 * tracepoint.c (struct tracepoint_action_ops): Remove.
8998 (struct tracepoint_action): Remove ops.
8999 (m_tracepoint_action_download, r_tracepoint_action_download)
9000 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9001 size and offset accordingly.
9002 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9003 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9004 (tracepoint_action_send, tracepoint_action_download): New functions.
9005 Helpers for trace action handlers.
9006 (add_tracepoint_action): Remove setup actions ops.
9007 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9009 2016-02-10 Yao Qi <yao.qi@linaro.org>
9011 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9013 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9015 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9017 * configure: Regenerate.
9019 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9021 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9022 void * to gdb_byte *.
9023 * linux-low.c (siginfo_fixup): Likewise.
9024 (linux_xfer_siginfo): Likewise.
9025 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9027 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9029 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9031 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9033 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9035 * linux-x86-low.c [__x86_64__]: Include
9036 "nat/amd64-linux-siginfo.h".
9037 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9038 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9039 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9040 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9041 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9042 (cpt_si_fd, si_timerid, si_overrun): Move from
9043 nat/amd64-linux-siginfo.c.
9044 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9046 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9048 * server.c (skip_to_semicolon): Remove.
9049 (process_point_options): Use strchrnul instead of
9052 2016-01-26 Yao Qi <yao.qi@linaro.org>
9054 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9055 * linux-low.c (install_software_single_step_breakpoints): Don't
9056 call regcache_read_pc.
9057 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9060 2016-01-26 Yao Qi <yao.qi@linaro.org>
9062 * linux-low.c (install_software_single_step_breakpoints): Call
9063 regcache_read_pc instead of get_pc.
9065 2016-01-26 Yao Qi <yao.qi@linaro.org>
9067 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9068 (unblock_async_io): Rename to ...
9069 (block_unblock_async_io): ... it. New function.
9070 (enable_async_io): Don't install SIGIO handler. Unblock it
9072 (disable_async_io): Don't ignore SIGIO. Block it instead.
9073 (initialize_async_io): Install SIGIO handler. Don't call
9076 2016-01-26 Yao Qi <yao.qi@linaro.org>
9078 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9079 first character is '\003', call *the_target->request_interrupt.
9081 2016-01-25 Yao Qi <yao.qi@linaro.org>
9083 * remote-utils.c (new_thread_notify): Remove.
9084 (dead_thread_notify): Likewise.
9085 * remote-utils.h (new_thread_notify): Remove declaration.
9086 (dead_thread_notify): Likewise.
9088 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9090 * gdb.trace/pending.exp: Fix expected message on continue.
9092 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9094 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9095 it works properly on big-endian machines where sizeof (CORE_ADDR)
9098 2016-01-21 Pedro Alves <palves@redhat.com>
9100 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9101 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9102 * configure: Regenerate.
9104 2016-01-21 Yao Qi <yao.qi@linaro.org>
9106 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9107 is_thumb and set it according to CPSR saved on the stack.
9108 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9109 arm_sigreturn_next_pc.
9111 2016-01-18 Yao Qi <yao.qi@linaro.org>
9113 * linux-low.c (linux_set_pc_64bit): New function.
9114 (linux_get_pc_64bit): New function.
9115 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9117 * linux-sparc-low.c (debug_threads): Remove declaration.
9118 (sparc_get_pc): Remove.
9119 (the_low_target): Use linux_get_pc_64bit instead of
9121 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9122 (the_low_target): Use linux_get_pc_64bit and
9125 2016-01-18 Yao Qi <yao.qi@linaro.org>
9127 * linux-arm-low.c (debug_threads): Remove declaration.
9128 (arm_get_pc, arm_set_pc): Remove.
9129 (the_low_target): Use linux_get_pc_32bit and
9131 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9132 (the_low_target): Use linux_get_pc_32bit and
9134 * linux-cris-low.c (debug_threads): Remove declaration.
9135 (cris_get_pc, cris_set_pc,): Remove.
9136 (the_low_target): Use linux_get_pc_32bit and
9138 * linux-crisv32-low.c (debug_threads): Remove declaration.
9139 (cris_get_pc, cris_set_pc): Remove.
9140 (the_low_target): Use linux_get_pc_32bit and
9142 * linux-low.c: Include inttypes.h.
9143 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9144 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9145 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9146 (the_low_target): Use linux_get_pc_32bit and
9148 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9149 (the_low_target): Use linux_get_pc_32bit and
9151 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9152 (the_low_target): Use linux_get_pc_32bit and
9154 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9155 (the_low_target): Use linux_get_pc_32bit and
9157 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9158 (the_low_target): Use linux_get_pc_32bit and
9161 2016-01-18 Gary Benson <gbenson@redhat.com>
9163 * configure.ac (AC_FUNC_FORK): New check.
9164 * config.in: Regenerate.
9165 * configure: Likewise.
9167 2016-01-14 Yao Qi <yao.qi@linaro.org>
9169 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9170 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9171 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9172 arm_get_next_pcs_ctor.
9174 2016-01-12 Josh Stone <jistone@redhat.com>
9175 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9177 * inferiors.h: Include "gdb_vecs.h".
9178 (struct process_info): Add syscalls_to_catch.
9179 * inferiors.c (remove_process): Free syscalls_to_catch.
9180 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9181 syscall_return stops.
9182 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9183 * server.c (handle_general_set): Handle QCatchSyscalls.
9184 (handle_query): Report support for QCatchSyscalls.
9185 * target.h (struct target_ops): Add supports_catch_syscall.
9186 (target_supports_catch_syscall): New macro.
9187 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9188 (struct lwp_info): Add syscall_state.
9189 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9190 Maintain syscall_state and syscalls_to_catch across exec.
9191 (get_syscall_trapinfo): New function, proxy to the_low_target.
9192 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9193 (linux_low_filter_event): Toggle syscall_state entry/return for
9194 syscall traps, and set it ignored for all others.
9195 (gdb_catching_syscalls_p): New function.
9196 (gdb_catch_this_syscall_p): New function.
9197 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9198 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9199 (linux_supports_catch_syscall): New function.
9200 (linux_target_ops): Install it.
9201 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9202 (the_low_target): Install it.
9204 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9206 * acinclude.m4: Include new ../warning.m4 file.
9207 * configure: Regenerated.
9208 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9210 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9212 * ax.c (is_goto_target): Mark static.
9213 * linux-low.c (register_addr): Likewise.
9214 (linux_fetch_registers, linux_store_registers): Likewise.
9215 * mem-break.c (any_persistent_commands): Fix old prototype.
9216 (add_commands_to_breakpoint): Mark static.
9217 * regcache.c (find_register_by_name): Delete unused func.
9218 * remote-utils.c (hex_or_minus_one): Mark static.
9219 * server.c (monitor_show_help): Mark static.
9220 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9221 handle_v_requests): Likewise.
9223 2016-01-12 Pedro Alves <palves@redhat.com>
9225 Remove use of the registered trademark symbol throughout.
9227 2016-01-08 Yao Qi <yao.qi@linaro.org>
9229 * remote-utils.c (getpkt): If c is '\003', call target hook
9232 2016-01-06 Yao Qi <yao.qi@linaro.org>
9234 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9235 linux-aarch32-low.c.
9236 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9237 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9238 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9239 (thumb2_breakpoint): Declare.
9240 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9241 linux-aarch32-low.h.
9242 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9243 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9244 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9246 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9248 * gdbreplay.c (gdbreplay_version): Change copyright year in
9250 * server.c (gdbserver_version): Likewise.
9252 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9254 * server.c (crc32_table): Delete.
9255 (crc32): Use libiberty's xcrc32 function.
9257 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9259 * lynx-low.c (lynx_delete_thread_callback): New function.
9260 (lynx_mourn): Properly delete our process and all of its
9261 threads. Remove call to clear_inferiors.
9263 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9265 * target.c (thread_search_callback): Add check that
9266 the thread_stopped target callback is not NULL before
9269 2015-12-21 Yao Qi <yao.qi@linaro.org>
9271 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9274 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9276 * server.c (handle_query): Call target_supports_software_single_step.
9278 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9280 * linux-low.c (single_step): New function.
9281 (linux_resume_one_lwp_throw): Call single_step.
9282 (start_step_over): Likewise.
9284 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9286 * Makefile.in (SFILES): Append arch/arm-linux.c,
9287 arch/arm-get-next-pcs.c.
9288 (arm-linux.o): New rule.
9289 (arm-get-next-pcs.o): New rule.
9290 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9292 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9293 to linux-aarch32-low.c.
9294 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9295 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9296 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9297 (thumb2_breakpoint_len): Likewise.
9298 (arm_is_thumb_mode): Make non-static.
9299 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9300 from linux-aarch32-low.c.
9301 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9302 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9303 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9304 (thumb2_breakpoint_len): Likewise.
9305 (arm_is_thumb_mode): New declaration.
9306 * linux-arm-low.c: Include arch/arm-linux.h
9307 aarch/arm-get-next-pcs.h, sys/syscall.h.
9308 (get_next_pcs_ops): New struct.
9309 (get_next_pcs_addr_bits_remove): New function.
9310 (get_next_pcs_is_thumb): New function.
9311 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9312 (arm_sigreturn_next_pc): Likewise.
9313 (get_next_pcs_syscall_next_pc): Likewise.
9314 (arm_gdbserver_get_next_pcs): Likewise.
9315 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9317 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9318 * server.h: Include gdb_vecs.h.
9320 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9322 * Makefile.in (SFILES): Append common/common-regcache.c.
9323 (OBS): Append common-regcache.o.
9324 (common-regcache.o): New rule.
9325 * regcache.c (init_register_cache): Initialize cache to
9327 (regcache_raw_read_unsigned): New function.
9328 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9329 register_status enum.
9331 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9333 * linux-aarch64-low.c (the_low_targets): Rename
9334 breakpoint_reinsert_addr to get_next_pcs.
9335 * linux-arm-low.c (the_low_targets): Likewise.
9336 * linux-bfin-low.c (the_low_targets): Likewise.
9337 * linux-cris-low.c (the_low_targets): Likewise.
9338 * linux-crisv32-low.c (the_low_targets): Likewise.
9339 * linux-low.c (can_software_single_step): Likewise.
9340 (install_software_single_step_breakpoints): New function.
9341 (start_step_over): Use install_software_single_step_breakpoints.
9342 * linux-low.h: New CORE_ADDR vector.
9343 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9345 * linux-mips-low.c (the_low_targets): Likewise.
9346 * linux-nios2-low.c (the_low_targets): Likewise.
9347 * linux-sparc-low.c (the_low_targets): Likewise.
9349 2015-12-17 Pedro Alves <palves@redhat.com>
9351 * linux-low.c (linux_kill_one_lwp): Remove references to
9353 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9355 (linux_init_signals): Delete.
9356 (initialize_low): Adjust.
9357 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9359 2015-12-16 Pedro Alves <palves@redhat.com>
9361 * configure.ac (compiler warning flags): When testing a
9362 -Wno-foo option, check whether -Wfoo works instead.
9363 * configure: Regenerate.
9365 2015-12-11 Don Breazeal <donb@codesourcery.com>
9367 * server.c (process_serial_event): Don't exit from gdbserver
9368 in remote mode if there are still active inferiors.
9370 2015-12-11 Yao Qi <yao.qi@linaro.org>
9372 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9373 arm_breakpoint_at if the process is 32-bit.
9375 2015-12-11 Yao Qi <yao.qi@linaro.org>
9377 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9380 2015-12-07 Yao Qi <yao.qi@linaro.org>
9382 * configure.srv: Append arm.o to srv_tgtobj for
9383 aarch64*-*-linux* target.
9384 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9385 from linux-arm-low.c.
9386 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9387 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9388 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9389 (thumb2_breakpoint_len): Likewise.
9390 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9391 (arm_breakpoint_kinds): Likewise.
9392 (arm_breakpoint_kind_from_pc): Likewise.
9393 (arm_sw_breakpoint_from_kind): Likewise.
9394 (arm_breakpoint_kind_from_current_state): Likewise.
9395 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9396 (arm_sw_breakpoint_from_kind): Declare.
9397 (arm_breakpoint_kind_from_current_state): Declare.
9398 (arm_breakpoint_at): Declare.
9399 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9400 arm_sw_breakpoint_from_kind if process is 32-bit.
9401 (aarch64_breakpoint_kind_from_pc): New function.
9402 (aarch64_breakpoint_kind_from_current_state): New function.
9403 (the_low_target): Initialize fields breakpoint_kind_from_pc
9404 and breakpoint_kind_from_current_state.
9405 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9406 linux-aarch32-low.c.
9407 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9408 (arm_breakpoint, arm_breakpoint_len): Likewise.
9409 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9410 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9411 (arm_is_thumb_mode): Likewise.
9412 (arm_breakpoint_at): Likewise.
9413 (arm_breakpoint_kind_from_pc): Likewise.
9414 (arm_sw_breakpoint_from_kind): Likewise.
9415 (arm_breakpoint_kind_from_current_state): Likewise.
9418 2015-08-04 Yao Qi <yao.qi@linaro.org>
9420 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9421 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9422 * server.c (extended_protocol): Remove "static".
9423 * server.h (extended_protocol): Declare it.
9425 2015-12-04 Josh Stone <jistone@redhat.com>
9427 * target.h (struct target_ops) <arch_setup>: Rename to ...
9428 (struct target_ops) <post_create_inferior>: ... this.
9429 (target_arch_setup): Rename to ...
9430 (target_post_create_inferior): ... this, calling post_create_inferior.
9431 * server.c (start_inferior): Update target_arch_setup calls to
9432 target_post_create_inferior.
9433 * linux-low.c (linux_low_ptrace_options): Forward declare.
9434 (linux_arch_setup): Update its comment for general use.
9435 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9436 (struct linux_target_ops): Use linux_post_create_inferior.
9437 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9438 to post_create_inferior.
9439 * nto-low.c (struct nto_target_ops): Likewise.
9440 * spu-low.c (struct spu_target_ops): Likewise.
9441 * win32-low.c (struct win32_target_ops): Likewise.
9443 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9445 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9447 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9449 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9450 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9451 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9452 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9453 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9454 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9455 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9456 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9457 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9458 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9459 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9460 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9462 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9464 * linux-low.c (linux_look_up_symbols): Don't call
9465 linux_supports_traceclone.
9466 * linux-low.h (thread_db_init): Remove use_events argument.
9467 * thread-db.c (thread_db_use_event): Remove global variable.
9468 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9469 (struct thread_db) <td_create_bp>: Remove field.
9470 (thread_db_create_event): Remove function.
9471 (thread_db_enable_reporting): Likewise.
9472 (find_one_thread): Don't check for thread_db_use_events.
9473 (attach_thread): Likewise.
9474 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9475 (try_thread_db_load_1): Don't check for thread_db_use_events.
9476 (thread_db_init): Remove use_events argument and thread events
9478 (remove_thread_event_breakpoints): Remove function.
9479 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9481 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9483 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9485 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9486 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9487 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9488 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9489 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9491 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9493 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9494 * linux-low.c (can_hardware_single_step): Use
9495 supports_hardware_single_step.
9496 (can_software_single_step): New function.
9497 (start_step_over): Call can_software_single_step.
9498 (linux_supports_hardware_single_step): New function.
9499 (struct target_ops) <supports_software_single_step>: Initialize.
9500 * linux-low.h (struct linux_target_ops)
9501 <supports_hardware_single_step>: Initialize.
9502 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9503 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9504 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9505 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9506 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9507 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9508 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9509 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9510 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9511 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9513 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9514 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9516 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9517 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9518 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9520 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9521 * target.h (struct target_ops): <supports_software_single_step>:
9523 (target_supports_software_single_step): New macro.
9525 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9527 * linux-low.c (linux_wait_1): Fix pc advance condition.
9528 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9529 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9531 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9533 * linux-arm-low.c (arm_is_thumb_mode): New function.
9534 (arm_breakpoint_at): Use arm_is_thumb_mode.
9535 (arm_breakpoint_kind_from_current_state): New function.
9536 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9538 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9539 (linux_breakpoint_kind_from_current_state): New function.
9540 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9541 * linux-low.h (struct linux_target_ops)
9542 <breakpoint_kind_from_current_state>: New field.
9543 * target.h (struct target_ops): Likewise.
9544 (target_breakpoint_kind_from_current_state): New macro.
9546 2015-11-30 Pedro Alves <palves@redhat.com>
9548 * linux-low.c (linux_resume): Wake up the event loop before
9551 2015-11-30 Pedro Alves <palves@redhat.com>
9553 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9555 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9557 * target.c (struct thread_search): New structure.
9558 (thread_search_callback): New function.
9559 (prev_general_thread): New global.
9560 (prepare_to_access_memory, done_accessing_memory): New functions.
9561 * target.h (prepare_to_access_memory, done_accessing_memory):
9562 Replace macros with function declarations.
9564 2015-11-30 Pedro Alves <palves@redhat.com>
9567 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9568 report TARGET_WAITKIND_NO_RESUMED.
9569 * remote-utils.c (prepare_resume_reply): Handle
9570 TARGET_WAITKIND_NO_RESUMED.
9571 * server.c (report_no_resumed): New global.
9572 (handle_query) <qSupported>: Handle "no-resumed+". Report
9573 "no-resumed+" support.
9574 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9575 return error if the client doesn't support no-resumed events.
9576 (push_stop_notification): New function.
9577 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9578 events if the client supports them.
9580 2015-11-30 Pedro Alves <palves@redhat.com>
9582 * linux-low.c (thread_still_has_status_pending_p): Don't check
9584 (lwp_resumed): New function.
9585 (status_pending_p_callback): Return early if the LWP is not
9586 supposed to be resumed.
9588 2015-11-30 Pedro Alves <palves@redhat.com>
9590 * linux-low.c (handle_extended_wait): Assert that the LWP's
9591 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9592 thread create events, leave the new child's status pending.
9593 (linux_low_filter_event): If GDB wants to hear about thread exit
9594 events, leave the LWP marked dead and don't delete it.
9595 (linux_wait_for_event_filtered): Don't check for thread exit.
9596 (filter_exit_event): New function.
9597 (linux_wait_1): Use it, when returning an exit event.
9598 (linux_resume_one_lwp_throw): Assert that the LWP's
9599 waitstatus is TARGET_WAITKIND_IGNORE.
9600 * remote-utils.c (prepare_resume_reply): Handle
9601 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9602 * server.c (report_thread_events): New global.
9603 (handle_general_set): Handle QThreadEvents.
9604 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9605 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9606 TARGET_WAITKIND_THREAD_EXITED.
9607 * server.h (report_thread_events): Declare.
9609 2015-11-30 Pedro Alves <palves@redhat.com>
9611 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9612 the thread's last_resume_kind was resume_stop.
9614 2015-11-30 Pedro Alves <palves@redhat.com>
9616 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9619 2015-11-30 Pedro Alves <palves@redhat.com>
9621 * server.c (handle_v_requests): Handle vCtrlC.
9623 2015-11-30 Pedro Alves <palves@redhat.com>
9625 * gdbthread.h (find_any_thread_of_pid): Declare.
9626 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9628 * server.c (handle_query): If current_thread is NULL, look for
9629 another thread of the selected process.
9631 2015-11-26 Daniel Colascione <dancol@dancol.org>
9632 Simon Marchi <simon.marchi@ericsson.com>
9634 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9635 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9637 * target.h (struct target_ops) <thread_name>: New field.
9638 (target_thread_name): New macro.
9640 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9642 * regcache.h (regcache_invalidate_pid): Add declaration.
9643 * regcache.c (regcache_invalidate_pid): New function, extracted
9644 from regcache_invalidate.
9645 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9646 Add trivial documentation comment.
9647 * lynx-low.c: Use regcache_invalidate_pid instead of
9648 regcache_invalidate.
9650 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9652 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9653 and Elf64_auxv_t if the target is Android.
9655 2015-11-22 Doug Evans <xdje42@gmail.com>
9657 * target.h: #include <sys/types.h>.
9659 2015-11-19 Pedro Alves <palves@redhat.com>
9661 * linux-low.c (linux_process_qsupported): Change prototype.
9663 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9665 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9666 and adjust to loop over all features.
9667 * server.c (handle_query) <qSupported>: Adjust to call
9668 target_process_qsupported once, passing it a vector of unprocessed
9670 * target.h (struct target_ops) <process_qsupported>: Change
9672 (target_process_qsupported): Adjust.
9674 2015-11-19 Pedro Alves <palves@redhat.com>
9676 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9678 * configure: Regenerate.
9680 2015-11-19 Pedro Alves <palves@redhat.com>
9682 * configure: Regenerate.
9684 2015-11-19 Yao Qi <yao.qi@linaro.org>
9686 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9689 2015-11-19 Yao Qi <yao.qi@linaro.org>
9691 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9692 (struct aarch64_operand): Move enum out.
9694 2015-11-19 Yao Qi <yao.qi@linaro.org>
9696 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9697 struct user_fpsimd_state *.
9698 (aarch64_store_fpregset): Likewise.
9700 2015-11-19 Yao Qi <yao.qi@linaro.org>
9702 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9703 struct user_pt_regs *.
9704 (aarch64_store_gregset): Likewise.
9706 2015-11-18 Pedro Alves <palves@redhat.com>
9708 * Makefile.in (all_object_files): Add $IPA_OBJS.
9710 2015-11-17 Pedro Alves <palves@redhat.com>
9712 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9713 GDB_SIGNAL_0 and gdb_signal_to_string.
9715 2015-11-17 Pedro Alves <palves@redhat.com>
9717 * win32-low.c (handle_output_debug_string): Remove parameter.
9718 (win32_kill): Remove our_status local and adjust call to
9719 handle_output_debug_string.
9720 (get_child_debug_event): Adjust call to
9721 handle_output_debug_string.
9723 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9725 * linux-mips-low.c (mips_fill_gregset): Add cast.
9726 (mips_store_gregset): Likewise.
9727 (mips_fill_fpregset): Likewise.
9728 (mips_store_fpregset): Likewise.
9730 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9732 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9735 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9737 * linux-mips-low.c (mips_linux_new_thread): Change type of
9738 watch_type to enum target_hw_bp_type.
9740 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9742 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9743 Change return type to arm_hwbp_type.
9745 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9747 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9748 (arm_store_gregset): Likewise.
9749 * linux-arm-low.c (arm_get_hwcap): Likewise.
9750 (arm_read_description): Likewise.
9752 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9754 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9756 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9758 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9759 (ppc_fill_vsxregset): Likewise.
9760 (ppc_store_vsxregset): Likewise.
9761 (ppc_fill_vrregset): Likewise.
9762 (ppc_store_vrregset): Likewise.
9763 (ppc_fill_evrregset): Likewise.
9764 (ppc_store_evrregset): Likewise.
9766 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9768 * linux-ppc-low.c (ppc_usrregs_info): Remove
9769 forward-declaration.
9770 (ppc_arch_setup): Move lower in file.
9772 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9774 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9775 (ps_pdwrite): Likewise.
9777 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9779 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9780 to after assert checks.
9782 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9784 * proc-service.c (ps_pdread): Add/adjust casts.
9785 (ps_pdwrite): Add/adjust casts.
9787 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9789 * server.c (handle_search_memory_1): Cast return value of
9792 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9794 * server.c (write_qxfer_response): Change type of data to
9797 2015-10-29 Pedro Alves <palves@redhat.com>
9799 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9801 2015-10-29 Pedro Alves <palves@redhat.com>
9803 * tracepoint.c (clear_installed_tracepoints): Add casts.
9805 2015-10-29 Pedro Alves <palves@redhat.com>
9807 * server.c (handle_v_cont, process_serial_event): Add enum
9808 gdb_signal casts to signal parsing code.
9810 2015-10-29 Pedro Alves <palves@redhat.com>
9812 * linux-low.h (NULL_REGSET): Define.
9813 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9814 * linux-arm-low.c (arm_regsets): Likewise.
9815 * linux-crisv32-low.c (cris_regsets): Likewise.
9816 * linux-m68k-low.c (m68k_regsets): Likewise.
9817 * linux-mips-low.c (mips_regsets): Likewise.
9818 * linux-nios2-low.c (nios2_regsets): Likewise.
9819 * linux-ppc-low.c (ppc_regsets): Likewise.
9820 * linux-s390-low.c (s390_regsets): Likewise.
9821 * linux-sh-low.c (sh_regsets): Likewise.
9822 * linux-sparc-low.c (sparc_regsets): Likewise.
9823 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9824 * linux-tile-low.c (tile_regsets): Likewise.
9825 * linux-x86-low.c (x86_regsets): Likewise.
9826 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9828 2015-10-29 Pedro Alves <palves@redhat.com>
9830 * linux-low.h (NULL_REGSET): Define.
9831 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9832 * linux-arm-low.c (arm_regsets): Likewise.
9833 * linux-crisv32-low.c (cris_regsets): Likewise.
9834 * linux-m68k-low.c (m68k_regsets): Likewise.
9835 * linux-mips-low.c (mips_regsets): Likewise.
9836 * linux-nios2-low.c (nios2_regsets): Likewise.
9837 * linux-ppc-low.c (ppc_regsets): Likewise.
9838 * linux-s390-low.c (s390_regsets): Likewise.
9839 * linux-sh-low.c (sh_regsets): Likewise.
9840 * linux-sparc-low.c (sparc_regsets): Likewise.
9841 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9842 * linux-tile-low.c (tile_regsets): Likewise.
9843 * linux-x86-low.c (x86_regsets): Likewise.
9844 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9846 2015-10-26 Doug Evans <dje@google.com>
9848 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9850 2015-10-26 Doug Evans <dje@google.com>
9852 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9854 2015-10-26 Doug Evans <dje@google.com>
9856 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9858 (attach_thread, find_new_threads_callback): Ditto.
9860 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9862 * mem-break.h (set_breakpoint_data): Remove.
9864 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9866 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9867 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9868 (initialize_low): Remove set_breakpoint_data call.
9869 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9870 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9871 (initialize_low): Remove set_breakpoint_data call.
9872 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9873 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9874 (initialize_low): Remove set_breakpoint_data call.
9876 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9878 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9879 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9880 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9881 * target.h (target_breakpoint_kind_from_pc): New macro.
9883 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9885 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9886 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9887 the default breakpoint kind.
9889 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9891 * linux-arm-low.c (arm_supports_z_point_type): Add software
9894 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9896 * linux-arm-low.c: Refactor breakpoint definitions.
9897 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9898 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9900 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9902 * Makefile.in: Add arm.c/o.
9903 * configure.srv: Likewise.
9904 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9905 (arm_breakpoint_kind_from_pc): New function.
9906 (arm_sw_breakpoint_from_kind): Return proper kind.
9907 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9909 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9911 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9913 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9914 (struct raw_breakpoint) <size>: Remove.
9915 (struct raw_breakpoint) <kind>: Add.
9916 (bp_size): New function.
9917 (bp_opcode): Likewise.
9918 (find_raw_breakpoint_at): Adjust for kind.
9919 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9920 (remove_memory_breakpoint): Adjust for kind call bp_size.
9921 (set_raw_breakpoint_at): Adjust for kind.
9922 (set_breakpoint): Likewise.
9923 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9924 (delete_raw_breakpoint): Adjust for kind.
9925 (delete_breakpoint): Likewise.
9926 (find_gdb_breakpoint): Likewise.
9927 (set_gdb_breakpoint_1): Likewise.
9928 (set_gdb_breakpoint): Likewise.
9929 (delete_gdb_breakpoint_1): Likewise.
9930 (delete_gdb_breakpoint): Likewise.
9931 (uninsert_raw_breakpoint): Likewise.
9932 (reinsert_raw_breakpoint): Likewise.
9933 (set_breakpoint_data): Remove.
9934 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9935 (check_mem_read): Adjust for kind call bp_size.
9936 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9937 (clone_one_breakpoint): Adjust for kind.
9938 * mem-break.h (set_gdb_breakpoint): Likewise.
9939 (delete_gdb_breakpoint): Likewise.
9940 * server.c (process_serial_event): Likewise.
9942 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9944 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
9945 (struct linux_target_ops) <breakpoint>: Remove.
9946 (struct linux_target_ops) <breakpoint_len>: Remove.
9947 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9948 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9949 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9950 (arm_sw_breakpoint_from_kind): New function.
9951 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9952 (struct linux_target_ops) <breakpoint>: Remove.
9953 (struct linux_target_ops) <breakpoint_len>: Remove.
9954 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9955 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9956 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9957 (struct linux_target_ops) <breakpoint>: Remove.
9958 (struct linux_target_ops) <breakpoint_len>: Remove.
9959 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9960 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9961 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9962 (struct linux_target_ops) <breakpoint>: Remove.
9963 (struct linux_target_ops) <breakpoint_len>: Remove.
9964 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9965 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9966 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9967 and sw_breakpoint_from_kind to increment the pc.
9968 (linux_breakpoint_kind_from_pc): New function.
9969 (linux_sw_breakpoint_from_kind): New function.
9970 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
9971 (initialize_low): Call breakpoint_kind_from_pc and
9972 sw_breakpoint_from_kind to replace breakpoint_data/len.
9973 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
9975 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
9976 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
9977 (struct linux_target_ops) <breakpoint>: Remove.
9978 (struct linux_target_ops) <breakpoint_len>: Remove.
9979 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9980 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9981 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
9982 (struct linux_target_ops) <breakpoint>: Remove.
9983 (struct linux_target_ops) <breakpoint_len>: Remove.
9984 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9985 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9986 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
9987 (struct linux_target_ops) <breakpoint>: Remove.
9988 (struct linux_target_ops) <breakpoint_len>: Remove.
9989 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9990 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9991 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
9992 (struct linux_target_ops) <breakpoint>: Remove.
9993 (struct linux_target_ops) <breakpoint_len>: Remove.
9994 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9995 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9996 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
9997 (struct linux_target_ops) <breakpoint>: Remove.
9998 (struct linux_target_ops) <breakpoint_len>: Remove.
9999 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10000 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10001 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10002 (struct linux_target_ops) <breakpoint>: Remove.
10003 (struct linux_target_ops) <breakpoint_len>: Remove.
10004 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10005 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10006 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10007 (struct linux_target_ops) <breakpoint>: Remove.
10008 (struct linux_target_ops) <breakpoint_len>: Remove.
10009 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10010 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10011 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10012 (struct linux_target_ops) <breakpoint>: Remove.
10013 (struct linux_target_ops) <breakpoint_len>: Remove.
10014 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10015 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10016 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10017 (struct linux_target_ops) <breakpoint>: Remove.
10018 (struct linux_target_ops) <breakpoint_len>: Remove.
10019 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10020 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10021 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10022 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10023 (struct linux_target_ops) <breakpoint>: Remove.
10024 (struct linux_target_ops) <breakpoint_len>: Remove.
10025 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10026 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10027 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10028 (struct linux_target_ops) <breakpoint>: Remove.
10029 (struct linux_target_ops) <breakpoint_len>: Remove.
10030 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10031 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10033 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10035 * linux-cris-low.c (cris_get_pc): Remove void arg.
10037 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10039 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10042 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10044 * inferiors.c (thread_pid_matches_callback): New function.
10045 (find_thread_process): New function.
10046 (remove_thread): Reset current_thread.
10047 (remove_process): Assert threads have been removed first.
10049 2015-10-15 Yao Qi <yao.qi@linaro.org>
10051 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10053 (aarch64_remove_point): Likewise.
10054 * regcache.c (regcache_register_size): New function.
10056 2015-10-12 Yao Qi <yao.qi@linaro.org>
10058 * linux-aarch64-low.c: Update all callers as emit_load_store
10059 is renamed to aarch64_emit_load_store.
10061 2015-10-12 Yao Qi <yao.qi@linaro.org>
10063 * linux-aarch64-low.c: Update all callers of function renaming
10064 from emit_insn to aarch64_emit_insn.
10066 2015-10-12 Yao Qi <yao.qi@linaro.org>
10068 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10069 arch/aarch64-insn.h.
10070 (struct aarch64_memory_operand): Likewise.
10071 (ENCODE): Likewise.
10072 (emit_insn): Move to arch/aarch64-insn.c.
10073 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10074 (emit_load_store): Move to arch/aarch64-insn.c.
10075 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10076 (can_encode_int32): Remove.
10078 2015-10-12 Yao Qi <yao.qi@linaro.org>
10080 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10081 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10082 (aarch64_relocate_instruction): Likewise.
10083 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10084 (struct aarch64_insn_visitor): Likewise.
10086 2015-10-12 Yao Qi <yao.qi@linaro.org>
10088 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10089 (struct aarch64_insn_visitor): New.
10090 (struct aarch64_insn_relocation_data): New.
10091 (aarch64_ftrace_insn_reloc_b): New function.
10092 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10093 (aarch64_ftrace_insn_reloc_cb): Likewise.
10094 (aarch64_ftrace_insn_reloc_tb): Likewise.
10095 (aarch64_ftrace_insn_reloc_adr): Likewise.
10096 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10097 (aarch64_ftrace_insn_reloc_others): Likewise.
10099 (aarch64_relocate_instruction): Use visitor.
10101 2015-10-12 Yao Qi <yao.qi@linaro.org>
10103 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10104 int. Add argument buf.
10105 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10106 aarch64_relocate_instruction.
10108 2015-10-12 Yao Qi <yao.qi@linaro.org>
10110 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10111 argument insn. Remove local variable insn. Don't call
10112 target_read_uint32.
10113 (aarch64_install_fast_tracepoint_jump_pad): Call
10114 target_read_uint32.
10116 2015-09-30 Yao Qi <yao.qi@linaro.org>
10118 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10119 (emit_load_store_pair): Likewise.
10121 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10123 * dll.c (match_dll): Add cast(s).
10124 (unloaded_dll): Likewise.
10125 * linux-low.c (second_thread_of_pid_p): Likewise.
10126 (delete_lwp_callback): Likewise.
10127 (count_events_callback): Likewise.
10128 (select_event_lwp_callback): Likewise.
10129 (linux_set_resume_request): Likewise.
10130 * server.c (accumulate_file_name_length): Likewise.
10131 (emit_dll_description): Likewise.
10132 (handle_qxfer_threads_worker): Likewise.
10133 (visit_actioned_threads): Likewise.
10134 * thread-db.c (any_thread_of): Likewise.
10135 * tracepoint.c (same_process_p): Likewise.
10136 (match_blocktype): Likewise.
10137 (build_traceframe_info_xml): Likewise.
10139 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10141 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10143 (gdb_unparse_agent_expr): Likewise.
10144 * hostio.c (require_data): Likewise.
10145 (handle_pread): Likewise.
10146 * linux-low.c (disable_regset): Likewise.
10147 (fetch_register): Likewise.
10148 (store_register): Likewise.
10149 (get_dynamic): Likewise.
10150 (linux_qxfer_libraries_svr4): Likewise.
10151 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10152 (set_fast_tracepoint_jump): Likewise.
10153 (uninsert_fast_tracepoint_jumps_at): Likewise.
10154 (reinsert_fast_tracepoint_jumps_at): Likewise.
10155 (validate_inserted_breakpoint): Likewise.
10156 (clone_agent_expr): Likewise.
10157 * regcache.c (init_register_cache): Likewise.
10158 * remote-utils.c (putpkt_binary_1): Likewise.
10159 (decode_M_packet): Likewise.
10160 (decode_X_packet): Likewise.
10161 (look_up_one_symbol): Likewise.
10162 (relocate_instruction): Likewise.
10163 (monitor_output): Likewise.
10164 * server.c (handle_search_memory): Likewise.
10165 (handle_qxfer_exec_file): Likewise.
10166 (handle_qxfer_libraries): Likewise.
10167 (handle_qxfer): Likewise.
10168 (handle_query): Likewise.
10169 (handle_v_cont): Likewise.
10170 (handle_v_run): Likewise.
10171 (captured_main): Likewise.
10172 * target.c (write_inferior_memory): Likewise.
10173 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10174 * tracepoint.c (init_trace_buffer): Likewise.
10175 (add_tracepoint_action): Likewise.
10176 (add_traceframe): Likewise.
10177 (add_traceframe_block): Likewise.
10178 (cmd_qtdpsrc): Likewise.
10179 (cmd_qtdv): Likewise.
10180 (cmd_qtstatus): Likewise.
10181 (response_source): Likewise.
10182 (response_tsv): Likewise.
10183 (cmd_qtnotes): Likewise.
10184 (gdb_collect): Likewise.
10185 (initialize_tracepoint): Likewise.
10187 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10189 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10190 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10191 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10193 (enum aarch64_condition_codes): New enum.
10194 (w0): New static global.
10197 (struct aarch64_memory_operand) <type>: New
10198 MEMORY_OPERAND_POSTINDEX type.
10199 (postindex_memory_operand): New helper function.
10200 (emit_ret): New function.
10201 (emit_load_store_pair): New function, factored out of emit_stp
10202 with support for MEMORY_OPERAND_POSTINDEX.
10203 (emit_stp): Rewrite using emit_load_store_pair.
10204 (emit_ldp): New function.
10205 (emit_load_store): Likewise.
10206 (emit_ldr): Mention post-index instruction in comment.
10207 (emit_ldrh): New function.
10208 (emit_ldrb): New function.
10209 (emit_ldrsw): Mention post-index instruction in comment.
10210 (emit_str): Likewise.
10211 (emit_subs): New function.
10212 (emit_cmp): Likewise.
10213 (emit_and): Likewise.
10214 (emit_orr): Likewise.
10215 (emit_orn): Likewise.
10216 (emit_eor): Likewise.
10217 (emit_mvn): Likewise.
10218 (emit_lslv): Likewise.
10219 (emit_lsrv): Likewise.
10220 (emit_asrv): Likewise.
10221 (emit_mul): Likewise.
10222 (emit_sbfm): Likewise.
10223 (emit_sbfx): Likewise.
10224 (emit_ubfm): Likewise.
10225 (emit_ubfx): Likewise.
10226 (emit_csinc): Likewise.
10227 (emit_cset): Likewise.
10228 (emit_nop): Likewise.
10229 (emit_ops_insns): New helper function.
10230 (emit_pop): Likewise.
10231 (emit_push): Likewise.
10232 (aarch64_emit_prologue): New function.
10233 (aarch64_emit_epilogue): Likewise.
10234 (aarch64_emit_add): Likewise.
10235 (aarch64_emit_sub): Likewise.
10236 (aarch64_emit_mul): Likewise.
10237 (aarch64_emit_lsh): Likewise.
10238 (aarch64_emit_rsh_signed): Likewise.
10239 (aarch64_emit_rsh_unsigned): Likewise.
10240 (aarch64_emit_ext): Likewise.
10241 (aarch64_emit_log_not): Likewise.
10242 (aarch64_emit_bit_and): Likewise.
10243 (aarch64_emit_bit_or): Likewise.
10244 (aarch64_emit_bit_xor): Likewise.
10245 (aarch64_emit_bit_not): Likewise.
10246 (aarch64_emit_equal): Likewise.
10247 (aarch64_emit_less_signed): Likewise.
10248 (aarch64_emit_less_unsigned): Likewise.
10249 (aarch64_emit_ref): Likewise.
10250 (aarch64_emit_if_goto): Likewise.
10251 (aarch64_emit_goto): Likewise.
10252 (aarch64_write_goto_address): Likewise.
10253 (aarch64_emit_const): Likewise.
10254 (aarch64_emit_call): Likewise.
10255 (aarch64_emit_reg): Likewise.
10256 (aarch64_emit_pop): Likewise.
10257 (aarch64_emit_stack_flush): Likewise.
10258 (aarch64_emit_zero_ext): Likewise.
10259 (aarch64_emit_swap): Likewise.
10260 (aarch64_emit_stack_adjust): Likewise.
10261 (aarch64_emit_int_call_1): Likewise.
10262 (aarch64_emit_void_call_2): Likewise.
10263 (aarch64_emit_eq_goto): Likewise.
10264 (aarch64_emit_ne_goto): Likewise.
10265 (aarch64_emit_lt_goto): Likewise.
10266 (aarch64_emit_le_goto): Likewise.
10267 (aarch64_emit_gt_goto): Likewise.
10268 (aarch64_emit_ge_got): Likewise.
10269 (aarch64_emit_ops_impl): New static global variable.
10270 (aarch64_emit_ops): New target function, return
10271 &aarch64_emit_ops_impl.
10272 (struct linux_target_ops): Install it.
10274 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10276 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10277 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10279 * linux-aarch64-ipa.c: New file.
10280 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10282 (aarch64_get_thread_area): New target method.
10283 (extract_signed_bitfield): New helper function.
10284 (aarch64_decode_ldr_literal): New function.
10285 (enum aarch64_opcodes): New enum.
10286 (struct aarch64_register): New struct.
10287 (struct aarch64_operand): New struct.
10288 (x0): New static global.
10297 (aarch64_register): New helper function.
10298 (register_operand): Likewise.
10299 (immediate_operand): Likewise.
10300 (struct aarch64_memory_operand): New struct.
10301 (offset_memory_operand): New helper function.
10302 (preindex_memory_operand): Likewise.
10303 (enum aarch64_system_control_registers): New enum.
10304 (ENCODE): New macro.
10305 (emit_insn): New helper function.
10306 (emit_b): New function.
10307 (emit_bcond): Likewise.
10308 (emit_cb): Likewise.
10309 (emit_tb): Likewise.
10310 (emit_blr): Likewise.
10311 (emit_stp): Likewise.
10312 (emit_ldp_q_offset): Likewise.
10313 (emit_stp_q_offset): Likewise.
10314 (emit_load_store): Likewise.
10315 (emit_ldr): Likewise.
10316 (emit_ldrsw): Likewise.
10317 (emit_str): Likewise.
10318 (emit_ldaxr): Likewise.
10319 (emit_stxr): Likewise.
10320 (emit_stlr): Likewise.
10321 (emit_data_processing_reg): Likewise.
10322 (emit_data_processing): Likewise.
10323 (emit_add): Likewise.
10324 (emit_sub): Likewise.
10325 (emit_mov): Likewise.
10326 (emit_movk): Likewise.
10327 (emit_mov_addr): Likewise.
10328 (emit_mrs): Likewise.
10329 (emit_msr): Likewise.
10330 (emit_sevl): Likewise.
10331 (emit_wfe): Likewise.
10332 (append_insns): Likewise.
10333 (can_encode_int32_in): New helper function.
10334 (aarch64_relocate_instruction): New function.
10335 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10336 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10337 (struct linux_target_ops): Install aarch64_get_thread_area,
10338 aarch64_install_fast_tracepoint_jump_pad and
10339 aarch64_get_min_fast_tracepoint_insn_len.
10341 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10343 * Makefile.in (aarch64-insn.o): New rule.
10344 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10346 2015-09-21 Yao Qi <yao.qi@linaro.org>
10348 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10350 2015-09-21 Yao Qi <yao.qi@linaro.org>
10352 * tracepoint.c (max_jump_pad_size): Remove.
10354 2015-09-18 Yao Qi <yao.qi@linaro.org>
10356 * linux-aarch64-low.c: Don't include sys/uio.h.
10357 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10359 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10361 * tracepoint.c (eval_result_type): Change prototype.
10362 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10364 2015-09-15 Pedro Alves <palves@redhat.com>
10366 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10367 Check whether to report exec events instead of checking whether
10368 multiprocess is enabled.
10370 2015-09-15 Pedro Alves <palves@redhat.com>
10373 * remote-utils.c (prepare_resume_reply): Merge
10374 TARGET_WAITKIND_VFORK_DONE switch case with the
10375 TARGET_WAITKIND_FORKED case.
10377 2015-09-15 Yao Qi <yao.qi@linaro.org>
10379 * server.c (handle_query): Check string comparison using
10380 "else if" instead of "if".
10382 2015-09-15 Yao Qi <yao.qi@linaro.org>
10384 * server.c (vCont_supported): New global variable.
10385 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10386 matches. Append ";vContSupported+" to own_buf.
10387 (handle_v_requests): Append ";s;S" to own_buf if target supports
10388 hardware single step or vCont_supported is false.
10389 (capture_main): Set vCont_supported to zero.
10391 2015-09-15 Yao Qi <yao.qi@linaro.org>
10393 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10395 (linux_supports_hardware_single_step): ... New function.
10396 (linux_target_ops): Update.
10397 * lynx-low.c (lynx_target_ops): Set field
10398 supports_hardware_single_step to target_can_do_hardware_single_step.
10399 * nto-low.c (nto_target_ops): Likewise.
10400 * spu-low.c (spu_target_ops): Likewise.
10401 * win32-low.c (win32_target_ops): Likewise.
10402 * target.c (target_can_do_hardware_single_step): New function.
10403 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10404 Remove. <supports_hardware_single_step>: New field.
10405 (target_supports_conditional_breakpoints): Remove.
10406 (target_supports_hardware_single_step): New macro.
10407 (target_can_do_hardware_single_step): Declare.
10408 * server.c (handle_query): Use target_supports_hardware_single_step
10409 instead of target_supports_conditional_breakpoints.
10411 2015-09-15 Yao Qi <yao.qi@linaro.org>
10413 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10415 (struct linux_target_ops the_low_target): Install
10416 aarch64_linux_siginfo_fixup.
10418 2015-09-11 Don Breazeal <donb@codesourcery.com>
10419 Luis Machado <lgustavo@codesourcery.com>
10421 * linux-low.c (linux_mourn): Static declaration.
10422 (linux_arch_setup): Move in front of
10423 handle_extended_wait.
10424 (linux_arch_setup_thread): New function.
10425 (handle_extended_wait): Handle exec events. Call
10426 linux_arch_setup_thread. Make event_lwp argument a
10427 pointer-to-a-pointer.
10428 (check_zombie_leaders): Do not check stopped threads.
10429 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10430 (linux_low_filter_event): Add lwp and thread for exec'ing
10431 non-leader thread if leader thread has been deleted.
10432 Refactor code into linux_arch_setup_thread and call it.
10433 Pass child lwp pointer by reference to handle_extended_wait.
10434 (linux_wait_for_event_filtered): Update comment.
10435 (linux_wait_1): Prevent clobbering exec event status.
10436 (linux_supports_exec_events): New function.
10437 (linux_target_ops) <supports_exec_events>: Initialize new member.
10438 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10440 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10441 * server.c (report_exec_events): New global variable.
10442 (handle_query): Handle qSupported query for exec-events feature.
10443 (captured_main): Initialize report_exec_events.
10444 * server.h (report_exec_events): Declare new global variable.
10445 * target.h (struct target_ops) <supports_exec_events>: New
10447 (target_supports_exec_events): New macro.
10448 * win32-low.c (win32_target_ops) <supports_exec_events>:
10449 Initialize new member.
10451 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10453 * linux-low.c (linux_low_enable_btrace): Remove.
10454 (linux_target_ops): Replace linux_low_enable_btrace with
10455 linux_enable_btrace.
10457 2015-09-03 Yao Qi <yao.qi@linaro.org>
10459 * linux-aarch64-low.c (aarch64_insert_point): Call
10460 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10463 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10465 * linux-low.c (check_stopped_by_breakpoint): Use
10466 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10468 2015-08-27 Pedro Alves <palves@redhat.com>
10470 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10472 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10474 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10475 the XNEW-family equivalent.
10476 (compile_bytecodes): Likewise.
10477 * dll.c (loaded_dll): Likewise.
10478 * event-loop.c (append_callback_event): Likewise.
10479 (create_file_handler): Likewise.
10480 (create_file_event): Likewise.
10481 * hostio.c (handle_open): Likewise.
10482 * inferiors.c (add_thread): Likewise.
10483 (add_process): Likewise.
10484 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10485 * linux-arm-low.c (arm_new_process): Likewise.
10486 (arm_new_thread): Likewise.
10487 * linux-low.c (add_to_pid_list): Likewise.
10488 (linux_add_process): Likewise.
10489 (handle_extended_wait): Likewise.
10490 (add_lwp): Likewise.
10491 (enqueue_one_deferred_signal): Likewise.
10492 (enqueue_pending_signal): Likewise.
10493 (linux_resume_one_lwp_throw): Likewise.
10494 (linux_resume_one_thread): Likewise.
10495 (linux_read_memory): Likewise.
10496 (linux_write_memory): Likewise.
10497 * linux-mips-low.c (mips_linux_new_process): Likewise.
10498 (mips_linux_new_thread): Likewise.
10499 (mips_add_watchpoint): Likewise.
10500 * linux-x86-low.c (initialize_low_arch): Likewise.
10501 * lynx-low.c (lynx_add_process): Likewise.
10502 * mem-break.c (set_raw_breakpoint_at): Likewise.
10503 (set_breakpoint): Likewise.
10504 (add_condition_to_breakpoint): Likewise.
10505 (add_commands_to_breakpoint): Likewise.
10506 (clone_agent_expr): Likewise.
10507 (clone_one_breakpoint): Likewise.
10508 * regcache.c (new_register_cache): Likewise.
10509 * remote-utils.c (look_up_one_symbol): Likewise.
10510 * server.c (queue_stop_reply): Likewise.
10511 (start_inferior): Likewise.
10512 (queue_stop_reply_callback): Likewise.
10513 (handle_target_event): Likewise.
10514 * spu-low.c (fetch_ppc_memory): Likewise.
10515 (store_ppc_memory): Likewise.
10516 * target.c (set_target_ops): Likewise.
10517 * thread-db.c (thread_db_load_search): Likewise.
10518 (try_thread_db_load_1): Likewise.
10519 * tracepoint.c (add_tracepoint): Likewise.
10520 (add_tracepoint_action): Likewise.
10521 (create_trace_state_variable): Likewise.
10522 (cmd_qtdpsrc): Likewise.
10523 (cmd_qtro): Likewise.
10524 (add_while_stepping_state): Likewise.
10525 * win32-low.c (child_add_thread): Likewise.
10526 (get_image_name): Likewise.
10528 2015-08-25 Yao Qi <yao.qi@linaro.org>
10530 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10532 2015-08-25 Yao Qi <yao.qi@linaro.org>
10534 * Makefile.in (aarch64-linux.o): New rule.
10535 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10537 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10538 (aarch64_init_debug_reg_state): Make it extern.
10539 (aarch64_linux_prepare_to_resume): Remove.
10541 2015-08-25 Yao Qi <yao.qi@linaro.org>
10543 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10544 lwp_arch_private_info and ptid_of_lwp.
10546 2015-08-25 Yao Qi <yao.qi@linaro.org>
10548 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10549 Find proc_info by find_process_pid. All callers updated.
10551 2015-08-25 Yao Qi <yao.qi@linaro.org>
10553 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10555 (debug_reg_change_callback): Remove.
10556 (aarch64_notify_debug_reg_change): Remove.
10558 2015-08-25 Yao Qi <yao.qi@linaro.org>
10560 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10561 Call current_lwp_ptid.
10563 2015-08-25 Yao Qi <yao.qi@linaro.org>
10565 * linux-aarch64-low.c (debug_reg_change_callback): Use
10568 2015-08-25 Yao Qi <yao.qi@linaro.org>
10570 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10572 2015-08-25 Yao Qi <yao.qi@linaro.org>
10574 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10576 2015-08-25 Yao Qi <yao.qi@linaro.org>
10578 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10581 2015-08-25 Yao Qi <yao.qi@linaro.org>
10583 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10585 (debug_reg_change_callback): Remove argument entry and add argument
10586 lwp. Remove local variable thread. Don't print thread id in the
10587 debugging output. Don't check whether pid of thread equals to pid.
10588 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10589 iterate_over_lwps instead find_inferior.
10591 2015-08-24 Pedro Alves <palves@redhat.com>
10593 * inferiors.c (get_first_process): New function.
10594 * inferiors.h (get_first_process): New declaration.
10595 * remote-utils.c (read_ptid): Default to the first process in the
10596 list, instead of to the current thread's process.
10598 2015-08-24 Pedro Alves <palves@redhat.com>
10600 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10601 * event-loop.c: Likewise.
10602 * remote-utils.c: Likewise.
10603 * tracepoint.c: Likewise.
10605 2015-08-24 Pedro Alves <palves@redhat.com>
10607 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10610 2015-08-21 Pedro Alves <palves@redhat.com>
10612 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10613 instead of literal 1.
10615 2015-08-21 Pedro Alves <palves@redhat.com>
10617 * tdesc.c (default_description): Explicitly zero-initialize.
10619 2015-08-21 Pedro Alves <palves@redhat.com>
10622 * inferiors.c (remove_thread): Discard any pending stop reply for
10624 * server.c (remove_all_on_match_pid): Rename to ...
10625 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10627 (discard_queued_stop_replies): Change parameter to a ptid. Now
10629 (handle_v_kill, kill_inferior_callback, captured_main)
10630 (process_serial_event): Adjust.
10631 * server.h (discard_queued_stop_replies): Declare.
10633 2015-08-21 Pedro Alves <palves@redhat.com>
10635 * linux-low.c (wait_for_sigstop): Always switch to no thread
10636 selected if the previously current thread dies.
10637 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10638 process instead of the current thread's.
10639 * remote-utils.c (input_interrupt): Don't check if there's no
10641 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10642 current thread to the general thread fails, error out.
10643 (handle_qxfer_auxv, handle_qxfer_libraries)
10644 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10645 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10646 (handle_query): Check if there's a thread selected instead of
10647 checking whether there's any thread in the thread list.
10648 (handle_qxfer_threads, handle_qxfer_btrace)
10649 (handle_qxfer_btrace_conf): Don't error out early if there's no
10650 thread in the thread list.
10651 (handle_v_cont, myresume): Don't set the current thread to the
10653 (process_serial_event) <Hg handling>: Also set thread_id if the
10654 previous general thread is still alive.
10655 (process_serial_event) <g/G handling>: If setting the current
10656 thread to the general thread fails, error out.
10657 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10658 thread's lwp instead of the current thread's.
10659 * target.c (set_desired_thread): If the desired thread was not
10660 found, leave the current thread pointing to NULL. Return an int
10661 (boolean) indicating success.
10662 * target.h (set_desired_thread): Change return type to int.
10664 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10666 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10667 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10669 (ps_get_thread_area): New function.
10671 2015-08-19 Gary Benson <gbenson@redhat.com>
10673 * hostio.c (handle_pread): Do not attempt to read more data
10674 than hostio_reply_with_data can fit in a packet.
10676 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10678 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10680 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10682 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10684 2015-08-06 Pedro Alves <palves@redhat.com>
10686 * tracepoint.c (expr_eval_result): Now an int.
10688 2015-08-06 Pedro Alves <palves@redhat.com>
10690 * gdbthread.h (struct regcache): Forward declare.
10691 (struct thread_info) <regcache_data>: Now a struct regcache
10693 * inferiors.c (inferior_regcache_data)
10694 (set_inferior_regcache_data): Now work with struct regcache
10696 * inferiors.h (struct regcache): Forward declare.
10697 (inferior_regcache_data, set_inferior_regcache_data): Now work
10698 with struct regcache pointers.
10699 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10700 (free_register_cache_thread): Remove struct regcache pointer
10703 2015-08-06 Pedro Alves <palves@redhat.com>
10705 * server.c (captured_main): On error, print the exception message
10706 to stderr, and if run_once is set, throw a quit.
10708 2015-08-06 Pedro Alves <palves@redhat.com>
10710 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10711 the current thread.
10713 2015-08-06 Pedro Alves <palves@redhat.com>
10715 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10716 reading beyond the passed in buffer length.
10718 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10720 * tracepoint.c (symbol_list) <required>: Remove.
10722 2015-08-06 Pedro Alves <palves@redhat.com>
10724 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10725 count if stopping and suspending threads.
10726 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10727 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10728 (linux_detach): Complete an ongoing step-over.
10729 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10731 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10732 (linux_wait_1): If passing a signal to the inferior after
10733 finishing a step-over, unsuspend and re-resume all lwps. If we
10734 see a single-step event but the thread should be continuing, don't
10735 pass the trap to gdb.
10736 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10737 internal_error instead of gdb_assert.
10738 (enqueue_pending_signal): New function.
10739 (check_ptrace_stopped_lwp_gone): Add debug output.
10740 (start_step_over): Use internal_error instead of gdb_assert.
10741 (complete_ongoing_step_over): New function.
10742 (linux_resume_one_thread): Don't resume a suspended thread.
10743 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10746 2015-08-06 Pedro Alves <palves@redhat.com>
10748 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10749 (linux_thread_alive): Use lwp_is_marked_dead.
10750 (extended_event_reported): Delete.
10751 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10752 instead of extended_event_reported.
10753 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10755 (lwp_is_marked_dead): New function.
10756 (lwp_running): Use lwp_is_marked_dead.
10757 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10760 2015-08-06 Pedro Alves <palves@redhat.com>
10762 * linux-low.c (linux_wait_1): Move fork event output out of the
10763 !report_to_gdb check. Pass event_child->waitstatus to
10764 target_waitstatus_to_string instead of ourstatus.
10766 2015-08-04 Yao Qi <yao.qi@linaro.org>
10768 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10769 if current_thread is 32 bit.
10771 2015-08-04 Yao Qi <yao.qi@linaro.org>
10773 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10774 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10775 * server.c (extended_protocol): Remove "static".
10776 * server.h (extended_protocol): Declare it.
10778 2015-08-04 Yao Qi <yao.qi@linaro.org>
10780 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10781 both aarch64 and aarch32.
10782 (aarch64_set_pc): Likewise.
10784 2015-08-04 Yao Qi <yao.qi@linaro.org>
10786 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10787 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10788 arm-with-neon.xml to srv_xmlfiles.
10789 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10790 (is_64bit_tdesc): New function.
10791 (aarch64_linux_read_description): New function.
10792 (aarch64_arch_setup): Call aarch64_linux_read_description.
10793 (regs_info): Rename to regs_info_aarch64.
10794 (aarch64_regs_info): Return right regs_info.
10795 (initialize_low_arch): Call initialize_low_arch_aarch32.
10797 2015-08-04 Yao Qi <yao.qi@linaro.org>
10799 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10800 * linux-aarch32-low.c: New file.
10801 * linux-aarch32-low.h: New file.
10802 * linux-arm-low.c (arm_fill_gregset): Move it to
10803 linux-aarch32-low.c.
10804 (arm_store_gregset): Likewise.
10805 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10806 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10807 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10808 (regs_info): Rename to regs_info_arm.
10809 (arm_regs_info): Return regs_info_aarch32 if
10810 have_ptrace_getregset is 1 and target description is
10811 arm_with_neon or arm_with_vfpv3.
10812 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10813 Call initialize_low_arch_aarch32 instead.
10815 2015-08-04 Yao Qi <yao.qi@linaro.org>
10817 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10818 * linux-low.c: ... here.
10819 * linux-low.h (have_ptrace_getregset): Declare it.
10821 2015-08-04 Pedro Alves <palves@redhat.com>
10823 * thread-db.c (struct thread_db): Use new typedefs.
10824 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10826 (disable_thread_event_reporting): Cast result of dlsym to
10827 destination function pointer type.
10828 (thread_db_mourn): Use td_ta_delete_ftype.
10830 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10832 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10834 (CDX_BREAKPOINT): Define for R2.
10835 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10836 (the_low_target): Add comments.
10838 2015-07-30 Yao Qi <yao.qi@linaro.org>
10840 * linux-arm-low.c (arm_hwcap): Remove it.
10841 (arm_read_description): New local variable arm_hwcap. Don't
10842 set arm_hwcap to zero.
10844 2015-07-30 Yao Qi <yao.qi@linaro.org>
10846 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10847 Use regcache->tdesc instead.
10848 (arm_store_wmmxregset): Likewise.
10849 (arm_fill_vfpregset): Likewise.
10850 (arm_store_vfpregset): Likewise.
10852 2015-07-30 Yao Qi <yao.qi@linaro.org>
10854 * linux-arm-low.c: Include arch/arm.h.
10855 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10856 (arm_store_gregset): Likewise.
10858 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10860 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10861 ptrace's 4th parameter.
10863 2015-07-27 Yao Qi <yao.qi@linaro.org>
10865 * configure.srv (case aarch64*-*-linux*): Don't set
10868 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10870 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10872 * linux-arm-low.c: Likewise.
10873 * linux-cris-low.c: Likewise.
10874 * linux-crisv32-low.c: Likewise.
10875 * linux-low.c: Likewise.
10876 * linux-m68k-low.c: Likewise.
10877 * linux-mips-low.c: Likewise.
10878 * linux-nios2-low.c: Likewise.
10879 * linux-s390-low.c: Likewise.
10880 * linux-sparc-low.c: Likewise.
10881 * linux-tic6x-low.c: Likewise.
10882 * linux-tile-low.c: Likewise.
10883 * linux-x86-low.c: Likewise.
10885 2015-07-24 Pedro Alves <palves@redhat.com>
10887 * config.in: Regenerate.
10888 * configure: Regenerate.
10890 2015-07-24 Pedro Alves <palves@redhat.com>
10892 * acinclude.m4: Include ../ptrace.m4.
10893 * configure.ac: Call GDB_AC_PTRACE.
10894 * config.in, configure: Regenerate.
10896 2015-07-24 Yao Qi <yao.qi@linaro.org>
10898 * linux-low.c (linux_create_inferior): Remove setting to
10899 proc->priv->new_inferior.
10900 (linux_attach): Likewise.
10901 (linux_low_filter_event): Likewise.
10902 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10904 2015-07-24 Yao Qi <yao.qi@linaro.org>
10906 * linux-low.c (linux_arch_setup): New function.
10907 (linux_low_filter_event): If proc->tdesc is NULL and
10908 proc->attached is true, call the_low_target.arch_setup.
10909 Otherwise, keep status pending, and return.
10910 (linux_resume_one_lwp_throw): Don't call get_pc if
10911 thread->while_stepping isn't NULL. Don't call
10912 get_thread_regcache if proc->tdesc is NULL.
10913 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10914 (linux_target_ops): Install arch_setup.
10915 * server.c (start_inferior): Call the_target->arch_setup.
10916 * target.h (struct target_ops) <arch_setup>: New field.
10917 (target_arch_setup): New marco.
10918 * lynx-low.c (lynx_target_ops): Update.
10919 * nto-low.c (nto_target_ops): Update.
10920 * spu-low.c (spu_target_ops): Update.
10921 * win32-low.c (win32_target_ops): Update.
10923 2015-07-24 Yao Qi <yao.qi@linaro.org>
10925 * linux-low.c (linux_add_process): Don't set
10926 proc->priv->new_inferior.
10927 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10928 (linux_attach): Likewise.
10930 2015-07-24 Yao Qi <yao.qi@linaro.org>
10932 * server.c (start_inferior): Code refactor.
10934 2015-07-24 Yao Qi <yao.qi@linaro.org>
10936 * server.c (process_serial_event): Set general_thread.
10938 2015-07-21 Yao Qi <yao.qi@linaro.org>
10940 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10941 aarch64_linux_get_debug_reg_capacity.
10943 2015-07-17 Yao Qi <yao.qi@linaro.org>
10945 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10946 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10947 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10948 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10949 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10950 (AARCH64_HWP_ALIGNMENT): Likewise.
10951 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10952 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10953 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10954 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10955 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10956 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10957 (struct aarch64_debug_reg_state): Likewise.
10958 (struct arch_lwp_info): Likewise.
10959 (aarch64_align_watchpoint): Likewise.
10960 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10961 (aarch64_watchpoint_length): Likewise.
10962 (aarch64_point_encode_ctrl_reg): Likewise
10963 (aarch64_point_is_aligned): Likewise.
10964 (aarch64_align_watchpoint): Likewise.
10965 (aarch64_linux_set_debug_regs):
10966 (aarch64_dr_state_insert_one_point): Likewise.
10967 (aarch64_dr_state_remove_one_point): Likewise.
10968 (aarch64_handle_breakpoint): Likewise.
10969 (aarch64_handle_aligned_watchpoint): Likewise.
10970 (aarch64_handle_unaligned_watchpoint): Likewise.
10971 (aarch64_handle_watchpoint): Likewise.
10973 2015-07-17 Yao Qi <yao.qi@linaro.org>
10975 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
10976 and don't aarch64_get_debug_reg_state. All callers update.
10977 (aarch64_handle_aligned_watchpoint): Likewise.
10978 (aarch64_handle_unaligned_watchpoint): Likewise.
10979 (aarch64_handle_watchpoint): Likewise.
10980 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
10981 (aarch64_remove_point): Likewise.
10983 2015-07-17 Yao Qi <yao.qi@linaro.org>
10985 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
10987 (aarch64_handle_unaligned_watchpoint): Likewise.
10989 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10991 Revert the previous 3 commits:
10992 Move gdb_regex* to common/
10993 Move linux_find_memory_regions_full & co.
10994 gdbserver build-id attribute generator
10996 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
10997 Jan Kratochvil <jan.kratochvil@redhat.com>
10999 gdbserver build-id attribute generator.
11000 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11001 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11002 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11004 (get_dynamic): Use find_pdhr to traverse program headers.
11005 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11006 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11007 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11008 (get_hex_build_id): New.
11009 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11010 to reply XML document.
11012 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11013 Jan Kratochvil <jan.kratochvil@redhat.com>
11015 * target.c: Include target/target-utils.h and fcntl.h.
11016 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11017 (target_fileio_read_stralloc): New functions.
11019 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11021 * Makefile.in (OBS): Add gdb_regex.o.
11022 (gdb_regex.o): New.
11023 * config.in: Rebuilt.
11024 * configure: Rebuilt.
11026 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11027 Jan Kratochvil <jan.kratochvil@redhat.com>
11029 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11030 * Makefile.in (OBS): Add target-utils.o.
11031 (linux-maps.o, target-utils.o): New.
11032 * configure.srv (srv_linux_obj): Add linux-maps.o.
11034 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11036 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11037 function, return 1.
11038 (the_low_target): Install it.
11040 2015-07-14 Pedro Alves <palves@redhat.com>
11042 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11043 Instead, ignore ECHILD, and throw an error for other errnos.
11045 2015-07-10 Pedro Alves <palves@redhat.com>
11047 * event-loop.c (struct callback_event) <data>: Change type to
11048 gdb_client_data instance instead of gdb_client_data pointer.
11049 (append_callback_event): Adjust.
11051 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11053 * linux-aarch64-low.c: Add comments for each linux_target_ops
11054 method. Remove comments already covered in target_ops and
11055 linux_target_ops definitions.
11056 (the_low_target): Add comments for each unimplemented method.
11058 2015-07-09 Yao Qi <yao.qi@linaro.org>
11060 * linux-aarch64-low.c (aarch64_regmap): Remove.
11061 (aarch64_usrregs_info): Remove.
11062 (regs_info): Set field usrregs to NULL.
11064 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11066 * linux-low.c: Include "rsp-low.h"
11067 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11068 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11069 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11070 (handle_btrace_enable_pt): New.
11071 (handle_btrace_general_set): Support "pt".
11072 (handle_btrace_conf_general_set): Support "pt:size".
11074 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11076 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11079 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11081 * linux-aarch64-low.c: Remove comment about endianness.
11082 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11083 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11086 2015-06-24 Gary Benson <gbenson@redhat.com>
11088 * linux-i386-ipa.c (stdint.h): Do not include.
11089 * lynx-i386-low.c (stdint.h): Likewise.
11090 * lynx-ppc-low.c (stdint.h): Likewise.
11091 * mem-break.c (stdint.h): Likewise.
11092 * thread-db.c (stdint.h): Likewise.
11093 * tracepoint.c (stdint.h): Likewise.
11094 * win32-low.c (stdint.h): Likewise.
11096 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11098 * server.c (write_qxfer_response): Update call to
11099 remote_escape_output.
11101 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11102 Jan Kratochvil <jan.kratochvil@redhat.com>
11104 Merge multiple hex conversions.
11105 * gdbreplay.c (tohex): Rename to 'fromhex'.
11106 (logchar): Use fromhex.
11108 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11110 * server.c (handle_qxfer_libraries): Set `version' attribute for
11113 2015-06-10 Gary Benson <gbenson@redhat.com>
11115 * target.h (struct target_ops) <multifs_open>: New field.
11116 <multifs_unlink>: Likewise.
11117 <multifs_readlink>: Likewise.
11118 * linux-low.c (nat/linux-namespaces.h): New include.
11119 (linux_target_ops): Initialize the_target->multifs_open,
11120 the_target->multifs_unlink and the_target->multifs_readlink.
11121 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11122 * hostio.c (hostio_fs_pid): New static variable.
11123 (hostio_handle_new_gdb_connection): New function.
11124 (handle_setfs): Likewise.
11125 (handle_open): Use the_target->multifs_open as appropriate.
11126 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11127 (handle_readlink): Use the_target->multifs_readlink as
11129 (handle_vFile): Handle vFile:setfs packets.
11130 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11131 after target_handle_new_gdb_connection.
11133 2015-06-10 Gary Benson <gbenson@redhat.com>
11135 * configure.ac (AC_CHECK_FUNCS): Add setns.
11136 * config.in: Regenerate.
11137 * configure: Likewise.
11138 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11139 (linux-namespaces.o): New rule.
11140 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11142 2015-06-09 Gary Benson <gbenson@redhat.com>
11144 * hostio.c (handle_open): Process mode argument with
11145 fileio_to_host_mode.
11147 2015-06-01 Yao Qi <yao.qi@linaro.org>
11149 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11150 * linux-x86-low.c: Likewise.
11152 2015-05-28 Don Breazeal <donb@codesourcery.com>
11154 * linux-low.c (handle_extended_wait): Initialize
11155 thread_info.last_resume_kind for new fork children.
11157 2015-05-15 Pedro Alves <palves@redhat.com>
11159 * target.h (target_handle_new_gdb_connection): Rewrite using if
11160 wrapped in do/while.
11162 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11164 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11165 * configure, config.in: Regenerate.
11166 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11169 2015-05-12 Don Breazeal <donb@codesourcery.com>
11171 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11172 PTRACE_EVENT_VFORK_DONE.
11173 (linux_low_ptrace_options, extended_event_reported): Add vfork
11175 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11176 and "vforkdone" for RSP 'T' Stop Reply Packet.
11177 * server.h (report_vfork_events): Declare
11180 2015-05-12 Don Breazeal <donb@codesourcery.com>
11182 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11183 (the_low_target) <new_fork>: Initialize new member.
11184 * linux-arm-low.c (arm_new_fork): New function.
11185 (the_low_target) <new_fork>: Initialize new member.
11186 * linux-low.c (handle_extended_wait): Call new target function
11188 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11189 * linux-mips-low.c (mips_add_watchpoint): New function
11190 extracted from mips_insert_point.
11191 (the_low_target) <new_fork>: Initialize new member.
11192 (mips_linux_new_fork): New function.
11193 (mips_insert_point): Call mips_add_watchpoint.
11194 * linux-x86-low.c (x86_linux_new_fork): New function.
11195 (the_low_target) <new_fork>: Initialize new member.
11197 2015-05-12 Don Breazeal <donb@codesourcery.com>
11199 * linux-low.c (handle_extended_wait): Implement return value,
11200 rename argument 'event_child' to 'event_lwp', handle
11201 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11202 (linux_low_ptrace_options): New function.
11203 (linux_low_filter_event): Call linux_low_ptrace_options,
11204 use different argument fo linux_enable_event_reporting,
11205 use return value from handle_extended_wait.
11206 (extended_event_reported): New function.
11207 (linux_wait_1): Call extended_event_reported and set
11208 status to report fork events.
11209 (linux_write_memory): Add pid to debug message.
11210 (reset_lwp_ptrace_options_callback): New function.
11211 (linux_handle_new_gdb_connection): New function.
11212 (linux_target_ops): Initialize new structure member.
11213 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11214 * lynx-low.c: Initialize new structure member.
11215 * remote-utils.c (prepare_resume_reply): Implement stop reason
11216 "fork" for "T" stop message.
11217 * server.c (handle_query): Call handle_new_gdb_connection.
11218 * server.h (report_fork_events): Declare global flag.
11219 * target.h (struct target_ops) <handle_new_gdb_connection>:
11221 (target_handle_new_gdb_connection): New macro.
11222 * win32-low.c: Initialize new structure member.
11224 2015-05-12 Don Breazeal <donb@codesourcery.com>
11226 * mem-break.c (APPEND_TO_LIST): Define macro.
11227 (clone_agent_expr): New function.
11228 (clone_one_breakpoint): New function.
11229 (clone_all_breakpoints): New function.
11230 * mem-break.h: Declare new functions.
11232 2015-05-12 Don Breazeal <donb@codesourcery.com>
11234 * linux-low.c (linux_supports_fork_events): New function.
11235 (linux_supports_vfork_events): New function.
11236 (linux_target_ops): Initialize new structure members.
11237 (initialize_low): Call linux_check_ptrace_features.
11238 * lynx-low.c (lynx_target_ops): Initialize new structure
11240 * server.c (report_fork_events, report_vfork_events):
11242 (handle_query): Add new features to qSupported packet and
11244 (captured_main): Initialize new global variables.
11245 * target.h (struct target_ops) <supports_fork_events>:
11247 <supports_vfork_events>: New member.
11248 (target_supports_fork_events): New macro.
11249 (target_supports_vfork_events): New macro.
11250 * win32-low.c (win32_target_ops): Initialize new structure
11253 2015-05-12 Gary Benson <gbenson@redhat.com>
11255 * server.c (handle_qxfer_exec_file): Use current process
11258 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11260 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11261 Remove HAVE_PTRACE_GETREGS conditionals.
11262 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11263 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11265 2015-05-08 Yao Qi <yao.qi@linaro.org>
11267 * linux-low.c (linux_supports_conditional_breakpoints): New
11269 (linux_target_ops): Install new target method.
11270 * lynx-low.c (lynx_target_ops): Install NULL hook for
11271 supports_conditional_breakpoints.
11272 * nto-low.c (nto_target_ops): Likewise.
11273 * spu-low.c (spu_target_ops): Likewise.
11274 * win32-low.c (win32_target_ops): Likewise.
11275 * server.c (handle_query): Check
11276 target_supports_conditional_breakpoints.
11277 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11279 (target_supports_conditional_breakpoints): New macro.
11281 2015-05-06 Pedro Alves <palves@redhat.com>
11284 * server.c (start_inferior): If the process exits, mourn it.
11286 2015-04-21 Gary Benson <gbenson@redhat.com>
11288 * hostio.c (fileio_open_flags_to_host): Factored out to
11289 fileio_to_host_openflags in common/fileio.c. Single use
11292 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11294 * linux-xtensa-low.c (xtensa_fill_gregset)
11295 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11298 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11300 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11301 (regs_info): Replace usrregs pointer with NULL.
11303 2015-04-17 Gary Benson <gbenson@redhat.com>
11305 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11306 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11307 * server.c (handle_qxfer_exec_file): New function.
11308 (qxfer_packets): Add exec-file entry.
11309 (handle_query): Report qXfer:exec-file:read as supported packet.
11311 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11313 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11315 2015-04-09 Gary Benson <gbenson@redhat.com>
11317 * hostio-errno.c (errno_to_fileio_error): Remove function.
11318 Update caller to use remote_fileio_to_fio_error.
11320 2015-04-09 Yao Qi <yao.qi@linaro.org>
11322 * linux-low.c (linux_insert_point): Call
11323 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11324 (linux_remove_point): Call remove_memory_breakpoint if type is
11326 * linux-x86-low.c (x86_insert_point): Don't call
11327 insert_memory_breakpoint.
11328 (x86_remove_point): Don't call remove_memory_breakpoint.
11330 2015-04-01 Pedro Alves <palves@redhat.com>
11331 Cleber Rosa <crosa@redhat.com>
11333 * server.c (gdbserver_usage): Reorganize and extend the usage
11336 2015-03-24 Pedro Alves <palves@redhat.com>
11338 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11339 output. Also dump TRAP_TRACE.
11340 (linux_low_filter_event): In debug output, distinguish a
11341 resume_stop SIGSTOP from a delayed SIGSTOP.
11343 2015-03-24 Gary Benson <gbenson@redhat.com>
11345 * linux-x86-low.c (x86_linux_new_thread): Moved to
11347 (x86_linux_prepare_to_resume): Likewise.
11349 2015-03-24 Gary Benson <gbenson@redhat.com>
11351 * Makefile.in (x86-linux-dregs.o): New rule.
11352 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11353 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11354 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11355 (x86_linux_dr_get): Likewise.
11356 (x86_linux_dr_set): Likewise.
11357 (update_debug_registers_callback): Likewise.
11358 (x86_linux_dr_set_addr): Likewise.
11359 (x86_linux_dr_get_addr): Likewise.
11360 (x86_linux_dr_set_control): Likewise.
11361 (x86_linux_dr_get_control): Likewise.
11362 (x86_linux_dr_get_status): Likewise.
11363 (x86_linux_update_debug_registers): Likewise.
11365 2015-03-24 Gary Benson <gbenson@redhat.com>
11367 * linux-x86-low.c (x86_linux_update_debug_registers):
11368 New function, factored out from...
11369 (x86_linux_prepare_to_resume): ...this.
11371 2015-03-24 Gary Benson <gbenson@redhat.com>
11373 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11374 (x86_linux_dr_set): Likewise.
11375 (update_debug_registers_callback): Likewise.
11376 (x86_linux_dr_set_addr): Likewise.
11377 (x86_linux_dr_get_addr): Likewise.
11378 (x86_linux_dr_set_control): Likewise.
11379 (x86_linux_dr_get_control): Likewise.
11380 (x86_linux_dr_get_status): Likewise.
11381 (x86_linux_prepare_to_resume): Likewise.
11383 2015-03-24 Gary Benson <gbenson@redhat.com>
11385 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11386 Use perror_with_name. Pass string through gettext.
11387 (x86_linux_dr_set): Likewise.
11389 2015-03-24 Gary Benson <gbenson@redhat.com>
11391 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11392 (x86_linux_dr_set_addr): ...this.
11393 (x86_dr_low_get_addr): Rename to...
11394 (x86_linux_dr_get_addr): ...this.
11395 (x86_dr_low_set_control): Rename to...
11396 (x86_linux_dr_set_control): ...this.
11397 (x86_dr_low_get_control): Rename to...
11398 (x86_linux_dr_get_control): ...this.
11399 (x86_dr_low_get_status): Rename to...
11400 (x86_linux_dr_get_status): ...this.
11401 (x86_dr_low): Update with new function names.
11403 2015-03-24 Gary Benson <gbenson@redhat.com>
11405 * Makefile.in (x86-linux.o): New rule.
11406 * configure.srv: Add x86-linux.o to relevant targets.
11407 * linux-low.c (lwp_set_arch_private_info): New function.
11408 (lwp_arch_private_info): Likewise.
11409 * linux-x86-low.c: Include nat/x86-linux.h.
11410 (arch_lwp_info): Removed structure.
11411 (update_debug_registers_callback):
11412 Use lwp_set_debug_registers_changed.
11413 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11414 and lwp_set_debug_registers_changed.
11415 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11417 2015-03-24 Gary Benson <gbenson@redhat.com>
11419 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11420 * linux-arm-low.c (arm_new_thread): Likewise.
11421 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11422 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11423 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11424 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11426 2015-03-24 Gary Benson <gbenson@redhat.com>
11428 * linux-low.c (ptid_of_lwp): New function.
11429 (lwp_is_stopped): Likewise.
11430 (lwp_stop_reason): Likewise.
11431 * linux-x86-low.c (update_debug_registers_callback):
11432 Use lwp_is_stopped.
11433 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11436 2015-03-24 Gary Benson <gbenson@redhat.com>
11438 * linux-low.h (linux_stop_lwp): Remove declaration.
11440 2015-03-24 Gary Benson <gbenson@redhat.com>
11442 * linux-low.h: Include nat/linux-nat.h.
11443 * linux-low.c (iterate_over_lwps_args): New structure.
11444 (iterate_over_lwps_filter): New function.
11445 (iterate_over_lwps): Likewise.
11446 * linux-x86-low.c (update_debug_registers_callback):
11447 Update signature to what iterate_over_lwps expects.
11448 Remove PID check that iterate_over_lwps now performs.
11449 (x86_dr_low_set_addr): Use iterate_over_lwps.
11450 (x86_dr_low_set_control): Likewise.
11452 2015-03-24 Gary Benson <gbenson@redhat.com>
11454 * linux-x86-low.c (x86_debug_reg_state): New function.
11455 (x86_linux_prepare_to_resume): Use the above.
11457 2015-03-24 Gary Benson <gbenson@redhat.com>
11459 * linux-low.c (current_lwp_ptid): New function.
11460 * linux-x86-low.c: Include nat/linux-nat.h.
11461 (x86_dr_low_get_addr): Use current_lwp_ptid.
11462 (x86_dr_low_get_control): Likewise.
11463 (x86_dr_low_get_status): Likewise.
11465 2015-03-20 Pedro Alves <palves@redhat.com>
11467 * tracepoint.c (cmd_qtstatus): Make "str" const.
11469 2015-03-20 Pedro Alves <palves@redhat.com>
11471 * server.c (handle_general_set): Make "req_str" const.
11473 2015-03-19 Pedro Alves <palves@redhat.com>
11475 * linux-low.c (linux_resume_one_lwp): Rename to ...
11476 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11477 instead call perror_with_name.
11478 (check_ptrace_stopped_lwp_gone): New function.
11479 (linux_resume_one_lwp): Reimplement as wrapper around
11480 linux_resume_one_lwp_throw that swallows errors if the LWP is
11483 2015-03-19 Pedro Alves <palves@redhat.com>
11485 * linux-low.c (count_events_callback, select_event_lwp_callback):
11486 No longer check whether the thread has resume_stop as last resume
11489 2015-03-19 Pedro Alves <palves@redhat.com>
11491 * linux-low.c (count_events_callback, select_event_lwp_callback):
11492 Use the lwp's status_pending_p field, not the thread's.
11494 2015-03-19 Pedro Alves <palves@redhat.com>
11496 * linux-low.c (select_event_lwp_callback): Update comments to
11497 no longer mention SIGTRAP.
11499 2015-03-18 Gary Benson <gbenson@redhat.com>
11501 * server.c (handle_query): Do not report vFile:fstat as supported.
11503 2015-03-11 Gary Benson <gbenson@redhat.com>
11505 * hostio.c (sys/types.h): New include.
11506 (sys/stat.h): Likewise.
11507 (common-remote-fileio.h): Likewise.
11508 (handle_fstat): New function.
11509 (handle_vFile): Handle vFile:fstat packets.
11511 2015-03-11 Gary Benson <gbenson@redhat.com>
11513 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11514 struct stat.st_blocks and struct stat.st_blksize.
11515 * configure: Regenerate.
11516 * config.in: Likewise.
11517 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11518 (OBS): Add common-remote-fileio.o.
11519 (common-remote-fileio.o): New rule.
11521 2015-03-09 Pedro Alves <palves@redhat.com>
11523 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11524 'struct sockaddr' pointer in 'accept' call.
11526 2015-03-09 Pedro Alves <palves@redhat.com>
11529 2015-03-07 Pedro Alves <palves@redhat.com>
11530 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11531 or <winsock2.h> here. Instead include "gdb_socket.h".
11532 (remote_open): Use union gdb_sockaddr_u.
11533 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11534 or <winsock2.h> here. Instead include "gdb_socket.h".
11535 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11536 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11538 (init_named_socket, gdb_agent_helper_thread): Use union
11541 2015-03-07 Pedro Alves <palves@redhat.com>
11543 * configure.ac (build_warnings): Move
11544 -Wdeclaration-after-statement to the C-specific set.
11545 * configure: Regenerate.
11547 2015-03-07 Pedro Alves <palves@redhat.com>
11549 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11550 or <winsock2.h> here. Instead include "gdb_socket.h".
11551 (remote_open): Use union gdb_sockaddr_u.
11552 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11553 or <winsock2.h> here. Instead include "gdb_socket.h".
11554 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11555 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11557 (init_named_socket, gdb_agent_helper_thread): Use union
11560 2015-03-07 Pedro Alves <palves@redhat.com>
11562 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11565 2015-03-06 Yao Qi <yao.qi@linaro.org>
11567 * linux-aarch64-low.c (aarch64_insert_point): Use
11568 show_debug_regs as a boolean.
11569 (aarch64_remove_point): Likewise.
11571 2015-03-05 Pedro Alves <palves@redhat.com>
11573 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11574 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11575 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11576 * nto-low.c (nto_target_ops): Likewise.
11577 * spu-low.c (spu_target_ops): Likewise.
11578 * win32-low.c (win32_target_ops): Likewise.
11580 2015-03-04 Pedro Alves <palves@redhat.com>
11582 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11583 Decide whether a breakpoint triggered based on the SIGTRAP's
11585 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11586 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11587 (linux_low_filter_event): Check for breakpoints before checking
11589 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11591 (linux_stopped_by_sw_breakpoint)
11592 (linux_supports_stopped_by_sw_breakpoint)
11593 (linux_stopped_by_hw_breakpoint)
11594 (linux_supports_stopped_by_hw_breakpoint): New functions.
11595 (linux_target_ops): Install new target methods.
11597 2015-03-04 Pedro Alves <palves@redhat.com>
11599 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11600 * server.c (swbreak_feature, hwbreak_feature): New globals.
11601 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11602 (captured_main): Clear swbreak_feature and hwbreak_feature.
11603 * server.h (swbreak_feature, hwbreak_feature): Declare.
11604 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11605 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11606 supports_stopped_by_hw_breakpoint>: New fields.
11607 (target_supports_stopped_by_sw_breakpoint)
11608 (target_stopped_by_sw_breakpoint)
11609 (target_supports_stopped_by_hw_breakpoint)
11610 (target_stopped_by_hw_breakpoint): Declare.
11612 2015-03-04 Pedro Alves <palves@redhat.com>
11614 enum lwp_stop_reason -> enum target_stop_reason
11615 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11616 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11617 (linux_wait_1, stuck_in_jump_pad_callback)
11618 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11619 (linux_stopped_by_watchpoint):
11620 * linux-low.h (enum lwp_stop_reason): Delete.
11621 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11622 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11624 2015-03-04 Yao Qi <yao.qi@linaro.org>
11626 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11628 2015-03-03 Gary Benson <gbenson@redhat.com>
11630 * hostio.c (handle_vFile): Fix prefix lengths.
11632 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11634 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11637 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11639 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11640 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11641 (clean): Add "rm -f" for above C files.
11642 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11643 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11644 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11645 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11646 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11647 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11648 (init_registers_s390x_vx_linux64)
11649 (init_registers_s390x_tevx_linux64)
11650 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11651 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11653 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11654 (s390_store_vxrs_high): New functions.
11655 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11657 (s390_arch_setup): Add logic for selecting one of the new target
11658 descriptions. Activate the new vector regsets if applicable.
11659 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11660 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11661 and init_registers_s390x_tevx_linux64.
11663 2015-03-01 Pedro Alves <palves@redhat.com>
11665 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11668 2015-02-27 Pedro Alves <palves@redhat.com>
11670 * linux-x86-low.c (u_debugreg_offset): New function.
11671 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11673 2015-02-27 Pedro Alves <palves@redhat.com>
11675 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11676 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11677 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11678 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11679 (ps_lsetfpregs, ps_getpid)
11680 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11681 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11682 (ps_lsetxregs, ps_plog): Declare.
11684 2015-02-27 Pedro Alves <palves@redhat.com>
11686 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11687 IP_AGENT_EXPORT_FUNC.
11688 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11689 IP_AGENT_EXPORT_FUNC.
11690 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11691 (IP_AGENT_EXPORT): Delete.
11692 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11693 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11694 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11695 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11696 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11697 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11698 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11699 (traceframe_read_count, traceframe_write_count)
11700 (traceframes_created, trace_state_variables, get_raw_reg)
11701 (get_trace_state_variable_value, set_trace_state_variable_value)
11702 (ust_loaded, helper_thread_id, cmd_buf): Use
11703 IPA_SYM_EXPORTED_NAME.
11704 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11705 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11706 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11707 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11708 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11709 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11710 EXTERN_C_PUSH/EXTERN_C_POP.
11711 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11712 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11713 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11714 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11715 (traceframe_write_count, traceframe_read_count)
11716 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11717 (about_to_request_buffer_space, get_trace_state_variable_value)
11718 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11719 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11720 EXTERN_C_PUSH/EXTERN_C_POP.
11721 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11722 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11723 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11724 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11725 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11726 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11727 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11728 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11730 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11731 (IP_AGENT_EXPORT_VAR_DECL): Define.
11732 (tracing): Declare.
11733 (gdb_agent_get_raw_reg): Declare.
11735 2015-02-27 Tom Tromey <tromey@redhat.com>
11736 Pedro Alves <palves@redhat.com>
11738 Rename symbols whose names are reserved C++ keywords throughout.
11740 2015-02-27 Pedro Alves <palves@redhat.com>
11742 * Makefile.in (COMPILER): New, get it from autoconf.
11743 (CXX): Get from autoconf instead.
11744 (COMPILE.pre): Use COMPILER.
11745 (CC-LD): Rename to ...
11746 (CC_LD): ... this. Use COMPILER.
11747 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11748 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11749 * acinclude.m4: Include build-with-cxx.m4.
11750 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11751 Disable -Werror by default if building in C++ mode.
11752 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11753 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11754 the C++ compiler. Save/restore CXXFLAGS too.
11755 * configure: Regenerate.
11757 2015-02-27 Pedro Alves <palves@redhat.com>
11759 * acinclude.m4: Include libiberty.m4.
11760 * configure.ac: Call libiberty_INIT.
11761 * config.in, configure: Regenerate.
11763 2015-02-26 Pedro Alves <palves@redhat.com>
11765 * linux-low.c (linux_wait_1): When incrementing the PC past a
11766 program breakpoint always use the_low_target.breakpoint_len as
11767 increment, rather than the maximum between that and
11768 the_low_target.decr_pc_after_break.
11770 2015-02-23 Pedro Alves <palves@redhat.com>
11772 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11773 thread was doing a step-over; always adjust the PC if
11774 we stepped over a permanent breakpoint.
11775 (linux_wait_1): If we stepped over breakpoint that was on top of a
11776 permanent breakpoint, manually advance the PC past it.
11778 2015-02-23 Pedro Alves <palves@redhat.com>
11780 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11782 (x86_fill_gregset, x86_store_gregset): Use it when handling
11785 2015-02-20 Pedro Alves <palves@redhat.com>
11787 * thread-db.c: Include "nat/linux-procfs.h".
11788 (thread_db_init): Skip listing new threads if the kernel supports
11789 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11791 2015-02-20 Pedro Alves <palves@redhat.com>
11793 * linux-low.c (status_pending_p_callback): Use ptid_match.
11795 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11797 PR breakpoints/16812
11798 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11799 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11800 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11802 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11804 PR breakpoints/15956
11805 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11807 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11809 * linux-low.c (linux_low_btrace_conf): Print size.
11810 * server.c (handle_btrace_conf_general_set): New.
11811 (hanle_general_set): Call handle_btrace_conf_general_set.
11812 (handle_query): Report Qbtrace-conf:bts:size as supported.
11814 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11816 * linux-low.c (linux_low_enable_btrace): Update parameters.
11817 (linux_low_btrace_conf): New.
11818 (linux_target_ops)<to_btrace_conf>: Initialize.
11819 * server.c (current_btrace_conf): New.
11820 (handle_btrace_enable): Rename to ...
11821 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11822 to target_enable_btrace. Update comment. Update users.
11823 (handle_qxfer_btrace_conf): New.
11824 (qxfer_packets): Add btrace-conf entry.
11825 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11826 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11827 (target_ops)<read_btrace_conf>: New.
11828 (target_enable_btrace): Update parameters.
11829 (target_read_btrace_conf): New.
11831 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11833 * server.c (handle_btrace_general_set): Remove call to
11834 target_supports_btrace.
11835 (supported_btrace_packets): New.
11836 (handle_query): Call supported_btrace_packets.
11837 * target.h: include btrace-common.h.
11838 (btrace_target_info): Removed.
11839 (supports_btrace, target_supports_btrace): Update parameters.
11841 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11843 * Makefile.in (SFILES): Add common/btrace-common.c.
11844 (OBS): Add common/btrace-common.o.
11845 (btrace-common.o): Add build rules.
11846 * linux-low: Include btrace-common.h.
11847 (linux_low_read_btrace): Use struct btrace_data. Call
11848 btrace_data_init and btrace_data_fini.
11850 2015-02-06 Pedro Alves <palves@redhat.com>
11852 * thread-db.c (find_new_threads_callback): Add debug output.
11854 2015-02-04 Pedro Alves <palves@redhat.com>
11856 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11857 (resume_stopped_resumed_lwps): New function.
11858 (linux_wait_for_event_filtered): Use it.
11860 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11862 * Makefile.in (SFILES): Add linux-personality.c.
11863 (linux-personality.o): New rule.
11864 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11865 list of objects to be built.
11866 * linux-low.c: Include nat/linux-personality.h.
11867 (linux_create_inferior): Remove code to disable address space
11868 randomization (moved to ../nat/linux-personality.c). Create
11869 cleanup to disable address space randomization.
11871 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11873 * Makefile.in (posix-strerror.o): New rule.
11874 (mingw-strerror.o): Likewise.
11875 * configure: Regenerated.
11876 * configure.ac: Source file ../common/common.host. Initialize new
11877 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11879 2015-01-14 Yao Qi <yao@codesourcery.com>
11881 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11882 (ppc-linux.o): New rule.
11883 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11884 * configure.ac: AC_CHECK_FUNCS(getauxval).
11885 * config.in: Re-generated.
11886 * configure: Re-generated.
11887 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11888 ppc64_64bit_inferior_p
11890 2015-01-14 Yao Qi <yao@codesourcery.com>
11892 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11893 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11894 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11895 (PT_ORIG_R3, PT_TRAP): Likewise.
11896 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11897 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11898 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11900 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11902 * i387-fp.c (i387_cache_to_xsave): In look over
11903 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11904 zmmh_low_space field by use of zmmh_high_space.
11906 2015-01-09 Pedro Alves <palves@redhat.com>
11908 * linux-low.c (step_over_bkpt): Move higher up in the file.
11909 (handle_extended_wait): Don't store the stop_pc here.
11910 (get_stop_pc): Adjust comments and rename to ...
11911 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11912 stopped for a software breakpoint or hardware breakpoint.
11913 (thread_still_has_status_pending_p): New function.
11914 (status_pending_p_callback): Use
11915 thread_still_has_status_pending_p. If the event is no longer
11916 interesting, resume the LWP.
11917 (handle_tracepoints): Add assert.
11918 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11919 (wstatus_maybe_breakpoint): New function.
11920 (cancel_breakpoint): Delete function.
11921 (check_stopped_by_watchpoint): New function, factored out from
11922 linux_low_filter_event.
11923 (lp_status_maybe_breakpoint): Delete function.
11924 (linux_low_filter_event): Remove filter_ptid argument.
11925 Leave thread group exits pending here. Store the LWP's stop PC.
11926 Always leave events pending.
11927 (linux_wait_for_event_filtered): Pull all events out of the
11928 kernel, and leave them all pending.
11929 (count_events_callback, select_event_lwp_callback): Consider all
11931 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11932 (select_event_lwp): Only give preference to the stepping LWP in
11933 all-stop mode. Adjust comments.
11934 (ignore_event): New function.
11935 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11936 references to cancel_breakpoints. Adjust to renames. Also give
11937 equal priority to all LWPs that have had events in non-stop mode.
11938 If reporting a software breakpoint event, unadjust the LWP's PC.
11939 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11940 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11942 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11943 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11944 (linux_stopped_by_watchpoint): Adjust.
11945 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11946 * linux-low.h (enum lwp_stop_reason): New.
11947 (struct lwp_info) <stop_pc>: Adjust comment.
11948 <stopped_by_watchpoint>: Delete field.
11949 <stop_reason>: New field.
11950 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11951 * mem-break.c (software_breakpoint_inserted_here)
11952 (hardware_breakpoint_inserted_here): New function.
11953 * mem-break.h (software_breakpoint_inserted_here)
11954 (hardware_breakpoint_inserted_here): Declare.
11955 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11956 (cancel_breakpoints): Delete.
11957 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11958 (upload_fast_traceframes): Remove references to
11959 cancel_breakpoints.
11961 2015-01-09 Pedro Alves <palves@redhat.com>
11963 * thread-db.c (find_new_threads_callback): Ignore thread if the
11964 kernel thread ID is -1.
11966 2015-01-09 Pedro Alves <palves@redhat.com>
11968 * linux-low.c (linux_attach_fail_reason_string): Move to
11969 nat/linux-ptrace.c, and rename.
11970 (linux_attach_lwp): Update comment.
11971 (attach_proc_task_lwp_callback): New function.
11972 (linux_attach): Adjust to rename and use
11973 linux_proc_attach_tgid_threads.
11974 (linux_attach_fail_reason_string): Delete declaration.
11976 2015-01-01 Joel Brobecker <brobecker@adacore.com>
11978 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
11979 * server.c (gdbserver_version): Likewise.
11981 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
11983 * remote-utils.c: Include ctype.h.
11984 (input_interrupt): Explicitly handle the case when the char
11985 received is the NUL byte. Improve the printing of non-ASCII
11988 2014-12-16 Joel Brobecker <brobecker@adacore.com>
11990 * linux-low.c (linux_low_filter_event): Update call to
11991 linux_enable_event_reporting following the addition of
11992 a new parameter to that function.
11994 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
11997 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
11998 (AARCH64_FPCR_REGNO): Likewise.
11999 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12000 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12001 (aarch64_store_fpregset): Likewise.
12003 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12005 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12006 Remove FIXME comment about assumption about N.
12008 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12010 * configure.ac: If large-file support is disabled in GDBserver,
12011 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12012 * configure: Regenerate.
12014 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12016 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12017 warning upon ENODATA from ptrace.
12018 * linux-s390-low.c (s390_store_tdb): New.
12019 (s390_regsets): Add regset for NT_S390_TDB.
12021 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12023 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12024 without a fill_function.
12025 * linux-s390-low.c (s390_fill_last_break): Remove.
12026 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12027 (s390_arch_setup): Use regset's size instead of fill_function for
12028 loop end condition.
12030 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12032 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12033 the regset's store function when ptrace returned an error.
12034 * regcache.c (get_thread_regcache): Invalidate register cache
12035 before fetching inferior's registers.
12037 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12039 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12040 while-loop as for-loop.
12041 (regsets_store_inferior_registers): Likewise.
12043 2014-11-28 Yao Qi <yao@codesourcery.com>
12045 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12046 * config.in, configure: Re-generate.
12047 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12050 2014-11-21 Yao Qi <yao@codesourcery.com>
12052 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12053 (AC_CHECK_HEADERS): Remove malloc.h.
12054 * configure: Re-generated.
12055 * config.in: Re-generated.
12056 * server.h: Don't include alloca.h and malloc.h.
12057 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12058 Don't include malloc.h.
12060 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12062 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12063 corresponding ERRNO check in same block.
12065 2014-11-12 Pedro Alves <palves@redhat.com>
12067 * server.c (cont_thread): Update comment.
12068 (start_inferior, attach_inferior): No longer clear cont_thread.
12069 (handle_v_cont): No longer set cont_thread.
12070 (captured_main): Clear cont_thread each time a GDB connects.
12072 2014-11-12 Pedro Alves <palves@redhat.com>
12074 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12075 thread, and don't resume all threads if the Hc thread has exited.
12077 2014-11-12 Pedro Alves <palves@redhat.com>
12079 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12080 the process group instead of to a specific LWP.
12082 2014-10-15 Pedro Alves <palves@redhat.com>
12085 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12087 (arm_set_thread_context): Delete.
12088 (the_low_target): Adjust.
12089 * win32-i386-low.c (debug_registers_changed)
12090 (debug_registers_used): Delete.
12091 (update_debug_registers_callback): New function.
12092 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12093 needing to update their debug registers.
12094 (win32_get_current_dr): New function.
12095 (x86_dr_low_get_addr, x86_dr_low_get_control)
12096 (x86_dr_low_get_status): Fetch the debug register from the thread
12098 (i386_initial_stuff): Adjust.
12099 (i386_get_thread_context): Remove current_event parameter. Don't
12100 clear debug_registers_changed nor copy DR values to
12102 (i386_set_thread_context): Delete.
12103 (i386_prepare_to_resume): New function.
12104 (i386_thread_added): Mark the thread as needing to update irs
12106 (the_low_target): Remove i386_set_thread_context and install
12107 i386_prepare_to_resume.
12108 * win32-low.c (win32_get_thread_context): Adjust.
12109 (win32_set_thread_context): Use SetThreadContext
12111 (win32_prepare_to_resume): New function.
12112 (win32_require_context): New function, factored out from ...
12113 (thread_rec): ... this.
12114 (continue_one_thread): Call win32_prepare_to_resume on each thread
12115 we're about to continue.
12116 (win32_resume): Call win32_prepare_to_resume on the event thread.
12117 * win32-low.h (struct win32_thread_info)
12118 <debug_registers_changed>: New field.
12119 (struct win32_target_ops): Change prototype of set_thread_context,
12120 delete set_thread_context and add prepare_to_resume.
12121 (win32_require_context): New declaration.
12123 2014-10-08 Gary Benson <gbenson@redhat.com>
12125 * server.h: Do not include common-exceptions.h.
12127 2014-10-08 Gary Benson <gbenson@redhat.com>
12129 * server.h: Do not include cleanups.h.
12131 2014-09-30 James Hogan <james.hogan@imgtec.com>
12133 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12134 mips64-dsp-linux.c.
12136 2014-09-23 Yao Qi <yao@codesourcery.com>
12138 * linux-low.c (lp_status_maybe_breakpoint): New function.
12139 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12140 (count_events_callback): Likewise.
12141 (select_event_lwp_callback): Likewise.
12142 (cancel_breakpoints_callback): Likewise.
12144 2014-09-19 Don Breazeal <donb@codesourcery.com>
12146 * linux-low.c (handle_extended_wait): Call
12147 linux_ptrace_get_extended_event.
12148 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12149 linux_is_extended_waitstatus.
12151 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12153 * Makefile.in (CPPFLAGS): Define.
12154 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12155 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12157 2014-09-16 Gary Benson <gbenson@redhat.com>
12159 * inferiors.h (current_inferior): Renamed as...
12160 (current_thread): New variable. All uses updated.
12161 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12162 (maybe_move_out_of_jump_pad): Likewise.
12163 (cancel_breakpoint): Likewise.
12164 (linux_low_filter_event): Likewise.
12165 (wait_for_sigstop): Likewise.
12166 (linux_resume_one_lwp): Likewise.
12167 (need_step_over_p): Likewise.
12168 (start_step_over): Likewise.
12169 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12170 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12171 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12172 and save_inferior as saved_thread.
12173 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12175 (regcache_invalidate_thread): Likewise.
12176 * remote-utils.c (prepare_resume_reply): Likewise.
12177 * thread-db.c (thread_db_get_tls_address): Likewise.
12178 (disable_thread_event_reporting): Likewise.
12179 (remove_thread_event_breakpoints): Likewise.
12180 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12182 * target.h (set_desired_inferior): Renamed as...
12183 (set_desired_thread): New declaration. All uses updated.
12184 * server.c (myresume): Updated comment to reference thread instead
12186 (handle_serial_event): Likewise.
12187 (handle_target_event): Likewise.
12189 2014-09-12 Tom Tromey <tromey@redhat.com>
12190 Gary Benson <gbenson@redhat.com>
12192 * regcache.h: Include common-regcache.h.
12193 (regcache_read_pc): Don't declare.
12194 * regcache.c (get_thread_regcache_for_ptid): New function.
12196 2014-09-11 Tom Tromey <tromey@redhat.com>
12197 Gary Benson <gbenson@redhat.com>
12199 * symbol.c: New file.
12200 * Makefile.in (SFILES): Add symbol.c.
12201 (OBS): Add symbol.o.
12203 2014-09-11 Gary Benson <gbenson@redhat.com>
12205 * target.c (target_stop_ptid, target_continue_ptid): New
12208 2014-09-11 Tom Tromey <tromey@redhat.com>
12209 Gary Benson <gbenson@redhat.com>
12211 * target.h: Include target/target.h.
12212 * target.c (target_read_memory, target_read_uint32)
12213 (target_write_memory): New functions.
12215 2014-09-11 Gary Benson <gbenson@redhat.com>
12217 * server.h (debug_hw_points): Don't declare.
12218 * server.c (debug_hw_points): Don't define. Replace all uses
12219 with show_debug_regs.
12220 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12221 all uses with show_debug_regs.
12223 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12225 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12226 endianness into account.
12227 (ppc_supply_ptrace_register): Likewise.
12229 2014-09-03 James Hogan <james.hogan@imgtec.com>
12231 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12232 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12234 2014-09-03 Gary Benson <gbenson@redhat.com>
12236 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12237 ALL_DEBUG_ADDRESS_REGISTERS.
12239 2014-09-02 Gary Benson <gbenson@redhat.com>
12241 * i386-low.h: Renamed as...
12242 * x86-low.h: New file. All type, function and variable name
12243 prefixes changed from "i386_" to "x86_". All references updated.
12244 * i386-low.c: Renamed as...
12245 * x86-low.c: New file. All type, function and variable name
12246 prefixes changed from "i386_" to "x86_". All references updated.
12248 2014-09-02 Gary Benson <gbenson@redhat.com>
12250 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12251 (x86_linux_new_thread): Likewise.
12253 2014-08-29 Gary Benson <gbenson@redhat.com>
12255 * server.h (setjmp.h): Do not include.
12256 (toplevel): Do not declare.
12257 (common-exceptions.h): Include.
12258 (cleanups.h): Likewise.
12259 * server.c (toplevel): Do not define.
12260 (exit_code): New static global.
12261 (detach_or_kill_for_exit_cleanup): New function.
12262 (main): New function. Original main renamed to...
12263 (captured_main): New function.
12264 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12266 2014-08-29 Gary Benson <gbenson@redhat.com>
12268 * Makefile.in (SFILES): Add common/common-exceptions.c.
12269 (OBS): Add common-exceptions.o.
12270 (common-exceptions.o): New rule.
12271 * utils.c (prepare_to_throw_exception): New function.
12273 2014-08-29 Gary Benson <gbenson@redhat.com>
12275 * config.in: Regenerate.
12276 * configure: Likewise.
12278 2014-08-29 Gary Benson <gbenson@redhat.com>
12280 * Makefile.in (SFILES): Add common/cleanups.c.
12282 (cleanups.o): New rule.
12284 2014-08-29 Gary Benson <gbenson@redhat.com>
12286 * utils.c (internal_vwarning): New function.
12288 2014-08-28 Gary Benson <gbenson@redhat.com>
12290 * utils.h (fatal): Remove declaration.
12291 * utils.c (fatal): Remove function.
12293 2014-08-28 Gary Benson <gbenson@redhat.com>
12295 * tracepoint.c (gdb_agent_init): Replace fatal with
12297 (initialize_tracepoint): Likewise.
12299 2014-08-28 Gary Benson <gbenson@redhat.com>
12301 * remote-utils.c (remote_prepare): Replace fatal with error.
12303 2014-08-28 Gary Benson <gbenson@redhat.com>
12305 * linux-low.c (linux_async): Replace fatal with warning.
12306 Tidy up and return.
12307 (linux_start_non_stop): Return -1 if linux_async failed.
12309 2014-08-28 Gary Benson <gbenson@redhat.com>
12311 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12313 (i386_dr_low_get_addr): Remove vague comment.
12314 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12317 2014-08-28 Gary Benson <gbenson@redhat.com>
12319 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12320 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12322 (linux_resume_one_lwp): Likewise.
12323 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12325 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12326 with internal_error.
12327 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12328 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12329 (find_register_by_name): Replace fatal with internal_error.
12330 (find_regno): Likewise.
12331 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12332 * thread-db.c (thread_db_create_event): Likewise.
12333 (thread_db_load_search): Likewise.
12334 (try_thread_db_load_1): Likewise.
12335 * tracepoint.c (get_jump_space_head): Replace fatal with
12337 (claim_trampoline_space): Likewise.
12338 (have_fast_tracepoint_trampoline_buffer): Likewise.
12339 (cmd_qtstart): Likewise.
12340 (stop_tracing): Likewise.
12341 (fast_tracepoint_collecting): Likewise.
12342 (target_malloc): Likewise.
12343 (download_tracepoint): Likewise.
12344 (download_trace_state_variables): Replace check with gdb_assert.
12345 (upload_fast_traceframes): Replace fatal with internal_error.
12347 2014-08-19 Tom Tromey <tromey@redhat.com>
12348 Gary Benson <gbenson@redhat.com>
12350 * Makefile.in (SFILES): Add common/common-debug.c.
12351 (OBS): Add common-debug.o.
12352 (common-debug.o): New rule.
12353 * debug.h (debug_printf): Don't declare.
12354 * debug.c (debug_printf): Renamed and rewritten as...
12355 (debug_vprintf): New function.
12357 2014-08-19 Gary Benson <gbenson@redhat.com>
12359 * utils.h: Do not include print-utils.h.
12361 2014-08-19 Tom Tromey <tromey@redhat.com>
12362 Gary Benson <gbenson@redhat.com>
12364 * server.h: Add static assertion.
12365 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12367 2014-08-19 Tom Tromey <tromey@redhat.com>
12368 Gary Benson <gbenson@redhat.com>
12370 * Makefile.in (SFILES): Add common/errors.c.
12371 (OBS): Add errors.o.
12372 (IPA_OBS): Add errors-ipa.o.
12373 (errors.o): New rule.
12374 (errors-ipa.o): Likewise.
12375 * utils.h (perror_with_name, error, warning): Don't declare.
12376 * utils.c (warning): Renamed and rewritten as...
12377 (vwarning): New function.
12378 (error): Renamed and rewritten as...
12379 (verror): New function.
12380 (internal_error): Renamed and rewritten as...
12381 (internal_verror): New function.
12383 2014-08-07 Gary Benson <gbenson@redhat.com>
12385 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12386 * configure: Regenerate.
12387 * config.in: Likewise.
12388 * server.h: Do not include errno.h.
12389 * event-loop.c: Likewise.
12390 * hostio-errno.c: Likewise.
12391 * linux-low.c: Likewise.
12392 * remote-utils.c: Likewise.
12393 * spu-low.c: Likewise.
12394 * utils.c: Likewise.
12395 * gdbreplay.c: Unconditionally include errno.h.
12397 2014-08-07 Gary Benson <gbenson@redhat.com>
12399 * server.h: Do not include string.h.
12400 * event-loop.c: Likewise.
12401 * linux-low.c: Likewise.
12402 * regcache.c: Likewise.
12403 * remote-utils.c: Likewise.
12404 * spu-low.c: Likewise.
12405 * utils.c: Likewise.
12407 2014-08-07 Gary Benson <gbenson@redhat.com>
12409 * server.h: Do not include gdb_assert.h.
12411 2014-08-07 Gary Benson <gbenson@redhat.com>
12413 * server.h: Do not include common-utils.h.
12415 2014-08-07 Gary Benson <gbenson@redhat.com>
12417 * server.h: Do not include ptid.h.
12418 * notif.h: Likewise.
12420 2014-08-07 Gary Benson <gbenson@redhat.com>
12422 * server.h: Do not include gdb_locale.h.
12424 2014-08-07 Gary Benson <gbenson@redhat.com>
12426 * server.h: Do not include gdb/signals.h.
12427 * win32-low.c: Likewise.
12429 2014-08-07 Gary Benson <gbenson@redhat.com>
12431 * server.h: Do not include pathmax.h.
12433 2014-08-07 Gary Benson <gbenson@redhat.com>
12435 * server.h: Do not include libiberty.h.
12436 * linux-bfin-low.c: Likewise.
12438 2014-08-07 Gary Benson <gbenson@redhat.com>
12440 * server.h: Do not include ansidecl.h.
12442 2014-08-07 Gary Benson <gbenson@redhat.com>
12444 * linux-x86-low.c: Do not include stddef.h.
12445 * lynx-ppc-low.c: Likewise.
12446 * tracepoint.c: Likewise.
12448 2014-08-07 Gary Benson <gbenson@redhat.com>
12450 * server.h: Do not include stdarg.h.
12451 * nto-low.c: Likewise.
12453 2014-08-07 Gary Benson <gbenson@redhat.com>
12455 * server.h: Do not include stdlib.h.
12456 * inferiors.c: Likewise.
12457 * linux-low.c: Likewise.
12458 * regcache.c: Likewise.
12459 * spu-low.c: Likewise.
12460 * tracepoint.c: Likewise.
12461 * utils.c: Likewise.
12463 2014-08-07 Gary Benson <gbenson@redhat.com>
12465 * server.h: Do not include stdio.h.
12466 * linux-low.c: Likewise.
12467 * remote-utils.c: Likewise.
12468 * spu-low.c: Likewise.
12469 * utils.c: Likewise.
12470 * wincecompat.c: Likewise.
12472 2014-08-06 Gary Benson <gbenson@redhat.com>
12474 * regcache.c (init_register_cache): Move conditionals inside if.
12476 2014-08-06 Gary Benson <gbenson@redhat.com>
12478 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12480 2014-07-31 Gary Benson <gbenson@redhat.com>
12482 * ax.h: Do not include server.h.
12483 * gdbthread.h: Likewise.
12484 * lynx-low.h: Likewise.
12485 * notif.h: Likewise.
12487 2014-07-30 Gary Benson <gbenson@redhat.com>
12489 * server.h: Include common-defs.h.
12490 Do not include config.h or build-gnulib-gdbserver/config.h.
12492 2014-07-30 Gary Benson <gbenson@redhat.com>
12494 * hostio-errno.c: Move server.h to top of includes list.
12495 * inferiors.c: Likewise.
12496 * linux-x86-low.c: Likewise.
12497 * notif.c: Include server.h.
12499 2014-07-24 Tom Tromey <tromey@redhat.com>
12500 Gary Benson <gbenson@redhat.com>
12502 * server.h (CORE_ADDR): Now unsigned.
12504 2014-07-16 Pedro Alves <palves@redhat.com>
12506 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12508 2014-07-15 Pedro Alves <palves@redhat.com>
12510 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12513 2014-07-11 Pedro Alves <palves@redhat.com>
12515 * linux-low.c (kill_wait_lwp): New function, based on
12516 kill_one_lwp_callback, but use my_waitpid directly.
12517 (kill_one_lwp_callback, linux_kill): Use it.
12519 2014-06-23 Pedro Alves <palves@redhat.com>
12521 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12522 before setting DR0..DR3.
12524 2014-06-20 Gary Benson <gbenson@redhat.com>
12526 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12527 * configure: Regenerated.
12528 * config.in: Likewise.
12530 2014-06-20 Gary Benson <gbenson@redhat.com>
12532 * Makefile.in (SFILES): Update locations for files moved
12533 from common to nat.
12534 (object file files): Reordered.
12536 2014-06-20 Gary Benson <gbenson@redhat.com>
12538 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12539 (i386_dr_low_set_addr): Likewise.
12540 (i386_dr_low_get_addr): Likewise.
12541 (i386_dr_low_can_set_control): Likewise.
12542 (i386_dr_low_set_control): Likewise.
12543 (i386_dr_low_get_control): Likewise.
12544 (i386_dr_low_get_status): Likewise.
12545 (i386_get_debug_register_length): Likewise.
12546 * linux-x86-low.c (i386_dr_low_set_addr):
12547 Changed signature. Made static.
12548 (i386_dr_low_get_addr): Likewise.
12549 (i386_dr_low_set_control): Likewise.
12550 (i386_dr_low_get_control): Likewise.
12551 (i386_dr_low_get_status): Likewise.
12552 (i386_dr_low): New global variable.
12553 * win32-i386-low.c (i386_dr_low_set_addr):
12554 Changed signature. Made static.
12555 (i386_dr_low_get_addr): Likewise.
12556 (i386_dr_low_set_control): Likewise.
12557 (i386_dr_low_get_control): Likewise.
12558 (i386_dr_low_get_status): Likewise.
12559 (i386_dr_low): New global variable.
12561 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12563 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12564 * Makefile.in (AR, AR_FLAGS): Define.
12565 * configure: Regenerate.
12567 2014-06-19 Gary Benson <gbenson@redhat.com>
12569 * Makefile.in (i386-dregs.o): New rule.
12570 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12571 * i386-low.c (target.h): Remove include.
12572 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12573 (DR_CONTROL_SHIFT): Likewise.
12574 (DR_CONTROL_SIZE): Likewise.
12575 (DR_RW_EXECUTE): Likewise.
12576 (DR_RW_WRITE): Likewise.
12577 (DR_RW_READ): Likewise.
12578 (DR_RW_IORW): Likewise.
12579 (DR_LEN_1): Likewise.
12580 (DR_LEN_2): Likewise.
12581 (DR_LEN_4): Likewise.
12582 (DR_LEN_8): Likewise.
12583 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12584 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12585 (DR_ENABLE_SIZE): Likewise.
12586 (DR_LOCAL_SLOWDOWN): Likewise.
12587 (DR_GLOBAL_SLOWDOWN): Likewise.
12588 (DR_CONTROL_RESERVED): Likewise.
12589 (I386_DR_CONTROL_MASK): Likewise.
12590 (I386_DR_VACANT): Likewise.
12591 (I386_DR_LOCAL_ENABLE): Likewise.
12592 (I386_DR_GLOBAL_ENABLE): Likewise.
12593 (I386_DR_DISABLE): Likewise.
12594 (I386_DR_SET_RW_LEN): Likewise.
12595 (I386_DR_GET_RW_LEN): Likewise.
12596 (I386_DR_WATCH_HIT): Likewise.
12597 (i386_wp_op_t): Likewise.
12598 (i386_show_dr): Likewise.
12599 (i386_length_and_rw_bits): Likewise.
12600 (i386_insert_aligned_watchpoint): Likewise.
12601 (i386_remove_aligned_watchpoint): Likewise.
12602 (i386_handle_nonaligned_watchpoint): Likewise.
12603 i386_update_inferior_debug_regs(): Likewise.
12604 (i386_dr_insert_watchpoint): Likewise.
12605 (i386_dr_remove_watchpoint): Likewise.
12606 (i386_dr_region_ok_for_watchpoint): Likewise.
12607 (i386_dr_stopped_data_address): Likewise.
12608 (i386_dr_stopped_by_watchpoint): Likewise.
12610 2014-06-19 Gary Benson <gbenson@redhat.com>
12612 * i386-low.c (i386_dr_show): Renamed to
12613 i386_show_dr and made static. All uses updated.
12614 (i386_dr_length_and_rw_bits): Renamed to
12615 i386_length_and_rw_bits and made static.
12617 (i386_dr_insert_aligned_watchpoint): Renamed to
12618 i386_insert_aligned_watchpoint and made static.
12620 (i386_dr_remove_aligned_watchpoint): Renamed to
12621 i386_remove_aligned_watchpoint and made static.
12623 (i386_dr_update_inferior_debug_regs): Renamed to
12624 i386_update_inferior_debug_regs and made static.
12627 2014-06-18 Gary Benson <gbenson@redhat.com>
12629 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12630 (i386_dr_low_can_set_control): Likewise.
12631 (i386_get_debug_register_length): Likewise.
12632 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12633 (i386_dr_low_can_set_control): Likewise.
12634 (i386_get_debug_register_length): Likewise.
12636 2014-06-17 Gary Benson <gbenson@redhat.com>
12638 * i386-low.h (i386-dregs.h): New include.
12639 (DR_FIRSTADDR): Now in i386-dregs.h.
12640 (DR_LASTADDR): Likewise.
12641 (DR_NADDR): Likewise.
12642 (DR_STATUS): Likewise.
12643 (DR_CONTROL): Likewise.
12644 (i386_debug_reg_state): Likewise.
12645 (i386_dr_insert_watchpoint): Likewise.
12646 (i386_dr_remove_watchpoint): Likewise.
12647 (i386_dr_region_ok_for_watchpoint): Likewise.
12648 (i386_dr_stopped_data_address): Likewise.
12649 (i386_dr_stopped_by_watchpoint): Likewise.
12650 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12652 2014-06-18 Gary Benson <gbenson@redhat.com>
12654 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12655 i386_dr_insert_watchpoint.
12656 (i386_low_remove_watchpoint): Renamed to
12657 i386_dr_remove_watchpoint.
12658 (i386_low_region_ok_for_watchpoint): Renamed to
12659 i386_dr_region_ok_for_watchpoint.
12660 (i386_low_stopped_data_address): Renamed to
12661 i386_dr_stopped_data_address.
12662 (i386_low_stopped_by_watchpoint): Renamed to
12663 i386_dr_stopped_by_watchpoint.
12664 * i386-low.c (i386_show_dr): Renamed to
12665 i386_dr_show and made nonstatic. All uses updated.
12666 (i386_length_and_rw_bits): Renamed to
12667 i386_dr_length_and_rw_bits and made nonstatic.
12669 (i386_insert_aligned_watchpoint): Renamed to
12670 i386_dr_insert_aligned_watchpoint and made nonstatic.
12672 (i386_remove_aligned_watchpoint): Renamed to
12673 i386_dr_remove_aligned_watchpoint and made nonstatic.
12675 (i386_update_inferior_debug_regs): Renamed to
12676 i386_dr_update_inferior_debug_regs and made nonstatic.
12678 (i386_low_insert_watchpoint): Renamed to
12679 i386_dr_insert_watchpoint. All uses updated.
12680 (i386_low_remove_watchpoint): Renamed to
12681 i386_dr_remove_watchpoint. All uses updated.
12682 (i386_low_region_ok_for_watchpoint): Renamed to
12683 i386_dr_region_ok_for_watchpoint. All uses updated.
12684 (i386_low_stopped_data_address): Renamed to
12685 i386_dr_stopped_data_address. All uses updated.
12686 (i386_low_stopped_by_watchpoint): Renamed to
12687 i386_dr_stopped_by_watchpoint. All uses updated.
12689 2014-06-18 Gary Benson <gbenson@redhat.com>
12691 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12692 (i386_dr_low_can_set_control): Likewise.
12693 (i386_insert_aligned_watchpoint): New check.
12695 2014-06-18 Gary Benson <gbenson@redhat.com>
12697 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12700 2014-06-18 Gary Benson <gbenson@redhat.com>
12702 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12703 instead of fatal and error.
12704 (i386_handle_nonaligned_watchpoint): Likewise.
12706 2014-06-18 Gary Benson <gbenson@redhat.com>
12708 * i386-low.c (i386_get_debug_register_length): New macro.
12709 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12710 (i386_show_dr): Use debug_printf instead of fprintf. Use
12711 phex to format values.
12713 2014-06-18 Gary Benson <gbenson@redhat.com>
12715 * i386-low.h: Comment changes.
12716 * i386-low.c: Likewise.
12718 2014-06-18 Gary Benson <gbenson@redhat.com>
12720 * i386-low.c: Whitespace changes.
12722 2014-06-12 Tom Tromey <tromey@redhat.com>
12724 * utils.c (freeargv): Remove.
12726 2014-06-12 Tom Tromey <tromey@redhat.com>
12728 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12729 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12730 (parse_debug_format_options): Likewise.
12731 (gdbserver_usage): Likewise.
12732 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12733 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12734 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12736 ($(LIBGNU)): Depend on libiberty.
12737 (all-lib): Recurse into all subdirs.
12738 (install-only): Invoke "install" target in subdirs.
12739 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12741 * configure: Rebuild.
12742 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12743 for vasprintf, vsnprintf, or gettimeofday.
12744 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12747 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12749 * development.sh: Delete.
12750 * Makefile.in (config.status): Adjust dependency on development.sh.
12751 * configure.ac: Adjust development.sh source call.
12752 * configure: Regenerate.
12754 2014-06-02 Pedro Alves <palves@redhat.com>
12756 * ax.c (gdb_free_agent_expr): New function.
12757 * ax.h (gdb_free_agent_expr): New declaration.
12758 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12760 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12762 (clear_breakpoint_conditions_and_commands): New function.
12763 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12764 (clear_breakpoint_conditions_and_commands): New declaration.
12766 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12768 * linux-aarch64-low.c (asm/ptrace.h): Include.
12770 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12772 Fix TLS access for -static -pthread.
12773 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12774 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12775 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12777 2014-05-20 Pedro Alves <palves@redhat.com>
12779 * linux-aarch64-low.c (aarch64_insert_point)
12780 (aarch64_remove_point): No longer check whether the type is
12781 supported here. Adjust to new interface.
12782 (the_low_target): Install aarch64_supports_z_point_type as
12783 supports_z_point_type method.
12784 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12785 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12786 instead of a Z packet char. Adjust.
12787 (arm_supports_z_point_type): New function.
12788 (arm_insert_point, arm_remove_point): Adjust to new interface.
12789 (the_low_target): Install arm_supports_z_point_type.
12790 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12791 (cris_insert_point, cris_remove_point): Adjust to new interface.
12792 Don't check whether the type is supported here.
12793 (the_low_target): Install cris_supports_z_point_type.
12794 * linux-low.c (linux_supports_z_point_type): New function.
12795 (linux_insert_point, linux_remove_point): Adjust to new interface.
12796 * linux-low.h (struct linux_target_ops) <insert_point,
12797 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12798 raw_breakpoint pointer parameter.
12799 <supports_z_point_type>: New method.
12800 * linux-mips-low.c (mips_supports_z_point_type): New function.
12801 (mips_insert_point, mips_remove_point): Adjust to new interface.
12802 Use mips_supports_z_point_type.
12803 (the_low_target): Install mips_supports_z_point_type.
12804 * linux-ppc-low.c (the_low_target): Install NULL as
12805 supports_z_point_type method.
12806 * linux-s390-low.c (the_low_target): Install NULL as
12807 supports_z_point_type method.
12808 * linux-sparc-low.c (the_low_target): Install NULL as
12809 supports_z_point_type method.
12810 * linux-x86-low.c (x86_supports_z_point_type): New function.
12811 (x86_insert_point): Adjust to new insert_point interface. Use
12812 insert_memory_breakpoint. Adjust to new
12813 i386_low_insert_watchpoint interface.
12814 (x86_remove_point): Adjust to remove_point interface. Use
12815 remove_memory_breakpoint. Adjust to new
12816 i386_low_remove_watchpoint interface.
12817 (the_low_target): Install x86_supports_z_point_type.
12818 * lynx-low.c (lynx_target_ops): Install NULL as
12819 supports_z_point_type callback.
12820 * nto-low.c (nto_supports_z_point_type): New.
12821 (nto_insert_point, nto_remove_point): Adjust to new interface.
12822 (nto_target_ops): Install nto_supports_z_point_type.
12823 * mem-break.c: Adjust intro comment.
12824 (struct raw_breakpoint) <raw_type, size>: New fields.
12825 <inserted>: Update comment.
12826 <shlib_disabled>: Delete field.
12827 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12828 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12829 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12830 (raw_bkpt_type_to_target_hw_bp_type): New function.
12831 (find_enabled_raw_code_breakpoint_at): New function.
12832 (find_raw_breakpoint_at): New type and size parameters. Use them.
12833 (insert_memory_breakpoint): New function, based off
12834 set_raw_breakpoint_at.
12835 (remove_memory_breakpoint): New function.
12836 (set_raw_breakpoint_at): Reimplement.
12837 (set_breakpoint): New, based on set_breakpoint_at.
12838 (set_breakpoint_at): Reimplement.
12839 (delete_raw_breakpoint): Go through the_target->remove_point
12840 instead of assuming memory breakpoints.
12841 (find_gdb_breakpoint_at): Delete.
12842 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12843 (find_gdb_breakpoint): New function.
12844 (set_gdb_breakpoint_at): Delete.
12845 (z_type_supported): New function.
12846 (set_gdb_breakpoint_1): New function, loosely based off
12847 set_gdb_breakpoint_at.
12848 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12849 (delete_gdb_breakpoint_at): Delete.
12850 (delete_gdb_breakpoint_1): New function, loosely based off
12851 delete_gdb_breakpoint_at.
12852 (delete_gdb_breakpoint): New function.
12853 (clear_gdb_breakpoint_conditions): Rename to ...
12854 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12856 (add_condition_to_breakpoint): Make static.
12857 (add_breakpoint_condition): Take a struct breakpoint pointer
12858 instead of an address. Adjust.
12859 (gdb_condition_true_at_breakpoint): Rename to ...
12860 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12862 (gdb_condition_true_at_breakpoint): Reimplement.
12863 (add_breakpoint_commands): Take a struct breakpoint pointer
12864 instead of an address. Adjust.
12865 (gdb_no_commands_at_breakpoint): Rename to ...
12866 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12867 parameter. Return true if no breakpoint was found. Change debug
12869 (gdb_no_commands_at_breakpoint): Reimplement.
12870 (run_breakpoint_commands): Rename to ...
12871 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12872 and change return type to boolean.
12873 (run_breakpoint_commands): New function.
12874 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12875 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12876 breakpoint. Go through the_target->remove_point instead of
12877 assuming memory breakpoint.
12878 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12879 software and hardware breakpoints.
12880 (reinsert_raw_breakpoint): Go through the_target->insert_point
12881 instead of assuming memory breakpoint.
12882 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12883 software and hardware breakpoints.
12884 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12885 Check both software and hardware breakpoints.
12886 (validate_inserted_breakpoint): Assert the breakpoint is a
12887 software breakpoint. Set the inserted flag to -1 instead of
12888 setting shlib_disabled.
12889 (delete_disabled_breakpoints): Adjust.
12890 (validate_breakpoints): Only validate software breakpoints.
12891 Adjust to inserted flag change.
12892 (check_mem_read, check_mem_write): Skip breakpoint types other
12893 than software breakpoints. Adjust to inserted flag change.
12894 * mem-break.h (enum raw_bkpt_type): New enum.
12895 (raw_breakpoint, struct process_info): Forward declare.
12896 (Z_packet_to_target_hw_bp_type): Delete declaration.
12897 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12898 (set_gdb_breakpoint, delete_gdb_breakpoint)
12899 (clear_breakpoint_conditions): New declarations.
12900 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12901 (breakpoint_inserted_here): Update comment.
12902 (add_breakpoint_condition, add_breakpoint_commands): Replace
12903 address parameter with a breakpoint pointer parameter.
12904 (gdb_breakpoint_here): Update comment.
12905 (delete_gdb_breakpoint_at): Delete.
12906 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12907 * server.c (process_point_options): Take a struct breakpoint
12908 pointer instead of an address. Adjust.
12909 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12910 delete_gdb_breakpoint.
12911 * spu-low.c (spu_target_ops): Install NULL as
12912 supports_z_point_type method.
12913 * target.h: Include mem-break.h.
12914 (struct target_ops) <prepare_to_access_memory>: Update comment.
12915 <supports_z_point_type>: New field.
12916 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12917 instead of a char. Also take a raw breakpoint pointer.
12918 * win32-arm-low.c (the_low_target): Install NULL as
12919 supports_z_point_type.
12920 * win32-i386-low.c (i386_supports_z_point_type): New function.
12921 (i386_insert_point, i386_remove_point): Adjust to new interface.
12922 (the_low_target): Install i386_supports_z_point_type.
12923 * win32-low.c (win32_supports_z_point_type): New function.
12924 (win32_insert_point, win32_remove_point): Adjust to new interface.
12925 (win32_target_ops): Install win32_supports_z_point_type.
12926 * win32-low.h (struct win32_target_ops):
12927 <supports_z_point_type>: New method.
12928 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12929 instead of a char. Also take a raw breakpoint pointer.
12931 2014-05-20 Pedro Alves <palves@redhat.com>
12933 * mem-break.h: Include break-common.h.
12934 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12935 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12936 (Z_packet_to_target_hw_bp_type): New declaration.
12937 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12938 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12939 (Z_PACKET_ACCESS_WP): Delete macros.
12940 (Z_packet_to_hw_type): Delete function.
12941 * i386-low.h: Don't include break-common.h here.
12942 (Z_packet_to_hw_type): Delete declaration.
12943 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12944 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12945 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12946 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12947 * linux-aarch64-low.c: Don't include break-common.h here.
12948 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12949 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12950 (Z_packet_to_target_hw_bp_type): Delete function.
12951 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12953 (mips_insert_point, mips_remove_point): Use
12954 Z_packet_to_target_hw_bp_type.
12956 2014-05-20 Pedro Alves <palves@redhat.com>
12958 * linux-aarch64-low.c: Include break-common.h.
12959 (enum target_point_type): Delete.
12960 (Z_packet_to_point_type): Rename to ...
12961 (Z_packet_to_target_hw_bp_type): ... this, and return a
12962 target_hw_bp_type instead.
12963 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12964 instead of an enum target_point_type.
12965 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12967 (aarch64_dr_state_insert_one_point)
12968 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
12969 (aarch64_handle_aligned_watchpoint)
12970 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
12971 Take an enum target_hw_bp_type instead of an enum
12973 (aarch64_supports_z_point_type): New function.
12974 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
12975 use Z_packet_to_target_hw_bp_type.
12977 2014-05-20 Joel Brobecker <brobecker@adacore.com>
12979 * configure.ac: Only use -Werror by default when DEVELOPMENT
12981 * configure: Regenerate.
12983 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12985 Fix gdbserver qGetTLSAddr for x86_64 -m32.
12986 * linux-x86-low.c (X86_64_USER_REGS): New.
12987 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
12989 2014-04-28 Yao Qi <yao@codesourcery.com>
12991 * Makefile.in (i386-avx512.c): Fix the typo of generated file
12994 2014-04-25 Pedro Alves <palves@redhat.com>
12997 * linux-low.c (linux_attach_fail_reason_string): New function.
12998 (linux_attach_lwp): Delete.
12999 (linux_attach_lwp_1): Rename to ...
13000 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13001 argument. Remove "initial" parameter. Return int instead of
13002 void. Don't error or warn here.
13003 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13004 failure to attach to the tgid. Call warning when failing to
13006 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13007 argument. Remove "initial" parameter. Return int instead of
13008 void. Don't error or warn here.
13009 (linux_attach_fail_reason_string): New declaration.
13010 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13011 interface change. Use linux_attach_fail_reason_string.
13013 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13014 Walfred Tedeschi <walfred.tedeschi@intel.com>
13016 * Makefile.in: Added rules to handle new files
13017 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13018 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13019 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13020 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13021 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13022 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13023 x32-avx512-linux.o.
13024 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13025 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13026 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13027 i386/x32-avx512.xml.
13028 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13029 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13030 i386/x32-avx512-linux.xml.
13031 * i387-fp.c (num_avx512_k_registers): New constant for number
13033 (num_avx512_zmmh_low_registers): New constant for number of
13034 lower ZMM registers (0-15).
13035 (num_avx512_zmmh_high_registers): New constant for number of
13036 higher ZMM registers (16-31).
13037 (num_avx512_ymmh_registers): New contant for number of higher
13038 YMM registers (ymm16-31 added by avx521 on x86_64).
13039 (num_avx512_xmm_registers): New constant for number of higher
13040 XMM registers (xmm16-31 added by AVX512 on x86_64).
13041 (struct i387_xsave): Add space for AVX512 registers.
13042 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13043 Add code to handle AVX512 registers.
13044 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13045 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13046 prototypei from generated file.
13047 (tdesc_amd64_avx512_linux): Likewise.
13048 (init_registers_x32_avx512_linux): Likewise.
13049 (tdesc_x32_avx512_linux): Likewise.
13050 (init_registers_i386_avx512_linux): Likewise.
13051 (tdesc_i386_avx512_linux): Likewise.
13052 (x86_64_regmap): Add AVX512 registers.
13053 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13055 (initialize_low_arch): Add code to initialize AVX512 registers.
13057 2014-04-23 Pedro Alves <palves@redhat.com>
13059 * mem-break.c (find_gdb_breakpoint_at): Make static.
13060 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13062 2014-04-23 Pedro Alves <palves@redhat.com>
13064 * i386-low.c: Don't include break-common.h here.
13065 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13066 prototype to take target_hw_bp_type as argument instead of a Z
13068 * i386-low.h: Include break-common.h here.
13069 (Z_packet_to_hw_type): Declare.
13070 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13072 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13073 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13074 (x86_remove_point): Convert the packet number to a
13075 target_hw_bp_type before calling i386_low_remove_watchpoint.
13076 * win32-i386-low.c (i386_insert_point): Convert the packet number
13077 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13078 (i386_remove_point): Convert the packet number to a
13079 target_hw_bp_type before calling i386_low_remove_watchpoint.
13081 2014-04-23 Pedro Alves <palves@redhat.com>
13083 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13085 2014-04-10 Pedro Alves <palves@redhat.com>
13087 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13088 Check if the condition or command is NULL before checking if the
13089 breakpoint is known. On success, return true.
13090 * mem-break.h (add_breakpoint_condition): Document return.
13091 (add_breakpoint_commands): Add describing comment.
13092 * server.c (skip_to_semicolon): New function.
13093 (process_point_options): Use it.
13095 2014-04-09 Pedro Alves <palves@redhat.com>
13097 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13100 2014-02-27 Pedro Alves <palves@redhat.com>
13103 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13105 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13107 (last_thread_of_process_p): Take a PID argument instead of a
13109 (linux_wait_for_lwp): Delete.
13110 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13112 (linux_low_filter_event): New function, party factored out from
13113 linux_wait_for_event.
13114 (linux_wait_for_event): Rename to ...
13115 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13116 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13117 sigsuspend. Check for zombie leaders.
13118 (linux_wait_for_event): Reimplement as wrapper around
13119 linux_wait_for_event_filtered.
13120 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13121 a normal or signal exit is seen, it's the whole process exiting.
13122 (wait_for_sigstop): No longer a for_each_inferior callback.
13123 Rewrite on top of linux_wait_for_event_filtered.
13124 (stop_all_lwps): Call wait_for_sigstop directly.
13125 * server.c (resume, handle_target_event): Handle
13126 TARGET_WAITKIND_NO_RESUMED.
13128 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13130 * win32-low.c (psapi_get_dll_name,
13131 * win32_CreateToolhelp32Snapshot): Delete.
13132 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13133 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13135 (handle_load_dll): Add function description.
13136 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13138 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13140 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13142 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13143 base address when calling win32_add_one_solib.
13144 (handle_load_dll): Delete local variable load_addr.
13145 Remove 0x1000 offset applied to DLL base address when calling
13146 win32_add_one_solib.
13147 (handle_unload_dll): Add comment.
13149 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13151 * win32-low.c (win32_add_all_dlls): Renames
13152 win32_ensure_ntdll_loaded. Rewrite function documentation.
13153 Adjust implementation to always load all DLLs.
13154 Add 0x1000 offset to DLL base address when calling
13155 win32_add_one_solib.
13156 (child_initialization_done): New static global.
13157 (do_initial_child_stuff): Set child_initialization_done to
13158 zero during child initialization, and 1 after. Replace call
13159 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13161 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13162 (handle_unload_dll): Add function documentation.
13163 (get_child_debug_event): Ignore load and unload DLL events
13164 during child initialization.
13166 2014-02-20 Doug Evans <dje@google.com>
13168 Remove global all_lwps.
13169 * inferiors.h (ptid_of): Move here from linux-low.h.
13170 (pid_of, lwpid_of): Ditto.
13171 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13172 parameter is a struct thread_info * now.
13173 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13174 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13175 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13177 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13178 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13179 * linux-arm-low.c (update_registers_callback): Update, "entry"
13180 parameter is a struct thread_info * now.
13181 Fetch lwpid from current_inferior directly.
13182 (arm_insert_point): Pass &all_threads to find_inferior instead of
13184 (arm_remove_point): Ditto.
13185 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13186 (arm_prepare_to_resume): Fetch pid from thread.
13187 (arm_read_description): Fetch lwpid from current_inferior directly.
13188 * linux-low.c (all_lwps): Delete.
13189 (delete_lwp): Delete call to remove_inferior.
13190 (handle_extended_wait): Fetch lwpid from thread.
13191 (add_lwp): Don't set lwp->entry.id. Remove call to
13192 add_inferior_to_list.
13193 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13194 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13195 (kill_one_lwp_callback): Ditto.
13196 (linux_kill): Don't dereference NULL pointer.
13197 Fetch ptid,lwpid from thread.
13198 (get_detach_signal): Fetch ptid from thread.
13199 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13200 Simplify call to regcache_invalidate_thread.
13201 (delete_lwp_callback): Update, "entry" parameter is a
13202 struct thread_info * now. Fetch pid from thread.
13203 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13204 (status_pending_p_callback): Update, "entry" parameter is a
13205 struct thread_info * now. Fetch ptid from thread.
13206 (find_lwp_pid): Update, "entry" parameter is a
13207 struct thread_info * now.
13208 (linux_wait_for_lwp): Fetch pid from thread.
13209 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13210 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13211 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13212 (dequeue_one_deferred_signal): Ditto.
13213 (cancel_breakpoint): Fetch ptid from current_inferior.
13214 (linux_wait_for_event): Pass &all_threads to find_inferior,
13215 not &all_lwps. Fetch ptid, lwpid from thread.
13216 (count_events_callback): Update, "entry" parameter is a
13217 struct thread_info * now.
13218 (select_singlestep_lwp_callback): Ditto.
13219 (select_event_lwp_callback): Ditto.
13220 (cancel_breakpoints_callback): Ditto.
13221 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13223 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13224 (unsuspend_one_lwp): Update, "entry" parameter is a
13225 struct thread_info * now.
13226 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13228 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13229 Fetch lwpid from thread, not lwp.
13230 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13231 Pass &all_threads to find_inferior, not &all_lwps.
13232 (send_sigstop): Fetch lwpid from thread, not lwp.
13233 (send_sigstop_callback): Update, "entry" parameter is a
13234 struct thread_info * now.
13235 (suspend_and_send_sigstop_callback): Ditto.
13236 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13237 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13238 struct thread_info * now.
13239 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13241 (lwp_running): Update, "entry" parameter is a
13242 struct thread_info * now.
13243 (stop_all_lwps): Fetch ptid from thread.
13244 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13245 (linux_resume_one_lwp): Fetch lwpid from thread.
13246 (linux_set_resume_request): Update, "entry" parameter is a
13247 struct thread_info * now. Fetch pid, lwpid from thread.
13248 (resume_status_pending_p): Update, "entry" parameter is a
13249 struct thread_info * now.
13250 (need_step_over_p): Ditto. Fetch lwpid from thread.
13251 (start_step_over): Fetch lwpid from thread.
13252 (linux_resume_one_thread): Update, "entry" parameter is a
13253 struct thread_info * now. Fetch lwpid from thread.
13254 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13255 (proceed_one_lwp): Update, "entry" parameter is a
13256 struct thread_info * now. Fetch lwpid from thread.
13257 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13258 struct thread_info * now.
13259 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13260 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13261 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13263 (regsets_store_inferior_registers): Ditto.
13264 (fetch_register, store_register): Ditto.
13265 (linux_read_memory, linux_write_memory): Ditto.
13266 (linux_request_interrupt): Ditto.
13267 (linux_read_auxv): Ditto.
13268 (linux_xfer_siginfo): Ditto.
13269 (linux_qxfer_spu): Ditto.
13270 (linux_qxfer_libraries_svr4): Ditto.
13271 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13272 moved to inferiors.h.
13274 (get_thread_lwp): Update.
13275 (struct lwp_info): Delete member "entry". Simplify comment for
13277 (all_lwps): Delete.
13278 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13279 current_inferior directly.
13280 (update_watch_registers_callback): Update, "entry" parameter is a
13281 struct thread_info * now. Fetch pid from thread.
13282 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13283 (mips_insert_point): Fetch lwpid from current_inferior.
13284 Pass &all_threads to find_inferior, not &all_lwps.
13285 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13286 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13288 (mips_stopped_data_address): Ditto.
13289 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13291 * linux-tile-low.c (tile_arch_setup): Ditto.
13292 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13293 (update_debug_registers_callback): Update, "entry" parameter is a
13294 struct thread_info * now. Fetch pid from thread.
13295 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13296 Pass &all_threads to find_inferior, not &all_lwps.
13297 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13298 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13299 Pass &all_threads to find_inferior, not &all_lwps.
13300 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13301 (i386_dr_low_get_status): Ditto.
13302 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13303 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13304 (x86_linux_read_description): Ditto.
13305 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13307 2014-02-20 Doug Evans <dje@google.com>
13309 * inferiors.c (get_first_inferior): Fix buglet.
13311 2014-02-19 Doug Evans <dje@google.com>
13313 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13314 * inferiors.c (add_thread): Change result type to struct thread_info *.
13315 All callers updated.
13316 (add_lwp): Call add_thread here instead of in callers.
13317 All callers updated.
13318 * linux-low.h (get_lwp_thread): Rewrite.
13319 (struct lwp_info): New member "thread".
13321 2014-02-19 Doug Evans <dje@google.com>
13323 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13324 All callers updated.
13326 2014-02-19 Doug Evans <dje@google.com>
13328 * inferiors.c (add_thread): Fix whitespace.
13330 2014-02-19 Doug Evans <dje@google.com>
13332 * dll.c (clear_dlls): Replace accessing list implemention details
13334 * gdbthread.h (get_first_thread): Declare.
13335 * inferiors.c (for_each_inferior_with_data): New function.
13336 (get_first_thread): New function.
13337 (find_thread_ptid): Simplify.
13338 (get_first_inferior): New function.
13339 (clear_list): Delete.
13340 (one_inferior_p): New function.
13341 (clear_inferior_list): New function.
13342 (clear_inferiors): Update.
13343 * inferiors.h (for_each_inferior_with_data): Declare.
13344 (clear_inferior_list): Declare.
13345 (one_inferior_p): Declare.
13346 (get_first_inferior): Declare.
13347 * linux-low.c (linux_wait_for_event): Replace accessing list
13348 implemention details with API function.
13349 * server.c (target_running): Ditto.
13350 (accumulate_file_name_length): New function.
13351 (emit_dll_description): New function.
13352 (handle_qxfer_libraries): Replace accessing list implemention
13353 details with API function.
13354 (handle_qxfer_threads_worker): New function.
13355 (handle_qxfer_threads_proper): Replace accessing list implemention
13356 details with API function.
13357 (handle_query): Ditto.
13358 (visit_actioned_threads_callback_ftype): New typedef.
13359 (visit_actioned_threads_data): New struct.
13360 (visit_actioned_threads): Rewrite to be find_inferior callback.
13361 (resume): Call find_inferior.
13362 (handle_status): Replace accessing list implemention
13363 details with API function.
13364 (process_serial_event): Replace accessing list implemention details
13366 * target.c (set_desired_inferior): Replace accessing list implemention
13367 details with API function.
13368 * tracepoint.c (same_process_p): New function.
13369 (gdb_agent_about_to_close): Replace accessing list implemention
13370 details with API function.
13371 * win32-low.c (child_delete_thread): Replace accessing list
13372 implemention details with API function.
13373 (match_dll_by_basename): New function.
13374 (dll_is_loaded_by_basename): New function.
13375 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13376 details call to dll_is_loaded_by_basename.
13378 2014-02-19 Doug Evans <dje@google.com>
13380 * dll.h (struct dll_info): Add comment.
13381 * gdbthread.h (struct thread_info): Add comment.
13382 (current_ptid): Simplify.
13383 * inferiors.c (add_process): Update.
13384 (remove_process): Update.
13385 * inferiors.h (struct process_info): Rename member "head" to "entry".
13386 * linux-low.c (delete_lwp): Update.
13388 (last_thread_of_process_p): Update.
13389 (kill_one_lwp_callback, linux_kill): Update.
13390 (status_pending_p_callback): Update.
13391 (wait_for_sigstop): Update. Simplify read of ptid.
13392 (start_step_over): Update.
13393 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13394 (get_lwp_thread): Update.
13395 (struct lwp_info): Rename member "head" to "entry".
13396 * regcache.h (inferior_list_entry): Delete.
13397 * server.c (kill_inferior_callback): Update.
13398 (detach_or_kill_inferior_callback): Update.
13399 (print_started_pid): Update.
13400 (print_attached_pid): Update.
13401 (process_serial_event): Simplify read of ptid.
13402 * thread-db.c (thread_db_create_event): Update.
13403 (thread_db_get_tls_address): Update.
13404 * win32-low.c (current_inferior_ptid): Simplify.
13406 2014-02-19 Tom Tromey <tromey@redhat.com>
13408 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13410 (target_supports_btrace): Update.
13412 2014-02-14 Yao Qi <yao@codesourcery.com>
13414 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13415 (rsp-low-ipa.o): New target.
13417 2014-02-12 Tom Tromey <tromey@redhat.com>
13419 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13420 convert_ascii_to_int.
13421 * regcache.c (registers_to_string): Likewise.
13422 * remote-utils.c (decode_M_packet): Likewise.
13423 * server.c (process_serial_event): Likewise.
13425 2014-02-12 Tom Tromey <tromey@redhat.com>
13427 * server.c (handle_query, handle_v_run): Use hex2bin, not
13429 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13431 2014-02-12 Tom Tromey <tromey@redhat.com>
13433 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13434 convert_int_to_ascii.
13435 * regcache.c (registers_to_string, collect_register_as_string):
13437 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13439 * server.c (process_serial_event): Likewise.
13440 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13441 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13443 2014-02-12 Tom Tromey <tromey@redhat.com>
13445 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13446 bin2hex, not hexify.
13447 * tracepoint.c (cmd_qtstatus): Likewise.
13449 2014-02-12 Tom Tromey <tromey@redhat.com>
13451 * remote-utils.c (monitor_output): Pass explicit length to
13454 2014-02-12 Tom Tromey <tromey@redhat.com>
13456 * tracepoint.c: Include rsp-low.h.
13457 * server.c: Include rsp-low.h.
13458 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13459 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13461 * remote-utils.c: Include rsp-low.h.
13462 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13463 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13464 (convert_int_to_ascii, convert_ascii_to_int): Move to
13466 * regcache.c: Include rsp-low.h.
13467 * ax.c: Include rsp-low.h.
13468 * Makefile.in (SFILES): Add common/rsp-low.c.
13469 (OBS): Add rsp-low.o.
13470 (rsp-low.o): New target.
13472 2014-02-12 Tom Tromey <tromey@redhat.com>
13474 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13475 Include print-utils.h.
13476 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13477 (plongest, thirty_two, phex_nz): Remove.
13478 * Makefile.in (SFILES): Add common/print-utils.c.
13479 (OBS): Add print-utils.o.
13480 (print-utils-ipa.o): New target.
13481 (print-utils.o): New target.
13482 (IPA_OBJS): Add print-utils-ipa.o.
13484 2014-02-06 Tom Tromey <tromey@redhat.com>
13486 * Makefile.in (SFILES): Fix indentation.
13488 2014-02-05 Doug Evans <dje@google.com>
13490 * linux-low.c (linux_wait_for_event): Improve comment.
13491 (linux_wait_1): Keep current_inferior in sync with event_child.
13493 2014-01-22 Doug Evans <dje@google.com>
13495 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13497 2014-01-22 Doug Evans <dje@google.com>
13499 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13500 * configure: Regenerate.
13501 * config.in: Regenerate.
13502 * Makefile.in (SFILES): Add debug.c.
13503 (OBS): Add debug.o.
13504 * debug.c: New file.
13505 * debug.h: New file.
13506 * linux-aarch64-low.c (*): Update all debugging printfs to use
13507 debug_printf instead of fprintf.
13508 * linux-arm-low.c (*): Ditto.
13509 * linux-cris-low.c (*): Ditto.
13510 * linux-crisv32-low.c (*): Ditto.
13511 * linux-m32r-low.c (*): Ditto.
13512 * linux-sparc-low.c (*): Ditto.
13513 * linux-x86.c (*): Ditto.
13514 * linux-low.c (*): Ditto.
13515 (linux_wait_1): Add calls to debug_enter, debug_exit.
13516 (linux_wait): Remove redundant debugging printf.
13517 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13518 (linux_resume, unstop_all_lwps): Ditto.
13519 * mem-break.c (*): Update all debugging printfs to use
13520 debug_printf instead of fprintf.
13521 * remote-utils.c (*): Ditto.
13522 * thread-db.c (*): Ditto.
13523 * server.c #include <ctype.h>, "gdb_vecs.h".
13524 (debug_threads): Moved to debug.c.
13525 (*): Update all debugging printfs to use debug_printf instead of
13527 (start_inferior): Replace call to fflush with call to debug_flush.
13528 (monitor_show_help): Mention set debug-format.
13529 (parse_debug_format_options): New function.
13530 (handle_monitor_command): Handle "monitor set debug-format".
13531 (gdbserver_usage): Mention --debug-format.
13532 (main): Parse --debug-format.
13533 * server.h (debug_threads): Declaration moved to debug.h.
13534 #include "debug.h".
13535 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13536 trace_debug_1 that uses debug_printf.
13537 (tracepoint_look_up_symbols): Update all debugging printfs to use
13538 debug_printf instead of fprintf.
13540 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13542 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13545 2014-01-17 Pedro Alves <palves@redhat.com>
13548 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13549 defined after including gdb_proc_service.h.
13551 2014-01-16 Doug Evans <dje@google.com>
13553 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13554 (match_dll): Use it.
13556 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13558 * target.h (target_ops) <read_btrace>: Change parameters and
13559 return type to allow error reporting.
13560 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13561 trace reading errors on.
13562 * linux-low.c (linux_low_read_btrace): Pass trace reading
13564 (linux_low_disable_btrace): New.
13566 2014-01-15 Doug Evans <dje@google.com>
13568 * inferiors.c (thread_id_to_gdb_id): Delete.
13569 * inferiors.h (thread_id_to_gdb_id): Delete.
13571 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13573 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13574 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13577 2014-01-08 Pedro Alves <palves@redhat.com>
13579 * server.c (handle_status): Don't discard previous queued stop
13580 replies or thread's pending status here.
13581 (main) <disconnection>: Do it here instead.
13583 2014-01-08 Pedro Alves <palves@redhat.com>
13585 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13586 * server.c (visit_actioned_threads, handle_pending_status): New
13588 (handle_v_cont): Factor out parts to ...
13589 (resume): ... this new function. If in all-stop, and a thread
13590 being resumed has a pending status, report it without actually
13592 (myresume): Adjust to use the new 'resume' function.
13593 (clear_pending_status_callback, set_pending_status_callback)
13594 (find_status_pending_thread_callback): New functions.
13595 (handle_status): Handle the case of multiple threads having
13596 interesting statuses to report. Report threads' real last signal
13597 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13598 with an interesting thread to report the status for, instead of
13599 always reporting the status of the first thread.
13601 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13603 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13604 * gdbreplay.c (gdbreplay_version): Likewise.
13606 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13608 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13609 iov.iov_len with the real length in use.
13611 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13613 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13614 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13615 for all targets that use win32-low.c.
13616 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13617 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13619 2013-12-13 Pedro Alves <palves@redhat.com>
13621 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13622 if equal to TARGET_WAITKIND_LOADED.
13623 * win32-low.c (cached_status): New static global.
13624 (win32_wait): Add declaration.
13625 (do_initial_child_stuff): Flush all initial pending debug events
13626 up to the initial breakpoint.
13627 (win32_wait): If CACHED_STATUS was set, return that instead
13628 of doing a real wait. Remove the code resuming the execution
13629 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13630 during the initial phase. Also remove the code changing
13631 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13632 TARGET_WAITKIND_STOPPED.
13634 2013-12-11 Yao Qi <yao@codesourcery.com>
13636 * notif.c (handle_notif_ack): Return 0 if no notification
13639 2013-11-20 Doug Evans <dje@google.com>
13641 * linux-low.c (linux_set_resume_request): Fix comment.
13643 2013-11-20 Doug Evans <dje@google.com>
13645 * linux-low.c (resume_status_pending_p): Tweak comment.
13647 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13649 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13650 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13651 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13652 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13653 (srv_amd64_regobj): Add amd64-mpx.o.
13654 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13655 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13656 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13657 * i387-fp.c (num_pl_bnd_register) Added constant.
13658 (num_pl_bnd_cfg_registers) Added constant.
13659 (struct i387_xsave) Added reserved area and MPX fields.
13660 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13661 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13663 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13664 (init_registers_amd64_mpx_linux): Declare new function.
13665 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13666 (x86_64_regmap): Add MPX registers.
13667 (x86_linux_read_description): Add MPX case.
13668 (initialize_low_arch): Initialize MPX targets.
13670 2013-11-18 Tom Tromey <tromey@redhat.com>
13672 * configure: Rebuild.
13673 * configure.ac: Don't check for stdlib.h.
13674 * gdbreplay.c: Unconditionally include stdlib.h.
13676 2013-11-18 Tom Tromey <tromey@redhat.com>
13678 * config.in: Rebuild.
13679 * configure: Rebuild.
13680 * configure.ac: Don't use AC_HEADER_DIRENT.
13682 2013-11-18 Tom Tromey <tromey@redhat.com>
13684 * server.h: Don't check HAVE_STRING_H.
13685 * gdbreplay.c: Don't check HAVE_STRING_H.
13686 * configure: Rebuild.
13688 2013-11-18 Tom Tromey <tromey@redhat.com>
13690 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13693 2013-11-08 Tom Tromey <tromey@redhat.com>
13695 * configure, config.in: Rebuild.
13696 * configure.ac: Remove unused configury.
13698 2013-11-08 Tom Tromey <tromey@redhat.com>
13700 * acinclude.m4: Include common.m4, codeset.m4.
13701 * configure, config.in: Rebuild.
13702 * configure.ac: Use GDB_AC_COMMON.
13704 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13706 * linux-s390-low.c (HWCAP_S390_TE): New define.
13707 (s390_arch_setup): Consider the TE field in the HWCAP for
13708 determining 'have_regset_tdb'.
13710 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13713 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13716 2013-10-02 Pedro Alves <palves@redhat.com>
13718 * server.c (process_serial_event): Don't output "GDBserver
13719 exiting" if GDB is connected through stdio.
13720 * target.c (mywait): Likewise, be silent if GDB is connected
13723 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13725 * lynx-low.c (lynx_add_threads_after_attach): New function.
13726 (lynx_attach): Remove call to add_thread. Add call to
13727 lynx_add_threads_after_attach instead.
13729 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13731 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13732 * config.in, configure: Regenerated.
13734 2013-09-18 Yao Qi <yao@codesourcery.com>
13737 * server.c (start_inferior): Clear 'resume_info'.
13739 2013-09-16 Jiong Wang <jiwang@tilera.com>
13741 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13744 2013-09-16 Jiong Wang <jiwang@tilera.com>
13746 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13747 linux-tile-low.o to srv_tgtobj.
13749 2013-09-16 Will Newton <will.newton@linaro.org>
13751 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13754 2013-09-06 Pedro Alves <palves@redhat.com>
13756 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13757 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13758 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13759 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13760 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13761 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13763 2013-09-06 Pedro Alves <palves@redhat.com>
13765 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13766 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13768 2013-09-06 Pedro Alves <palves@redhat.com>
13770 * linux-amd64-ipa.c: Include tracepoint.h.
13771 * linux-i386-ipa.c: Include tracepoint.h.
13773 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13775 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13776 (ps_get_thread_area): New function.
13778 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13780 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13781 (initialize_low_arch): Call init_registers_crisv32 rather than
13782 init_register_crisv32.
13784 2013-09-05 Pedro Alves <palves@redhat.com>
13786 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13788 * hostio.h: ... this new file.
13789 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13790 win32-low.c: Include hostio.h.
13792 2013-09-05 Pedro Alves <palves@redhat.com>
13794 * server.h (gdb_client_data, handler_func, callback_handler_func)
13795 (delete_file_handler, add_file_handler, append_callback_event)
13796 (delete_callback_event, start_event_loop, initialize_event_loop):
13797 Move to event-loop.h and include it.
13798 * event-loop.h: New file.
13800 2013-09-05 Pedro Alves <palves@redhat.com>
13802 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13803 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13804 (loaded_dll, unloaded_dll): Move to ...
13805 * dll.h: ... this new file.
13806 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13808 2013-09-05 Pedro Alves <palves@redhat.com>
13810 * server.h (current_process, get_thread_process, all_processes)
13811 (add_inferior_to_list, for_each_inferior, current_inferior)
13812 (remove_inferior, add_process, remove_process, find_process_pid)
13813 (have_started_inferiors_p, have_attached_inferiors_p)
13814 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13815 (clear_inferiors, find_inferior, find_inferior_id)
13816 (inferior_target_data, set_inferior_target_data)
13817 (inferior_regcache_data, set_inferior_regcache_data): Move to
13818 inferiors.h, and include it.
13819 * inferiors.h: New file.
13821 2013-09-05 Pedro Alves <palves@redhat.com>
13823 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13827 2013-09-05 Pedro Alves <palves@redhat.com>
13829 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13831 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13832 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13833 (handle_tracepoint_general_set, handle_tracepoint_query)
13834 (tracepoint_finished_step, tracepoint_was_hit)
13835 (release_while_stepping_state_list, current_traceframe)
13836 (in_readonly_region, traceframe_read_mem)
13837 (fetch_traceframe_registers, traceframe_read_sdata)
13838 (traceframe_read_info, struct fast_tpoint_collect_status)
13839 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13840 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13841 (supply_fast_tracepoint_registers)
13842 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13843 (ipa_tdesc, claim_trampoline_space)
13844 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13845 (agent_mem_read, agent_get_trace_state_variable_value)
13846 (agent_set_trace_state_variable_value, agent_tsv_read)
13847 (agent_mem_read_string, get_raw_reg_func_addr)
13848 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13849 * tracepoint.h: ... this new file.
13851 2013-09-05 Pedro Alves <palves@redhat.com>
13853 * server.h (perror_with_name, error, fatal, warning, paddress)
13854 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13856 * utils.h: New file.
13858 2013-09-05 Pedro Alves <palves@redhat.com>
13860 * server.h (remote_debug, noack_mode, transport_is_reliable)
13861 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13862 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13863 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13864 (write_enn, initialize_async_io, enable_async_io)
13865 (disable_async_io, check_remote_input_interrupt_request)
13866 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13867 (dead_thread_notify, prepare_resume_reply)
13868 (decode_address_to_semicolon, decode_address, decode_m_packet)
13869 (decode_M_packet, decode_X_packet, decode_xfer_write)
13870 (decode_search_memory_packet, unhexify, hexify)
13871 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13872 (look_up_one_symbol, relocate_instruction)
13873 (monitor_output): Move to remote-utils.h, and include it.
13874 * remote-utils.h: New file.
13876 2013-09-05 Pedro Alves <palves@redhat.com>
13878 * server.h (_): Delete.
13880 2013-09-02 Pedro Alves <palves@redhat.com>
13882 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13883 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13885 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13887 2013-09-02 Pierre Muller <muller@sourceware.org>
13889 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13890 or WriteProcessMemory complete successfully and handle
13891 ERROR_PARTIAL_COPY error.
13893 2013-09-02 Pedro Alves <palves@redhat.com>
13895 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13896 error instead of EIO.
13898 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13901 * linux-low.c: Include filestuff.h.
13902 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13903 * lynx-low.c: Include filestuff.h.
13904 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13905 * server.c: Include filestuff.h.
13906 (main): Call notice_open_fds.
13907 * spu-low.c: Include filestuff.h.
13908 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13910 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13912 * Makefile.in: Explain why ../target and ../nat are not
13913 listed as include file search paths.
13914 (linux-waitpid.o): New object file rule.
13915 * configure.srv (srv_native_linux_obj): New variable.
13916 Replace all occurrences of linux native object files with
13917 $srv_native_linux_obj.
13918 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13919 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13920 (linux_enable_event_reporting): Remove declaration.
13921 (my_waitpid): Moved to common/linux-waitpid.c.
13922 (linux_wait_for_event): Pass ptid when calling
13923 linux_enable_event_reporting.
13924 (linux_supports_tracefork_flag): Remove.
13925 (linux_enable_event_reporting): Likewise.
13926 (linux_tracefork_grandchild): Remove.
13927 (STACK_SIZE): Moved to common/linux-ptrace.c.
13928 (linux_tracefork_child): Remove.
13929 (linux_test_for_tracefork): Remove.
13930 (linux_look_up_symbols): Call linux_supports_traceclone.
13931 (initialize_low): Remove call to linux_test_for_tracefork.
13932 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13933 common/linux-ptrace.h.
13934 (PTRACE_TYPE_ARG4): Likewise.
13935 Include linux-ptrace.h.
13937 2013-08-21 Pedro Alves <palves@redhat.com>
13939 * config.in: Renegerate.
13941 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13943 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13944 (SFILES): Remove $(srcdir)/common/target-common.c and
13945 add $(srcdir)/target/waitstatus.c.
13946 (OBS): Remove target-common.o and add waitstatus.o.
13947 (server_h): Remove $(srcdir)/../common/target-common.h and
13948 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13949 and $(srcdir)/../target/waitstatus.h.
13950 (target-common.o): Remove.
13951 (waitstatus.o): New target object file.
13952 * target.h: Do not include target-common.h and
13953 include target/resume.h, target/wait.h and
13954 target/waitstatus.h.
13956 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13958 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13959 to PTRACE_TYPE_ARG3.
13960 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13961 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13963 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13964 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13966 2013-07-27 Jie Zhang <jie@codesourcery.com>
13967 Daniel Jacobowitz <dan@codesourcery.com>
13968 Yao Qi <yao@codesourcery.com>
13970 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
13971 (mips-linux-watch.o): New rule.
13972 (mips_linux_watch_h): New variable.
13973 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
13975 * linux-mips-low.c: Include mips-linux-watch.h.
13976 (struct arch_process_info, struct arch_lwp_info): New.
13977 (update_watch_registers_callback): New function.
13978 (mips_linux_new_process, mips_linux_new_thread) New functions.
13979 (mips_linux_prepare_to_resume, mips_insert_point): New
13981 (mips_remove_point, mips_stopped_by_watchpoint): New
13983 (rsp_bp_type_to_target_hw_bp_type): New function.
13984 (mips_stopped_data_address): New function.
13985 (the_low_target): Add watchpoint support functions.
13987 2013-07-27 Yao Qi <yao@codesourcery.com>
13989 * i386-low.c: Include break-common.h.
13990 (enum target_hw_bp_type): Remove.
13992 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
13994 * Makefile.in (SFILES): /common/target-common.c.
13995 (OBS): Add target-common.o.
13996 (server_h): Add $(srcdir)/../common/target-common.h.
13997 (target-common.o): New target.
13998 * server.c (queue_stop_reply_callback): Free
13999 status string after use.
14000 * target.c (target_waitstatus_to_string): Remove.
14001 * target.h: Include target-common.h.
14002 (resume_kind): Likewise.
14003 (target_waitkind): Likewise.
14004 (target_waitstatus): Likewise.
14005 (TARGET_WNOHANG): Likewise.
14007 2013-07-04 Yao Qi <yao@codesourcery.com>
14009 * Makefile.in (host_alias): Use @host_noncanonical@.
14010 (target_alias): Use @target_noncanonical@.
14011 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14012 ACX_NONCANONICAL_HOST.
14013 * configure: Regenerated.
14016 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14018 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14019 * configure: Rebuild.
14020 * Makefile.in (version_host, version_target): Get from configure.
14021 (version.c): Use $(version_host) and $(version_target).
14023 2013-07-03 Pedro Alves <palves@redhat.com>
14025 * Makefile.in (config.status): Depend on development.sh.
14026 * acinclude.m4: Include libmcheck.m4.
14027 * configure: Regenerate.
14029 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14031 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14032 attribute inside the parentheses.
14033 (winapi_DebugSetProcessKillOnExit): Ditto.
14034 (winapi_DebugBreakProcess): Ditto.
14035 (winapi_GenerateConsoleCtrlEvent): Ditto.
14037 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14039 * notif.h (notif_event): Add a dummy member to avoid compiler
14042 2013-07-01 Pedro Alves <palves@redhat.com>
14044 * hostio.c (HOSTIO_PATH_MAX): Define.
14045 (require_filename, handle_open, handle_unlink, handle_readlink):
14048 2013-07-01 Pedro Alves <palves@redhat.com>
14050 * server.h: Include "pathmax.h".
14051 * linux-low.c: Don't include sys/param.h.
14052 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14054 * win32-low.c: Don't include sys/param.h.
14055 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14057 2013-07-01 Pedro Alves <palves@redhat.com>
14059 * event-loop.c: Don't check HAVE_UNISTD_H before including
14061 * gdbreplay.c: Likewise.
14062 * remote-utils.c: Likewise.
14063 * server.c: Likewise.
14064 * configure.ac: Don't check for unistd.h.
14065 * configure: Regenerate.
14067 2013-06-28 Tom Tromey <tromey@redhat.com>
14069 * Makefile.in (version.c): Use version.in, not
14072 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14074 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14075 * configure: Rebuild.
14076 * Makefile.in (version_host, version_target): Get from configure.
14077 (version.c): Use $(version_host) and $(version_target).
14079 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14081 Fix trace-status to output user name without trailing colon.
14082 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14084 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14086 Fix trace-status to output proper start-time and stop-time.
14087 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14088 output start time and stop time in hex as gdb expects.
14090 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14092 * tracepoint.c (build_traceframe_info_xml): Output trace state
14093 variables present in the trace buffer.
14095 2013-06-24 Tom Tromey <tromey@redhat.com>
14097 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14099 (version.o): Remove.
14100 * gdbreplay.c: Include version.h.
14101 (version, host_name): Don't declare.
14102 * server.h: Include version.h.
14103 (version, host_name): Don't declare.
14105 2013-06-12 Pedro Alves <palves@redhat.com>
14107 * linux-x86-low.c (linux_is_elf64): Delete global.
14108 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14109 with local linux_pid_exe_is_elf_64_file use.
14111 2013-06-11 Pedro Alves <palves@redhat.com>
14113 * linux-low.c (regset_disabled, disable_regset): New functions.
14114 (regsets_fetch_inferior_registers)
14115 (regsets_store_inferior_registers): Use them.
14116 (initialize_regsets_info); Don't allocate the disabled_regsets
14118 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14121 2013-06-11 Pedro Alves <palves@redhat.com>
14123 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14126 2013-06-11 Pedro Alves <palves@redhat.com>
14128 * linux-x86-low.c (initialize_low_arch): Call
14129 init_registers_x32_avx_linux.
14131 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14133 Fix compatibility with Android Bionic.
14134 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14137 2013-06-07 Pedro Alves <palves@redhat.com>
14140 * Makefile.in (OBS): Add tdesc.o.
14141 (IPA_OBJS): Add tdesc-ipa.o.
14142 (tdesc-ipa.o): New rule.
14143 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14145 * linux-low.c (new_inferior): Delete.
14146 (disabled_regsets, num_regsets): Delete.
14147 (linux_add_process): Adjust to set the new per-process
14149 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14150 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14151 was a stop. When calling arch_setup, switch the current inferior
14152 to the thread that got an event.
14153 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14154 (regsets_fetch_inferior_registers)
14155 (regsets_store_inferior_registers): New regsets_info parameter.
14157 (linux_register_in_regsets): New regs_info parameter. Adjust to
14159 (register_addr, fetch_register, store_register): New usrregs_info
14160 parameter. Adjust to use it.
14161 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14162 parameter regs_info. Adjust to use it.
14163 (linux_fetch_registers): Get the current inferior's regs_info, and
14165 (linux_store_registers): Ditto.
14166 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14167 (initialize_low): Don't initialize the target_regsets here. Call
14168 initialize_low_arch.
14169 * linux-low.h (target_regsets): Delete declaration.
14170 (struct regsets_info): New.
14171 (struct usrregs_info): New.
14172 (struct regs_info): New.
14173 (struct process_info_private) <new_inferior>: New field.
14174 (struct linux_target_ops): Delete the num_regs, regmap, and
14175 regset_bitmap fields. New field regs_info.
14176 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14177 * i387-fp.c (num_xmm_registers): Delete.
14178 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14179 calls to new interface.
14180 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14181 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14182 Infer the number of xmm registers from the regcache's target
14184 * i387-fp.h (num_xmm_registers): Delete.
14185 * inferiors.c (add_thread): Don't install the thread's regcache
14187 * proc-service.c (gregset_info): Fetch the current inferior's
14188 regs_info. Adjust to use it.
14189 * regcache.c: Include tdesc.h.
14190 (register_bytes, reg_defs, num_registers)
14191 (gdbserver_expedite_regs): Delete.
14192 (get_thread_regcache): If the thread doesn't have a regcache yet,
14193 create one, instead of aborting gdbserver.
14194 (regcache_invalidate_one): Rename to ...
14195 (regcache_invalidate_thread): ... this.
14196 (regcache_invalidate_one): New.
14197 (regcache_invalidate): Only invalidate registers of the current
14199 (init_register_cache): Add target_desc parameter, and use it.
14200 (new_register_cache): Ditto. Assert the target description has a
14201 non zero registers_size.
14202 (regcache_cpy): Add assertions. Adjust.
14203 (realloc_register_cache, set_register_cache): Delete.
14204 (registers_to_string, registers_from_string): Adjust.
14205 (find_register_by_name, find_regno, find_register_by_number)
14206 (register_cache_size): Add target_desc parameter, and use it.
14207 (free_register_cache_thread, free_register_cache_thread_one)
14208 (regcache_release, register_cache_size): New.
14209 (register_size): Add target_desc parameter, and use it.
14210 (register_data, supply_register, supply_register_zeroed)
14211 (supply_regblock, supply_register_by_name, collect_register)
14212 (collect_register_as_string, collect_register_by_name): Adjust.
14213 * regcache.h (struct target_desc): Forward declare.
14214 (struct regcache) <tdesc>: New field.
14215 (init_register_cache, new_register_cache): Add target_desc
14217 (regcache_invalidate_thread): Declare.
14218 (regcache_invalidate_one): Delete declaration.
14219 (regcache_release): Declare.
14220 (find_register_by_number, register_cache_size, register_size)
14221 (find_regno): Add target_desc parameter.
14222 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14224 * remote-utils.c: Include tdesc.h.
14225 (outreg, prepare_resume_reply): Adjust.
14226 * server.c: Include tdesc.h.
14227 (gdbserver_xmltarget): Delete declaration.
14228 (get_features_xml, process_serial_event): Adjust.
14229 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14231 (struct process_info) <tdesc>: New field.
14232 (ipa_tdesc): Declare.
14233 * tdesc.c: New file.
14234 * tdesc.h: New file.
14235 * tracepoint.c: Include tdesc.h.
14236 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14237 (get_context_regcache): Adjust to pass ipa_tdesc down.
14238 (do_action_at_tracepoint): Adjust to get the register cache size
14239 from the context regcache's description.
14240 (traceframe_walk_blocks): Adjust to get the register cache size
14241 from the current trace frame's description.
14242 (traceframe_get_pc): Adjust to get current trace frame's
14243 description and pass it down.
14244 (gdb_collect): Adjust to get the register cache size from the
14246 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14247 (gdbserver_xmltarget): Delete.
14248 (initialize_low_tracepoint): Set the ipa's target description.
14249 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14250 (initialize_low_tracepoint): Set the ipa's target description.
14251 * linux-x86-low.c: Include tdesc.h.
14252 [__x86_64__] (is_64bit_tdesc): New.
14253 (ps_get_thread_area, x86_get_thread_area): Use it.
14254 (i386_cannot_store_register): Rename to ...
14255 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14256 (i386_cannot_fetch_register): Rename to ...
14257 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14258 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14260 (target_regsets): Rename to ...
14261 (x86_regsets): ... this.
14262 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14264 (x86_siginfo_fixup): Use is_64bit_tdesc.
14265 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14266 (tdesc_x32_avx_linux, tdesc_x32_linux)
14267 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14269 (x86_linux_update_xmltarget): Delete.
14270 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14271 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14272 (AMD64_LINUX_USER64_CS): New.
14273 (x86_linux_read_description): New, based on
14274 x86_linux_update_xmltarget.
14275 (same_process_callback): New.
14276 (x86_arch_setup_process_callback): New.
14277 (x86_linux_update_xmltarget): New.
14278 (x86_regsets_info): New.
14279 (amd64_linux_regs_info): New.
14280 (i386_linux_usrregs_info): New.
14281 (i386_linux_regs_info): New.
14282 (x86_linux_regs_info): New.
14283 (x86_arch_setup): Reimplement.
14284 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14285 (x86_emit_ops): Ditto.
14286 (the_low_target): Adjust. Install x86_linux_regs_info,
14287 x86_cannot_fetch_register, and x86_cannot_store_register.
14288 (initialize_low_arch): New.
14289 * linux-ia64-low.c (tdesc_ia64): Declare.
14290 (ia64_fetch_register): Adjust.
14291 (ia64_usrregs_info, regs_info): New globals.
14292 (ia64_regs_info): New function.
14293 (the_low_target): Adjust.
14294 (initialize_low_arch): New function.
14295 * linux-sparc-low.c (tdesc_sparc64): Declare.
14296 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14298 (sparc_arch_setup): New function.
14299 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14300 (the_low_target): Adjust.
14301 (initialize_low_arch): New function.
14302 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14303 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14304 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14305 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14306 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14307 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14308 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14309 (tdesc_powerpc_isa205_vsx64l): Declare.
14310 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14311 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14312 (ppc_set_pc, ppc_get_hwcap): Adjust.
14313 (ppc_usrregs_info): Forward declare.
14314 (!__powerpc64__) ppc_regmap_adjusted: New global.
14315 (ppc_arch_setup): Adjust to the current process'es target
14317 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14318 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14319 (ppc_store_evrregset): Adjust.
14320 (target_regsets): Rename to ...
14321 (ppc_regsets): ... this, and make static.
14322 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14323 (ppc_regs_info): New function.
14324 (the_low_target): Adjust.
14325 (initialize_low_arch): New function.
14326 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14327 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14328 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14329 (tdesc_s390x_linux64v2): Declare.
14330 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14331 (s390_fill_gregset, s390_store_last_break): Adjust.
14332 (target_regsets): Rename to ...
14333 (s390_regsets): ... this, and make static.
14334 (s390_get_pc, s390_set_pc): Adjust.
14335 (s390_get_hwcap): New target_desc parameter, and use it.
14336 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14337 (s390_arch_setup): Adjust to set the current process'es target
14338 description. Don't adjust the regmap.
14339 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14340 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14341 (regs_info_3264): New globals.
14342 (s390_regs_info): New function.
14343 (the_low_target): Adjust.
14344 (initialize_low_arch): New function.
14345 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14346 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14347 [__mips64] (init_registers_mips_linux)
14348 (init_registers_mips_dsp_linux): Delete defines.
14349 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14350 (have_dsp): New global.
14351 (mips_read_description): New, based on mips_arch_setup.
14352 (mips_arch_setup): Reimplement.
14353 (get_usrregs_info): New function.
14354 (mips_cannot_fetch_register, mips_cannot_store_register)
14355 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14356 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14357 (target_regsets): Rename to ...
14358 (mips_regsets): ... this, and make static.
14359 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14360 (dsp_regs_info, regs_info): New globals.
14361 (mips_regs_info): New function.
14362 (the_low_target): Adjust.
14363 (initialize_low_arch): New function.
14364 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14365 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14367 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14368 (arm_read_description): New, with bits factored from
14370 (arm_arch_setup): Reimplement.
14371 (target_regsets): Rename to ...
14372 (arm_regsets): ... this, and make static.
14373 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14374 (arm_regs_info): New function.
14375 (the_low_target): Adjust.
14376 (initialize_low_arch): New function.
14377 * linux-m68k-low.c (tdesc_m68k): Declare.
14378 (target_regsets): Rename to ...
14379 (m68k_regsets): ... this, and make static.
14380 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14381 (m68k_regs_info): New function.
14382 (m68k_arch_setup): New function.
14383 (the_low_target): Adjust.
14384 (initialize_low_arch): New function.
14385 * linux-sh-low.c (tdesc_sharch): Declare.
14386 (target_regsets): Rename to ...
14387 (sh_regsets): ... this, and make static.
14388 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14389 (sh_regs_info, sh_arch_setup): New functions.
14390 (the_low_target): Adjust.
14391 (initialize_low_arch): New function.
14392 * linux-bfin-low.c (tdesc_bfin): Declare.
14393 (bfin_arch_setup): New function.
14394 (bfin_usrregs_info, regs_info): New globals.
14395 (bfin_regs_info): New function.
14396 (the_low_target): Adjust.
14397 (initialize_low_arch): New function.
14398 * linux-cris-low.c (tdesc_cris): Declare.
14399 (cris_arch_setup): New function.
14400 (cris_usrregs_info, regs_info): New globals.
14401 (cris_regs_info): New function.
14402 (the_low_target): Adjust.
14403 (initialize_low_arch): New function.
14404 * linux-cris-low.c (tdesc_crisv32): Declare.
14405 (cris_arch_setup): New function.
14406 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14407 (cris_regs_info): New function.
14408 (the_low_target): Adjust.
14409 (initialize_low_arch): New function.
14410 * linux-m32r-low.c (tdesc_m32r): Declare.
14411 (m32r_arch_setup): New function.
14412 (m32r_usrregs_info, regs_info): New globals.
14413 (m32r_regs_info): Adjust.
14414 (initialize_low_arch): New function.
14415 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14416 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14417 (tic6x_usrregs_info): Forward declare.
14418 (tic6x_read_description): New function, based on ...
14419 (tic6x_arch_setup): ... this. Reimplement.
14420 (target_regsets): Rename to ...
14421 (tic6x_regsets): ... this, and make static.
14422 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14423 (tic6x_regs_info): New function.
14424 (the_low_target): Adjust.
14425 (initialize_low_arch): New function.
14426 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14427 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14428 (target_regsets): Rename to ...
14429 (xtensa_regsets): ... this, and make static.
14430 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14432 (xtensa_arch_setup, xtensa_regs_info): New functions.
14433 (the_low_target): Adjust.
14434 (initialize_low_arch): New function.
14435 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14436 (nios2_arch_setup): Set the current process'es tdesc.
14437 (target_regsets): Rename to ...
14438 (nios2_regsets): ... this.
14439 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14440 (nios2_regs_info): New function.
14441 (the_low_target): Adjust.
14442 (initialize_low_arch): New function.
14443 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14444 (aarch64_arch_setup): Set the current process'es tdesc.
14445 (target_regsets): Rename to ...
14446 (aarch64_regsets): ... this.
14447 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14448 (aarch64_regs_info): New function.
14449 (the_low_target): Adjust.
14450 (initialize_low_arch): New function.
14451 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14453 (target_regsets): Rename to ...
14454 (tile_regsets): ... this.
14455 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14456 (tile_regs_info): New function.
14457 (tile_arch_setup): Set the current process'es tdesc.
14458 (the_low_target): Adjust.
14459 (initialize_low_arch): New function.
14460 * spu-low.c (tdesc_spu): Declare.
14461 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14462 * win32-arm-low.c (tdesc_arm): Declare.
14463 (arm_arch_setup): New function.
14464 (the_low_target): Install arm_arch_setup instead of
14465 init_registers_arm.
14466 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14467 (init_windows_x86): Rename to ...
14468 (i386_arch_setup): ... this. Set `win32_tdesc'.
14469 (the_low_target): Adjust.
14470 * win32-low.c (win32_tdesc): New global.
14471 (child_add_thread): Don't create the thread cache here.
14472 (do_initial_child_stuff): Set the new process'es tdesc.
14473 * win32-low.h (struct target_desc): Forward declare.
14474 (win32_tdesc): Declare.
14475 * lynx-i386-low.c (tdesc_i386): Declare global.
14476 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14477 * lynx-low.c (lynx_tdesc): New global.
14478 (lynx_add_process): Set the new process'es tdesc.
14479 * lynx-low.h (struct target_desc): Forward declare.
14480 (lynx_tdesc): Declare global.
14481 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14482 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14483 * nto-low.c (nto_tdesc): New global.
14484 (do_attach): Set the new process'es tdesc.
14485 * nto-low.h (struct target_desc): Forward declare.
14486 (nto_tdesc): Declare.
14487 * nto-x86-low.c (tdesc_i386): Declare.
14488 (nto_x86_arch_setup): Set `nto_tdesc'.
14490 2013-06-04 Gary Benson <gbenson@redhat.com>
14492 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14493 to qSupported response when appropriate.
14494 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14495 with nonzero-length annex.
14496 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14497 arguments supplied in annex.
14499 2013-05-31 Doug Evans <dje@google.com>
14502 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14503 64 bits in 64-cross-32 environment.
14505 2013-05-28 Pedro Alves <palves@redhat.com>
14507 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14508 (aarch64-without-fpu.c): Delete rule.
14509 * configure.srv (aarch64*-*-linux*): Remove references to
14510 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14511 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14514 2013-05-24 Pedro Alves <palves@redhat.com>
14516 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14517 instead of strchr/decode_address. Error if the range isn't split
14518 with a ','. Don't assume there's be a ':' in the action.
14520 2013-05-23 Yao Qi <yao@codesourcery.com>
14521 Pedro Alves <palves@redhat.com>
14523 * linux-low.c (lwp_in_step_range): New function.
14524 (linux_wait_1): If the thread was range stepping and stopped
14525 outside the stepping range, report the stop to GDB. Otherwise,
14526 continue stepping. Add range stepping debug output.
14527 (linux_set_resume_request): Copy the step range from the resume
14528 request to the lwp.
14529 (linux_supports_range_stepping): New.
14530 (linux_target_ops) <supports_range_stepping>: Set to
14531 linux_supports_range_stepping.
14532 * linux-low.h (struct linux_target_ops)
14533 <supports_range_stepping>: New field.
14534 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14535 * linux-x86-low.c (x86_supports_range_stepping): New.
14536 (the_low_target) <supports_range_stepping>: Set to
14537 x86_supports_range_stepping.
14538 * server.c (handle_v_cont): Handle 'r' action.
14539 (handle_v_requests): Append ";r" if the target supports range
14541 * target.h (struct thread_resume) <step_range_start,
14542 step_range_end>: New fields.
14543 (struct target_ops) <supports_range_stepping>:
14545 (target_supports_range_stepping): New macro.
14547 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14549 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14550 confusion in comment.
14552 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14554 * lynx-low.c (struct process_info_private): New type.
14555 (lynx_add_process): New function.
14556 (lynx_create_inferior, lynx_attach): Replace calls to
14557 add_process by calls to lynx_add_process.
14558 (lynx_resume): If PTID is null, then try using
14559 current_process()->private->last_wait_event_ptid.
14561 (lynx_clear_inferiors): Delete. The contents of that function
14562 has been inlined in lynx_mourn;
14563 (lynx_wait_1): Save the ptid in the process's private data.
14564 (lynx_mourn): Free the process' private data. Replace call
14565 to lynx_clear_inferiors by call to clear_inferiors.
14567 2013-05-17 Yao Qi <yao@codesourcery.com>
14569 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14572 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14574 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14575 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14576 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14577 PT_TEXT_END_ADDR guards. Update comments.
14578 (linux_target_op) <read_offsets>: Conditionally define to
14579 linux_read_offsets if the target is UCLIBC and if it defines
14580 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14582 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14583 Andrew Jenner <andrew@codesourcery.com>
14585 * Makefile.in (SFILES): Add linux-nios2-low.c.
14586 (clean): Add action to delete nios2-linux.c.
14587 (nios2-linux.c): New rule.
14588 * configure.srv: Add nios2*-*-linux*.
14589 * linux-nios2-low.c: New.
14591 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14593 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14595 2013-04-25 Hui Zhu <hui@codesourcery.com>
14598 * ax.c (ax_printf): Add fflush.
14600 2013-04-22 Tom Tromey <tromey@redhat.com>
14602 * Makefile.in (SFILES): Add filestuff.c.
14603 (OBS): Add filestuff.o.
14604 (filestuff.o): New target.
14605 * config.in, configure: Rebuild.
14606 * configure.ac: Check for fdwalk, pipe2.
14608 2013-04-17 Pedro Alves <palves@redhat.com>
14610 * configure.ac (USE_THREAD_DB): Delete variable.
14611 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14612 Don't AC_SUBST USE_THREAD_DB.
14613 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14614 * config.in, configure: Regenerate.
14616 2013-04-16 Pedro Alves <palves@redhat.com>
14618 * linux-low.h (struct lwp_info) <thread_known>: Move under
14619 the USE_THREAD_DB #ifdef.
14621 2013-04-16 Pedro Alves <palves@redhat.com>
14623 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14624 (linux-low.o): Delete rule.
14625 * linux-low.h: Always include "gdb_thread_db.h" instead of
14626 conditionally including thread_db.h.
14627 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14630 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14632 * Makefile.in (install-only): Fix make install regression.
14634 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14636 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14637 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14639 * gdbserver.1: Remove.
14641 2013-03-22 Pedro Alves <palves@redhat.com>
14643 * linux-low.c (handle_extended_wait): Don't call
14644 linux_enable_event_reporting.
14646 2013-03-15 Tony Theodore <tonyt@logyst.com>
14649 * Makefile.in (SHELL): Use @SHELL@.
14651 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14653 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14656 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14658 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14659 Remove extraneous NULL element.
14661 2013-03-13 Yao Qi <yao@codesourcery.com>
14663 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14664 'V' block in trace frame.
14666 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14668 * target.h (struct target_ops): Add btrace ops.
14669 (target_supports_btrace): New macro.
14670 (target_enable_btrace): New macro.
14671 (target_disable_btrace): New macro.
14672 (target_read_btrace): New macro.
14673 * gdbthread.h (struct thread_info): Add btrace field.
14674 * server.c: Include btrace-common.h.
14675 (handle_btrace_general_set): New function.
14676 (handle_btrace_enable): New function.
14677 (handle_btrace_disable): New function.
14678 (handle_general_set): Call handle_btrace_general_set.
14679 (handle_qxfer_btrace): New function.
14680 (struct qxfer qxfer_packets[]): Add btrace entry.
14681 * inferiors.c (remove_thread): Disable btrace.
14682 * linux-low: Include linux-btrace.h.
14683 (linux_low_enable_btrace): New function.
14684 (linux_low_read_btrace): New function.
14685 (linux_target_ops): Add btrace ops.
14686 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14687 Add srv_linux_btrace=yes.
14688 (x86_64-*-linux*): Add linux-btrace.o.
14689 Add srv_linux_btrace=yes.
14690 * configure.ac: Define HAVE_LINUX_BTRACE.
14691 * config.in: Regenerated.
14692 * configure: Regenerated.
14694 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14696 * server.c (handle_qxfer): Preserve error message if -3 is
14698 (qxfer): Document the -3 return value.
14700 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14702 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14703 (linux_btrace_h): New variable.
14704 (linux-btrace.o): New rule.
14706 2013-03-08 Stan Shebs <stan@codesourcery.com>
14707 Hafiz Abid Qadeer <abidh@codesourcery.com>
14709 * tracepoint.c (trace_buffer_size): New global.
14710 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14711 (init_trace_buffer): Change to one-argument function. Allocate
14712 trace buffer memory.
14713 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14714 handle QTBuffer:size packet.
14715 (cmd_bigqtbuffer_size): New function.
14716 (initialize_tracepoint): Call init_trace_buffer with
14717 DEFAULT_TRACE_BUFFER_SIZE.
14718 * server.c (handle_query): Add QTBuffer:size in the
14721 2013-03-07 Yao Qi <yao@codesourcery.com>
14723 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14724 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14726 (cmd_qtsp): Adjust condition. Do post increment.
14727 Set cur_action and cur_step_action back to 0.
14729 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14732 * linux-low.c (linux_write_memory): Return early success if LEN is
14735 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14737 * configure.srv: Add x86_64-*-cygwin* as target.
14739 2013-02-28 Tom Tromey <tromey@redhat.com>
14741 * configure.ac: Invoke AC_SYS_LARGEFILE.
14742 * configure, config.in: Rebuild.
14744 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14746 * win32-low.c: Throughout, fix format strings and casts of
14747 printf-like functions to avoid type related warnings on all
14749 (get_child_debug_event): Print dwDebugEventCode as hex since
14750 that's how it's usually documented.
14752 2013-02-28 Yao Qi <yao@codesourcery.com>
14754 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14757 2013-02-27 Jiong Wang <jiwang@tilera.com>
14759 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14760 (reg-tilegx32.c): New rule.
14761 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14762 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14763 different register info initializer according to elf class.
14764 (init_registers_tilgx32): New function. The tilegx32 register info
14766 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14767 (tile_store_gregset): Likewise.
14769 2013-02-27 Yao Qi <yao@codesourcery.com>
14771 * server.c (process_point_options): Print debug message when
14772 debug_threads is true.
14774 2013-02-26 Yao Qi <yao@codesourcery.com>
14776 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14778 2013-02-19 Pedro Alves <palves@redhat.com>
14779 Kai Tietz <ktietz@redhat.com>
14783 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14784 instead of strtoul to extract address from packet.
14785 (process_serial_event) <'z'>: Likewise.
14787 2013-02-18 Yao Qi <yao@codesourcery.com>
14789 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14791 2013-02-14 Pedro Alves <palves@redhat.com>
14795 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14796 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14798 2013-02-14 Pedro Alves <palves@redhat.com>
14800 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14802 2013-02-14 Pedro Alves <palves@redhat.com>
14804 * tracepoint.c (save_string): Delete.
14805 (add_tracepoint_action): Use savestring instead of save_string.
14807 2013-02-12 Pedro Alves <palves@redhat.com>
14809 * linux-xtensa-low.c: Ditto.
14810 * xtensa-xtregs.c: Ditto.
14812 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14814 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14817 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14819 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14820 aarch64_num_wp_regs and aarch64_num_bp_regs to
14821 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14823 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14825 * linux-aarch64-low.c (ps_get_thread_area): Replace
14826 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14828 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14829 Marcus Shawcroft <marcus.shawcroft@arm.com>
14830 Nigel Stephens <nigel.stephens@arm.com>
14831 Yufeng Zhang <yufeng.zhang@arm.com>
14833 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14834 (aarch64.c, aarch64-without-fpu.c): New targets.
14835 * configure.srv (aarch64*-*-linux*): New.
14836 * linux-aarch64-low.c: New file.
14838 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14840 * linux-low.c (handle_extended_wait, linux_create_inferior)
14841 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14842 (dequeue_one_deferred_signal, linux_resume_one_thread)
14843 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14844 (linux_tracefork_grandchild, linux_test_for_tracefork)
14845 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14846 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14847 where the argument is 0.
14849 2013-01-25 Yao Qi <yao@codesourcery.com>
14851 * event-loop.c: Include "queue.h".
14852 (gdb_event_p): New typedef.
14853 (struct gdb_event) <next_event>: Remove.
14854 (event_queue): Change to QUEUE(gdb_event_p).
14855 (async_queue_event): Remove.
14856 (gdb_event_xfree): New.
14857 (initialize_event_loop): New.
14858 (process_event): Use API from QUEUE.
14859 (wait_for_event): Likewise.
14860 * server.c (main): Call initialize_event_loop.
14861 * server.h (initialize_event_loop): Declare.
14863 2013-01-18 Yao Qi <yao@codesourcery.com>
14865 * ax.h (struct eval_agent_expr_context): New.
14866 (gdb_eval_agent_expr): Update declaration.
14867 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14868 TFRAME. Add new argument CTX.
14869 * server.h (struct eval_agent_expr_context): Declare.
14870 (agent_mem_read, agent_tsv_read): Update declaration.
14871 (agent_mem_read_string): Likewise.
14872 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14873 (add_traceframe_block): Add new argument TPOINT.
14874 Increase TPOINT->traceframe_usage.
14875 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14876 eval_tracepoint_agent_expr.
14877 (condition_true_at_tracepoint): Likewise.
14878 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14879 (agent_mem_read_string, agent_tsv_read): Likewise.
14881 2013-01-16 Yao Qi <yao@codesourcery.com>
14883 * linux-low.c (linux_resume_one_lwp): Don't check
14884 'lwp->bp_reinsert != 0'.
14886 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14887 Pedro Alves <palves@redhat.com>
14889 * lynx-low.c (ptrace_request_to_str): Define a temporary
14890 macro and use it to simplify this function's implementation.
14892 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14894 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14897 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14899 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14901 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14903 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14905 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14907 * lynx-low.c (lynx_resume): Use the resume_info parameter
14908 to determine the ptid for the lynx_ptrace call, unless
14909 it is equal to minus_one_ptid, in which case we use the
14910 ptid of the current_inferior.
14911 (lynx_wait_1): After having received a thread create/exit
14912 event, resume the inferior's execution using the signaling
14913 thread's ptid, rather than the old ptid.
14915 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14917 * lynx-low.c (lynx_resume): Delete variable ret.
14919 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14921 * gdbreplay.c (gdbreplay_version): Update copyright year.
14922 * server.c (gdbserver_version): Likewise.
14924 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14926 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14929 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14931 * lynx-low.c (ptrace_request_to_str): Add handling for
14932 PTRACE_GETTRACESIG.
14934 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14936 * lynx-low.c (lynx_attach): Delete variable new_process.
14938 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14940 * lynx-low.c (lynx_create_inferior): Delete variable
14943 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14945 * lynx-low.c (ptrace_request_to_str): Do not handle
14946 PTRACE_GETTHREADLIST if this macro does not exist.
14948 2012-12-15 Yao Qi <yao@codesourcery.com>
14950 * Makefile.in (OBS): Add notif.o.
14951 * notif.c, notif.h: New.
14952 * server.c: Include "notif.h".
14953 (struct vstop_notif) <next>: Remove.
14955 (queue_stop_reply): Update.
14956 (push_event, send_next_stop_reply): Remove.
14957 (discard_queued_stop_replies): Update.
14958 (notif_stop): New variable.
14959 (handle_v_stopped): Remove.
14960 (handle_v_requests): Don't call handle_v_stopped. Call
14961 handle_ack_notif instead.
14962 (queue_stop_reply_callback): Call notif_event_enque instead
14963 of queue_stop_reply.
14964 (handle_status): Don't call send_next_stop_reply, call
14965 notif_write_event instead.
14966 (kill_inferior_callback): Likewise.
14967 (detach_or_kill_inferior_callback): Likewise.
14968 (main): Call initialize_notif.
14969 (process_serial_event): Call QUEUE_is_empty.
14970 (handle_target_event): Call notif_push instead of push event.
14971 * server.h (push_event): Remove declaration.
14973 2012-12-10 Tom Tromey <tromey@redhat.com>
14975 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
14976 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
14979 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
14980 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
14981 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
14982 (amd64-linux-ipa.o, ax.o): Rewrite.
14983 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
14984 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
14985 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
14986 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
14987 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
14988 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
14989 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
14990 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
14991 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
14992 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
14993 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
14994 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
14995 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
14996 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
14997 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
14998 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
14999 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15000 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15001 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15002 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15003 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15004 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15005 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15006 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15007 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15008 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15009 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15010 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15011 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15012 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15013 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15014 (reg-tilegx.o): Remove.
15015 (all_object_files): New macro.
15016 Include .deps files.
15017 * aclocal.m4, configure: Rebuild.
15018 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15019 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15020 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15022 2012-12-05 Tom Tromey <tromey@redhat.com>
15025 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15027 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15029 * configure.ac: Check for linux/perf_event.h.
15030 * config.in: Regenerated.
15031 * configure: Regenerated.
15033 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15035 * hostio.c (handle_readlink): Decrease buffer size
15036 parameter passed to readlink by one byte.
15038 2012-11-26 Yao Qi <yao@codesourcery.com>
15040 * configure.ac (build_warnings): Append '-Wempty-body'.
15041 * configure: Regenerated.
15042 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15045 2012-11-15 Pierre Muller <muller@sourceware.org>
15047 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15048 * config.in: Regenerate.
15049 * configure: Regenerate.
15050 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15051 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15052 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15053 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15055 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15056 instead of <sys/wait.h> header.
15057 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15059 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15061 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15062 (various make rules): Remove -DGDBSERVER
15064 2012-11-09 Yao Qi <yao@codesourcery.com>
15066 * spu-low.c (current_ptid): Move it to ..
15067 * gdbthread.h: ... here. New.
15068 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15069 * server.c (myresume, process_serial_event): Likewise.
15070 * thread-db.c (thread_db_find_new_threads): Likewise.
15071 * tracepoint.c (run_inferior_command): Likewise.
15073 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15075 * server.c (handle_search_memory_1): Include access length in
15078 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15080 * linux-crisv32-low.c: Fix compile errors.
15082 2012-09-04 Yao Qi <yao@codesourcery.com>
15084 * tracepoint.c (cmd_qtsv): Adjust debug message.
15085 Don't check CUR_TPOINT.
15087 2012-08-28 Yao Qi <yao@codesourcery.com>
15089 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15090 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15091 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15092 Remove declarations of xmalloc, xreallloc, xstrdup and
15094 * Makefile.in (libiberty_h): New.
15095 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15096 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15098 2012-08-23 Yao Qi <yao@codesourcery.com>
15100 * server.h: Remove declaration of 'xsnprintf'.
15102 2012-08-22 Keith Seitz <keiths@redhat.com>
15104 * server.h: Include build-gnulib-gbserver/config.h.
15105 * gdbreplay.c: Likewise.
15107 2012-08-08 Doug Evans <dje@google.com>
15109 * Makefile.in (SFILES): Add gdb_vecs.c.
15110 (OBS): Add gdb_vecs.o.
15111 (gdb_vecs_h, host_defs_h): New variables.
15112 (thread-db.o): Add $(gdb_vecs_h) dependency.
15113 (gdb_vecs.o): New rule.
15114 * thread-db.c: #include "gdb_vecs.h".
15115 (thread_db_load_search): Use a vector to iterate over path elements.
15116 Handle text appearing after "$pdir".
15118 * configure.ac: Add check for strstr.
15119 * config.in: Regenerate.
15120 * configure: Regenerate.
15122 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15124 * hostio.c (handle_pread): If pread fails, fall back to attempting
15126 (handle_pwrite): Likewise for pwrite.
15128 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15130 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15131 between unsupported TYPE and unimplementable ADDR/LEN combination.
15132 (arm_insert_point): Act on new return value.
15134 2012-07-31 Pedro Alves <palves@redhat.com>
15136 * server.c (process_point_options): Only skip tokens if we find
15137 one that is unrecognized. Don't treat 'X' specially while
15138 skipping unrecognized tokens.
15140 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15142 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15143 to 4-byte-align HW breakpoint addresses for Thumb.
15145 2012-07-27 Yao Qi <yao@codesourcery.com>
15149 * server.h: Declare gdb_agent_about_to_close.
15150 * target.c (kill_inferior): Include "agent.h".
15151 New. Send command 'kill'.
15152 * target.h (kill_inferior): Removed macro.
15153 * tracepoint.c (gdb_agent_about_to_close): New.
15154 (gdb_agent_helper_thread): Handle command 'close'.
15155 Wait endlessly until the inferior stops.
15156 Install gdb_agent_remove_socket to atexit hook.
15157 (agent_socket_name): New static variable.
15158 (gdb_agent_socket_init): Replace local variable 'name' with
15159 'agent_socket_name'.
15160 (gdb_agent_remove_socket): New.
15162 2012-07-27 Yao Qi <yao@codesourcery.com>
15164 * server.c (process_point_options): Stop at 'X' when parsing.
15166 2012-07-19 Michael Eager <eager@eagercon.com>
15168 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15170 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15171 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15172 hardware breakpoint.
15174 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15176 * gdbserver/linux-low.c (initialize_low): Call
15177 linux_ptrace_init_warnings.
15179 2012-07-02 Doug Evans <dje@google.com>
15181 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15184 2012-07-02 Stan Shebs <stan@codesourcery.com>
15186 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15187 (ax.o): Add it to build rule.
15189 (OBS): Add format.o.
15190 (IPA_OBS): Add format.o.
15191 * server.c (handle_query): Claim support for breakpoint commands.
15192 (process_point_options): Add command case.
15193 (process_serial_event): Leave running if there are printfs in
15195 * mem-break.h (any_persistent_commands): Declare.
15196 (add_breakpoint_commands): Declare.
15197 (gdb_no_commands_at_breakpoint): Declare.
15198 (run_breakpoint_commands): Declare.
15199 * mem-break.c (struct point_command_list): New struct.
15200 (struct breakpoint): New field command_list.
15201 (any_persistent_commands): New function.
15202 (add_commands_to_breakpoint): New function.
15203 (add_breakpoint_commands): New function.
15204 (gdb_no_commands_at_breakpoint): New function.
15205 (run_breakpoint_commands): New function.
15206 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15208 * ax.c: Include format.h.
15209 (ax_printf): New function.
15210 (gdb_eval_agent_expr): Add printf opcode.
15212 2012-06-13 Yao Qi <yao@codesourcery.com>
15214 * server.c (start_inferior): Remove duplicated writes to fields
15215 'last_resume_kind' and 'last_status' of 'current_inferior'.
15217 2012-06-12 Yao Qi <yao@codesourcery.com>
15218 Pedro Alves <palves@redhat.com>
15220 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15222 * server.c (handle_v_cont): Extend comment.
15224 2012-06-11 Yao Qi <yao@codesourcery.com>
15226 * linux-low.c (linux_attach): Add 'static'.
15228 2012-06-06 Yao Qi <yao@codesourcery.com>
15230 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15232 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15234 Fix gcc -flto compilation warning.
15235 * server.c (main): Make variable multi_mode and attach volatile.
15237 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15239 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15240 if the platform doesn't know about it.
15242 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15244 * Makefile.in (SFILES): Add linux-tile-low.c.
15245 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15246 * configure.srv: Handle tilegx-*-linux*.
15247 * linux-tile-low.c: New file.
15249 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15251 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15253 2012-05-24 Pedro Alves <palves@redhat.com>
15257 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15259 2012-05-24 Pedro Alves <palves@redhat.com>
15263 Replace target_signal with gdb_signal throughout.
15265 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15267 * linux-low.c (linux_store_registers): Avoid the copying sequence
15268 when no data has been retrieved by ptrace.
15270 2012-05-22 Will Deacon <will.deacon@arm.com>
15272 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15273 Include asm/ptrace.h.
15274 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15277 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15279 * linux-low.c (linux_store_registers): Don't re-retrieve data
15280 with ptrace that has already been obtained from /proc. Always
15281 copy any data retrieved with ptrace to the buffer supplied.
15283 2012-05-11 Yao Qi <yao@codesourcery.com>
15284 Pedro Alves <palves@redhat.com>
15286 * linux-low.c (enum stopping_threads_kind): New.
15287 (stopping_threads): Change type to `enum stopping_threads_kind'.
15288 (handle_extended_wait): If stopping and suspending threads, leave
15289 the new_lwp suspended too.
15290 (linux_wait_for_event): Adjust.
15291 (stop_all_lwps): Set `stopping_threads' to
15292 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15293 whether we're suspending threads or just stopping them. Assert no
15296 2012-04-29 Yao Qi <yao@codesourcery.com>
15298 * server.h: Move some code to ...
15299 * gdbthread.h: ... here. New.
15300 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15301 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15302 (nto-low.o, win32-low.o): Likewise.
15303 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15304 * regcache.c, remote-utils.c, server.c: Likewise.
15305 * target.c, tracepoint.c, win32-low.c: Likewise.
15307 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15309 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15310 (PTRACE_ARG4_TYPE): Likewise.
15311 (PTRACE_XFER_TYPE): Likewise.
15312 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15313 ptrace to PTRACE_ARG3_TYPE.
15314 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15315 (PTRACE_ARG4_TYPE): Likewise.
15316 (PTRACE_XFER_TYPE): Likewise.
15317 (linux_detach_one_lwp): Cast fourth argument of
15318 ptrace to long then PTRACE_ARG4_TYPE.
15319 (regsets_fetch_inferior_registers): Cast third argument of
15320 ptrace to long then PTRACE_ARG3_TYPE.
15321 (regsets_store_inferior_registers): Likewise.
15323 2012-04-20 Pedro Alves <palves@redhat.com>
15325 * configure: Regenerate.
15327 2012-04-19 Pedro Alves <palves@redhat.com>
15329 * Makefile.in (GNULIB_BUILDDIR): New.
15330 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15331 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15332 (all, install-only, uninstall, clean-info, all-lib, clean): No
15333 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15334 (maintainer-clean realclean distclean): Use subdir_do.
15336 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15337 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15338 * acinclude.m4: Include acx_configure_dir.m4.
15339 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15340 calls. Call AC_PROG_RANLIB. Configure gnulib using
15343 (GNULIB_STDINT_H): Adjust.
15344 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15345 * gdbreplay.c: Include build-gnulib/config.h.
15346 * server.h: Likewise.
15347 * aclocal.m4: Regenerate.
15348 * config.in: Regenerate.
15349 * configure: Regenerate.
15351 2012-04-19 Pedro Alves <palves@redhat.com>
15353 * Makefile.in (LIBGNU, INCGNU): Adjust.
15354 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15355 (all, install-only, uninstall, clean-info, all-lib, clean)
15356 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15357 * configure.ac: Adjust AC_OUTPUT output.
15358 * aclocal.m4: Regenerate.
15359 * configure: Regenerate.
15361 2012-04-19 Pedro Alves <palves@redhat.com>
15363 * Makefile.in (generated_files): New.
15364 (server_h): Remove the explicit dependency on config.h, and depend
15365 on $generated_files.
15367 2012-04-19 Pedro Alves <palves@redhat.com>
15369 * Makefile.in (INCGNU): Add -Ignulib.
15371 2012-04-19 Pedro Alves <palves@redhat.com>
15373 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15374 (INCGNU): ... this, and spell out -I here.
15375 (GNULIB_LIB): Rename to ...
15376 (LIBGNU): ... this.
15377 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15379 2012-04-19 Pedro Alves <palves@redhat.com>
15381 * config.in: Regenerate.
15383 2012-04-19 Pedro Alves <palves@redhat.com>
15385 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15386 * server.h (memmem): Remove declaration.
15387 * config.in: Regenerate.
15388 * configure: Regenerate.
15390 2012-04-19 Yao Qi <yao@codesourcery.com>
15392 * Makefile.in (SFILES): Add common/vec.c.
15396 2012-04-19 Yao Qi <yao@codesourcery.com>
15398 * remote-utils.c (prepare_resume_reply): Replace with macro
15399 target_core_of_thread.
15400 * server.c (handle_qxfer_threads_proper): Likewise.
15401 * target.h (traget_core_of_thread): New macro.
15403 2012-04-18 Pedro Alves <palves@redhat.com>
15405 * aclocal.m4: Regenerate.
15406 * configure: Regenerate.
15408 2012-04-16 Yao Qi <yao@codesourcery.com>
15410 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15411 duplicated on address.
15413 2012-04-16 Yao Qi <yao@codesourcery.com>
15415 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15416 (struct tracepoint_action_ops) <send>: New field.
15417 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15418 (agent_expr_send, x_tracepoint_action_send): New.
15419 (l_tracepoint_action_send): New.
15420 (cmd_qtdp): Download and install tracepoint
15421 according to `use_agent'.
15422 (run_inferior_command): Add one more parameter `len'.
15424 (tracepoint_send_agent): New.
15425 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15427 2012-04-16 Yao Qi <yao@codesourcery.com>
15429 * tracepoint.c (download_tracepoints): Moved to ...
15430 (cmd_qtstart): ... here.
15432 2012-04-14 Yao Qi <yao@codesourcery.com>
15434 * tracepoint.c: Include inttypes.h.
15435 (struct collect_memory_action): Use sized types.
15436 (struct tracepoint): Likewise.
15437 (cmd_qtdp, stop_tracing): Update print specifiers.
15438 (cmd_qtp, response_tracepoint): Likewise.
15439 (collect_data_at_tracepoint): Likewise.
15440 (collect_data_at_step): Likewise.
15442 2012-04-14 Yao Qi <yao@codesourcery.com>
15444 Import gnulib module inttypes.
15445 * aclocal.m4, config.in, configure: Regenerated.
15447 2012-04-14 Yao Qi <yao@codesourcery.com>
15449 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15450 Makefile and config.status at last.
15452 2012-04-13 Yao Qi <yao@codesourcery.com>
15454 * tracepoint.c: Include stdint.h unconditionally.
15456 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15458 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15459 on BFD_HAVE_SYS_PROCFS_TYPE.
15460 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15461 * configure: Regenerate.
15462 * config.in: Likewise.
15464 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15466 * Makefile.in (clean): Also remove x32.c x32-linux.c
15467 x32-avx.c x32-avx-linux.c.
15468 (x32.o): New target.
15470 (x32-linux.o): Likewise.
15471 (x32-linux.c): Likewise.
15472 (x32-avx.o): Likewise.
15473 (x32-avx.c): Likewise.
15474 (x32-avx-linux.o): Likewise.
15475 (x32-avx-linux.c): Likewise.
15477 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15478 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15479 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15480 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15481 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15482 i386/x32-avx-linux.xml.
15484 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15485 (init_registers_x32_avx_linux): Likwise.
15486 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15487 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15489 2012-04-13 Pedro Alves <palves@redhat.com>
15491 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15492 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15493 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15494 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15497 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15499 * linux-x86-low.c (compat_x32_clock_t): New.
15500 (compat_x32_siginfo_t): Likewise.
15501 (compat_x32_siginfo_from_siginfo): Likewise.
15502 (siginfo_from_compat_x32_siginfo): Likewise.
15503 (linux_is_elf64): Likewise.
15504 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15505 and siginfo_from_compat_x32_siginfo for x32.
15506 (x86_arch_setup): Set linux_is_elf64.
15508 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15511 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15513 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15514 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15515 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15516 compatible with process.
15518 2012-04-12 Yao Qi <yao@codesourcery.com>
15520 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15521 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15522 (install-only, install-info, clean): Handle sub dir gnulib.
15523 (all-lib, am--refresh): New targets.
15524 (memmem.o): Remove target.
15525 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15526 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15527 (AC_REPLACE_FUNCS): Remove memmem.
15528 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15529 (AC_OUTPUT): Generate Makefile in gnulib/.
15530 * aclocal.m4, config.in, configure: Regenerated.
15532 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15534 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15536 2012-04-05 Pedro Alves <palves@redhat.com>
15538 -Werror=strict-aliasing
15540 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15543 2012-04-04 Pedro Alves <palves@redhat.com>
15545 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15546 (sparc_store_gregset_from_stack, sparc_store_gregset)
15547 (sparc_breakpoint_at): Fix formatting.
15549 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15551 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15553 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15554 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15555 * config.in: Regenerate.
15556 * configure: Likewise.
15558 2012-03-29 Pedro Alves <palves@redhat.com>
15560 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15561 Correct ptrace arguments.
15563 2012-03-28 Pedro Alves <palves@redhat.com>
15565 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15566 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15567 (IA64_FR1_REGNUM): New defines.
15568 (ia64_fetch_register): New.
15569 (the_low_target): Install it.
15570 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15572 * linux-low.c (linux_fetch_registers): Try the
15573 the_low_target.fetch_register hook first.
15575 * linux-arm-low.c (the_low_target): Adjust.
15576 * linux-bfin-low.c (the_low_target): Adjust.
15577 * linux-cris-low.c (the_low_target): Adjust.
15578 * linux-crisv32-low.c (the_low_target): Adjust.
15579 * linux-m32r-low.c (the_low_target): Adjust.
15580 * linux-m68k-low.c (the_low_target): Adjust.
15581 * linux-mips-low.c (the_low_target): Adjust.
15582 * linux-ppc-low.c (the_low_target): Adjust.
15583 * linux-s390-low.c (the_low_target): Adjust.
15584 * linux-sh-low.c (the_low_target): Adjust.
15585 * linux-sparc-low.c (the_low_target): Adjust.
15586 * linux-tic6x-low.c (the_low_target): Adjust.
15587 * linux-x86-low.c (the_low_target): Adjust.
15588 * linux-xtensa-low.c (the_low_target): Adjust.
15590 2012-03-26 Pedro Alves <palves@redhat.com>
15592 * server.c (handle_qxfer_libraries): Don't bail early if
15593 the_target->qxfer_libraries_svr4 is not NULL.
15595 2012-03-26 Pedro Alves <palves@redhat.com>
15597 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15599 2012-03-23 Pedro Alves <palves@redhat.com>
15601 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15602 "library-list-svr4" element's start tag when the the DSO list is
15605 2012-03-23 Pedro Alves <palves@redhat.com>
15607 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15608 a variable whose type size is the same as the inferior's pointer
15611 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15613 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15615 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15616 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15617 * linux-low.h: Include <signal.h>.
15618 (struct siginfo): Remove forward declaration.
15619 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15622 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15624 * .gitignore: Ignore more files.
15626 2012-03-19 Pedro Alves <palves@redhat.com>
15627 Jan Kratochvil <jan.kratochvil@redhat.com>
15629 * server.c (cont_thread, general_thread): Add describing comments.
15630 (start_inferior): Clear `cont_thread'.
15631 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15634 2012-03-15 Yao Qi <yao@codesourcery.com>
15636 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15638 (cmd_qtdp): ... here.
15640 2012-03-15 Yao Qi <yao@codesourcery.com>
15642 * tracepoint.c (struct tracepoint_action_ops): New.
15643 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15644 (m_tracepoint_action_download): New.
15645 (r_tracepoint_action_download): New.
15646 (x_tracepoint_action_download): New.
15647 (l_tracepoint_action_download): New.
15648 (add_tracepoint_action): Install `action->ops' according type.
15649 (download_tracepoint_1): Move code `download' function pointer
15650 of various tracepoint_action_ops.
15652 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15654 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15655 linux_ptrace_attach_warnings.
15657 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15659 * Makefile.in (linux-ptrace.o): New.
15660 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15661 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15662 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15663 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15664 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15666 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15668 2012-03-08 Yao Qi <yao@codesourcery.com>
15669 Pedro Alves <palves@redhat.com>
15671 Fix PR server/13392.
15672 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15673 offset of JMP insn.
15674 * tracepoint.c (remove_tracepoint): New.
15675 (cmd_qtdp): Call remove_tracepoint when failed to install.
15677 2012-03-07 Pedro Alves <palves@redhat.com>
15679 * linux-low.c (get_detach_signal): New.
15680 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15681 Pass on pending signals to PTRACE_DETACH. Check the result of the
15683 * server.c (program_signals, program_signals_p): New.
15684 (handle_general_set): Handle QProgramSignals.
15685 * server.h (program_signals, program_signals_p): Declare.
15687 2012-03-05 Pedro Alves <palves@redhat.com>
15688 Jan Kratochvil <jan.kratochvil@redhat.com>
15690 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15693 2012-03-03 Yao Qi <yao@codesourcery.com>
15695 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15696 agent_look_up_symbols.
15698 2012-03-03 Yao Qi <yao@codesourcery.com>
15700 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15701 (linux-x86-low.o): Likewise.
15702 * server.h: Remove in_process_agent_loaded.
15703 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15707 2012-03-03 Yao Qi <yao@codesourcery.com>
15709 * tracepoint.c (gdb_agent_capability): New global.
15710 (in_process_agent_loaded_ust): Renamed to
15711 `in_process_agent_supports_ust'.
15713 (in_process_agent_supports_ust): Call agent_capability_check.
15714 (clear_installed_tracepoints): Assert that agent supports
15717 2012-03-03 Yao Qi <yao@codesourcery.com>
15719 * linux-low.c (linux_supports_agent): New.
15720 (linux_target_ops): Initialize field `supports_agent' with
15721 linux_supports_agent.
15722 * target.h (struct target_ops) <supports_agent>: New.
15723 (target_supports_agent): New macro.
15724 * server.c (handle_general_set): Handle packet 'QAgent'.
15725 (handle_query): Send `QAgent+'.
15726 * Makefile.in (server.o): Depends on agent.h.
15728 2012-03-03 Yao Qi <yao@codesourcery.com>
15730 * Makefile.in (OBS): Add agent.o.
15731 Add new rule for agent.o.
15732 Track dependence of tracepoint.c on agent.h.
15733 * tracepoint.c (run_inferior_command_1):
15734 (run_inferior_command): Call agent_run_command.
15735 (gdb_ust_connect_sync_socket): Deleted. Move it to
15737 (resume_thread, stop_thread): Likewise.
15738 (gdb_ust_socket_init): Renamed to ...
15739 (gdb_agent_socket_init): ... New.
15740 (gdb_ust_thread): Renamed to ...
15741 (gdb_agent_helper_thread): ... New.
15742 (gdb_ust_init): Move some code to ...
15743 (gdb_agent_init): ... here. New.
15744 [HAVE_UST]: Call gdb_ust_init.
15745 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15746 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15747 * config.in, configure: Regenerated.
15749 2012-03-02 Pedro Alves <palves@redhat.com>
15751 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15752 * linux-low.c (struct simple_pid_list): New.
15753 (stopped_pids): New a struct simple_pid_list pointer.
15754 (add_to_pid_list, pull_pid_from_list): New.
15755 (handle_extended_wait): Don't assume the first signal new children
15756 report is SIGSTOP. Adjust call to pull_pid_from_list.
15757 (linux_wait_for_lwp): Adjust.
15759 2012-03-02 Yao Qi <yao@codesourcery.com>
15761 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15764 2012-03-02 Yao Qi <yao@codesourcery.com>
15766 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15767 `stop_pc' and `tpoint'. Update caller.
15769 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15771 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15772 * linux-low.c (use_linux_regsets): New macro.
15773 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15774 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15775 (linux_register_in_regsets): New function.
15776 (usr_fetch_inferior_registers): Skip registers covered by
15778 (usr_store_inferior_registers): Likewise.
15779 (usr_fetch_inferior_registers): New macro.
15780 (usr_store_inferior_registers): Likewise.
15781 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15782 (linux_store_registers): Likewise.
15783 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15785 (init_registers_mips64_dsp_linux): Likewise.
15786 (init_registers_mips_linux): New macro.
15787 (init_registers_mips_dsp_linux): Likewise.
15788 (mips_dsp_num_regs): Likewise.
15789 (DSP_BASE, DSP_CONTROL): New fallback macros.
15790 (mips_base_regs): New macro.
15791 (mips_regmap): Use it. Fix the size.
15792 (mips_dsp_regmap): New variable.
15793 (mips_dsp_regset_bitmap): Likewise.
15794 (mips_arch_setup): New function.
15795 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15797 (mips_cannot_store_register): Likewise.
15798 (the_low_target): Update .arch_setup, .num_regs and .regmap
15799 initializers. Add .regset_bitmap initializer.
15800 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15802 * linux-bfin-low.c (the_low_target): Likewise.
15803 * linux-cris-low.c (the_low_target): Likewise.
15804 * linux-crisv32-low.c (the_low_target): Likewise.
15805 * linux-ia64-low.c (the_low_target): Likewise.
15806 * linux-m32r-low.c (the_low_target): Likewise.
15807 * linux-m68k-low.c (the_low_target): Likewise.
15808 * linux-ppc-low.c (the_low_target): Likewise.
15809 * linux-s390-low.c (the_low_target): Likewise.
15810 * linux-sh-low.c (the_low_target): Likewise.
15811 * linux-sparc-low.c (the_low_target): Likewise.
15812 * linux-tic6x-low.c (the_low_target): Likewise.
15813 * linux-x86-low.c (the_low_target): Likewise.
15814 * linux-xtensa-low.c (the_low_target): Likewise.
15815 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15816 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15817 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15819 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15820 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15822 2012-02-29 Yao Qi <yao@codesourcery.com>
15823 Pedro Alves <palves@redhat.com>
15825 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15826 `step_over_finished' is true.
15828 2012-02-27 Pedro Alves <palves@redhat.com>
15830 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15831 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15833 2012-02-27 Pedro Alves <palves@redhat.com>
15836 * linux-low.c (pid_is_stopped): New.
15837 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15839 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15841 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15844 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15846 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15848 2012-02-24 Luis Machado <lgustavo@codesourcery>
15850 * server.c (handle_query): Advertise support for target-side
15851 breakpoint condition evaluation.
15852 (process_point_options): New function.
15853 (process_serial_event): When inserting a breakpoint, check for
15854 a target-side condition that should be evaluated.
15856 * mem-break.c: Include regcache.h and ax.h.
15857 (point_cond_list_t): New data structure.
15858 (breakpoint) <cond_list>: New field.
15859 (find_gdb_breakpoint_at): Make non-static.
15860 (delete_gdb_breakpoint_at): Clear any target-side
15862 (clear_gdb_breakpoint_conditions): New function.
15863 (add_condition_to_breakpoint): Likewise.
15864 (add_breakpoint_condition): Likewise.
15865 (gdb_condition_true_at_breakpoint): Likewise.
15866 (gdb_breakpoint_here): Return result directly instead
15867 of going through a local variable.
15869 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15870 (clear_gdb_breakpoint_conditions): Likewise.
15871 (add_breakpoint_condition): Likewise.
15872 (gdb_condition_true_at_breakpoint): Likewise.
15874 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15875 (need_step_over_p): Take target-side breakpoint condition into
15878 2012-02-24 Luis Machado <lgustavo@codesourcery>
15880 * server.h: Include tracepoint.h.
15881 (agent_mem_read, agent_get_trace_state_variable_value,
15882 agent_set_trace_state_variable_value,
15883 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15884 get_set_tsv_func_addr): New prototypes.
15886 * ax.h: New include file.
15887 * ax.c: New source file.
15889 * tracepoint.c: Include ax.h.
15890 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15891 agent_expr, eval_result_type): Move to ax.h.
15892 (parse_agent_expr): Rename to ...
15893 (gdb_parse_agent_expr): ... this, make it non-static and move
15895 (unparse_agent_expr) Rename to ...
15896 (gdb_unparse_agent_expr): ... this, make it non-static and move
15898 (eval_agent_expr): Rename to ...
15899 (eval_tracepoint_agent_expr): ... this.
15900 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15901 forward declarations.
15902 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15903 (agent_get_trace_state_variable_value): New function.
15904 (agent_set_trace_state_variable_value): New function.
15905 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15906 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15907 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15908 (condition_true_at_tracepoint): Likewise.
15909 (parse_agent_expr): Rename to ...
15910 (gdb_parse_agent_expr): ... this and move to ax.c.
15911 (unparse_agent_expr): Rename to ...
15912 (gdb_unparse_agent_expr): ... this and move to ax.c.
15913 (gdb_agent_op_name): Move to ax.c.
15914 (eval_agent_expr): Rename to ...
15915 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15917 (eval_tracepoint_agent_expr): New function.
15918 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15920 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15922 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15923 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15924 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15925 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15926 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15927 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15928 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15929 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15930 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15931 (compile_bytecodes): Remove forward declaration.
15932 (is_goto_target): Move to ax.c.
15933 (compile_bytecodes): Move to ax.c and call
15934 agent_get_trace_state_variable_value (...) and
15935 agent_set_trace_state_variable_value (...).
15937 * Makefile.in: Update ax.c and IPA dependencies.
15939 2012-02-24 Pedro Alves <palves@redhat.com>
15941 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15942 (cmd_bigqtbuffer_circular): ... this. Only handle
15943 'QTBuffer:circular:'.
15944 (handle_tracepoint_general_set): Adjust.
15946 2012-02-16 Yao Qi <yao@codesourcery.com>
15948 * inferiors.c: Move code to ...
15949 * dll.c: .... here. New.
15950 * server.h: Declare clear_dlls.
15951 * Makefile.in (SFILES): Add dll.c.
15955 2012-02-11 Yao Qi <yao@codesourcery.com>
15957 * server.c: (handle_monitor_command): Add a new parameter
15959 (handle_query): Update caller.
15961 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15963 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15964 * configure, config.in: Regenerate.
15965 * hostio.c: Provide an alternate implementation if HAVE_READLINK
15968 2012-02-02 Pedro Alves <palves@redhat.com>
15970 Try SIGKILL first, then PTRACE_KILL.
15971 * linux-low.c (linux_kill_one_lwp): New.
15972 (linux_kill_one_lwp): Rename to ...
15973 (kill_one_lwp_callback): ... this. Use the new
15974 linux_kill_one_lwp.
15976 2012-02-02 Pedro Alves <palves@redhat.com>
15978 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
15981 2012-01-27 Pedro Alves <palves@redhat.com>
15983 * linux-low.c (linux_child_pid_to_exec_file): Delete.
15984 (elf_64_file_p): Make static.
15985 (linux_pid_exe_is_elf_64_file): New.
15986 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
15987 Delete declarations.
15988 (linux_pid_exe_is_elf_64_file): Declare.
15989 * linux-x86-low.c (x86_arch_setup): Use
15990 linux_pid_exe_is_elf_64_file.
15992 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
15994 * linux-low.c (linux_wait_for_event_1): Rename to ...
15995 (linux_wait_for_event): ... here and merge it with former
15996 linux_wait_for_event - new variable wait_ptid, use it.
15997 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
15999 2012-01-23 Pedro Alves <palves@redhat.com>
16001 * server.c (main): Avoid yet another case of infinite loop while
16002 detaching/killing after a longjmp.
16004 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16007 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16009 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16011 * hostio.c (handle_readlink): New function.
16012 (handle_vFile): Call it to handle "vFile:readlink" packets.
16014 2012-01-20 Pedro Alves <palves@redhat.com>
16015 Ulrich Weigand <ulrich.weigand@linaro.org>
16017 * server.c (handle_v_requests): Only support vAttach and vRun to
16018 start multiple processes when in extended protocol mode.
16020 2012-01-17 Pedro Alves <palves@redhat.com>
16022 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16023 memalign plus mprotect to allocate the scratch buffer.
16025 2012-01-13 Pedro Alves <palves@redhat.com>
16027 * server.c (attach_inferior): Clear `cont_thread'.
16029 2012-01-13 Pedro Alves <palves@redhat.com>
16031 * server.c (main): Avoid infinite loop while detaching/killing
16034 2012-01-09 Doug Evans <dje@google.com>
16036 * server.c (start_inferior): Set last_ptid in --wrapper case.
16038 2012-01-06 Yao Qi <yao@codesourcery.com>
16040 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16042 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16044 2012-01-04 Yao Qi <yao@codesourcery.com>
16046 * tracepoint.c (cmd_qtdp): Print debug message
16047 for static tracepoint.
16049 2012-01-04 Yao Qi <yao@codesourcery.com>
16051 * tracepoint.c (trace_vdebug): Differentiate debug message
16052 between gdbserver and IPA.
16054 2012-01-03 Yao Qi <yao@codesourcery.com>
16056 * tracepoint.c (tracepoint_was_hit): Don't collect for
16059 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16061 * terminal.h: Reformat copyright header.
16063 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16065 * server.c (gdbserver_version): Update copyright year.
16066 * gdbreplay.c (gdbreplay_version): Likewise.
16068 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16070 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16073 2011-12-18 Hui Zhu <teawater@gmail.com>
16074 * linux-low.c (linux_create_inferior): Save return value to ret.
16076 2011-12-18 Hui Zhu <teawater@gmail.com>
16078 * linux-low.c (linux_create_inferior): Save return value to ret.
16080 2011-12-16 Doug Evans <dje@google.com>
16082 * linux-low.c (linux_create_inferior): If stdio connection,
16083 redirect stdin from /dev/null, stdout to stderr.
16084 * remote-utils.c (remote_is_stdio): New static global.
16085 (remote_connection_is_stdio): New function.
16086 (remote_prepare): Handle stdio connection.
16087 (remote_open): Ditto.
16088 (remote_close): Don't close stdin for stdio connections.
16089 (read_prim,write_prim): New functions. Replace all calls to
16090 read/write to these.
16091 * server.c (main): Watch for "-" argument. Move call to
16092 remote_prepare before start_inferior.
16093 * server.h (STDIO_CONNECTION_NAME): New macro.
16094 (remote_connection_is_stdio): Declare.
16096 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16097 in debugging output.
16099 2011-12-15 Yao Qi <yao@codesourcery.com>
16101 * tracepoint.c: Include sys/syscall.h.
16102 (gdb_ust_thread): Remove preprocessor conditional.
16104 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16106 * linux-low.c (linux_detach_one_lwp): Call
16107 the_low_target.prepare_to_resume before detaching.
16109 2011-12-14 Yao Qi <yao@codesourcery.com>
16111 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16114 2011-12-14 Yao Qi <yao@codesourcery.com>
16116 * i386-low.c (i386_low_stopped_data_address): Initialize local
16117 variable `control'.
16119 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16123 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16124 DR_CONTROL unless necessary. Extend comments.
16125 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16126 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16128 2011-12-13 Yao Qi <yao@codesourcery.com>
16130 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16132 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16134 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16136 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16137 Print new debug message for such case.
16139 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16141 Fix overlapping memcpy.
16142 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16143 the read_inferior_memory transfer.
16144 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16145 write_inferior_memory transfer.
16146 (set_fast_tracepoint_jump): New variable buf. Use it for the
16147 read_inferior_memory and write_inferior_memory transfers.
16148 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16149 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16150 Use it for the write_inferior_memory transfer.
16151 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16154 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16156 * linux-low.c (fetch_register, store_register): Make code
16157 consistent, fix formatting.
16159 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16161 * linux-low.c (usr_store_inferior_registers): Factor out code
16162 to handle individual registers into...
16163 (store_register): ... this new function.
16165 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16167 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16168 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16169 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16170 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16171 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16172 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16173 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16174 (srv_xmlfiles): Add new XML files.
16176 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16178 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16179 (init_registers_s390_linux32v1): Add prototype.
16180 (init_registers_s390_linux32v2): Likewise.
16181 (init_registers_s390_linux64v1): Likewise.
16182 (init_registers_s390_linux64v2): Likewise.
16183 (init_registers_s390x_linux64v1): Likewise.
16184 (init_registers_s390x_linux64v2): Likewise.
16185 (s390_num_regs): Increment to 52.
16186 (s390_regmap): Add orig_r2 register.
16187 (s390_num_regs_3264): Increment to 68.
16188 (s390_regmap_3264): Add orig_r2 register.
16189 (s390_collect_ptrace_register): Handle orig_r2 register.
16190 (s390_supply_ptrace_register): Likewise.
16191 (s390_fill_last_break): New function.
16192 (s390_store_last_break): Likewise.
16193 (s390_fill_system_call): New function.
16194 (s390_store_system_call): Likewise.
16195 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16197 (s390_check_regset): New function.
16198 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16199 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16200 Update target_regsets for available register sets.
16202 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16203 Jan Kratochvil <jan.kratochvil@redhat.com>
16205 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16206 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16208 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16209 * linux-low.h (struct process_info_private): New member r_debug.
16210 * server.c (handle_qxfer_libraries): Call
16211 the_target->qxfer_libraries_svr4.
16212 (handle_qxfer_libraries_svr4): New function.
16213 (qxfer_packets): New entry "libraries-svr4".
16214 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16215 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16216 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16217 PACKET_qXfer_libraries_svr4.
16219 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16221 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16222 PSW address/mask between 8-byte and 16-byte formats.
16223 (s390_supply_ptrace_register): Likewise.
16224 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16225 basic addressing mode bit.
16227 2011-11-24 Stan Shebs <stan@codesourcery.com>
16229 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16231 2011-11-17 Stan Shebs <stan@codesourcery.com>
16233 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16234 (tracing_start_time): New global.
16235 (tracing_stop_time): New global.
16236 (tracing_user_name): New global.
16237 (tracing_notes): New global.
16238 (tracing_stop_note): New global.
16239 (cmd_qtstart): Set traceframe_usage, start_time.
16240 (stop_tracing): Set stop_time.
16241 (cmd_qtstatus): Report additional status.
16242 (cmd_qtp): New function.
16243 (handle_tracepoint_query): Call it.
16244 (cmd_qtnotes): New function.
16245 (handle_tracepoint_general_set): Call it.
16246 (get_timestamp): Rename from tsv_get_timestamp.
16248 2011-11-14 Stan Shebs <stan@codesourcery.com>
16249 Kwok Cheung Yeung <kcy@codesourcery.com>
16251 * linux-x86-low.c (small_jump_insn): New.
16252 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16253 trampoline and error message, build a trampoline and issue a small
16254 jump instruction to it.
16255 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16256 trampoline and error message.
16257 (x86_get_min_fast_tracepoint_insn_len): New.
16258 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16259 * linux-low.h (struct linux_target_ops): Add arguments to
16260 install_fast_tracepoint_jump_pad operation, add new operation.
16261 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16263 (linux_get_min_fast_tracepoint_insn_len): New function.
16264 (linux_target_op): Add new operation.
16265 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16266 (gdb_trampoline_buffer_end): Ditto.
16267 (gdb_trampoline_buffer_error): Ditto.
16268 (struct ipa_sym_addresses): Add fields for new IPA variables.
16269 (symbol_list): Add entries for new IPA variables.
16270 (struct tracepoint): Add fields to hold the address range of the
16271 trampoline used by the tracepoint.
16272 (trampoline_buffer_head): New static variable.
16273 (trampoline_buffer_tail): Ditto.
16274 (claim_trampoline_space): New function.
16275 (have_fast_tracepoint_trampoline_buffer): New function.
16276 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16278 (install_fast_tracepoint): Ditto, also add error buffer argument.
16279 (cmd_qtminftpilen): New function.
16280 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16281 (fast_tracepoint_from_trampoline_address): New function.
16282 (fast_tracepoint_collecting): Handle trampoline as part of jump
16284 (set_trampoline_buffer_space): New function.
16285 (initialize_tracepoint): Initialize new IPA variables.
16286 * target.h (struct target_ops): Add arguments to
16287 install_fast_tracepoint_jump_pad operation, add new
16288 get_min_fast_tracepoint_insn_len operation.
16289 (target_get_min_fast_tracepoint_insn_len): New.
16290 (install_fast_tracepoint_jump_pad): Add arguments.
16291 * server.h (IPA_BUFSIZ): Define.
16292 * linux-i386-ipa.c: Include extra header files.
16293 (initialize_fast_tracepoint_trampoline_buffer): New function.
16294 (initialize_low_tracepoint): Call it.
16295 * server.h (set_trampoline_buffer_space): Declare.
16296 (claim_trampoline_space): Ditto.
16297 (have_fast_tracepoint_trampoline_buffer): Ditto.
16299 2011-11-14 Yao Qi <yao@codesourcery.com>
16301 * server.c (handle_query): Handle InstallInTrace for qSupported.
16302 * tracepoint.c (add_tracepoint): Sort list.
16303 (install_tracepoint, download_tracepoint): New.
16304 (cmd_qtdp): Call them to install and download tracepoints.
16305 (sort_tracepoints): Removed.
16306 (cmd_qtstart): Update.
16308 2011-11-14 Yao Qi <yao@codesourcery.com>
16310 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16311 * mem-break.h: Declare.
16312 * tracepoint.c (cmd_qtstart): Move some code to ...
16313 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16315 (download_tracepoints): Move some code to ...
16316 (download_tracepoint_1): ... here. New.
16318 2011-11-08 Yao Qi <yao@codesourcery.com>
16320 * remote-utils.c (relocate_instruction): A comment fix.
16322 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16324 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16325 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16326 dr_status_mirror and dr_control_mirror from debug_reg_state.
16327 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16328 (i386_initial_stuff): Remove use of deleted globals.
16329 (i386_get_thread_context, i386_set_thread_context,
16330 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16331 from debug_reg_state.
16333 2011-11-05 Yao Qi <yao@codesourcery.com>
16335 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16336 address as TPOINT's.
16338 2011-11-02 Stan Shebs <stan@codesourcery.com>
16340 * tracepoint.c (agent_mem_read_string): New function.
16341 (eval_agent_expr): Call it for tracenz.
16342 * server.c (handle_query): Report support for tracenz.
16344 2011-11-02 Yao Qi <yao@codesourcery.com>
16346 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16348 2011-11-02 Yao Qi <yao@codesourcery.com>
16350 * target.h: Fix a typo in comment.
16352 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16354 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16355 clobber the breakpoints' shadows with fast tracepoint jumps.
16356 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16357 * target.c (write_inferior_memory): Also pass MYADDR down to
16360 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16362 * configure.ac: Check support for personality routine.
16363 * configure: Regenerate.
16364 * config.in: Likewise.
16365 * linux-low.c: Include <sys/personality.h>.
16366 Define ADDR_NO_RANDOMIZE if necessary.
16367 (linux_create_inferior): Disable address space randomization when
16368 forking inferior, if requested.
16369 (linux_supports_disable_randomization): New function.
16370 (linux_target_ops): Install it.
16371 * server.h (disable_randomization): Declare.
16372 * server.c (disable_randomization): New global variable.
16373 (handle_general_set): Handle QDisableRandomization.
16374 (handle_query): Likewise for qSupported.
16375 (main): Support --disable-randomization and --no-disable-randomization
16376 command line arguments.
16377 * target.h (struct target_ops): Add supports_disable_randomization.
16378 (target_supports_disable_randomization): New macro.
16380 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16382 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16384 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16385 [!PT_GETDSBT] (target_loadmap): New definition.
16386 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16387 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16388 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16389 and PT_GETDSBT to LINUX_LOADMAP.
16390 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16391 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16393 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16395 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16396 (arm_linux_hwbp_cap): New static variable.
16397 (arm_linux_get_hwbp_cap): Replace by ...
16398 (arm_linux_init_hwbp_cap): ... this new function.
16399 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16400 (arm_linux_get_hw_watchpoint_count): Likewise.
16401 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16402 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16403 (arm_prepare_to_resume): Use perror_with_name instead of error.
16405 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16407 * linux-arm-low.c: Include <signal.h>.
16408 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16409 (struct arm_linux_hwbp_cap): New data type.
16410 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16411 (struct arm_linux_hw_breakpoint): New data type.
16412 (MAX_BPTS, MAX_WPTS): Define.
16413 (struct arch_process_info, struct arch_lwp_info): New data types.
16414 (arm_linux_get_hwbp_cap): New function.
16415 (arm_linux_get_hw_breakpoint_count): Likewise.
16416 (arm_linux_get_hw_watchpoint_count): Likewise.
16417 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16418 (arm_hwbp_control_initialize): Likewise.
16419 (arm_hwbp_control_is_enabled): Likewise.
16420 (arm_hwbp_control_is_initialized): Likewise.
16421 (arm_hwbp_control_disable): Likewise.
16422 (arm_linux_hw_breakpoint_equal): Likewise.
16423 (arm_linux_hw_point_initialize): Likewise.
16424 (struct update_registers_data): New data structure.
16425 (update_registers_callback: New function.
16426 (arm_insert_point): Likewise.
16427 (arm_remove_point): Likewise.
16428 (arm_stopped_by_watchpoint): Likewise.
16429 (arm_stopped_data_address): Likewise.
16430 (arm_new_process): Likewise.
16431 (arm_new_thread): Likewise.
16432 (arm_prepare_to_resume): Likewise.
16433 (the_low_target): Register arm_insert_point, arm_remove_point,
16434 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16435 arm_new_thread, and arm_prepare_to_resume.
16437 2011-09-15 Stan Shebs <stan@codesourcery.com>
16439 * server.h (struct emit_ops): Add compare-goto fields.
16440 * tracepoint.c (gdb_agent_op_sizes): New table.
16441 (emit_eq_goto): New function.
16442 (emit_ne_goto): New function.
16443 (emit_lt_goto): New function.
16444 (emit_le_goto): New function.
16445 (emit_gt_goto): New function.
16446 (emit_ge_goto): New function.
16447 (is_goto_target): New function.
16448 (compile_bytecodes): Recognize special cases of compare-goto
16449 combinations and call specialized emitters for them.
16450 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16451 (amd64_emit_ne_goto): New function.
16452 (amd64_emit_lt_goto): New function.
16453 (amd64_emit_le_goto): New function.
16454 (amd64_emit_gt_goto): New function.
16455 (amd64_emit_ge_goto): New function.
16456 (amd64_emit_ops): Add the new functions.
16457 (i386_emit_eq_goto): New function.
16458 (i386_emit_ne_goto): New function.
16459 (i386_emit_lt_goto): New function.
16460 (i386_emit_le_goto): New function.
16461 (i386_emit_gt_goto): New function.
16462 (i386_emit_ge_goto): New function.
16463 (i386_emit_ops): Add the new functions.
16465 2011-09-08 Stan Shebs <stan@codesourcery.com>
16467 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16468 (i386_emit_epilogue): Restore %ebx.
16470 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16472 * server.c (step_thread): Remove definition.
16473 (process_serial_event): Don't handle Hs.
16474 * server.h (step_thread): Remove declaration.
16475 * target.c (set_desired_inferior): Remove use of step_thread.
16477 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16479 * linux-low.c: Include linux-procfs.h.
16480 (linux_attach_lwp_1): Update comments.
16481 (linux_attach): Scan for existing threads when attaching to a
16482 process that is the tgid.
16483 * Makefile.in: Update dependencies.
16485 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16487 * configure.srv: Add linux-procfs.o dependencies.
16489 2011-08-14 Yao Qi <yao@codesourcery.com>
16491 * target.h (struct target_ops): Fix indent.
16492 * win32-low.c (win32_target_ops): Fix comment.
16494 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16495 Yao Qi <yao@codesourcery.com>
16497 * Makefile.in (clean): Remove tic6x-*.c files.
16498 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16499 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16500 (tic6x-c64xp-linux.c): Likewise.
16501 * configure.srv: Add support for tic6x-*-uclinux.
16502 * linux-tic6x-low.c: New.
16503 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16505 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16506 Yao Qi <yao@codesourcery.com>
16508 * target.h (struct target_ops): Add read_loadmap.
16509 * linux-low.c (struct target_loadseg): New type.
16510 (struct target_loadmap): New type.
16511 (linux_read_loadmap): New function.
16512 (linux_target_ops): Add linux_read_loadmap.
16513 * server.c (handle_query): Support qXfer:fdpic:read packet.
16514 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16517 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16519 * win32-low.c: Include <stdint.h>.
16521 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16523 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16524 to the inferior here.
16525 (i386_remove_aligned_watchpoint): Ditto.
16526 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16527 fit part of the watchpoint in the debug registers.
16528 (i386_update_inferior_debug_regs): New.
16529 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16530 registers, and only update the inferior on success.
16531 (i386_low_remove_watchpoint): Ditto.
16533 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16535 * linux-low.c (compare_ints, unique, list_threads, show_process,
16536 linux_core_of_thread): Delete.
16537 (linux_target_ops): Change linux_core_of_thread to
16538 linux_common_core_of_thread.
16539 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16540 * utils.c (malloc_failure): Change type of argument.
16541 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16542 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16543 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16544 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16545 (IPA_OBJS): Add common-utils-ipa.o.
16546 (ptid_h, linux_osdata_h): New macros.
16547 (server_h): Add common/common-utils.h, common/xml-utils.h,
16548 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16550 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16551 ptid.o, buffer.o): New rules.
16552 (linux-low.o): Add common/linux-osdata.h as a dependency.
16553 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16554 * configure.ac: Add AC_HEADER_DIRENT check.
16555 * config.in: Regenerate.
16556 * configure: Regenerate.
16557 * remote-utils.c (xml_escape_text): Delete.
16558 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16559 buffer_xml_printf): Move to common/buffer.c.
16560 * server.c (main): Remove call to initialize_inferiors.
16561 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16562 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16563 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16564 internal_error, gdb_assert, gdb_assert_fail): Delete.
16565 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16566 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16568 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16569 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16570 initialize_inferiors): Delete.
16572 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16574 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16577 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16579 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16581 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16583 2011-05-26 Yao Qi <yao@codesourcery.com>
16585 * Makefile.in (thread-db.o): Track dependence to
16586 common/gdb_thread_db.h.
16587 * thread-db.c: include gdb_thread_db.h from right place.
16589 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16591 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16592 __FILE__ and __LINE__ to internal_error.
16594 2011-05-13 Doug Evans <dje@google.com>
16596 * thread-db.c (try_thread_db_load_from_sdir): New function.
16597 (try_thread_db_load_from_dir): New function.
16598 (thread_db_load_search): Handle $sdir, ignore $pdir.
16599 Remove trying of system directories if search of
16600 libthread-db-search-path fails, that is now done via $sdir.
16602 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16604 * server.c (handle_query): Add EnableDisableTracepoints to the list
16605 of supported features.
16606 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16608 (cmd_qtenable_disable): New.
16609 (cmd_qtstart): Install tracepoints even if disabled.
16610 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16611 receiving a QTEnable or QTDisable packet.
16612 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16613 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16615 (gdb_probe): Skip data collection if static tracepoint is disabled.
16617 2011-05-10 Doug Evans <dje@google.com>
16619 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16621 2011-05-04 Doug Evans <dje@google.com>
16623 * linux-low.c (linux_join): Skip process lookup.
16624 * spu-low.c (spu_join): Ditto.
16625 * server.c (join_inferiors_callback): Delete.
16626 (process_serial_event): For 'D' packet (detach) call join_inferior
16629 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16631 * README: Don't mention xscale*-*-linux*.
16632 * configure.srv (xscale*-*-linux*): Don't handle target.
16634 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16636 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16638 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16639 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16640 (i386_emit_void_call_2): Likewise.
16642 2011-04-26 Yao Qi <yao@codesourcery.com>
16644 * linux-low.c: Move common macros to linux-ptrace.h.
16645 Include linux-ptrace.h.
16646 * Makefile.in (linux_ptrace_h): New.
16647 (linux-low.o): Depends on linux-ptrace.h.
16649 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16651 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16652 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16653 (remote_prepare): New function with most of the TCP code from ...
16654 (remote_open): ... here. Detect PORT here unconditionally. Move also
16655 setting transport_is_reliable.
16656 * server.c (run_once): New variable.
16657 (gdbserver_usage): Document it.
16658 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16659 the first run if RUN_ONCE.
16660 * server.h (run_once, remote_prepare): New declarations.
16662 2011-04-19 Tom Tromey <tromey@redhat.com>
16664 * win32-low.c (handle_load_dll): Remove duplicate "the".
16666 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16668 Remove support for old Cygwin 1.5 versions.
16669 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16670 function to avoid warning.
16671 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16674 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16676 * gdbserver/server.h (Macro _): Define it if not available.
16678 2011-03-14 Michael Snyder <msnyder@vmware.com>
16680 * hostio.c (handle_close): Remove unnecessary null test.
16682 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16684 * Makefile.in (maintainer-clean realclean distclean): Remove
16685 "make ... subdir_do" command.
16687 2011-03-10 Michael Snyder <msnyder@vmware.com>
16689 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16691 * server.c (handle_v_run): Free alloced buffer on early return.
16693 2011-03-09 Yao Qi <yao@codesourcery.com>
16696 2011-03-04 Yao Qi <yao@codesourcery.com>
16698 * Makefile.in: Remove GNU make feature --directory.
16700 2011-03-05 Yao Qi <yao@codesourcery.com>
16702 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16703 (subdir_do): New make target. Copied from gdb/Makefile.
16704 (maintainer-clean, realclean, distclean, clean): Call corresponding
16705 make targets in common/Makefile.
16707 2011-02-11 Yao Qi <yao@codesourcery.com>
16709 * configure.ac: Call AC_PROG_RANLIB.
16710 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16711 * configure: Regenerate.
16713 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16715 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16717 2011-03-06 Yao Qi <yao@codesourcery.com>
16719 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16721 2011-03-05 Yao Qi <yao@codesourcery.com>
16723 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16724 (subdir_do): New make target. Copied from gdb/Makefile.
16725 (maintainer-clean, realclean, distclean, clean): Call corresponding
16726 make targets in common/Makefile.
16728 2011-03-04 Yao Qi <yao@codesourcery.com>
16730 * Makefile.in: Remove GNU make feature --directory.
16732 2011-03-04 Michael Snyder <msnyder@vmware.com>
16734 * server.c (queue_stop_reply): Call xmalloc not malloc.
16736 2011-03-02 Michael Snyder <msnyder@vmware.com>
16738 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16740 2011-02-28 Michael Snyder <msnyder@vmware.com>
16742 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16743 (cmd_qtframe): Ditto.
16744 (cmd_qtbuffer): Ditto.
16745 (cmd_bigqtbuffer): Ditto.
16747 * utils.c (decimal2str): Initialize 'width' to nine, then
16748 don't mess with it.
16750 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16752 * hostio.c (require_data): Free *data, not data.
16754 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16756 * hostio.c (require_data): Use free, not xfree.
16758 2011-02-27 Michael Snyder <msnyder@vmware.com>
16760 * server.c (handle_query): Discard unused value.
16762 * hostio.c (require_data): Free malloc memory before returning
16765 2011-02-26 Michael Snyder <msnyder@vmware.com>
16767 * linux-low.c (list_threads): Call closedir for dirent.
16769 2011-02-27 Michael Snyder <msnyder@vmware.com>
16771 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16772 a case statement falls through.
16774 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16776 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16779 2011-02-26 Michael Snyder <msnyder@vmware.com>
16781 * utils.c (decimal2str): Eliminate dead code and dead param.
16782 (pulongest): Drop dead param from call to decimal2str.
16785 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16787 Revert the following patch (not approved yet):
16788 2011-02-21 Hui Zhu <teawater@gmail.com>
16789 * tracepoint.c (tp_printf): New function.
16790 (eval_agent_expr): Handle gdb_agent_op_printf.
16792 2011-02-21 Hui Zhu <teawater@gmail.com>
16794 * tracepoint.c (tp_printf): New function.
16795 (eval_agent_expr): Handle gdb_agent_op_printf.
16797 2011-02-18 Tom Tromey <tromey@redhat.com>
16799 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16800 (tracepoint.o): Likewise.
16801 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16802 (gdb_agent_op_names): Likewise.
16804 2011-02-18 Tom Tromey <tromey@redhat.com>
16806 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16807 gdb_agent_op_rot>: New constants.
16808 (gdb_agent_op_names): Add pick and roll.
16809 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16812 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16814 * aclocal.m4: Regenerated with aclocal-1.11.1.
16816 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16818 * server.c (handle_qxfer_traceframe_info): New.
16819 (qxfer_packets): Register "traceframe-info".
16820 (handle_query): Report support for qXfer:traceframe-info:read+.
16821 * tracepoint.c (match_blocktype): New.
16822 (traceframe_find_block_type): Rename to ...
16823 (traceframe_walk_blocks): ... this. Add callback filter argument,
16825 (traceframe_find_block_type): New, reimplemented on top of
16826 traceframe_walk_blocks.
16827 (build_traceframe_info_xml): New.
16828 (traceframe_read_info): New.
16829 * server.h (traceframe_read_info): Declare.
16831 2011-02-11 Yao Qi <yao@codesourcery.com>
16833 * configure.ac: Call AC_PROG_RANLIB.
16834 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16835 * configure: Regenerate.
16837 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16839 * server.c (gdb_read_memory): Change return semantics to allow
16841 (handle_search_memory_1): Adjust.
16842 (process_serial_event) <'m' packet>: Handle partial transfers.
16843 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16845 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16847 * regcache.c (init_register_cache): Initialize
16848 regcache->register_status.
16849 (free_register_cache): Release regcache->register_status.
16850 (regcache_cpy): Copy register_status.
16851 (registers_to_string): Print 'x's for unavailable registers.
16852 (supply_register): Mark the register's status valid or
16853 unavailable, depending on whether a buffer was passed in or not.
16854 (supply_register_zeroed): New.
16855 (supply_regblock): Mark the registers' status valid or
16856 unavailable, depending on whether a buffer was passed in or not.
16857 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16858 (struct regcache): New `register_status' field.
16859 (supply_register_zeroed): Declare.
16860 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16861 supply_register_zeroed, rather than passing a NULL buffer to
16863 * tracepoint.c (fetch_traceframe_registers): Update comment.
16865 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16867 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16870 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16872 * server.h (decode_xfer_write): Change prototype.
16873 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16874 and don't extract the annex here.
16875 * server.c (decode_xfer_read): Remove `annex' parameter,
16876 and don't extract the annex here.
16877 (decode_xfer): New.
16878 (struct qxfer): New.
16879 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16880 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16881 (handle_qxfer_statictrace): New functions, abstracted out from
16882 handle_query, and made to use the struct qxfer interface.
16883 (handle_threads_qxfer_proper): Rename to ...
16884 (handle_qxfer_threads_proper): ... this.
16885 (handle_threads_qxfer): Rename to ...
16886 (handle_qxfer_threads): ... this. Adjust.
16887 (qxfer_packets): New array.
16888 (handle_qxfer): New function.
16889 (handle_query): Use handle_qxfer.
16891 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16893 * gdbreplay.c: Shorten lines of >= 80 columns.
16894 * linux-low.c: Ditto.
16895 * linux-ppc-low.c: Ditto.
16896 * linux-s390-low.c: Ditto.
16897 * linux-sparc-low.c: Ditto.
16898 * linux-x86-low.c: Ditto.
16899 * linux-xtensa-low.c: Ditto.
16900 * mem-break.c: Ditto.
16901 * nto-low.c: Ditto.
16902 * regcache.h: Ditto.
16903 * remote-utils.c: Ditto.
16906 * thread-db.c: Ditto.
16907 * tracepoint.c: Ditto.
16909 * win32-low.h: Ditto.
16911 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16913 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16916 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16918 * server.c (gdbserver_version): Update copyright year in version
16920 * gdbreplay.c (gdbreplay_version): Ditto.
16922 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16924 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16925 * linux-bfin-low.c: New file.
16926 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16927 PT_DATA_ADDR for BFIN targets.
16928 * Makefile.in (SFILES): Add linux-bfin-low.c.
16929 (clean): Remove reg-bfin.c.
16930 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16931 * README: Mention supported Blackfin targets.
16933 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16935 * .gitignore: New file.
16937 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16939 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16941 2010-10-22 Jie Zhang <jie@codesourcery.com>
16943 * Makefile.in: Add FLAGS_TO_PASS variable.
16944 (install): Remove dependency of install-only and recursively
16945 invoke make for install-only.
16947 2010-10-04 Doug Evans <dje@google.com>
16949 * Makefile.in (uninstall): Use $(DESTDIR).
16951 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16955 * linux-x86-low.c (compat_siginfo_from_siginfo)
16956 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16957 si_code is < 0. Check for si_code == SI_TIMER before checking for
16960 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16962 * lynx-i386-low.c: New file.
16963 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16965 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16967 * lynx-low.c (ptrace_request_to_str): Remove handling for
16968 request values that have been removed in LynxOS 5.x.
16970 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16972 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
16975 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
16977 * configure.ac: Add --enable-inprocess-agent option.
16978 * configure: Rebuilt.
16980 2010-09-06 Yao Qi <yao@codesourcery.com>
16982 * linux-low.c (linux_kill): Remove unused variable.
16983 (linux_stabilize_threads): Likewise.
16984 * server.c (start_inferior): Likewise.
16985 (queue_stop_reply_callback): Likewise.
16986 * tracepoint.c (do_action_at_tracepoint): Likewise.
16988 2010-09-06 Yao Qi <yao@codesourcery.com>
16990 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
16993 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16995 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
16997 2010-09-06 Pedro Alves <pedro@codesourcery.com>
16999 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17002 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17004 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17005 gdbserver/lynx-ppc-low.c: New files.
17006 * Makefile.in (lynx_low_h): New variable.
17007 (lynx-low.o, lynx-ppc-low.o): New rules.
17008 * configure.ac: On LynxOS, link with -lnetinet.
17009 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17010 * configure: regenerate.
17012 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17014 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17015 * configure.ac: Add check for vasprintf and vsnprintf.
17016 * configure, config.in: Regenerate.
17017 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17019 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17021 * gdbreplay.c: Move include of alloca.h up, next to include of
17023 * server.h: Add include of malloc.h.
17024 * mem-break.c: Remove include of malloc.h.
17025 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17027 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17029 * Makefile.in (memmem.o): Build with -Wno-error.
17031 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17033 * utils.c (xsnprintf): Make non-static.
17034 * server.h: Add xsnprintf declaration.
17035 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17036 replace calls to snprintf by calls to xsnprintf throughout.
17038 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17040 * configure.ac: Add configure check for alloca.
17041 * configure, config.in: Regenerate.
17042 * server.h: Include alloca.h if it exists.
17043 * gdbreplay.c: Include alloca.h if it exists.
17045 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17047 * linux-low.c (__SIGRTMIN): Define if not already defined.
17048 (linux_create_inferior): Check for __ANDROID__ rather than
17050 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17051 are already deferred.
17052 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17053 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17054 stopped and already has a pending signal to report.
17055 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17056 a pending signal to report or is moving out of a jump pad.
17057 (linux_init_signals): Check for __ANDROID__ rather than
17060 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17062 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17063 debug_threads check. Avoid a linear search when not doing debug
17066 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17068 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17069 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17070 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17071 (process_event): Change local fd's type to gdb_fildes_t.
17072 (create_file_handler): Adjust prototype.
17073 (delete_file_handler): Adjust prototype.
17074 (handle_file_event): Adjust prototype. Use pfildes.
17075 (create_file_event): Adjsut prototype.
17076 * remote-utils.c (remote_desc, listen_desc): Change type to
17078 * server.h: New gdb_fildes_t typedef.
17079 [USE_WIN32API]: Include winsock2.h.
17080 (delete_file_handler, add_file_handler): Adjust prototypes.
17081 (pfildes): Declare.
17082 * utils.c (pfildes): New.
17084 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17086 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17087 * configure: Regenerate.
17089 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17091 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17092 (linux_done_accessing_memory): ... this.
17093 (linux_target_ops): Adjust.
17094 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17095 * nto-low.c (nto_target_ops): Adjust comment.
17096 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17097 * spu-low.c (spu_target_ops): Adjust comment.
17098 * target.h (target_ops): Rename unprepare_to_access_memory field
17099 to done_accessing_memory.
17100 (unprepare_to_access_memory): Rename to ...
17101 (done_accessing_memory): ... this.
17103 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17105 * linux-low.c (linux_prepare_to_access_memory): New.
17106 (linux_unprepare_to_access_memory): New.
17107 (linux_target_ops): Install them.
17108 * server.c (read_memory): Rename to ...
17109 (gdb_read_memory): ... this. Use
17110 prepare_to_access_memory/prepare_to_access_memory.
17111 (write_memory): Rename to ...
17112 (gdb_write_memory): ... this. Use
17113 prepare_to_access_memory/prepare_to_access_memory.
17114 (handle_search_memory_1): Adjust.
17115 (process_serial_event): Adjust.
17116 * target.h (struct target_ops): New fields
17117 prepare_to_access_memory and unprepare_to_access_memory.
17118 (prepare_to_access_memory, unprepare_to_access_memory): New.
17119 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17120 prepare_to_access_memory/prepare_to_access_memory.
17121 * nto-low.c (nto_target_ops): Adjust.
17122 * spu-low.c (spu_target_ops): Adjust.
17123 * win32-low.c (win32_target_ops): Adjust.
17125 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17127 * Makefile.in (WARN_CFLAGS): Get it from configure.
17128 (WERROR_CFLAGS): New.
17129 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17130 * configure.ac: Introduce --enable-werror, which adds -Werror to
17131 the compiler command line. Enabled by default. Disable with
17132 --disable-werror. Add -Wdeclaration-after-statement
17133 Wpointer-arith and -Wformat-nonliteral to warning flags.
17134 * configure: Regenerate.
17136 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17138 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17140 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17142 * gdbreplay.c (remote_error): New.
17144 (expect): Use gdbchar. Check for error reading from GDB.
17145 Clarify sync error output.
17146 (play): Check for errors writing to GDB.
17147 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17148 * remote-utils.c (getpkt): Check for errors writing to the remote
17151 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17153 * linux-low.c (linux_wait_1): Move non-debugging code out of
17154 `debug_threads' control.
17156 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17158 * linux-low.c (linux_wait_1): Don't set last_status here.
17159 * server.c (push_event, queue_stop_reply_callback): Assert we're
17160 not pushing a TARGET_WAITKIND_IGNORE event.
17161 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17162 (myresume, handle_target_event): Set the thread's last_resume_kind
17163 and last_status from the target returned status.
17165 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17169 * linux-x86-low.c (update_debug_registers_callback): New.
17170 (i386_dr_low_set_addr): Use it.
17171 (i386_dr_low_get_addr): New.
17172 (i386_dr_low_set_control): Use update_debug_registers_callback.
17173 (i386_dr_low_get_control): New.
17174 (i386_dr_low_get_status): Adjust.
17175 * linux-low.c (linux_stop_lwp): New.
17176 * linux-low.h (linux_stop_lwp): Declare.
17178 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17179 argument instead of a i386_debug_reg_state.
17180 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17181 a i386_debug_reg_state.
17182 (i386_insert_aligned_watchpoint): Adjust.
17183 (i386_remove_aligned_watchpoint): Adjust.
17184 (i386_low_stopped_data_address): Read the debug registers from the
17185 inferior instead of from the mirrors.
17186 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17187 (i386_dr_low_get_addr): Declare.
17188 (i386_dr_low_get_control): Declare.
17189 (i386_dr_low_get_status): Change prototype.
17191 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17192 (i386_dr_low_get_addr): New.
17193 (i386_dr_low_get_control): New.
17194 (i386_dr_low_get_status): Adjust prototype. Return
17196 (i386_initial_stuff): Clear dr_status_mirror and
17198 (i386_get_thread_context): Adjust.
17199 (i386_set_thread_context): Adjust.
17200 (i386_thread_added): Adjust.
17202 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17204 * linux-low.h (linux_thread_area): Delete declaration.
17206 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17208 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17209 after its termination.
17211 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17213 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17214 (gdb_wants_all_stopped): Delete.
17215 (linux_wait_1): Don't call them.
17216 * server.c (handle_v_cont): Tag all threads as want-stopped.
17217 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17218 stopped as "client-wants-stopped".
17220 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17222 * Makefile.in (signals_h): New.
17223 (server_h): Depend on it.
17224 (server.o): Don't depend on $(signals_def).
17225 (signals.o): Depend on $(signals_def).
17227 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17229 * Makefile.in (signals_def): New.
17230 (server_h): Append include/gdb/signals.h and signals_def.
17231 (server.o): Append signals_def.
17233 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17235 * server.c (handle_target_event): Use target_signal_to_host for
17236 resume_info.sig initialization.
17237 * target.h (struct thread_resume) <sig>: New comment.
17239 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17241 * server.c (handle_query): strcpy() the returned string from paddress()
17242 instead of sprintf().
17243 * utils.c (paddress): Return phex_nz().
17245 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17247 * server.c (handle_v_cont): Call mourn_inferior if process
17249 (myresume): Likewise.
17251 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17253 Static tracepoints, and integration with UST.
17255 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17256 * mem-break.c (uninsert_all_breakpoints)
17257 (reinsert_all_breakpoints): New.
17258 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17259 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17260 (gdb_agent_ust_loaded, helper_thread_id)
17261 (gdb_agent_helper_thread_id): New macros.
17262 (struct ipa_sym_addresses): Add addr_ust_loaded,
17263 addr_helper_thread_id, addr_cmd_buf.
17264 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17265 (in_process_agent_loaded_ust): New.
17266 (write_e_ust_not_loaded): New.
17267 (maybe_write_ipa_ust_not_loaded): New.
17268 (struct collect_static_trace_data_action): New.
17269 (enum tracepoint_type) <static_tracepoint>: New.
17270 (struct tracepoint) <handle>: Mention static tracepoints.
17271 (struct static_tracepoint_ctx): New.
17272 (CMD_BUF_SIZE): New.
17273 (add_tracepoint_action): Handle static tracepoint actions.
17274 (unprobe_marker_at): New.
17275 (clear_installed_tracepoints): Handle static tracepoints.
17276 (cmd_qtdp): Handle static tracepoints.
17277 (probe_marker_at): New.
17278 (cmd_qtstart): Handle static tracepoints.
17279 (response_tracepoint): Handle static tracepoints.
17280 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17281 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17282 (get_context_regcache): Handle static tracepoints.
17283 (do_action_at_tracepoint): Handle static tracepoint actions.
17284 (traceframe_find_block_type): Handle static trace data blocks.
17285 (traceframe_read_sdata): New.
17286 (download_tracepoints): Download static tracepoint actions.
17287 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17288 (GDB_PROBE_NAME): New.
17290 (GET_UST_SYM): New.
17293 (ust_marker_to_static_tracepoint): New.
17295 (collect_ust_data_at_tracepoint): New.
17296 (gdb_ust_probe): New.
17297 (UNIX_PATH_MAX, SOCK_DIR): New.
17298 (gdb_ust_connect_sync_socket): New.
17299 (resume_thread, stop_thread): New.
17300 (run_inferior_command): New.
17301 (init_named_socket): New.
17302 (gdb_ust_socket_init): New.
17303 (cstr_to_hexstr): New.
17305 (first_marker, next_marker): New.
17306 (response_ust_marker): New.
17307 (cmd_qtfstm, cmd_qtsstm): New.
17308 (unprobe_marker_at, probe_marker_at): New.
17309 (cmd_qtstmat, gdb_ust_thread): New.
17310 (gdb_ust_init): New.
17311 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17312 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17313 (ST_REGENTRY): New.
17314 (x86_64_st_collect_regmap): New.
17315 (X86_64_NUM_ST_COLLECT_GREGS): New.
17316 (AMD64_RIP_REGNUM): New.
17317 (supply_static_tracepoint_registers): New.
17318 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17319 (ST_REGENTRY): New.
17320 (i386_st_collect_regmap): New.
17321 (i386_NUM_ST_COLLECT_GREGS): New.
17322 (supply_static_tracepoint_registers): New.
17323 * server.c (handle_query): Handle qXfer:statictrace:read.
17324 <qSupported>: Report support for StaticTracepoints, and
17325 qXfer:statictrace:read features.
17326 * server.h (traceframe_read_sdata)
17327 (supply_static_tracepoint_registers): Declare.
17328 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17329 (unpack_varlen_hex): Include in IPA build.
17330 * Makefile.in (ustlibs, ustinc): New.
17331 (IPA_OBJS): Add remote-utils-ipa.o.
17332 ($(IPA_LIB)): Link -ldl and -lpthread.
17334 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17335 * config.in, configure: Regenerate.
17337 2010-06-20 Ian Lance Taylor <iant@google.com>
17338 Pedro Alves <pedro@codesourcery.com>
17340 * linux-x86-low.c (always_true): Delete.
17341 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17342 trying to fool the compiler with always_true.
17344 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17346 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17347 conditions in gdbserver.
17349 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17351 * spu-low.c (spu_read_memory): Wrap around local store limit.
17352 (spu_write_memory): Likewise.
17354 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17356 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17357 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17359 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17361 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17362 uses with LONGEST uses.
17364 2010-06-14 Stan Shebs <stan@codesourcery.com>
17365 Pedro Alves <pedro@codesourcery.com>
17369 * linux-x86-low.c: Include limits.h.
17371 (always_true): New.
17374 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17375 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17376 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17377 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17378 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17379 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17380 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17381 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17382 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17383 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17384 (amd64_emit_void_call_2): New.
17385 (amd64_emit_ops): New.
17386 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17387 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17388 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17389 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17390 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17391 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17392 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17393 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17394 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17395 (i386_emit_stack_adjust, i386_emit_int_call_1)
17396 (i386_emit_void_call_2): New.
17397 (i386_emit_ops): New.
17398 (x86_emit_ops): New.
17399 (the_low_target): Install x86_emit_ops.
17400 * server.h (struct emit_ops): New.
17401 (get_raw_reg_func_addr): Declare.
17402 (current_insn_ptr, emit_error): Declare.
17403 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17404 (set_trace_state_variable_value): New defines.
17405 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17406 addr_get_trace_state_variable_value and
17407 addr_set_trace_state_variable_value.
17408 (symbol_list): New fields for get_raw_reg,
17409 get_trace_state_variable_value and set_trace_state_variable_value.
17410 (condfn): New typedef.
17411 (struct tracepoint): New field `compiled_cond'.
17412 (do_action_at_tracepoint): Clear compiled_cond.
17413 (get_trace_state_variable_value, set_trace_state_variable_value):
17415 (condition_true_at_tracepoint): If there's a compiled condition,
17417 (current_insn_ptr, emit_error): New globals.
17418 (struct bytecode_address): New.
17419 (get_raw_reg_func_addr): New.
17420 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17421 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17422 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17423 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17424 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17425 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17426 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17427 (compile_tracepoint_condition, compile_bytecodes): New.
17428 * target.h (emit_ops): Forward declare.
17429 (struct target_ops): New field emit_ops.
17430 (target_emit_ops): New.
17431 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17432 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17433 * linux-low.c (linux_emit_ops): New.
17434 (linux_target_ops): Install it.
17435 * linux-low.h (struct linux_target_ops): New field emit_ops.
17437 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17439 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17440 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17442 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17443 Stan Shebs <stan@codesourcery.com>
17445 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17446 (all): Depend on $(extra_libraries).
17447 (install-only): Install the IPA.
17448 (IPA_OBJS, IPA_LIB): New.
17449 (clean): Remove the IPA lib.
17450 (IPAGENT_CFLAGS): New.
17451 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17452 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17453 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17454 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17455 * configure.ac: Check for atomic builtins support in the compiler.
17456 (IPA_DEPFILES, extra_libraries): Define.
17457 * configure.srv (ipa_obj): Add description.
17458 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17459 (i[34567]86-*-linux*): Set ipa_obj.
17460 (x86_64-*-linux*): Set ipa_obj.
17461 * linux-low.c (stabilizing_threads): New.
17462 (supports_fast_tracepoints): New.
17463 (linux_detach): Stabilize threads before detaching.
17464 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17465 the lwp is either not stabilizing, or is moving out of a jump pad.
17466 (linux_fast_tracepoint_collecting): New.
17467 (maybe_move_out_of_jump_pad): New.
17468 (enqueue_one_deferred_signal): New.
17469 (dequeue_one_deferred_signal): New.
17470 (linux_wait_for_event_1): If moving out of a jump pad, defer
17471 pending signals to later.
17472 (linux_stabilize_threads): New.
17473 (linux_wait_1): Check if threads need moving out of jump pads, and
17475 (stuck_in_jump_pad_callback): New.
17476 (move_out_of_jump_pad_callback): New.
17477 (lwp_running): New.
17478 (linux_resume_one_lwp): Handle moving out of jump pads.
17479 (linux_set_resume_request): Dequeue deferred signals.
17480 (need_step_over_p): Also step over fast tracepoint jumps.
17481 (start_step_over): Also uninsert fast tracepoint jumps.
17482 (finish_step_over): Also reinsert fast tracepoint jumps.
17483 (linux_install_fast_tracepoint_jump): New.
17484 (linux_target_ops): Install linux_stabilize_threads and
17485 linux_install_fast_tracepoint_jump_pad.
17486 * linux-low.h (linux_target_ops) <get_thread_area,
17487 install_fast_tracepoint_jump_pad>: New fields.
17488 (struct lwp_info) <collecting_fast_tracepoint,
17489 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17490 (linux_get_thread_area): Declare.
17491 * linux-x86-low.c (jump_insn): New.
17492 (x86_get_thread_area): New.
17493 (append_insns): New.
17494 (push_opcode): New.
17495 (amd64_install_fast_tracepoint_jump_pad): New.
17496 (i386_install_fast_tracepoint_jump_pad): New.
17497 (x86_install_fast_tracepoint_jump_pad): New.
17498 (the_low_target): Install x86_get_thread_area and
17499 x86_install_fast_tracepoint_jump_pad.
17500 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17501 (struct fast_tracepoint_jump): New.
17502 (fast_tracepoint_jump_insn): New.
17503 (fast_tracepoint_jump_shadow): New.
17504 (find_fast_tracepoint_jump_at): New.
17505 (fast_tracepoint_jump_here): New.
17506 (delete_fast_tracepoint_jump): New.
17507 (set_fast_tracepoint_jump): New.
17508 (uninsert_fast_tracepoint_jumps_at): New.
17509 (reinsert_fast_tracepoint_jumps_at): New.
17510 (set_breakpoint_at): Use write_inferior_memory.
17511 (uninsert_raw_breakpoint): Use write_inferior_memory.
17512 (check_mem_read): Mask out fast tracepoint jumps.
17513 (check_mem_write): Mask out fast tracepoint jumps.
17514 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17515 (set_fast_tracepoint_jump): Declare.
17516 (delete_fast_tracepoint_jump)
17517 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17518 (reinsert_fast_tracepoint_jumps_at): Declare.
17519 * regcache.c: Don't compile many functions when building the
17520 in-process agent library.
17521 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17522 the register buffer in the heap.
17523 (free_register_cache): If the register buffer isn't owned by the
17524 regcache, don't free it.
17525 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17526 pre-existing register caches.
17527 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17529 (convert_ascii_to_int): : Constify `from' parameter type.
17530 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17531 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17532 the needed buffer in-place.
17533 (relocate_instruction): New.
17534 * server.c (handle_query) <qSymbols>: If the target supports
17535 tracepoints, give it a chance of looking up symbols. Report
17536 support for fast tracepoints.
17537 (handle_status): Stabilize threads.
17538 (process_serial_event): Adjust.
17539 * server.h (struct fast_tracepoint_jump): Forward declare.
17540 (struct process_info) <fast_tracepoint_jumps>: New field.
17541 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17542 (decode_X_packet, decode_M_packet): Adjust.
17543 (relocate_instruction): Declare.
17544 (in_process_agent_loaded): Declare.
17545 (tracepoint_look_up_symbols): Declare.
17546 (struct fast_tpoint_collect_status): Declare.
17547 (fast_tracepoint_collecting): Declare.
17548 (force_unlock_trace_buffer): Declare.
17549 (handle_tracepoint_bkpts): Declare.
17550 (initialize_low_tracepoint)
17551 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17552 * target.h (struct target_ops) <stabilize_threads,
17553 install_fast_tracepoint_jump_pad>: New fields.
17554 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17555 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17556 [HAVE_STDINT_H]: Include stdint.h.
17557 (trace_debug_1): Rename to ...
17558 (trace_vdebug): ... this.
17559 (trace_debug): Rename to ...
17560 (trace_debug_1): ... this. Add `level' parameter.
17561 (trace_debug): New.
17562 (ATTR_USED, ATTR_NOINLINE): New.
17563 (IP_AGENT_EXPORT): New.
17564 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17565 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17566 (about_to_request_buffer_space, trace_buffer_is_full)
17567 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17568 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17569 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17570 (traceframe_write_count, traceframes_created)
17571 (trace_state_variables)
17572 New renaming defines.
17573 (struct ipa_sym_addresses): New.
17574 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17575 (symbol_list): New.
17576 (ipa_sym_addrs): New.
17577 (all_tracepoint_symbols_looked_up): New.
17578 (in_process_agent_loaded): New.
17579 (write_e_ipa_not_loaded): New.
17580 (maybe_write_ipa_not_loaded): New.
17581 (tracepoint_look_up_symbols): New.
17582 (debug_threads) [IN_PROCESS_AGENT]: New.
17583 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17584 (UNKNOWN_SIDE_EFFECTS): New.
17585 (stop_tracing): New.
17586 (flush_trace_buffer): New.
17587 (stop_tracing_bkpt): New.
17588 (flush_trace_buffer_bkpt): New.
17589 (read_inferior_integer): New.
17590 (read_inferior_uinteger): New.
17591 (read_inferior_data_pointer): New.
17592 (write_inferior_data_pointer): New.
17593 (write_inferior_integer): New.
17594 (write_inferior_uinteger): New.
17595 (struct collect_static_trace_data_action): Delete.
17596 (enum tracepoint_type): New.
17597 (struct tracepoint) <type>: New field `type'.
17598 <actions_str, step_actions, step_actions_str>: Only include in
17600 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17601 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17602 (tracepoints): Use IP_AGENT_EXPORT.
17603 (last_tracepoint): Don't include in the IPA.
17604 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17605 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17606 (alloced_trace_state_variables): New.
17607 (trace_state_variables): Use IP_AGENT_EXPORT.
17608 (traceframe_t): Delete unused variable.
17609 (circular_trace_buffer): Don't include in the IPA.
17610 (trace_buffer_start): Delete.
17611 (struct trace_buffer_control): New.
17612 (trace_buffer_free): Delete.
17613 (struct ipa_trace_buffer_control): New.
17614 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17615 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17617 (trace_buffer_ctrl): New.
17618 (TRACE_BUFFER_CTRL_CURR): New.
17619 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17620 Reimplement as macros.
17621 (trace_buffer_wrap): Delete.
17622 (traceframe_write_count, traceframe_read_count)
17623 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17624 (struct tracepoint_hit_ctx) <type>: New field.
17625 (struct fast_tracepoint_ctx): New.
17626 (memory_barrier): New.
17628 (record_tracepoint_error): Update atomically in the IPA.
17629 (clear_inferior_trace_buffer): New.
17630 (about_to_request_buffer_space): New.
17631 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17632 updating the same buffer.
17633 (add_tracepoint): Default the tracepoint's type to trap
17634 tracepoint, and orig_size to -1.
17635 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17636 internal variables.
17637 (create_trace_state_variable): New parameter `gdb'. Handle it.
17638 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17639 (cmd_qtdp): Handle fast tracepoints.
17640 (cmd_qtdv): Adjust.
17641 (max_jump_pad_size): New.
17642 (gdb_jump_pad_head): New.
17643 (get_jump_space_head): New.
17644 (claim_jump_space): New.
17645 (sort_tracepoints): New.
17646 (MAX_JUMP_SIZE): New.
17647 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17649 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17650 support. Upload fast traceframes, and delete internal IPA
17652 (stop_tracing_handler): New.
17653 (flush_trace_buffer_handler): New.
17654 (cmd_qtstop): Upload fast tracepoints.
17655 (response_tracepoint): Handle fast tracepoints.
17656 (tracepoint_finished_step): Upload fast traceframes. Set the
17657 tracepoint hit context's tracepoint type.
17658 (handle_tracepoint_bkpts): New.
17659 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17660 type. Add comment about fast tracepoints.
17661 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17662 non-existing action_str field.
17663 (get_context_regcache): Handle fast tracepoints.
17664 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17666 (fast_tracepoint_from_jump_pad_address): New.
17667 (fast_tracepoint_from_ipa_tpoint_address): New.
17668 (collecting_t): New.
17669 (force_unlock_trace_buffer): New.
17670 (fast_tracepoint_collecting): New.
17672 (gdb_collect): New.
17673 (write_inferior_data_ptr): New.
17674 (target_tp_heap): New.
17675 (target_malloc): New.
17676 (download_agent_expr): New.
17678 (download_tracepoints): New.
17679 (download_trace_state_variables): New.
17680 (upload_fast_traceframes): New.
17681 (IPA_FIRST_TRACEFRAME): New.
17682 (IPA_NEXT_TRACEFRAME_1): New.
17683 (IPA_NEXT_TRACEFRAME): New.
17684 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17685 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17686 (gdb_jump_pad_buffer_end): New.
17687 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17688 (initialize_tracepoint): Adjust.
17689 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17690 buffer. Initialize the low module.
17691 * utils.c (PREFIX, TOOLNAME): New.
17692 (malloc_failure): Use PREFIX.
17693 (error): In the IPA, an error causes an exit.
17694 (fatal, warning): Use PREFIX.
17695 (internal_error): Use TOOLNAME.
17696 (NUMCELLS): Increase to 10.
17697 * configure, config.in: Regenerate.
17699 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17701 * server.c (handle_query) <qSupported>: Do two passes over the
17702 qSupported string to avoid nesting strtok.
17704 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17706 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17708 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17709 -Wl,--dynamic-list.
17710 * configure: Regenerate.
17711 * proc-service.list: New.
17713 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17715 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17718 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17720 * gdbreplay.c (remote_open): Check error return from socket() call by
17721 its equality to -1 not by it being negative.
17722 * remote-utils.c (remote_open): Likewise.
17724 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17726 * config.h: Regenerate.
17728 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17730 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17731 doesn't provide PTRACE_GET_THREAD_AREA.
17733 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17735 * linux-m68k-low.c: Include <asm/ptrace.h>
17736 (ps_get_thread_area): Implement.
17738 2010-05-03 Doug Evans <dje@google.com>
17740 * event-loop.c (struct callback_event): New struct.
17741 (callback_list): New global.
17742 (append_callback_event, delete_callback_event): New functions.
17743 (process_callback): New function.
17744 (start_event_loop): Call it.
17745 * remote-utils.c (NOT_SCHEDULED): Define.
17746 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17747 moved out of readchar.
17748 (readchar): Rewrite. Call reschedule before returning.
17749 (reset_readchar): New function.
17750 (remote_close): Call it.
17751 (process_remaining, reschedule): New functions.
17752 * server.h (callback_handler_func): New typedef.
17753 (append_callback_event, delete_callback_event): Declare.
17755 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17757 * proc-service.c (ps_pglobal_lookup): Use
17758 thread_db_look_up_one_symbol.
17759 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17760 parameter. Use it instead of all_symbols_looked_up.
17761 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17763 (all_symbols_looked_up): Don't declare.
17764 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17765 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17767 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17768 Set all_symbols_looked_up here.
17769 (thread_db_look_up_one_symbol): New.
17770 (thread_db_get_tls_address): Adjust.
17771 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17772 thread_db object on the heap, and tentatively set it in the
17774 (thread_db_init): Don't set all_symbols_looked_up here.
17775 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17777 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17779 * linux-low.c (linux_kill, linux_detach): Adjust.
17780 (status_pending_p_callback): Remove redundant statement. Check
17781 for !TARGET_WAITIKIND_IGNORE, instead of
17782 TARGET_WAITKIND_STOPPED.
17783 (handle_tracepoints): Make sure LWP is locked. Adjust.
17784 (linux_wait_for_event_1): Adjust.
17785 (linux_cancel_breakpoints): New.
17786 (unsuspend_one_lwp): New.
17787 (unsuspend_all_lwps): New.
17788 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17789 (send_sigstop_callback): Change return type to int, add new
17790 `except' parameter and handle it.
17791 (suspend_and_send_sigstop_callback): New.
17792 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17793 pass them down. If SUSPEND, also increment the lwp's suspend
17795 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17796 (need_step_over_p): Don't consider suspended LWPs.
17797 (start_step_over): Adjust.
17798 (proceed_one_lwp): Change return type to int, add new `except'
17799 parameter and handle it.
17800 (unsuspend_and_proceed_one_lwp): New.
17801 (proceed_all_lwps): Use find_inferior instead of
17803 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17804 also decrement the suspend count of LWPs. Pass `except' down,
17805 instead of hacking its suspend count.
17806 (linux_pause_all): Add `freeze' parameter. Adjust.
17807 (linux_unpause_all): New.
17808 (linux_target_ops): Install linux_unpause_all.
17809 * server.c (handle_status): Adjust.
17810 * target.h (struct target_ops): New fields `unpause_all' and
17811 `cancel_breakpoints'. Add new parameter to `pause_all'.
17812 (pause_all): Add new `freeze' parameter.
17813 (unpause_all): New.
17814 (cancel_breakpoints): New.
17815 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17816 cancel breakpoints.
17817 (cmd_qtstart): Pause threads.
17818 (stop_tracing): Pause threads, and cancel breakpoints.
17819 * win32-low.c (win32_target_ops): Adjust.
17821 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17823 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17824 the inferior right away from here...
17825 (linux_wait_1): ... to here, and adjust to check the thread's
17826 last_resume_kind instead of the lwp's step or stop_expected flags.
17828 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17830 * README: Use consistent `GDB' and `GDBserver' spellings.
17832 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17834 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17835 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17836 (linux_detach_one_lwp): Assume the lwp is stopped.
17837 (any_thread_of): Delete.
17838 (linux_detach): Stop all lwps here. Don't blindly delete all
17840 (delete_lwp_callback): New.
17841 (linux_mourn): Delete all lwps of the process that is gone.
17842 (linux_wait_1): Don't delete the last lwp of the process here.
17843 * mem-break.h (mark_breakpoints_out): Declare.
17844 * mem-break.c (mark_breakpoints_out): New.
17845 (free_all_breakpoints): Use it.
17846 * server.c (handle_target_event): If the process is gone, mark
17848 * thread-db.c (struct thread_db) <create_bp>: New field.
17849 (thread_db_enable_reporting): Fix prototype. Store a thread event
17850 breakpoint reference in the thread_db struct.
17851 (thread_db_load_search): Clear the thread_db object.
17852 (try_thread_db_load_1): Ditto.
17853 (switch_to_process): New.
17854 (disable_thread_event_reporting): Use it.
17855 (remove_thread_event_breakpoints): New.
17856 (thread_db_detach, thread_db_mourn): Use it.
17858 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17860 * linux-low.c (linux_enable_event_reporting): New.
17861 (linux_wait_for_event_1, handle_extended_wait): Use it.
17863 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17865 * linux-low.c (linux_kill_one_lwp, linux_kill)
17866 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17867 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17868 SIGSTOP even if the LWP is stopped.
17869 (send_sigstop_callback): New.
17870 (stop_all_lwps): Use send_sigstop_callback instead.
17871 (linux_resume_one_thread): Adjust.
17872 (proceed_one_lwp): Still proceed an LWP that the client has
17873 requested to stop, if we haven't reported it as stopped yet. Make
17874 sure that LWPs the client want stopped, have a pending SIGSTOP.
17876 2010-04-26 Doug Evans <dje@google.com>
17878 * server.c (handle_general_set): Make static.
17880 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17881 Print received char after testing for error/eof instead of before.
17882 (input_interrupt): Tweak comment.
17884 2010-04-23 Doug Evans <dje@google.com>
17886 * server.c (start_inferior): Print inferior argv if --debug.
17888 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17890 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17891 * nto-x86-low.c: Include server.h
17893 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17895 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17896 be consistent with other sources of this directory.
17897 (init_registers_amd64): Correct name of source file of this function
17900 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17902 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17903 64-bit executables.
17905 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17907 * win32-i386-low.c: Add 64-bit support.
17908 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17909 (init_registers_amd64): Declare.
17910 (mappings): Add 64-bit version of array.
17911 (init_windows_x86): New function.
17912 (the_low_target): Change init_arch field to init_windows_x86.
17914 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17916 * win32-low.c: Adapt to support also 64-bit architecture.
17917 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17918 (get_image_name): Use SIZE_T type for local variable `done'.
17919 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17920 (toolhelp_get_dll_name): Idem.
17921 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17922 Use uintptr_t typecast to avoid warning.
17923 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17924 (handle_exception): Use phex_nz to avoid warning.
17925 (win32_wait): Remove unused local variable `process'.
17927 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17929 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17932 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17934 * configure.ac: Use `ws2_32' library for srv_mingw.
17935 * configure: Regenerate.
17936 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17937 * remote-utils.c: Likewise.
17939 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17941 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17942 if __x86_64__ is defined.
17944 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17946 * configure: Regenerate.
17948 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17950 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17951 * target.h (target_ops): New get_tib_address field.
17952 * win32-low.h (win32_thread_info): Add thread_local_base field.
17953 * win32-low.c (child_add_thread): Add tlb argument.
17954 Set thread_local_base field to TLB.
17955 (get_child_debug_event): Adapt to child_add_thread change.
17956 (win32_get_tib_address): New function.
17957 (win32_target_ops): Set get_tib_address field to
17958 win32_get_tib_address.
17959 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17961 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17963 * linux-low.c (linux_mourn): Also remove the process.
17964 * server.c (handle_target_event): Don't remove the process here.
17965 * nto-low.c (nto_mourn): New.
17966 (nto_target_ops): Install it.
17967 * spu-low.c (spu_mourn): New.
17968 (spu_target_ops): Install it.
17969 * win32-low.c (win32_mourn): New.
17970 (win32_target_ops): Install it.
17972 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17974 * server.h (buffer_xml_printf): Remove redundant `;'.
17976 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17978 * regcache.c (set_register_cache): Invalidate regcaches before
17979 changing the register cache layout.
17980 (regcache_invalidate_one): Allow a NULL regcache.
17981 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
17982 regcaches before changing the register cache layout or the target
17985 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
17987 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
17988 variable warning on Linux/x86-64.
17990 2010-04-11 Pedro Alves <pedro@codesourcery.com>
17992 GDBserver disconnected tracing support.
17994 * linux-low.c (linux_remove_process): Delete.
17995 (add_lwp): Don't set last_resume_kind here.
17996 (linux_kill): Use `mourn'.
17997 (linux_detach): Use `thread_db_detach', and `mourn'.
17998 (linux_mourn): New.
17999 (linux_attach_lwp_1): Adjust comment.
18000 (linux_attach): last_resume_kind moved the thread_info; adjust.
18001 (status_pending_p_callback): Adjust.
18002 (linux_wait_for_event_1): Adjust.
18003 (count_events_callback, select_singlestep_lwp_callback)
18004 (select_event_lwp_callback, cancel_breakpoints_callback)
18005 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18006 (proceed_one_lwp): Adjust.
18007 (linux_async): Add debug output.
18008 (linux_thread_stopped): New.
18009 (linux_pause_all): New.
18010 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18012 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18013 (thread_db_free): Delete declaration.
18014 (thread_db_detach, thread_db_mourn): Declare.
18015 * thread-db.c (thread_db_init): Use thread_db_mourn.
18016 (thread_db_free): Delete, split in two.
18017 (disable_thread_event_reporting): New.
18018 (thread_db_detach): New.
18019 (thread_db_mourn): New.
18021 * server.h (struct thread_info) <last_resume_kind>: New field.
18022 <attached>: Add comment.
18023 <gdb_detached>: New field.
18024 (handler_func): Change return type to int.
18025 (handle_serial_event, handle_target_event): Ditto.
18026 (gdb_connected): Declare.
18028 (disconnected_tracing): Declare.
18029 (stop_tracing): Declare.
18031 * server.c (handle_query) <qSupported>: Report support for
18032 disconnected tracing.
18033 (queue_stop_reply_callback): Account for running threads.
18034 (gdb_wants_thread_stopped): New.
18035 (gdb_wants_all_threads_stopped): New.
18036 (gdb_reattached_process): New.
18037 (handle_status): Clear the `gdb_detached' flag of all processes.
18038 In all-stop, stop all threads.
18039 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18040 (process_serial_event): If the remote connection breaks, or if an
18041 exit was forced with "monitor exit", force an event loop exit.
18042 Handle disconnected tracing on detach.
18043 (handle_serial_event): Adjust.
18044 (handle_target_event): If GDB isn't connected, forward events back
18045 to the inferior, unless the last process exited, in which case,
18046 exit gdbserver. Adjust interface.
18048 * remote-utils.c (remote_open): Don't block in accept. Instead
18049 register an event loop source on the listen socket file
18050 descriptor. Refactor bits into ...
18051 (listen_desc): ... this new global.
18052 (gdb_connected): ... this new function.
18053 (enable_async_notification): ... this new function.
18054 (handle_accept_event): ... this new function.
18055 (remote_close): Clear remote_desc.
18057 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18059 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18061 (mourn_inferior): Define.
18062 (target_process_qsupported): Avoid the dangling else problem.
18063 (thread_stopped): Define.
18064 (pause_all): Define.
18065 (target_waitstatus_to_string): Declare.
18066 * target.c (target_waitstatus_to_string): New.
18068 * tracepoint.c (tracing): Make extern.
18069 (disconnected_tracing): New.
18070 (stop_tracing): Make extern. Handle tracing stops due to GDB
18072 (cmd_qtdisconnected): New.
18073 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18074 (handle_tracepoint_general_set): Handle QTDisconnected.
18076 * event-loop.c (event_handler_func): Change return type to int.
18077 (process_event): Bail out if the event handler wants the event
18079 (handle_file_event): Ditto.
18080 (start_event_loop): Bail out if the event handler wants the event
18083 * nto-low.c (nto_target_ops): Adjust.
18084 * spu-low.c (spu_wait): Don't remove the process here.
18085 (spu_target_ops): Adjust.
18086 * win32-low.c (win32_wait): Don't remove the process here.
18087 (win32_target_ops): Adjust.
18089 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18091 * regcache.c (realloc_register_cache): Invalidate inferior's
18092 regcache before recreating it.
18094 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18096 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18098 2010-04-09 Stan Shebs <stan@codesourcery.com>
18099 Pedro Alves <pedro@codesourcery.com>
18101 * server.h (LONGEST): New.
18102 (struct thread_info) <while_stepping>: New field.
18103 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18105 (initialize_tracepoint, handle_tracepoint_general_set)
18106 (handle_tracepoint_query, tracepoint_finished_step)
18107 (tracepoint_was_hit, release_while_stepping_state_list):
18108 (current_traceframe): Declare.
18109 * server.c (handle_general_set): Handle tracepoint packets.
18110 (read_memory): New.
18111 (write_memory): New.
18112 (handle_search_memory_1): Use read_memory.
18113 (handle_query): Report support for conditional tracepoints, trace
18114 state variables, and tracepoint sources. Handle tracepoint
18116 (main): Initialize the tracepoints module.
18117 (process_serial_event): Handle traceframe reads/writes.
18119 * linux-low.c (handle_tracepoints): New.
18120 (linux_wait_1): Call it.
18121 (linux_resume_one_lwp): Handle while-stepping.
18122 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18123 (linux_target_ops): Install them.
18124 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18126 * linux-x86-low.c (x86_supports_tracepoints): New.
18127 (the_low_target). Install it.
18129 * mem-break.h (delete_breakpoint): Declare.
18130 * mem-break.c (delete_breakpoint): Make external.
18132 * target.h (struct target_ops): Add `supports_tracepoints',
18133 `read_pc', and `write_pc' fields.
18134 (target_supports_tracepoints): Define.
18135 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18138 * regcache.h (struct regcache) <registers_owned>: New field.
18139 (init_register_cache, regcache_cpy): Declare.
18140 (regcache_read_pc, regcache_write_pc): Declare.
18141 (register_cache_size): Declare.
18142 (supply_regblock): Declare.
18143 * regcache.c (init_register_cache): New.
18144 (new_register_cache): Use it.
18145 (regcache_cpy): New.
18146 (register_cache_size): New.
18147 (supply_regblock): New.
18148 (regcache_read_pc, regcache_write_pc): New.
18150 * tracepoint.c: New.
18152 * Makefile.in (OBS): Add tracepoint.o.
18153 (tracepoint.o): New rule.
18155 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18157 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18159 (i386-mmx.c): Likewise.
18160 (i386-mmx-linux.o): Likewise.
18161 (i386-mmx-linux.c): Likewise.
18163 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18164 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18165 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18166 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18168 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18169 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18170 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18172 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18174 * Makefile.in (clean): Updated.
18176 (i386-avx.c): Likewise.
18177 (i386-avx-linux.o): Likewise.
18178 (i386-avx-linux.c): Likewise.
18179 (amd64-avx.o): Likewise.
18180 (amd64-avx.c): Likewise.
18181 (amd64-avx-linux.o): Likewise.
18182 (amd64-avx-linux.c): Likewise.
18184 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18185 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18186 (srv_amd64_regobj): Add amd64-avx.o.
18187 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18188 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18189 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18190 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18191 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18192 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18193 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18195 * i387-fp.c: Include "i386-xstate.h".
18197 (i387_cache_to_xsave): Likewise.
18198 (i387_xsave_to_cache): Likewise.
18199 (x86_xcr0): Likewise.
18201 * i387-fp.h (i387_cache_to_xsave): Likewise.
18202 (i387_xsave_to_cache): Likewise.
18203 (x86_xcr0): Likewise.
18205 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18206 * linux-crisv32-low.c (target_regsets): Likewise.
18207 * linux-m68k-low.c (target_regsets): Likewise.
18208 * linux-mips-low.c (target_regsets): Likewise.
18209 * linux-ppc-low.c (target_regsets): Likewise.
18210 * linux-s390-low.c (target_regsets): Likewise.
18211 * linux-sh-low.c (target_regsets): Likewise.
18212 * linux-sparc-low.c (target_regsets): Likewise.
18213 * linux-xtensa-low.c (target_regsets): Likewise.
18215 * linux-low.c: Include <sys/uio.h>.
18216 (regsets_fetch_inferior_registers): Support nt_type.
18217 (regsets_store_inferior_registers): Likewise.
18218 (linux_process_qsupported): New.
18219 (linux_target_ops): Add linux_process_qsupported.
18221 * linux-low.h (regset_info): Add nt_type.
18222 (linux_target_ops): Add process_qsupported.
18224 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18226 (init_registers_i386_avx_linux): New.
18227 (init_registers_amd64_avx_linux): Likewise.
18228 (xmltarget_i386_linux_no_xml): Likewise.
18229 (xmltarget_amd64_linux_no_xml): Likewise.
18230 (PTRACE_GETREGSET): Likewise.
18231 (PTRACE_SETREGSET): Likewise.
18232 (x86_fill_xstateregset): Likewise.
18233 (x86_store_xstateregset): Likewise.
18234 (use_xml): Likewise.
18235 (x86_linux_update_xmltarget): Likewise.
18236 (x86_linux_process_qsupported): Likewise.
18237 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18238 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18239 init_registers_i386_linux here. Call
18240 x86_linux_update_xmltarget.
18241 (the_low_target): Add x86_linux_process_qsupported.
18243 * server.c (handle_query): Call target_process_qsupported.
18245 * target.h (target_ops): Add process_qsupported.
18246 (target_process_qsupported): New.
18248 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18250 * inferiors.c (add_thread): Set last_status kind to
18251 TARGET_WAITKIND_IGNORE.
18252 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18253 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18254 (linux_wait_1): Move `thread' local definition to block that uses
18255 it. Don't NULL initialize `event_child'.
18256 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18257 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18258 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18260 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18262 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18263 an extended waitstatus, or by a watchpoint.
18264 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18265 thread was stepping or has been stopped by a watchpoint.
18267 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18269 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18270 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18271 of another, then delete the previous, and validate all
18273 (validate_inserted_breakpoint): New.
18274 (delete_disabled_breakpoints): New.
18275 (validate_breakpoints): New.
18276 (check_mem_read): Validate breakpoints before trusting their
18277 shadow. Delete disabled breakpoints.
18278 (check_mem_write): Validate breakpoints before trusting they
18279 should be inserted. Delete disabled breakpoints.
18280 * mem-break.h (validate_breakpoints):
18281 * server.c (handle_query): Validate breakpoints when we see a
18284 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18286 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18287 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18288 if we could tell there's a GDB breakpoint at stop_pc.
18289 (need_step_over_p): Don't do a step over if we find a GDB
18290 breakpoint at the resume PC.
18292 * mem-break.c (struct raw_breakpoint): New.
18293 (enum bkpt_type): New type `gdb_breakpoint'.
18294 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18295 fields. New field `raw'.
18296 (find_raw_breakpoint_at): New.
18297 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18298 breakpoint instead.
18299 (set_breakpoint_at): Adjust.
18300 (delete_raw_breakpoint): New.
18301 (release_breakpoint): New.
18302 (delete_breakpoint): Rename to...
18303 (delete_breakpoint_1): ... this. Add proc parameter. Use
18304 release_breakpoint. Return ENOENT.
18305 (delete_breakpoint): Reimplement.
18306 (find_breakpoint_at): Delete.
18307 (find_gdb_breakpoint_at): New.
18308 (delete_breakpoint_at): Delete.
18309 (set_gdb_breakpoint_at): New.
18310 (delete_gdb_breakpoint_at): New.
18311 (gdb_breakpoint_here): New.
18312 (set_reinsert_breakpoint): Use release_breakpoint.
18313 (uninsert_breakpoint): Rename to ...
18314 (uninsert_raw_breakpoint): ... this.
18315 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18316 (reinsert_raw_breakpoint): Change parameter type to
18318 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18320 (check_breakpoints): Adjust. Use release_breakpoint.
18321 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18322 (breakpoint_inserted_here): Ditto.
18323 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18324 Don't trust the breakpoint's shadow if it is not inserted.
18325 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18326 (delete_all_breakpoints): Adjust.
18327 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18328 use delete_breakpoint_1.
18330 * mem-break.h (breakpoints_supported): Delete declaration.
18331 (set_gdb_breakpoint_at): Declare.
18332 (gdb_breakpoint_here): Declare.
18333 (delete_breakpoint_at): Delete.
18334 (delete_gdb_breakpoint_at): Declare.
18336 * server.h (struct raw_breakpoint): Forward declare.
18337 (struct process_info): New field `raw_breakpoints'.
18339 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18342 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18344 * linux-low.c (status_pending_p_callback): Fix comment.
18345 (linux_wait_for_event_1): Move most of the internal breakpoint
18346 handling from here...
18347 (linux_wait_1): ... to here.
18348 (count_events_callback): New.
18349 (select_singlestep_lwp_callback): New.
18350 (select_event_lwp_callback): New.
18351 (cancel_breakpoints_callback): New.
18352 (select_event_lwp): New.
18353 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18354 priority to all LWPs that have had events that should be reported
18355 to the client. Cancel breakpoints when about to reporting the
18356 event to the client, not while stopping lwps. No longer cancel
18357 finished single-steps here.
18358 (cancel_finished_single_step): Delete.
18359 (cancel_finished_single_steps): Delete.
18361 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18363 * mem-break.c (enum bkpt_type): New.
18364 (struct breakpoint): New field `type'.
18365 (set_breakpoint_at): Change return type to struct breakpoint
18366 pointer. Set type to `other_breakpoint' by default.
18367 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18368 in the breakpoint list.
18369 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18370 (reinsert_breakpoint): Rename to ...
18371 (reinsert_raw_breakpoint): ... this.
18372 (reinsert_breakpoints_at): Adjust.
18373 * mem-break.h (struct breakpoint): Declare.
18374 (set_breakpoint_at): Change return type to struct breakpoint
18377 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18379 * server.c (handle_query): Assign, not compare.
18381 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18383 Teach linux gdbserver to step-over-breakpoints.
18385 * linux-low.c (can_hardware_single_step): New.
18386 (supports_breakpoints): New.
18387 (handle_extended_wait): If stopping threads, read the stop pc of
18388 the new cloned LWP.
18390 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18391 low target doesn't support retrieving the PC.
18392 (add_lwp): Set last_resume_kind to resume_continue.
18393 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18394 (linux_attach): Don't clear stop_expected. Set the lwp's
18395 last_resume_kind to resume_stop.
18396 (linux_detach_one_lwp): Don't check for removed breakpoints.
18397 (check_removed_breakpoint): Delete.
18398 (status_pending_p): Rename to ...
18399 (status_pending_p_callback): ... this. Don't check for removed
18400 breakpoints. Don't consider threads that are stopped from GDB's
18402 (linux_wait_for_lwp): Always read the stop_pc here.
18403 (cancel_breakpoint): New.
18404 (step_over_bkpt): New global.
18405 (linux_wait_for_event_1): Implement stepping over breakpoints.
18406 (gdb_wants_lwp_stopped): New.
18407 (gdb_wants_all_stopped): New.
18408 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18409 single-step traps here. Store the thread's last reported target
18411 (send_sigstop): Don't clear stop_expected. Always set it,
18413 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18414 (cancel_finished_single_step): New.
18415 (cancel_finished_single_steps): New.
18416 (wait_for_sigstop): Don't cancel finished single-step traps here.
18417 (linux_resume_one_lwp): Don't check for removed breakpoints.
18418 Don't set `step' on non-hardware step archs.
18419 (linux_set_resume_request): Ignore resume_stop requests if already
18420 stopping or stopped. Set the lwp's last_resume_kind.
18421 (resume_status_pending_p): Don't check for removed breakpoints.
18422 (need_step_over_p): New.
18423 (start_step_over): New.
18424 (finish_step_over): New.
18425 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18426 requests. Clear the thread's last reported target waitstatus.
18427 Don't use the `suspended' flag. Don't consider pending breakpoints.
18428 (linux_resume): Start a step-over if necessary.
18429 (proceed_one_lwp): New.
18430 (proceed_all_lwps): New.
18431 (unstop_all_lwps): New.
18432 * linux-low.h (struct lwp_info): Rewrite comment for the
18433 `suspended' flag. Add the `stop_pc' field. Delete the
18434 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18435 Add `'last_resume_kind' and `need_step_over' fields.
18436 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18437 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18438 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18439 (set_raw_breakpoint_at): New.
18440 (set_breakpoint_at): Rewrite to use it.
18441 (reinsert_breakpoint_handler): Delete.
18442 (set_reinsert_breakpoint): New.
18443 (reinsert_breakpoint_by_bp): Delete.
18444 (delete_reinsert_breakpoints): New.
18445 (uninsert_breakpoint): Rewrite.
18446 (uninsert_breakpoints_at): New.
18447 (reinsert_breakpoint): Rewrite.
18448 (reinsert_breakpoints_at): New.
18449 (check_breakpoints): Rewrite.
18450 (breakpoint_here): New.
18451 (breakpoint_inserted_here): New.
18452 (check_mem_read): Adjust.
18453 * mem-break.h (breakpoints_supported, breakpoint_here)
18454 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18455 (reinsert_breakpoint_by_bp): Delete declaration.
18456 (delete_reinsert_breakpoints): Declare.
18457 (reinsert_breakpoint): Delete declaration.
18458 (reinsert_breakpoints_at): Declare.
18459 (uninsert_breakpoint): Delete declaration.
18460 (uninsert_breakpoints_at): Declare.
18461 (check_breakpoints): Adjust prototype.
18462 * server.h: Adjust include order.
18463 (struct thread_info): Declare here. Add a `last_status' field.
18465 2010-03-23 Michael Snyder <msnyder@vmware.com>
18467 * server.c (crc32): New function.
18468 (handle_query): Add handling for 'qCRC:' request.
18470 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18472 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18473 lwp had been stopped by a watchpoint.
18475 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18477 * server.h (internal_error): Declare.
18478 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18479 * utils.c (internal_error): New function.
18481 2010-03-15 Andreas Schwab <schwab@redhat.com>
18483 * configure.srv: Fix typo setting srv_regobj.
18485 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18487 * linux-low.c (fetch_register): Avoid passing a non string literal
18489 (usr_store_inferior_registers): Ditto.
18491 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18493 * linux-low.c (linux_write_memory): Bail out early if peeking
18496 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18498 * linux-low.h (struct lwp_info): New fields
18499 `stopped_by_watchpoint' and `stopped_data_address'.
18500 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18501 here, and cache them in the lwp object.
18502 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18504 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18506 (linux_stopped_by_watchpoint): Rewrite.
18507 (linux_stopped_data_address): Rewrite.
18509 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18511 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18512 switching the current inferior, not before.
18514 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18516 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18517 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18518 i386-linux.c and amd64-linux.c.
18519 (reg-i386.o): Removed.
18520 (reg-i386.c): Likewise.
18521 (reg-i386-linux.o): Likewise.
18522 (reg-i386-linux.c): Likewise.
18523 (reg-x86-64.o): Likewise.
18524 (reg-x86-64.c): Likewise.
18525 (reg-x86-64-linux.o): Likewise.
18526 (reg-x86-64-linux.c): Likewise.
18528 (i386.c): Likewise.
18529 (i386-linux.o): Likewise.
18530 (i386-linux.c): Likewise.
18531 (amd64.o): Likewise.
18532 (amd64.c): Likewise.
18533 (amd64-linux.o): Likewise.
18534 (amd64-linux.c): Likewise.
18536 * configure.srv (srv_i386_regobj): New.
18537 (srv_i386_linux_regobj): Likewise.
18538 (srv_amd64_regobj): Likewise.
18539 (srv_amd64_linux_regobj): Likewise.
18540 (srv_i386_32bit_xmlfiles): Likewise.
18541 (srv_i386_64bit_xmlfiles): Likewise.
18542 (srv_i386_xmlfiles): Likewise.
18543 (srv_amd64_xmlfiles): Likewise.
18544 (srv_i386_linux_xmlfiles): Likewise.
18545 (srv_amd64_linux_xmlfiles): Likewise.
18546 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18547 srv_xmlfiles to $srv_i386_xmlfiles.
18548 (i[34567]86-*-mingw32ce*): Likewise.
18549 (i[34567]86-*-mingw*): Likewise.
18550 (i[34567]86-*-nto*): Likewise.
18551 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18552 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18553 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18554 (x86_64-*-linux*): Likewise.
18556 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18557 (init_registers_amd64_linux): New.
18558 (x86_arch_setup): Replace init_registers_x86_64_linux with
18559 init_registers_amd64_linux.
18561 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18563 * configure.ac: Check for libdl. If it is not available link against
18564 static libthread_db.
18565 * configure: Regenerate.
18567 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18571 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18572 handing a read watchpoint.
18573 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18575 2010-02-12 Doug Evans <dje@google.com>
18577 * linux-low.c (linux_supports_tracefork_flag): Document.
18578 (linux_look_up_symbols): Add comment.
18580 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18582 * regcache.c (supply_register): Clear regcache if buf is NULL.
18584 2010-02-02 Nicolas Roche <roche@sourceware.org>
18585 Joel Brobecker <brobecker@adacore.com>
18587 * inferiors.c (find_inferior): Add function documentation.
18588 (unloaded_dll): Handle the case where the unloaded dll has not
18589 been previously registered in the dll list.
18591 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18593 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18594 (thumb2_breakpoint): New.
18595 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18597 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18599 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18600 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18603 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18605 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18607 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18609 * linux-s390-low.c (s390_collect_ptrace_register)
18610 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18612 2010-01-21 Doug Evans <dje@google.com>
18614 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18615 (PTRACE_ARG4_TYPE): New macro.
18616 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18617 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18618 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18619 (usr_store_inferior_registers): Ditto.
18620 (linux_read_memory, linux_write_memory): Ditto.
18621 (linux_test_for_tracefork): Ditto.
18623 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18624 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18626 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18628 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18631 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18633 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18634 prototype to take a regcache. Adjust.
18636 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18638 * regcache.h (struct thread_info): Forward declare.
18639 (struct regcache): New.
18640 (new_register_cache): Adjust prototype.
18641 (get_thread_regcache): Declare.
18642 (free_register_cache): Adjust prototype.
18643 (registers_to_string, registers_from_string): Ditto.
18644 (supply_register, supply_register_by_name, collect_register)
18645 (collect_register_as_string, collect_register_by_name): Ditto.
18646 * regcache.c (struct inferior_regcache_data): Delete.
18647 (get_regcache): Rename to ...
18648 (get_thread_regcache): ... this. Adjust. Switch inferior before
18649 fetching registers.
18650 (regcache_invalidate_one): Adjust.
18651 (regcache_invalidate): Fix prototype.
18652 (new_register_cache): Return the new register cache.
18653 (free_register_cache): Change prototype.
18654 (realloc_register_cache): Adjust.
18655 (registers_to_string): Change prototype to take a regcache. Adjust.
18656 (registers_from_string): Ditto.
18657 (register_data): Ditto.
18658 (supply_register): Ditto.
18659 (supply_register_by_name): Ditto.
18660 (collect_register): Ditto.
18661 (collect_register_as_string): Ditto.
18662 (collect_register_by_name): Ditto.
18663 * server.c (process_serial_event): Adjust.
18664 * linux-low.h (regset_fill_func, regset_store_func): Change
18666 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18668 * linux-low.c (get_stop_pc): Adjust.
18669 (check_removed_breakpoint): Adjust.
18670 (linux_wait_for_event): Adjust.
18671 (linux_resume_one_lwp): Adjust.
18672 (fetch_register): Add regcache parameter. Adjust.
18673 (usr_store_inferior_registers): Ditto.
18674 (regsets_fetch_inferior_registers): Ditto.
18675 (regsets_store_inferior_registers): Ditto.
18676 (linux_fetch_registers, linux_store_registers): Ditto.
18677 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18679 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18681 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18682 prototype to take a regcache.
18683 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18684 * remote-utils.c (convert_ascii_to_int, outreg)
18685 (prepare_resume_reply): Change prototype to take a regcache.
18687 * target.h (struct target_ops) <fetch_registers, store_registers>:
18688 Change prototype to take a regcache.
18689 (fetch_inferior_registers, store_inferior_registers): Change
18690 prototype to take a regcache. Adjust.
18691 * proc-service.c (ps_lgetregs): Adjust.
18692 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18693 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18694 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18695 take a regcache. Adjust.
18696 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18697 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18698 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18699 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18700 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18701 (cris_cannot_fetch_register):
18702 (cris_breakpoint_at): Change prototype to take a regcache.
18704 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18705 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18706 to take a regcache. Adjust.
18707 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18709 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18710 take a regcache. Adjust.
18711 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18712 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18713 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18714 * linux-mips-low.c (mips_get_pc):
18715 (mips_set_pc): Change prototype to take a regcache. Adjust.
18716 (mips_reinsert_addr): Adjust.
18717 (mips_collect_register): Change prototype to take a regcache.
18719 (mips_supply_register):
18720 (mips_collect_register_32bit, mips_supply_register_32bit)
18721 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18722 (mips_store_fpregset): Ditto.
18723 * linux-ppc-low.c (ppc_supply_ptrace_register)
18724 (ppc_supply_ptrace_register): Ditto.
18725 (parse_spufs_run): Adjust.
18726 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18727 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18728 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18729 take a regcache. Adjust.
18730 * linux-s390-low.c (s390_collect_ptrace_register)
18731 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18732 (s390_set_pc): Change prototype to take a regcache. Adjust.
18733 (s390_arch_setup): Adjust.
18734 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18735 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18736 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18737 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18738 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18740 (sparc_breakpoint_at): Adjust.
18741 * linux-xtensa-low.c (xtensa_fill_gregset):
18742 (xtensa_store_gregset):
18743 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18744 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18745 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18746 prototype to take a regcache. Adjust.
18747 * win32-arm-low.c (arm_fetch_inferior_register)
18748 (arm_store_inferior_register): Change prototype to take a
18750 * win32-i386-low.c (i386_fetch_inferior_register)
18751 (i386_store_inferior_register): Change prototype to take a
18753 * win32-low.c (child_fetch_inferior_registers)
18754 (child_store_inferior_registers): Change prototype to take a
18756 (win32_wait): Adjust.
18757 (win32_fetch_inferior_registers): Change prototype to take a
18759 (win32_store_inferior_registers): Adjust.
18760 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18761 store_inferior_register>: Change prototype to take a regcache.
18763 2010-01-20 Doug Evans <dje@google.com>
18765 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18767 (linux_wait_for_event1, linux_init_signals): Ditto.
18768 (W_STOPCODE): Provide definition if missing.
18770 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18772 * linux-low.c (linux_core_of_thread): New.
18773 (compare_ints, show_process, list_threads): New.
18774 (linux_qxfer_osdata): Report threads and cores.
18775 (linux_target_op): Register linux_core_of_thread.
18776 * remote-utils.c (prepare_resume_reply): Report the core.
18777 (buffer_xml_printf): Support %d specifier.
18778 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18780 (handle_query): Handle qXfer:threads. Announce availability
18782 * target.h (struct target_ops): New field core_of_thread.
18784 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18786 * Makefile.in (clean): Remove new generated files.
18787 (reg-s390.o, reg-s390.c): Remove rules.
18788 (reg-s390x.o, reg-s390x.c): Likewise.
18789 (s390-linux32.o, s390-linux32.c): Add rules.
18790 (s390-linux64.o, s390-linux64.c): Likewise.
18791 (s390x-linux64.o, s390x-linux64.c): Likewise.
18792 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18793 * linux-s390-low.c: Include <elf.h>.
18794 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18795 (init_registers_s390): Remove prototype.
18796 (init_registers_s390x): Likewise.
18797 (init_registers_s390_linux32): Add prototype.
18798 (init_registers_s390_linux64): Likewise.
18799 (init_registers_s390x_linux64): Likewise.
18800 (s390_num_regs_3264): New define.
18801 (s390_regmap_3264): New global variable.
18802 (s390_cannot_fetch_register): Remove obsolete check.
18803 (s390_cannot_store_register): Likewise.
18804 (s390_collect_ptrace_register): Handle upper/lower register halves.
18805 (s390_supply_ptrace_register): Likewise.
18806 (s390_fill_gregset): Update to register number changes.
18807 (s390_get_hwcap): New routine.
18808 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18809 Install appropriate regmap and register set.
18811 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18813 * server.c (gdbserver_version): Update copyright year to 2010.
18814 * gdbreplay.c (gdbreplay_version): Likewise.
18816 2009-12-28 Doug Evans <dje@google.com>
18818 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18819 elf/external.h. Include <elf.h> instead but only if necessary.
18821 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18823 * linux-low.c (linux_remove_process): Remove `detaching'
18824 parameter. Don't release/detach from thread_db here.
18825 (linux_kill): Release/detach from thread_db here, ...
18826 (linux_detach): ... and here, before actually detaching.
18827 (linux_wait_1): ... and here, when a process exits.
18828 * thread-db.c (any_thread_of): New.
18829 (thread_db_free): Switch the current inferior to a thread of the
18832 2009-12-21 Doug Evans <dje@google.com>
18834 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18836 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18837 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18838 warning ifndef __NR_tkill. Move setting of errno there too.
18839 Delete unnecessary resetting of errno after syscall.
18840 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18842 * configure.ac: Check for dladdr.
18843 * config.in: Regenerate.
18844 * configure: Regenerate.
18845 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18846 (try_thread_db_load): Update.
18848 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18850 2009-12-18 Doug Evans <dje@google.com>
18852 * event-loop.c: Include unistd.h if it exists.
18854 * linux-low.c (my_waitpid): Move definition away from being in
18855 between linux_tracefork_child/linux_test_for_tracefork.
18857 * gdb_proc_service.h (psaddr_t): Fix type.
18858 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18859 signature to match glibc.
18861 2009-12-16 Doug Evans <dje@google.com>
18863 * linux-low.c (linux_read_memory): Fix argument to read.
18865 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18867 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18868 events, don't leave current_inferior pointing at null.
18870 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18872 * win32-low.c (LOG): Delete.
18873 (OUTMSG): Output to stderr.
18874 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18875 on compile time LOG macro.
18876 (win32_wait): Fix debug output.
18878 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18880 * win32-low.c (win32_add_one_solib): If the dll name is
18881 "ntdll.dll", prepend the system directory to the dll path.
18883 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18885 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18887 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18888 Vladimir Prus <vladimir@codesourcery.com>
18890 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18891 * configure.ac: Check for __mcoldfire__ and set
18892 gdb_cv_m68k_is_coldfire.
18893 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18894 reg-cf.o and reg-m68k.o.
18895 * configure: Regenerated.
18897 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18899 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18900 Pass it to thread_db_free.
18901 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18902 proper `detaching' argument to linux_remove_process.
18903 * linux-low.h (thread_db_free): Add `detaching' parameter.
18904 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18906 (thread_db_free): Add `detaching' parameter. Only
18907 call td_ta_clear_event if detaching from process.
18909 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18911 * thread-db.c (thread_db_free): Fix typo.
18913 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18916 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18918 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18920 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18921 with an i686 compiler.
18922 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18924 * configure: Rebuilt.
18926 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18930 * server.c (handle_search_memory_1): Correct read_addr initialization
18931 in loop for searching subsequent chunks.
18933 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18935 * configure.ac: New --with-libthread-db option.
18936 * thread-db.c: Allow direct dependence on libthread_db.
18937 (thread_db_free): Adjust.
18938 * config.in: Regenerate.
18939 * configure: Likewise.
18941 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18944 * thread-db.c (attach_thread): New function.
18945 (maybe_attach_thread): Return success/failure.
18946 (find_new_threads_callback): Adjust.
18947 (thread_db_find_new_threads): Loop until no new threads.
18949 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18951 * proc-service.c (ps_lgetregs): Formatting.
18953 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18955 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18956 * configure.ac: Adjust.
18957 * linux-low.h (struct process_info_private): Move members to struct
18959 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18960 * linux-low.c (linux_remove_process): Adjust.
18961 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18962 * server.c (handle_query): Move code ...
18963 (handle_monitor_command): ... here. New function.
18964 * target.h (struct target_ops): New member.
18965 * thread-db.c (struct thread_db): New.
18966 (libthread_db_search_path): New variable.
18967 (thread_db_create_event, thread_db_enable_reporting)
18968 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
18969 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
18970 (try_thread_db_load_1, dladdr_to_soname): New functions.
18971 (try_thread_db_load, thread_db_load_search): New functions.
18972 (thread_db_init): Search for libthread_db.
18973 (thread_db_free): New function.
18974 (thread_db_handle_monitor_command): Likewise.
18975 * config.in: Regenerate.
18976 * configure: Regenerate.
18978 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
18980 * spu-low.c (spu_kill): Wait for inferior to terminate.
18981 Call clear_inferiors.
18982 (spu_detach): Call clear_inferiors.
18984 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18986 * aclocal.m4: Regenerate.
18987 * config.in: Likewise.
18988 * configure: Likewise.
18990 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18992 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
18993 (parse_spufs_run): New function.
18994 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
18995 (ppc_breakpoint_at): Handle SPU breakpoints.
18997 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
18999 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19000 (SPUFS_MAGIC): Define.
19001 (spu_enumerate_spu_ids): New function.
19002 (linux_qxfer_spu): New function.
19003 (linux_target_ops): Install linux_qxfer_spu.
19005 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19007 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19008 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19009 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19010 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19011 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19012 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19013 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19014 (init_registers_powerpc_cell32l): Add prototype.
19015 (init_registers_powerpc_cell64l): Likewise.
19016 (ppc_arch_setup): Detect Cell/B.E. architecture.
19018 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19020 * Makefile.in (datarootdir): New variable.
19022 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19024 * linux-low.c (linux_write_memory): Update debugging output.
19025 * Makefile.in (clean): Add new descriptions.
19026 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19027 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19028 * configure.srv: Add new files for arm*-*-linux*.
19029 * linux-arm-low.c: Add new declarations.
19030 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19031 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19032 (HWCAP_VFPv3D16): New.
19033 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19034 instead of __IWMMXT__.
19035 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19036 (arm_arch_setup): New.
19037 (target_regsets): Remove #ifdef. Add VFP regset.
19038 (the_low_target): Use arm_arch_setup.
19040 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19042 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19043 the main thread again.
19045 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19047 Adding Neutrino gdbserver.
19048 * configure: Regenerated.
19049 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19050 * configure.srv (i[34567]86-*-nto*): New target.
19051 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19052 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19053 (nto_comctrl) [__QNX__]: New function.
19054 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19056 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19058 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19061 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19062 Pedro Alves <pedro@codesourcery.com>
19064 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19065 don't support CONTEXT_EXTENDED_REGISTERS.
19066 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19067 (the_low_target): Install them.
19068 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19069 failing with ERROR_PIPE_NOT_CONNECTED.
19071 2009-06-30 Doug Evans <dje@google.com>
19072 Pierre Muller <muller@ics.u-strasbg.fr>
19074 Add h/w watchpoint support to x86-linux, win32-i386.
19075 * Makefile.in (SFILES): Add i386-low.c
19076 (i386_low_h): Define.
19077 (i386-low.o): Add dependencies.
19078 (linux-x86-low.o): Add i386-low.h dependency.
19079 (win32-i386-low.o): Ditto.
19080 * i386-low.c: New file.
19081 * i386-low.h: New file.
19082 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19083 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19084 * linux-low.c (linux_add_process): Initialize arch_private.
19085 (linux_remove_process): Free arch_private.
19086 (add_lwp): Initialize arch_private.
19087 (delete_lwp): Free arch_private.
19088 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19090 * linux-low.h (process_info_private): New member arch_private.
19091 (lwp_info): New member arch_private.
19092 (linux_target_ops): New members new_process, new_thread,
19094 (ptid_of): New macro.
19095 * linux-x86-low.c: Include stddef.h, i386-low.h.
19096 (arch_process_info): New struct.
19097 (arch_lwp_info): New struct.
19098 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19099 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19100 (i386_dr_low_get_status): New function.
19101 (x86_insert_point, x86_remove_point): New functions.
19102 (x86_stopped_by_watchpoint): New function.
19103 (x86_stopped_data_address): New function.
19104 (x86_linux_new_process, x86_linux_new_thread): New functions.
19105 (x86_linux_prepare_to_resume): New function.
19106 (the_low_target): Add entries for insert_point, remove_point,
19107 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19109 * server.c (debug_hw_points): New global.
19110 (monitor_show_help): Document set debug-hw-points.
19111 (handle_query): Process "set debug-hw-points".
19112 * server.h (debug_hw_points): Declare.
19113 (paddress): Declare.
19114 * utils.c (NUMCELLS, CELLSIZE): New macros.
19115 (get_sell, xsnprintf, paddress): New functions.
19116 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19117 remove_point, stopped_by_watchpoint, stopped_data_address.
19118 * win32-i386-low.c: Include i386-low.h.
19119 (debug_reg_state): Replaces dr.
19120 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19121 (i386_dr_low_get_status): New function.
19122 (i386_insert_point, i386_remove_point): New functions.
19123 (i386_stopped_by_watchpoint): New function.
19124 (i386_stopped_data_address): New function.
19125 (i386_initial_stuff): Update.
19126 (get_thread_context,set_thread_context,i386_thread_added): Update.
19127 (the_low_target): Add entries for insert_point,
19128 remove_point, stopped_by_watchpoint, stopped_data_address.
19129 * win32-low.c (win32_insert_watchpoint): New function.
19130 (win32_remove_watchpoint): New function.
19131 (win32_stopped_by_watchpoint): New function.
19132 (win32_stopped_data_address): New function.
19133 (win32_target_ops): Add entries for insert_watchpoint,
19134 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19135 * win32-low.h (win32_target_ops): New members insert_point,
19136 remove_point, stopped_by_watchpoint, stopped_data_address.
19138 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19140 * server.c (process_serial_event): Re-return unsupported, not
19141 error, if the type isn't recognized. Re-allow supporting only
19142 insert or remove packets. Also call require_running for
19143 breakpoints. Add missing break statement to default case. Tidy.
19144 * target.h (struct target_ops): Rename insert_watchpoint to
19145 insert_point, and remove_watchpoint to remove_point.
19147 * linux-low.h (struct linux_target_ops): Likewise.
19148 * linux-low.c (linux_insert_watchpoint): Rename to ...
19149 (linux_insert_point): ... this. Adjust.
19150 (linux_remove_watchpoint): Rename to ...
19151 (linux_remove_point): ... this. Adjust.
19152 (linux_target_ops): Adjust.
19153 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19154 (cris_insert_point): ... this.
19155 (cris_remove_watchpoint): Rename to ...
19156 (cris_remove_point): ... this.
19157 (the_low_target): Adjust.
19159 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19161 * server.c (handle_v_kill): Pass signal_pid to
19162 kill_inferior if multi_process is zero.
19164 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19166 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19167 * target.h (target_ops): Comment for *_watchpoint to make it clear
19168 the functions can get types '0' and '1'.
19170 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19172 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19173 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19174 * regcache.c (get_regcache): Likewise.
19175 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19176 * win32-low.c (child_fetch_inferior_registers): Remove check for
19179 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19180 Pedro Alves <pedro@codesourcery.com>
19182 * target.h (struct target_ops) <supports_multi_process>: New
19184 (target_supports_multi_process): New.
19185 * server.c (handle_query): Even if GDB reports support, only
19186 enable multi-process if the target also supports it. Report
19187 multi-process support only if the target backend supports it.
19188 * linux-low.c (linux_supports_multi_process): New function.
19189 (linux_target_ops): Install it as target_supports_multi_process
19192 2009-05-24 Doug Evans <dje@google.com>
19194 Global renaming of find_thread_pid to find_thread_ptid.
19195 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19196 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19197 All callers updated.
19199 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19200 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19203 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19204 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19205 (linux_resume_one_lwp): Ditto.
19207 2009-05-23 Doug Evans <dje@google.com>
19209 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19210 from struct inferior_list_entry * to struct lwp_info *.
19211 All callers updated.
19213 2009-05-13 Doug Evans <dje@google.com>
19215 * linux-x86-low.c: Don't include assert.h.
19216 (x86_siginfo_fixup): Use fatal, not assert.
19217 (x86_arch_setup): Fix comment.
19219 2009-05-12 Doug Evans <dje@google.com>
19221 Biarch support for i386/amd64 gdbserver.
19222 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19223 Add linux-x86-low.c.
19224 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19225 (linux-x86-low.o): Add.
19226 * linux-x86-64-low.c: Delete.
19227 * linux-i386-low.c: Delete.
19228 * linux-x86-low.c: New file.
19229 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19231 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19233 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19234 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19235 (linux_child_pid_to_exec_file): New function.
19236 (elf_64_header_p, elf_64_file_p): New functions.
19237 (siginfo_fixup): New function.
19238 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19239 give target a chance to convert layout.
19240 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19241 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19243 2009-05-07 Doug Evans <dje@google.com>
19245 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19246 (regsets_store_inferior_registers): Ditto.
19248 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19252 * linux-low.c (must_set_ptrace_flags): Delete.
19253 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19255 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19256 `lwp->must_set_ptrace_flags' instead.
19257 (linux_wait_for_event_1): Set ptrace options here.
19258 (linux_wait_1): ... not here.
19260 2009-04-30 Doug Evans <dje@google.com>
19262 * inferiors.c (started_inferior_callback): New function.
19263 (attached_inferior_callback): New function.
19264 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19265 * server.c (print_started_pid, print_attached_pid): New functions.
19266 (detach_or_kill_for_exit): New function.
19267 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19268 * server.h (have_started_inferiors_p): Declare.
19269 (have_attached_inferiors_p): Declare.
19271 * inferiors.c (remove_process): Fix memory leak, free process.
19272 * linux-low.c (linux_remove_process): New function.
19273 (linux_kill): Call it instead of remove_process.
19274 (linux_detach, linux_wait_1): Ditto.
19276 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19278 * configure.srv: Add x86 Windows CE target.
19280 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19282 * inferiors.c (get_thread_process): Make global.
19283 * server.h (get_thread_process): Add prototype.
19284 * thread-db.c (find_one_thread): Use get_thread_process
19285 instead of current_process.
19286 (thread_db_get_tls_address): Do not crash if called when
19287 thread layer is not yet initialized.
19289 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19291 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19292 * spu-low.c (current_tid): Rename to ...
19293 (current_ptid): ... this.
19294 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19295 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19296 ptid_get_lwp (current_ptid) instead of current_tid.
19297 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19298 instead of current_tid. Use find_process_pid to verify pid
19299 argument is valid. Pass proper argument to remove_process.
19300 (spu_thread_alive): Compare current_ptid instead of current_tid.
19301 (spu_resume): Likewise.
19303 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19305 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19308 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19310 Implement the multiprocess extensions, and add linux multiprocess
19313 * server.h (ULONGEST): Declare.
19314 (struct ptid, ptid_t): New.
19315 (minus_one_ptid, null_ptid): Declare.
19316 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19317 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19318 (struct inferior_list_entry): Change `id' type from unsigned from
19320 (struct sym_cache, struct breakpoint, struct
19321 process_info_private): Forward declare.
19322 (struct process_info): Declare.
19323 (current_process): Declare.
19324 (all_processes): Declare.
19325 (initialize_inferiors): Declare.
19326 (add_thread): Adjust to use ptid_t.
19327 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19328 (add_process, remove_process, find_thread_pid): Declare.
19329 (find_inferior_id): Adjust to use ptid_t.
19330 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19331 (multi_process): Declare.
19332 (push_event): Adjust to use ptid_t.
19333 (read_ptid, write_ptid): Declare.
19334 (prepare_resume_reply): Adjust to use ptid_t.
19335 (clear_symbol_cache): Declare.
19336 * inferiors.c (all_processes): New.
19337 (null_ptid, minus_one_ptid): New.
19338 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19339 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19340 (add_thread): Change unsigned long to ptid. Remove gdb_id
19342 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19343 (gdb_id_to_thread): Rename to ...
19344 (find_thread_pid): ... this. Change unsigned long to ptid.
19345 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19346 (loaded_dll, pull_pid_from_list): Adjust.
19347 (add_process, remove_process, find_process_pid)
19348 (get_thread_process, current_process, initialize_inferiors): New.
19349 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19350 (struct target_waitstatus) <related_pid>: Ditto.
19351 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19352 return type to int.
19353 (struct target_ops) <join>: Add `pid' argument.
19354 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19355 (struct target_ops) <wait>: Add `ptid' field. Change return type
19357 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19358 (mywait): Add `ptid' argument. Change return type to ptid_t.
19359 (target_pid_to_str): Declare.
19360 * target.c (set_desired_inferior): Adjust to use ptids.
19361 (mywait): Add new `ptid' argument. Adjust.
19362 (target_pid_to_str): New.
19363 * mem-break.h (free_all_breakpoints): Declare.
19364 * mem-break.c (breakpoints): Delelete.
19365 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19366 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19367 to use per-process breakpoint list.
19368 (free_all_breakpoints): New.
19369 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19370 (symbol_cache, all_symbols_looked_up): Delete.
19372 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19374 (prepare_resume_reply): Change ptid argument's type from unsigned
19375 long to ptid_t. Adjust. Implement W;process and X;process.
19376 (free_sym_cache, clear_symbol_cache): New.
19377 (look_up_one_symbol): Adjust to per-process symbol cache. *
19378 * server.c (cont_thread, general_thread, step_thread): Change type
19380 (attached): Delete.
19381 (multi_process): New.
19382 (last_ptid): Change type to ptid_t.
19383 (struct vstop_notif) <ptid>: Change type to ptid_t.
19384 (queue_stop_reply, push_event): Change `ptid' argument's type to
19386 (discard_queued_stop_replies): Add `pid' argument.
19387 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19388 changes. Don't reference the `attached' global.
19389 (attach_inferior): Adjust to mywait interface changes.
19390 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19391 features. Handle and report "multiprocess+". Handle
19393 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19395 (handle_v_kill): New.
19396 (handle_v_stopped): Adjust to use target_pid_to_str.
19397 (handle_v_requests): Allow multiple attaches and runs when
19398 multiprocess extensions are in effect. Handle "vKill".
19399 (myresume): Adjust to use ptids.
19400 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19401 (handle_status): Adjust to discard_queued_stop_replies interface
19403 (first_thread_of, kill_inferior_callback)
19404 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19405 (main): Call initialize_inferiors. Adjust to use ptids, killing
19406 and detaching from all inferiors. Handle multiprocess packet
19408 * linux-low.h: Include gdb_proc_service.h.
19409 (struct process_info_private): New.
19410 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19411 <lwpid_of>: Use ptid_get_lwp.
19412 (get_lwp_thread): Adjust.
19413 (struct lwp_info): Add `dead' member.
19414 (find_lwp_pid): Declare.
19415 * linux-low.c (thread_db_active): Delete.
19416 (new_inferior): Adjust comment.
19417 (inferior_pid): Delete.
19418 (linux_add_process): New.
19419 (handle_extended_wait): Adjust.
19420 (add_lwp): Change unsigned long to ptid.
19421 (linux_create_inferior): Add process to processes table. Adjust
19422 to use ptids. Don't set new_inferior here.
19423 (linux_attach_lwp): Rename to ...
19424 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19425 it. Adjust to use ptids.
19426 (linux_attach_lwp): New.
19427 (linux_attach): Add process to processes table. Don't set
19429 (struct counter): New.
19430 (second_thread_of_pid_p, last_thread_of_process_p): New.
19431 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19432 multiple processes.
19433 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19434 processes. Remove process from process table.
19435 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19436 to multiple processes.
19437 (any_thread_of): New.
19438 (linux_detach): Add `pid' argument, and handle it. Remove process
19439 from processes table.
19440 (linux_join): Add `pid' argument. Handle it.
19441 (linux_thread_alive): Change unsighed long argument to ptid_t.
19442 Consider dead lwps as not being alive.
19443 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19444 threads we're not interested in.
19445 (same_lwp, find_lwp_pid): New.
19446 (linux_wait_for_lwp): Change `pid' argument's type from int to
19448 (linux_wait_for_event): Rename to ...
19449 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19450 from int to ptid_t. Adjust.
19451 (linux_wait_for_event): New.
19452 (linux_wait_1): Add `ptid' argument. Change return type to
19453 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19454 that exit from the process table.
19455 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19457 (mark_lwp_dead): New.
19458 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19459 stopping all threads, mark its main lwp as dead.
19460 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19462 (fetch_register, usr_store_inferior_registers)
19463 (regsets_fetch_inferior_registers)
19464 (regsets_store_inferior_registers, linux_read_memory)
19465 (linux_write_memory): Inline `inferior_pid'.
19466 (linux_look_up_symbols): Adjust to use per-process
19467 `thread_db_active'.
19468 (linux_request_interrupt): Adjust to use ptids.
19469 (linux_read_auxv): Inline `inferior_pid'.
19470 (initialize_low): Don't reference thread_db_active.
19471 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19472 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19473 (ps_getpid): Return the pid of the current inferior.
19474 * thread-db.c (proc_handle, thread_agent): Delete.
19475 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19477 (find_one_thread): Change argument type to ptid_t. Adjust to
19479 (maybe_attach_thread): Adjust to per-process data and ptids.
19480 (thread_db_find_new_threads): Ditto.
19481 (thread_db_init): Ditto.
19482 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19483 processes table. Adjust to use ptids.
19484 (spu_kill, spu_detach): Adjust interface. Remove process from
19486 (spu_join, spu_thread_alive): Adjust interface.
19487 (spu_wait): Adjust interface. Remove process from processes
19488 table. Adjust to use ptids.
19489 * win32-low.c (current_inferior_tid): Delete.
19490 (current_inferior_ptid): New.
19491 (debug_event_ptid): New.
19492 (thread_rec): Take a ptid. Adjust.
19493 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19494 (child_delete_thread): Ditto.
19495 (do_initial_child_stuff): Add `attached' argument. Add process to
19497 (child_fetch_inferior_registers, child_store_inferior_registers):
19499 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19500 (win32_attach): Pass 1 to do_initial_child_stuff.
19501 (win32_kill): Adjust interface. Remove process from processes
19503 (win32_detach): Ditto.
19504 (win32_join): Adjust interface.
19505 (win32_thread_alive): Take a ptid.
19506 (win32_resume): Adjust to use ptids.
19507 (get_child_debug_event): Ditto.
19508 (win32_wait): Adjust interface. Remove exiting process from
19511 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19513 Non-stop mode support.
19515 * server.h (non_stop): Declare.
19516 (gdb_client_data, handler_func): Declare.
19517 (delete_file_handler, add_file_handler, start_event_loop):
19519 (handle_serial_event, handle_target_event, push_event)
19520 (putpkt_notif): Declare.
19521 * target.h (enum resume_kind): New.
19522 (struct thread_resume): Replace `step' field by `kind' field.
19523 (TARGET_WNOHANG): Define.
19524 (struct target_ops) <wait>: Add `options' argument.
19525 <supports_non_stop, async, start_non_stop>: New fields.
19526 (target_supports_non_stop, target_async): New.
19527 (start_non_stop): Declare.
19528 (mywait): Add `options' argument.
19529 * target.c (mywait): Add `options' argument. Print child exit
19530 notifications here.
19531 (start_non_stop): New.
19532 * server.c (non_stop, own_buf, mem_buf): New globals.
19533 (struct vstop_notif): New.
19534 (notif_queue): New global.
19535 (queue_stop_reply, push_event, discard_queued_stop_replies)
19536 (send_next_stop_reply): New.
19537 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19539 (attach_inferior): In non-stop mode, don't wait for the target
19541 (handle_general_set): Handle QNonStop.
19542 (handle_query): When handling qC, return the current general
19543 thread, instead of the first thread of the list.
19544 (handle_query): If the backend supports non-stop mode, include
19545 QNonStop+ in the qSupported query response.
19546 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19548 (handle_v_attach, handle_v_run): Handle non-stop mode.
19549 (handle_v_stopped): New.
19550 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19551 (myresume): Adjust to use resume_kind. Handle non-stop.
19552 (queue_stop_reply_callback): New.
19553 (handle_status): Handle non-stop mode.
19554 (main): Clear non_stop flag on reconnection. Use the event-loop.
19555 Refactor serial protocol handling from here ...
19556 (process_serial_event): ... to this new function. When GDB
19557 selects any thread, select one here. In non-stop mode, wait until
19558 GDB acks all pending events before exiting.
19559 (handle_serial_event, handle_target_event): New.
19560 * remote-utils.c (remote_open): Install remote_desc in the event
19562 (remote_close): Remove remote_desc from the event loop.
19563 (putpkt_binary): Rename to...
19564 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19565 (putpkt_binary): New as wrapper around putpkt_binary_1.
19566 (putpkt_notif): New.
19567 (prepare_resume_reply): In non-stop mode, don't change the
19569 * event-loop.c: New.
19570 * Makefile.in (OBJ): Add event-loop.o.
19571 (event-loop.o): New rule.
19573 * linux-low.h (pid_of): Moved here.
19575 (get_lwp_thread): Use lwpid_of.
19576 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19577 * linux-low.c (pid_of): Delete.
19578 (inferior_pid): Use lwpid_of.
19579 (linux_event_pipe): New.
19580 (target_is_async_p): New.
19582 (handle_extended_wait): Use lwpid_of.
19583 (add_lwp): Don't set lwpid field.
19584 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19585 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19586 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19587 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19588 first. Adjust to linux_wait_for_event interface changes. Use
19590 (linux_detach): Don't delete the main lwp here.
19591 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19592 (status_pending_p): Don't consider explicitly suspended lwps.
19593 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19594 pointer. Add OPTIONS argument. Change return type to int. Use
19595 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19596 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19597 pointer. Add status pointer argument. Return a pid instead of a
19598 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19599 changes. In non-stop mode, don't switch to a random thread.
19600 (linux_wait): Rename to...
19601 (linux_wait_1): ... this. Add target_options argument, and handle
19602 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19603 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19604 clean exit and signal exit code. Don't stop all threads in
19605 non-stop mode. In all-stop mode, only stop all threads when
19606 reporting a stop to GDB. Handle explicit thread stop requests.
19607 (async_file_flush, async_file_mark): New.
19609 (send_sigstop): Use lwpid_of.
19610 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19611 interface changes. In non-stop mode, don't switch to a random
19613 (linux_resume_one_lwp): Use lwpid_of.
19614 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19615 (linux_resume_one_thread): ... this. Handle resume_stop. In
19616 non-stop mode, don't look for pending flag in all threads.
19617 (resume_status_pending_p): Don't consider explicitly suspended
19619 (my_waitpid): Reimplement. Emulate __WALL.
19620 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19622 (sigchld_handler, linux_supports_non_stop, linux_async)
19623 (linux_start_non_stop): New.
19624 (linux_target_ops): Register linux_supports_non_stop, linux_async
19625 and linux_start_non_stop.
19626 (initialize_low): Install SIGCHLD handler.
19627 * thread-db.c (thread_db_create_event, find_one_thread)
19628 (thread_db_get_tls_address): Use lwpid_of.
19629 * win32-low.c (win32_detach): Adjust to use resume_kind.
19630 (win32_wait): Add `options' argument.
19631 * spu-low.c (spu_resume): Adjust to use resume_kind.
19632 (spu_wait): Add `options' argument.
19634 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19636 Decouple target code from remote protocol.
19638 * target.h (enum target_waitkind): New.
19639 (struct target_waitstatus): New.
19640 (struct target_ops) <wait>: Return an unsigned long. Take a
19641 target_waitstatus pointer instead of a char pointer.
19642 (mywait): Likewise.
19643 * target.c (mywait): Change prototype to return an unsigned long.
19644 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19645 * server.h (thread_from_wait, old_thread_from_wait): Delete
19647 (prepare_resume_reply): Change prototype to take a
19649 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19650 (last_status, last_ptid): New.
19651 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19652 pid instead of a signal.
19653 (attach_inferior): Remove "status" and "signal" parameters.
19655 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19657 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19658 (handle_v_requests, myresume): Remove "status" and "signal"
19659 parameters. Adjust.
19660 (handle_status): New.
19661 (main): Delete local `status'. Adjust.
19662 * remote-utils.c: Include target.h.
19663 (prepare_resume_reply): Change prototype to take a
19664 target_waitstatus. Adjust.
19666 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19668 * spu-low.c (spu_wait): Adjust.
19669 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19671 (win32_wait): Adjust.
19673 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19675 * target.h (struct thread_resume): Delete leave_stopped member.
19676 (struct target_ops): Add a `n' argument to the `resume' callback.
19677 * server.c (start_inferior): Adjust.
19678 (handle_v_cont, myresume): Adjust.
19679 * linux-low.c (check_removed_breakpoint): Adjust to resume
19680 interface change, and to removed leave_stopped field.
19681 (resume_ptr): Delete.
19682 (struct thread_resume_array): New.
19683 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19684 resume interface change.
19685 (linux_continue_one_thread, linux_queue_one_thread)
19686 (resume_status_pending_p): Check if the resume field is NULL
19687 instead of checking the leave_stopped member.
19688 (linux_resume): Adjust to the target resume interface change.
19689 * spu-low.c (spu_resume): Adjust to the target resume interface
19691 * win32-low.c (win32_detach, win32_resume): Ditto.
19693 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19695 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19697 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19699 (linux_continue_one_thread): Only preserve the stepping flag if
19700 there's a pending breakpoint.
19702 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19704 * server.c (main): After the inferior having exited, call
19705 remote_close before exiting gdbserver.
19707 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19709 Fix size of FPSCR in Power 7 processors.
19710 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19711 (PPC_FEATURE_HAS_DFP): New #define.
19712 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19715 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19717 * server.c (handle_query) Whitespace and formatting.
19719 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19721 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19722 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19723 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19724 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19725 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19726 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19727 Makefile.in, configure.ac: Fix whitespace throughout.
19728 * configure: Regenerate.
19730 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19732 * inferiors.c (find_inferior): Make it safe for the callback
19733 function to delete the currently iterated inferior.
19735 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19737 * Makefile.in (linuw_low_h): Move higher.
19738 (thread-db.o): Depend on $(linux_low_h).
19740 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19742 Rename "process" to "lwp" throughout.
19744 * linux-low.c (all_processes): Rename to...
19745 (all_lwps): ... this.
19746 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19747 (add_process): Rename to ...
19748 (add_lwp): ... this. Adjust.
19749 (linux_create_inferior): Adjust.
19750 (linux_attach_lwp): Adjust.
19751 (linux_attach): Adjust.
19752 (linux_kill_one_process): Rename to ...
19753 (linux_kill_one_lwp): ... this. Adjust.
19754 (linux_kill): Adjust.
19755 (linux_detach_one_process): Rename to ...
19756 (linux_detach_one_lwp): ... this. Adjust.
19757 (linux_detach): Adjust.
19758 (check_removed_breakpoint): Adjust.
19759 (status_pending_p): Adjust.
19760 (linux_wait_for_process): Rename to ...
19761 (linux_wait_for_lwp): ... this. Adjust.
19762 (linux_wait_for_event): Adjust.
19763 (send_sigstop): Adjust.
19764 (wait_for_sigstop): Adjust.
19765 (stop_all_processes): Rename to ...
19766 (stop_all_lwps): ... this.
19767 (linux_resume_one_process): Rename to ...
19768 (linux_resume_one_lwp): ... this. Adjust.
19769 (linux_set_resume_request, linux_continue_one_thread)
19770 (linux_queue_one_thread, resume_status_pending_p)
19771 (usr_store_inferior_registers, regsets_store_inferior_registers)
19772 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19774 * linux-low.h (get_process): Rename to ...
19775 (get_lwp): ... this. Adjust.
19776 (get_thread_process): Rename to ...
19777 (get_thread_lwp): ... this. Adjust.
19778 (get_process_thread): Rename to ...
19779 (get_lwp_thread): ... this. Adjust.
19780 (struct process_info): Rename to ...
19781 (struct lwp_info): ... this.
19782 (all_processes): Rename to ...
19783 (all_lwps): ... this.
19784 * proc-service.c (ps_lgetregs): Adjust.
19785 * thread-db.c (thread_db_create_event, find_one_thread)
19786 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19788 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19790 * server.c (handle_query): Handle "qAttached".
19792 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19794 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19795 GPLv3, update license URL.
19797 2009-03-01 Doug Evans <dje@google.com>
19799 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19800 (server_h): Add gdb_signals.h.
19801 (signals.o): Update.
19802 * server.h (target_signal_from_host,target_signal_to_host_p)
19803 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19805 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19807 * remote-utils.c (getpkt): Also generate remote-debug
19808 information if noack_mode is set.
19810 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19812 * server.c (handle_query): Report qXfer:siginfo:read and
19813 qXfer:siginfo:write as supported and handle them.
19814 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19815 * linux-low.c (linux_xfer_siginfo): New.
19816 (linux_target_ops): Set it.
19818 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19820 * server.c (gdbserver_usage): Mention --remote-debug.
19821 (main): Accept '--remote-debug' switch.
19823 2009-01-18 Doug Evans <dje@google.com>
19825 * regcache.c (new_register_cache): No need to check result of xcalloc.
19826 * server.c (handle_search_memory): Back out calls to xmalloc,
19827 result is checked and error is returned to user upon failure.
19828 (handle_query): Ditto. Add more checks for result of malloc.
19829 (handle_v_cont): Check result of malloc, report error back to
19831 (handle_v_run): Ditto. Call freeargv.
19832 * server.h (freeargv): Declare.
19833 * utils.c (freeargv): New fn.
19835 2009-01-15 Doug Evans <dje@google.com>
19837 * gdbreplay.c (perror_with_name): Make arg const char *.
19838 * server.h (target_signal_to_name): Make return type const char *.
19839 * thread-db.c (thread_db_err_str): Make return type const char *.
19840 * utils.c (perror_with_name): Make arg const char *.
19842 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19844 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19845 when handling a EXIT_PROCESS_DEBUG_EVENT.
19847 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19849 * gdbreplay.c (gdbreplay_version): Update copyright year.
19850 * server.c (gdbserver_version): Likewise.
19852 2009-01-05 Doug Evans <dje@google.com>
19854 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19855 (handle_extended_wait): Improve comment.
19857 2008-12-13 Doug Evans <dje@google.com>
19859 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19860 * server.h (ATTR_MALLOC): New macro.
19861 (xmalloc,xcalloc,xstrdup): Declare.
19862 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19863 * inferiors.c: Ditto.
19864 * linux-low.c: Ditto.
19865 * mem-break.c: Ditto.
19866 * regcache.c: Ditto.
19867 * remote-utils.c: Ditto.
19870 * win32-low.c: Ditto.
19872 2008-12-12 Doug Evans <dje@google.com>
19874 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19875 in debugging printf.
19877 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19879 2008-12-09 Doug Evans <dje@google.com>
19881 * linux-low.h (struct process_info): Delete member tid, unused.
19882 * thread-db.c (find_one_thread): Update.
19883 (maybe_attach_thread): Update.
19885 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19887 * target.h (struct target_ops): Add qxfer_osdata member.
19888 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19890 (linux_qxfer_osdata): New functions.
19891 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19893 * server.c (handle_query): Handle "qXfer:osdata:read:".
19894 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19895 (buffer_xml_printf): New functions.
19896 * server.h (struct buffer): New.
19897 (buffer_grow_str, buffer_grow_str0): New macros.
19898 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19899 (buffer_xml_printf): Declare.
19901 2008-11-24 Doug Evans <dje@google.com>
19903 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19905 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19907 * server.c (handle_v_run): Always use the supplied argument list.
19909 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19911 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19912 (xtensa_regmap_table): Add entry for scompare1.
19914 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19916 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19917 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19918 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19919 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19920 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19921 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19922 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19923 XML target descriptions.
19924 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19925 when inferior is running on an ISA 2.05 or later processor. Add
19926 special case to return offset for full 64-bit slot of FPSCR when
19929 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19931 * Makefile.in (SFILES, clean): Added sparc64 files.
19932 (reg-sparc64.o, reg-sparc64.c): New.
19933 * configure.srv (sparc*-*-linux*): New configuration.
19934 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19935 syscall arguments for SPARC.
19936 (regsets_store_inferior_registers): Likewise.
19937 * linux-sparc-low.c: New file.
19939 2008-10-21 Doug Evans <dje@google.com>
19941 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19942 (READLINE_DIR,READLINE_DEP): Delete.
19943 (INTERNAL_CFLAGS): Update.
19944 (LINTFLAGS): Update.
19946 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19948 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19949 whole argv from the last run, not just argv[0].
19951 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19953 * regcache.c (new_register_cache): Return NULL if the register
19954 cache size isn't known yet.
19955 (free_register_cache): Avoid dereferencing a NULL regcache.
19957 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19959 * configure.srv: Merge MIPS and MIPS64.
19961 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19963 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19965 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19967 * Makefile.in: Add required vsx dependencies.
19969 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
19970 Declare init_registers_powerpc_vsx32l.
19971 Declare init_registers_powerpc_vsx64l.
19972 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
19973 (ppc_arch_setup): Check for VSX in hwcap.
19974 (ppc_fill_vsxregset): New function.
19975 (ppc_store_vsxregset): New function.
19976 Add new VSX entry in regset_info target_regsets.
19978 * configure.srv: Add new VSX dependencies.
19980 2008-08-12 Pedro Alves <pedro@codesourcery.com>
19982 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
19983 (remote_open): Set or clear transport_is_reliable.
19984 (putpkt_binary): Don't expect acks in noack mode.
19985 (getpkt): Don't send ack/nac in noack mode.
19986 * server.c (handle_general_set): Handle QStartNoAckMode.
19987 (handle_query): If connected by tcp pass QStartNoAckMode+ in
19989 (main): Reset noack_mode on every connection.
19990 * server.h (noack_mode): Declare.
19992 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19994 * Makefile.in (GDBREPLAY_OBS): New variable.
19995 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
19997 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
19998 Daniel Jacobowitz <dan@codesourcery.com>
20000 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20001 (usr_store_inferior_registers): Likewise.
20002 (regsets_store_inferior_registers): Likewise.
20004 2008-07-31 Rolf Jansen <rj@surtec.com>
20005 Pedro Alves <pedro@codesourcery.com>
20007 * configure.ac: Check for memmem declaration.
20008 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20009 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20010 (disable_packet_qfThreadInfo): Unconditionally compile.
20011 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20012 * configure, config.in: Regenerate.
20014 2008-07-28 Doug Kwan <dougkwan@google.com>
20016 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20017 (linux_write_memory): Remove declaration of errno.
20019 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20021 * linux-low.c (handle_extended_wait): Do not use "status"
20022 variable uninitialized.
20024 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20026 * server.c (handle_v_attach): Inhibit reporting dll changes.
20028 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20030 * remote-utils.c (prepare_resume_reply): If requested, don't
20031 output "thread:TID" in the T stop reply.
20033 * server.c (disable_packet_vCont, disable_packet_Tthread)
20034 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20035 (handle_query): If requested, disable support for qC, qfThreadInfo
20037 (handle_v_requests): If requested, disable support for vCont.
20038 (gdbserver_show_disableable): New.
20039 (main): Handle --disable-packet and --disable-packet=LIST.
20041 * server.h (disable_packet_vCont, disable_packet_Tthread)
20042 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20044 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20046 * server.c (gdbserver_usage): Mention --version.
20048 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20050 * Makefile.in (gdbreplay.o): New rule.
20052 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20054 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20055 message, not gdbserver.
20057 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20058 Nathan Sidwell <nathan@codesourcery.com>
20059 Joseph Myers <joseph@codesourcery.com>
20061 * acinclude.m4: Include ../../config/acx.m4.
20062 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20063 * configure, config.in: Regenerate.
20064 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20065 * server.c (gdbserver_version): Print PKGVERSION.
20066 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20067 (main): Adjust gdbserver_usage calls.
20068 * gdbreplay.c (version, host_name): Add declarations.
20069 (gdbreplay_version, gdbreplay_usage): New.
20070 (main): Accept --version and --help options.
20072 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20074 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20075 (arm_breakpoint_at): Handle Thumb.
20076 (the_low_target): Add comment.
20078 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20080 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20082 2008-05-09 Doug Evans <dje@google.com>
20084 * server.h (decode_search_memory_packet): Declare.
20085 * remote-utils.c (decode_search_memory_packet): New fn.
20086 * server.c (handle_search_memory_1): New fn.
20087 (handle_search_memory): New fn.
20088 (handle_query): Process qSearch:memory packets.
20090 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20092 * regcache.c (registers_length): Remove.
20093 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20094 full register packet.
20095 * regcache.h (registers_length): Remove prototype.
20096 * server.h (PBUFSIZ): Define to 16384.
20098 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20100 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20101 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20102 powerpc-64l.o, and powerpc-altivec64l.o.
20103 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20104 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20105 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20106 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20107 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20110 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20111 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20112 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20113 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20114 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20115 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20116 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20117 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20118 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20119 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20122 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20123 (init_registers_powerpc_32l): ... this new prototype.
20124 (init_registers_powerpc_32): Remove, replace by ...
20125 (init_registers_powerpc_altivec32l): ... this new prototype.
20126 (init_registers_powerpc_e500): Remove, replace by ...
20127 (init_registers_powerpc_e500l): ... this new prototype.
20128 (init_registers_ppc64): Remove, replace by ...
20129 (init_registers_powerpc_64l): ... this new prototype.
20130 (init_registers_powerpc_64): Remove, replace by ...
20131 (init_registers_powerpc_altivec64l): ... this new prototype.
20132 (ppc_num_regs): Set to 73.
20133 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20134 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20135 (ppc_cannot_store_register): Handle orig_r3 and trap.
20136 (ppc_arch_setup): Update init_registers_... calls.
20137 (ppc_fill_gregset): Handle orig_r3 and trap.
20139 * inferiors.c (clear_inferiors): Reset current_inferior.
20141 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20143 * acinclude.m4: Add override.m4.
20144 * configure: Regenerate.
20146 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20148 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20149 initial call to init_register_ppc64.
20151 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20153 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20154 single powerpc*-*-linux* case.
20155 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20157 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20159 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20160 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20162 * linux-ppc-low.c: Include <elf.h>.
20163 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20164 (ppc_hwcap): New global variable.
20165 (ppc_regmap): Remove __SPE__ #ifdef sections.
20166 (ppc_regmap_e500): New global variable.
20167 (ppc_cannot_store_register): Update __SPE__ special case.
20168 (ppc_get_hwcap): New function.
20169 (ppc_arch_setup): Use it to determine whether inferior supports
20170 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20171 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20172 Do not access registers if target does not support AltiVec.
20173 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20174 Do not access registers if target does not support SPE.
20175 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20177 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20179 * linux-low.c (disabled_regsets, num_regsets): New.
20180 (use_regsets_p): Delete.
20181 (linux_wait_for_process): Clear disabled_regsets.
20182 (regsets_fetch_inferior_registers): Check and set it.
20183 (regsets_store_inferior_registers): Likewise.
20184 (linux_fetch_registers, linux_store_registers): Do not use
20186 (initialize_low): Allocate disabled_regsets.
20188 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20190 * Makefile.in (LIBOBJS): New.
20191 (OBS): Use LIBOBJS.
20192 (memmem.o): New rule.
20193 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20194 * configure: Regenerated.
20196 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20198 * server.c (handle_query): Never return "unsupported" for
20199 qXfer:features:read queries.
20201 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20203 * server.c (get_features_xml): Fix inverted condition.
20204 (handle_query): Always support qXfer:feature:read.
20206 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20208 * server.c (wrapper_argv): New.
20209 (start_inferior): Handle wrapper_argv. If set, expect an extra
20211 (gdbserver_usage): Document --wrapper.
20212 (main): Parse --wrapper.
20214 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20216 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20217 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20218 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20219 (ppc_set_pc): Likewise.
20220 (ppc_arch_setup): New function.
20221 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20222 of collect_register.
20223 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20225 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20227 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20228 instead of linux-ppc64-low.o.
20229 * linux-ppc64-low.c: Remove file.
20230 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20231 (linux-ppc64-low.o): Remove rule.
20233 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20234 (init_registers_powerpc_64): Likewise.
20235 (ppc_regmap): Conditionally define depending on __powerpc64__.
20236 (ppc_cannot_store_register): Do not special-case "fpscr" when
20237 compiled on __powerpc64__.
20238 (ppc_collect_ptrace_register): New function.
20239 (ppc_supply_ptrace_register): New function.
20240 (ppc_breakpoint): Change type to "unsigned int".
20241 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20242 (the_low_target): Conditionally provide initializers for the
20243 arch_setup member depending on __powerpc64__. Install
20244 collect_ptrace_register and supply_ptrace_register members.
20246 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20248 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20249 * server.c (gdbserver_xmltarget): Define.
20250 (get_features_xml): Use it to replace "target.xml" and arch_string.
20252 * configure.srv: Remove srv_xmltarget. Add XML files that were
20253 mentioned there to srv_xmlfiles instead. Remove conditional tests
20254 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20255 srv_xmlfiles and srv_regobj to include all possible choices.
20256 * configure.ac (srv_xmltarget): Remove.
20257 (srv_xmlfiles): Do not add "target.xml".
20258 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20259 checks for supplementary target information.
20260 * configure: Regenerate.
20261 * Makefile.in (XML_TARGET): Remove.
20262 (target.xml): Remove rule.
20263 (clean): Do not clean up target.xml.
20264 (.PRECIOUS): Do not mention target.xml.
20266 * target.h (struct target_ops): Remove arch_string member.
20267 * linux-low.c (linux_arch_string): Remove.
20268 (linux_target_ops): Remove arch_string initializer.
20269 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20270 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20271 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20272 * spu-low.c (spu_arch_string): Remove.
20273 (spu_target_ops): Remove arch_string initializer.
20274 * win32-low.c (win32_arch_string): Remove.
20275 (win32_target_ops): Remove arch_string initializer.
20276 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20277 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20278 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20280 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20282 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20283 by collect_ptrace_register and supply_ptrace_register hooks.
20284 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20285 instead of checking for the_low_target.left_pad_xfer.
20286 (usr_store_inferior_registers): Use collect_ptrace_register callback
20287 instead of checking for the_low_target.left_pad_xfer.
20289 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20290 (s390_supply_ptrace_register): Likewise.
20291 (s390_fill_gregset): Call s390_collect_ptrace_register.
20292 (the_low_target): Update.
20294 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20295 (ppc_supply_ptrace_register): Likewise.
20296 (the_low_target): Update.
20298 * linux-i386-low.c (the_low_target): Update.
20299 * linux-x86-64-low.c (the_low_target): Update.
20301 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20303 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20304 reg-s390.o and reg-s390x.o.
20306 * linux-low.c (new_inferior): New global variable.
20307 (linux_create_inferior, linux_attach): Set it.
20308 (linux_wait_for_process): Call the_low_target.arch_setup after the
20309 target has stopped for the first time.
20310 (initialize_low): Do not call the_low_target.arch_setup.
20312 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20313 (s390_set_pc): Likewise.
20314 (s390_arch_setup): New function.
20315 (the_low_target): Use s390_arch_setup as arch_setup routine.
20317 * regcache.c (realloc_register_cache): New function.
20318 (set_register_cache): Call it for each existing regcache.
20320 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20322 * server.h (init_registers): Remove prototype.
20324 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20325 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20326 instead of init_registers ().
20327 * linux-arm-low.c (init_registers_arm): Add prototype.
20328 (init_registers_arm_with_iwmmxt): Likewise.
20329 (the_low_target): Add initializer for arch_setup field.
20330 * linux-cris-low.c (init_registers_cris): Add prototype.
20331 (the_low_target): Add initializer for arch_setup field.
20332 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20333 (the_low_target): Add initializer for arch_setup field.
20334 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20335 (the_low_target): Add initializer for arch_setup field.
20336 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20337 (the_low_target): Add initializer for arch_setup field.
20338 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20339 (the_low_target): Add initializer for arch_setup field.
20340 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20341 (the_low_target): Add initializer for arch_setup field.
20342 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20343 (init_registers_mips64_linux): Likewise.
20344 (the_low_target): Add initializer for arch_setup field.
20345 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20346 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20347 (the_low_target): Add initializer for arch_setup field.
20348 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20349 (init_registers_powerpc_64): Likewise.
20350 (the_low_target): Add initializer for arch_setup field.
20351 * linux-s390-low.c (init_registers_s390): Add prototype.
20352 (init_registers_s390x): Likewise.
20353 (the_low_target): Add initializer for arch_setup field.
20354 * linux-sh-low.c (init_registers_sh): Add prototype.
20355 (the_low_target): Add initializer for arch_setup field.
20356 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20357 (the_low_target): Add initializer for arch_setup field.
20358 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20359 (the_low_target): Add initializer for arch_setup field.
20361 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20362 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20363 instead of init_registers ().
20364 * win32-arm-low.c (init_registers_arm): Add prototype.
20365 (the_low_target): Add initializer for arch_setup field.
20366 * win32-i386-low.c (init_registers_i386): Add prototype.
20367 (the_low_target): Add initializer for arch_setup field.
20369 * spu-low.c (init_registers_spu): Add prototype.
20370 (initialize_low): Call initialie_registers_spu () instead of
20371 initialize_registers ().
20373 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20375 * server.c (handle_v_requests): When handling the vRun and vAttach
20376 packets, if already debugging a process, don't kill it. Return an
20379 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20381 * server.c (handle_query): Correct length check.
20383 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20385 * win32-low.c (do_initial_child_stuff): Add process handle
20386 parameter. Set current_process_handle and current_process_id from the
20387 parameters. Clear globals.
20388 (win32_create_inferior): Don't set current_process_handle and
20389 current_process_id here. Instead pass them on the call to
20390 do_initial_child_stuff.
20391 (win32_attach): Likewise.
20392 (win32_clear_inferiors): New.
20393 (win32_kill): Don't close the current process handle or the
20394 current thread handle here. Instead call win32_clear_inferiors.
20395 (win32_detach): Don't open a new handle to the process. Call
20396 win32_clear_inferiors.
20397 (win32_join): Don't rely on current_process_handle; open a new
20398 handle using the process id.
20399 (win32_wait): Call win32_clear_inferiors when the inferior process
20402 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20404 * server.c (monitor_show_help): Add "exit".
20406 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20408 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20409 (clean): Add reg-xtensa.c.
20410 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20411 * configure.srv (xtensa*-*-linux*) New target.
20412 * linux-xtensa-low.c: New.
20413 * xtensa-xtregs.c: New.
20415 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20417 * hostio.c: Don't include errno.h.
20418 (errno_to_fileio_errno): Move to hostio-errno.
20419 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20420 error number outputting to the target->hostio_last_error callback.
20421 (hostio_packet_error): Use FILEIO_EINVAL directly.
20422 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20423 calls to hostio_error.
20424 * hostio-errno.c: New.
20425 * server.h (hostio_last_error_from_errno): Declare.
20426 * target.h (target_ops): Add hostio_last_error member.
20427 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20428 as hostio_last_error handler.
20429 * spu-low.c (spu_target_ops): Likewise.
20430 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20431 (wince_hostio_last_error): New functions.
20432 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20433 as hostio_last_error handler.
20434 (win32_target_ops) [!_WIN32_WCE]: Register
20435 hostio_last_error_from_errno as hostio_last_error handler.
20436 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20437 (hostio-errno.o): New rule.
20438 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20439 * configure.srv (srv_hostio_err_objs): New variable. Default to
20441 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20442 * configure: Regenerate.
20444 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20446 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20447 (linux_kill, linux_detach): Clean up the process list.
20448 * remote-utils.c (remote_open): Improve port number parsing.
20449 (putpkt_binary, input_interrupt): Only send interrupts if the target
20451 * server.c (extended_protocol): Make static.
20452 (attached): Define earlier.
20453 (exit_requested, response_needed, program_argv): New variables.
20454 (target_running): New.
20455 (start_inferior): Clear attached here.
20456 (attach_inferior): Set attached here.
20457 (require_running): Define.
20458 (handle_query): Use require_running and target_running. Implement
20460 (handle_v_attach, handle_v_run): New.
20461 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20462 (gdbserver_usage): Update.
20463 (main): Redo argument parsing. Handle --debug and --multi. Handle
20464 --attach along with other options or after the port. Save
20465 program_argv. Support no initial program. Resynchronize
20466 communication with GDB after an error. Handle "monitor exit".
20467 Use require_running and target_running. Always allow the extended
20468 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20469 restart in extended mode.
20470 * README: Refer to the GDB manual. Update --attach usage.
20472 2007-12-20 Andreas Schwab <schwab@suse.de>
20474 * linux-low.c (STACK_SIZE): Define.
20475 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20476 (linux_test_for_tracefork): Likewise.
20478 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20480 * linux-low.c (linux_wait_for_event): Update messages. Do not
20481 reinsert auto-delete breakpoints.
20482 * mem-break.c (struct breakpoint): Change return type of handler to
20484 (set_breakpoint_at): Update handler type.
20485 (reinsert_breakpoint_handler): Return 1 instead of calling
20487 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20489 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20490 * mem-break.h (set_breakpoint_at): Update handler type.
20491 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20492 * win32-low.c (auto_delete_breakpoint): New.
20493 (get_child_debug_event): Use it.
20495 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20497 * configure.ac: Check for pread and pwrite.
20498 * hostio.c (handle_pread): Fall back to lseek and read.
20499 (handle_pwrite): Fall back to lseek and write.
20500 * config.in, configure: Regenerated.
20502 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20504 * server.c (myresume): Add own_buf argument.
20505 (main): Update calls.
20507 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20509 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20510 * remote-utils.c (remote_open): Do not call disable_async_io.
20511 (block_async_io): Delete.
20512 (unblock_async_io): Make static.
20513 (initialize_async_io): New.
20514 * server.c (handle_v_cont): Handle async I/O here.
20515 (myresume): Likewise. Move other common resume tasks here...
20516 (main): ... from here. Call initialize_async_io. Disable async
20517 I/O before the main loop.
20518 * server.h (initialize_async_io): Declare.
20519 (block_async_io, unblock_async_io): Delete prototypes.
20520 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20522 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20524 * remote-utils.c (readchar): Allow binary data in received messages.
20526 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20528 * win32-low.c (attaching): New global.
20529 (win32_create_inferior): Clear the `attaching' global.
20530 (win32_attach): Set the `attaching' global.
20531 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20532 attaching. Only set a breakpoint at the entry point if not
20535 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20537 * server.c (main): Don't report dll events on the initial
20538 connection on attaches.
20540 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20542 * server.c (main): Relax numerical bases supported for the pid of
20543 the --attach command line argument.
20545 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20547 * win32-low.c (win32_attach): Call OpenProcess before
20548 DebugActiveProcess, not after. Add last error output to error
20551 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20553 * win32-low.c (win32_get_thread_context)
20554 (win32_set_thread_context): New functions.
20555 (thread_rec): Use win32_get_thread_context.
20556 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20557 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20560 2007-12-03 Leo Zayas
20561 Pedro Alves <pedro_alves@portugalmail.pt>
20563 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20565 (child_add_thread): Minor cleanup.
20566 (child_continue): Resume artificially suspended threads before
20567 calling ContinueDebugEvent.
20568 (suspend_one_thread): New.
20569 (fake_breakpoint_event): New.
20570 (get_child_debug_event): Change return type to int. Check here if
20571 gdb sent an interrupt request. If a soft interrupt was requested,
20572 fake a breakpoint event. Return 0 if there is no event to handle,
20574 (win32_wait): Don't check here if gdb sent an interrupt request.
20575 Ensure there is a valid event to handle.
20576 (win32_request_interrupt): Add soft interruption method as last
20579 2007-12-03 Leo Zayas
20580 Pedro Alves <pedro_alves@portugalmail.pt>
20582 * win32-low.h (win32_thread_info): Add descriptions to the
20583 structure members. Replace `suspend_count' counter by a
20585 * win32-low.c (thread_rec): Update condition of when to get the
20586 context from the inferior. Rely on ContextFlags being set if it
20587 has already been retrieved. Only suspend the inferior thread if
20588 we haven't already. Warn if that fails.
20589 (continue_one_thread): s/suspend_count/suspended/. Only call
20590 ResumeThread once. Warn if that fails.
20592 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20594 * win32-low.c (win32_wait): Don't read from the inferior when it
20595 has already exited.
20597 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20599 * Makefile.in (win32_low_h): New variable.
20600 (win32-low.o): Add dependency on $(win32_low_h).
20601 (win32-arm-low.o, win32-i386-low.o): New rules.
20603 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20605 * hostio.c: Correct copyright year.
20607 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20609 * Makefile.in (OBS): Add hostio.o.
20610 (hostio.o): New rule.
20611 * server.h (handle_vFile): Declare.
20612 * hostio.c: New file.
20613 * server.c (handle_v_requests): Take packet_len and new_packet_len
20614 for binary packets. Call handle_vFile.
20615 (main): Update call to handle_v_requests.
20617 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20619 * linux-low.c: Include <sched.h>.
20621 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20623 * linux-low.c (linux_tracefork_grandchild): New.
20624 (linux_tracefork_child): Use clone.
20625 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20627 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20629 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20631 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20633 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20635 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20637 * inferiors.c (change_inferior_id): Delete.
20638 (add_pid_to_list, pull_pid_from_list): New.
20639 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20640 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20641 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20642 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20643 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20644 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20645 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20646 (using_threads): Always set to 1.
20647 (handle_extended_wait): New.
20648 (add_process): Do not set TID.
20649 (linux_create_inferior): Set must_set_ptrace_flags.
20650 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20651 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20652 (linux_thread_alive): Rename TID argument to LWPID.
20653 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20654 (linux_wait_for_event): Do not use TID or check using_threads. Update
20655 call to dead_thread_notify. Call handle_extended_wait.
20656 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20657 (send_sigstop): Delete sigstop_sent.
20658 (wait_for_sigstop): Avoid TID.
20659 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20660 (linux_test_for_tracefork): New.
20661 (linux_lookup_signals): Use thread_db_active and
20662 linux_supports_tracefork_flag.
20663 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20664 * linux-low.h (get_process_thread): Avoid TID.
20665 (struct process_ifo): Move thread_known and tid to the end. Remove
20667 (linux_attach_lwp, thread_db_init): Update prototypes.
20668 * server.h (change_inferior_id): Delete prototype.
20669 (add_pid_to_list, pull_pid_from_list): New prototypes.
20670 * thread-db.c (thread_db_use_events): New.
20671 (find_first_thread): Rename to...
20672 (find_one_thread): ...this. Update callers and messages. Do not
20673 call fatal. Check thread_db_use_events. Do not call
20674 change_inferior_id or new_thread_notify.
20675 (maybe_attach_thread): Update. Do not call new_thread_notify.
20676 (thread_db_init): Set thread_db_use_events. Check use_events.
20677 * utils.c (fatal, warning): Correct message prefix.
20679 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20681 * Makefile.in (clean): Remove new files.
20682 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20683 (powerpc-64.o, powerpc-64.c): New rules.
20684 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20685 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20687 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20689 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20690 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20691 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20692 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20693 (target_regsets): Add AltiVec and SPE register sets.
20694 * configure.ac: Check for AltiVec and SPE.
20695 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20696 (ppc_fill_vrregset, ppc_store_vrregset): New.
20697 (target_regsets): Add AltiVec register set.
20698 * configure: Regenerated.
20700 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20702 * linux-low.c (O_LARGEFILE): Define.
20703 (linux_read_memory): Use /proc/PID/mem.
20704 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20705 * configure, config.in: Regenerated.
20707 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20709 * linux-low.c (linux_wait_for_event): Do not pass signals while
20712 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20714 * win32-low.c (create_process): New.
20715 (win32_create_inferior): Use create_process instead of
20716 CreateProcess. If create_process failed retry appending an ".exe"
20717 suffix. Store the GetLastError result immediatelly after
20718 create_process calls and use it on the call to error.
20720 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20722 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20724 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20726 * configure.ac: Switch license to GPLv3.
20728 2007-08-01 Michael Snyder <msnyder@access-company.com>
20730 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20732 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20734 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20736 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20737 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20738 CloseToolhelp32Snapshot.
20739 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20740 CloseToolhelp32Snapshot.
20742 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20744 * server.c (main): Check for inferior exit before main loop.
20746 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20748 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20749 instead of on tmp_desc.
20751 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20752 Daniel Jacobowitz <dan@codesourcery.com>
20754 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20755 (add_thread): Minor cleanups.
20756 (clear_inferiors): Move lower in the file. Clear the DLL
20758 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20759 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20760 (xml_escape_text): New.
20761 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20763 (handle_v_cont): Report errors.
20764 (gdbserver_version): Update.
20765 (main): Correct size of own_buf. Do not report initial DLL events.
20766 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20767 (unloaded_dll, xml_escape_text): New.
20768 * win32-low.c (enum target_waitkind): Update comments.
20769 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20770 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20771 (win32_EnumProcessModules, win32_GetModuleInformation)
20772 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20773 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20774 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20775 (win32_Module32First, win32_Module32Next, load_toolhelp)
20776 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20777 (get_child_debug_event): Handle DLL events.
20778 (win32_wait): Likewise.
20780 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20782 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20783 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20785 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20787 * win32-low.c (handle_output_debug_string): Ignore event if not
20790 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20792 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20794 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20796 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20798 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20800 * inferiors.c (change_inferior_id): Add comment.
20801 * linux-low.c (check_removed_breakpoint): Add an early
20802 prototype. Improve debug output.
20803 (linux_attach): Doc update.
20804 (linux_detach_one_process, linux_detach): Clean up before releasing
20806 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20807 * linux-low.h (struct process_info): Doc improvement.
20808 * mem-break.c (delete_all_breakpoints): New.
20809 * mem-break.h (delete_all_breakpoints): New prototype.
20810 * thread-db.c (find_first_thread): New.
20811 (thread_db_create_event): Call it instead of
20812 thread_db_find_new_threads. Clean up unused variables.
20813 (maybe_attach_thread): Remove first thread handling.
20814 (thread_db_find_new_threads): Use find_first_thread.
20815 (thread_db_get_tls_address): Likewise.
20817 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20819 * thread-db.c (thread_db_find_new_threads): Add prototype.
20820 (thread_db_create_event): Check for the main thread before adding
20822 (maybe_attach_thread): Only enable event reporting if TID == 0.
20823 (thread_db_get_tls_address): Check for new threads.
20825 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20827 * linux-low.c (linux_create_inferior): Try execv before execvp.
20828 * spu-low.c (spu_create_inferior): Likewise.
20830 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20832 * linux-low.c (linux_create_inferior): Change execv to execvp.
20833 * spu-low.c (spu_create_inferior): Likewies.
20835 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20837 * Makefile.in (clean): Clean new files instead of deleted ones.
20838 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20839 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20841 * configure.srv: Specify XML files and new regformats for MIPS and
20843 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20844 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20845 an entry for the restart register.
20846 (mips_cannot_fetch_register, mips_cannot_store_register)
20847 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20848 register names to match the XML descriptions.
20849 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20850 restart register instead of $0.
20852 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20853 Markus Deuling <deuling@de.ibm.com>
20855 * remote-utils.c (decode_xfer_write): New function.
20856 * server.h (decode_xfer_write): Add prototype.
20857 * server.c (handle_query): Add PACKET_LEN argument. Support
20858 qXfer:spu:read and qXfer:spu:write packets.
20859 (main): Pass packet_len to handle_query.
20860 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20861 * target.h (target_ops): Add qxfer_spu.
20863 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20865 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20866 accessing non-seekable spufs files.
20868 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20870 * server.c (handle_query): Add reply for qC packet.
20872 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20873 Leo Zayas <lerele@champenstudios@com>
20875 * server.h (check_remote_input_interrupt_request): New function.
20876 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20877 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20878 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20879 (check_remote_input_interrupt_request): New function.
20880 * server.h (check_remote_input_interrupt_request): Declare.
20881 * win32-low.c (winapi_DebugBreakProcess,
20882 winapi_GenerateConsoleCtrlEvent): New typedefs.
20883 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20885 (win32_wait): Check for remote interrupt request
20886 with check_remote_input_interrupt_request.
20887 (win32_request_interrupt): New function.
20888 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20890 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20892 * win32-low.c (debug_registers_changed,
20893 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20894 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20895 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20896 (thread_rec): Get context using the low target.
20897 (child_add_thread): Call thread_added on the low target,
20898 which does the same thing.
20900 (do_initial_child_stuff): Remove debug registers references.
20901 Set context using the low target. Resume threads after
20902 setting the contexts.
20903 (child_continue): Remove dead variable. Remove debug
20904 registers references.
20905 (child_fetch_inferior_registers): Go through the low target.
20906 (do_child_store_inferior_registers): Remove.
20907 (child_store_inferior_registers): Go through the low target.
20908 (win32_resume): Remove debug registers references.
20909 Set context using the low target.
20910 (handle_exception): Change return type to void. Don't record
20911 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20912 first chance exception.
20913 (get_child_debug_event): Change return type to void. Remove
20914 goto loop. Always return after waiting for debug event.
20915 (win32_wait): Convert to switch statement. Handle spurious
20918 * win32-i386-low.c (debug_registers_changed,
20919 debug_registers_used): New.
20920 (initial_stuff): Rename to ...
20921 (i386_initial_stuff): ... this. Clear debug registers
20923 (store_debug_registers): Delete.
20924 (i386_get_thread_context): New.
20925 (load_debug_registers): Delete.
20926 (i386_set_thread_context): New.
20927 (i386_thread_added): New.
20928 (single_step): Rename to ...
20929 (i386_single_step): ... this.
20930 (do_fetch_inferior_registers): Rename to ...
20931 (i386_fetch_inferior_register): ... this.
20932 (i386_store_inferior_register): New.
20933 (the_low_target): Adapt to new interface.
20935 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20936 (arm_get_thread_context): New.
20937 (arm_set_thread_context): New.
20939 (do_fetch_inferior_registers): Rename to ...
20940 (arm_fetch_inferior_register): ... this.
20941 (arm_store_inferior_register): New.
20942 (arm_wince_breakpoint): Reimplement as unsigned long.
20943 (arm_wince_breakpoint_len): Define.
20944 (the_low_target): Adapt to new interface.
20946 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20947 load_debug_registers. Add get_thread_context, set_thread_context,
20948 thread_added and store_inferior_register. Rename
20949 fetch_inferior_registers to fetch_inferior_register.
20950 (regptr): Remove declaration.
20952 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20954 * linux-low.c (linux_detach): Change return type to int. Return 0.
20955 * spu-low.c (spu_detach): Likewise.
20957 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20959 * target.h (target_ops): Change return type of detach to int.
20961 (join_inferior): New.
20962 * server.c (main): Don't skip detach support on mingw32.
20963 If the inferior doesn't support detaching return error.
20964 Call join_inferior instead of using waitpid.
20965 * linux-low.c (linux_join): New.
20966 (linux_target_op): Add linux_join.
20967 * spu-low.c (spu_join): New.
20968 (spu_target_ops): Add spu_join.
20969 * win32-low.c (win32_detach): Adapt to new interface.
20970 Reopen current_process_handle before detaching. Issue a child
20971 resume before detaching.
20973 (win32_target_op): Add win32_join.
20975 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20977 * win32-low.c (win32-attach): Fix return value.
20978 * target.h (target_ops): Describe ATTACH return values.
20980 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20982 * win32-low.c (GETPROCADDRESS): Define.
20983 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
20984 (winapi_DebugSetProcessKillOnExit): Likewise.
20985 (win32_create_inferior): Force usage of ansi CreateProcessA.
20986 (win32_attach): Use GETPROCADDRESS.
20987 (win32_detach): Likewise.
20989 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20991 * win32-low.c (win32_wait): Don't use WSTOPSIG.
20993 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
20995 * win32-low.c: Commit leftover changes from 2007-03-29.
20997 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
20999 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21000 fields short instead of int. Add explicit padding.
21001 (i387_cache_to_fsave): Remove unnecessary casts.
21002 (i387_fsave_to_cache): Doc fix.
21003 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21005 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21007 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21008 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21010 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21012 * configure.srv (arm*-*-mingw32ce*): Move near the other
21015 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21017 * configure.ac: Add errno checking.
21018 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21019 sys/file.h and malloc.h.
21020 (AC_CHECK_DECLS): Add perror.
21021 (srv_mingwce): Handle.
21022 * configure.srv (i[34567]86-*-cygwin*): Add
21023 win32-i386-low.o to srv_tgtobj.
21024 (i[34567]86-*-mingw*): Likewise.
21025 (arm*-*-mingw32ce*): Add case.
21026 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21027 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21028 [__MINGW32CE__] (strerror): New function.
21029 [__MINGW32CE__] (errno): Define to GetLastError.
21030 [__MINGW32CE__] (COUNTOF): New macro.
21031 (remote_open): Remove extra close call.
21032 * mem-break.c (delete_breakpoint_at): New function.
21033 * mem-break.h (delete_breakpoint_at): Declare.
21034 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21035 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21036 [USE_WIN32API] (read, write): Add char* casts.
21037 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21038 * server.h: Include wincecompat.h on Windows CE.
21039 [HAVE_ERRNO_H]: Check.
21040 (perror): Declare if not declared.
21041 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21042 (perror_with_name): Remove errno declaration.
21043 * wincecompat.h: New.
21044 * wincecompat.c: New.
21045 * win32-low.h: New.
21046 * win32-arm-low.c: New.
21047 * win32-i386-low.c: New.
21048 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21049 (OUTMSG2): Make it safe.
21051 (COUNTOF): New macro.
21052 (NUM_REGS): Get it from the low target.
21053 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21054 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21055 (thread_rec): Let low target handle debug registers.
21056 (child_add_thread): Likewise.
21057 (child_init_thread_list): Likewise.
21058 (continue_one_thread): Likewise.
21060 (do_child_fetch_inferior_registers): Move to ...
21061 * win32-i386-low.c: ... here, and rename to ...
21062 (do_fetch_inferior_registers): ... this.
21063 * win32-low.c (child_fetch_inferior_registers):
21064 Go through the low target.
21065 (do_child_store_inferior_registers): Use regptr.
21066 (strwinerror): New function.
21067 (win32_create_inferior): Handle Windows CE.
21068 Use strwinerror instead of strerror on Windows error
21069 codes. Add program to the error output.
21070 Don't close the main thread handle on Windows CE.
21071 (win32_attach): Use coredll.dll on Windows CE.
21072 (win32_kill): Close current process and current
21074 (win32_detach): Use coredll.dll on Windows CE.
21075 (win32_resume): Let low target handle debug registers, and
21077 (handle_exception): Add/Remove initial breakpoint. Avoid
21078 non-existant WSTOPSIG on Windows CE.
21079 (win32_read_inferior_memory): Cast to remove warning.
21080 (win32_arch_string): Go through the low target.
21081 (initialize_low): Call set_breakpoint_data with the low
21082 target's breakpoint.
21083 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21084 FOP_REGNUM, mappings): Move to ...
21085 * win32-i386-low.c: ... here.
21086 * win32-low.c (win32_thread_info): Move to ...
21087 * win32-low.h: ... here.
21088 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21089 win32-arm-low.c and wincecompat.c.
21090 (all:): Add $EXEEXT.
21091 (install-only:): Likewise.
21092 (gdbserver:): Likewise.
21093 (gdbreplay:): Likewise.
21094 * config.in: Regenerate.
21095 * configure: Regenerate.
21097 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21099 * win32-low.c: Rename typedef thread_info to
21100 win32_thread_info throughout.
21102 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21104 * win32-i386-low.c: Rename to ...
21105 * win32-low.c: ... this.
21106 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21107 * Makefile.in: Likewise.
21109 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21111 * remote-utils.c (monitor_output): Constify msg parameter.
21112 * server.h (monitor_output): Likewise.
21113 * win32-i386-low.c (handle_output_debug_string): New.
21114 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21115 handle_output_debug_string.
21116 (get_child_debug_event): Likewise.
21118 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21120 * server.c (main): Correct strtoul check.
21122 2007-03-27 Jon Ringle <jon@ringle.org>
21124 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21126 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21128 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21130 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21132 * terminal.h: Check HAVE_SGTTY_H.
21134 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21136 * remote-utils.c (remote_open): Print out the assigned port number.
21138 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21140 * remote-utils.c (monitor_output): New function.
21141 * server.c (debug_threads): Define here.
21142 (monitor_show_help): New function.
21143 (handle_query): Handle qRcmd.
21144 (main): Do not handle 'd' packet.
21145 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21146 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21149 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21151 * Makefile.in (EXEEXT): New.
21152 (clean): Use $(EXEEXT).
21154 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21156 * target.h (target_ops): Rename send_signal to request_interrupt,
21157 and remove enum target_signal parameter.
21158 * linux-low.c (linux_request_interrupt): Rename from
21159 linux_send_signal, and always send SIGINT.
21160 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21161 and always send SIGINT.
21162 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21164 (input_interrupt): Likewise.
21166 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21168 * server.c (get_features_xml): Check if target implemented
21170 * win32-i386-low.c (win32_arch_string): New.
21171 (win32_target_ops): Add win32_arch_string as arch_string member.
21173 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21175 * spu-low.c (spu_arch_string): New.
21176 (spu_target_ops): Add spu_arch_string.
21178 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21180 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21181 * configure.ac: Do not check for terminal.h.
21182 * configure, config.in: Regenerated.
21184 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21186 * Makefile.in (OBS): Add $(XML_BUILTIN).
21187 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21189 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21190 (arm-with-iwmmxt.c): New.
21191 * config.in, configure: Regenerate.
21192 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21193 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21194 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21195 (arm*-*-linux*): Add iWMMXt and regset support.
21196 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21197 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21198 (arm_store_wmmxregset, target_regsets): New.
21199 * server.c (get_features_xml): Take annex argument. Check builtin
21201 (handle_query): Handle multiple annexes.
21203 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21205 * remote-utils.c [USE_WIN32API] (read, write): Define.
21206 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21209 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21211 * linux-i386-low.c (the_low_target): Set arch_string.
21212 * linux-x86-64-low.c (the_low_target): Likewise.
21213 * linux-low.c (linux_arch_string): New.
21214 (linux_target_ops): Add it.
21215 * linux-low.h (struct linux_target_ops): Add arch_string.
21216 * server.c (write_qxfer_response): Use const void * for DATA.
21217 (get_features_xml): New.
21218 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21219 * target.h (struct target_ops): Add arch_string method.
21221 2007-01-03 Denis Pilat <denis.pilat@st.com>
21222 Daniel Jacobowitz <dan@codesourcery.com>
21224 * linux-low.c (linux_kill): Handle being called with no threads.
21225 * win32-i386-low.c (win32_kill): Likewise.
21226 (get_child_debug_event): Clear current_process_handle.
21228 2006-12-30 Denis PILAT <denis.pilat@st.com>
21229 Daniel Jacobowitz <dan@codesourcery.com>
21231 * remote-utils.c (remote_open): Check the type of specified
21232 serial port devices before opening them.
21233 * server.c (main): Kill the inferior if an error occurs during
21234 the first remote_open.
21236 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21238 * README: Update supported targets.
21240 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21242 * Makefile.in (clean): Remove reg-mips64.c.
21243 (reg-mips64.c, reg-mips64.o): New rules.
21244 * configure.srv: Handle mips64. Include regset support for mips.
21245 * linux-mips-low.c (union mips_register): New.
21246 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21247 (mips_breakpoint, mips_breakpoint_at): Use int.
21248 (mips_collect_register, mips_supply_register)
21249 (mips_collect_register_32bit, mips_supply_register_32bit)
21250 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21251 (mips_store_fpregset, target_regsets): New.
21252 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21254 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21256 * configure.srv: Add target "spu*-*-*".
21257 * Makefile.in (clean): Remove reg-spu.c.
21258 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21259 * spu-low.c: New file.
21261 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21263 * configure.ac: Correct td_thr_tls_get_addr test.
21264 * configure: Regenerated.
21266 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21268 * linux-low.c (linux_wait_for_event): Reformat. Use the
21269 pass_signals array.
21270 * remote-utils.c (decode_address_to_semicolon): New.
21271 * server.c (pass_signals, handle_general_set): New.
21272 (handle_query): Mention QPassSignals for qSupported.
21273 (main): Call handle_general_set.
21274 * server.h (pass_signals, decode_address_to_semicolon): New.
21276 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21278 * server.c (handle_query): Correct error handling for read_auxv.
21280 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21282 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21283 and srv_linux_thread_db to yes.
21284 * linux-s390-low.c (s390_fill_gregset): New function.
21285 (target_regsets): Define data structure.
21287 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21289 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21290 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21291 * config.in, configure: Regenerated.
21292 * inferiors.c (gdb_id_to_thread): New function.
21293 (gdb_id_to_thread_id): Use it.
21294 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21295 * linux-low.h (struct process_info): Add th member.
21296 (thread_db_get_tls_address): New prototype.
21297 * remote-utils.c (decode_address): Make non-static.
21298 * server.c (handle_query): Handle qGetTLSAddr.
21299 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21300 * target.h (struct target_ops): Add get_tls_address.
21301 * thread-db.c (maybe_attach_thread): Save the thread handle.
21302 (thread_db_get_tls_address): New.
21304 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21306 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21307 (linux_resume_one_process): Take a siginfo_t *. Update all
21308 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21309 (struct pending_signals): Add a siginfo_t.
21310 (linux_wait_for_process): Always set last_status.
21311 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21312 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21313 * linux-low.h (struct process_info): Add last_status.
21315 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21317 * remote-utils.c (try_rle): New function.
21318 (putpkt_binary): Use it.
21320 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21322 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21323 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21324 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21325 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21326 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21329 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21331 * server.c (terminal_fd): New variable.
21332 (old_foreground_pgrp): Likewise.
21333 (restore_old_foreground_pgrp): New function.
21334 (start_inferior): Record the terminal file descriptor in terminal_fd
21335 and its original foreground group in old_foreground_pgrp. Register
21336 restore_old_foreground_pgrp with atexit().
21338 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21340 * server.c (handle_query): Correct qPart to qXfer.
21342 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21344 * configure.ac: Check for more headers which are missing on
21345 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21346 * configure.srv: Add Cygwin and mingw32.
21347 * remote-utils.c: Don't include headers unconditionally which
21348 are missing on mingw32. Include <winsock.h> for mingw32.
21349 (remote_open): Adjust for mingw32 support. Flush
21350 standard error after writing to it.
21351 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21352 (unblock_async_io, enable_async_io, disable_async_io)
21353 (readchar, getpkt): Update for Winsock support.
21354 (prepare_resume_reply): Expect a protocol signal number.
21355 * server.c: Disable <sys/wait.h> on mingw32.
21356 (start_inferior): Adjust for mingw32 support. Flush
21357 standard error after writing to it.
21358 (attach_inferior): Likewise. Use protocol signal
21360 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21362 * win32-i386-low.c: New file.
21363 * Makefile.in (XM_CLIBS): Set.
21364 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21365 (win32-i386-low.o): New dependency rule.
21366 * linux-low.c (linux_wait): Use target signal numbers.
21367 * target.h (struct target_ops): Doc fix.
21368 * server.h (target_signal_to_name): New prototype.
21369 * gdbreplay.c: Don't include headers unconditionally which
21370 are missing on mingw32. Include <winsock.h> for mingw32.
21371 (remote_close, remote_open): Adjust for Winsock support.
21372 * configure, config.in: Regenerated.
21374 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21376 * server.c (decode_xfer_read, write_qxfer_response): New.
21377 (handle_query): Take a packet length argument. Handle
21378 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21379 the qSupported response.
21380 (main): Update call to handle_query.
21382 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21384 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21385 (putpkt_binary): Renamed from putpkt and adjusted for binary
21387 (putpkt): New wrapper for putpkt_binary.
21388 (readchar): Don't mask off the high bit.
21389 (decode_X_packet): New function.
21390 * server.c (main): Call putpkt_binary if a handler sets the packet
21391 length. Save the length of the incoming packet. Handle 'X'.
21392 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21394 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21396 * server.c (handle_query): Handle qSupported.
21398 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21400 * remote-utils.c (all_symbols_looked_up): New variable.
21401 (look_up_one_symbol): Check it.
21402 * server.h (look_up_one_symbol): New declaration.
21403 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21405 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21407 * Makefile.in (linux-arm-low.o): Update dependencies.
21408 * linux-arm-low.c: Include "gdb_proc_service.h".
21409 (PTRACE_GET_THREAD_AREA): Define.
21410 (ps_get_thread_area): New function.
21412 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21414 * configure.srv (m68k*-*-uclinux*): New target.
21415 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21416 (linux_resume_one_process): Remove extraneous cast.
21417 (linux_read_offsets): New.
21418 (linux_target_op): Add linux_read_offsets on mmuless systems.
21419 * server.c (handle_query): Add qOffsets logic.
21420 * target.h (struct target_ops): Add read_offsets.
21422 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21424 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21425 (PTRACE_GET_THREAD_AREA): Define.
21426 (ps_get_thread_area): New function.
21427 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21428 (linux-x86-64-low.o): Update.
21430 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21432 * configure.ac: Remove checks for prfpregset_t.
21433 * gdb_proc_service.h: New file.
21434 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21435 new "gdb_proc_service.h".
21436 * proc-service.c: Likewise.
21437 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21438 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21439 * Makefile.in (gdb_proc_service_h): Updated.
21440 * configure, config.in: Regenerated.
21442 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21444 * remote-utils.c (prepare_resume_reply): Move declaration
21445 of gdb_id_from_wait to the top of the block.
21447 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21449 * linux-low.c (regsets_store_inferior_registers): Read the regset
21450 from the target before filling it.
21452 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21454 * server.c (attach_inferior): Return SIGTRAP for a successful
21457 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21459 * Makefile.in (OBS): Add version.o.
21460 (STAGESTUFF): Delete.
21461 (version.o): Add dependencies.
21462 (version.c): Replace rule.
21463 (clean): Remove version.c.
21464 * server.c (gdbserver_version): New.
21465 (gdbserver_usage): Use printf.
21466 (main): Handle --version and --help.
21467 * server.h (version, host_name): Add declarations.
21469 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21481 * linux-x86-64-low.c:
21483 * linux-s390-low.c:
21484 * linux-ppc64-low.c:
21486 * linux-mips-low.c:
21487 * linux-m68k-low.c:
21488 * linux-m32r-low.c:
21491 * linux-ia64-low.c:
21492 * linux-i386-low.c:
21493 * linux-crisv32-low.c:
21505 * gdbserver.1: Add (C) after Copyright. Update the FSF
21508 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21510 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21511 (arm_breakpoint_at): Recognize both breakpoints.
21512 (the_low_target): Use the correct breakpoint instruction.
21514 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21516 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21517 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21518 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21519 (the_low_target): Update.
21521 2005-10-25 Andreas Schwab <schwab@suse.de>
21523 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21525 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21526 (ia64_num_regs): Reduce to 462.
21528 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21530 * acinclude.m4: Correct quoting.
21531 * aclocal.m4: Regenerated.
21533 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21534 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21535 (thread_db_init): Call thread_db_err_str.
21536 * configure.ac: Check for TD_VERSION.
21537 * config.in, configure: Regenerated.
21539 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21541 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21543 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21545 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21546 is not available. Define HAVE_PTRACE_GETREGS if it is.
21547 * config.in, configure: Regenerated.
21548 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21549 * linux-i386-low.c, linux-m68k-low.c: Update to use
21550 HAVE_PTRACE_GETREGS.
21551 * linux-low.c (regsets_fetch_inferior_registers)
21552 (regsets_store_inferior_registers): Only return 0 if we processed
21554 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21555 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21557 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21559 * inferiors.c (struct thread_info): Add gdb_id.
21560 (add_thread): Add gdb_id argument.
21561 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21562 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21563 calls to add_thread.
21564 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21565 * server.c (handle_query): Use thread_to_gdb_id.
21566 (handle_v_cont, main): Use gdb_id_to_thread_id.
21567 * server.h (add_thread): Update prototype.
21568 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21571 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21573 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21574 left-padded registers.
21575 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21576 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21578 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21580 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21581 * configure: Regenerate.
21582 * config.in: Regenerate.
21583 * server.h (NEED_DECLARATION_STRERROR):
21584 Replace with !HAVE_DECL_STRERROR.
21586 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21588 * linux-low.c (linux_wait, linux_send_signal): Don't test
21589 an unsigned long variable for > 0 if it could be MAX_ULONG.
21590 * server.c (myresume): Likewise.
21591 * target.c (set_desired_inferior): Likewise.
21593 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21595 * configure.ac: Simplify and improve check for socklen_t.
21596 * configure, config.in: Regenerate.
21598 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21600 * acconfig.h: Remove.
21601 * configure.ac: Add a test for socklen_t. Use three-argument
21602 AC_DEFINE throughout.
21603 * config.in: Regenerated using autoheader 2.59.
21604 * configure: Regenerated.
21606 * gdbreplay.c (socklen_t): Provide a default.
21607 (remote_open): Use socklen_t.
21608 * remote-utils.c (socklen_t): Provide a default.
21609 (remote_open): Use socklen_t.
21610 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21613 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21615 * linux-low.c (linux_read_memory, linux_write_memory)
21616 (linux_read_auxv): Likewise.
21617 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21618 (check_mem_write): Likewise.
21619 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21621 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21622 (registers_from_string, register_data): Likewise.
21623 * server.c (handle_query, main): Likewise.
21624 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21625 (decode_M_packet): Likewise.
21626 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21627 * target.h (struct target_ops): Update read_memory, write_memory,
21629 (read_inferior_memory, write_inferior_memory): Update.
21630 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21631 to unsigned char *.
21632 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21633 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21634 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21635 linux-s390-low.c, linux-sh-low.c: Update for changes in
21636 read_inferior_memory and the_low_target->breakpoint.
21638 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21640 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21641 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21642 * configure.srv: Add powerpc64-*-linux*.
21643 * linux-ppc64-low.c: New file.
21645 2005-05-23 Orjan Friberg <orjanf@axis.com>
21647 * linux-cris-low.c: New file with support for CRIS.
21648 * linux-crisv32-low.c: Ditto for CRISv32.
21649 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21650 (clean): Add reg-cris.c and reg-crisv32.c.
21651 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21652 reg-crisv32.o, and reg-crisv32.c to make rules.
21653 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21654 recognized targets.
21656 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21658 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21659 of sizeof (PTRACE_XFER_TYPE).
21660 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21662 2005-05-12 Orjan Friberg <orjanf@axis.com>
21664 * target.h (struct target_ops): Add insert_watchpoint,
21665 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21666 pointers for hardware watchpoint support.
21667 * linux-low.h (struct linux_target_ops): Ditto.
21668 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21669 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21670 to linux_target_ops.
21671 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21673 * server.c (main): Recognize 'Z' and 'z' packets.
21675 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21677 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21678 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21679 (the_low_target): Add new members.
21681 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21683 * proc-service.c (ps_lgetregs): Search all_processes instead of
21686 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21688 * server.c (start_inferior): Change return type to int.
21689 (attach_inferior): Change sigptr to int *.
21690 (handle_v_cont, handle_v_requests): Change signal to int *.
21691 (main): Change signal to int.
21693 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21695 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21696 * configure.srv: Add m32r*-*-linux*.
21697 * linux-m32r-low.c: New file.
21699 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21701 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21703 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21705 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21706 Take unsigned long arguments for PIDs.
21707 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21708 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21709 (wait_for_sigstop, linux_resume_one_process)
21710 (regsets_fetch_inferior_registers, linux_send_signal)
21711 (linux_read_auxv): Likewise. Update the types of variables holding
21712 PIDs. Update format string specifiers.
21713 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21714 * remote-utils.c (prepare_resume_reply): Likewise.
21715 * server.c (cont_thread, general_thread, step_thread)
21716 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21718 (handle_query): Update format specifiers.
21719 (handle_v_cont, main): Use strtoul for thread IDs.
21720 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21721 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21722 (general_thread, step_thread, thread_from_wait)
21723 (old_thread_from_wait): Update.
21724 * target.h (struct thread_resume): Use unsigned long for THREAD.
21725 (struct target_ops): Use unsigned long for arguments to attach and
21728 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21730 * acinclude.m4: Include bfd/bfd.m4 directly.
21731 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21732 <agriffis@toolchain.org>.
21733 * aclocal.m4, configure: Regenerated.
21735 2005-01-07 Andrew Cagney <cagney@gnu.org>
21737 * configure.ac: Rename configure.in, require autoconf 2.59.
21738 * configure: Re-generate.
21740 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21742 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21743 LIBS when finished.
21744 * aclocal.m4: Regenerated.
21745 * configure: Regenerated.
21747 2004-11-21 Andreas Schwab <schwab@suse.de>
21749 * linux-m68k-low.c (m68k_num_gregs): Define.
21750 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21751 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21752 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21753 (m68k_breakpoint_at): New. Add to the_low_target.
21755 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21756 srv_linux_thread_db to yes.
21758 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21760 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21761 (ARCH_SET_FS): Likewise.
21762 (ARCH_GET_FS): Likewise.
21763 (ARCH_GET_GS): Likewise.
21765 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21767 * linux-i386-low.c (ps_get_thread_area): New.
21768 * linux-x86-64-low.c (ps_get_thread_area): New.
21769 * linux-low.c: Include <sys/syscall.h>.
21770 (linux_kill_one_process): Don't kill the first thread here.
21771 (linux_kill): Kill the first thread here.
21772 (kill_lwp): New function.
21773 (send_sigstop, linux_send_signal): Use it.
21774 * proc-service.c: Clean up #ifdefs.
21775 (fpregset_info): Delete.
21776 (ps_lgetregs): Update and enable implementation.
21777 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21779 * remote-utils.c (struct sym_cache, symbol_cache): New.
21780 (input_interrupt): Print a clearer message.
21781 (async_io_enabled): New variable.
21782 (enable_async_io, disable_async_io): Use it. Update comments.
21783 (look_up_one_symbol): Use the symbol cache.
21784 * thread-db.c (thread_db_look_up_symbols): New function.
21785 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21787 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21789 * configure.in: Test for -rdynamic.
21790 * configure: Regenerated.
21791 * Makefile (INTERNAL_LDFLAGS): New.
21792 (gdbserver, gdbreplay): Use it.
21794 2004-09-02 Andrew Cagney <cagney@gnu.org>
21796 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21798 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21800 * linux-low.c (linux_wait): Clear all_processes list also.
21802 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21804 * linux-low.c: Include <errno.h>. Remove extern declaration of
21807 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21809 * gdbreplay.c, server.h, utils.c: Update copyright years.
21811 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21813 * server.c (main): Print child status or termination signal from
21814 variable 'signal', not 'sig'.
21816 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21818 * linux-low.c (linux_read_memory): Change return type to
21819 int. Check for and return error from ptrace().
21820 * target.c (read_inferior_memory): Change return type to int. Pass
21821 back return status from the_target->read_memory().
21822 * target.h (struct target_ops): Adapt *read_memory() prototype.
21824 (read_inferior_memory): Adapt prototype.
21825 * server.c (main): Return an error packet if
21826 read_inferior_memory() returns an error.
21828 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21830 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21831 Unify with other clean targets.
21833 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21835 * server.c (handle_v_cont): Call set_desired_inferior.
21837 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21839 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21841 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21843 * linux-low.c (linux_wait): Unblock async I/O.
21844 (linux_resume): Block and enable async I/O.
21845 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21846 * server.h (block_async_io, unblock_async_io): Add prototypes.
21848 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21850 * remote-utils.c (remote_open): Print a status notice after
21851 opening a TCP port.
21852 * server.c (attach_inferior): Print a status notice after
21855 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21857 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21859 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21861 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21863 * server.c, target.h: Update copyright years.
21865 2004-02-25 Roland McGrath <roland@redhat.com>
21867 * target.h (struct target_ops): New member `read_auxv'.
21868 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21869 * linux-low.c (linux_read_auxv): New function.
21870 (linux_target_ops): Initialize `read_auxv' member to that.
21872 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21874 Committed by Jim Blandy <jimb@redhat.com>.
21876 * linux-s390-low.c (s390_num_regs): Update.
21877 (s390_regmap): Remove control registers. Use __s390x__ predefine
21878 instead of GPR_SIZE to distiguish s390 and s390x targets.
21880 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21882 * linux-low.c: Update copyright year.
21883 (check_removed_breakpoint): Clear pending_is_breakpoint.
21884 (linux_set_resume_request, linux_queue_one_thread)
21885 (resume_status_pending_p): New functions.
21886 (linux_continue_one_thread): Use process->resume.
21887 (linux_resume): Only resume threads if there are no pending events.
21888 * linux-low.h (struct process_info): Add resume request
21891 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21893 * regcache.c (new_register_cache): Clear the allocated register
21894 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21896 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21898 * linux-low.c (linux_resume): Take a struct thread_resume *
21900 (linux_wait): Update call.
21901 (resume_ptr): New static variable.
21902 (linux_continue_one_thread): Renamed from
21903 linux_continue_one_process. Use resume_ptr.
21904 (linux_resume): Use linux_continue_one_thread.
21905 * server.c (handle_v_cont, handle_v_requests): New functions.
21906 (myresume): New function.
21907 (main): Handle 'v' case.
21908 * target.h (struct thread_resume): New type.
21909 (struct target_ops): Change argument of "resume" to struct
21911 (myresume): Delete macro.
21913 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21915 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21916 (uninstall): Support DESTDIR.
21918 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21920 * configure.srv: Add xscale*linux copy of arm*linux entry.
21922 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21924 * linux-arm-low.c (arm_reinsert_addr): New function.
21925 (the_low_target): Add arm_reinsert_addr.
21927 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21929 * mem-break.c: Remove whitespace at end of file.
21931 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21933 * configure.in: Check whether we need to prototype strerror.
21934 * server.h: Optionally prototype strerror.
21935 * gdbreplay.c (perror_with_name): Use strerror.
21936 * linux-low.c (linux_attach_lwp): Use strerror.
21937 * utils.c (perror_with_name): Use strerror.
21938 * config.in, configure: Regenerated.
21940 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21942 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21943 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21945 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21947 * Makefile.in (SFILES): Update.
21948 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21949 low-sun3.c: Remove files.
21951 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21953 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21954 (linux_detach_one_process, linux_detach): New functions.
21955 (linux_target_ops): Add linux_detach.
21956 * server.c (main): Handle 'D' packet.
21957 * target.h (struct target_ops): Add "detach" member.
21958 (detach_inferior): Define.
21960 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21962 From Kelley Cook <kelleycook@wideopenwest.com>:
21963 * configure.srv: Accept i[34567]86 variants.
21965 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21967 * linux-low.c (linux_wait_for_event): Correct comment typos.
21968 (linux_resume_one_process): Call check_removed_breakpoint.
21969 (linux_send_signal): New function.
21970 (linux_target_ops): Add linux_send_signal.
21971 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
21973 * target.h (struct target_ops): Add send_signal.
21975 2003-05-29 Jim Blandy <jimb@redhat.com>
21977 * linux-low.c (usr_store_inferior_registers): Transfer buf in
21978 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
21979 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
21980 away part of the register's value.
21982 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
21984 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
21985 (linux_wait_for_event, linux_init_signals): Likewise.
21987 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
21989 * configure.in: Check for stdlib.h.
21990 * configure: Regenerated.
21991 * config.in: Regenerated.
21993 2003-01-04 Andreas Schwab <schwab@suse.de>
21995 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
21997 2003-01-02 Andrew Cagney <ac131313@redhat.com>
21999 * Makefile.in: Remove obsolete code.
22001 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22003 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22004 defined(PT_FPR0_HI).
22006 2002-11-17 Stuart Hughes <seh@zee2.com>
22008 * linux-arm-low.c (arm_num_regs): Increase.
22009 (arm_regmap): Include status register.
22011 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22013 * linux-low.c (register_addr): Remove incorrect -1 check.
22015 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22017 * linux-low.c (linux_create_inferior): Call setpgid. Return
22019 (unstopped_p, linux_signal_pid): Remove.
22020 (linux_target_ops): Remove linux_signal_pid.
22021 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22022 global instead of target method.
22023 * target.h (struct target_ops): Remove signal_pid. Update comment
22024 for create_inferior.
22025 * server.c (signal_pid): New variable.
22026 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22027 gdbserver. Set the child to be the foreground process group.
22028 (attach_inferior): Set signal_pid.
22030 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22032 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22034 2002-08-20 Jim Blandy <jimb@redhat.com>
22036 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22039 2002-08-01 Andrew Cagney <cagney@redhat.com>
22041 * Makefile.in: Make chill references obsolete.
22043 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22045 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22046 * configure: Regenerate.
22047 * config.in: Regenerate.
22049 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22051 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22052 (perror_with_name, remote_close, remote_open, expect, play): Static.
22054 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22056 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22057 byte offsets instead of an array of indexes.
22058 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22060 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22062 * regcache.c: Add comment.
22064 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22066 * thread-db.c: New file.
22067 * proc-service.c: New file.
22068 * acinclude.m4: New file.
22069 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22070 proc-service.o, and thread-db.o.
22071 (linux-low.o): Add USE_THREAD_DB.
22072 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22073 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22074 * aclocal.m4: Regenerated.
22075 * config.in: Regenerated.
22076 * configure: Regenerated.
22077 * configure.in: Check for proc_service.h, sys/procfs.h,
22078 thread_db.h, and linux/elf.h headrs.
22079 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22080 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22081 Check for -lthread_db and thread support.
22082 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22083 PowerPC, and SuperH.
22084 * i387-fp.c: Constify arguments.
22085 * i387-fp.h: Likewise.
22086 * inferiors.c: (struct thread_info): Renamed from
22087 `struct inferior_info'. Remove PID member. Use generic inferior
22088 list header. All uses updated.
22089 (inferiors, signal_pid): Removed.
22090 (all_threads): New variable.
22091 (get_thread): Define.
22092 (add_inferior_to_list): New function.
22093 (for_each_inferior): New function.
22094 (change_inferior_id): New function.
22095 (add_inferior): Removed.
22096 (remove_inferior): New function.
22097 (add_thread): New function.
22098 (free_one_thread): New function.
22099 (remove_thread): New function.
22100 (clear_inferiors): Use for_each_inferior and free_one_thread.
22101 (find_inferior): New function.
22102 (find_inferior_id): New function.
22103 (inferior_target_data): Update argument type.
22104 (set_inferior_target_data): Likewise.
22105 (inferior_regcache_data): Likewise.
22106 (set_inferior_regcache_data): Likewise.
22107 * linux-low.c (linux_bp_reinsert): Remove.
22108 (all_processes, stopping_threads, using_thrads)
22109 (struct pending_signals, debug_threads, pid_of): New.
22110 (inferior_pid): Replace with macro.
22111 (struct inferior_linux_data): Remove.
22112 (get_stop_pc, add_process): New functions.
22113 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22114 Use add_process and add_thread.
22115 (linux_attach_lwp): New function, based on old linux_attach. Use
22116 add_process and add_thread. Set stop_expected for new threads.
22117 (linux_attach): New function.
22118 (linux_kill_one_process): New function.
22119 (linux_kill): Kill all LWPs.
22120 (linux_thread_alive): Use find_inferior_id.
22121 (check_removed_breakpoints, status_pending_p): New functions.
22122 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22123 Update. Use WNOHANG. Wait for cloned processes also. Update process
22124 struct for the found process.
22125 (linux_wait_for_event): New function.
22126 (linux_wait): Use it. Support LWPs.
22127 (send_sigstop, wait_for_sigstop, stop_all_processes)
22128 (linux_resume_one_process, linux_continue_one_process): New functions.
22129 (linux_resume): Support LWPs.
22130 (REGISTER_RAW_SIZE): Remove.
22131 (fetch_register): Use register_size instead. Call supply_register.
22132 (usr_store_inferior_registers): Likewise. Call collect_register.
22133 Fix recursive case.
22134 (regsets_fetch_inferior_registers): Improve error message.
22135 (regsets_store_inferior_registers): Add debugging.
22136 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22137 (unstopped_p, linux_signal_pid): New functions.
22138 (linux_target_ops): Add linux_signal_pid.
22139 (linux_init_signals): New function.
22140 (initialize_low): Call it. Initialize using_threads.
22141 * regcache.c (inferior_regcache_data): Add valid
22143 (get_regcache): Fetch registers lazily. Add fetch argument
22144 and update all callers.
22145 (regcache_invalidate_one, regcache_invalidate): New
22147 (new_register_cache): Renamed from create_register_cache.
22148 Return the new regcache.
22149 (free_register_cache): Change argument to a void *.
22150 (registers_to_string, registers_from_string): Call get_regcache
22151 with fetch flag set.
22152 (register_data): Make static. Pass fetch flag to get_regcache.
22153 (supply_register): Call get_regcache with fetch flag clear.
22154 (collect_register): Call get_regcache with fetch flag set.
22155 (collect_register_as_string): New function.
22156 * regcache.h: Update.
22157 * remote-utils.c (putpkt): Flush after debug output and use
22159 Handle input interrupts while waiting for an ACK.
22160 (input_interrupt): Use signal_pid method.
22161 (getpkt): Flush after debug output and use stderr.
22162 (outreg): Use collect_register_as_string.
22163 (new_thread_notify, dead_thread_notify): New functions.
22164 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22165 and general_thread.
22166 (look_up_one_symbol): Flush after debug output.
22167 * server.c (step_thread, server_waiting): New variables.
22168 (start_inferior): Don't use signal_pid. Update call to mywait.
22169 (attach_inferior): Update call to mywait.
22170 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22171 (main): Don't fetch/store registers explicitly. Use
22172 set_desired_inferior. Support proposed ``Hs'' packet. Update
22174 * server.h: Update.
22175 (struct inferior_list, struct_inferior_list_entry): New.
22176 * target.c (set_desired_inferior): New.
22177 (write_inferior_memory): Constify.
22178 (mywait): New function.
22179 * target.h: Update.
22180 (struct target_ops): New signal_pid method.
22181 (mywait): Removed macro, added prototype.
22183 * linux-low.h (regset_func): Removed.
22184 (regset_fill_func, regset_store_func): New.
22185 (enum regset_type): New.
22186 (struct regset_info): Add type field. Use new operation types.
22187 (struct linux_target_ops): stop_pc renamed to get_pc.
22188 Add decr_pc_after_break and breakpoint_at.
22189 (get_process, get_thread_proess, get_process_thread)
22190 (strut process_info, all_processes, linux_attach_lwp)
22191 (thread_db_init): New.
22193 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22194 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22195 (the_low_target): Add new members.
22196 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22197 (i386_store_fpxregset): Constify.
22198 (target_regsets): Add new kind identifier.
22199 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22200 (i386_set_pc): Add debugging.
22201 (i386_breakpoint_at): New function.
22202 (the_low_target): Add new members.
22203 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22204 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22205 (mips_breakpoint_at): New.
22206 (the_low_target): Add new members.
22207 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22208 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22209 (the_low_target): Add new members.
22210 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22211 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22212 (the_low_target): Add new members.
22213 * linux-x86-64-low.c (target_regsets): Add new kind
22216 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22218 From Martin Pool <mbp@samba.org>:
22219 * server.c (gdbserver_usage): New function.
22222 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22224 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22225 stop_at -> stop_pc.
22227 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22229 * Makefile.in: Remove obsolete code.
22231 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22233 * linux-low.c (regsets_fetch_inferior_registers),
22234 (regsets_store_inferior_registers): Removed cast to int from
22236 * regcache.h: Added declaration of struct inferior_info.
22238 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22240 * inferiors.c (struct inferior_info): Add regcache_data.
22241 (add_inferior): Call create_register_cache.
22242 (clear_inferiors): Call free_register_cache.
22243 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22244 * regcache.c (struct inferior_regcache_data): New.
22245 (registers): Remove.
22246 (get_regcache): New function.
22247 (create_register_cache, free_register_cache): New functions.
22248 (set_register_cache): Don't initialize the register cache here.
22249 (registers_to_string, registers_from_string, register_data): Call
22251 * regcache.h: Add prototypes.
22252 * server.h: Likewise.
22254 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22256 * mem-break.c: New file.
22257 * mem-break.h: New file.
22258 * Makefile.in: Add mem-break.o rule; update server.h
22260 * inferiors.c (struct inferior_info): Add target_data
22262 (clear_inferiors): Free target_data member if set.
22263 (inferior_target_data, set_inferior_target_data): New functions.
22264 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22265 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22266 * linux-low.c (linux_bp_reinsert): New variable.
22267 (struct inferior_linux_data): New.
22268 (linux_create_inferior): Use set_inferior_target_data.
22269 (linux_attach): Likewise. Call add_inferior.
22270 (linux_wait_for_one_inferior): New function.
22271 (linux_wait): Call it.
22272 (linux_write_memory): Add const.
22273 (initialize_low): Call set_breakpoint_data.
22274 * linux-low.h (struct linux_target_ops): Add breakpoint
22276 * server.c (attach_inferior): Remove extra add_inferior
22278 * server.h: Include mem-break.h. Update inferior.c
22280 * target.c (read_inferior_memory)
22281 (write_inferior_memory): New functions.
22282 * target.h (read_inferior_memory)
22283 (write_inferior_memory): Change macros to prototypes.
22284 (struct target_ops): Update comments. Add const to write_memory
22287 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22289 * linux-low.c (usr_store_inferior_registers): Support
22290 registers which are allowed to fail to store.
22291 * linux-low.h (linux_target_ops): Likewise.
22292 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22293 (ppc_cannot_store_register): FPSCR may not be storable.
22295 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22297 * server.h: Include <string.h> if HAVE_STRING_H.
22298 * ChangeLog: Correct paths in last ChangeLog entry.
22300 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22302 * linux-low.h: Remove obsolete prototypes.
22303 (struct linux_target_ops): New.
22304 (extern the_low_target): New.
22305 * linux-low.c (num_regs, regmap): Remove declarations.
22306 (register_addr): Use the_low_target explicitly.
22307 (fetch_register): Likewise.
22308 (usr_fetch_inferior_registers): Likewise.
22309 (usr_store_inferior_registers): Likewise.
22310 * linux-arm-low.c (num_regs): Remove.
22311 (arm_num_regs): Define.
22312 (arm_regmap): Renamed from regmap, made static.
22313 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22315 (arm_cannot_store_register): Renamed from cannot_store_register,
22317 (the_low_target): New.
22318 * linux-i386-low.c (num_regs): Remove.
22319 (i386_num_regs): Define.
22320 (i386_regmap): Renamed from regmap, made static.
22321 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22323 (i386_cannot_store_register): Renamed from cannot_store_register,
22325 (the_low_target): New.
22326 * linux-ia64-low.c (num_regs): Remove.
22327 (ia64_num_regs): Define.
22328 (ia64_regmap): Renamed from regmap, made static.
22329 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22331 (ia64_cannot_store_register): Renamed from cannot_store_register,
22333 (the_low_target): New.
22334 * linux-m68k-low.c (num_regs): Remove.
22335 (m68k_num_regs): Define.
22336 (m68k_regmap): Renamed from regmap, made static.
22337 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22339 (m68k_cannot_store_register): Renamed from cannot_store_register,
22341 (the_low_target): New.
22342 * linux-mips-low.c (num_regs): Remove.
22343 (mips_num_regs): Define.
22344 (mips_regmap): Renamed from regmap, made static.
22345 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22347 (mips_cannot_store_register): Renamed from cannot_store_register,
22349 (the_low_target): New.
22350 * linux-ppc-low.c (num_regs): Remove.
22351 (ppc_num_regs): Define.
22352 (ppc_regmap): Renamed from regmap, made static.
22353 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22355 (ppc_cannot_store_register): Renamed from cannot_store_register,
22357 (the_low_target): New.
22358 * linux-s390-low.c (num_regs): Remove.
22359 (s390_num_regs): Define.
22360 (s390_regmap): Renamed from regmap, made static.
22361 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22363 (s390_cannot_store_register): Renamed from cannot_store_register,
22365 (the_low_target): New.
22366 * linux-sh-low.c (num_regs): Remove.
22367 (sh_num_regs): Define.
22368 (sh_regmap): Renamed from regmap, made static.
22369 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22371 (sh_cannot_store_register): Renamed from cannot_store_register,
22373 (the_low_target): New.
22374 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22375 (the_low_target): New.
22377 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22379 * Makefile.in: Add stamp-h target.
22380 * configure.in: Create stamp-h.
22381 * configure: Regenerated.
22383 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22385 * inferiors.c: New file.
22386 * target.c: New file.
22387 * target.h: New file.
22388 * Makefile.in: Add target.o and inferiors.o. Update
22390 * linux-low.c (inferior_pid): New static variable,
22391 moved from server.c.
22392 (linux_create_inferior): Renamed from create_inferior.
22393 Call add_inferior. Return 0 on success instead of a PID.
22394 (linux_attach): Renamed from myattach.
22395 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22396 (linux_thread_alive): Renamed from mythread_alive.
22397 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22399 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22400 (regsets_store_inferior_registers): Correct error message.
22401 Add missing ``return 0''.
22402 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22403 (linux_store_registers): Renamed from store_inferior_registers.
22404 (linux_read_memory): Renamed from read_inferior_memory.
22405 (linux_write_memory): Renamed from write_inferior_memory.
22406 (linux_target_ops): New structure.
22407 (initialize_low): Call set_target_ops ().
22408 * remote-utils.c (unhexify): New function.
22409 (hexify): New function.
22410 (input_interrupt): Send signals to ``signal_pid''.
22411 * server.c (inferior_pid): Remove.
22412 (start_inferior): Update create_inferior call.
22413 (attach_inferior): Call add_inferior.
22414 (handle_query): New function.
22415 (main): Call handle_query for `q' packets.
22416 * server.h: Include "target.h". Remove obsolete prototypes.
22417 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22419 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22421 * Makefile.in: Add WARN_CFLAGS. Update configury
22423 * configure.in: Check for <string.h>
22424 * configure: Regenerate.
22425 * config.in: Regenerate.
22426 * gdbreplay.c: Include needed system headers.
22427 (remote_open): Remove strchr prototype.
22428 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22429 * regcache.c (supply_register): Change buf argument to const void *.
22430 (supply_register_by_name): Likewise.
22431 (collect_register): Change buf argument to void *.
22432 (collect_register_by_name): Likewise.
22433 * regcache.h: Add missing prototypes.
22434 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22435 * server.c (handle_query): New function.
22436 (attached): New static variable, moved out of main.
22437 (main): Quiet longjmp clobber warnings.
22438 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22439 * utils.c (error): Remove NORETURN.