1 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
3 * linux-arc-low.cc (arc_linux_read_description): Release the
4 unique_ptr returned from arc_create_target_description.
6 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
8 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
9 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
11 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
13 * linux-low.cc (linux_process_target::handle_extended_wait):
14 Release the unique_ptr returned from allocate_target_description.
15 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
16 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
17 (tdesc_i386_linux_no_xml): Change type.
18 (x86_linux_read_description): Borrow pointer from unique_ptr
20 (x86_target::get_ipa_tdesc_idx): Likewise.
21 (initialize_low_arch): Likewise.
22 * tdesc.cc (allocate_target_description): Update return type.
24 2020-10-07 Tom Tromey <tromey@adacore.com>
26 * server.cc (handle_search_memory): Remove dead code.
28 2020-10-07 Tom Tromey <tromey@adacore.com>
30 * server.cc (handle_search_memory_1): Remove.
31 (handle_search_memory): Use simple_search_memory.
33 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
35 * Makefile.in (COMPILE): Add CXXFLAGS.
36 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
37 (gdbserver$(EXEEXT)): Add CXXFLAGS.
38 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
39 ($(IPA_LIB)): Add CXXFLAGS.
40 (IPAGENT_COMPILE): Add CXXFLAGS.
42 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
44 * configure.srv: Support ARC architecture.
45 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
46 * linux-arc-low.cc: New file.
48 2020-10-07 Kamil Rytarowski <n54@gmx.com>
50 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
51 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
52 (netbsd_process_target::qxfer_libraries_svr4): Update.
54 2020-10-07 Kamil Rytarowski <n54@gmx.com>
56 * netbsd-low.cc: Fix whitespace formatting.
57 * netbsd-amd64-low.cc: Likewise.
59 2020-10-07 Kamil Rytarowski <n54@gmx.com>
61 * netbsd-low.cc (netbsd_process_target::read_memory)
62 (netbsd_process_target::write_memory): Update.
64 2020-10-07 Kamil Rytarowski <n54@gmx.com>
66 * netbsd-aarch64-low.cc: Add.
67 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
68 * configure.srv: Add aarch64*-*-netbsd*.
70 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
72 * regcache.cc (register_data): Remove unused "fetch" argument.
74 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
76 * server.cc (handle_monitor_command): Handle "set
78 (captured_main): Handle "--debug-event-loop".
79 (monitor_show_help): Mention new setting.
80 (gdbserver_usage): Mention new flag.
82 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
84 * linux-low.cc (linux_process_target::async): Pass name to
86 * remote-utils.cc (handle_accept_event): Likewise.
87 (remote_open): Likewise.
89 2020-10-01 Kamil Rytarowski <n54@gmx.com>
91 * netbsd-i386-low.cc: Add.
92 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
93 * configure.srv: Add i[34567]86-*-netbsd*.
95 2020-10-01 Kamil Rytarowski <n54@gmx.com>
97 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
98 (netbsd_target_regsets): Now const.
99 (the_low_target): Remove.
100 (class netbsd_amd64_target, the_netbsd_amd64_target)
101 (the_netbsd_target): Add.
102 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
104 (netbsd_process_target::fetch_registers)
105 (netbsd_process_target::store_registers, initialize_low): Update.
106 (the_netbsd_target): Remove.
107 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
108 (the_low_target, netbsd_tdesc): Remove.
109 (netbsd_process_target::get_regs_info)
110 (netbsd_process_target::low_arch_setup): Add.
112 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
114 * win32-low.cc: Remove local wow64_process variable.
115 * win32-low.h: Remove local wow64_process variable.
117 2020-09-18 Tom Tromey <tromey@adacore.com>
119 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
120 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
121 (netbsd_process_target::wait): Change type of target_options.
122 * win32-low.h (class win32_process_target) <wait>: Update.
123 * win32-low.cc (win32_process_target::wait): Update.
124 * target.h (class process_stratum_target) <wait>: Update.
126 * target.cc (mywait, target_wait): Change type of "options".
127 * linux-low.h (class linux_process_target) <wait, wait_1>:
129 * linux-low.cc (linux_process_target::wait)
130 (linux_process_target::wait_1): Update.
132 2020-09-15 Tom Tromey <tromey@adacore.com>
134 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
135 (xmltarget_amd64_linux_no_xml): Now arrays.
137 2020-09-14 Tom Tromey <tromey@adacore.com>
139 * tracepoint.cc (eval_result_names): Now const.
140 * ax.cc (gdb_agent_op_names): Now const.
142 2020-09-10 Kamil Rytarowski <n54@gmx.com>
144 * netbsd-low.cc: Add.
145 * netbsd-low.h: Likewise.
146 * netbsd-amd64-low.cc: Likewise.
147 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
148 "netbsd-amd64-low.cc".
149 * configure.srv: Add x86_64-*-netbsd*.
151 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
153 * server.cc (captured_main): Accept multiple `--selftest=`
154 options. Pass all `--selftest=` arguments to run_tests.
156 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
158 * configure, config.in: Regenerate.
160 2020-07-26 Eli Zaretskii <eliz@gnu.org>
162 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
163 When checking whether socklen_t type is defined, use ws2tcpip.h if
164 it is available and sys/socket.h isn't.
165 * configure: Regenerate.
166 * config.in: Regenerate.
168 2020-07-22 Pedro Alves <pedro@palves.net>
170 * inferiors.cc (switch_to_process): New, moved here from
171 thread-db.cc, and made extern.
172 * inferiors.h (switch_to_process): Declare.
173 * server.cc: Include "gdbsupport/scoped_restore.h".
174 (handle_qxfer_threads_proper): Now returns bool. Prepare to
175 access memory around target calls.
176 (handle_qxfer_threads): Handle errors.
177 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
179 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
181 * linux-low.cc (stopped_pids): Make static.
183 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
185 * tdesc.cc (allocate_target_description): Add header comment.
186 (target_desc_deleter::operator()): New function.
187 * tdesc.h (struct target_desc): Declare as final.
189 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
191 * server.cc (handle_query): Use std::vector of
192 std::string for `qsupported` vector. Use separate
194 * target.h (class process_stratum_target) <process_qsupported>:
195 Change parameters to array_view of const char *.
196 (target_process_qsupported): Remove `count` parameter.
197 * target.cc (process_stratum_target::process_qsupported): Change
198 parameters to array_view of const char *.
199 * linux-x86-low.cc (class x86_target) <process_qsupported>:
202 2020-06-29 Tom de Vries <tdevries@suse.de>
204 * ax.h: Include gdbsupport/debug_agent.h.
206 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
208 * tdesc.cc (struct tdesc_compatible_info): New struct.
209 (tdesc_compatible_info_list): New function.
210 (tdesc_compatible_info_arch_name): New function.
212 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
214 Use std::list to stop pending signal instead of manually-created
216 * linux-low.h: Include <list>.
217 (struct pending_signal): Move here from linux-low.cc.
218 (struct lwp_info) <pending_signals>
219 <pending_signals_to_report>: Update the type.
220 * linux-low.cc (struct pending_signals): Remove.
221 (linux_process_target::delete_lwp)
222 (linux_process_target::add_lwp)
223 (enqueue_one_deferred_signal)
224 (dequeue_one_deferred_signal)
225 (enqueue_pending_signal)
226 (linux_process_target::resume_one_lwp_throw)
227 (linux_process_target::thread_needs_step_over)
228 (linux_process_target::resume_one_thread)
229 (linux_process_target::proceed_one_lwp): Update the use of pending
232 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
234 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
237 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
239 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
240 * configure.srv: Remove mingw32ce cases.
241 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
242 * win32-low.h (to_back_slashes): Remove.
243 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
245 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
247 * Makefile.in (SFILES): linux-tile-low.cc.
248 * configure.srv: Remove tilegx case.
249 * linux-tile-low.cc: Remove.
251 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
253 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
254 * configure.srv: Remove m32r case.
255 * linux-m32r-low.cc: Remove.
257 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
259 * Makefile.in (SFILES): Remove linux-cris-low.c.
260 * configure.srv: Remove cris cases.
261 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
263 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
265 * Makefile.in (SFILES): Remove linux-bfin-low.c.
266 * configure.srv: Remove bfin case.
267 * linux-bfin-low.cc: Remove.
268 * linux-low.cc: Remove BFIN-conditional code.
270 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
272 * configure: Re-generate.
273 * configure.ac: Remove srv_qnx test.
274 * configure.srv: Remove nto case.
275 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
276 * remote-utils.c: Remove __QNX__-guarded code.
278 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
280 * configure: Re-generate.
281 * configure.ac: Remove srv_lynxos test.
282 * configure.srv: Remove lynxos cases.
283 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
286 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
288 * README: Fix a few outdated or incoherent things.
290 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
292 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
293 (win32_clear_inferiors): Use open_process_used.
294 (get_child_debug_event): Likewise.
296 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
299 * linux-low.cc (linux_process_target::create_inferior),
300 lynx-low.cc (lynx_process_target::create_inferior),
301 win32-low.cc (win32_process_target::create_inferior): Use
302 construct_inferior_arguments instead of stringify_argv
303 to get string representation which properly escapes
305 * server.cc (handle_v_run): Just pass empty program arg
306 as such, since any further processing is now handled via
307 construct_inferior_arguments.
309 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
311 * nto-low.cc (nto_process_target::create_inferior): Pass
312 argv to spawnp function as char **.
314 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
316 * server.cc (captured_main), (handle_v_run): No longer
317 insert extra NULL element to args vector.
319 2020-05-23 Pedro Alves <palves@redhat.com>
321 * gdb-safe-ctype.h: New.
323 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
325 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
326 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
327 (ia64_target::low_breakpoint_at): Ditto.
329 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
331 * win32-i386-low.cc (i386_supports_z_point_type): Handle
332 Z_PACKET_HW_BP z_type.
333 (i386_insert_point): Handle raw_bkpt_type type.
334 (i386_remove_point): Likewise.
336 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
338 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
340 * win32-arm-low.cc (arm_num_regs): New function.
341 (struct win32_target_ops): Use arm_num_regs.
342 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
344 (i386_get_thread_context): Likewise.
345 (i386_prepare_to_resume): Likewise.
346 (i386_thread_added): Likewise.
347 (i386_single_step): Likewise.
348 (i386_fetch_inferior_register): Likewise.
349 (i386_store_inferior_register): Likewise.
350 (i386_arch_setup): Likewise.
351 (i386_win32_num_regs): New function.
352 (struct win32_target_ops): Use i386_win32_num_regs.
353 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
355 (win32_require_context): Likewise.
356 (child_add_thread): Likewise.
357 (do_initial_child_stuff): Likewise.
358 (continue_one_thread): Likewise.
359 (win32_process_target::resume): Likewise.
360 (load_psapi): Likewise.
361 (win32_add_all_dlls): Likewise.
362 (maybe_adjust_pc): Likewise.
363 (win32_process_target::qxfer_siginfo): Likewise.
364 (initialize_low): Likewise.
365 * win32-low.h (struct win32_target_ops): Change num_regs to
368 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
370 * configure.ac: Remove check for fs_base/gs_base in
372 * configure: Re-generate.
373 * config.in: Re-generate.
374 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
375 x86_store_gregset): Adjust.
377 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
379 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
382 2020-04-16 Tom Tromey <tromey@adacore.com>
384 * win32-low.cc (windows_nat::handle_access_violation): New
387 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
389 * win32-low.cc (get_child_debug_event): Fix format string warning.
391 2020-04-13 Tom Tromey <tom@tromey.com>
393 * server.h (gdb_fildes_t): Remove typedef.
394 * remote-utils.c (remote_desc, list_desc): Now int.
395 (INVALID_DESCRIPTOR): Remove.
396 (gdb_connected, remote_close)
397 (check_remote_input_interrupt_request): Update.
398 * utils.h (pfildes): Don't declare.
399 * utils.c (pfildes): Remove.
401 2020-04-13 Tom Tromey <tom@tromey.com>
403 * server.h (handle_serial_event, handle_target_event): Update.
404 * server.c: Don't call initialize_event_loop.
405 (keep_processing_events): New global.
406 (handle_serial_event): Return void. Set keep_processing_events.
407 (handle_target_event): Return void.
408 (start_event_loop): Move from event-loop.c. Rewrite.
409 * remote-utils.c (handle_accept_event): Return void.
410 (reset_readchar): Use delete_timer.
411 (process_remaining): Return void.
412 (reschedule): Use create_timer.
413 * event-loop.h: Remove.
414 * event-loop.cc: Remove.
415 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
417 2020-04-13 Tom Tromey <tom@tromey.com>
419 * server.c (invoke_async_signal_handlers)
420 (check_async_event_handlers, flush_streams, gdb_select): New
423 2020-04-13 Tom Tromey <tom@tromey.com>
425 * configure: Rebuild.
426 * config.in: Rebuild.
428 2020-04-08 Tom Tromey <tromey@adacore.com>
431 * win32-low.c (child_continue): Call matching_pending_stop.
432 (get_child_debug_event): Call fetch_pending_stop. Push pending
435 2020-04-08 Tom Tromey <tromey@adacore.com>
437 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
438 (win32_process_target::supports_stopped_by_sw_breakpoint):
440 * win32-low.c (win32_supports_z_point_type): Always handle
442 (win32_insert_point): Call insert_memory_breakpoint when needed.
443 (win32_remove_point): Call remove_memory_breakpoint when needed.
444 (win32_process_target::stopped_by_sw_breakpoint)
445 (win32_process_target::supports_stopped_by_sw_breakpoint): New
447 (win32_target_ops): Update.
448 (maybe_adjust_pc): New function.
449 (win32_wait): Call maybe_adjust_pc.
451 2020-04-08 Tom Tromey <tromey@adacore.com>
453 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
455 * win32-i386-low.c (the_low_target): Update.
456 * win32-arm-low.c (the_low_target): Update.
458 2020-04-08 Tom Tromey <tromey@adacore.com>
460 * win32-low.h (win32_process_target::read_pc)
461 (win32_process_target::write_pc): Declare.
462 * win32-low.c (win32_process_target::read_pc)
463 (win32_process_target::write_pc): New methods.
464 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
466 (the_low_target): Update.
467 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
469 (the_low_target): Update.
471 2020-04-08 Tom Tromey <tromey@adacore.com>
473 * win32-low.c (win32_kill, get_child_debug_event): Use
474 wait_for_debug_event.
476 2020-04-08 Tom Tromey <tromey@adacore.com>
478 * win32-low.c (child_continue): Call continue_last_debug_event.
480 2020-04-08 Tom Tromey <tromey@adacore.com>
482 * win32-low.c (handle_exception): Remove.
483 (windows_nat::handle_ms_vc_exception): New function.
484 (get_child_debug_event): Add "continue_status" parameter.
486 (win32_wait): Update.
488 2020-04-08 Tom Tromey <tromey@adacore.com>
490 * win32-low.c (windows_nat::handle_load_dll): Rename from
491 handle_load_dll. No longer static.
492 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
495 2020-04-08 Tom Tromey <tromey@adacore.com>
497 * win32-low.c (handle_output_debug_string): Add parameter. Change
499 (win32_kill, get_child_debug_event): Update.
501 2020-04-08 Tom Tromey <tromey@adacore.com>
503 * win32-low.c (current_process_handle, current_process_id)
504 (main_thread_id, last_sig, current_event, siginfo_er): Move to
507 2020-04-08 Tom Tromey <tromey@adacore.com>
509 * win32-low.c (get_image_name): Remove.
510 (handle_load_dll): Update.
512 2020-04-08 Tom Tromey <tromey@adacore.com>
514 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
515 No longer static. Change parameters.
516 (child_add_thread, child_fetch_inferior_registers)
517 (child_store_inferior_registers, win32_resume)
518 (win32_get_tib_address): Update.
520 2020-04-08 Tom Tromey <tromey@adacore.com>
522 * win32-low.h (struct win32_target_ops): Use qualified names where
524 * win32-i386-low.c: Add "using namespace".
525 * win32-low.c: Add "using namespace".
526 * win32-arm-low.c: Add "using namespace".
528 2020-04-08 Tom Tromey <tromey@adacore.com>
530 * win32-low.c (delete_thread_info): Don't call CloseHandle.
532 2020-04-08 Tom Tromey <tromey@adacore.com>
534 * win32-low.c (win32_require_context, suspend_one_thread): Use
535 windows_thread_info::suspend.
536 (continue_one_thread): Use windows_thread_info::resume.
537 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
539 2020-04-08 Tom Tromey <tromey@adacore.com>
541 * win32-i386-low.c (update_debug_registers)
542 (i386_prepare_to_resume, i386_thread_added): Update.
544 2020-04-08 Tom Tromey <tromey@adacore.com>
546 * win32-low.c (child_add_thread): Use new.
547 (delete_thread_info): Use delete.
549 2020-04-08 Tom Tromey <tromey@adacore.com>
551 * win32-low.h (struct windows_thread_info): Remove.
553 2020-04-08 Tom Tromey <tromey@adacore.com>
555 * win32-low.h (struct windows_thread_info): Rename from
556 win32_thread_info. Remove typedef.
557 (struct win32_target_ops, win32_require_context): Update.
558 * win32-low.c (win32_get_thread_context)
559 (win32_set_thread_context, win32_prepare_to_resume)
560 (win32_require_context, thread_rec, child_add_thread)
561 (delete_thread_info, continue_one_thread)
562 (child_fetch_inferior_registers, child_store_inferior_registers)
563 (win32_resume, suspend_one_thread, win32_get_tib_address):
565 * win32-i386-low.c (update_debug_registers)
566 (win32_get_current_dr, i386_get_thread_context)
567 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
568 (i386_fetch_inferior_register, i386_store_inferior_register):
570 * win32-arm-low.c (arm_get_thread_context)
571 (arm_fetch_inferior_register, arm_store_inferior_register):
574 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
576 * linux-low.h (struct linux_target_ops): Remove.
577 (the_low_target): Remove.
578 * linux-x86-low.cc (the_low_target): Remove.
579 * linux-aarch64-low.cc (the_low_target): Ditto.
580 * linux-arm-low.cc (the_low_target): Ditto.
581 * linux-bfin-low.cc (the_low_target): Ditto.
582 * linux-cris-low.cc (the_low_target): Ditto.
583 * linux-crisv32-low.cc (the_low_target): Ditto.
584 * linux-ia64-low.cc (the_low_target): Ditto.
585 * linux-m32r-low.cc (the_low_target): Ditto.
586 * linux-m68k-low.cc (the_low_target): Ditto.
587 * linux-mips-low.cc (the_low_target): Ditto.
588 * linux-nios2-low.cc (the_low_target): Ditto.
589 * linux-ppc-low.cc (the_low_target): Ditto.
590 * linux-riscv-low.cc (the_low_target): Ditto.
591 * linux-s390-low.cc (the_low_target): Ditto.
592 * linux-sh-low.cc (the_low_target): Ditto.
593 * linux-sparc-low.cc (the_low_target): Ditto.
594 * linux-tic6x-low.cc (the_low_target): Ditto.
595 * linux-tile-low.cc (the_low_target): Ditto.
596 * linux-xtensa-low.cc (the_low_target): Ditto.
598 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
600 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
601 linux target define the op by overriding the declaration in
602 process_stratum_target.
604 * linux-low.h (struct linux_target_ops): Remove the op.
605 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
606 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
607 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
608 (x86_get_ipa_tdesc_idx): Turn into...
609 (x86_target::get_ipa_tdesc_idx): ...this.
610 (the_low_target): Remove the op field.
611 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
612 (ppc_get_ipa_tdesc_idx): Turn into...
613 (ppc_target::get_ipa_tdesc_idx): ...this.
614 (the_low_target): Remove the op field.
615 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
616 (s390_get_ipa_tdesc_idx): Turn into...
617 (s390_target::get_ipa_tdesc_idx): ...this.
618 (the_low_target): Remove the op field.
620 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
622 Turn the 'get_syscall_trapinfo' linux target op into a method
623 of process_stratum_target.
625 * linux-low.h (struct linux_target_ops): Remove the op.
626 (class linux_process_target) <get_syscall_trapinfo>
627 <gdb_catch_this_syscall>
628 <low_supports_catch_syscall>
629 <low_get_syscall_trapinfo>: Declare.
630 * linux-low.cc (get_syscall_trapinfo): Turn into...
631 (linux_process_target::get_syscall_trapinfo): ...this.
632 (linux_process_target::low_get_syscall_trapinfo): Define.
633 (gdb_catch_this_syscall_p): Turn into...
634 (linux_process_target::gdb_catch_this_syscall): ...this.
635 (linux_process_target::low_supports_catch_syscall): Define.
637 Update the callers below.
639 (linux_process_target::wait_1)
640 (linux_process_target::supports_catch_syscall)
642 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
643 <low_get_syscall_trapinfo>: Declare.
644 (x86_target::low_supports_catch_syscall): Define.
645 (x86_get_syscall_trapinfo): Turn into...
646 (x86_target::low_get_syscall_trapinfo): ...this.
647 (the_low_target): Remove the op field.
648 * linux-aarch64-low.cc (class aarch64_target)
649 <low_supports_catch_syscall>
650 <low_get_syscall_trapinfo>: Declare.
651 (aarch64_target::low_supports_catch_syscall): Define.
652 (aarch64_get_syscall_trapinfo): Turn into...
653 (aarch64_target::low_get_syscall_trapinfo): ...this.
654 (the_low_target): Remove the op field.
655 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
656 <low_get_syscall_trapinfo>: Declare.
657 (arm_target::low_supports_catch_syscall): Define.
658 (arm_get_syscall_trapinfo): Turn into...
659 (arm_target::low_get_syscall_trapinfo): ...this.
660 (the_low_target): Remove the op field.
661 * linux-ppc-low.cc (the_low_target): Remove the op field.
662 * linux-s390-low.cc (the_low_target): Remove the op field.
664 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
666 Remove the 'supports_hardware_single_step' linux target op and
667 override the process_stratum_target's op definition in
668 linux_process_target to return true.
670 * linux-low.h (struct linux_target_ops): Remove the op.
671 (class linux_process_target) <finish_step_over>
672 <maybe_hw_step>: Declare.
673 * linux-low.cc (can_hardware_single_step): Remove.
674 (maybe_hw_step): Turn into...
675 (linux_process_target::maybe_hw_step): ...this.
676 (finish_step_over): Turn into...
677 (linux_process_target::finish_step_over): ...this.
678 (linux_process_target::supports_hardware_single_step): Update
681 Update the callers below.
683 (linux_process_target::single_step)
684 (linux_process_target::resume_one_lwp_throw)
686 * linux-arm-low.cc (class arm_target)
687 <supports_hardware_single_step>: Declare.
688 (arm_supports_hardware_single_step): Turn into...
689 (arm_target::supports_hardware_single_step): ...this.
690 (the_low_target): Remove the op field.
691 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
692 (the_low_target): Remove the op field.
693 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
695 (the_low_target): Remove the op field.
696 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
697 (the_low_target): Remove the op field.
698 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
699 (the_low_target): Remove the op field.
700 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
701 (the_low_target): Remove the op field.
702 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
703 (the_low_target): Remove the op field.
704 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
705 (the_low_target): Remove the op field.
706 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
707 (the_low_target): Remove the op field.
708 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
709 (the_low_target): Remove the op field.
710 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
711 (the_low_target): Remove the op field.
712 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
713 (the_low_target): Remove the op field.
714 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
716 (the_low_target): Remove the op field.
718 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
720 Turn the 'supports_range_stepping' linux target op into a method
721 of linux_process_target.
723 * linux-low.h (struct linux_target_ops): Remove the op.
724 (class linux_process_target) <low_supports_range_stepping>: Declare.
725 * linux-low.cc (linux_process_target::low_supports_range_stepping):
727 (linux_process_target::supports_range_stepping): Update the call
729 * linux-x86-low.cc (class x86_target)
730 <low_supports_range_stepping>: Declare.
731 (x86_supports_range_stepping): Turn into...
732 (x86_target::low_supports_range_stepping): ...this.
733 (the_low_target): Remove the op field.
734 * linux-aarch64-low.cc (class aarch64_target)
735 <low_supports_range_stepping>: Declare.
736 (aarch64_supports_range_stepping): Turn into...
737 (aarch64_target::low_supports_range_stepping): ...this.
738 (the_low_target): Remove the op field.
739 * linux-arm-low.cc (the_low_target): Remove the op field.
740 * linux-bfin-low.cc (the_low_target): Ditto.
741 * linux-crisv32-low.cc (the_low_target): Ditto.
742 * linux-m32r-low.cc (the_low_target): Ditto.
743 * linux-m68k-low.cc (the_low_target): Ditto.
744 * linux-ppc-low.cc (the_low_target): Ditto.
745 * linux-s390-low.cc (the_low_target): Ditto.
746 * linux-sh-low.cc (the_low_target): Ditto.
747 * linux-tic6x-low.cc (the_low_target): Ditto.
748 * linux-tile-low.cc (the_low_target): Ditto.
749 * linux-xtensa-low.cc (the_low_target): Ditto.
751 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
753 Remove the 'emit_ops' linux target ops and let the concrete
754 linux target define the op by overriding the declaration of
755 process_stratum_target.
757 * linux-low.h (struct linux_target_ops): Remove the op.
758 (class linux_process_target) <emit_ops>: Remove.
759 * linux-low.cc (linux_process_target::emit_ops): Remove.
760 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
761 (x86_emit_ops): Turn into...
762 (x86_target::emit_ops): ...this.
763 (the_low_target): Remove the op field.
764 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
765 (aarch64_emit_ops): Turn into...
766 (aarch64_target::emit_ops): ...this.
767 (the_low_target): Remove the op field.
768 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
769 (ppc_emit_ops): Turn into...
770 (ppc_target::emit_ops): ...this.
771 (the_low_target): Remove the op field.
772 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
773 (s390_emit_ops): Turn into...
774 (s390_target::emit_ops): ...this.
775 (the_low_target): Remove the op field.
776 * linux-arm-low.cc (the_low_target): Remove the op field.
777 * linux-bfin-low.cc (the_low_target): Ditto.
778 * linux-crisv32-low.cc (the_low_target): Ditto.
779 * linux-m32r-low.cc (the_low_target): Ditto.
780 * linux-m68k-low.cc (the_low_target): Ditto.
781 * linux-sh-low.cc (the_low_target): Ditto.
782 * linux-tic6x-low.cc (the_low_target): Ditto.
783 * linux-tile-low.cc (the_low_target): Ditto.
784 * linux-xtensa-low.cc (the_low_target): Ditto.
786 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
788 Remove the 'install_fast_tracepoint_jump_pad' and
789 'get_min_fast_tracepoint_insn_len' linux target ops to let the
790 concrete linux target define the ops by overriding the declarations
791 of process_stratum_target.
793 * linux-low.h (struct linux_target_ops): Remove the ops.
794 (class linux_process_target) <supports_fast_tracepoints>
795 <install_fast_tracepoint_jump_pad>
796 <get_min_fast_tracepoint_insn_len>: Remove.
797 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
798 (linux_process_target::install_fast_tracepoint_jump_pad)
799 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
800 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
801 <install_fast_tracepoint_jump_pad>
802 <get_min_fast_tracepoint_insn_len>: Declare.
803 (x86_target::supports_fast_tracepoints): Define.
804 (x86_install_fast_tracepoint_jump_pad): Turn into...
805 (x86_target::install_fast_tracepoint_jump_pad): ...this.
806 (x86_get_min_fast_tracepoint_insn_len): Turn into...
807 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
808 (the_low_target): Remove the op fields.
809 * linux-aarch64-low.cc (class aarch64_target)
810 <supports_fast_tracepoints>
811 <install_fast_tracepoint_jump_pad>
812 <get_min_fast_tracepoint_insn_len>: Declare.
813 (aarch64_target::supports_fast_tracepoints): Define.
814 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
815 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
816 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
817 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
818 (the_low_target): Remove the op fields.
819 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
820 <install_fast_tracepoint_jump_pad>
821 <get_min_fast_tracepoint_insn_len>: Declare.
822 (ppc_target::supports_fast_tracepoints): Define.
823 (ppc_install_fast_tracepoint_jump_pad): Turn into...
824 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
825 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
826 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
827 (the_low_target): Remove the op fields.
828 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
829 <install_fast_tracepoint_jump_pad>
830 <get_min_fast_tracepoint_insn_len>: Declare.
831 (s390_target::supports_fast_tracepoints): Define.
832 (s390_install_fast_tracepoint_jump_pad): Turn into...
833 (s390_target::install_fast_tracepoint_jump_pad): ...this.
834 (s390_get_min_fast_tracepoint_insn_len): Turn into...
835 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
836 (the_low_target): Remove the op fields.
837 * linux-arm-low.cc (the_low_target): Remove the op fields.
838 * linux-bfin-low.cc (the_low_target): Ditto.
839 * linux-crisv32-low.cc (the_low_target): Ditto.
840 * linux-m32r-low.cc (the_low_target): Ditto.
841 * linux-m68k-low.cc (the_low_target): Ditto.
842 * linux-sh-low.cc (the_low_target): Ditto.
843 * linux-tic6x-low.cc (the_low_target): Ditto.
844 * linux-tile-low.cc (the_low_target): Ditto.
845 * linux-xtensa-low.cc (the_low_target): Ditto.
847 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
849 Turn the 'get_thread_area' linux target op into a method of
850 process_stratum_target.
852 * linux-low.h (struct linux_target_ops): Remove the op.
853 (class linux_process_target) <stuck_in_jump_pad>
854 <linux_fast_tracepoint_collecting>
855 <low_get_thread_area>: Declare.
856 * linux-low.cc (supports_fast_tracepoints): Remove.
857 (linux_fast_tracepoint_collecting): Turn into...
858 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
859 (linux_process_target::low_get_thread_area): Define.
860 (stuck_in_jump_pad_callback): Turn into...
861 (linux_process_target::stuck_in_jump_pad): ...this.
863 Update the caller below.
865 (linux_process_target::stabilize_threads)
867 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
869 (x86_get_thread_area): Turn into...
870 (x86_target::low_get_thread_area): ...this.
871 (the_low_target): Remove the op field.
872 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
874 (aarch64_get_thread_area): Turn into...
875 (aarch64_target::low_get_thread_area): ...this.
876 (the_low_target): Remove the op field.
877 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
879 (ppc_get_thread_area): Turn into...
880 (ppc_target::low_get_thread_area): ...this.
881 (the_low_target): Remove the op field.
882 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
884 (s390_get_thread_area): Turn into...
885 (s390_target::low_get_thread_area): ...this.
886 (the_low_target): Remove the op field.
887 * linux-arm-low.cc (the_low_target): Remove the op field.
888 * linux-bfin-low.cc (the_low_target): Ditto.
889 * linux-crisv32-low.cc (the_low_target): Ditto.
890 * linux-m32r-low.cc (the_low_target): Ditto.
891 * linux-m68k-low.cc (the_low_target): Ditto.
892 * linux-sh-low.cc (the_low_target): Ditto.
893 * linux-tic6x-low.cc (the_low_target): Ditto.
894 * linux-tile-low.cc (the_low_target): Ditto.
895 * linux-xtensa-low.cc (the_low_target): Ditto.
897 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
899 Remote the 'supports_tracepoints' linux target op and let the
900 concrete linux target define it by overriding the op declared in
901 process_stratum_target.
903 * linux-low.h (struct linux_target_ops): Remove the op.
904 (class linux_process_target) <supports_tracepoints>: Remove.
905 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
906 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
908 (x86_supports_tracepoints): Turn into...
909 (x86_target::supports_tracepoints): ...this.
910 (the_low_target): Remove the op field.
911 * linux-aarch64-low.cc (class aarch64_target)
912 <supports_tracepoints>: Declare.
913 (aarch64_supports_tracepoints): Turn into...
914 (aarch64_target::supports_tracepoints): ...this.
915 (the_low_target): Remove the op field.
916 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
918 (ppc_supports_tracepoints): Turn into...
919 (ppc_target::supports_tracepoints): ...this.
920 (the_low_target): Remove the op field.
921 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
923 (s390_supports_tracepoints): Turn into...
924 (s390_target::supports_tracepoints): ...this.
925 (the_low_target): Remove the op field.
926 * linux-arm-low.cc (the_low_target): Remove the op field.
927 * linux-bfin-low.cc (the_low_target): Ditto.
928 * linux-crisv32-low.cc (the_low_target): Ditto.
929 * linux-m32r-low.cc (the_low_target): Ditto.
930 * linux-m68k-low.cc (the_low_target): Ditto.
931 * linux-sh-low.cc (the_low_target): Ditto.
932 * linux-tic6x-low.cc (the_low_target): Ditto.
933 * linux-tile-low.cc (the_low_target): Ditto.
934 * linux-xtensa-low.cc (the_low_target): Ditto.
936 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
938 Remove the 'process_qsupported' linux target op and let a concrete
939 linux target define the op by overriding the op declaration in
940 process_stratum_target.
942 * linux-low.h (struct linux_target_ops): Remove the op.
943 (class linux_process_target) <process_qsupported>: Remove.
944 * linux-low.cc (linux_process_target::process_qsupported): Remove.
945 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
946 (x86_linux_process_qsupported): Turn into...
947 (x86_target::process_qsupported): ...this.
948 (the_low_target): Remove the op field.
949 * linux-aarch64-low.cc (the_low_target): Remove the op
951 * linux-arm-low.cc (the_low_target): Ditto.
952 * linux-bfin-low.cc (the_low_target): Ditto.
953 * linux-crisv32-low.cc (the_low_target): Ditto.
954 * linux-m32r-low.cc (the_low_target): Ditto.
955 * linux-m68k-low.cc (the_low_target): Ditto.
956 * linux-ppc-low.cc (the_low_target): Ditto.
957 * linux-s390-low.cc (the_low_target): Ditto.
958 * linux-sh-low.cc (the_low_target): Ditto.
959 * linux-tic6x-low.cc (the_low_target): Ditto.
960 * linux-tile-low.cc (the_low_target): Ditto.
961 * linux-xtensa-low.cc (the_low_target): Ditto.
963 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
965 Turn the 'prepare_to_resume' linux target op into a method of
966 linux_process_target.
968 * linux-low.h (struct linux_target_ops): Remove the op.
969 (class linux_process_target) <low_prepare_to_resume>: Declare.
970 * linux-low.cc (linux_process_target::low_prepare_to_resume):
973 Update the callers below:
975 (linux_process_target::resume_one_lwp_throw)
976 (linux_process_target::low_prepare_to_resume)
978 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
980 (x86_target::low_prepare_to_resume): Define.
981 (the_low_target): Remove the op field.
982 * linux-aarch64-low.cc (class aarch64_target)
983 <low_prepare_to_resume>: Declare.
984 (aarch64_target::low_prepare_to_resume): Define.
985 (the_low_target): Remove the op field.
986 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
988 (arm_prepare_to_resume): Turn into...
989 (arm_target::low_prepare_to_resume): ...this.
990 (the_low_target): Remove the op field.
991 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
993 (mips_linux_prepare_to_resume): Turn into...
994 (mips_target::low_prepare_to_resume): ...this.
995 (the_low_target): Remove the op field.
996 * linux-bfin-low.cc (the_low_target): Remove the op field.
997 * linux-crisv32-low.cc (the_low_target): Ditto.
998 * linux-m32r-low.cc (the_low_target): Ditto.
999 * linux-m68k-low.cc (the_low_target): Ditto.
1000 * linux-ppc-low.cc (the_low_target): Ditto.
1001 * linux-s390-low.cc (the_low_target): Ditto.
1002 * linux-sh-low.cc (the_low_target): Ditto.
1003 * linux-tic6x-low.cc (the_low_target): Ditto.
1004 * linux-tile-low.cc (the_low_target): Ditto.
1005 * linux-xtensa-low.cc (the_low_target): Ditto.
1007 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1009 Turn the 'new_process', 'delete_process', 'new_thread',
1010 'delete_thread', and 'new_fork' linux target ops into methods
1011 of linux_process_target.
1013 * linux-low.h (struct linux_target_ops): Remove the ops.
1014 (class linux_process_target) <add_linux_process>
1019 <check_zombie_leaders>
1022 <low_delete_process>
1025 <low_new_fork>: Declare.
1026 * linux-low.cc (delete_lwp): Turn into...
1027 (linux_process_target::delete_lwp): ...this.
1028 (linux_process_target::low_delete_thread): Define.
1029 (linux_add_process): Turn into...
1030 (linux_process_target::add_linux_process): ...this.
1031 (linux_process_target::low_new_process): Define.
1032 (linux_process_target::low_delete_process): Define.
1033 (linux_process_target::low_new_fork): Define.
1034 (add_lwp): Turn into...
1035 (linux_process_target::add_lwp): ...this.
1036 (linux_process_target::low_new_thread): Define.
1037 (linux_attach_lwp): Turn into...
1038 (linux_process_target::attach_lwp): ...this.
1039 (linux_detach_one_lwp): Turn into...
1040 (linux_process_target::detach_one_lwp): ...this.
1041 (linux_detach_lwp_callback): Remove and inline...
1042 (linux_process_target::detach): ...here.
1043 (check_zombie_leaders): Turn into...
1044 (linux_process_target::check_zombie_leaders): ...this.
1045 (filter_exit_event): Turn into...
1046 (linux_process_target::filter_exit_event): ...this.
1048 Update the callers below.
1050 (linux_process_target::handle_extended_wait)
1051 (linux_process_target::create_inferior)
1052 (attach_proc_task_lwp_callback)
1053 (linux_process_target::attach)
1054 (linux_process_target::detach)
1055 (linux_process_target::mourn)
1056 * thread-db.cc (attach_thread)
1058 * linux-x86-low.cc (class x86_target) <low_new_process>
1059 <low_delete_process>
1062 <low_new_fork>: Declare.
1063 (x86_linux_new_process): Turn into...
1064 (x86_target::low_new_process): ...this.
1065 (x86_linux_delete_process): Turn into...
1066 (x86_target::low_delete_process): ...this.
1067 (x86_target::low_new_thread): Define.
1068 (x86_target::low_delete_thread): Define.
1069 (x86_linux_new_fork): Turn into...
1070 (x86_target::low_new_fork): ...this.
1071 (the_low_target): Remove the op fields.
1072 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1073 <low_delete_process>
1076 <low_new_fork>: Declare.
1077 (aarch64_linux_new_process): Turn into...
1078 (aarch64_target::low_new_process): ...this.
1079 (aarch64_linux_delete_process): Turn into...
1080 (aarch64_target::low_delete_process): ...this.
1081 (aarch64_target::low_new_thread): Define.
1082 (aarch64_target::low_delete_thread): Define.
1083 (aarch64_linux_new_fork): Turn into...
1084 (aarch64_target::low_new_fork): ...this.
1085 (the_low_target): Remove the op fields.
1086 * linux-arm-low.cc (class arm_target) <low_new_process>
1087 <low_delete_process>
1090 <low_new_fork>: Declare.
1091 (arm_new_process): Turn into...
1092 (arm_target::low_new_process): ...this.
1093 (arm_delete_process): Turn into...
1094 (arm_target::low_delete_process): ...this.
1095 (arm_new_thread): Turn into...
1096 (arm_target::low_new_thread): ...this.
1097 (arm_delete_thread): Turn into...
1098 (arm_target::low_delete_thread): ...this.
1099 (arm_new_fork): Turn into...
1100 (arm_target::low_new_fork): ...this.
1101 (the_low_target): Remove the op fields.
1102 * linux-mips-low.cc (class mips_target) <low_new_process>
1103 <low_delete_process>
1106 <low_new_fork>: Declare.
1107 (mips_linux_new_process): Turn into...
1108 (mips_target::low_new_process): ...this.
1109 (mips_linux_delete_process): Turn into...
1110 (mips_target::low_delete_process): ...this.
1111 (mips_linux_new_thread): Turn into...
1112 (mips_target::low_new_thread): ...this.
1113 (mips_linux_delete_thread): Turn into...
1114 (mips_target::low_delete_thread): ...this.
1115 (mips_linux_new_fork): Turn into...
1116 (mips_target::low_new_fork): ...this.
1117 (the_low_target): Remove the op fields.
1118 * linux-bfin-low.cc (the_low_target): Remove the op fields.
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-ppc-low.cc (the_low_target): Ditto.
1123 * linux-s390-low.cc (the_low_target): Ditto.
1124 * linux-sh-low.cc (the_low_target): Ditto.
1125 * linux-tic6x-low.cc (the_low_target): Ditto.
1126 * linux-tile-low.cc (the_low_target): Ditto.
1127 * linux-xtensa-low.cc (the_low_target): Ditto.
1129 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1131 Turn the 'siginfo_fixup' linux target op into a method of
1132 linux_process_target.
1134 * linux-low.h (struct linux_target_ops): Remove the op.
1135 (class linux_process_target) <siginfo_fixup>
1136 <low_siginfo_fixup>: Declare.
1137 * linux-low.cc (siginfo_fixup): Turn into...
1138 (linux_process_target::siginfo_fixup): ...this.
1139 (linux_process_target::low_siginfo_fixup): Define.
1140 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1141 (x86_siginfo_fixup): Turn into...
1142 (x86_target::low_siginfo_fixup): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-aarch64-low.cc (class aarch64_target):
1145 <low_siginfo_fixup>: Declare.
1146 (aarch64_linux_siginfo_fixup): Turn into...
1147 (aarch64_target::low_siginfo_fixup): ...this.
1148 (the_low_target): Remove the op field.
1149 * linux-arm-low.cc (the_low_target): Remove the op field.
1150 * linux-bfin-low.cc (the_low_target): Ditto.
1151 * linux-crisv32-low.cc (the_low_target): Ditto.
1152 * linux-m32r-low.cc (the_low_target): Ditto.
1153 * linux-m68k-low.cc (the_low_target): Ditto.
1154 * linux-mips-low.cc (the_low_target): Ditto.
1155 * linux-ppc-low.cc (the_low_target): Ditto.
1156 * linux-s390-low.cc (the_low_target): Ditto.
1157 * linux-sh-low.cc (the_low_target): Ditto.
1158 * linux-tic6x-low.cc (the_low_target): Ditto.
1159 * linux-tile-low.cc (the_low_target): Ditto.
1160 * linux-xtensa-low.cc (the_low_target): Ditto.
1162 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1164 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1165 linux target ops into methods of linux_process_target.
1167 * linux-low.h (struct linux_target_ops): Remove the ops.
1168 (class linux_process_target) <low_collect_ptrace_register>
1169 <low_store_ptrace_register>: Declare.
1170 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1171 (linux_process_target::low_supply_ptrace_register): Define.
1173 Update the callers below.
1175 (linux_process_target::fetch_register)
1176 (linux_process_target::store_register)
1178 * linux-x86-low.cc (the_low_target): Remove the op fields.
1179 * linux-aarch64-low.cc (the_low_target): Ditto.
1180 * linux-arm-low.cc (the_low_target): Ditto.
1181 * linux-bfin-low.cc (the_low_target): Ditto.
1182 * linux-crisv32-low.cc (the_low_target): Ditto.
1183 * linux-m32r-low.cc (the_low_target): Ditto.
1184 * linux-m68k-low.cc (the_low_target): Ditto.
1185 * linux-sh-low.cc (the_low_target): Ditto.
1186 * linux-sparc-low.cc (the_low_target): Ditto.
1187 * linux-tic6x-low.cc (the_low_target): Ditto.
1188 * linux-tile-low.cc (the_low_target): Ditto.
1189 * linux-xtensa-low.cc (the_low_target): Ditto.
1190 * linux-mips-low.cc (class mips_target)
1191 <low_collect_ptrace_register>
1192 <low_supply_ptrace_register>: Declare.
1193 (mips_collect_ptrace_register): Turn into ...
1194 (mips_target::low_collect_ptrace_register): ...this.
1195 (mips_supply_ptrace_register): Turn into...
1196 (mips_target::low_supply_ptrace_register): ...this.
1197 (the_low_target): Remove the op fields.
1198 * linux-ppc-low.cc (class ppc_target)
1199 <low_collect_ptrace_register>
1200 <low_supply_ptrace_register>: Declare.
1201 (ppc_collect_ptrace_register): Turn into ...
1202 (ppc_target::low_collect_ptrace_register): ...this.
1203 (ppc_supply_ptrace_register): Turn into ...
1204 (ppc_target::low_supply_ptrace_register): ...this.
1205 (ppc_fill_gregset): Update for the calls to
1206 low_collect_ptrace_register.
1207 (the_low_target): Remove the op fields.
1208 * linux-s390-low.cc (class s390_target)
1209 <low_collect_ptrace_register>
1210 <low_supply_ptrace_register>: Declare.
1211 (s390_collect_ptrace_register): Turn into ...
1212 (s390_target::low_collect_ptrace_register): ...this.
1213 (s390_supply_ptrace_register): Turn into ...
1214 (s390_target::low_supply_ptrace_register): ...this.
1215 (s390_fill_gregset): Update for the calls to
1216 low_collect_ptrace_register.
1217 (the_low_target): Remove the op fields.
1219 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1221 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1222 target ops into methods of linux_process_target.
1224 * linux-low.h (struct linux_target_ops): Remove the ops.
1225 (class linux_process_target) <check_stopped_by_watchpoint>
1226 <low_stopped_by_watchpoint>
1227 <low_stopped_data_address>: Declare.
1228 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1229 (linux_process_target::check_stopped_by_watchpoint): ...this.
1230 (linux_process_target::low_stopped_by_watchpoint): Define.
1231 (linux_process_target::low_stopped_data_address): Define.
1232 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1233 <low_stopped_data_address>: Declare.
1234 (x86_stopped_by_watchpoint): Turn into...
1235 (x86_target::low_stopped_by_watchpoint): ...this.
1236 (x86_stopped_data_address): Turn into...
1237 (x86_target::low_stopped_data_address): ...this.
1238 (the_low_target): Remove the op fields.
1239 * linux-aarch64-low.cc (class aarch64_target)
1240 <low_stopped_by_watchpoint>
1241 <low_stopped_data_address>: Declare.
1242 (aarch64_stopped_by_watchpoint): Turn into...
1243 (aarch64_target::low_stopped_by_watchpoint): ...this.
1244 (aarch64_stopped_data_address): Turn into...
1245 (aarch64_target::low_stopped_data_address): ...this.
1246 (the_low_target): Remove the op fields.
1247 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1248 <low_stopped_data_address>: Declare.
1249 (arm_stopped_by_watchpoint): Turn into...
1250 (arm_target::low_stopped_by_watchpoint): ...this.
1251 (arm_stopped_data_address): Turn into...
1252 (arm_target::low_stopped_data_address): ...this.
1253 (the_low_target): Remove the op fields.
1254 * linux-crisv32-low.cc (class crisv32_target)
1255 <low_stopped_by_watchpoint>
1256 <low_stopped_data_address>: Declare.
1257 (cris_stopped_by_watchpoint): Turn into...
1258 (crisv32_target::low_stopped_by_watchpoint): ...this.
1259 (cris_stopped_data_address): Turn into...
1260 (crisv32_target::low_stopped_data_address): ...this.
1261 (the_low_target): Remove the op fields.
1262 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1263 <low_stopped_data_address>: Declare.
1264 (mips_stopped_by_watchpoint): Turn into...
1265 (mips_target::low_stopped_by_watchpoint): ...this.
1266 (mips_stopped_data_address): Turn into...
1267 (mips_target::low_stopped_data_address): ...this.
1268 (the_low_target): Remove the op fields.
1269 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1270 * linux-m32r-low.cc (the_low_target): Ditto.
1271 * linux-m68k-low.cc (the_low_target): Ditto.
1272 * linux-ppc-low.cc (the_low_target): Ditto.
1273 * linux-s390-low.cc (the_low_target): Ditto.
1274 * linux-sh-low.cc (the_low_target): Ditto.
1275 * linux-sparc-low.cc (the_low_target): Ditto.
1276 * linux-tic6x-low.cc (the_low_target): Ditto.
1277 * linux-tile-low.cc (the_low_target): Ditto.
1278 * linux-xtensa-low.cc (the_low_target): Ditto.
1280 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1282 Turn the 'insert_point' and 'remove_point' linux target ops into
1283 methods of linux_process_target.
1285 * linux-low.h (struct linux_target_ops): Remove the ops.
1286 (class linux_process_target) <low_insert_point>
1287 <low_remove_point>: Declare.
1288 * linux-low.cc (linux_process_target::low_insert_point)
1289 (linux_process_target::low_remove_point): Define.
1290 (linux_process_target::insert_point)
1291 (linux_process_target::remove_point): Update for calls to
1292 low_insert_point and low_remove_point.
1293 * linux-x86-low.cc (class x86_target) <low_insert_point>
1294 <low_remove_point>: Declare.
1295 (x86_insert_point): Turn into...
1296 (x86_target::low_insert_point): ...this.
1297 (x86_remove_point): Turn into...
1298 (x86_target::low_remove_point): ...this.
1299 (the_low_target): Remove the op fields.
1300 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1301 <low_remove_point>: Declare.
1302 (aarch64_insert_point): Turn into...
1303 (aarch64_target::low_insert_point): ...this.
1304 (aarch64_remove_point): Turn into...
1305 (aarch64_target::low_remove_point): ...this.
1306 (the_low_target): Remove the op fields.
1307 * linux-arm-low.cc (class arm_target) <low_insert_point>
1308 <low_remove_point>: Declare.
1309 (arm_insert_point): Turn into...
1310 (arm_target::low_insert_point): ...this.
1311 (arm_remove_point): Turn into...
1312 (arm_target::low_remove_point): ...this.
1313 (the_low_target): Remove the op fields.
1314 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1315 <low_remove_point>: Declare.
1316 (crisv32_insert_point): Turn into...
1317 (crisv32_target::low_insert_point): ...this.
1318 (crisv32_remove_point): Turn into...
1319 (crisv32_target::low_remove_point): ...this.
1320 (the_low_target): Remove the op fields.
1321 * linux-mips-low.cc (class mips_target) <low_insert_point>
1322 <low_remove_point>: Declare.
1323 (mips_insert_point): Turn into...
1324 (mips_target::low_insert_point): ...this.
1325 (mips_remove_point): Turn into...
1326 (mips_target::low_remove_point): ...this.
1327 (the_low_target): Remove the op fields.
1328 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1329 <low_remove_point>: Declare.
1330 (ppc_insert_point): Turn into...
1331 (ppc_target::low_insert_point): ...this.
1332 (ppc_remove_point): Turn into...
1333 (ppc_target::low_remove_point): ...this.
1334 (the_low_target): Remove the op fields.
1335 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1336 * linux-m32r-low.cc (the_low_target): Ditto.
1337 * linux-m68k-low.cc (the_low_target): Ditto.
1338 * linux-s390-low.cc (the_low_target): Ditto.
1339 * linux-sh-low.cc (the_low_target): Ditto.
1340 * linux-sparc-low.cc (the_low_target): Ditto.
1341 * linux-tic6x-low.cc (the_low_target): Ditto.
1342 * linux-tile-low.cc (the_low_target): Ditto.
1343 * linux-xtensa-low.cc (the_low_target): Ditto.
1345 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1347 Remove the 'supports_z_point_type' linux target op and let the
1348 concrete linux target define it by overriding the op declared in
1349 process_stratum_target.
1351 * linux-low.cc (linux_process_target::supports_z_point_type):
1353 * linux-low.h (struct linux_target_ops): Remove the op.
1354 (class linux_process_target) <supports_z_point_type>: Remove.
1355 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1357 (x86_supports_z_point_type): Turn into...
1358 (x86_target::supports_z_point_type): ...this.
1359 (the_low_target): Remove the op field.
1360 * linux-aarch64-low.cc (class aarch64_target)
1361 <supports_z_point_type>: Declare.
1362 (aarch64_supports_z_point_type): Turn into...
1363 (aarch64_target::supports_z_point_type): ...this.
1364 (the_low_target): Remove the op field.
1365 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1367 (arm_supports_z_point_type): Turn into...
1368 (arm_target::supports_z_point_type): ...this.
1369 (the_low_target): Remove the op field.
1370 * linux-crisv32-low.cc (class crisv32_target)
1371 <supports_z_point_type>: Declare.
1372 (cris_supports_z_point_type): Turn into...
1373 (crisv32_target::supports_z_point_type): ...this.
1374 (the_low_target): Remove the op field.
1375 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1377 (mips_supports_z_point_type): Turn into...
1378 (mips_target::supports_z_point_type): ...this.
1379 (the_low_target): Remove the op field.
1380 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1382 (ppc_supports_z_point_type): Turn into...
1383 (ppc_target::supports_z_point_type): ...this.
1384 (the_low_target): Remove the op field.
1385 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1387 (s390_supports_z_point_type): Turn into...
1388 (s390_target::supports_z_point_type): ...this.
1389 (the_low_target): Remove the op field.
1390 * linux-bfin-low.cc (the_low_target): Remove the op field.
1391 * linux-m32r-low.cc (the_low_target): Ditto.
1392 * linux-m68k-low.cc (the_low_target): Ditto.
1393 * linux-sh-low.cc (the_low_target): Ditto.
1394 * linux-sparc-low.cc (the_low_target): Ditto.
1395 * linux-tic6x-low.cc (the_low_target): Ditto.
1396 * linux-tile-low.cc (the_low_target): Ditto.
1397 * linux-xtensa-low.cc (the_low_target): Ditto.
1399 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1401 Turn the 'breakpoint_at' linux target op into a method of
1402 linux_process_target.
1404 * linux-low.h (struct linux_target_ops): Remove the op.
1405 (class linux_process_target) <low_breakpoint_at>: Declare.
1407 Update the callers below:
1409 * linux-low.cc (linux_process_target::save_stop_reason)
1410 (linux_process_target::thread_still_has_status_pending)
1411 (linux_process_target::wait_1)
1413 * linux-x86-low.cc (class x86_target)
1414 <low_breakpoint_at>: Declare.
1415 (x86_breakpoint_at): Turn into...
1416 (x86_target::low_breakpoint_at): ...this.
1417 (the_low_target): Remove the op field.
1418 * linux-aarch64-low.cc (class aarch64_target)
1419 <low_breakpoint_at>: Declare.
1420 (aarch64_breakpoint_at): Turn into...
1421 (aarch64_target::low_breakpoint_at): ...this.
1422 (the_low_target): Remove the op field.
1423 * linux-arm-low.cc (class arm_target)
1424 <low_breakpoint_at>: Declare.
1425 (arm_target::low_breakpoint_at): Define.
1426 (the_low_target): Remove the op field.
1427 * linux-bfin-low.cc (class bfin_target)
1428 <low_breakpoint_at>: Declare.
1429 (bfin_breakpoint_at): Turn into...
1430 (bfin_target::low_breakpoint_at): ...this.
1431 (the_low_target): Remove the op field.
1432 * linux-cris-low.cc (class cris_target)
1433 <low_breakpoint_at>: Declare.
1434 (cris_breakpoint_at): Turn into...
1435 (cris_target::low_breakpoint_at): ...this.
1436 (the_low_target): Remove the op field.
1437 * linux-crisv32-low.cc (class crisv32_target)
1438 <low_breakpoint_at>: Declare.
1439 (crisv32_breakpoint_at): Turn into...
1440 (crisv32_target::low_breakpoint_at): ...this.
1441 (the_low_target): Remove the op field.
1442 * linux-ia64-low.cc (class ia64_target)
1443 <low_breakpoint_at>: Declare.
1444 (ia64_target::low_breakpoint_at): Define.
1445 * linux-m32r-low.cc (class m32r_target)
1446 <low_breakpoint_at>: Declare.
1447 (m32r_breakpoint_at): Turn into...
1448 (m32r_target::low_breakpoint_at): ...this.
1449 (the_low_target): Remove the op field.
1450 * linux-m68k-low.cc (class m68k_target)
1451 <low_breakpoint_at>: Declare.
1452 (m68k_breakpoint_at): Turn into...
1453 (m68k_target::low_breakpoint_at): ...this.
1454 (the_low_target): Remove the op field.
1455 * linux-mips-low.cc (class mips_target)
1456 <low_breakpoint_at>: Declare.
1457 (mips_breakpoint_at): Turn into...
1458 (mips_target::low_breakpoint_at): ...this.
1459 (the_low_target): Remove the op field.
1460 * linux-nios2-low.cc (class nios2_target)
1461 <low_breakpoint_at>: Declare.
1462 (nios2_breakpoint_at): Turn into...
1463 (nios2_target::low_breakpoint_at): ...this.
1464 (the_low_target): Remove the op field.
1465 * linux-ppc-low.cc (class ppc_target)
1466 <low_breakpoint_at>: Declare.
1467 (ppc_breakpoint_at): Turn into...
1468 (ppc_target::low_breakpoint_at): ...this.
1469 (the_low_target): Remove the op field.
1470 * linux-riscv-low.cc (class riscv_target)
1471 <low_breakpoint_at>: Declare.
1472 (riscv_breakpoint_at): Turn into...
1473 (riscv_target::low_breakpoint_at): ...this.
1474 (the_low_target): Remove the op field.
1475 * linux-s390-low.cc (class s390_target)
1476 <low_breakpoint_at>: Declare.
1477 (s390_breakpoint_at): Turn into...
1478 (s390_target::low_breakpoint_at): ...this.
1479 (the_low_target): Remove the op field.
1480 * linux-sh-low.cc (class sh_target)
1481 <low_breakpoint_at>: Declare.
1482 (sh_breakpoint_at): Turn into...
1483 (sh_target::low_breakpoint_at): ...this.
1484 (the_low_target): Remove the op field.
1485 * linux-sparc-low.cc (class sparc_target)
1486 <low_breakpoint_at>: Declare.
1487 (sparc_breakpoint_at): Turn into...
1488 (sparc_target::low_breakpoint_at): ...this.
1489 (the_low_target): Remove the op field.
1490 * linux-tic6x-low.cc (class tic6x_target)
1491 <low_breakpoint_at>: Declare.
1492 (tic6x_breakpoint_at): Turn into...
1493 (tic6x_target::low_breakpoint_at): ...this.
1494 (the_low_target): Remove the op field.
1495 * linux-tile-low.cc (class tile_target)
1496 <low_breakpoint_at>: Declare.
1497 (tile_breakpoint_at): Turn into...
1498 (tile_target::low_breakpoint_at): ...this.
1499 (the_low_target): Remove the op field.
1500 * linux-xtensa-low.cc (class xtensa_target)
1501 <low_breakpoint_at>: Declare.
1502 (xtensa_breakpoint_at): Turn into...
1503 (xtensa_target::low_breakpoint_at): ...this.
1504 (the_low_target): Remove the op field.
1506 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1508 Turn the 'decr_pc_after_break' linux_target_ops field into
1509 a method of linux_process_target.
1511 * linux-low.h (struct linux_target_ops)
1512 <decr_pc_after_break>: Remove.
1513 (class linux_process_target) <low_decr_pc_after_break>: New method
1515 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1516 New method implementation.
1518 Update the users below.
1520 (linux_process_target::save_stop_reason)
1521 (linux_process_target::wait_1)
1522 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1524 (x86_target::low_decr_pc_after_break): New method implementation.
1525 (the_low_target): Remove the field.
1526 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1528 (bfin_target::low_decr_pc_after_break): New method implementation.
1529 (the_low_target): Remove the field.
1530 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1532 (m68k_target::low_decr_pc_after_break): New method implementation.
1533 (the_low_target): Remove the field.
1534 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1536 (s390_target::low_decr_pc_after_break): New method implementation.
1537 (the_low_target): Remove the field.
1538 * linux-aarch64-low.cc (the_low_target): Remove the field.
1539 * linux-arm-low.cc (the_low_target): Remove the field.
1540 * linux-cris-low.cc (the_low_target): Remove the field.
1541 * linux-crisv32-low.cc (the_low_target): Remove the field.
1542 * linux-m32r-low.cc (the_low_target): Remove the field.
1543 * linux-mips-low.cc (the_low_target): Remove the field.
1544 * linux-nios2-low.cc (the_low_target): Remove the field.
1545 * linux-ppc-low.cc (the_low_target): Remove the field.
1546 * linux-riscv-low.cc (the_low_target): Remove the field.
1547 * linux-sh-low.cc (the_low_target): Remove the field.
1548 * linux-sparc-low.cc (the_low_target): Remove the field.
1549 * linux-tic6x-low.cc (the_low_target): Remove the field.
1550 * linux-tile-low.cc (the_low_target): Remove the field.
1551 * linux-xtensa-low.cc (the_low_target): Remove the field.
1553 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1555 Remove the 'supports_software_single_step' linux target op and let
1556 the concrete linux target define it by overriding the op in
1557 process_stratum_target.
1558 Turn the 'get_next_pcs' linux target op into a method of
1559 linux_process_target.
1561 * linux-low.h (struct linux_target_ops): Remove the ops.
1562 (class linux_process_target) <supports_software_single_step>:
1564 <low_get_next_pcs>: Declare.
1565 * linux-low.cc (can_software_single_step): Remove.
1566 (linux_process_target::low_get_next_pcs): Define.
1567 (linux_process_target::supports_software_single_step): Remove.
1569 Update the callers below.
1571 (linux_process_target::handle_extended_wait)
1572 (linux_process_target::wait_1)
1573 (linux_process_target::install_software_single_step_breakpoints)
1574 (linux_process_target::single_step)
1575 (linux_process_target::thread_needs_step_over)
1576 (linux_process_target::proceed_one_lwp)
1577 (linux_process_target::supports_range_stepping)
1579 * linux-x86-low.cc (the_low_target): Remove the op field.
1580 * linux-aarch64-low.cc (the_low_target): Ditto.
1581 * linux-bfin-low.cc (the_low_target): Ditto.
1582 * linux-cris-low.cc (the_low_target): Ditto.
1583 * linux-crisv32-low.cc (the_low_target): Ditto.
1584 * linux-m32r-low.cc (the_low_target): Ditto.
1585 * linux-m68k-low.cc (the_low_target): Ditto.
1586 * linux-mips-low.cc (the_low_target): Ditto.
1587 * linux-nios2-low.cc (the_low_target): Ditto.
1588 * linux-ppc-low.cc (the_low_target): Ditto.
1589 * linux-riscv-low.cc (the_low_target): Ditto.
1590 * linux-s390-low.cc (the_low_target): Ditto.
1591 * linux-sh-low.cc (the_low_target): Ditto.
1592 * linux-sparc-low.cc (the_low_target): Ditto.
1593 * linux-tic6x-low.cc (the_low_target): Ditto.
1594 * linux-tile-low.cc (the_low_target): Ditto.
1595 * linux-xtensa-low.cc (the_low_target): Ditto.
1596 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1597 <supports_software_single_step>: Declare.
1598 (arm_target::supports_software_single_step): Define.
1599 (arm_gdbserver_get_next_pcs): Turn into...
1600 (arm_target::low_get_next_pcs): ...this.
1601 (the_low_target): Remove the op field.
1603 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1605 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1606 the concrete linux target define it by overriding the op
1607 in process_stratum_target.
1609 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1611 * linux-low.h (struct linux_target_ops): Remove the op.
1612 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1613 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1615 (x86_sw_breakpoint_from_kind): Turn into...
1616 (x86_target::sw_breakpoint_from_kind): ...this.
1617 (the_low_target): Remove the op field.
1618 * linux-aarch64-low.cc (class aarch64_target)
1619 <sw_breakpoint_from_kind>: Declare.
1620 (aarch64_sw_breakpoint_from_kind): Turn into...
1621 (aarch64_target::sw_breakpoint_from_kind): ...this.
1622 (the_low_target): Remove the op field.
1623 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1625 (arm_target::sw_breakpoint_from_kind): Define.
1626 (the_low_target): Remove the op field.
1627 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1629 (bfin_sw_breakpoint_from_kind): Turn into...
1630 (bfin_target::sw_breakpoint_from_kind): ...this.
1631 (the_low_target): Remove the op field.
1632 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1634 (cris_sw_breakpoint_from_kind): Turn into...
1635 (cris_target::sw_breakpoint_from_kind): ...this.
1636 (the_low_target): Remove the op field.
1637 * linux-crisv32-low.cc (class crisv32_target)
1638 <sw_breakpoint_from_kind>: Declare.
1639 (cris_sw_breakpoint_from_kind): Turn into...
1640 (crisv32_target::sw_breakpoint_from_kind): ...this.
1641 (the_low_target): Remove the op field.
1642 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1644 (ia64_target::sw_breakpoint_from_kind): Define.
1645 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1647 (m32r_sw_breakpoint_from_kind): Turn into...
1648 (m32r_target::sw_breakpoint_from_kind): ...this.
1649 (the_low_target): Remove the op field.
1650 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1652 (m68k_sw_breakpoint_from_kind): Turn into...
1653 (m68k_target::sw_breakpoint_from_kind): ...this.
1654 (the_low_target): Remove the op field.
1655 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1657 (mips_sw_breakpoint_from_kind): Turn into...
1658 (mips_target::sw_breakpoint_from_kind): ...this.
1659 (the_low_target): Remove the op field.
1660 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1662 (nios2_sw_breakpoint_from_kind): Turn into...
1663 (nios2_target::sw_breakpoint_from_kind): ...this.
1664 (the_low_target): Remove the op field.
1665 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1667 (ppc_sw_breakpoint_from_kind): Turn into...
1668 (ppc_target::sw_breakpoint_from_kind): ...this.
1669 (the_low_target): Remove the op field.
1670 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1672 (riscv_sw_breakpoint_from_kind): Turn into...
1673 (riscv_target::sw_breakpoint_from_kind): ...this.
1674 (the_low_target): Remove the op field.
1675 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1677 (s390_sw_breakpoint_from_kind): Turn into...
1678 (s390_target::sw_breakpoint_from_kind): ...this.
1679 (the_low_target): Remove the op field.
1680 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1682 (sh_sw_breakpoint_from_kind): Turn into...
1683 (sh_target::sw_breakpoint_from_kind): ...this.
1684 (the_low_target): Remove the op field.
1685 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1687 (sparc_sw_breakpoint_from_kind): Turn into...
1688 (sparc_target::sw_breakpoint_from_kind): ...this.
1689 (the_low_target): Remove the op field.
1690 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1692 (tic6x_sw_breakpoint_from_kind): Turn into...
1693 (tic6x_target::sw_breakpoint_from_kind): ...this.
1694 (the_low_target): Remove the op field.
1695 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1697 (tile_sw_breakpoint_from_kind): Turn into...
1698 (tile_target::sw_breakpoint_from_kind): ...this.
1699 (the_low_target): Remove the op field.
1700 * linux-xtensa-low.cc (class xtensa_target)
1701 <sw_breakpoint_from_kind>: Declare.
1702 (xtensa_sw_breakpoint_from_kind): Turn into...
1703 (xtensa_target::sw_breakpoint_from_kind): ...this.
1704 (the_low_target): Remove the op field.
1706 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1708 Remove the 'breakpoint_kind_from_pc' and
1709 'breakpoint_kind_from_current_state' linux target ops, and let the
1710 concrete linux target define them by overriding the ops of
1711 process_stratum_target.
1713 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1715 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1716 * linux-low.h (struct linux_target_ops): Remove ops.
1717 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1718 <breakpoint_kind_from_current_state>: Remove.
1719 * linux-x86-low.cc (the_low_target): Remove the op fields.
1720 * linux-bfin-low.cc (the_low_target): Ditto.
1721 * linux-cris-low.cc (the_low_target): Ditto.
1722 * linux-crisv32-low.cc (the_low_target): Ditto.
1723 * linux-m32r-low.cc (the_low_target): Ditto.
1724 * linux-m68k-low.cc (the_low_target): Ditto.
1725 * linux-mips-low.cc (the_low_target): Ditto.
1726 * linux-nios2-low.cc (the_low_target): Ditto.
1727 * linux-ppc-low.cc (the_low_target): Ditto.
1728 * linux-s390-low.cc (the_low_target): Ditto.
1729 * linux-sh-low.cc (the_low_target): Ditto.
1730 * linux-sparc-low.cc (the_low_target): Ditto.
1731 * linux-tic6x-low.cc (the_low_target): Ditto.
1732 * linux-tile-low.cc (the_low_target): Ditto.
1733 * linux-xtensa-low.cc (the_low_target): Ditto.
1734 * linux-aarch64-low.cc (class aarch64_target)
1735 <breakpoint_kind_from_pc>
1736 <breakpoint_kind_from_current_state>: Declare.
1737 (aarch64_breakpoint_kind_from_pc): Turn into...
1738 (aarch64_target::breakpoint_kind_from_pc): ...this.
1739 (aarch64_breakpoint_kind_from_current_state): Turn into...
1740 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1741 (the_low_target): Remove the op fields.
1742 * linux-arm-low.cc (class arm_target):
1743 <breakpoint_kind_from_pc>
1744 <breakpoint_kind_from_current_state>: Declare.
1745 (arm_target::breakpoint_kind_from_pc): Define.
1746 (arm_target::breakpoint_kind_from_current_state): Define.
1747 (the_low_target): Remove the op fields.
1748 * linux-riscv-low.cc (class riscv_target):
1749 <breakpoint_kind_from_pc>: Declare.
1750 (riscv_breakpoint_kind_from_pc): Turn into...
1751 (riscv_target::breakpoint_kind_from_pc): ...this.
1752 (the_low_target): Remove the op fields.
1754 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1756 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1757 of linux_process_target.
1759 * linux-low.h (struct linux_target_ops): Remove the ops.
1760 (class linux_process_target) <low_supports_breakpoints>
1762 <low_set_pc>: Declare.
1763 * linux-low.cc (supports_breakpoints): Turn into...
1764 (linux_process_target::low_supports_breakpoints): ...this.
1765 (linux_process_target::low_get_pc): Define.
1766 (linux_process_target::low_set_pc): Define.
1768 Update the callers below.
1770 (linux_process_target::get_pc)
1771 (linux_process_target::save_stop_reason)
1772 (linux_process_target::maybe_move_out_of_jump_pad)
1773 (linux_process_target::wait_1)
1774 (linux_process_target::resume_one_lwp_throw)
1775 (linux_process_target::resume)
1776 (linux_process_target::proceed_all_lwps)
1777 (linux_process_target::read_pc)
1778 (linux_process_target::write_pc)
1780 * linux-x86-low.cc (class linux_process_target)
1781 <low_supports_breakpoints>
1783 <low_set_pc>: Declare.
1784 (x86_target::low_supports_breakpoints): Define.
1785 (x86_get_pc): Turn into...
1786 (x86_target::low_get_pc): ...this.
1787 (x86_set_pc): Turn into...
1788 (x86_target::low_set_pc): ...this.
1789 (the_low_target): Remove the op fields.
1790 * linux-arm-low.cc (class arm_target)
1791 <low_supports_breakpoints>
1793 <low_set_pc>: Declare.
1794 (arm_target::low_supports_breakpoints)
1795 (arm_target::low_get_pc)
1796 (arm_target::low_set_pc): Define.
1797 (the_low_target): Remove the op fields.
1798 * linux-bfin-low.cc (class bfin_target)
1799 <low_supports_breakpoints>
1801 <low_set_pc>: Declare.
1802 (bfin_target::low_supports_breakpoints)
1803 (bfin_target::low_get_pc)
1804 (bfin_target::low_set_pc): Define.
1805 (the_low_target): Remove the op fields.
1806 * linux-cris-low.cc (class cris_target)
1807 <low_supports_breakpoints>
1809 <low_set_pc>: Declare.
1810 (cris_target::low_supports_breakpoints)
1811 (cris_target::low_get_pc)
1812 (cris_target::low_set_pc): Define.
1813 (the_low_target): Remove the op fields.
1814 * linux-crisv32-low.cc (class crisv32_target)
1815 <low_supports_breakpoints>
1817 <low_set_pc>: Declare.
1818 (crisv32_target::low_supports_breakpoints)
1819 (crisv32_target::low_get_pc)
1820 (crisv32_target::low_set_pc): Define.
1821 (the_low_target): Remove the op fields.
1822 * linux-m32r-low.cc (class m32r_target)
1823 <low_supports_breakpoints>
1825 <low_set_pc>: Declare.
1826 (m32r_target::low_supports_breakpoints)
1827 (m32r_target::low_get_pc)
1828 (m32r_target::low_set_pc): Define.
1829 (the_low_target): Remove the op fields.
1830 * linux-m68k-low.cc (class m68k_target)
1831 <low_supports_breakpoints>
1833 <low_set_pc>: Declare.
1834 (m68k_target::low_supports_breakpoints)
1835 (m68k_target::low_get_pc)
1836 (m68k_target::low_set_pc): Define.
1837 (the_low_target): Remove the op fields.
1838 * linux-nios2-low.cc (class nios2_target)
1839 <low_supports_breakpoints>
1841 <low_set_pc>: Declare.
1842 (nios2_target::low_supports_breakpoints)
1843 (nios2_target::low_get_pc)
1844 (nios2_target::low_set_pc): Define.
1845 (the_low_target): Remove the op fields.
1846 * linux-sh-low.cc (class sh_target)
1847 <low_supports_breakpoints>
1849 <low_set_pc>: Declare.
1850 (sh_target::low_supports_breakpoints)
1851 (sh_target::low_get_pc)
1852 (sh_target::low_set_pc): Define.
1853 (the_low_target): Remove the op fields.
1854 * linux-xtensa-low.cc (class xtensa_target)
1855 <low_supports_breakpoints>
1857 <low_set_pc>: Declare.
1858 (xtensa_target::low_supports_breakpoints)
1859 (xtensa_target::low_get_pc)
1860 (xtensa_target::low_set_pc): Define.
1861 (the_low_target): Remove the op fields.
1862 * linux-sparc-low.cc (class sparc_target)
1863 <low_supports_breakpoints>
1864 <low_get_pc>: Declare.
1865 (sparc_target::low_supports_breakpoints)
1866 (sparc_target::low_get_pc): Define.
1867 (the_low_target): Remove the op fields.
1868 * linux-tile-low.cc (class tile_target)
1869 <low_supports_breakpoints>
1871 <low_set_pc>: Declare.
1872 (tile_target::low_supports_breakpoints)
1873 (tile_target::low_get_pc)
1874 (tile_target::low_set_pc): Define.
1875 (the_low_target): Remove the op fields.
1876 * linux-aarch64-low.cc (class aarch64_target)
1877 <low_supports_breakpoints>
1879 <low_set_pc>: Declare.
1880 (aarch64_target::low_supports_breakpoints): Define.
1881 (aarch64_get_pc): Turn into...
1882 (aarch64_target::low_get_pc): ...this.
1883 (aarch64_set_pc): Turn into...
1884 (aarch64_target::low_set_pc): ...this.
1885 (the_low_target): Remove the op fields.
1886 * linux-mips-low.cc (class mips_target)
1887 <low_supports_breakpoints>
1889 <low_set_pc>: Declare.
1890 (mips_target::low_supports_breakpoints): Define.
1891 (mips_get_pc): Turn into...
1892 (mips_target::low_get_pc): ...this.
1893 (mips_set_pc): Turn into...
1894 (mips_target::low_set_pc): ...this.
1895 (the_low_target): Remove the op fields.
1896 * linux-ppc-low.cc (class ppc_target)
1897 <low_supports_breakpoints>
1899 <low_set_pc>: Declare.
1900 (ppc_target::low_supports_breakpoints): Define.
1901 (ppc_get_pc): Turn into...
1902 (ppc_target::low_get_pc): ...this.
1903 (ppc_set_pc): Turn into...
1904 (ppc_target::low_set_pc): ...this.
1905 (the_low_target): Remove the op fields.
1906 * linux-riscv-low.cc (class riscv_target)
1907 <low_supports_breakpoints>
1909 <low_set_pc>: Declare.
1910 (riscv_target::low_supports_breakpoints): Define.
1911 (riscv_get_pc): Turn into...
1912 (riscv_target::low_get_pc): ...this.
1913 (riscv_set_pc): Turn into...
1914 (riscv_target::low_set_pc): ...this.
1915 (the_low_target): Remove the op fields.
1916 * linux-s390-low.cc (class s390_target)
1917 <low_supports_breakpoints>
1919 <low_set_pc>: Declare.
1920 (s390_target::low_supports_breakpoints): Define.
1921 (s390_get_pc): Turn into...
1922 (s390_target::low_get_pc): ...this.
1923 (s390_set_pc): Turn into...
1924 (s390_target::low_set_pc): ...this.
1925 (the_low_target): Remove the op fields.
1926 * linux-tic6x-low.cc (class tic6x_target)
1927 <low_supports_breakpoints>
1929 <low_set_pc>: Declare.
1930 (tic6x_target::low_supports_breakpoints): Define.
1931 (tic6x_get_pc): Turn into...
1932 (tic6x_target::low_get_pc): ...this.
1933 (tic6x_set_pc): Turn into...
1934 (tic6x_target::low_set_pc): ...this.
1935 (the_low_target): Remove the op fields.
1937 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1939 Turn some more static methods in linux-low into private methods
1940 of linux_process_target.
1942 * linux-low.cc (get_pc): Turn into...
1943 (linux_process_target::get_pc): ...this.
1944 (save_stop_reason): Turn into...
1945 (linux_process_target::save_stop_reason): ...this.
1946 (thread_still_has_status_pending_p): Turn into...
1947 (linux_process_target::thread_still_has_status_pending): ...this.
1948 (status_pending_p_callback): Turn into...
1949 (linux_process_target::status_pending_p_callback): ...this.
1950 (resume_stopped_resumed_lwps): Turn into...
1951 (linux_process_target::resume_stopped_resumed_lwps): ...this.
1952 (install_software_single_step_breakpoints): Turn into...
1953 (linux_process_target::install_software_single_step_breakpoints):
1955 (single_step): Turn into...
1956 (linux_process_target::single_step): ...this.
1957 (linux_resume_one_lwp_throw): Turn into...
1958 (linux_process_target::resume_one_lwp_throw): ...this.
1959 (linux_resume_one_lwp): Turn into...
1960 (linux_process_target::resume_one_lwp): ...this.
1961 (resume_status_pending_p): Turn into...
1962 (linux_process_target::resume_status_pending): ...this.
1963 (need_step_over_p): Turn into...
1964 (linux_process_target::thread_needs_step_over): ...this.
1965 (linux_resume_one_thread): Turn into...
1966 (linux_process_target::resume_one_thread): ...this.
1967 (proceed_one_lwp): Turn into...
1968 (linux_process_target::proceed_one_lwp): ...this.
1969 (unsuspend_and_proceed_one_lwp): Turn into...
1970 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
1972 Update the calls/references to the above functions below.
1974 (linux_process_target::handle_extended_wait)
1975 (linux_process_target::filter_event)
1976 (linux_process_target::wait_for_event_filtered)
1977 (linux_process_target::wait_1)
1978 (linux_process_target::move_out_of_jump_pad)
1979 (linux_process_target::start_step_over)
1980 (linux_process_target::resume)
1981 (linux_process_target::proceed_all_lwps)
1982 (regsets_store_inferior_registers)
1983 (linux_process_target::store_register)
1985 * linux-low.h (class linux_process_target)
1988 <thread_still_has_status_pending>
1989 <status_pending_p_callback>
1990 <resume_stopped_resumed_lwps>
1991 <install_software_single_step_breakpoints>
1993 <resume_one_lwp_throw>
1995 <resume_status_pending>
1996 <thread_needs_step_over>
1999 <unsuspend_and_proceed_one_lwp>: Declare.
2001 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2003 Turn the 'fetch_register' linux target op into a method of
2004 linux_process_target.
2006 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2007 (class linux_process_target) <low_fetch_register>: Declare.
2008 * linux-x86-low.cc (the_low_target)
2009 * linux-aarch64-low.cc (the_low_target)
2010 * linux-arm-low.cc (the_low_target)
2011 * linux-bfin-low.cc (the_low_target)
2012 * linux-cris-low.cc (the_low_target)
2013 * linux-crisv32-low.cc (the_low_target)
2014 * linux-m32r-low.cc (the_low_target)
2015 * linux-m68k-low.cc (the_low_target)
2016 * linux-nios2-low.cc (the_low_target)
2017 * linux-ppc-low.cc (the_low_target)
2018 * linux-s390-low.cc (the_low_target)
2019 * linux-sh-low.cc (the_low_target)
2020 * linux-sparc-low.cc (the_low_target)
2021 * linux-tic6x-low.cc (the_low_target)
2022 * linux-tile-low.cc (the_low_target)
2023 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2024 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2026 (ia64_fetch_register): Turn into...
2027 (ia64_target::low_fetch_register): ...this.
2028 (the_low_target): Remove the op field.
2029 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2031 (mips_fetch_register): Turn into...
2032 (mips_target::low_fetch_register): ...this.
2033 (the_low_target): Remove the op field.
2034 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2036 (riscv_fetch_register): Turn into...
2037 (riscv_target::low_fetch_register): ...this.
2038 (the_low_target): Remove the op field.
2040 Update the callers below.
2042 * linux-low.cc (linux_process_target::fetch_registers)
2043 (linux_process_target::low_fetch_register)
2045 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2047 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2048 linux target ops into methods of linux_process_target.
2050 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2051 (class linux_process_target) <fetch_register>
2053 <usr_fetch_inferior_registers>
2054 <usr_store_inferior_registers>
2055 <low_cannot_fetch_register>
2056 <low_cannot_fetch_register> Declare.
2057 * linux-low.cc (fetch_register): Turn into...
2058 (linux_process_target::fetch_register): ...this.
2059 (store_register): Turn into ...
2060 (linux_process_target::store_register): ...this.
2061 (usr_fetch_inferior_registers): Turn into...
2062 (linux_process_target::usr_fetch_inferior_registers): ...this.
2063 (usr_store_inferior_registers): Turn into...
2064 (linux_process_target::usr_store_inferior_registers): ...this.
2065 * linux-x86-low.cc (class x86_target)
2066 <low_cannot_fetch_register>
2067 <low_cannot_store_register>: Declare.
2068 (x86_cannot_store_register): Turn into...
2069 (x86_target::low_cannot_store_register): ...this.
2070 (x86_cannot_fetch_register): Turn into...
2071 (x86_target::low_cannot_fetch_register): ...this.
2072 (the_low_target): Remove the target op fields.
2073 * linux-aarch64-low.cc (class aarch64_target)
2074 <low_cannot_fetch_register>
2075 <low_cannot_store_register>: Declare.
2076 (aarch64_target::low_cannot_fetch_register)
2077 (aarch64_target::low_cannot_store_register): Define.
2078 (the_low_target): Remove the op fields.
2079 * linux-arm-low.cc (class arm_target)
2080 <low_cannot_fetch_register>
2081 <low_cannot_store_register>: Declare.
2082 (arm_cannot_fetch_register): Turn into...
2083 (arm_target::low_cannot_fetch_register): ...this.
2084 (arm_cannot_store_register): Turn into...
2085 (arm_target::low_cannot_store_register): ...this.
2086 (the_low_target): Remove the op fields.
2087 * linux-bfin-low.cc (class bfin_target)
2088 <low_cannot_fetch_register>
2089 <low_cannot_store_register>: Declare.
2090 (bfin_cannot_fetch_register): Turn into...
2091 (bfin_target::low_cannot_fetch_register): ...this.
2092 (bfin_cannot_store_register): Turn into...
2093 (bfin_target::low_cannot_store_register): ...this.
2094 (the_low_target): Remove the op fields.
2095 * linux-cris-low.cc (class cris_target)
2096 <low_cannot_fetch_register>
2097 <low_cannot_store_register>: Declare.
2098 (cris_cannot_fetch_register): Turn into...
2099 (cris_target::low_cannot_fetch_register): ...this.
2100 (cris_cannot_store_register): Turn into...
2101 (cris_target::low_cannot_store_register): ...this.
2102 (the_low_target): Remove the op fields.
2103 * linux-crisv32-low.cc (class crisv32_target)
2104 <low_cannot_fetch_register>
2105 <low_cannot_store_register>: Declare.
2106 (crisv32_target::low_cannot_fetch_register)
2107 (crisv32_target::low_cannot_store_register): Define.
2108 (the_low_target): Remove the op fields.
2109 * linux-ia64-low.cc (class ia64_target)
2110 <low_cannot_fetch_register>
2111 <low_cannot_store_register>: Declare.
2112 (ia64_cannot_fetch_register): Turn into...
2113 (ia64_target::low_cannot_fetch_register): ...this.
2114 (ia64_cannot_store_register): Turn into...
2115 (ia64_target::low_cannot_store_register): ...this.
2116 (the_low_target): Remove the op fields.
2117 * linux-m32r-low.cc (class m32r_target)
2118 <low_cannot_fetch_register>
2119 <low_cannot_store_register>: Declare.
2120 (m32r_cannot_fetch_register): Turn into...
2121 (m32r_target::low_cannot_fetch_register): ...this.
2122 (m32r_cannot_store_register): Turn into...
2123 (m32r_target::low_cannot_store_register): ...this.
2124 (the_low_target): Remove the op fields.
2125 * linux-m68k-low.cc (class m68k_target)
2126 <low_cannot_fetch_register>
2127 <low_cannot_store_register>: Declare.
2128 (m68k_cannot_fetch_register): Turn into...
2129 (m68k_target::low_cannot_fetch_register): ...this.
2130 (m68k_cannot_store_register): Turn into...
2131 (m68k_target::low_cannot_store_register): ...this.
2132 (the_low_target): Remove the op fields.
2133 * linux-mips-low.cc (class mips_target)
2134 <low_cannot_fetch_register>
2135 <low_cannot_store_register>: Declare.
2136 (mips_cannot_fetch_register): Turn into...
2137 (mips_target::low_cannot_fetch_register): ...this.
2138 (mips_cannot_store_register): Turn into...
2139 (mips_target::low_cannot_store_register): ...this.
2140 (get_usrregs_info): Inline at the call sites in
2141 low_cannot_fetch_register and low_cannot_store_register,
2143 (the_low_target): Remove the op fields.
2144 * linux-nios2-low.cc (class nios2_target)
2145 <low_cannot_fetch_register>
2146 <low_cannot_store_register>: Declare.
2147 (nios2_cannot_fetch_register): Turn into...
2148 (nios2_target::low_cannot_fetch_register): ...this.
2149 (nios2_cannot_store_register): Turn into...
2150 (nios2_target::low_cannot_store_register): ...this.
2151 (the_low_target): Remove the op fields.
2152 * linux-ppc-low.cc (class ppc_target)
2153 <low_cannot_fetch_register>
2154 <low_cannot_store_register>: Declare.
2155 (ppc_cannot_fetch_register): Turn into...
2156 (ppc_target::low_cannot_fetch_register): ...this.
2157 (ppc_cannot_store_register): Turn into...
2158 (ppc_target::low_cannot_store_register): ...this.
2159 (the_low_target): Remove the op fields.
2160 * linux-riscv-low.cc (class riscv_target)
2161 <low_cannot_fetch_register>
2162 <low_cannot_store_register>: Declare.
2163 (riscv_target::low_cannot_fetch_register)
2164 (riscv_target::low_cannot_store_register): Define.
2165 (the_low_target): Remove the op fields.
2166 * linux-s390-low.cc (class s390_target)
2167 <low_cannot_fetch_register>
2168 <low_cannot_store_register>: Declare.
2169 (s390_cannot_fetch_register): Turn into...
2170 (s390_target::low_cannot_fetch_register): ...this.
2171 (s390_cannot_store_register): Turn into...
2172 (s390_target::low_cannot_store_register): ...this.
2173 (the_low_target): Remove the op fields.
2174 * linux-sh-low.cc (class sh_target)
2175 <low_cannot_fetch_register>
2176 <low_cannot_store_register>: Declare.
2177 (sh_cannot_fetch_register): Turn into...
2178 (sh_target::low_cannot_fetch_register): ...this.
2179 (sh_cannot_store_register): Turn into...
2180 (sh_target::low_cannot_store_register): ...this.
2181 (the_low_target): Remove the op fields.
2182 * linux-sparc-low.cc (class sparc_target)
2183 <low_cannot_fetch_register>
2184 <low_cannot_store_register>: Declare.
2185 (sparc_cannot_fetch_register): Turn into...
2186 (sparc_target::low_cannot_fetch_register): ...this.
2187 (sparc_cannot_store_register): Turn into...
2188 (sparc_target::low_cannot_store_register): ...this.
2189 (the_low_target): Remove the op fields.
2190 * linux-tic6x-low.cc (class tic6x_target)
2191 <low_cannot_fetch_register>
2192 <low_cannot_store_register>: Declare.
2193 (tic6x_cannot_fetch_register): Turn into...
2194 (tic6x_target::low_cannot_fetch_register): ...this.
2195 (tic6x_cannot_store_register): Turn into...
2196 (tic6x_target::low_cannot_store_register): ...this.
2197 (the_low_target): Remove the op fields.
2198 * linux-tile-low.cc (class tile_target)
2199 <low_cannot_fetch_register>
2200 <low_cannot_store_register>: Declare.
2201 (tile_cannot_fetch_register): Turn into...
2202 (tile_target::low_cannot_fetch_register): ...this.
2203 (tile_cannot_store_register): Turn into...
2204 (tile_target::low_cannot_store_register): ...this.
2205 (the_low_target): Remove the op fields.
2206 * linux-xtensa-low.cc (class xtensa_target)
2207 <low_cannot_fetch_register>
2208 <low_cannot_store_register>: Declare.
2209 (xtensa_target::low_cannot_fetch_register)
2210 (xtensa_target::low_cannot_store_register): Define.
2211 (the_low_target): Remove the op fields.
2213 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2215 Turn the 'regs_info' linux target op into a method of
2216 linux_process_target.
2218 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2219 (class linux_process_target) <get_regs_info>: Define.
2221 Update the callers below.
2223 * linux-low.cc (linux_process_target::fetch_registers)
2224 (linux_process_target::store_registers)
2225 * proc-service.cc (gregset_info)
2227 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2228 (x86_linux_regs_info): Turn into ...
2229 (x86_target::get_regs_info): ...this.
2230 (the_low_target): Remove the op field.
2231 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2233 (aarch64_regs_info): Turn into ...
2234 (aarch64_target::get_regs_info): ...this.
2235 (the_low_target): Remove the op field.
2236 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2237 (arm_regs_info): Turn into ...
2238 (arm_target::get_regs_info): ...this.
2239 (the_low_target): Remove the op field.
2240 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2241 (bfin_regs_info): Turn into ...
2242 (bfin_target::get_regs_info): ...this.
2243 (the_low_target): Remove the op field.
2244 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2245 (cris_regs_info): Turn into ...
2246 (cris_target::get_regs_info): ...this.
2247 (the_low_target): Remove the op field.
2248 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2250 (crisv32_regs_info): Turn into ...
2251 (crisv32_target::get_regs_info): ...this.
2252 (the_low_target): Remove the op field.
2253 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2254 (ia64_regs_info): Turn into ...
2255 (ia64_target::get_regs_info): ...this.
2256 (the_low_target): Remove the op field.
2257 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2258 (m32r_regs_info): Turn into ...
2259 (m32r_target::get_regs_info): ...this.
2260 (the_low_target): Remove the op field.
2261 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2262 (m68k_regs_info): Turn into ...
2263 (m68k_target::get_regs_info): ...this.
2264 (the_low_target): Remove the op field.
2265 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2266 (mips_regs_info): Turn into ...
2267 (mips_target::get_regs_info): ...this.
2268 (the_low_target): Remove the op field.
2269 (get_usrregs_info): Update the call to the op.
2270 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2271 (nios2_regs_info): Turn into ...
2272 (nios2_target::get_regs_info): ...this.
2273 (the_low_target): Remove the op field.
2274 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2275 (ppc_regs_info): Turn into ...
2276 (ppc_target::get_regs_info): ...this.
2277 (the_low_target): Remove the op field.
2278 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2279 (riscv_regs_info): Turn into ...
2280 (riscv_target::get_regs_info): ...this.
2281 (the_low_target): Remove the op field.
2282 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2283 (s390_regs_info): Turn into ...
2284 (s390_target::get_regs_info): ...this.
2285 (the_low_target): Remove the op field.
2286 (s390_collect_ptrace_register)
2287 (s390_supply_ptrace_register)
2288 (s390_fill_gregset): Update the call to the op.
2289 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2290 (sh_regs_info): Turn into ...
2291 (sh_target::get_regs_info): ...this.
2292 (the_low_target): Remove the op field.
2293 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2294 (sparc_regs_info): Turn into ...
2295 (sparc_target::get_regs_info): ...this.
2296 (the_low_target): Remove the op field.
2297 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2298 (tic6x_regs_info): Turn into ...
2299 (tic6x_target::get_regs_info): ...this.
2300 (the_low_target): Remove the op field.
2301 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2302 (tile_regs_info): Turn into ...
2303 (tile_target::get_regs_info): ...this.
2304 (the_low_target): Remove the op field.
2305 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2307 (xtensa_regs_info): Turn into ...
2308 (xtensa_target::get_regs_info): ...this.
2309 (the_low_target): Remove the op field.
2311 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2313 Turn the 'arch_setup' linux target op into a method of
2314 linux_process_target.
2316 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2317 (class linux_process_target) <arch_setup_thread>
2318 <low_arch_setup>: New declarations.
2319 * linux-low.cc (linux_arch_setup): Delete.
2320 (linux_arch_setup_thread): Turn into...
2321 (linux_process_target::arch_setup_thread): ... this.
2323 Update the callers below.
2325 (linux_process_target::handle_extended_wait)
2326 (linux_process_target::post_create_inferior)
2327 (linux_process_target::filter_event)
2329 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2331 (x86_linux_update_xmltarget): Turn into...
2332 (x86_target::update_xmltarget): ...this.
2333 (x86_linux_process_qsupported): Update the call to
2334 x86_linux_update_xmltarget.
2335 (x86_arch_setup): Turn into ...
2336 (x86_target::low_arch_setup): ...this.
2337 (the_low_target): Remove the op field.
2338 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2340 (aarch64_arch_setup): Turn into ...
2341 (aarch64_target::low_arch_setup): ...this.
2342 (the_low_target): Remove the op field.
2343 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2345 (arm_arch_setup): Turn into ...
2346 (arm_target::low_arch_setup): ...this.
2347 (the_low_target): Remove the op field.
2348 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2350 (bfin_arch_setup): Turn into ...
2351 (bfin_target::low_arch_setup): ...this.
2352 (the_low_target): Remove the op field.
2353 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2355 (cris_arch_setup): Turn into ...
2356 (cris_target::low_arch_setup): ...this.
2357 (the_low_target): Remove the op field.
2358 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2360 (crisv32_arch_setup): Turn into ...
2361 (crisv32_target::low_arch_setup): ...this.
2362 (the_low_target): Remove the op field.
2363 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2365 (ia64_arch_setup): Turn into ...
2366 (ia64_target::low_arch_setup): ...this.
2367 (the_low_target): Remove the op field.
2368 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2370 (m32r_arch_setup): Turn into ...
2371 (m32r_target::low_arch_setup): ...this.
2372 (the_low_target): Remove the op field.
2373 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2375 (m68k_arch_setup): Turn into ...
2376 (m68k_target::low_arch_setup): ...this.
2377 (the_low_target): Remove the op field.
2378 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2380 (mips_arch_setup): Turn into ...
2381 (mips_target::low_arch_setup): ...this.
2382 (the_low_target): Remove the op field.
2383 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2385 (nios2_arch_setup): Turn into ...
2386 (nios2_target::low_arch_setup): ...this.
2387 (the_low_target): Remove the op field.
2388 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2390 (ppc_arch_setup): Turn into ...
2391 (ppc_target::low_arch_setup): ...this.
2392 (the_low_target): Remove the op field.
2393 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2395 (riscv_arch_setup): Turn into ...
2396 (riscv_target::low_arch_setup): ...this.
2397 (the_low_target): Remove the op field.
2398 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2400 (s390_arch_setup): Turn into ...
2401 (s390_target::low_arch_setup): ...this.
2402 (the_low_target): Remove the op field.
2403 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2405 (sh_arch_setup): Turn into ...
2406 (sh_target::low_arch_setup): ...this.
2407 (the_low_target): Remove the op field.
2408 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2410 (sparc_arch_setup): Turn into ...
2411 (sparc_target::low_arch_setup): ...this.
2412 (the_low_target): Remove the op field.
2413 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2415 (tic6x_arch_setup): Turn into ...
2416 (tic6x_target::low_arch_setup): ...this.
2417 (the_low_target): Remove the op field.
2418 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2420 (tile_arch_setup): Turn into ...
2421 (tile_target::low_arch_setup): ...this.
2422 (the_low_target): Remove the op field.
2423 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2425 (xtensa_arch_setup): Turn into ...
2426 (xtensa_target::low_arch_setup): ...this.
2427 (the_low_target): Remove the op field.
2429 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2431 * linux-low.h (the_linux_target): New extern declaration.
2432 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2434 (the_linux_target): Remove.
2435 * linux-x86-low.cc (class x86_target): New class.
2436 (the_x86_target): New static object.
2437 (the_linux_target): Define as pointer to the_x86_target.
2438 * linux-aarch64-low.cc (class aarch64_target): New class.
2439 (the_aarch64_target): New static object.
2440 (the_linux_target): Define as pointer to the_aarch64_target.
2441 * linux-arm-low.cc (class arm_target): New class.
2442 (the_arm_target): New static object.
2443 (the_linux_target): Define as pointer to the_arm_target.
2444 * linux-bfin-low.cc (class bfin_target): New class.
2445 (the_bfin_target): New static object.
2446 (the_linux_target): Define as pointer to the_bfin_target.
2447 * linux-cris-low.cc (class cris_target): New class.
2448 (the_cris_target): New static object.
2449 (the_linux_target): Define as pointer to the_cris_target.
2450 * linux-crisv32-low.cc (class crisv32_target): New class.
2451 (the_crisv32_target): New static object.
2452 (the_linux_target): Define as pointer to the_crisv32_target.
2453 * linux-ia64-low.cc (class ia64_target): New class.
2454 (the_ia64_target): New static object.
2455 (the_linux_target): Define as pointer to the_ia64_target.
2456 * linux-m32r-low.cc (class m32r_target): New class.
2457 (the_m32r_target): New static object.
2458 (the_linux_target): Define as pointer to the_m32r_target.
2459 * linux-m68k-low.cc (class m68k_target): New class.
2460 (the_m68k_target): New static object.
2461 (the_linux_target): Define as pointer to the_m68k_target.
2462 * linux-mips-low.cc (class mips_target): New class.
2463 (the_mips_target): New static object.
2464 (the_linux_target): Define as pointer to the_mips_target.
2465 * linux-nios2-low.cc (class nios2_target): New class.
2466 (the_nios2_target): New static object.
2467 (the_linux_target): Define as pointer to the_nios2_target.
2468 * linux-ppc-low.cc (class ppc_target): New class.
2469 (the_ppc_target): New static object.
2470 (the_linux_target): Define as pointer to the_ppc_target.
2471 * linux-riscv-low.cc (class riscv_target): New class.
2472 (the_riscv_target): New static object.
2473 (the_linux_target): Define as pointer to the_riscv_target.
2474 * linux-s390-low.cc (class s390_target): New class.
2475 (the_s390_target): New static object.
2476 (the_linux_target): Define as pointer to the_s390_target.
2477 * linux-sh-low.cc (class sh_target): New class.
2478 (the_sh_target): New static object.
2479 (the_linux_target): Define as pointer to the_sh_target.
2480 * linux-sparc-low.cc (class sparc_target): New class.
2481 (the_sparc_target): New static object.
2482 (the_linux_target): Define as pointer to the_sparc_target.
2483 * linux-tic6x-low.cc (class tic6x_target): New class.
2484 (the_tic6x_target): New static object.
2485 (the_linux_target): Define as pointer to the_tic6x_target.
2486 * linux-tile-low.cc (class tile_target): New class.
2487 (the_tile_target): New static object.
2488 (the_linux_target): Define as pointer to the_tile_target.
2489 * linux-xtensa-low.cc (class xtensa_target): New class.
2490 (the_xtensa_target): New static object.
2491 (the_linux_target): Define as pointer to the_xtensa_target.
2493 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2495 Turn some static functions in linux-low.cc into private methods of
2496 linux_process_target.
2498 * linux-low.cc (handle_extended_wait): Turn into ...
2499 (linux_process_target::handle_extended_wait): ...this. Call
2500 'mourn' on 'this' object instead of 'the_target'.
2501 (maybe_move_out_of_jump_pad): Turn into...
2502 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2503 (linux_low_filter_event): Turn into...
2504 (linux_process_target::filter_event): ...this.
2505 (linux_wait_for_event_filtered): Turn into...
2506 (linux_process_target::wait_for_event_filtered): ...this.
2507 (linux_wait_for_event): Turn into...
2508 (linux_process_target::wait_for_event): ...this.
2509 (linux_wait_1): Turn into...
2510 (linux_process_target::wait_1): ...this.
2511 (wait_for_sigstop): Turn into...
2512 (linux_process_target::wait_for_sigstop): ...this.
2513 (move_out_of_jump_pad_callback): Turn into...
2514 (linux_process_target::move_out_of_jump_pad): ...this.
2515 (stop_all_lwps): Turn into...
2516 (linux_process_target::stop_all_lwps): ...this.
2517 (start_step_over): Turn into...
2518 (linux_process_target::start_step_over): ...this.
2519 (complete_ongoing_step_over): Turn into...
2520 (linux_process_target::complete_ongoing_step_over): ...this.
2521 (proceed_all_lwps): Turn into...
2522 (linux_process_target::proceed_all_lwps): ...this.
2523 (unstop_all_lwps): Turn into...
2524 (linux_process_target::unstop_all_lwps): ...this.
2526 * linux-low.h (class linux_process_target)
2527 <handle_extended_wait>
2528 <maybe_move_out_of_jump_pad>
2530 <wait_for_event_filtered>
2534 <move_out_of_jump_pad>
2537 <complete_ongoing_step_over>
2539 <unstop_all_lwps>: Declare.
2541 Update the callers below.
2543 * linux-low.cc (linux_process_target::attach): Update.
2544 (linux_process_target::stabilize_threads): Ditto.
2545 (linux_process_target::wait): Ditto.
2547 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2549 * linux-low.h (struct linux_target_ops): Update the comment for
2550 'cannot_store_register' to return 0 or 1.
2551 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2554 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2556 * config.in: Re-generate.
2557 * configure: Re-generate.
2559 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2561 * regcache.cc (find_register_by_number): Update.
2562 * tdesc.cc (init_target_desc): Likewise.
2563 * tdesc.h (target_desc::reg_defs): Likewise.
2565 2020-03-12 Tom Tromey <tom@tromey.com>
2567 * configure: Rebuild.
2568 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2569 (WIN32APILIBS): New subst.
2570 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2572 (gdbsupport/%.o): Remove target.
2573 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2574 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2575 (WIN32APILIBS): New variable.
2576 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2577 (gdbreplay$(EXEEXT)): Likewise.
2579 2020-03-12 Tom Tromey <tom@tromey.com>
2581 * config.in, configure: Rebuild.
2582 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2583 * acinclude.m4: Include gettext-sister.m4.
2584 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2586 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2587 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2589 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2591 * acinclude.m4: Update path to selftest.m4.
2593 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2595 * configure.ac: Don't source bfd/development.sh, move
2596 GDB_AC_COMMON higher.
2597 * configure: Re-generate.
2599 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2601 * configure: Re-generate.
2603 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2605 * configure: Re-generate.
2607 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2609 * .dir-locals.el: New file.
2611 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2613 * .gitattributes: New file.
2615 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2617 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2618 reply into an S reply.
2619 * server.cc (disable_packet_T): New global.
2620 (captured_main): Set new global when appropriate.
2621 * server.h (disable_packet_T): Declare.
2623 2020-02-21 Tom Tromey <tom@tromey.com>
2625 * Makefile.in (mostlyclean): New target.
2627 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2629 * target.h (struct process_stratum_target): Remove.
2630 (class process_target): Rename to ...
2631 (class process_stratum_target): ... this.
2632 * linux-low.h (class linux_process_target): Derive from
2633 'process_stratum_target'.
2634 * linux-low.cc (linux_target_ops): Remove.
2635 (initialize_low): Set the_target to the singleton instance of
2636 linux_process_target.
2637 * lynx-low.h (class lynx_process_target): Derive from
2638 'process_stratum_target'.
2639 * lynx-low.cc (lynx_target_ops): Remove.
2640 (initialize_low): Set the_target to the singleton instance of
2641 lynx_process_target.
2642 * nto-low.h (class nto_process_target): Derive from
2643 'process_stratum_target'.
2644 * nto-low.cc (nto_target_ops): Remove.
2645 (initialize_low): Set the_target to the singleton instance of
2647 * win32-low.h (class win32_process_target): Derive from
2648 'process_stratum_target'.
2649 * win32-low.cc (win32_target_ops): Remove.
2650 (initialize_low): Set the_target to the singleton instance of
2651 win32_process_target.
2653 Replace 'the_target->pt' with 'the_target' in the uses below.
2655 * hostio.cc (hostio_error)
2660 * linux-aarch32-low.cc (arm_breakpoint_at)
2661 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2662 * linux-arm-low.cc (arm_sigreturn_next_pc)
2664 (arm_get_syscall_trapinfo)
2665 * linux-cris-low.cc (cris_breakpoint_at)
2666 * linux-crisv32-low.cc (cris_breakpoint_at)
2667 * linux-low.cc (handle_extended_wait)
2670 (linux_process_target::breakpoint_kind_from_pc)
2672 * linux-m32r-low.cc (m32r_breakpoint_at)
2673 * linux-mips-low.cc (mips_breakpoint_at)
2674 * linux-nios2-low.cc (nios2_breakpoint_at)
2675 * linux-ppc-low.cc (ppc_breakpoint_at)
2676 * linux-s390-low.cc (s390_get_hwcap)
2677 * linux-sh-low.cc (sh_breakpoint_at)
2678 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2679 (sparc_store_gregset_from_stack)
2680 (sparc_breakpoint_at)
2681 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2682 * linux-tile-low.cc (tile_breakpoint_at)
2683 * linux-x86-low.cc (x86_breakpoint_at)
2684 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2685 * mem-break.cc (bp_size)
2687 (insert_memory_breakpoint)
2688 (set_raw_breakpoint_at)
2689 (delete_raw_breakpoint)
2691 (uninsert_raw_breakpoint)
2692 (reinsert_raw_breakpoint)
2693 (validate_inserted_breakpoint)
2694 * regcache.cc (regcache_read_pc)
2696 * remote-utils.cc (putpkt_binary_1)
2699 (prepare_resume_reply)
2700 * server.cc (handle_general_set)
2703 (handle_qxfer_exec_file)
2704 (handle_qxfer_libraries_svr4)
2705 (handle_qxfer_osdata)
2706 (handle_qxfer_siginfo)
2707 (handle_qxfer_fdpic)
2711 (queue_stop_reply_callback)
2713 * target.cc (prepare_to_access_memory)
2714 (done_accessing_memory)
2715 (read_inferior_memory)
2716 (target_write_memory)
2717 (target_stop_and_wait)
2719 (target_mourn_inferior)
2720 (target_continue_no_signal)
2722 (target_supports_multi_process)
2725 (target_create_inferior)
2726 (target_post_create_inferior)
2728 (target_supports_fork_events)
2729 (target_supports_vfork_events)
2730 (target_supports_exec_events)
2731 (target_handle_new_gdb_connection)
2734 (fetch_inferior_registers)
2735 (store_inferior_registers)
2737 (target_supports_non_stop)
2739 (target_process_qsupported)
2740 (target_supports_catch_syscall)
2741 (target_get_ipa_tdesc_idx)
2742 (target_supports_tracepoints)
2743 (target_supports_fast_tracepoints)
2744 (target_get_min_fast_tracepoint_insn_len)
2745 (target_thread_stopped)
2747 (target_unpause_all)
2748 (target_stabilize_threads)
2749 (target_install_fast_tracepoint_jump_pad)
2751 (target_supports_disable_randomization)
2752 (target_supports_agent)
2753 (target_enable_btrace)
2754 (target_disable_btrace)
2755 (target_read_btrace)
2756 (target_read_btrace_conf)
2757 (target_supports_range_stepping)
2758 (target_supports_stopped_by_sw_breakpoint)
2759 (target_stopped_by_sw_breakpoint)
2760 (target_supports_stopped_by_hw_breakpoint)
2761 (target_supports_hardware_single_step)
2762 (target_stopped_by_hw_breakpoint)
2763 (target_breakpoint_kind_from_pc)
2764 (target_breakpoint_kind_from_current_state)
2765 (target_supports_software_single_step)
2766 (target_core_of_thread)
2767 (target_thread_name)
2768 (target_thread_handle)
2769 * win32-low.cc (do_initial_child_stuff)
2771 Rename target op default definitions listed below.
2773 * target.cc (process_target::post_create_inferior): Rename as ...
2774 (process_stratum_target::post_create_inferior): ... this.
2775 (process_target::prepare_to_access_memory): Rename as ...
2776 (process_stratum_target::prepare_to_access_memory): ... this.
2777 (process_target::done_accessing_memory): Rename as ...
2778 (process_stratum_target::done_accessing_memory): ... this.
2779 (process_target::look_up_symbols): Rename as ...
2780 (process_stratum_target::look_up_symbols): ... this.
2781 (process_target::supports_read_auxv): Rename as ...
2782 (process_stratum_target::supports_read_auxv): ... this.
2783 (process_target::read_auxv): Rename as ...
2784 (process_stratum_target::read_auxv): ... this.
2785 (process_target::supports_z_point_type): Rename as ...
2786 (process_stratum_target::supports_z_point_type): ... this.
2787 (process_target::insert_point): Rename as ...
2788 (process_stratum_target::insert_point): ... this.
2789 (process_target::remove_point): Rename as ...
2790 (process_stratum_target::remove_point): ... this.
2791 (process_target::stopped_by_sw_breakpoint): Rename as ...
2792 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2793 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2794 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2795 (process_target::stopped_by_hw_breakpoint): Rename as ...
2796 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2797 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2798 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2799 (process_target::supports_hardware_single_step): Rename as ...
2800 (process_stratum_target::supports_hardware_single_step): ... this.
2801 (process_target::stopped_by_watchpoint): Rename as ...
2802 (process_stratum_target::stopped_by_watchpoint): ... this.
2803 (process_target::stopped_data_address): Rename as ...
2804 (process_stratum_target::stopped_data_address): ... this.
2805 (process_target::supports_read_offsets): Rename as ...
2806 (process_stratum_target::supports_read_offsets): ... this.
2807 (process_target::read_offsets): Rename as ...
2808 (process_stratum_target::read_offsets): ... this.
2809 (process_target::supports_get_tls_address): Rename as ...
2810 (process_stratum_target::supports_get_tls_address): ... this.
2811 (process_target::get_tls_address): Rename as ...
2812 (process_stratum_target::get_tls_address): ... this.
2813 (process_target::hostio_last_error): Rename as ...
2814 (process_stratum_target::hostio_last_error): ... this.
2815 (process_target::supports_qxfer_osdata): Rename as ...
2816 (process_stratum_target::supports_qxfer_osdata): ... this.
2817 (process_target::qxfer_osdata): Rename as ...
2818 (process_stratum_target::qxfer_osdata): ... this.
2819 (process_target::supports_qxfer_siginfo): Rename as ...
2820 (process_stratum_target::supports_qxfer_siginfo): ... this.
2821 (process_target::qxfer_siginfo): Rename as ...
2822 (process_stratum_target::qxfer_siginfo): ... this.
2823 (process_target::supports_non_stop): Rename as ...
2824 (process_stratum_target::supports_non_stop): ... this.
2825 (process_target::async): Rename as ...
2826 (process_stratum_target::async): ... this.
2827 (process_target::start_non_stop): Rename as ...
2828 (process_stratum_target::start_non_stop): ... this.
2829 (process_target::supports_multi_process): Rename as ...
2830 (process_stratum_target::supports_multi_process): ... this.
2831 (process_target::supports_fork_events): Rename as ...
2832 (process_stratum_target::supports_fork_events): ... this.
2833 (process_target::supports_vfork_events): Rename as ...
2834 (process_stratum_target::supports_vfork_events): ... this.
2835 (process_target::supports_exec_events): Rename as ...
2836 (process_stratum_target::supports_exec_events): ... this.
2837 (process_target::handle_new_gdb_connection): Rename as ...
2838 (process_stratum_target::handle_new_gdb_connection): ... this.
2839 (process_target::handle_monitor_command): Rename as ...
2840 (process_stratum_target::handle_monitor_command): ... this.
2841 (process_target::core_of_thread): Rename as ...
2842 (process_stratum_target::core_of_thread): ... this.
2843 (process_target::supports_read_loadmap): Rename as ...
2844 (process_stratum_target::supports_read_loadmap): ... this.
2845 (process_target::read_loadmap): Rename as ...
2846 (process_stratum_target::read_loadmap): ... this.
2847 (process_target::process_qsupported): Rename as ...
2848 (process_stratum_target::process_qsupported): ... this.
2849 (process_target::supports_tracepoints): Rename as ...
2850 (process_stratum_target::supports_tracepoints): ... this.
2851 (process_target::read_pc): Rename as ...
2852 (process_stratum_target::read_pc): ... this.
2853 (process_target::write_pc): Rename as ...
2854 (process_stratum_target::write_pc): ... this.
2855 (process_target::supports_thread_stopped): Rename as ...
2856 (process_stratum_target::supports_thread_stopped): ... this.
2857 (process_target::thread_stopped): Rename as ...
2858 (process_stratum_target::thread_stopped): ... this.
2859 (process_target::supports_get_tib_address): Rename as ...
2860 (process_stratum_target::supports_get_tib_address): ... this.
2861 (process_target::get_tib_address): Rename as ...
2862 (process_stratum_target::get_tib_address): ... this.
2863 (process_target::pause_all): Rename as ...
2864 (process_stratum_target::pause_all): ... this.
2865 (process_target::unpause_all): Rename as ...
2866 (process_stratum_target::unpause_all): ... this.
2867 (process_target::stabilize_threads): Rename as ...
2868 (process_stratum_target::stabilize_threads): ... this.
2869 (process_target::supports_fast_tracepoints): Rename as ...
2870 (process_stratum_target::supports_fast_tracepoints): ... this.
2871 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2872 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2873 (process_target::emit_ops): Rename as ...
2874 (process_stratum_target::emit_ops): ... this.
2875 (process_target::supports_disable_randomization): Rename as ...
2876 (process_stratum_target::supports_disable_randomization): ... this.
2877 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2878 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2879 (process_target::qxfer_libraries_svr4): Rename as ...
2880 (process_stratum_target::qxfer_libraries_svr4): ... this.
2881 (process_target::supports_agent): Rename as ...
2882 (process_stratum_target::supports_agent): ... this.
2883 (process_target::enable_btrace): Rename as ...
2884 (process_stratum_target::enable_btrace): ... this.
2885 (process_target::disable_btrace): Rename as ...
2886 (process_stratum_target::disable_btrace): ... this.
2887 (process_target::read_btrace): Rename as ...
2888 (process_stratum_target::read_btrace): ... this.
2889 (process_target::read_btrace_conf): Rename as ...
2890 (process_stratum_target::read_btrace_conf): ... this.
2891 (process_target::supports_range_stepping): Rename as ...
2892 (process_stratum_target::supports_range_stepping): ... this.
2893 (process_target::supports_pid_to_exec_file): Rename as ...
2894 (process_stratum_target::supports_pid_to_exec_file): ... this.
2895 (process_target::pid_to_exec_file): Rename as ...
2896 (process_stratum_target::pid_to_exec_file): ... this.
2897 (process_target::supports_multifs): Rename as ...
2898 (process_stratum_target::supports_multifs): ... this.
2899 (process_target::multifs_open): Rename as ...
2900 (process_stratum_target::multifs_open): ... this.
2901 (process_target::multifs_unlink): Rename as ...
2902 (process_stratum_target::multifs_unlink): ... this.
2903 (process_target::multifs_readlink): Rename as ...
2904 (process_stratum_target::multifs_readlink): ... this.
2905 (process_target::breakpoint_kind_from_pc): Rename as ...
2906 (process_stratum_target::breakpoint_kind_from_pc): ... this.
2907 (process_target::breakpoint_kind_from_current_state): Rename as ...
2908 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
2909 (process_target::thread_name): Rename as ...
2910 (process_stratum_target::thread_name): ... this.
2911 (process_target::thread_handle): Rename as ...
2912 (process_stratum_target::thread_handle): ... this.
2913 (process_target::supports_software_single_step): Rename as ...
2914 (process_stratum_target::supports_software_single_step): ... this.
2915 (process_target::supports_catch_syscall): Rename as ...
2916 (process_stratum_target::supports_catch_syscall): ... this.
2917 (process_target::get_ipa_tdesc_idx): Rename as ...
2918 (process_stratum_target::get_ipa_tdesc_idx): ... this.
2920 2020-02-20 Pedro Alves <palves@redhat.com>
2922 * target.cc (set_target_ops): Simply copy the given target pointer
2923 instead of creating a copy of the pointed object.
2925 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2927 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
2930 * target.h (struct process_stratum_target): Remove the target op.
2931 (class process_target): Add the target op.
2932 (target_get_ipa_tdesc_idx): Update the macro.
2933 * target.cc (process_target::get_ipa_tdesc_idx): Define.
2935 Update the derived classes and callers below.
2937 * linux-low.cc (linux_target_ops): Update.
2938 (linux_get_ipa_tdesc_idx): Turn into ...
2939 (linux_process_target::get_ipa_tdesc_idx): ... this.
2940 * linux-low.h (class linux_process_target): Update.
2941 * lynx-low.cc (lynx_target_ops): Update.
2942 * nto-low.cc (nto_target_ops): Update.
2943 * win32-low.cc (win32_target_ops): Update.
2945 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2947 Turn process_stratum_target's supports_catch_syscall op into a
2948 method of process_target.
2950 * target.h (struct process_stratum_target): Remove the target op.
2951 (class process_target): Add the target op.
2952 (target_supports_catch_syscall): Update the macro.
2953 * target.cc (process_target::supports_catch_syscall): Define.
2955 Update the derived classes and callers below.
2957 * linux-low.cc (linux_target_ops): Update.
2958 (linux_supports_catch_syscall): Turn into ...
2959 (linux_process_target::supports_catch_syscall): ... this.
2960 * linux-low.h (class linux_process_target): Update.
2961 * lynx-low.cc (lynx_target_ops): Update.
2962 * nto-low.cc (nto_target_ops): Update.
2963 * win32-low.cc (win32_target_ops): Update.
2965 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2967 Turn process_stratum_target's supports_software_single_step op
2968 into a method of process_target.
2970 * target.h (struct process_stratum_target): Remove the target op.
2971 (class process_target): Add the target op.
2972 (target_supports_software_single_step): Update the macro.
2973 * target.cc (process_target::supports_software_single_step): Define.
2975 Update the derived classes and callers below.
2977 * linux-low.cc (linux_target_ops): Update.
2978 (linux_supports_software_single_step): Turn into ...
2979 (linux_process_target::supports_software_single_step): ... this.
2980 * linux-low.h (class linux_process_target): Update.
2981 * lynx-low.cc (lynx_target_ops): Update.
2982 * nto-low.cc (nto_target_ops): Update.
2983 * win32-low.cc (win32_target_ops): Update.
2985 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2987 Turn process_stratum_target's thread_name and thread_handle ops
2988 into methods of process_target.
2990 * target.h (struct process_stratum_target): Remove the target ops.
2991 (class process_target): Add the target ops.
2992 (target_thread_name): Update the macro.
2993 (target_thread_handle): Update the macro.
2994 * target.cc (process_target::thread_name): Define.
2995 (process_target::thread_handle): Define.
2997 Update the derived classes and callers below.
2999 * linux-low.cc (linux_target_ops): Update.
3000 (linux_process_target::thread_name): Define.
3001 (linux_process_target::thread_handle): Define.
3002 * linux-low.h (class linux_process_target): Update.
3003 * lynx-low.cc (lynx_target_ops): Update.
3004 * nto-low.cc (nto_target_ops): Update.
3005 * win32-low.cc (win32_target_ops): Update.
3007 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3009 Turn process_stratum_target's breakpoint_kind_from_pc,
3010 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3011 ops into methods of process_target.
3013 * target.h (struct process_stratum_target): Remove the target op.
3014 (class process_target): Add the target op.
3015 (target_breakpoint_kind_from_pc): Update the macro.
3016 (target_breakpoint_kind_from_current_state): Update the macro.
3017 (default_breakpoint_kind_from_pc): Remove declaration.
3018 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3019 (process_target::breakpoint_kind_from_pc): ... this.
3020 (process_target::breakpoint_kind_from_current_state): Define.
3022 Update the derived classes and callers below.
3024 * mem-break.cc (bp_size): Update.
3025 (bp_opcode): Update.
3026 * linux-low.cc (linux_target_ops): Update.
3027 (linux_wait_1): Update.
3028 (linux_breakpoint_kind_from_pc): Turn into ...
3029 (linux_process_target::breakpoint_kind_from_pc): ... this.
3030 (linux_sw_breakpoint_from_kind): Turn into ...
3031 (linux_process_target::sw_breakpoint_from_kind): ... this.
3032 (linux_breakpoint_kind_from_current_state): Turn into ...
3033 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3034 * linux-low.h (class linux_process_target): Update.
3035 * lynx-low.cc (lynx_target_ops): Update.
3036 (lynx_process_target::sw_breakpoint_from_kind): Define.
3037 * lynx-low.h (class lynx_process_target): Update.
3038 * nto-low.cc (nto_target_ops): Update.
3039 (nto_sw_breakpoint_from_kind): Turn into ...
3040 (nto_process_target::sw_breakpoint_from_kind): ... this.
3041 * nto-low.h (class nto_process_target): Update.
3042 * win32-low.cc (win32_target_ops): Update.
3043 (win32_sw_breakpoint_from_kind): Turn into ...
3044 (win32_process_target::sw_breakpoint_from_kind): ... this.
3045 * win32-low.h (class win32_process_target): Update.
3047 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3049 Turn process_stratum_target's multifs_open, multifs_readlink,
3050 multifs_unlink ops into methods of process_target.
3052 * target.h (struct process_stratum_target): Remove the target ops.
3053 (class process_target): Add the target ops. Also add
3055 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3057 (process_target::supports_multifs): Define.
3058 (process_target::multifs_open): Define.
3059 (process_target::multifs_readlink): Define.
3060 (process_target::multifs_unlink): Define.
3062 Update the derived classes and callers below.
3064 * hostio.cc (handle_setfs): Update.
3065 (handle_open): Update.
3066 (handle_unlink): Update.
3067 (handle_readlink): Update.
3068 * linux-low.cc (linux_target_ops): Update.
3069 (linux_process_target::supports_multifs): Define.
3070 (linux_process_target::multifs_open): Define.
3071 (linux_process_target::multifs_readlink): Define.
3072 (linux_process_target::multifs_unlink): Define.
3073 * linux-low.h (class linux_process_target): Update.
3074 * lynx-low.cc (lynx_target_ops): Update.
3075 * nto-low.cc (nto_target_ops): Update.
3076 * win32-low.cc (win32_target_ops): Update.
3078 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3080 Turn process_stratum_target's pid_to_exec_file op into a method
3083 * target.h (struct process_stratum_target): Remove the target op.
3084 (class process_target): Add the target op. Also add
3085 'supports_pid_to_exec_file'.
3086 * target.cc (process_target::pid_to_exec_file): Define.
3087 (process_target::supports_pid_to_exec_file): Define.
3089 Update the derived classes and callers below.
3091 * server.cc (handle_qxfer_exec_file): Update.
3092 (handle_query): Update.
3093 * linux-low.cc (linux_target_ops): Update.
3094 (linux_process_target::supports_pid_to_exec_file): Define.
3095 (linux_process_target::pid_to_exec_file): Define.
3096 * linux-low.h (class linux_process_target): Update.
3097 * lynx-low.cc (lynx_target_ops): Update.
3098 * nto-low.cc (nto_target_ops): Update.
3099 * win32-low.cc (win32_target_ops): Update.
3101 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3103 Turn process_stratum_target's supports_range_stepping op into a
3104 method of process_target.
3106 * target.h (struct process_stratum_target): Remove the target op.
3107 (class process_target): Add the target op.
3108 (target_supports_range_stepping): Update the macro.
3109 * target.cc (process_target::supports_range_stepping): Define.
3111 Update the derived classes and callers below.
3113 * linux-low.cc (linux_target_ops): Update.
3114 (linux_supports_range_stepping): Turn into ...
3115 (linux_process_target::supports_range_stepping): ... this.
3116 * linux-low.h (class linux_process_target): Update.
3117 * lynx-low.cc (lynx_target_ops): Update.
3118 * nto-low.cc (nto_target_ops): Update.
3119 * win32-low.cc (win32_target_ops): Update.
3121 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3123 Turn process_stratum_target's btrace-related ops (enable_btrace,
3124 disable_btrace, read_btrace, read_btrace_conf) into methods of
3127 * target.h (struct process_stratum_target): Remove the target ops.
3128 (class process_target): Add the target ops.
3129 (target_enable_btrace): Update.
3130 (target_disable_btrace): Update.
3131 (target_read_btrace): Update.
3132 (target_read_btrace_conf): Update.
3133 * target.cc (process_target::enable_btrace): Define.
3134 (process_target::disable_btrace): Define.
3135 (process_target::read_btrace): Define.
3136 (process_target::read_btrace_conf): Define.
3138 Update the derived classes and callers below.
3140 * linux-low.cc (linux_target_ops): Update.
3141 (linux_process_target:enable_btrace): Define as a wrapper around
3142 linux_enable_btrace.
3143 (linux_low_disable_btrace): Turn into ...
3144 (linux_process_target::disable_btrace): ... this.
3145 (linux_low_read_btrace): Turn into ...
3146 (linux_process_target::read_btrace): ... this.
3147 (linux_low_btrace_conf): Turn into ...
3148 (linux_process_target::read_btrace_conf): ... this.
3149 * linux-low.h (class linux_process_target): Update.
3150 * lynx-low.cc (lynx_target_ops): Update.
3151 * nto-low.cc (nto_target_ops): Update.
3152 * win32-low.cc (win32_target_ops): Update.
3154 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3156 Turn process_stratum_target's supports_agent op into a method of
3159 * target.h (struct process_stratum_target): Remove the target op.
3160 (class process_target): Add the target op.
3161 (target_supports_agent): Update the macro.
3162 * target.cc (process_target::supports_agent): Define.
3164 Update the derived classes and callers below.
3166 * linux-low.cc (linux_target_ops): Update.
3167 (linux_supports_agent): Turn into ...
3168 (linux_process_target::supports_agent): ... this.
3169 * linux-low.h (class linux_process_target): Update.
3170 * lynx-low.cc (lynx_target_ops): Update.
3171 * nto-low.cc (nto_target_ops): Update.
3172 * win32-low.cc (win32_target_ops): Update.
3174 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3176 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3177 method of process_target.
3179 * target.h (struct process_stratum_target): Remove the target op.
3180 (class process_target): Add the target op. Also add
3181 'supports_qxfer_libraries_svr4'.
3182 * target.cc (process_target::qxfer_libraries_svr4): Define.
3183 (process_target::supports_qxfer_libraries_svr4): Define.
3185 Update the derived classes and callers below.
3187 * server.cc (handle_qxfer_libraries_svr4): Update.
3188 (handle_query): Update.
3189 * linux-low.cc (linux_target_ops): Update.
3190 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3191 (linux_qxfer_libraries_svr4): Turn into ...
3192 (linux_process_target::qxfer_libraries_svr4): ... this.
3193 * linux-low.h (class linux_process_target): Update.
3194 * lynx-low.cc (lynx_target_ops): Update.
3195 * nto-low.cc (nto_target_ops): Update.
3196 * win32-low.cc (win32_target_ops): Update.
3198 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3200 Turn process_stratum_target's supports_disable_randomization op
3201 into a method of process_target.
3203 * target.h (struct process_stratum_target): Remove the target op.
3204 (class process_target): Add the target op.
3205 (target_supports_disable_randomization): Update the macro.
3206 * target.cc (process_target::supports_disable_randomization): Define.
3208 Update the derived classes and callers below.
3210 * linux-low.cc (linux_target_ops): Update.
3211 (linux_supports_disable_randomization): Turn into ...
3212 (linux_process_target::supports_disable_randomization): ... this.
3213 * linux-low.h (class linux_process_target): Update.
3214 * lynx-low.cc (lynx_target_ops): Update.
3215 * nto-low.cc (nto_target_ops): Update.
3216 * win32-low.cc (win32_target_ops): Update.
3218 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3220 Turn process_stratum_target's emit_ops op into a method of
3223 * target.h (struct process_stratum_target): Remove the target op.
3224 (class process_target): Add the target op.
3225 (target_emit_ops): Update the macro.
3226 * target.cc (process_target::emit_ops): Define.
3228 Update the derived classes and callers below.
3230 * linux-low.cc (linux_target_ops): Update.
3231 (linux_emit_ops): Turn into ...
3232 (linux_process_target::emit_ops): ... 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 install_fast_tracepoint_jump_pad
3241 and get_min_fast_tracepoint_insn_len ops into methods of
3244 * target.h (struct process_stratum_target): Remove the target ops.
3245 (class process_target): Add the target ops. Also add
3246 'supports_fast_tracepoints'.
3247 (target_supports_fast_tracepoints): Update the macro.
3248 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3249 (install_fast_tracepoint_jump_pad): Update and rename the macro
3251 (target_install_fast_tracepoint_jump_pad): ... this.
3252 * target.cc (process_target::supports_fast_tracepoints): Define.
3253 (process_target::install_fast_tracepoint_jump_pad): Define.
3254 (process_target::get_min_fast_tracepoint_insn_len): Define.
3256 Update the derived classes and callers below.
3258 * tracepoint.cc (install_fast_tracepoint): Update.
3259 * linux-low.cc (linux_target_ops): Update.
3260 (linux_process_target::supports_fast_tracepoints): Define.
3261 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3262 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3263 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3264 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3265 * linux-low.h (class linux_process_target): Update.
3266 * lynx-low.cc (lynx_target_ops): Update.
3267 * nto-low.cc (nto_target_ops): Update.
3268 * win32-low.cc (win32_target_ops): Update.
3270 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3272 Turn process_stratum_target's stabilize_threads op into a
3273 method of process_target.
3275 * target.h (struct process_stratum_target): Remove the target op.
3276 (class process_target): Add the target op.
3277 (target_stabilize_threads): Update the macro.
3278 * target.cc (process_target::stabilize_threads): Define.
3280 Update the derived classes and callers below.
3282 * server.cc (handle_status): Update.
3283 * tracepoint.cc (cmd_qtdp): Update.
3284 (cmd_qtstart): Update.
3285 * linux-low.cc (linux_target_ops): Update.
3286 (linux_stabilize_threads): Turn into ...
3287 (linux_process_target::stabilize_threads): ... this.
3288 (linux_wait_1): Update.
3289 * linux-low.h (class linux_process_target): Update.
3290 * lynx-low.cc (lynx_target_ops): Update.
3291 * nto-low.cc (nto_target_ops): Update.
3292 * win32-low.cc (win32_target_ops): Update.
3294 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3296 Turn process_stratum_target's pause_all and unpause_all ops
3297 into methods of process_target.
3299 * target.h (struct process_stratum_target): Remove the target ops.
3300 (class process_target): Add the target ops.
3301 (pause_all): Update the macro and rename to...
3302 (target_pause_all): ... this.
3303 (unpause_all): Update the macro and rename to...
3304 (target_unpause_all): ... this.
3305 * target.cc (process_target::pause_all): Define.
3306 (process_target::unpause_all): Define.
3308 Update the derived classes and callers below.
3310 * server.cc (handle_status): Update.
3311 * tracepoint.cc (clear_installed_tracepoints): Update.
3313 (cmd_qtstart): Update.
3314 (stop_tracing): Update.
3315 (cmd_qtstatus): Update.
3316 (upload_fast_traceframes): Update.
3317 (run_inferior_command): Update.
3318 * linux-low.cc (linux_target_ops): Update.
3319 (linux_pause_all): Turn into ...
3320 (linux_process_target::pause_all): ... this.
3321 (linux_unpause_all): Turn into ...
3322 (linux_process_target::unpause_all): ... this.
3323 (linux_process_target::prepare_to_access_memory): Update.
3324 (linux_process_target::done_accessing_memory): Update.
3325 * linux-low.h (class linux_process_target): Update.
3326 * lynx-low.cc (lynx_target_ops): Update.
3327 * nto-low.cc (nto_target_ops): Update.
3328 * win32-low.cc (win32_target_ops): Update.
3330 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3332 Turn process_stratum_target's get_tib_address op into a method of
3335 * target.h (struct process_stratum_target): Remove the target op.
3336 (class process_target): Add the target op. Also add
3337 'supports_get_tib_address'.
3338 * target.cc (process_target::get_tib_address): Define.
3339 (process_target::supports_get_tib_address): Define.
3341 Update the derived classes and callers below.
3343 * server.cc (handle_query): Update.
3344 * linux-low.cc (win32_target_ops): Update.
3345 * lynx-low.cc (lynx_target_ops): Update.
3346 * nto-low.cc (nto_target_ops): Update.
3347 * win32-low.cc (win32_target_ops): Update.
3348 (win32_process_target::supports_get_tib_address): Define.
3349 (win32_get_tib_address): Turn into ...
3350 (win32_process_target::get_tib_address): ... this.
3351 * win32-low.h (class win32_process_target): Update.
3353 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3355 Turn process_stratum_target's thread_stopped op into a method of
3358 * target.h (struct process_stratum_target): Remove the target op.
3359 (class process_target): Add the target op. Also add
3360 'supports_thread_stopped'.
3361 (target_thread_stopped): Update the macro.
3362 * target.cc (process_target::thread_stopped): Define.
3363 (process_target::supports_thread_stopped): Define.
3364 (prepare_to_access_memory): Update.
3366 Update the derived classes and callers below.
3368 * server.cc (queue_stop_reply_callback): Update.
3369 * linux-low.cc (linux_target_ops): Update.
3370 (linux_process_target::supports_thread_stopped): Define.
3371 (linux_thread_stopped): Turn into ...
3372 (linux_process_target::thread_stopped): ... this.
3373 * linux-low.h (class linux_process_target): Update.
3374 * lynx-low.cc (lynx_target_ops): Update.
3375 * nto-low.cc (nto_target_ops): Update.
3376 * win32-low.cc (win32_target_ops): Update.
3378 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3380 Turn process_stratum_target's read_pc and write_pc ops into
3381 methods of process_target.
3383 * target.h (struct process_stratum_target): Remove the target ops.
3384 (class process_target): Add the target ops.
3385 * target.cc (process_target::read_pc): Define.
3386 (process_target::write_pc): Define.
3388 Update the derived classes and callers below.
3390 * regcache.cc (regcache_read_pc): Update.
3391 (regcache_write_pc): Update.
3392 * linux-low.cc (linux_target_ops): Update.
3393 (linux_read_pc): Turn into ...
3394 (linux_process_target::read_pc): ... this.
3395 (linux_write_pc): Turn into ...
3396 (linux_process_target::write_pc): ... this.
3397 * linux-low.h (class linux_process_target): Update.
3398 * lynx-low.cc (lynx_target_ops): Update.
3399 * nto-low.cc (nto_target_ops): Update.
3400 * win32-low.cc (win32_target_ops): Update.
3402 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3404 Turn process_stratum_target's supports_tracepoints op into a
3405 method of process_target.
3407 * target.h (struct process_stratum_target): Remove the target op.
3408 (class process_target): Add the target op.
3409 (target_supports_tracepoints): Update the macro.
3410 * target.cc (process_target::supports_tracepoints): Define.
3412 Update the derived classes and callers below.
3414 * linux-low.cc (linux_target_ops): Update.
3415 (linux_supports_tracepoints): Turn into ...
3416 (linux_process_target::supports_tracepoints): ... this.
3417 * linux-low.h (class linux_process_target): Update.
3418 * lynx-low.cc (lynx_target_ops): Update.
3419 * nto-low.cc (nto_target_ops): Update.
3420 * win32-low.cc (win32_target_ops): Update.
3422 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3424 Turn process_stratum_target's process_qsupported op into a method
3427 * target.h (struct process_stratum_target): Remove the target op.
3428 (class process_target): Add the target op.
3429 (target_process_qsupported): Update the macro.
3430 * target.cc (process_target::process_qsupported): Define.
3432 Update the derived classes and callers below.
3434 * linux-low.cc (linux_target_ops): Update.
3435 (linux_process_qsupported): Turn into ...
3436 (linux_process_target::process_qsupported): ... this.
3437 * linux-low.h (class linux_process_target): Update.
3438 * lynx-low.cc (lynx_target_ops): Update.
3439 * nto-low.cc (nto_target_ops): Update.
3440 * win32-low.cc (win32_target_ops): Update.
3442 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3444 Turn process_stratum_target's read_loadmap op into a method of
3447 * target.h (struct process_stratum_target): Remove the target op.
3448 (class process_target): Add the target op. Also add
3449 'supports_read_loadmap'.
3450 * target.cc (process_target::read_loadmap): Define.
3451 (process_target::supports_read_loadmap): Define.
3453 Update the derived classes and callers below.
3455 * server.cc (handle_qxfer_fdpic): Update.
3456 (handle_query): Update.
3457 * linux-low.cc (linux_target_ops): Update.
3458 (linux_process_target::supports_read_loadmap): Define.
3459 (linux_read_loadmap): Turn into ...
3460 (linux_process_target::read_loadmap): ... this.
3461 * linux-low.h (class linux_process_target): Update.
3462 * lynx-low.cc (lynx_target_ops): Update.
3463 * nto-low.cc (nto_target_ops): Update.
3464 * win32-low.cc (win32_target_ops): Update.
3466 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3468 Turn process_stratum_target's core_of_thread op into a method of
3471 * target.h (struct process_stratum_target): Remove the target op.
3472 (class process_target): Add the target op.
3473 (target_core_of_thread): Update the macro.
3474 * target.cc (process_target::core_of_thread): Define.
3476 Update the derived classes and callers below.
3478 * linux-low.cc (linux_target_ops): Update.
3479 (linux_process_target::core_of_thread): Define.
3480 * linux-low.h (class linux_process_target): Update.
3481 * lynx-low.cc (lynx_target_ops): Update.
3482 * nto-low.cc (nto_target_ops): Update.
3483 * win32-low.cc (win32_target_ops): Update.
3485 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3487 Turn process_stratum_target's handle_monitor_command op into a
3488 method of process_target.
3490 * target.h (struct process_stratum_target): Remove the target op.
3491 (class process_target): Add the target op.
3492 (target_handle_monitor_command): Update the macro.
3493 * target.cc (process_target::handle_monitor_command): Define.
3495 Update the derived classes and callers below.
3497 * server.cc (handle_query): Update.
3498 * linux-low.cc (linux_target_ops): Update.
3499 (linux_process_target::handle_monitor_command): Define.
3500 * linux-low.h (class linux_process_target): Update.
3501 * lynx-low.cc (lynx_target_ops): Update.
3502 * nto-low.cc (nto_target_ops): Update.
3503 * win32-low.cc (win32_target_ops): Update.
3505 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3507 Turn process_stratum_target's handle_new_gdb_connection op into a
3508 method of process_target.
3510 * target.h (struct process_stratum_target): Remove the target op.
3511 (class process_target): Add the target op.
3512 (target_handle_new_gdb_connection): Update the macro.
3513 * target.cc (process_target::handle_new_gdb_connection): Define.
3515 Update the derived classes and callers below.
3517 * linux-low.cc (linux_target_ops): Update.
3518 (linux_handle_new_gdb_connection): Turn into ...
3519 (linux_process_target::handle_new_gdb_connection): ... this.
3520 * linux-low.h (class linux_process_target): Update.
3521 * lynx-low.cc (lynx_target_ops): Update.
3522 * nto-low.cc (nto_target_ops): Update.
3523 * win32-low.cc (win32_target_ops): Update.
3525 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3527 Turn process_stratum_target's supports_fork_events,
3528 supports_vfork_events, and supports_exec_events ops into methods
3531 * target.h (struct process_stratum_target): Remove the target ops.
3532 (class process_target): Add the target ops.
3533 (target_supports_fork_events): Update the macro.
3534 (target_supports_vfork_events): Update the macro.
3535 (target_supports_exec_events): Update the macro.
3536 * target.cc (process_target::supports_fork_events): Define.
3537 (process_target::supports_vfork_events): Define.
3538 (process_target::supports_exec_events): Define.
3540 Update the derived classes and callers below.
3542 * linux-low.cc (linux_target_ops): Update.
3543 (linux_supports_fork_events): Turn into ...
3544 (linux_process_target::supports_fork_events): ... this.
3545 (linux_supports_vfork_events): Turn into ...
3546 (linux_process_target::supports_vfork_events): ... this.
3547 (linux_supports_exec_events): Turn into ...
3548 (linux_process_target::supports_exec_events): ... this.
3549 * linux-low.h (class linux_process_target): Update.
3550 * lynx-low.cc (lynx_target_ops): Update.
3551 * nto-low.cc (nto_target_ops): Update.
3552 * win32-low.cc (win32_target_ops): Update.
3554 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556 Turn process_stratum_target's supports_multi_process op into a
3557 method of process_target.
3559 * target.h (struct process_stratum_target): Remove the target op.
3560 (class process_target): Add the target op.
3561 * target.cc (process_target::supports_multi_process): Define.
3562 (target_supports_multi_process): Update.
3564 Update the derived classes and callers below.
3566 * linux-low.cc (linux_target_ops): Update.
3567 (linux_supports_multi_process): Turn into ...
3568 (linux_process_target::supports_multi_process): ... this.
3569 * linux-low.h (class linux_process_target): Update.
3570 * lynx-low.cc (lynx_target_ops): Update.
3571 * nto-low.cc (nto_target_ops): Update.
3572 * win32-low.cc (win32_target_ops): Update.
3574 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3576 Turn process_stratum_target's supports_non_stop, async, and
3577 start_non_stop ops into methods of process_target.
3579 * target.h (struct process_stratum_target): Remove the target ops.
3580 (class process_target): Add the target ops.
3581 (target_supports_non_stop): Update the macro.
3582 (target_async): Update the macro.
3583 (start_non_stop): Remove declaration.
3584 * target.cc (process_target::supports_non_stop): Define.
3585 (process_target::async): Define.
3586 (process_target::start_non_stop): Define.
3587 (start_non_stop): Remove.
3589 Update the derived classes and callers below.
3591 * server.cc (handle_qxfer_siginfo): Update.
3592 (handle_query): Update.
3593 * linux-low.cc (linux_target_ops): Update.
3594 (linux_supports_non_stop): Turn into ...
3595 (linux_process_target::supports_non_stop): ... this.
3596 (linux_async): Turn into ...
3597 (linux_process_target::async): ... this.
3598 (linux_start_non_stop): Turn into ...
3599 (linux_process_target::start_non_stop): ... this.
3600 * linux-low.h (class linux_process_target): Update.
3601 * lynx-low.cc (lynx_target_ops): Update.
3602 * nto-low.cc (nto_target_ops): Update.
3603 (nto_supports_non_stop): Remove; rely on the default behavior
3605 * win32-low.cc (win32_target_ops): Update.
3607 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3609 Turn process_stratum_target's qxfer_siginfo op into a method of
3612 * target.h (struct process_stratum_target): Remove the target op.
3613 (class process_target): Add the target op. Also add
3614 'supports_qxfer_siginfo'.
3615 * target.cc (process_target::qxfer_siginfo): Define.
3616 (process_target::supports_qxfer_siginfo): Define.
3618 Update the derived classes and callers below.
3620 * server.cc (handle_qxfer_siginfo): Update.
3621 (handle_query): Update.
3622 * linux-low.cc (linux_target_ops): Update.
3623 (linux_process_target::supports_qxfer_siginfo): Define.
3624 (linux_xfer_siginfo): Turn into ...
3625 (linux_process_target::qxfer_siginfo): ... this.
3626 * linux-low.h (class linux_process_target): Update.
3627 * lynx-low.cc (lynx_target_ops): Update.
3628 * nto-low.cc (nto_target_ops): Update.
3629 * win32-low.cc (win32_target_ops): Update.
3631 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3633 Turn process_stratum_target's qxfer_osdata op into a method of
3636 * target.h (struct process_stratum_target): Remove the target op.
3637 (class process_target): Add the target op. Also add
3638 'supports_qxfer_osdata'.
3639 * target.cc (process_target::qxfer_osdata): Define.
3640 (process_target::supports_qxfer_osdata): Define.
3642 Update the derived classes and callers below.
3644 * server.cc (handle_qxfer_osdata): Update.
3645 (handle_query): Update.
3646 * linux-low.cc (linux_target_ops): Update.
3647 (linux_process_target::supports_qxfer_osdata): Define.
3648 (linux_qxfer_osdata): Turn into ...
3649 (linux_process_target::qxfer_osdata): ... this.
3650 * linux-low.h (class linux_process_target): Update.
3651 * lynx-low.cc (lynx_target_ops): Update.
3652 * nto-low.cc (nto_target_ops): Update.
3653 * win32-low.cc (win32_target_ops): Update.
3655 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3657 Turn process_stratum_target's hostio_last_error op into a
3658 method of process_target.
3660 * target.h (struct process_stratum_target): Remove the target op.
3661 (class process_target): Add the target op.
3662 * target.cc: Add "hostio.h" to includes.
3663 (process_target::hostio_last_error): Define.
3665 Update the derived classes and callers below.
3667 * hostio.cc (hostio_error): Update.
3668 * linux-low.cc: Remove "hostio.h" from includes.
3669 (linux_target_ops): Update.
3670 * lynx-low.cc (lynx_target_ops): Update.
3671 * nto-low.cc (nto_target_ops): Update.
3672 * win32-low.h (class win32_process_target): Update.
3673 * win32-low.cc (win32_target_ops): Update.
3674 (wince_hostio_last_error): Turn into ...
3675 (win32_process_target::hostio_last_error): ... this.
3677 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3679 Turn process_stratum_target's get_tls_address op into a method of
3682 * target.h (struct process_stratum_target): Remove the target op.
3683 (class process_target): Add the target op. Also add
3684 'supports_get_tls_address'.
3685 * target.cc (process_target::get_tls_address): Define.
3686 (process_target::supports_get_tls_address): Define.
3688 Update the derived classes and callers below.
3690 * server.cc (handle_query): Update.
3691 * linux-low.cc (linux_target_ops): Update.
3692 (linux_process_target::supports_get_tls_address): Define.
3693 (linux_process_target::get_tls_address): Define.
3694 * linux-low.h (class linux_process_target): Update.
3695 * lynx-low.cc (lynx_target_ops): Update.
3696 * nto-low.cc (nto_target_ops): Update.
3697 * win32-low.cc (win32_target_ops): Update.
3699 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3701 Turn process_stratum_target's read_offsets op into a method of
3704 * target.h (struct process_stratum_target): Remove the target op.
3705 (class process_target): Add the target op. Also add
3706 'supports_read_offsets'.
3707 * target.cc (process_target::read_offsets): Define.
3708 (process_target::supports_read_offsets): Define.
3710 Update the derived classes and callers below.
3712 * server.cc (handle_query): Update.
3713 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3714 (linux_target_ops): Update.
3715 (linux_process_target::supports_read_offsets): Define.
3716 (linux_read_offsets): Turn into ...
3717 (linux_process_target::read_offsets): ... this.
3718 * linux-low.h (class linux_process_target): Update.
3719 * lynx-low.cc (lynx_target_ops): Update.
3720 * nto-low.cc (nto_target_ops): Update.
3721 * win32-low.cc (win32_target_ops): Update.
3723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3725 Turn process_stratum_target's stopped_by_watchpoint and
3726 stopped_data_address ops into methods of process_target.
3728 * target.h (struct process_stratum_target): Remove the target ops.
3729 (class process_target): Add the target ops.
3730 * target.cc (process_target::stopped_by_watchpoint): Define.
3731 (process_target::stopped_data_address): Define.
3733 Update the derived classes and callers below.
3735 * remote-utils.cc (prepare_resume_reply): Update.
3736 * linux-low.cc (linux_target_ops): Update.
3737 (linux_stopped_by_watchpoint): Turn into ...
3738 (linux_process_target::stopped_by_watchpoint): ... this.
3739 (linux_stopped_data_address): Turn into ...
3740 (linux_process_target::stopped_data_address): ... this.
3741 * linux-low.h (class linux_process_target): Update.
3742 * lynx-low.cc (lynx_target_ops): Update.
3743 * nto-low.cc (nto_target_ops): Update.
3744 (nto_stopped_by_watchpoint): Turn into ...
3745 (nto_process_target::stopped_by_watchpoint): ... this.
3746 (nto_stopped_data_address): Turn into ...
3747 (nto_process_target::stopped_data_address): ... this.
3748 * nto-low.h (class nto_process_target): Update.
3749 * win32-low.cc (win32_target_ops): Update.
3750 (win32_stopped_by_watchpoint): Turn into ...
3751 (win32_process_target::stopped_by_watchpoint): ... this.
3752 (win32_stopped_data_address): Turn into ...
3753 (win32_process_target::stopped_data_address): ... this.
3754 * win32-low.h (class win32_process_target): Update.
3756 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3758 Turn process_stratum_target's supports_hardware_single_step op into
3759 a method of process_target.
3761 * target.h (struct process_stratum_target): Remove the target op.
3762 (class process_target): Add the target op.
3763 (target_supports_hardware_single_step): Update the macro.
3764 (target_can_do_hardware_single_step): Remove declaration.
3765 * target.cc (process_target::supports_hardware_single_step): Define.
3766 (target_can_do_hardware_single_step): Remove.
3768 Update the derived classes and callers below.
3770 * linux-low.h (class linux_process_target): Update.
3771 * linux-low.cc (linux_target_ops): Update.
3772 (linux_supports_hardware_single_step): Turn into ...
3773 (linux_process_target::supports_hardware_single_step): ... this.
3774 * lynx-low.h (class lynx_process_target): Update.
3775 * lynx-low.cc (lynx_target_ops): Update.
3776 (lynx_process_target::supports_hardware_single_step): Define.
3777 * nto-low.h (class nto_process_target): Update.
3778 * nto-low.cc (nto_target_ops): Update.
3779 (nto_process_target::supports_hardware_single_step): Define.
3780 * win32-low.h (class win32_process_target): Update.
3781 * win32-low.cc (win32_target_ops): Update.
3782 (win32_process_target::supports_hardware_single_step): Define.
3784 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3786 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3787 ops into methods of process_target.
3789 * target.h (struct process_stratum_target): Remove the target ops.
3790 (class process_target): Add the target ops.
3791 (target_stopped_by_hw_breakpoint): Update the macro.
3792 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3793 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3794 (process_target::supports_stopped_by_hw_breakpoint): Define.
3796 Update the derived classes and callers below.
3798 * linux-low.cc (linux_target_ops): Update.
3799 (linux_stopped_by_hw_breakpoint): Turn into ...
3800 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3801 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3802 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3803 * linux-low.h (class linux_process_target): Update.
3804 * lynx-low.cc (lynx_target_ops): Update.
3805 * nto-low.cc (nto_target_ops): Update.
3806 * win32-low.cc (win32_target_ops): Update.
3808 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3810 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3811 ops into methods of process_target.
3813 * target.h (struct process_stratum_target): Remove the target ops.
3814 (class process_target): Add the target ops.
3815 (target_stopped_by_sw_breakpoint): Update the macro.
3816 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3817 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3818 (process_target::supports_stopped_by_sw_breakpoint): Define.
3820 Update the derived classes and callers below.
3822 * linux-low.cc (linux_target_ops): Update.
3823 (linux_stopped_by_sw_breakpoint): Turn into ...
3824 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3825 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3826 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3827 * linux-low.h (class linux_process_target): Update.
3828 * lynx-low.cc (lynx_target_ops): Update.
3829 * nto-low.cc (nto_target_ops): Update.
3830 * win32-low.cc (win32_target_ops): Update.
3832 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3834 Turn process_stratum_target's insert_point and remove_point ops
3835 into methods of process_target.
3837 * target.h (struct process_stratum_target): Remove the target ops.
3838 (class process_target): Add the target ops.
3839 * target.cc (process_target::insert_point): Define.
3840 (process_target::remove_point): Define.
3842 Update the derived classes and callers below.
3844 * mem-break.cc (set_raw_breakpoint_at): Update.
3845 (delete_raw_breakpoint): Update.
3846 (uninsert_raw_breakpoint): Update.
3847 (reinsert_raw_breakpoint): Update.
3848 * linux-low.cc (linux_target_ops): Update.
3849 (linux_insert_point): Turn into ...
3850 (linux_process_target::insert_point): ... this.
3851 (linux_remove_point): Turn into ...
3852 (linux_process_target::remove_point): ... this.
3853 * linux-low.h (class linux_process_target): Update.
3854 * lynx-low.cc (lynx_target_ops): Update.
3855 * nto-low.cc (nto_target_ops): Update.
3856 (nto_insert_point): Turn into ...
3857 (nto_process_target::insert_point): ... this.
3858 (nto_remove_point): Turn into ...
3859 (nto_process_target::remove_point): ... this.
3860 * nto-low.h (class nto_process_target): Update.
3861 * win32-low.cc (win32_target_ops): Update.
3862 (win32_insert_point): Turn into ...
3863 (win32_process_target::insert_point): ... this.
3864 (win32_remove_point): Turn into ...
3865 (win32_process_target::remove_point): ... this.
3866 * win32-low.h (class win32_process_target): Update.
3868 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3870 Turn process_stratum_target's supports_z_point_type op into a
3871 method of process_target.
3873 * target.h (struct process_stratum_target): Remove the target op.
3874 (class process_target): Add the target op.
3875 * target.cc (process_target::supports_z_point_type): Define.
3877 Update the derived classes and callers below.
3879 * mem-break.cc (z_type_supported): Update.
3880 * linux-low.cc (linux_target_ops): Update.
3881 (linux_supports_z_point_type): Turn into ...
3882 (linux_process_target::supports_z_point_type): ... this.
3883 * linux-low.h (class linux_process_target): Update.
3884 * lynx-low.cc (lynx_target_ops): Update.
3885 * nto-low.cc (nto_target_ops): Update.
3886 (nto_supports_z_point_type): Turn into ...
3887 (nto_process_target::supports_z_point_type): ... this.
3888 * nto-low.h (class nto_process_target): Update.
3889 * win32-low.cc (win32_target_ops): Update.
3890 (win32_supports_z_point_type): Turn into ...
3891 (win32_process_target::supports_z_point_type): ... this.
3892 * win32-low.h (class win32_process_target): Update.
3894 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3896 Turn process_stratum_target's read_auxv op into a method of
3899 * target.h (class process_stratum_target): Remove the target op.
3900 (struct process_target): Add the target op. Also add
3901 'supports_read_auxv'.
3902 * target.cc (process_target::read_auxv): Define.
3903 (process_target::supports_read_auxv): Define.
3905 Update the derived classes and callers below.
3907 * server.cc (handle_qxfer_auxv): Update.
3908 (handle_query): Update.
3909 * linux-low.cc (linux_target_ops): Update.
3910 (linux_process_target::supports_read_auxv): Define.
3911 (linux_read_auxv): Turn into ...
3912 (linux_process_target::read_auxv): ... this.
3913 * linux-low.h (class linux_process_target): Update.
3914 * lynx-low.cc (lynx_target_ops): Update.
3915 * nto-low.cc (nto_target_ops): Update.
3916 (nto_process_target::supports_read_auxv): Define.
3917 (nto_read_auxv): Turn into ...
3918 (nto_process_target::read_auxv): ... this.
3919 * nto-low.h (class nto_process_target): Update.
3920 * win32-low.cc (win32_target_ops): Update.
3922 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3924 Turn process_stratum_target's request_interrupt op into a method of
3927 * target.h (struct process_stratum_target): Remove the target op.
3928 (class process_target): Add the target op.
3930 Update the derived classes and callers below.
3932 * remote-utils.cc (putpkt_binary_1): Update.
3933 (input_interrupt): Update.
3935 * server.cc (handle_v_requests): Update.
3936 * linux-low.cc (linux_target_ops): Update.
3937 (linux_request_interrupt): Turn into ...
3938 (linux_process_target::request_interrupt): ... this.
3939 * linux-low.h (class linux_process_target): Update.
3940 * lynx-low.cc (lynx_target_ops): Update.
3941 (lynx_request_interrupt): Turn into ...
3942 (lynx_process_target::request_interrupt): ... this.
3943 * lynx-low.h (class lynx_process_target): Update.
3944 * nto-low.cc (nto_target_ops): Update.
3945 (nto_request_interrupt): Turn into ...
3946 (nto_process_target::request_interrupt): ... this.
3947 * nto-low.h (class nto_process_target): Update.
3948 * win32-low.cc (win32_target_ops): Update.
3949 (win32_request_interrupt): Turn into ...
3950 (win32_process_target::request_interrupt): ... this.
3951 * win32-low.h (class win32_process_target): Update.
3953 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3955 Turn process_stratum_target's look_up_symbols op into a method of
3958 * target.h (struct process_stratum_target): Remove the target op.
3959 (class process_target): Add the target op.
3960 * target.cc (process_target::look_up_symbols): Define.
3962 Update the derived classes and callers below.
3964 * server.cc (handle_query): Update.
3965 * linux-low.cc (linux_target_ops): Update.
3966 (linux_look_up_symbols): Turn into ...
3967 (linux_process_target::look_up_symbols): ... this.
3968 * linux-low.h (class linux_process_target): Update.
3969 * lynx-low.cc (lynx_target_ops): Update.
3970 * nto-low.cc (nto_target_ops): Update.
3971 * win32-low.cc (win32_target_ops): Update.
3973 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3975 Turn process_stratum_target's read_memory and write_memory
3976 ops into methods of process_target.
3978 * target.h (struct process_stratum_target): Remove the target ops.
3979 (class process_target): Add the target ops.
3981 Update the derived classes and callers below.
3983 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
3984 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
3985 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
3986 (arm_get_syscall_trapinfo): Update.
3987 * linux-cris-low.cc (cris_breakpoint_at): Update.
3988 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
3989 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
3990 * linux-mips-low.cc (mips_breakpoint_at): Update.
3991 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
3992 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
3993 * linux-sh-low.cc (sh_breakpoint_at): Update.
3994 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
3995 (sparc_store_gregset_from_stack): Update.
3996 (sparc_breakpoint_at): Update.
3997 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
3998 * linux-tile-low.cc (tile_breakpoint_at): Update.
3999 * linux-x86-low.cc (x86_breakpoint_at): Update.
4000 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4001 * mem-brea.cc (insert_memory_breakpoint): Update.
4002 (validate_inserted_breakpoint): Update.
4003 * target.cc (read_inferior_memory): Update.
4004 (target_write_memory): Update.
4005 * linux-low.cc (linux_target_ops): Update.
4006 (linux_read_memory): Make a wrapper around the read_memory target
4008 (linux_process_target::read_memory): Rename from linux_read_memory.
4009 (linux_write_memory): Turn into ...
4010 (linux_process_target::write_memory): ... this.
4011 * linux-low.h (class linux_process_target): Update.
4012 * lynx-low.cc (lynx_target_ops): Update.
4013 (lynx_read_memory): Turn into ...
4014 (lynx_process_target::read_memory): ... this.
4015 (lynx_write_memory): Turn into ...
4016 (lynx_process_target::write_memory): ... this.
4017 * lynx-low.h (class lynx_process_target): Update.
4018 * nto-low.cc (nto_target_ops): Update.
4019 (nto_read_memory): Turn into ...
4020 (nto_process_target::read_memory): ... this.
4021 (nto_write_memory): Turn into ...
4022 (nto_process_target::write_memory): ... this.
4023 * nto-low.h (class nto_process_target): Update.
4024 * win32-low.cc (win32_target_ops): Update.
4025 (win32_read_inferior_memory): Turn into ...
4026 (win32_process_target::read_memory): ... this.
4027 (win32_write_inferior_memory): Turn into ...
4028 (win32_process_target::write_memory): ... this.
4029 * win32-low.h (class win32_process_target): Update.
4031 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4033 Turn process_stratum_target's prepare_to_access_memory and
4034 done_accessing_memory ops into methods of process_target.
4036 * target.h (struct process_stratum_target): Remove the target ops.
4037 (class process_target): Add the target ops.
4038 * target.cc (process_target::prepare_to_access_memory): Define.
4039 (process_target::done_accessing_memory): Define.
4040 (prepare_to_access_memory): Update.
4041 (done_accessing_memory): Update.
4043 Update the derived classes and callers below.
4045 * linux-low.cc (linux_target_ops): Update.
4046 (linux_prepare_to_access_memory): Turn into ...
4047 (linux_process_target::prepare_to_access_memory): ... this.
4048 (linux_done_accessing_memory): Turn into ...
4049 (linux_process_target::done_accessing_memory): ... this.
4050 * linux-low.h (class linux_process_target): Update.
4051 * lynx-low.cc (lynx_target_ops): Update.
4052 * nto-low.cc (nto_target_ops): Update.
4053 * win32-low.cc (win32_target_ops): Update.
4055 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4057 Turn process_stratum_target's fetch_registers and store_registers
4058 ops into methods of process_target.
4060 * target.h (struct process_stratum_target): Remove the target ops.
4061 (class process_target): Add the target ops.
4062 (fetch_inferior_registers): Update the macro.
4063 (store_inferior_registers): Update the macro.
4065 Update the derived classes and callers below.
4067 * linux-low.cc (linux_target_ops): Update.
4068 (linux_fetch_registers): Turn into ...
4069 (linux_process_target::fetch_registers): ... this.
4070 (linux_store_registers): Turn into ...
4071 (linux_process_target::store_registers): ... this.
4072 * linux-low.h (class linux_process_target): Update.
4073 * lynx-low.cc (lynx_target_ops): Update.
4074 (lynx_fetch_registers): Turn into ...
4075 (lynx_process_target::fetch_registers): ... this.
4076 (lynx_store_registers): Turn into ...
4077 (lynx_process_target::store_registers): ... this.
4078 * lynx-low.h (class lynx_process_target): Update.
4079 * nto-low.cc (nto_target_ops): Update.
4080 (nto_fetch_registers): Turn into ...
4081 (nto_process_target::fetch_registers): ... this.
4082 (nto_store_registers): Turn into ...
4083 (nto_process_target::store_registers): ... this.
4084 * nto-low.h (class nto_process_target): Update.
4085 * win32-low.cc (win32_target_ops): Update.
4086 (win32_fetch_inferior_registers): Turn into ...
4087 (win32_process_target::fetch_registers): ... this.
4088 (win32_store_inferior_registers): Turn into ...
4089 (win32_process_target::store_registers): ... this.
4090 * win32-low.h (class win32_process_target): Update.
4092 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4094 Turn process_stratum_target's wait op into a method of
4097 * target.h (struct process_stratum_target): Remove the target op.
4098 (class process_target): Add the target op.
4100 Update the derived classes and callers below.
4102 * target.cc (target_wait): Update.
4103 * linux-low.cc (linux_target_ops): Update.
4104 (linux_wait): Turn into ...
4105 (linux_process_target::wait): ... this.
4106 * linux-low.h (class linux_process_target): Update.
4107 * lynx-low.cc (lynx_target_ops): Update.
4108 (lynx_wait): Turn into ...
4109 (lynx_process_target::wait): ... this.
4110 * lynx-low.h (class lynx_process_target): Update.
4111 * nto-low.cc (nto_target_ops): Update.
4112 (nto_wait): Turn into ...
4113 (nto_process_target::wait): ... this.
4114 * nto-low.h (class nto_process_target): Update.
4115 * win32-low.cc (win32_target_ops): Update.
4116 (win32_wait): Turn into ...
4117 (win32_process_target::wait): ... this.
4118 (do_initial_child_stuff): Update.
4119 * win32-low.h (class win32_process_target): Update.
4121 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4123 Turn process_stratum_target's resume op into a method of
4126 * target.h (struct process_stratum_target): Remove the target op.
4127 (class process_target): Add the target op.
4129 Update the derived classes and callers below.
4131 * server.cc (resume): Update.
4132 * target.cc (target_stop_and_wait): Update.
4133 (target_continue_no_signal): Update.
4134 (target_continue): Update.
4135 * linux-low.cc (linux_target_ops): Update.
4136 (linux_resume): Turn into ...
4137 (linux_process_target::resume): ... this.
4138 * linux-low.h (class linux_process_target): Update.
4139 * lynx-low.cc (lynx_target_ops): Update.
4140 (lynx_resume): Turn into ...
4141 (lynx_process_target::resume): ... this.
4142 * lynx-low.h (class lynx_process_target): Update.
4143 * nto-low.cc (nto_target_ops): Update.
4144 (nto_resume): Turn into ...
4145 (nto_process_target::resume): ... this.
4146 * nto-low.h (class nto_process_target): Update.
4147 * win32-low.cc (win32_target_ops): Update.
4148 (win32_resume): Turn into ...
4149 (win32_process_target::resume): ... this.
4150 (win32_process_target::detach): Update.
4151 (do_initial_child_stuff): Update.
4152 * win32-low.h (class win32_process_target): Update.
4154 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4156 Turn process_stratum_target's thread_alive op into a method of
4159 * target.h (struct process_stratum_target): Remove the target op.
4160 (class process_target): Add the target op.
4161 (mythread_alive): Update the macro.
4163 Update the derived classes and callers below.
4165 * linux-low.cc (linux_target_ops): Update.
4166 (linux_thread_alive): Turn into ...
4167 (linux_process_target::thread_alive): ... this.
4168 (wait_for_sigstop): Update.
4169 * linux-low.h (class linux_process_target): Update.
4170 * lynx-low.cc (lynx_target_ops): Update.
4171 (lynx_thread_alive): Turn into ...
4172 (lynx_process_target::thread_alive): ... this.
4173 * lynx-low.h (class lynx_process_target): Update.
4174 * nto-low.cc (nto_target_ops): Update.
4175 (nto_thread_alive): Turn into ...
4176 (nto_process_target::thread_alive): ... this.
4177 * nto-low.h (class nto_process_target): Update.
4178 * win32-low.cc (win32_target_ops): Update.
4179 (win32_thread_alive): Turn into ...
4180 (win32_process_target::thread_alive): ... this.
4181 * win32-low.h (class win32_process_target): Update.
4183 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4185 Turn process_stratum_target's join op into a method of
4188 * target.h (struct process_stratum_target): Remove the target op.
4189 (class process_target): Add the target op.
4190 (join_inferior): Update the macro.
4192 Update the derived classes and callers below.
4194 * linux-low.cc (linux_target_ops): Update.
4195 (linux_join): Turn into ...
4196 (linux_process_target::join): ... this.
4197 * linux-low.h (class linux_process_target): Update.
4198 * lynx-low.cc (lynx_target_ops): Update.
4199 (lynx_join): Turn into ...
4200 (lynx_process_target::join): ... this.
4201 * lynx-low.h (class lynx_process_target): Update.
4202 * nto-low.cc (nto_target_ops): Update.
4203 (nto_process_target::join): Define.
4204 * nto-low.h (class nto_process_target): Update.
4205 * win32-low.cc (win32_target_ops): Update.
4206 (win32_join): Turn into ...
4207 (win32_process_target::join): ... this.
4208 * win32-low.h (class win32_process_target): Update.
4210 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4212 Turn process_stratum_target's mourn op into a method of
4215 * target.h (struct process_stratum_target): Remove the target op.
4216 (class process_target): Add the target op.
4218 Update the derived classes and callers below.
4220 * target.cc (target_mourn_inferior): Update.
4221 * linux-low.cc (linux_target_ops): Update.
4222 (linux_mourn): Turn into ...
4223 (linux_process_target::mourn): ... this.
4224 (handle_extended_wait): Update.
4225 (linux_process_target::kill): Update.
4226 (linux_process_target::detach): Update.
4227 * linux-low.h (class linux_process_target): Update.
4228 * lynx-low.cc (lynx_target_ops): Update.
4229 (lynx_mourn): Turn into ...
4230 (lynx_process_target::mourn): ... this.
4231 * lynx-low.h (class lynx_process_target): Update.
4232 * nto-low.cc (nto_target_ops): Update.
4233 (nto_mourn): Turn into ...
4234 (nto_process_target::mourn): ... this.
4235 * nto-low.h (class nto_process_target): Update.
4236 * win32-low.cc (win32_target_ops): Update.
4237 (win32_mourn): Turn into ...
4238 (win32_process_target::mourn): ... this.
4239 * win32-low.h (class win32_process_target): Update.
4241 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4243 Turn process_stratum_target's detach op into a method of
4246 * target.h (struct process_stratum_target): Remove the target op.
4247 (class process_target): Add the target op.
4248 (detach_inferior): Update the macro.
4250 Update the derived classes and callers below.
4252 * linux-low.cc (linux_target_ops): Update.
4253 (linux_detach): Turn into ...
4254 (linux_process_target::detach): ... this.
4255 * linux-low.h (class linux_process_target): Update.
4256 * lynx-low.cc (lynx_target_ops): Update.
4257 (lynx_detach): Turn into ...
4258 (lynx_process_target::detach): ... this.
4259 * lynx-low.h (class lynx_process_target): Update.
4260 * nto-low.cc (nto_target_ops): Update.
4261 (nto_detach): Turn into ...
4262 (nto_process_target::detach): ... this.
4263 * nto-low.h (class nto_process_target): Update.
4264 * win32-low.cc (win32_target_ops): Update.
4265 (win32_detach): Turn into ...
4266 (win32_process_target::detach): ... this.
4267 * win32-low.h (class win32_process_target): Update.
4269 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4271 Turn process_stratum_target's kill op into a method of
4274 * target.h (struct process_stratum_target): Remove the target op.
4275 (class process_target): Add the target op.
4277 Update the derived classes and callers below.
4279 * target.cc (kill_inferior): Update.
4280 * linux-low.cc (linux_target_ops): Update.
4281 (linux_kill): Turn into ...
4282 (linux_process_target::kill): ... this.
4283 * linux-low.h (class linux_process_target): Update.
4284 * lynx-low.cc (lynx_target_ops): Update.
4285 (lynx_kill): Turn into ...
4286 (lynx_process_target::kill): ... this.
4287 * lynx-low.h (class lynx_process_target): Update.
4288 * nto-low.cc (nto_target_ops): Update.
4289 (nto_kill): Turn into ...
4290 (nto_process_target::kill): ... this.
4291 * nto-low.h (class nto_process_target): Update.
4292 * win32-low.cc (win32_target_ops): Update.
4293 (win32_kill): Turn into ...
4294 (win32_process_target::kill): ... this.
4295 * win32-low.h (class win32_process_target): Update.
4297 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4299 Turn process_stratum_target's attach op into a method of
4302 * target.h (struct process_stratum_target): Remove the target op.
4303 (class process_target): Add the target op.
4304 (myattach): Update the macro.
4306 Update the derived classes and callers below.
4308 * linux-low.cc (linux_target_ops): Update.
4309 (linux_attach): Turn into ...
4310 (linux_process_target::attach): ... this.
4311 * linux-low.h (class linux_process_target): Update.
4312 * lynx-low.cc (lynx_target_ops): Update.
4313 (lynx_attach): Turn into ...
4314 (lynx_process_target::attach): ... this.
4315 * lynx-low.h (class lynx_process_target): Update.
4316 * nto-low.cc (nto_target_ops): Update.
4317 (nto_attach): Turn into ...
4318 (nto_process_target::attach): ... this.
4319 * nto-low.h (class nto_process_target): Update.
4320 * win32-low.cc (win32_target_ops): Update.
4321 (win32_attach): Turn into ...
4322 (win32_process_target::attach): ... this.
4323 * win32-low.h (class win32_process_target): Update.
4325 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4327 Turn process_stratum_target's post_create_inferior op into a method
4330 * target.h (struct process_stratum_target): Remove the target op.
4331 (class process_target): Add the target op.
4332 (target_post_create_inferior): Update the macro.
4333 * target.cc (process_target::post_create_inferior): Define.
4335 Update the derived classes and callers below.
4337 * linux-low.cc (linux_target_ops): Update.
4338 (linux_post_create_inferior): Turn into ...
4339 (linux_process_target::post_create_inferior): ... this.
4340 * linux-low.h (class linux_process_target): Update.
4341 * lynx-low.cc (lynx_target_ops): Update.
4342 * nto-low.cc (nto_target_ops): Update.
4343 * win32-low.cc (win32_target_ops): Update.
4345 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4347 Turn process_stratum_target's create_inferior op into a method of
4350 * target.h (struct process_stratum_target): Remove the target op.
4351 (class process_target): Add the target op.
4352 (create_inferior): Rename the macro to ...
4353 (target_create_inferior): ... this.
4355 Update the derived classes and callers below.
4357 * server.cc (handle_v_run): Update.
4358 (captured_main): Update.
4359 (process_serial_event): Update.
4360 * linux-low.cc (linux_target_ops): Update.
4361 (linux_create_inferior): Turn into ...
4362 (linux_process_target::create_inferior): ... this.
4363 * linux-low.h (class linux_process_target): Update.
4364 * lynx-low.cc (lynx_target_ops): Update.
4365 (lynx_create_inferior): Turn into ...
4366 (lynx_process_target::create_inferior): ... this.
4367 * lynx-low.h (class lynx_process_target): Update.
4368 * nto-low.cc (nto_target_ops): Update.
4369 (nto_create_inferior): Turn into ...
4370 (nto_process_target::create_inferior): ... this.
4371 * nto-low.h (class nto_process_target): Update.
4372 * win32-low.cc (win32_target_ops): Update.
4373 (win32_create_inferior): Turn into ...
4374 (win32_process_target::create_inferior): ... this.
4375 * win32-low.h (class win32_process_target): Update.
4377 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4379 * target.h (class process_target): New class definition.
4380 (struct process_stratum_target) <pt>: New field with type
4382 * linux-low.h (class linux_process_target): Define as a derived
4383 class of 'process_target'.
4384 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4386 * lynx-low.h (class lynx_process_target): Define as a derived
4387 class of 'process_target'.
4388 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4390 * nto-low.h (class nto_process_target): Define as a derived
4391 class of 'process_target'.
4392 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4394 * win32-low.h (class win32_process_target): Define as a derived
4395 class of 'process_target'.
4396 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4399 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4401 * configure: Regenerate.
4403 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4404 Andrew Burgess <andrew.burgess@embecosm.com>
4406 * linux-riscv-low.cc: New file.
4407 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4408 and nat/riscv-linux-tdesc.c.
4409 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4410 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4413 2020-02-14 Tom Tromey <tom@tromey.com>
4415 * acinclude.m4: Don't include acx_configure_dir.m4.
4416 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4417 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4418 (all, install-only, uninstall, clean-info, clean)
4419 (maintainer-clean): Don't recurse.
4420 (subdir_do, all-lib): Remove.
4421 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4423 (generated_files): Update.
4424 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4425 * configure: Rebuild.
4426 * configure.ac: Don't configure gnulib or libiberty.
4429 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4431 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4432 preparing the command line for CreateProcess.
4433 (win32_create_inferior): Reflect the program name in debugging
4434 output that shows the process and its command line.
4436 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4438 * Makefile.in: Rename source files from .c to .cc.
4439 * %.c: Rename to %.cc.
4440 * configure.ac: Rename server.c to server.cc.
4441 * configure: Re-generate.
4443 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4445 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4447 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4449 * win32-low.c (win32_create_inferior): Set signal_pid.
4451 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4452 Pedro Alves <palves@redhat.com>
4454 Skip building gdbserver in a cross-configuration.
4455 * configure.srv: Set $gdbserver_host depending on whether $target
4456 is $host. Use $gdbserver_host instead of $host.
4458 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4460 * configure: Re-generate.
4462 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4464 * configure: Re-generate.
4466 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4468 * acinclude.m4: Update warning.m4 path.
4470 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4472 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4473 (handle_exception): Set siginfo_er.
4474 (win32_xfer_siginfo): New function.
4476 2020-02-07 Tom Tromey <tom@tromey.com>
4477 Pedro Alves <palves@redhat.com>
4479 * README: Update build documentation.
4480 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4482 * configure.ac: Update paths.
4483 * configure: Rebuild.
4484 * acinclude.m4: Update paths.
4485 * Makefile.in: Update include paths.
4486 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4487 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4488 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4489 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4490 (%-generated.c): Update paths.
4491 * Move entire directory from ../gdb/gdbserver.
4493 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4495 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4497 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4499 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4500 assignment instead of srv_linux_obj.
4502 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4504 * server.c (handle_qxfer_libraries): Write segment-address with
4507 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4509 * Makefile.in (install-strip): New target.
4510 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4511 * aclocal.m4: Regenerate.
4512 * configure: Regenerate.
4513 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4515 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4517 * Makefile.in (SFILES): Adjust paths to point to real files.
4518 (OBS): Move waitstatus.o to target/waitstatus.o.
4519 (TAGS): Transform paths appropriately.
4521 (nat/%.o): ... this pattern rule.
4523 (target/%.o): ... this pattern rule.
4524 * configure.srv: Adjust paths throughout to include nat/ prefix
4525 with the revant files.
4526 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4527 * configure: Regenerate.
4529 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4531 * Makefile.in (TAGS): Remove config files from the recipe.
4533 2020-01-14 Tom Tromey <tom@tromey.com>
4535 * configure: Rebuild.
4536 * configure.ac: Remove any checks that were added to common.m4.
4537 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4540 2020-01-14 Tom Tromey <tom@tromey.com>
4542 * server.h: Include config.h.
4543 * gdbreplay.c: Include config.h.
4544 * configure: Rebuild.
4545 * configure.ac: Don't source common.host.
4546 * acinclude.m4: Update path.
4547 * Makefile.in (INCSUPPORT): New variable.
4548 (INCLUDE_CFLAGS): Add INCSUPPORT.
4549 (SFILES): Update paths.
4550 (version-generated.c): Update path to create-version.sh.
4551 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4553 2020-01-14 Tom Tromey <tom@tromey.com>
4555 * configure.ac (LIBS): Use WIN32APILIBS.
4556 (USE_WIN32API): Don't define.
4557 * configure: Rebuild.
4559 2020-01-14 Tom Tromey <tom@tromey.com>
4561 * configure: Rebuild.
4563 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4565 * Makefile.in (%-generated.c): Remove rule for files from
4568 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4570 * configure: Re-generate.
4572 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4574 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4576 * tracepoint.c (stop_tracing, flush_trace_buffer,
4577 about_to_request_buffer_space, get_trace_state_variable_value,
4578 set_trace_state_variable_value, gdb_collect): Add declaration.
4580 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4582 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4583 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4584 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4585 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4586 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4589 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4591 * inferiors.c: Include gdbsupport/common-inferior.h.
4593 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4595 * hostio-errno.c: Include hostio.h.
4597 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4599 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4602 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4604 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4605 * linux-arm-tdesc.h: Include arch/arm.h.
4607 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4609 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4611 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4613 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4614 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4616 2020-01-10 Pedro Alves <palves@redhat.com>
4618 * fork-child.c (post_fork_inferior): Pass target down to
4620 * inferiors.c (switch_to_thread): Add process_stratum_target
4622 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4623 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4624 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4625 * remote-utils.c (prepare_resume_reply): Pass the target to
4627 * target.c (the_target): Now a process_stratum_target.
4628 (done_accessing_memory): Pass the target to switch_to_thread.
4629 (set_target_ops): Ajust to use process_stratum_target.
4630 * target.h (struct target_ops): Rename to ...
4631 (struct process_stratum_target): ... this.
4632 (the_target, set_target_ops): Adjust.
4633 (prepare_to_access_memory): Adjust comment.
4634 * win32-low.c (child_xfer_memory): Adjust to use
4635 process_stratum_target.
4636 (win32_target_ops): Now a process_stratum_target.
4638 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4639 Pedro Alves <palves@redhat.com>
4641 * win32-low.c (get_child_debug_event): Extract the fatal exception
4642 from the exit status and convert to the equivalent Posix signal
4644 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4645 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4647 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4649 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4651 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4653 * server.c (gdbserver_version): Change copyright year to 2020.
4654 * gdbreplay.c (gdbreplay_version): Likewise.
4656 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4658 * configure: Regenerate.
4659 * configure.ac: Quote variable arguments of test.
4661 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4663 * Makefile.in: Fix build with GNU Make 3.81
4665 2019-12-16 Tom Tromey <tromey@adacore.com>
4667 * server.c (get_exec_file): Constify result.
4669 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4671 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4672 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4673 * config.in: Regenerate.
4674 * configure: Regenerate.
4675 * configure.ac: Don't check for strerror.
4676 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4677 Call safe_strerror instead of strerror.
4678 * server.h (strerror): Remove this now-unnecessary declaration.
4679 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4681 (gdb_agent_helper_thread): Likewise.
4682 * utils.c (perror_with_name): Likewise.
4684 2019-11-26 Tom Tromey <tom@tromey.com>
4686 * configure, config.in: Rebuild.
4688 2019-11-26 Tom Tromey <tom@tromey.com>
4690 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4691 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4693 * configure, config.in: Rebuild.
4695 2019-11-26 Tom Tromey <tom@tromey.com>
4697 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4698 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4699 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4700 * acinclude.m4: Include ax_pthread.m4.
4701 * config.in, configure: Rebuild.
4703 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4705 * debug.c (debug_set_output): Call safe_strerror instead of
4707 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4708 (linux_kill_one_lwp): Likewise.
4709 (linux_detach_one_lwp): Likewise.
4710 (linux_wait_for_event_filtered): Likewise.
4711 (store_register): Likewise.
4712 * lynx-low.c (lynx_attach): Likewise.
4713 * mem-break.c (insert_memory_breakpoint): Likewise.
4714 (remove_memory_breakpoint): Likewise.
4715 (delete_fast_tracepoint_jump): Likewise.
4716 (set_fast_tracepoint_jump): Likewise.
4717 (uninsert_fast_tracepoint_jumps_at): Likewise.
4718 (reinsert_fast_tracepoint_jumps_at): Likewise.
4719 * nto-low.c (nto_xfer_memory): Likewise.
4720 (nto_resume): Likewise.
4722 2019-11-20 Luis Machado <luis.machado@linaro.org>
4724 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4725 instead of register count.
4726 * tdesc.c (tdesc_contains_feature): New function.
4727 * tdesc.h (tdesc_contains_feature): New prototype.
4729 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4731 * Makefile.in: Add safe-strerror.c.
4732 * configure: Regenerate.
4733 * configure.ac: Don't source common.host.
4735 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4737 * config.in: Regenerate.
4738 * configure: Regenerate.
4740 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4742 * ax.c (ax_printf): Handle size_t_arg.
4744 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4746 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4747 * mi/mi-main.c (output_cores): Likewise.
4748 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4749 (linux_xfer_osdata_modules): Likewise.
4750 * remote.c (register_remote_support_xml): Likewise.
4751 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4752 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4754 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4756 * configure: Regenerate.
4757 * configure.ac: Remove check for strerror_r.
4759 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4761 * config.in: Regenerate.
4762 * configure: Regenerate.
4763 * configure.ac: Also check for strerror_r.
4765 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4767 * ax.h (debug_agent): Remove duplicate declaration.
4769 2019-10-26 Tom de Vries <tdevries@suse.de>
4771 * linux-aarch64-low.c: Fix typos in comments.
4772 * linux-arm-low.c: Same.
4773 * linux-low.c: Same.
4774 * linux-ppc-low.c: Same.
4775 * proc-service.c: Same.
4778 * tracepoint.c: Same.
4779 * win32-low.c: Same.
4781 2019-10-25 Tom Tromey <tromey@adacore.com>
4783 * utils.c (xstrdup): Remove.
4785 2019-10-23 Tom Tromey <tom@tromey.com>
4787 * configure, config.in: Rebuild.
4789 2019-10-23 Tom Tromey <tom@tromey.com>
4791 * configure: Rebuild.
4792 * acinclude.m4: Use m4_include, not sinclude.
4794 2019-10-17 Tom Tromey <tromey@adacore.com>
4796 * configure: Rebuild.
4797 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4798 in AC_CONFIG_FILES invocation.
4799 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4802 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4804 * server.c: Include xml-builtin.h.
4805 (get_xml_features): Don't declare xml_builtins here.
4807 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4809 * Makefile.in: Remove references to vec-ipa.o.
4811 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4813 * Makefile.in: Remove references to vec.c.
4815 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4817 * server.c (server_waiting): Change to bool.
4818 (extended_protocol): Likewise.
4819 (response_needed): Likewise.
4820 (exit_requested): Likewise.
4821 (run_once): Likewise.
4822 (report_no_resumed): Likewise.
4823 (non_stop): Likewise.
4824 (disable_packet_vCont): Likewise.
4825 (disable_packet_Tthread): Likewise.
4826 (disable_packet_qC): Likewise.
4827 (disable_packet_qfThreadInfo): Likewise.
4828 (handle_general_set): Update.
4829 (handle_detach): Update.
4830 (handle_monitor_command): Update.
4831 (handle_query): Update.
4832 (captured_main): Update.
4833 (process_serial_event): Update.
4834 * server.h (server_waiting): Change to bool.
4835 (disable_packet_vCont): Likewise.
4836 (disable_packet_Tthread): Likewise.
4837 (disable_packet_qC): Likewise.
4838 (disable_packet_qfThreadInfo): Likewise.
4839 (run_once): Likewise.
4840 (non_stop): Likewise.
4841 * target.c (target_stop_and_wait): Update.
4843 2019-10-02 Tom Tromey <tromey@adacore.com>
4845 * Makefile.in (SFILES): Add common-inferior.c.
4846 (OBS): Add common-inferior.o.
4847 * server.c (startup_with_shell): Don't define.
4849 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4851 * linux-low.c (linux_low_read_btrace): Update for change to
4854 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4856 * debug.c (debug_threads): Remove comment in favor of the header.
4857 * debug.h (using_threads): Add declaration.
4858 (debug_threads): Add comment.
4859 * linux-aarch64-low.c: Include debug.h and remove declaration of
4861 * nto-low.c: Likewise.
4862 * remote-utils.c: Likewise.
4863 * thread-db.c: Likewise.
4865 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4867 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4868 and powerpc-cell64l-ipa.o.
4869 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4870 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4871 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4874 * spu-low.c: Remove file.
4876 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4877 (parse_spufs_run): Remove.
4878 (ppc_get_pc): Remove Cell/B.E. support.
4879 (ppc_set_pc): Likewise.
4880 (ppc_breakpoint_at): Likewise.
4881 (ppc_arch_setup): Likewise.
4882 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4883 tdesc_powerpc_cell32l.
4884 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4885 or init_registers_powerpc_cell32l.
4886 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4887 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4888 or init_registers_powerpc_cell32l.
4889 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4890 (init_registers_powerpc_cell32l): Remove prototype.
4891 (init_registers_powerpc_cell64l): Likewise.
4893 * target.h (struct target_ops): Remove qxfer_spu member.
4894 * server.c (handle_qxfer_spu): Remove.
4895 (qxfer_packets): Remove entry for "spu".
4896 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4897 * linux-low.c (SPUFS_MAGIC): Remove.
4898 (spu_enumerate_spu_ids): Remove.
4899 (linux_qxfer_spu): Remove.
4900 (linux_target_ops): Remove qxfer_spu member.
4901 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
4902 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
4903 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
4905 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
4907 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
4908 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
4909 * config.in: Regenerate.
4910 * configure: Regenerate.
4912 2019-08-15 Tom Tromey <tromey@adacore.com>
4914 * target.c (target_write_memory): Use gdb::byte_vector.
4916 2019-08-15 Tom Tromey <tromey@adacore.com>
4918 * tracepoint.c (write_inferior_data_pointer)
4919 (write_inferior_integer, write_inferior_int8)
4920 (write_inferior_uinteger, m_tracepoint_action_download)
4921 (r_tracepoint_action_download, x_tracepoint_action_download)
4922 (l_tracepoint_action_download, clear_inferior_trace_buffer)
4923 (download_agent_expr, download_tracepoint_1)
4924 (download_trace_state_variables, upload_fast_traceframes): Update.
4925 * server.c (gdb_write_memory): Update.
4926 * remote-utils.c (relocate_instruction): Update.
4927 * proc-service.c (ps_pdwrite): Update.
4928 * mem-break.c (remove_memory_breakpoint)
4929 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
4930 (uninsert_fast_tracepoint_jumps_at)
4931 (reinsert_fast_tracepoint_jumps_at): Update.
4932 * linux-x86-low.c (append_insns)
4933 (i386_install_fast_tracepoint_jump_pad)
4934 (amd64_write_goto_address, i386_write_goto_address): Update.
4935 * linux-s390-low.c (append_insns, s390_write_goto_address):
4937 * linux-ppc-low.c (ppc_relocate_instruction)
4938 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
4939 (ppc_write_goto_address): Update.
4940 * linux-aarch64-low.c (append_insns): Update.
4941 * target.h (struct target_ops): Update.
4942 (write_inferior_memory): Don't declare.
4943 * target.c (target_write_memory): Rename from
4944 write_inferior_memory. Remove old target_write_memory.
4946 2019-08-15 Tom Tromey <tromey@adacore.com>
4948 * target.c (write_inferior_memory): Use std::vector.
4950 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
4953 * configure.ac: Drop enable-libmcheck support.
4954 * configure, config.in: Rebuild.
4955 * acinclude.m4: Don't include it.
4957 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4959 * configure.srv: Remove Arm xml files.
4961 2019-07-19 Alan Hayward <alan.hayward@arm.com>
4963 * configure.srv: Add new files. Remove xml generated files.
4964 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
4966 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
4967 * linux-aarch32-tdesc.c: New file.
4968 * linux-aarch32-tdesc.h: New file.
4969 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
4970 * linux-arm-low.c (init_registers_arm, tdesc_arm)
4971 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
4972 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
4973 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
4974 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
4975 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
4976 (arm_read_description): Call arm_linux_read_description.
4977 (initialize_low_arch): Don't init registers.
4978 * linux-arm-tdesc.c: New file.
4979 * linux-arm-tdesc.h: New file.
4981 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4983 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
4984 Move counter inside for.
4985 (arm_read_description): Check ptrace earlier.
4986 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
4988 2019-07-09 Tom Tromey <tom@tromey.com>
4990 * configure: Rebuild.
4991 * configure.ac: Change common to gdbsupport.
4992 * acinclude.m4: Change common to gdbsupport.
4993 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
4994 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
4995 common to gdbsupport.
4996 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
4997 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
4998 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
4999 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5000 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5001 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5002 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5003 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5004 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5005 common to gdbsupport.
5007 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5009 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5011 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5013 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5015 * configure.srv: Remove legacy xml.
5016 * linux-aarch64-low.c (initialize_low_arch): Remove
5017 initialize_low_tdesc call.
5018 * linux-aarch64-tdesc-selftest.c: Remove file.
5019 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5020 * linux-x86-low.c (initialize_low_arch): Remove
5021 initialize_low_tdesc call.
5022 * linux-x86-tdesc-selftest.c: Remove file.
5023 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5025 2019-06-20 Tom de Vries <tdevries@suse.de>
5027 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5028 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5030 2019-06-19 Tom de Vries <tdevries@suse.de>
5032 * debug.h (debug_write): Change return type to ssize_t.
5033 * debug.c (debug_write): Same.
5035 2019-06-14 Tom Tromey <tom@tromey.com>
5037 * configure.ac: Use new path to gnulib.
5038 * configure: Rebuild.
5039 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5042 2019-06-11 Tom Tromey <tom@tromey.com>
5044 * Makefile.in (SFILES): Add alloc.c.
5046 (IPA_OBJS): Add alloc-ipa.o.
5047 (alloc-ipa.o): New target.
5048 (%.o: ../%.c): New pattern rule.
5050 2019-06-10 Tom Tromey <tromey@adacore.com>
5052 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5053 end warning with a newline.
5054 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5056 * thread-db.c (attach_thread): Don't end warning with a newline.
5057 (thread_db_notice_clone): Likewise.
5058 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5060 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5061 end warning with a newline.
5063 2019-06-04 Pedro Alves <palves@redhat.com>
5065 * server.c (captured_main): Use make_unique_xstrdup.
5067 2019-06-02 Tom Tromey <tom@tromey.com>
5069 * gdbreplay.c (fromhex): Remove.
5070 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5072 2019-05-29 Tom Tromey <tromey@adacore.com>
5074 * configure: Rebuild.
5076 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5078 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5079 sign extension code on 32-bit builds.
5081 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5084 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5086 2019-04-19 Tom Tromey <tom@tromey.com>
5088 * server.c (struct vstop_notif): Derive from notif_event.
5090 (queue_stop_reply): Update.
5091 (remove_all_on_match_ptid): Change type. Rewrite.
5092 (discard_queued_stop_replies): Rewrite.
5093 (in_queued_stop_replies_ptid): Change type.
5094 (in_queued_stop_replies): Rewrite.
5095 (notif_stop): Update.
5096 (queue_stop_reply_callback): Update.
5097 (captured_main): Don't call initialize_notif.
5098 (push_stop_notification): Update.
5099 * notif.c (notif_write_event, handle_notif_ack)
5100 (notif_event_enque, notif_push): Update.
5101 (notif_event_xfree, initialize_notif): Remove.
5102 * notif.h (struct notif_event): Include <list>, not
5104 (struct notif_server) <queue>: Now a std::list.
5105 (notif_event_p): Remove typedef.
5106 (initialize_notif): Don't declare.
5107 (struct notif_event): Add virtual destructor.
5109 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5111 * ax.c (ax_vdebug): Call debug_printf.
5112 * debug.c (debug_write): New function.
5113 * debug.h (debug_write): New declaration.
5114 * linux-low.c (sigchld_handler): Call debug_write.
5116 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5118 * debug.c (debug_set_output): New function.
5119 (debug_vprintf): Send output to debug_file.
5120 (debug_flush): Likewise.
5121 * debug.h (debug_set_output): New declaration.
5122 * server.c (handle_monitor_command): Add debug-file option.
5123 (captured_main): Likewise.
5125 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5127 * debug.c (remote_debug): Add definition.
5128 * debug.h (remote_debug): Add declaration.
5129 * hostio.c (remote_debug): Remove declaration.
5130 * remote-utils.c (struct ui_file): Likewise.
5131 (remote_debug): Likewise.
5132 * remote-utils.h (remote_debug): Likewise,
5133 * server.c (remote_debug): Remove definition.
5135 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5137 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5138 when using a 64-bit gdbserver.
5140 2019-04-09 Tom Tromey <tromey@adacore.com>
5142 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5144 2019-04-08 Tom Tromey <tom@tromey.com>
5146 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5148 (linux_resume_one_lwp): Likewise.
5150 2019-04-08 Tom Tromey <tom@tromey.com>
5152 * gdbreplay.c: Update.
5153 * linux-low.c: Update.
5156 2019-04-08 Tom Tromey <tom@tromey.com>
5158 * server.c: Use C++ exception handling.
5159 * linux-low.c: Use C++ exception handling.
5160 * gdbreplay.c: Use C++ exception handling.
5162 2019-04-08 Tom Tromey <tom@tromey.com>
5164 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5165 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5166 (captured_main, main): Update.
5167 * gdbreplay.c (main): Update.
5169 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5171 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5172 value in argument pointer, return 1 if the entry is found and 0
5173 otherwise. Move comment.
5174 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5175 * linux-low.h (linux_get_auxv): Declare.
5176 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5178 2019-04-05 Tom Tromey <tromey@adacore.com>
5180 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5183 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5185 * linux-low.c (AT_HWCAP2): Add define if not already included.
5187 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5189 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5190 (aarch64_arch_setup): Call linux_get_hwcap.
5191 * linux-arm-low.c (arm_get_hwcap): Remove function.
5192 (arm_read_description): Call linux_get_hwcap.
5193 * linux-low.c (linux_get_auxv): New function.
5194 (linux_get_hwcap): Likewise.
5195 (linux_get_hwcap2): Likewise.
5196 * linux-low.h (linux_get_hwcap): New declaration.
5197 (linux_get_hwcap2): Likewise.
5198 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5199 (ppc_arch_setup): Call linux_get_hwcap.
5200 * linux-s390-low.c (s390_get_hwcap): Remove function.
5201 (s390_arch_setup): Call linux_get_hwcap.
5203 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5204 Jiong Wang <jiong.wang@arm.com>
5206 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5207 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5209 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5211 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5212 Jiong Wang <jiong.wang@arm.com>
5214 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5215 (aarch64_get_hwcap): New function.
5216 (aarch64_arch_setup): Read APIA hwcap.
5218 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5219 Jiong Wang <jiong.wang@arm.com>
5221 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5222 (initialize_low_tracepoint): Likewise.
5223 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5224 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5225 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5226 (aarch64_linux_read_description): Likewise.
5227 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5229 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5231 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5232 i386_create_target_description for 'segments' parameter.
5233 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5234 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5235 * win32-i386-low.c (i386_arch_setup): Likewise.
5237 2019-03-12 Tom Tromey <tromey@adacore.com>
5239 * linux-low.c (iterate_over_lwps): Update.
5241 2019-03-06 Tom Tromey <tom@tromey.com>
5243 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5244 (captured_main): Use SCOPE_EXIT.
5246 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5248 * configure.srv: Use '$enable_unittest' instead of '$development'
5249 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5252 2019-02-27 Tom Tromey <tromey@adacore.com>
5254 * gdbreplay.c (logchar): Handle \r\n.
5256 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5258 * linux-low.c (linux_attach): Add process before lwp.
5259 * server.c (attach_inferior): Check if already attached.
5261 2019-02-07 Tom Tromey <tom@tromey.com>
5263 * x86-tdesc.h: Rename include guard.
5264 * x86-low.h: Add include guard.
5265 * wincecompat.h: Rename include guard.
5266 * win32-low.h: Add include guard.
5267 * utils.h: Rename include guard.
5268 * tracepoint.h: Rename include guard.
5269 * tdesc.h: Rename include guard.
5270 * target.h: Rename include guard.
5271 * server.h: Rename include guard.
5272 * remote-utils.h: Rename include guard.
5273 * regcache.h: Rename include guard.
5274 * nto-low.h: Rename include guard.
5275 * notif.h: Add include guard.
5276 * mem-break.h: Rename include guard.
5277 * lynx-low.h: Add include guard.
5278 * linux-x86-tdesc.h: Add include guard.
5279 * linux-s390-tdesc.h: Add include guard.
5280 * linux-ppc-tdesc-init.h: Add include guard.
5281 * linux-low.h: Add include guard.
5282 * linux-aarch64-tdesc.h: Add include guard.
5283 * linux-aarch32-low.h: Add include guard.
5284 * inferiors.h: Rename include guard.
5285 * i387-fp.h: Rename include guard.
5286 * hostio.h: Rename include guard.
5287 * gdbthread.h: Rename include guard.
5288 * gdb_proc_service.h: Rename include guard.
5289 * event-loop.h: Rename include guard.
5290 * dll.h: Rename include guard.
5291 * debug.h: Rename include guard.
5292 * ax.h: Rename include guard.
5294 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5297 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5298 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5300 2019-01-25 Tom Tromey <tom@tromey.com>
5302 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5304 2019-01-25 Tom Tromey <tom@tromey.com>
5306 * win32-low.c: Fix common/ includes.
5307 * win32-i386-low.c: Fix common/ includes.
5308 * tracepoint.c: Fix common/ includes.
5309 * thread-db.c: Fix common/ includes.
5310 * target.h: Fix common/ includes.
5311 * symbol.c: Fix common/ includes.
5312 * spu-low.c: Fix common/ includes.
5313 * server.h: Fix common/ includes.
5314 * server.c: Fix common/ includes.
5315 * remote-utils.c: Fix common/ includes.
5316 * regcache.h: Fix common/ includes.
5317 * regcache.c: Fix common/ includes.
5318 * nto-x86-low.c: Fix common/ includes.
5319 * notif.h: Fix common/ includes.
5320 * mem-break.h: Fix common/ includes.
5321 * lynx-low.c: Fix common/ includes.
5322 * lynx-i386-low.c: Fix common/ includes.
5323 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5324 * linux-x86-low.c: Fix common/ includes.
5325 * linux-low.c: Fix common/ includes.
5326 * inferiors.h: Fix common/ includes.
5327 * i387-fp.c: Fix common/ includes.
5328 * hostio.c: Fix common/ includes.
5329 * hostio-errno.c: Fix common/ includes.
5330 * gdbthread.h: Fix common/ includes.
5331 * gdbreplay.c: Fix common/ includes.
5332 * fork-child.c: Fix common/ includes.
5333 * event-loop.c: Fix common/ includes.
5335 (enum gdb_agent_op): Fix common/ includes.
5337 2019-01-21 Tom Tromey <tom@tromey.com>
5339 * tracepoint.c: Fix includes.
5340 * remote-utils.c: Fix includes.
5341 * linux-x86-low.c: Fix includes.
5343 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5345 * gdbreplay.c (gdbreplay_version): Update copyright year in
5347 * server.c (gdbserver_version): Likewise.
5349 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5351 * linux-low.c (add_lwp): Switch ordering.
5353 2018-11-29 Tom Tromey <tom@tromey.com>
5355 * win32-low.c (win32_join): Take pid, not process.
5356 * target.h (struct target_ops) <join>: Change argument type.
5357 (join_inferior): Change argument name.
5358 * spu-low.c (spu_join): Take pid, not process.
5359 * server.c (handle_detach): Preserve pid before destroying
5361 * lynx-low.c (lynx_join): Take pid, not process.
5362 * linux-low.c (linux_join): Take pid, not process.
5364 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5366 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5367 (aarch64_cannot_fetch_register): Likewise.
5368 (struct linux_target_ops): Update references.
5370 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5372 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5374 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5376 * configure.srv (ipa_ppc_linux_regobj): Add
5377 powerpc-isa207-htm-vsx32l-ipa.o and
5378 powerpc-isa207-htm-vsx64l-ipa.o.
5379 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5380 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5381 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5382 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5383 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5384 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5385 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5386 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5387 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5388 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5389 (init_registers_powerpc_isa207_htm_vsx32l)
5390 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5391 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5392 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5393 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5394 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5395 (ppc_store_tm_ctarregset): New functions.
5396 (ppc_regsets): Add entries for HTM regsets.
5397 (ppc_arch_setup): Set htm in features struct when needed. Set
5398 sizes for the HTM regsets.
5399 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5400 (initialize_low_arch): Call
5401 init_registers_powerpc_isa207_htm_vsx32l and
5402 init_registers_powerpc_isa207_htm_vsx64l.
5403 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5404 PPC_TDESC_ISA207_HTM_VSX.
5405 (initialize_low_tracepoint): Call
5406 init_registers_powerpc_isa207_htm_vsx32l and
5407 init_registers_powerpc_isa207_htm_vsx64l.
5409 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5411 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5412 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5413 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5414 (ppc_store_pmuregset): New functions.
5415 (ppc_regsets): Add entries for ebb and pmu regsets.
5416 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5417 pmu regsets are available. Set sizes for these regsets.
5419 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5421 * configure.srv (ipa_ppc_linux_regobj): Add
5422 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5423 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5424 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5425 rs6000/powerpc-isa207-vsx32l.xml, and
5426 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5427 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5428 <PPC_TDESC_ISA207_VSX>: New enum value.
5429 (init_registers_powerpc_isa207_vsx32l): Declare.
5430 (init_registers_powerpc_isa207_vsx64l): Declare.
5431 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5432 (ppc_store_tarregset): New function.
5433 (ppc_regsets): Add entry for the TAR regset.
5434 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5435 size for the TAR regsets.
5436 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5437 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5438 and init_registers_powerpc_isa207_vsx64l.
5439 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5440 (initialize_low_tracepoint): Call
5441 init_registers_powerpc_isa207_vsx32l and
5442 init_registers_powerpc_isa207_vsx64l.
5444 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5445 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5447 * configure.srv (ipa_ppc_linux_regobj): Add
5448 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5449 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5450 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5451 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5452 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5453 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5454 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5455 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5456 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5457 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5458 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5459 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5460 (ppc_hwcap): Add comment.
5461 (ppc_hwcap2): New global.
5462 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5463 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5464 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5465 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5466 when needed. Set sizes for the the DSCR and PPR regsets.
5467 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5468 (initialize_low_arch): Call
5469 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5470 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5471 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5472 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5473 (initialize_low_tracepoint): Call
5474 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5475 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5477 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5479 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5481 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5482 Simon Marchi <simark@simark.ca>
5484 * acinclude.m4: Include "../selftest.m4".
5485 * configure: Regenerate.
5486 * configure.ac: Use "GDB_AC_SELFTEST".
5487 * configure.srv: Use "$enable_unittests" instead of
5488 "$development" when checking whether unit tests have been
5490 * server.c (captured_main): Update message informing that
5491 selftests have been disabled.
5493 2018-10-04 Tom Tromey <tom@tromey.com>
5495 * configure: Rebuild.
5497 2018-10-04 Tom Tromey <tom@tromey.com>
5499 * server.c (handle_status): Rename inner "thread".
5500 (process_serial_event): Declare "res" in 'm' case.
5501 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5502 (iterate_over_lwps): Rename inner "thread".
5503 (linux_qxfer_libraries_svr4): Rename inner "len".
5504 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5506 2018-10-01 Gary Benson <gbenson@redhat.com>
5508 * gdb_proc_service.h: Moved common code to
5509 common/gdb_proc_service.h.
5511 2018-10-01 Gary Benson <gbenson@redhat.com>
5513 * gdb_proc_service.h: Synchronize comments and whitespace with
5514 GDB's version of this file.
5516 2018-09-25 Tom Tromey <tom@tromey.com>
5518 * configure: Rebuild.
5519 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5521 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5523 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5524 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5525 ($(IPA_LIB)): Sort IPA_OBJS.
5527 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5529 * Makefile.in: Remove references to $(ADD_DEPS).
5531 2018-09-16 Tom Tromey <tom@tromey.com>
5533 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5535 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5538 2018-09-05 Tom Tromey <tom@tromey.com>
5540 * configure: Rebuild.
5542 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5545 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5547 2018-08-27 Tom Tromey <tom@tromey.com>
5550 * configure: Rebuild.
5552 2018-08-27 Tom Tromey <tom@tromey.com>
5554 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5555 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5556 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5557 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5558 (s390x_emit_stack_adjust): Add casts to unsigned char.
5560 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5564 * server.h (struct client_state) <disable_randomization>:
5567 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5569 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5571 (mips_supply_ptrace_register): Likewise.
5573 2018-07-22 Tom Tromey <tom@tromey.com>
5575 * configure: Rebuild.
5577 2018-07-22 Tom Tromey <tom@tromey.com>
5579 * win32-low.c (win32_create_inferior): Remove unused variables.
5580 * gdbreplay.c (remote_open): Remove unused variable.
5581 * remote-utils.c (remote_prepare): Remove unused variable.
5582 * x86-tdesc.h (X86_TDESC_H): Define.
5583 (amd64_expedite_regs): Define conditionally.
5584 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5585 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5586 * remote-utils.c (readchar): Remove unused variable.
5588 2018-07-13 Pedro Alves <palves@redhat.com>
5590 * linux-low.c (linux_kill): Change parameter to process_info
5591 pointer instead of pid. Adjust.
5592 * lynx-low.c (lynx_kill): Likewise.
5593 * nto-low.c (nto_kill): Likewise.
5594 * spu-low.c (spu_kill): Likewise.
5595 * win32-low.c (win32_kill): Likewise.
5596 * server.c (handle_v_kill, kill_inferior_callback)
5597 (detach_or_kill_for_exit): Adjust.
5598 * target.c (kill_inferior): Change parameter to process_info
5599 pointer instead of pid. Adjust.
5600 * target.h (struct target_ops) <kill>: Change parameter to
5601 process_info pointer instead of pid. Adjust all implementations
5603 (kill_inferior): Likewise.
5605 2018-07-13 Pedro Alves <palves@redhat.com>
5607 * linux-low.c (linux_detach, linux_join): Change parameter to
5608 process_info pointer instead of pid. Adjust.
5609 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5610 * nto-low.c (nto_detach): Likewise.
5611 * spu-low.c (spu_detach, spu_join): Likewise.
5612 * win32-low.c (win32_detach, win32_join): Likewise.
5613 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5614 * target.h (struct target_ops) <detach, join>: Change parameter to
5615 process_info pointer instead of pid. Adjust all implementations
5617 (detach_inferior, join_inferior): Rename 'pid' parameter to
5620 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5621 Jan Kratochvil <jan.kratochvil@redhat.com>
5622 Paul Fertser <fercerpav@gmail.com>
5623 Tsutomu Seki <sekiriki@gmail.com>
5625 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5626 (OBS): Add 'common/netstuff.o'.
5627 (GDBREPLAY_OBS): Likewise.
5628 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5629 (remote_open): Implement support for IPv6
5631 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5633 (handle_accept_event): Accept connections from IPv6 sources.
5634 (remote_prepare): Handle IPv6-style hostnames; implement
5635 support for IPv6 connections.
5636 (remote_open): Implement support for printing connections from
5639 2018-07-11 Pedro Alves <palves@redhat.com>
5642 * mem-break.c (any_persistent_commands): Add process_info
5643 parameter and use it instead of relying on the current process.
5644 Change return type to bool.
5645 * mem-break.h (any_persistent_commands): Add process_info
5646 parameter and change return type to bool.
5647 * server.c (handle_detach): Remove require_running_or_return call.
5648 Look up the process_info for the process we're about to detach.
5649 If not found, return back error to GDB. Adjust
5650 any_persistent_commands call to pass down a process pointer.
5652 2018-07-11 Pedro Alves <palves@redhat.com>
5654 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5655 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5656 instead of collect_register_by_name.
5657 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5658 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5660 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5661 Pedro Alves <palves@redhat.com>
5663 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5665 2018-07-03 Tom Tromey <tom@tromey.com>
5667 * linux-low.c: Update.
5668 * lynx-low.c: Update.
5669 * mem-break.c: Update.
5670 * nto-low.c: Update.
5671 * remote-utils.c: Update.
5673 * spu-low.c: Update.
5675 * win32-low.c: Update.
5677 2018-07-03 Tom Tromey <tom@tromey.com>
5681 2018-07-03 Tom Tromey <tom@tromey.com>
5683 * linux-low.c: Update.
5685 2018-07-03 Tom Tromey <tom@tromey.com>
5689 2018-07-03 Tom Tromey <tom@tromey.com>
5691 * linux-low.c: Update.
5692 * linux-mips-low.c: Update.
5693 * lynx-low.c: Update.
5694 * nto-low.c: Update.
5695 * remote-utils.c: Update.
5697 * spu-low.c: Update.
5699 * thread-db.c: Update.
5701 2018-07-03 Tom Tromey <tom@tromey.com>
5703 * linux-low.c: Update.
5704 * linux-mips-low.c: Update.
5705 * lynx-low.c: Update.
5706 * mem-break.c: Update.
5707 * nto-low.c: Update.
5708 * remote-utils.c: Update.
5710 * spu-low.c: Update.
5712 * tracepoint.c: Update.
5714 2018-07-03 Tom Tromey <tom@tromey.com>
5716 * linux-low.c: Update.
5717 * linux-ppc-low.c: Update.
5718 * linux-x86-low.c: Update.
5719 * proc-service.c: Update.
5721 * spu-low.c: Update.
5722 * thread-db.c: Update.
5723 * win32-low.c: Update.
5725 2018-07-03 Tom Tromey <tom@tromey.com>
5727 * linux-low.c: Update.
5728 * lynx-low.c: Update.
5729 * nto-low.c: Update.
5730 * remote-utils.c: Update.
5731 * spu-low.c: Update.
5732 * thread-db.c: Update.
5733 * win32-low.c: Update.
5735 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5737 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5738 parameter in call to 'amd64_create_target_description'.
5740 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5742 * x86-tdesc.h: Remove executable permission flag.
5744 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5746 * configure.ac: Remove AC_PREREQ, add missing quoting.
5747 * configure: Re-generate.
5748 * config.in: Re-generate.
5749 * aclocal.m4: Re-generate.
5751 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5753 * tracepoint.h (current_traceframe): Remove declaration.
5755 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5757 * linux-aarch64-low.c (is_sve_tdesc): New function.
5758 (aarch64_sve_regs_copy_to_regcache): Likewise.
5759 (aarch64_sve_regs_copy_from_regcache): Likewise.
5760 (aarch64_regs_info): Add SVE checks.
5761 (initialize_low_arch): Initialize SVE.
5763 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5765 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5767 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5769 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5770 (initialize_low_tracepoint): Likewise
5771 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5772 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5774 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5776 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5778 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5780 * server.h (PBUFSIZ): Increase size
5782 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5784 * regcache.c (regcache::raw_compare): New function.
5785 * regcache.h (regcache::raw_compare): New declaration.
5787 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5789 * regcache.c (new_register_cache): Use new.
5790 (free_register_cache): Use delete.
5791 (register_data): Use const.
5792 (supply_register): Move body inside regcache.
5793 (regcache::raw_supply): New override function.
5794 (collect_register): Move body inside regcache.
5795 (regcache::raw_collect): New override function.
5796 (regcache::get_register_status): New override function.
5797 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5799 2018-06-09 Tom Tromey <tom@tromey.com>
5801 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5803 (event_queue): Use std::queue.
5804 (gdb_event_xfree): Remove.
5805 (initialize_event_loop, process_event, wait_for_event): Update.
5807 2018-06-08 Stan Cox <scox@redhat.com>
5809 * win32-low.c (win32_create_inferior): last_ptid and last_status
5810 moved to client_state.
5812 2018-06-08 Pedro Alves <palves@redhat.com>
5814 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5815 common/common-exceptions.o, common/common-utils.o,
5816 common/errors.o, common/print-utils.o and utils.o.
5817 * gdbreplay.c: Include "common-defs.h" instead of the two
5818 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5819 string.h or alloca.h.
5820 (perror_with_name): Delete.
5821 (remote_open): Use xstrdup instead of strdup.
5822 (main): Rename to ...
5823 (captured_main): ... this.
5826 2018-06-08 Tom Tromey <tom@tromey.com>
5828 * linux-low.c (linux_low_read_btrace): Update.
5830 2018-06-04 Stan Cox <scox@redhat.com>
5832 * server.h (struct client_state): New.
5833 * server.c (cont_thread, general_thread, multi_process)
5834 (report_fork_events, report_vfork_events, report_exec_events)
5835 (report_thread_events, swbreak_feature, hwbreak_feature)
5836 (vCont_supported, disable_randomization, pass_signals)
5837 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5838 Moved to client_state.
5839 * remote-utils.c (remote_debug, noack_mode)
5840 (transport_is_reliable): Moved to client_state.
5841 * tracepoint.c (current_traceframe): Moved to client_state.
5844 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5845 linux-low.c, remote-utils.h, target.c: Use client_state.
5847 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5849 * configure.srv: Add new c/h file.
5851 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5853 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5856 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5858 * gdb.arch/mips-fpregset-core.exp: New test.
5859 * gdb.arch/mips-fpregset-core.c: New test source.
5861 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5864 * hostio.c (require_int): Do not report overflow for integers
5865 between 0xfffffff and 0x7fffffff.
5867 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5869 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5870 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5871 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5873 (the_low_target): Wire them.
5875 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5877 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5878 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5879 mode. Call collect_register_by_name with vscr using
5880 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5881 (ppc_store_vrregset): Add and set vscr_offset variable as in
5882 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5885 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5887 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5888 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5889 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5891 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5893 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5894 (ppc_store_vsxregset): Likewise.
5895 (ppc_fill_vrregset): Likewise.
5896 (ppc_store_vrregset): Likewise.
5897 (ppc_fill_evrregset): Likewise.
5898 (ppc_store_evrregset): Likewise.
5899 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5900 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
5903 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5905 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
5906 wordsize of the inferior. Call ppc_linux_target_wordsize.
5908 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5910 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
5911 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
5912 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
5913 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
5914 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
5915 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
5916 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
5917 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
5918 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
5919 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
5920 (tdesc_powerpc_e500l): Remove.
5921 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
5922 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
5923 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
5924 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
5926 (ppc_arch_setup): Remove target description matching code. Fill a
5927 ppc_linux_features struct and call ppc_linux_match_description
5930 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5932 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
5933 width of the requested register exceeds the width of the
5935 (mips_cannot_store_register): Likewise.
5937 2018-05-21 Maciej W. Rozycki <macro@mips.com>
5939 * linux-mips-low.c (mips_fetch_register): New function. Update
5941 (mips_store_gregset): Supply 0 rather than $restart for $zero.
5942 (the_low_target): Wire `mips_fetch_register'.
5944 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5946 * lynx-i386-low.c (LYNXOS_178): New macro.
5947 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
5948 the layout on LynxOS-178.
5949 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
5950 handle floating point registers that are not supported by
5953 2018-05-10 Tom Tromey <tom@tromey.com>
5955 * configure: Rebuild.
5957 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5960 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
5961 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
5962 Use it to set the expedite_regs field in the given tdesc.
5963 * x86-tdesc.h: New file.
5964 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
5965 Adjust following the addition of the new expedite_regs parameter
5966 to init_target_desc.
5967 * linux-tic6x-low.c (tic6x_read_description): Likewise.
5968 * linux-x86-tdesc.c: #include "x86-tdesc.h".
5969 (i386_linux_read_description, amd64_linux_read_description):
5970 Adjust following the addition of the new expedite_regs parameter
5971 to init_target_desc.
5972 * lynx-i386-low.c: #include "x86-tdesc.h".
5973 (lynx_i386_arch_setup): Adjust following the addition of the new
5974 expedite_regs parameter to init_target_desc.
5975 * nto-x86-low.c: #include "x86-tdesc.h".
5976 (nto_x86_arch_setup): Adjust following the addition of the new
5977 expedite_regs parameter to init_target_desc.
5978 * win32-i386-low.c: #include "x86-tdesc.h".
5979 (i386_arch_setup): Adjust following the addition of the new
5980 expedite_regs parameter to init_target_desc.
5982 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5985 * win32-low.c (win32_create_inferior): Add call to my_wait
5986 setting last_status global.
5988 2018-05-10 Joel Brobecker <brobecker@adacore.com>
5991 * win32-low.c (create_process): Only call gdb_tilde_expand if
5992 inferior_cwd is not NULL.
5994 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
5996 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
5997 registers to the cache if their values have changed.
5998 (i387_xsave_to_cache): Provide default values for x87 control
5999 registers when these features are available, but disabled.
6000 * regcache.c (supply_register_by_name_zeroed): New function.
6001 * regcache.h (supply_register_by_name_zeroed): Declare new
6004 2018-05-07 Tom Tromey <tom@tromey.com>
6006 * configure: Rebuild.
6008 2018-05-04 Tom Tromey <tom@tromey.com>
6010 * configure: Rebuild.
6012 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6013 Pedro Alves <palves@redhat.com>
6015 * linux-aarch64-low.c (aarch64_stopped_data_address):
6018 2018-04-27 Tom Tromey <tom@tromey.com>
6020 * configure: Rebuild.
6022 2018-04-23 Tom Tromey <tom@tromey.com>
6024 * configure: Rebuild.
6026 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6028 * Makefile.in (depcomp): Add "..".
6029 (all_deps_files): New and use it.
6031 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6033 * configure.srv (aarch64*-*-linux*): Don't include xml.
6034 (i[34567]86-*-cygwin*): Likewise.
6035 (i[34567]86-*-linux*): Likewise.
6036 (i[34567]86-*-lynxos*): Likewise.
6037 (i[34567]86-*-mingw32ce*): Likewise.
6038 (i[34567]86-*-mingw*): Likewise.
6039 (i[34567]86-*-nto*): Likewise.
6040 (tic6x-*-uclinux): Likewise.
6041 (x86_64-*-linux*): Likewise.
6042 (x86_64-*-mingw*): Likewise.
6043 (x86_64-*-cygwin*): Likewise.
6045 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6047 * tdesc.c: Remove xml parameter.
6049 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6051 * server.c (get_features_xml): Remove cast.
6052 * tdesc.c (void target_desc::accept): Fill in function.
6053 (tdesc_get_features_xml): Remove old xml creation.
6054 (print_xml_feature::visit_pre): Add xml vistor.
6055 * tdesc.h (struct target_desc): Make xmltarget mutable.
6056 (tdesc_get_features_xml): Remove declaration.
6058 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6060 * tdesc.c (tdesc_architecture_name): Add new function.
6061 (tdesc_osabi_name): Likewise.
6062 (tdesc_get_features_xml): Use new functions.
6064 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6066 * tdesc.c (tdesc_create_flags): Remove.
6067 (tdesc_add_flag): Likewise.
6068 (tdesc_named_type): Likewise.
6069 (tdesc_create_union): Likewise.
6070 (tdesc_create_struct): Likewise.
6071 (tdesc_create_vector): Likewise.
6072 (tdesc_add_bitfield): Likewise.
6073 (tdesc_add_field): Likewise.
6074 (tdesc_set_struct_size): Likewise.
6076 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6078 * tdesc.c (~target_desc): Remove implictly deleted items.
6079 (init_target_desc): Iterate all features.
6080 (tdesc_get_features_xml): Use vector.
6081 (tdesc_create_feature): Create feature.
6082 * tdesc.h (tdesc_feature) Remove
6083 (target_desc): Add features.
6085 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6087 * Makefile.in: Add common/tdesc.c
6088 * tdesc.c (init_target_desc): init all reg_defs from register
6090 (tdesc_create_reg): Create tdesc_reg.
6091 * tdesc.h (tdesc_feature): Add register vector.
6093 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6095 * tdesc.h (struct target_desc) <features>: Change type to
6096 std::vector<std::string>.
6097 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6099 (tdesc_get_features_xml): Likewise.
6100 (tdesc_create_feature): Likewise.
6102 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6104 * regcache.c (find_register_by_number): Return a ref.
6105 (find_regno): Use references.
6106 (register_size): Likewise.
6107 (register_data): Likewise.
6108 * tdesc.c (target_desc::~target_desc): Remove free calls.
6109 (target_desc::operator==): Use std::vector compare.
6110 (init_target_desc): Use reference.
6111 (tdesc_create_reg): Use reg constructors.
6112 * tdesc.h (struct target_desc): Replace pointer with object.
6114 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6116 * regcache.c (find_register_by_number): Make static.
6117 (find_regno): Use find_register_by_number
6118 * regcache.h (struct reg): Remove declaration.
6120 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6122 * tdesc.c (target_desc::~target_desc): Move to here.
6123 (target_desc::operator==): Likewise.
6124 * tdesc.h (target_desc::~target_desc): Move from here.
6125 (target_desc::operator==): Likewise.
6127 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6129 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6131 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6133 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6135 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6136 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6137 and init_registers_s390_gs_linux64.
6139 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6141 * linux-s390-low.c (s390_fill_gs): Remove function.
6142 (s390_fill_gsbc): Remove function.
6143 (s390_regsets): Set fill functions for the guarded storage regsets
6146 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6148 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6149 the word size. Add comment.
6150 (s390_get_wordsize): New function.
6151 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6152 pswm with it. Instead, use s390_get_wordsize to determine the
6153 word size first and derive the correct tdesc from that directly.
6155 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6157 * Makefile.in: Include silent-rules.mk.
6158 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6159 (COMPILE): Add ECHO_CXX.
6160 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6161 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6162 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6163 (version-generated.c): Add ECHO_GEN.
6164 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6165 (IPAGENT_COMPILE): Add ECHO_CXX.
6166 (%-generated.c): Add ECHO_REGDAT.
6168 2018-03-14 Tom Tromey <tom@tromey.com>
6171 * ax.c (ax_printf): Special case for NULL.
6173 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6175 * linux-low.c (linux_qxfer_libraries_svr4): Use
6176 xml_escape_text_append.
6178 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6180 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6182 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6184 * server.c (handle_general_set): Remove unnecessary xstrdup.
6186 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6188 * server.c (parse_debug_format_options): Adjust to
6189 delim_string_to_char_ptr_vec changes.
6190 * thread-db.c (thread_db_load_search): Adjust to
6191 dirnames_to_char_ptr_vec changes.
6193 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6195 * target.h (target_enable_btrace, target_disable_btrace)
6196 (target_read_btrace, target_read_btrace_conf): Turn macro into
6197 inline function. Throw error if target method is not defined.
6198 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6199 check for btrace target method. Be prepared to handle exceptions
6200 from btrace target methods.
6202 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6204 * server.c (captured_main): Change order of error message printed
6205 when the current working directory cannot be found.
6207 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6209 * server.c: Include "filenames.h" and "pathstuff.h".
6210 (program_name): Delete variable.
6211 (program_path): New anonymous class.
6212 (get_exec_wrapper): Use "program_path" instead of
6214 (handle_v_run): Likewise.
6215 (captured_main): Likewise.
6216 (process_serial_event): Likewise.
6218 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6220 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6221 (OBJS): Add "pathstuff.o".
6222 * server.c (current_directory): New global variable.
6223 (captured_main): Initialize "current_directory".
6225 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6227 * tdesc.c: Use common/tdesc.h.
6228 * tdesc.h: Likewise.
6230 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6231 Simon Marchi <simon.marchi@ericsson.com>
6233 * Makefile.in: Switch order of make rules.
6235 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6237 * Makefile.in: Add common directory in build.
6238 * configure.ac: Add common reference.
6239 * configure: Regenerate.
6241 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6243 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6244 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6245 * spu-low.c (spu_target_ops): Likewise.
6246 * win32-low.c (win32_target_ops): Likewise.
6247 * server.c (supported_btrace_packets): Report packets unconditionally.
6248 * target.h (target_ops) <supports_btrace>: Remove.
6249 (target_supports_btrace): Remove.
6251 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6253 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6254 (handle_btrace_disable): Change return type to void. Use exceptions
6256 (handle_btrace_general_set): Catch exception and copy message to
6259 2018-02-08 Tom Tromey <tom@tromey.com>
6261 * linux-low.c (install_software_single_step_breakpoints): Use
6262 make_scoped_restore.
6263 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6264 (do_restore_current_thread_cleanup): Remove.
6265 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6268 2018-02-08 Tom Tromey <tom@tromey.com>
6270 * mem-break.c (set_raw_breakpoint_at): Use
6271 gdb::unique_xmalloc_ptr.
6273 2018-01-30 Pedro Alves <palves@redhat.com>
6276 * target.c (target_terminal::terminal_state): Rename to ...
6277 (target_terminal::m_terminal_state): ... this.
6279 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6281 * linux-low.c (handle_extended_wait): Surround call to
6282 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6284 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6286 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6287 linux_ptrace_attach_fail_reason_string now returning an
6289 (linux_attach): Likewise.
6290 * thread-db.c (attach_thread): Likewise.
6292 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6295 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6296 checking for fs_base/gs_base fields in struct user_regs_struct.
6297 * configure: Regenerate.
6299 2018-01-16 Yao Qi <yao.qi@linaro.org>
6302 * linux-low.c (fetch_register): Call supply_register instead of
6305 2018-01-08 Yao Qi <yao.qi@linaro.org>
6306 Simon Marchi <simon.marchi@ericsson.com>
6308 * Makefile.in (OBS): Remove selftest.o.
6309 * configure.ac: Set srv_selftest_objs if $development is true.
6310 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6311 * configure: Re-generated.
6312 * server.c (captured_main): Wrap variable selftest_filter with
6315 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6317 * server.c (parse_debug_format_options): Return std::string.
6318 (handle_monitor_command, captured_main): Adjust.
6320 2018-01-05 Pedro Alves <palves@redhat.com>
6323 * server.c (captured_main): Pass quiet=false to
6324 save_original_signals_state.
6326 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6328 * gdbreplay.c (gdbreplay_version): Update copyright year in
6330 * server.c (gdbserver_version): Likewise.
6332 2017-12-08 Tom Tromey <tom@tromey.com>
6334 * ax.c (ax_printf): Update.
6336 2017-12-07 Yao Qi <yao.qi@linaro.org>
6338 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6339 aarch64_linux_read_description.
6340 * linux-amd64-ipa.c (idx2mask): New array.
6341 (get_ipa_tdesc): Move idx2mask out.
6342 (initialize_low_tracepoint): Initialize target descriptions.
6343 * linux-i386-ipa.c (idx2mask): New array.
6344 (get_ipa_tdesc): Move idx2mask out.
6345 (initialize_low_tracepoint): Initialize target descriptions.
6347 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6349 * tdesc.c (struct tdesc_type): Change return type.
6350 (tdesc_add_flag): Change parameter type.
6351 (tdesc_add_bitfield): Likewise.
6352 (tdesc_add_field): Likewise.
6353 (tdesc_set_struct_size): Likewise.
6355 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6357 * regcache.c (registers_to_string): Remove unused variable.
6359 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6361 * inferiors.c (for_each_inferior_with_data): Remove.
6362 * inferiors.h (for_each_inferior_with_data): Remove.
6363 * server.c (handle_qxfer_threads_worker): Change parameter type.
6364 (handle_qxfer_threads_proper): Use for_each_thread.
6366 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6368 * inferiors.c (for_each_inferior): Remove.
6369 (clear_inferiors): Use for_each_thread.
6370 * inferiors.h (for_each_inferior): Remove.
6371 * linux-low.c (linux_wait_for_event_filtered): Use
6373 (linux_stabilize_threads): Likewise.
6374 * regcache.c (regcache_release): Likewise.
6375 * server.c (gdb_wants_all_threads_stopped): Likewise.
6376 (clear_pending_status_callback): Remove.
6377 (handle_status): Use for_each_thread.
6378 (captured_main): Likewise.
6379 * win32-low.c (child_init_thread_list): Likewise.
6380 (win32_clear_inferiors): Likewise.
6381 (fake_breakpoint_event): Likewise.
6383 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6385 * inferiors.h (find_inferior): Remove.
6386 * inferiors.c (find_inferior): Remove.
6388 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6390 * linux-low.c (resume_status_pending_p): Update comment.
6391 (need_step_over_p): Update comment.
6393 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6395 * linux-low.c (proceed_one_lwp): Return void, change parameter
6397 (unsuspend_and_proceed_one_lwp): Likewise.
6398 (proceed_all_lwps): Use for_each_thread.
6399 (unstop_all_lwps): Likewise.
6401 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6403 * linux-low.c (linux_resume_one_thread): Return void, take
6405 (linux_resume): Use for_each_thread.
6407 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6409 * linux-low.c (send_sigstop_callback): Return void, change
6410 parameter type. Rename to...
6411 (send_sigstop): ... this.
6412 (suspend_and_send_sigstop_callback): Return void, change parameter
6414 (suspend_and_send_sigstop): ... this.
6415 (stop_all_lwps): Use for_each_thread.
6417 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6419 * linux-low.c (lwp_running): Return bool, remove unused
6421 (linux_stabilize_threads): Use find_thread.
6423 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6425 * linux-low.c (select_singlestep_lwp_callback): Remove.
6426 (count_events_callback): Remove.
6427 (select_event_lwp_callback): Remove.
6428 (select_event_lwp): Use find_thread/for_each_thread.
6430 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6432 * linux-low.c (not_stopped_callback): Return bool, take filter
6434 (linux_wait_for_event_filtered): Use find_thread.
6435 (linux_wait_1): Likewise.
6437 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6439 * linux-low.c (same_lwp): Remove.
6440 (find_lwp_pid): Use find_thread.
6442 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6444 * linux-low.c (delete_lwp_callback): Remove.
6445 (linux_mourn): Use for_each_thread.
6447 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6449 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6450 args parameter, don't check for pid.
6451 (linux_detach): Use for_each_thread.
6453 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6455 * linux-low.c (struct counter): Remove.
6456 (second_thread_of_pid_p): Remove.
6457 (last_thread_of_process_p): Use find_thread.
6459 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6461 * inferiors.c (find_inferior_in_random): Remove.
6462 * inferiors.h (find_inferior_in_random): Remove.
6463 * linux-low.c (status_pending_p_callback): Return bool, accept
6464 parameter ptid directly.
6465 (linux_wait_for_event_filtered): Use find_thread_in_random.
6466 (linux_wait_1): Likewise.
6468 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6470 * inferiors.c (find_inferior_id): Remove.
6471 (find_thread_ptid): Move implemention from find_inferior_id to
6473 * inferiors.h (find_inferior_id): Remove.
6474 * server.c (handle_status): Use find_thread_ptid.
6475 (process_serial_event): Likewise.
6476 * thread-db.c (find_one_thread): Likewise.
6477 (thread_db_thread_handle): Likewise.
6478 * win32-low.c (thread_rec): Likewise.
6479 (child_delete_thread): Likewise.
6480 (win32_thread_alive): Likewise.
6481 (get_child_debug_event): Likewise.
6483 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6485 * linux-mips-low.c (update_watch_registers_callback): Return
6486 void, remove pid_p parameter, don't check for pid.
6487 (mips_insert_point, mips_remove_point): Use for_each_thread.
6489 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6491 * lynx.low (lynx_delete_thread_callback): Remove.
6492 (lynx_mourn): Use for_each_thread.
6494 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6496 * regcache.c (regcache_invalidate_one): Remove.
6497 (regcache_invalidate_pid): use for_each_thread.
6499 2017-11-26 Tom Tromey <tom@tromey.com>
6501 * linux-low.c (linux_create_inferior): Update.
6503 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6505 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6507 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6509 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6510 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6511 * linux-aarch64-tdesc-selftest.c: New file.
6512 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6514 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6516 * configure.srv: Add new file.
6517 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6518 * linux-aarch64-tdesc-selftest.c: New file.
6519 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6521 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6523 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6524 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6525 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6527 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6529 * configure.srv: Add new files.
6530 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6531 aarch64_linux_read_description.
6532 * linux-aarch64-low.c (aarch64_linux_read_description):
6533 Merge with aarch64_arch_setup.
6534 (aarch64_arch_setup): Call aarch64_linux_read_description.
6535 * linux-aarch64-tdesc.c: New file.
6536 * linux-aarch64-tdesc.h: New file.
6538 2017-11-24 Yao Qi <yao.qi@linaro.org>
6540 * configure.srv: Set $srv_regobj for tic6x-linux.
6541 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6542 (tic6x_read_description): Move some code to tic6x_arch_setup.
6543 (tic6x_tdesc_test): New function.
6544 (initialize_low_arch): Call selftests::register_test.
6546 2017-11-22 Yao Qi <yao.qi@linaro.org>
6548 * remote-utils.c (prepare_resume_reply): Use memcpy.
6550 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6552 * linux-low.c (kill_one_lwp_callback): Return void, take
6553 argument directly, don't filter on pid.
6554 (linux_kill): Use for_each_thread.
6556 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6558 * linux-low.c (need_step_over_p): Return bool, remove dummy
6560 (linux_resume, proceed_all_lwps): Use find_thread.
6562 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6564 * linux-low.c (resume_status_pending_p): Return bool, remove
6566 (linux_resume): Use find_thread.
6568 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6570 * linux-low.c (struct thread_resume_array): Remove.
6571 (linux_set_resume_request): Return void, take arguments
6573 (linux_resume): Use for_each_thread.
6575 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6577 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6578 return bool, remove data argument.
6579 (linux_stabilize_threads): Use find_thread.
6581 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6583 * linux-low.c (unsuspend_one_lwp): Remove.
6584 (unsuspend_all_lwps): Use for_each_thread, inline code from
6587 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6589 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6590 * linux-low.c (struct iterate_over_lwps_args): Remove.
6591 (iterate_over_lwps_filter): Remove.
6592 (iterate_over_lwps): Use find_thread.
6594 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6596 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6597 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6598 code from reset_lwp_ptrace_options_callback.
6600 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6602 * linux-arm-low.c (struct update_registers_data): Remove.
6603 (update_registers_callback): Return void, take arguments
6604 directly, don't check thread's pid.
6605 (arm_insert_point, arm_remove_point): Use for_each_thread.
6607 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6609 * win32-low.c (continue_one_thread): Return void, take argument
6611 (child_continue): Use for_each_thread.
6613 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6615 * win32-i386-low.c (update_debug_registers_callback): Rename
6617 (update_debug_registers): ... this, return void, remove pid_p arg.
6618 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6620 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6622 * inferiors.h (struct process_info): Add constructor, initialize
6624 <syscalls_to_catch>: Change type to std::vector<int>.
6625 * inferiors.c (add_process): Allocate process_info with new.
6626 (remove_process): Free process_info with delete.
6627 * linux-low.c (handle_extended_wait): Adjust.
6628 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6629 * server.c (handle_general_set): Adjust.
6631 2017-11-16 Pedro Alves <palves@redhat.com>
6633 * remote-utils.c (remote_close): Block SIGIO signals instead of
6634 uninstalling the SIGIO handler.
6636 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6638 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6640 2017-11-16 Yao Qi <yao.qi@linaro.org>
6642 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6643 (tic6x_store_gregset): Likewise.
6644 (tic6x_usrregs_info): Move it up.
6646 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6648 * Makefile.in: Update arch rules.
6649 * configure.srv: Explicitly mark arch/ files.
6651 2017-11-13 Andreas Schwab <schwab@suse.de>
6653 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6655 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6657 2017-11-06 Pedro Alves <palves@redhat.com>
6659 * config.in, configure: Regenerate.
6661 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6663 * target.c (struct thread_search): Remove.
6664 (thread_search_callback): Remove.
6665 (prepare_to_access_memory): Use for_each_thread instead of
6666 find_inferior. Inline code from thread_search_callback.
6668 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6670 * server.c (struct visit_actioned_threads_data): Remove.
6671 (visit_actioned_threads): Change prototype to take arguments
6673 (resume): Use find_thread instead of find_inferior.
6675 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6677 * server.c (queue_stop_reply_callback): Change prototype, return
6679 (find_status_pending_thread_callback): Remove.
6680 (handle_status): Replace find_inferior with find_thread and
6683 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6685 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6687 (aarch64_store_gregset): Likewise.
6688 (aarch64_fill_fpregset): Likewise.
6689 (aarch64_store_fpregset): Likewise.
6691 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6693 * gdbthread.h (find_thread, for_each_thread): New functions.
6694 * inferiors.c (thread_of_pid): Remove.
6695 (find_any_thread_of_pid): Use find_thread.
6696 * linux-low.c (num_lwps): Use for_each_thread.
6698 2017-10-17 Yao Qi <yao.qi@linaro.org>
6700 * Makefile.in: Remove one rule.
6701 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6703 2017-10-17 Yao Qi <yao.qi@linaro.org>
6705 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6706 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6708 2017-10-17 Yao Qi <yao.qi@linaro.org>
6710 * configure.srv: Rename arm.o with arch/arm.o.
6712 2017-10-17 Yao Qi <yao.qi@linaro.org>
6714 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6715 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6716 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6717 (arch-i386.o, arch-amd64.o): Remove rules.
6718 (arch/%.o): New rule.
6719 Update POSTCOMPILE and COMPILE.pre.
6720 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6721 * configure: Re-generated.
6722 * configure.srv: Replace arch-i386.o with arch/i386.o.
6723 Replace arch-amd64.o with arch/amd64.o.
6725 2017-10-16 Yao Qi <yao.qi@linaro.org>
6727 * configure: Regenerated.
6729 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6731 * inferiors.h: (struct inferior_list): Remove.
6732 (struct inferior_list_entry); Remove.
6733 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6734 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6735 get_first_inferior): Remove.
6736 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6737 find_inferior_id, find_inferior_in_random): Change signature.
6738 * inferiors.c (all_threads): Change type to
6739 std::list<thread_info *>.
6740 (get_thread): Remove macro.
6741 (find_inferior, find_inferior_id): Change signature, implement
6743 (find_inferior_in_random): Change signature, implement using
6744 find_thread_in_random.
6745 (for_each_inferior, for_each_inferior_with_data): Change
6746 signature, implement using for_each_thread.
6747 (add_inferior_to_list, remove_inferior): Remove.
6748 (add_thread, get_first_thread, thread_of_pid,
6749 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6750 (get_first_inferior, one_inferior_p, clear_inferior_list):
6752 (clear_inferiors, get_thread_process): Update.
6753 * gdbthread.h: Include <list>.
6754 (struct thread_info) <entry>: Remove field.
6756 (all_threads): Change type to std::list<thread_info *>.
6757 (get_first_inferior): Add doc.
6758 (find_thread, for_each_thread, find_thread_in_random): New
6760 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6761 * linux-arm-low.c (update_registers_callback): Update.
6762 * linux-low.c (second_thread_of_pid_p): Update.
6763 (kill_one_lwp_callback, linux_detach_lwp_callback,
6764 delete_lwp_callback, status_pending_p_callback, same_lwp,
6765 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6766 iterate_over_lwps, not_stopped_callback,
6767 resume_stopped_resumed_lwps, count_events_callback,
6768 select_singlestep_lwp_callback, select_event_lwp_callback,
6769 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6770 suspend_and_send_sigstop_callback, wait_for_sigstop,
6771 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6772 lwp_running, linux_set_resume_request, resume_status_pending_p,
6773 need_step_over_p, start_step_over, linux_resume_one_thread,
6774 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6775 reset_lwp_ptrace_options_callback): Update.
6776 * linux-mips-low.c (update_watch_registers_callback): Update.
6777 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6779 (free_register_cache_thread_one): Remove.
6780 (regcache_release): Update.
6781 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6782 handle_qxfer_threads_worker): Update.
6783 (handle_query): Update, use list iterator.
6784 (visit_actioned_threads, handle_pending_status,
6785 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6786 clear_pending_status_callback, set_pending_status_callback,
6787 find_status_pending_thread_callback, handle_status,
6788 process_serial_event): Update.
6789 * target.c (thread_search_callback): Update.
6790 * thread-db.c (thread_db_get_tls_address): Update.
6791 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6793 * win32-i386-low.c (update_debug_registers_callback): Update.
6794 * win32-low.c (delete_thread_info, child_delete_thread,
6795 continue_one_thread, suspend_one_thread,
6796 get_child_debug_event): Adjust.
6798 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6800 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6801 * inferiors.h: Include <list>.
6802 (struct process_info) <entry>: Remove field.
6804 (pid_of): Change macro to function.
6805 (ptid_of, lwpid_of): Remove macro.
6806 (all_processes): Change type to std::list<process_info *>.
6807 (ALL_PROCESSES): Remove macro.
6808 (for_each_process, find_process): New function.
6809 * inferiors.c (all_processes): Change type to
6810 std::list<process_info *>.
6811 (find_thread_process): Adjust.
6812 (add_process): Likewise.
6813 (remove_process): Likewise.
6814 (find_process_pid): Likewise.
6815 (get_first_process): Likewise.
6816 (started_inferior_callback): Remove.
6817 (have_started_inferiors_p): Adjust.
6818 (attached_inferior_callback): Remove.
6819 (have_attached_inferiors_p): Adjust.
6820 * linux-low.c (check_zombie_leaders): Likewise.
6821 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6822 (x86_linux_update_xmltarget): Adjust.
6823 * server.c (handle_query): Likewise.
6824 (gdb_reattached_process): Remove.
6825 (handle_status): Adjust.
6826 (kill_inferior_callback): Likewise.
6827 (detach_or_kill_inferior): Remove.
6828 (print_started_pid): Likewise.
6829 (print_attached_pid): Likewise.
6830 (detach_or_kill_for_exit): Update.
6831 (process_serial_event): Likewise.
6832 * linux-arm-low.c (arm_new_fork): Likewise.
6834 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6836 * dll.h: Include <list>.
6837 (struct dll_info): Add constructor.
6838 <entry>: Remove field.
6839 (all_dlls): Change type to std::list<dll_info>.
6840 * dll.c: Include <algorithm>.
6841 (get_dll): Remove macro.
6842 (all_dlls): Change type to std::list<dll_info *>.
6843 (free_one_dll): Remove.
6844 (match_dll): Likewise.
6845 (loaded_dll): Adjust.
6846 (unloaded_dll): Adjust to all_dlls type change, use
6847 std::find_if. Inline code from match_dll.
6848 (clear_dlls): Adjust to all_dlls type change.
6849 * server.c (emit_dll_description): Remove.
6850 (handle_qxfer_libraries): Adjust to all_dlls type change,
6851 integrate emit_dll_description's functionality.
6853 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6855 * linux-low.h (struct linux_target_ops) <delete_process>: New
6857 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6858 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6859 (struct linux_target_ops): Add delete_process callback.
6860 * linux-arm-low.c (arm_delete_process): New.
6861 (struct linux_target_ops): Add delete_process callback.
6862 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6863 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6864 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6865 * linux-mips-low.c (mips_linux_delete_process): New.
6866 (struct linux_target_ops): Add delete_process callback.
6867 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6868 * linux-s390-low.c (struct linux_target_ops): Likewise.
6869 * linux-sh-low.c (struct linux_target_ops): Likewise.
6870 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6871 * linux-tile-low.c (struct linux_target_ops): Likewise.
6872 * linux-x86-low.c (x86_linux_delete_process): New.
6873 (struct linux_target_ops): Add delete_process callback.
6874 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6876 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6878 * linux-aarch64-low.c (the_low_target): Add thread delete
6880 * linux-arm-low.c (arm_delete_thread): New function.
6881 (the_low_target): Add thread delete callback.
6882 * linux-bfin-low.c (the_low_target): Likewise.
6883 * linux-crisv32-low.c (the_low_target): Likewise.
6884 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6886 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6888 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6889 * linux-mips-low.c (mips_linux_delete_thread): New function.
6890 (the_low_target): Add thread delete callback.
6891 * linux-ppc-low.c (the_low_target): Likewise.
6892 * linux-s390-low.c (the_low_target): Likewise.
6893 * linux-sh-low.c (the_low_target): Likewise.
6894 * linux-tic6x-low.c (the_low_target): Likewise.
6895 * linux-tile-low.c (the_low_target): Likewise.
6896 * linux-x86-low.c (the_low_target): Likewise.
6897 * linux-xtensa-low.c (the_low_target): Likewise.
6899 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
6901 * win32-low.c: Include "common-inferior.h".
6903 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6905 * inferiors.c (set_inferior_cwd): New function.
6906 * server.c (handle_general_set): Handle QSetWorkingDir packet.
6907 (handle_query): Inform that QSetWorkingDir is supported.
6908 * win32-low.c (create_process): Pass the inferior's cwd to
6911 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6913 * inferiors.c (current_inferior_cwd): New global variable.
6914 (get_inferior_cwd): New function.
6915 * inferiors.h (struct process_info) <cwd>: New field.
6917 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
6919 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
6920 (OBS): Add gdb_tilde_expand.o.
6922 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
6924 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
6925 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
6927 2017-09-29 Pedro Alves <palves@redhat.com>
6929 * ax.c (gdb_parse_agent_expr): Constify.
6930 * ax.h (gdb_parse_agent_expr): Constify.
6931 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
6933 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
6934 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
6935 * remote-utils.h (read_ptid): Constify.
6936 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
6937 (process_point_options, process_serial_event): Constify.
6938 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
6939 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
6940 (cmd_qtbuffer): Constify.
6942 2017-09-29 Pedro Alves <palves@redhat.com>
6944 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
6947 2017-09-29 Pedro Alves <palves@redhat.com>
6949 * linux-low.c (handle_extended_wait): Pass parent thread instead
6950 of process to thread_db_notice_clone.
6951 * linux-low.h (thread_db_notice_clone): Replace parent process
6952 parameter with parent thread parameter.
6953 * thread-db.c (find_one_thread): Add comment.
6954 (thread_db_notice_clone): Replace parent process parameter with
6955 parent thread parameter. Temporarily switch to the parent thread.
6957 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
6959 * gdbthread.h: Include "common-gdbthread.h".
6960 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
6961 "if" when validating the ptid.
6962 * remote-utils.c: Include "gdbthread.h".
6963 (prepare_resume_reply): Use "switch_to_thread".
6964 * target.c (done_accessing_memory): Likewise.
6966 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
6968 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
6969 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
6970 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
6971 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
6972 s390x-gs-linux64-ipa.o to ipa_obj.
6973 * linux-s390-low.c (HWCAP_S390_GS): New define.
6974 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
6976 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
6977 (s390_arch_setup): Check for guarded-storage support and choose
6979 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
6980 init_registers_s390x_gs_linux64.
6981 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
6983 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
6984 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
6986 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
6988 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
6990 2017-09-21 Kevin Buettner <kevinb@redhat.com>
6992 * linux-low.h (struct lwp_info): Add new field, thread_handle.
6993 (thread_db_thread_handle): Declare.
6994 * linux-low.c (linux_target_ops): Initialize thread_handle.
6995 * server.c (handle_qxfer_threads_worker): Add support for
6997 * target.h (struct target_ops): Add new function pointer,
6999 (target_thread_handle): Define.
7000 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7002 (thread_db_thread_handle): New function.
7004 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7006 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7007 * linux-low.h (thread_db_notice_clone): Declare.
7008 * thread-db.c (thread_db_notice_clone): New function.
7010 2017-09-21 Pedro Alves <palves@redhat.com>
7012 * server.c (gdb_read_memory, handle_status, process_serial_event)
7013 (handle_serial_event, handle_target_event): Adjust to
7014 set_desired_thread prototype change.
7015 * target.c (set_desired_thread): Remove 'use_general' parameter
7017 * target.h (set_desired_thread): Remove 'use_general' parameter.
7019 2017-09-20 Tom Tromey <tom@tromey.com>
7021 * target.c (target_terminal::terminal_state): Define.
7022 (target_terminal::init): Rename from target_terminal_init.
7023 (target_terminal::inferior): Rename from
7024 target_terminal_inferior.
7025 (target_terminal::ours): Rename from target_terminal_ours.
7026 (target_terminal::ours_for_output, target_terminal::info): New.
7028 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7030 * server.c (accumulate_file_name_length): Remove.
7031 (emit_dll_description): Adjust to std::string change.
7032 (handle_qxfer_libraries): Use std::string to hold document.
7034 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7036 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7037 return type of xml_escape_text.
7038 * server.c (emit_dll_description): Likewise.
7040 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7042 * server.c (captured_main): Accept argument for --selftest.
7043 Update run_tests call.
7044 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7045 when registering selftests.
7047 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7049 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7050 instead of "VEC" for "target_desc.reg_defs".
7051 (regcache_cpy): Likewise.
7052 (registers_to_string): Likewise.
7053 (registers_from_string): Likewise.
7054 (find_regno): Likewise.
7055 (supply_regblock): Likewise.
7056 (regcache_raw_read_unsigned): Likewise.
7057 * tdesc.c (init_target_desc): Likewise.
7058 (tdesc_create_reg): Likewise.
7059 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7060 (struct target_desc) <reg_defs>: Convert to "std::vector".
7061 (target_desc): Do not initialize "reg_defs".
7062 (~target_desc): Update code to use "std::vector" instead of "VEC"
7063 for "target_desc.reg_defs".
7064 (operator==): Likewise.
7066 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7068 * inferiors.h (thread_to_gdb_id): Remove.
7069 * inferiors.c (thread_to_gdb_id): Remove.
7070 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7071 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7072 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7074 * nto-low.c (nto_fetch_registers, nto_store_registers,
7075 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7077 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7079 * inferiors.h (gdb_id_to_thread_id): Remove.
7080 * inferiors.c (gdb_id_to_thread_id): Remove.
7081 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7082 removal. Move pid declaration closer to where it's used.
7084 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7086 * server.c (handle_detach): New function.
7087 (process_serial_event): Move code out, call handle_detach.
7089 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7091 * server.c (require_running): Rename to ...
7092 (require_running_or_return): ... this ...
7093 (require_running_or_break): ... and this.
7094 (handle_query, process_serial_event): Adjust.
7096 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7098 * linux-low.c (linux_set_resume_request): Remove unused
7101 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7103 * server.c (first_thread_of): Remove.
7104 (process_serial_event): Replace usage of first_thread_of with
7105 find_any_thread_of_pid.
7106 * tracepoint.c (same_process_p): Remove.
7107 (gdb_agent_about_to_close): Replace usage of same_process_p with
7108 find_any_thread_of_pid.
7109 * linux-x86-low.c (same_process_callback): Remove.
7110 (x86_arch_setup_process_callback): Replace usage of
7111 same_process_callback with find_any_thread_of_pid.
7112 * thread-db.c (any_thread_of): Remove.
7113 (switch_to_process): Replace usage of any_thread_of with
7114 find_any_thread_of_pid.
7115 * inferiors.c (thread_pid_matches_callback): Remove.
7116 (find_thread_process): Adjust to use find_any_thread_of_pid.
7118 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7120 * regcache.c (get_thread_regcache): Guard calls to "memset"
7123 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7125 * linux-low.c (handle_extended_wait): Use
7126 "allocate_target_description" instead of "XNEW".
7127 * linux-x86-low.c (initialize_low_arch): Likewise.
7129 2017-09-05 Yao Qi <yao.qi@linaro.org>
7131 * configure.srv (srv_i386_regobj): Remove.
7132 (srv_amd64_regobj): Remove.
7133 (srv_regobj): Set it to "" for x86 non-linux targets.
7134 * linux-x86-tdesc.c (i386_linux_read_description):
7135 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7136 (init_registers_i386): Remove the declaration.
7137 (tdesc_i386): Remove the declaration.
7138 (lynx_i386_arch_setup): Call i386_create_target_description.
7139 * nto-x86-low.c: Likewise.
7140 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7141 [!__x86_64__]: include arch/i386.h.
7142 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7144 2017-09-05 Yao Qi <yao.qi@linaro.org>
7146 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7147 i386/amd64-XXX-linux from it.
7149 2017-09-05 Yao Qi <yao.qi@linaro.org>
7151 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7153 (ipa_amd64_linux_regobj): Remove.
7154 (ipa_x32_linux_regobj): Remove.
7156 2017-09-05 Yao Qi <yao.qi@linaro.org>
7158 * Makefile.in (arch-amd64.o): New rule.
7159 * configure.srv: Append arch-amd64.o.
7160 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7161 (get_ipa_tdesc): Call amd64_linux_read_description.
7162 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7163 and init_registers_amd64_XXX.
7164 * linux-x86-low.c (x86_linux_read_description): Call
7165 amd64_linux_read_description.
7166 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7167 (initialize_low_arch): Don't call init_registers_x32_XXX and
7168 init_registers_amd64_XXX.
7169 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7170 and tdesc_amd64_XXX.
7171 [__x86_64__] (amd64_tdesc_test): New function.
7172 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7173 and init_registers_amd64_XXX.
7174 * linux-x86-tdesc.c: Include arch/amd64.h.
7175 (xcr0_to_tdesc_idx): New function.
7176 (i386_linux_read_description): New function.
7177 (amd64_get_ipa_tdesc_idx): New function.
7178 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7179 (amd64_get_ipa_tdesc): Declare.
7181 2017-09-05 Yao Qi <yao.qi@linaro.org>
7183 * configure.srv (srv_i386_linux_xmlfiles): Remove
7184 i386/i386-XXX-linux.xml from it.
7186 2017-09-05 Yao Qi <yao.qi@linaro.org>
7188 * configure.srv: Set srv_i386_linux_regobj empty if $development
7190 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7191 initialize_low_tdesc.
7192 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7193 with #if initialize_low_tdesc.
7194 * linux-x86-tdesc-selftest.c: New file.
7195 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7197 2017-09-05 Yao Qi <yao.qi@linaro.org>
7199 * Makefile.in (arch-i386.o): New rule.
7200 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7201 (x86_64-*-linux*): Likewise.
7202 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7203 include arch/i386.h.
7204 (i386_linux_read_description): Remove code and call
7205 i386_create_target_description.
7206 * tdesc.c (allocate_target_description): New function.
7207 * tdesc.h (set_tdesc_architecture): Remove declaration.
7208 (set_tdesc_osabi): Likewise.
7210 2017-09-05 Yao Qi <yao.qi@linaro.org>
7212 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7213 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7214 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7216 * server.c (get_features_xml): Call tdesc_get_features_xml.
7217 * tdesc.c (set_tdesc_architecture): New function.
7218 (set_tdesc_osabi): New function.
7219 (tdesc_get_features_xml): New function.
7220 (tdesc_create_feature): Add an argument.
7221 * tdesc.h (struct target_desc) <features>: New field.
7222 <arch, osabi>: New field.
7223 (~target_desc): xfree features, arch, and osabi.
7224 (target_desc::oerator==): Don't compare .xmltarget.
7225 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7226 (set_tdesc_osabi): Likewise.
7227 (tdesc_get_features_xml): Likewise.
7229 2017-09-05 Yao Qi <yao.qi@linaro.org>
7231 * linux-x86-tdesc.c: Include selftest.h.
7232 (i386_tdesc_test): New function.
7233 (initialize_low_tdesc): Call selftests::register_test.
7234 * tdesc.h: Include regdef.h.
7235 (target_desc): Override operator == and !=.
7237 2017-09-05 Yao Qi <yao.qi@linaro.org>
7239 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7240 (ipa_obj): Likewise.
7241 * linux-i386-ipa.c: Include common/x86-xstate.h
7242 (get_ipa_tdesc): Call i386_linux_read_description.
7243 (initialize_low_tracepoint): Don't call init_registers_XXX
7244 functions, call initialize_low_tdesc instead.
7245 * linux-x86-low.c (x86_linux_read_description): Call
7246 i386_linux_read_description.
7247 (initialize_low_arch): Don't call init_registers_i386_XXX
7248 functions, call initialize_low_tdesc.
7249 * linux-x86-tdesc.c: New file.
7250 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7251 (i386_get_ipa_tdesc_idx): Declare.
7252 (i386_get_ipa_tdesc): Declare.
7253 (initialize_low_tdesc): Declare.
7255 2017-09-05 Yao Qi <yao.qi@linaro.org>
7257 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7260 2017-09-05 Yao Qi <yao.qi@linaro.org>
7262 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7263 * regcache.c (get_thread_regcache): Use VEC_length.
7264 (init_register_cache): Likewise.
7265 (regcache_cpy): Likewise.
7266 (registers_to_string): Iterate reg_defs via VEC_iterate.
7267 (find_regno): Likewise.
7268 (find_register_by_number): Use VEC_index.
7269 (register_size): Call find_register_by_number.
7270 (register_data): Call find_register_by_number.
7271 (supply_regblock): Use VEC_length.
7272 (regcache_raw_read_unsigned): Likewise.
7273 * tdesc.c (init_target_desc): Iterate reg_defs via
7275 (default_description): Update initializer.
7276 (copy_target_description): Don't update field num_registers.
7277 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7278 <num_registers>: Remove.
7280 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7282 * Makefile.in (.SECONDARY): Define target.
7284 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7286 * linux-low.c (linux_wait_1): Adjust.
7287 * server.c (queue_stop_reply_callback): Adjust.
7289 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7291 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7292 QEnvironmentUnset and QEnvironmentReset packets.
7293 (handle_query): Inform remote that QEnvironmentHexEncoded,
7294 QEnvironmentUnset and QEnvironmentReset are supported.
7296 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7298 * inferiors.h (inferior_target_data): Rename to ...
7299 (thread_target_data): ... this.
7300 (inferior_regcache_data): Rename to ...
7301 (thread_regcache_data): ... this.
7302 (set_inferior_regcache_data): Rename to ...
7303 (set_thread_regcache_data): ... this.
7304 * inferiors.c (inferior_target_data): Rename to ...
7305 (thread_target_data): ... this.
7306 (inferior_regcache_data): Rename to ...
7307 (thread_regcache_data): ... this.
7308 (set_inferior_regcache_data): Rename to ...
7309 (set_thread_regcache_data): ... this.
7310 (free_one_thread): Update.
7311 * linux-low.h (get_thread_lwp): Update.
7312 * regcache.c (get_thread_regcache): Update.
7313 (regcache_invalidate_thread): Update.
7314 (free_register_cache_thread): Update.
7315 * win32-i386-low.c (update_debug_registers_callback): Update.
7316 (win32_get_current_dr): Update.
7317 * win32-low.c (thread_rec): Update.
7318 (delete_thread_info): Update.
7319 (continue_one_thread): Update.
7320 (suspend_one_thread): Update.
7322 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7324 * inferiors.c (set_inferior_target_data): Remove.
7325 * inferiors.h (set_inferior_target_data): Remove.
7327 2017-08-18 Yao Qi <yao.qi@linaro.org>
7329 * Makefile.in (OBS): Add selftest.o.
7330 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7331 * configure, config.in: Re-generated.
7332 * server.c: Include common/sefltest.h.
7333 (captured_main): Handle option --selftest.
7335 2017-08-09 Yao Qi <yao.qi@linaro.org>
7337 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7338 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7339 i386-avx-mpx.o and i386-mmx.o.
7340 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7341 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7342 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7343 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7344 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7345 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7346 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7347 i386/amd64-avx-mpx.xml.
7349 2017-08-09 Yao Qi <yao.qi@linaro.org>
7351 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7352 and x32-avx-avx512.o.
7353 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7354 i386/x32-avx-avx512.xml.
7356 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7358 * tracepoint.h (enum class fast_tpoint_collect_result): New
7360 (fast_tracepoint_collecting): Change return type to
7361 fast_tpoint_collect_result.
7362 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7363 * linux-low.h: Include tracepoint.h.
7364 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7365 fast_tpoint_collect_result.
7366 * linux-low.c (handle_tracepoints): Adjust.
7367 (linux_fast_tracepoint_collecting): Change return type to
7368 fast_tpoint_collect_result.
7369 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7370 linux_wait_1, stuck_in_jump_pad_callback,
7371 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7372 proceed_one_lwp): Adjust to type change.
7374 2017-07-10 Yao Qi <yao.qi@linaro.org>
7376 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7378 2017-06-29 Yao Qi <yao.qi@linaro.org>
7380 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7382 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7384 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7386 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7388 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7390 * linux-low.c (linux_create_inferior): Adjust code to access the
7391 environment information via 'gdb_environ' class.
7392 * lynx-low.c (lynx_create_inferior): Likewise.
7393 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7394 (get_environ): Return a pointer to 'our_environ'.
7395 (captured_main): Initialize 'our_environ'.
7396 * server.h (get_environ): Adjust prototype.
7397 * spu-low.c (spu_create_inferior): Adjust code to access the
7398 environment information via 'gdb_environ' class.
7400 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7402 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7403 usage of "register" keyword.
7405 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7407 * configure: Re-generate.
7409 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7411 * configure: Re-generate.
7413 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7415 * Makefile.in (COMPILE.pre): Add "-x c++".
7417 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7419 * fork-child.c: Conditionally include <signal.h>.
7421 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7423 * server.c (handle_general_set): Handle new packet
7424 "QStartupWithShell".
7425 (handle_query): Add "QStartupWithShell" to the list of supported
7427 (gdbserver_usage): Add help text explaining the
7428 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7430 (captured_main): Recognize and act upon the presence of the new
7433 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7434 Pedro Alves <palves@redhat.com>
7436 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7437 * configure: Regenerate.
7438 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7440 (i[34567]86-*-lynxos*): Likewise.
7441 (spu*-*-*): Likewise.
7442 * fork-child.c: New file.
7443 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7445 (linux_ptrace_fun): New function.
7446 (linux_create_inferior): Adjust function prototype to reflect
7447 change on "target.h". Adjust function code to use
7449 (linux_request_interrupt): Delete "signal_pid".
7450 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7451 (lynx_ptrace_fun): New function.
7452 (lynx_create_inferior): Adjust function prototype to reflect
7453 change on "target.h". Adjust function code to use
7455 * nto-low.c (nto_create_inferior): Adjust function prototype and
7456 code to reflect change on "target.h". Update comments.
7457 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7458 "common-terminal.h" and "environ.h".
7459 (terminal_fd): Moved to fork-child.c.
7460 (old_foreground_pgrp): Likewise.
7461 (restore_old_foreground_pgrp): Likewise.
7462 (last_status): Make it global.
7463 (last_ptid): Likewise.
7464 (our_environ): New variable.
7465 (startup_with_shell): Likewise.
7466 (program_name): Likewise.
7467 (program_argv): Rename to...
7468 (program_args): ...this.
7469 (wrapper_argv): New variable.
7470 (start_inferior): Delete function.
7471 (get_exec_wrapper): New function.
7472 (get_exec_file): Likewise.
7473 (get_environ): Likewise.
7474 (prefork_hook): Likewise.
7475 (post_fork_inferior): Likewise.
7476 (postfork_hook): Likewise.
7477 (postfork_child_hook): Likewise.
7478 (handle_v_run): Update code to deal with arguments coming from the
7479 remote host. Update calls from "start_inferior" to
7481 (captured_main): Likewise. Initialize environment variable. Call
7483 * server.h (post_fork_inferior): New prototype.
7484 (get_environ): Likewise.
7485 (last_status): Declare.
7486 (last_ptid): Likewise.
7487 (signal_pid): Likewise.
7488 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7489 (spu_ptrace_fun): New function.
7490 (spu_create_inferior): Adjust function prototype to reflect change
7491 on "target.h". Adjust function code to use "fork_inferior".
7492 * target.c (target_terminal_init): New function.
7493 (target_terminal_inferior): Likewise.
7494 (target_terminal_ours): Likewise.
7495 * target.h: Include <vector>.
7496 (struct target_ops) <create_inferior>: Update prototype.
7497 (create_inferior): Update macro.
7498 * utils.c (gdb_flush_out_err): New function.
7499 * win32-low.c (win32_create_inferior): Adjust function prototype
7500 and code to reflect change on "target.h".
7502 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7504 * inferiors.c (switch_to_thread): New function.
7506 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7508 * Makefile.in (SFILE): Add "common/job-control.c".
7509 (OBS): Add "job-control.o".
7511 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7513 * Makefile: Remove "@host_makefile_frag@".
7515 2017-05-05 Pedro Alves <palves@redhat.com>
7517 * configure: Regenerate.
7519 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7521 * configure: Regenerate.
7523 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7525 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7526 software_single_step change of return type to
7527 std::vector<CORE_ADDR>.
7528 * linux-low.c (install_software_single_step_breakpoints):
7530 * linux-low.h (install_software_single_step_breakpoints):
7533 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7535 * remote-utils.c: Include "gdb_termios.h" instead of
7537 * terminal.h: Delete file.
7539 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7541 * server.c: Include <vector>.
7542 <program_argv, wrapper_argv>: Convert to std::vector.
7543 (start_inferior): Rewrite function to use C++.
7544 (handle_v_run): Likewise. Update code that calculates the argv
7545 based on the vRun packet; use C++.
7546 (captured_main): Likewise.
7548 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7550 * server.c (handle_v_cont): Initialize thread_resume::thread
7553 2017-04-05 Pedro Alves <palves@redhat.com>
7555 * configure: Regenerate.
7557 2017-04-05 Pedro Alves <palves@redhat.com>
7559 * gdbreplay.c (sync_error): Constify.
7560 * linux-x86-low.c (push_opcode): Constify.
7562 2017-04-05 Pedro Alves <palves@redhat.com>
7564 * win32-low.c (get_child_debug_event)
7565 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7566 Report TARGET_WAITKIND_SPURIOUS instead.
7568 2017-04-05 Pedro Alves <palves@redhat.com>
7570 * remote-utils.c (remote_prepare, remote_open): Constify.
7571 * remote-utils.h (remote_prepare, remote_open): Constify.
7572 * server.c (captured_main): Constify 'port' handling.
7574 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7576 * Makefile.in (clean): Clear .deps.
7578 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7580 * .gitignore: Remove generated files, replace with wildcard.
7581 * (clean): Replace removal of generated files with wildcard.
7582 (version.c): Replace with...
7583 (version-generated.c): ...this.
7584 (xml-builtin.c): Replace with...
7585 (xml-builtin-generated.c): ...this.
7586 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7587 (%.c: *regformats*): Replace with...
7588 (%-generated.c: *regformats*): ...this.
7590 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7592 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7593 (xtensa_fill_gregset): Call collect_register_by_name for
7595 (xtensa_store_gregset): Call supply_register_by_name for
7598 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7600 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7601 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7602 (xtensa_store_gregset): Call supply_register for all registers in
7603 a0_regnum..a0_regnum + C0_NREGS range.
7605 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7607 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7608 (ax-ipa.o: ax.c): Remove.
7609 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7610 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7611 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7612 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7613 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7615 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7617 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7618 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7619 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7620 (errors-ipa.o: ../common/errors.c): Remove.
7621 (format-ipa.o: ../common/format.c): Remove.
7622 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7624 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7626 * Makefile.in (%-ipa.o: %.c): New rule.
7627 (tracepoint-ipa.o: tracepoint.c): Remove.
7628 (utils-ipa.o: utils.c): Remove.
7629 (remote-utils-ipa.o: remote-utils.c): Remove.
7630 (regcache-ipa.o: regcache.c): Remove.
7631 (i386-linux-ipa.o: i386-linux.c): Remove.
7632 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7633 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7634 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7635 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7636 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7637 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7638 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7639 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7640 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7641 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7642 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7643 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7644 (aarch64-ipa.o: aarch64.c): Remove.
7645 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7646 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7647 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7648 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7649 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7650 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7651 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7652 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7653 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7654 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7655 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7656 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7657 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7658 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7659 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7660 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7661 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7662 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7663 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7664 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7665 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7666 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7667 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7668 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7669 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7670 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7671 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7672 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7673 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7674 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7675 (tdesc-ipa.o: tdesc.c): Remove.
7676 (x32-linux-ipa.o: x32-linux.c): Remove.
7677 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7678 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7680 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7682 * Makefile.in (%.o: ../arch/%.c): New rule.
7683 (arm.o: ../arch/arm.c): Remove.
7684 (arm-linux.o: ../arch/arm-linux.c): Remove.
7685 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7686 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7688 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7690 * Makefile.in (%.o: ../nat/%.c): New rule.
7691 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7692 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7693 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7694 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7695 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7696 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7697 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7698 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7699 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7700 (linux-personality.o: ../nat/linux-personality.c): Remove.
7701 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7702 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7703 (x86-linux.o: ../nat/x86-linux.c): Remove.
7704 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7705 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7707 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7709 * Makefile.in (%.o: ../common/%.c): New rule.
7710 (signals.o: ../common/signals.c): Remove.
7711 (print-utils.o: ../common/print-utils.c): Remove.
7712 (rsp-low.o: ../common/rsp-low.c): Remove.
7713 (common-utils.o: ../common/common-utils.c): Remove.
7714 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7715 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7716 (vec.o: ../common/vec.c): Remove.
7717 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7718 (xml-utils.o: ../common/xml-utils.c): Remove.
7719 (ptid.o: ../common/ptid.c): Remove.
7720 (buffer.o: ../common/buffer.c): Remove.
7721 (format.o: ../common/format.c): Remove.
7722 (filestuff.o: ../common/filestuff.c): Remove.
7723 (agent.o: ../common/agent.c): Remove.
7724 (errors.o: ../common/errors.c): Remove.
7725 (environ.o: ../common/environ.c): Remove.
7726 (common-debug.o: ../common/common-debug.c): Remove.
7727 (cleanups.o: ../common/cleanups.c): Remove.
7728 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7729 (fileio.o: ../common/fileio.c): Remove.
7730 (common-regcache.o: ../common/common-regcache.c): Remove.
7731 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7732 (new-op.o: ../common/new-op.c): Remove.
7733 (btrace-common.o: ../common/btrace-common.c): Remove.
7735 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7737 * Makefile.in (%.o: ../target/%.c): New rule.
7738 (waitstatus.o: ../target/waitstatus.c): Remove.
7740 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7743 (%.c: ../regformats/%.dat,
7744 (%.c: ../regformats/arm/%.dat,
7745 (%.c: ../regformats/i386/%.dat,
7746 (%.c: ../regformats/rs6000/%.dat): New rules.
7747 (aarch64.c): Remove.
7748 (reg-arm.c): Remove.
7749 (arm-with-iwmmxt.c): Remove.
7750 (arm-with-vfpv2.c): Remove.
7751 (arm-with-vfpv3.c): Remove.
7752 (arm-with-neon.c): Remove.
7753 (reg-bfin.c): Remove.
7754 (reg-cris.c): Remove.
7755 (reg-crisv32.c): Remove.
7757 (i386-linux.c): Remove.
7758 (i386-avx.c): Remove.
7759 (i386-avx-linux.c): Remove.
7760 (i386-avx-avx512.c): Remove.
7761 (i386-avx-avx512-linux.c): Remove.
7762 (i386-mpx.c): Remove.
7763 (i386-mpx-linux.c): Remove.
7764 (i386-avx-mpx-avx512-pku.c): Remove.
7765 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7766 (i386-avx-mpx.c): Remove.
7767 (i386-avx-mpx-linux.c): Remove.
7768 (i386-mmx.c): Remove.
7769 (i386-mmx-linux.c): Remove.
7770 (reg-ia64.c): Remove.
7771 (reg-m32r.c): Remove.
7772 (reg-m68k.c): Remove.
7774 (mips-linux.c): Remove.
7775 (mips-dsp-linux.c): Remove.
7776 (mips64-linux.c): Remove.
7777 (mips64-dsp-linux.c): Remove.
7778 (nios2-linux.c): Remove.
7779 (powerpc-32.c): Remove.
7780 (powerpc-32l.c): Remove.
7781 (powerpc-altivec32l.c): Remove.
7782 (powerpc-cell32l.c): Remove.
7783 (powerpc-vsx32l.c): Remove.
7784 (powerpc-isa205-32l.c): Remove.
7785 (powerpc-isa205-altivec32l.c): Remove.
7786 (powerpc-isa205-vsx32l.c): Remove.
7787 (powerpc-e500l.c): Remove.
7788 (powerpc-64l.c): Remove.
7789 (powerpc-altivec64l.c): Remove.
7790 (powerpc-cell64l.c): Remove.
7791 (powerpc-vsx64l.c): Remove.
7792 (powerpc-isa205-64l.c): Remove.
7793 (powerpc-isa205-altivec64l.c): Remove.
7794 (powerpc-isa205-vsx64l.c): Remove.
7795 (s390-linux32.c): Remove.
7796 (s390-linux32v1.c): Remove.
7797 (s390-linux32v2.c): Remove.
7798 (s390-linux64.c): Remove.
7799 (s390-linux64v1.c): Remove.
7800 (s390-linux64v2.c): Remove.
7801 (s390-te-linux64.c): Remove.
7802 (s390-vx-linux64.c): Remove.
7803 (s390-tevx-linux64.c): Remove.
7804 (s390x-linux64.c): Remove.
7805 (s390x-linux64v1.c): Remove.
7806 (s390x-linux64v2.c): Remove.
7807 (s390x-te-linux64.c): Remove.
7808 (s390x-vx-linux64.c): Remove.
7809 (s390x-tevx-linux64.c): Remove.
7810 (tic6x-c64xp-linux.c): Remove.
7811 (tic6x-c64x-linux.c): Remove.
7812 (tic6x-c62x-linux.c): Remove.
7814 (reg-sparc64.c): Remove.
7815 (reg-spu.c): Remove.
7817 (amd64-linux.c): Remove.
7818 (amd64-avx.c): Remove.
7819 (amd64-avx-linux.c): Remove.
7820 (amd64-avx-avx512.c): Remove.
7821 (amd64-avx-avx512-linux.c): Remove.
7822 (amd64-mpx.c): Remove.
7823 (amd64-mpx-linux.c): Remove.
7824 (amd64-avx-mpx-avx512-pku.c): Remove.
7825 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7826 (amd64-avx-mpx.c): Remove.
7827 (amd64-avx-mpx-linux.c): Remove.
7829 (x32-linux.c): Remove.
7830 (x32-avx.c): Remove.
7831 (x32-avx-linux.c): Remove.
7832 (x32-avx-avx512.c): Remove.
7833 (x32-avx-avx512-linux.c): Remove.
7834 (reg-xtensa.c): Remove.
7835 (reg-tilegx.c): Remove.
7836 (reg-tilegx32.c): Remove.
7838 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7840 * Makefile.in (SFILES): Add "common/environ.c".
7841 (OBJS): Add "common/environ.h".
7843 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7845 * configure.ac: Check if the fs_base and gs_base members of
7846 `struct user_regs_struct' exist.
7847 * config.in: Regenerated.
7848 * configure: Likewise.
7850 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7852 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7854 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7855 (get_next_pcs_syscall_next_pc): Likewise.
7857 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7859 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7860 * nto-x86-low.c: Likewise.
7862 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7864 * Makefile.in: Include disable-implicit-rules.mk.
7866 2016-11-23 Pedro Alves <palves@redhat.com>
7868 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7869 (debug_vprintf): Use std::chrono::steady_clock instead of
7870 gettimeofday. Use '.' instead of ':'.
7871 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7872 (get_timestamp): Use std::chrono::steady_clock instead of
7875 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7877 * Makefile.in: Fix whitespace formatting.
7879 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7881 * Makefile.in (SFILES, OBS): Flatten list and order
7884 2016-11-23 Pedro Alves <palves@redhat.com>
7886 * event-loop.c (handle_file_event): Use warning.
7887 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7888 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7891 2016-11-23 Pedro Alves <palves@redhat.com>
7893 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7895 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7896 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7897 debug_printf and debug_flush for debug output.
7898 * server.c (handle_general_set): Likewise.
7899 * thread-db.c (try_thread_db_load): Use debug_printf for debug
7902 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7904 * Makefile.in (.c.o): Replace rule with ...
7905 (%.o: %.c): ... this one.
7907 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
7909 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
7910 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
7912 * configure.ac: Remove checks for the make program.
7913 * configure: Re-generate.
7915 2016-10-28 Pedro Alves <palves@redhat.com>
7917 * Makefile.in (CXX_DIALECT): Get from configure.
7918 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
7919 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
7920 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
7921 * config.in: Regenerate.
7922 * configure: Regenerate.
7924 2016-10-27 Yao Qi <yao.qi@linaro.org>
7926 * linux-low.c (linux_supports_range_stepping): Return true if
7927 can_software_single_step return true.
7929 2016-10-27 Yao Qi <yao.qi@linaro.org>
7931 * inferiors.c (find_inferior_in_random): New function.
7932 * inferiors.h (find_inferior_in_random): Declare.
7933 * linux-low.c (linux_wait_for_event_filtered): Call
7934 find_inferior_in_random instead of find_inferior.
7936 2016-10-27 Yao Qi <yao.qi@linaro.org>
7938 * linux-low.c (linux_wait_1): If single-step breakpoints are
7939 inserted, remove them.
7941 2016-10-26 Pedro Alves <palves@redhat.com>
7943 * linux-low.c (handle_extended_wait): Link parent/child fork
7945 (linux_wait_1): Unlink them.
7946 (linux_set_resume_request): Ignore resume requests for
7947 already-resumed and unhandled fork child threads.
7948 * linux-low.h (struct lwp_info) <fork_relative>: New field.
7949 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
7951 (handle_v_requests) <vCont>: Don't call require_running.
7952 * server.h (in_queued_stop_replies): New declaration.
7954 2016-10-24 Yao Qi <yao.qi@linaro.org>
7957 * linux-aarch64-low.c (append_insns): Cast the return value to
7960 2016-10-10 Yao Qi <yao.qi@linaro.org>
7962 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
7964 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
7966 * target.c (target_supports_multi_process): New function, moved
7968 * target.h (target_supports_multi_process): ... here. Remove
7971 2016-10-05 Tom Tromey <tom@tromey.com>
7974 * tracepoint.c (handle_tracepoint_bkpts): Check
7975 ipa_error_tracepoint, not ipa_stopping_tracepoint.
7977 2016-10-05 Yao Qi <yao.qi@linaro.org>
7979 * configure.srv: Update the path of arm-*.xml files.
7981 2016-10-05 Terry Guo <terry.guo@arm.com>
7982 Yao Qi <yao.qi@linaro.org>
7984 * Makefile.in: Adjust the path of rules.
7985 * configure.srv: Update the path of xml files.
7986 * regformats/arm-with-iwmmxt.dat: Regenerated.
7987 * regformats/arm-with-neon.dat: Likewise.
7988 * regformats/arm-with-vfpv2.dat: Likewise.
7989 * regformats/arm-with-vfpv3.dat Likewise.
7991 2016-09-30 Yao Qi <yao.qi@linaro.org>
7994 * target.c (target_stop_and_wait): Don't call
7995 target_continue_no_signal, use resume_stop instead.
7997 2016-09-26 Yao Qi <yao.qi@linaro.org>
7999 * linux-low.c (linux_wait_1): Call debug_exit.
8001 2016-09-23 Pedro Alves <palves@redhat.com>
8003 * Makefile.in (SFILES): Add common/new-op.c.
8004 (OBS): Add common/new-op.o.
8005 (new-op.o): New rule.
8007 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8009 * .gitinore: Ignore more files.
8011 2016-09-21 Yao Qi <yao.qi@linaro.org>
8013 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8016 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8018 * server.c (start_inferior): Call target_mourn_inferior instead of
8019 mourn_inferior; pass ptid_t argument to it.
8021 (handle_target_event): Likewise.
8022 * target.c (target_mourn_inferior): New function.
8023 * target.h (mourn_inferior): Delete macro.
8025 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8027 * linux-low.c (lwp_is_stepping): New function.
8029 2016-09-06 Carl Love <cel@us.ibm.com>
8031 * server.c (start_inferior): Fixed comment, requested comment change
8032 didn't get updated correctly. Removed reference to ptrace () call as
8033 it is only true on Linux systems.
8035 2016-09-06 Carl Love <cel@us.ibm.com>
8037 * server.c (start_inferior): Do not call
8038 function target_post_create_inferior () if the
8039 inferior process has already exited.
8041 2016-09-05 Pedro Alves <palves@redhat.com>
8043 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8044 (COMPILE.pre, CC_LD): Use CXX directly.
8045 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8046 * acinclude.m4: Don't include build-with-cxx.m4.
8047 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8048 * configure: Regenerate.
8050 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8053 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8054 call writing data to own_buf.
8056 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8058 * target.c (mywait): Call target_wait instead of
8060 (target_wait): New function.
8062 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8064 * server.c (start_inferior): New variable 'ptid'. Replace calls
8065 to the_target->resume by target_continue{,_no_signal}, depending
8067 * target.c (target_stop_and_wait): Call target_continue_no_signal
8068 instead of the_target->resume.
8069 (target_continue): New function.
8071 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8073 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8075 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8078 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8080 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8081 * linux-arm-low.c (ps_get_thread_area): Likewise.
8082 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8083 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8084 * linux-mips-low.c (ps_get_thread_area): Likewise.
8085 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8086 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8087 * linux-x86-low.c (ps_get_thread_area): Likewise.
8088 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8090 2016-08-19 Pedro Alves <palves@redhat.com>
8092 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8094 2016-08-19 Pedro Alves <palves@redhat.com>
8096 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8097 comment. Use memcpy instead of casting through unsigned long.
8099 2016-08-19 Pedro Alves <palves@redhat.com>
8101 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8102 allocating around 0x80000000.
8104 2016-08-19 Pedro Alves <palves@redhat.com>
8107 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8108 (x32-avx512-linux-ipa.o): New rules.
8109 * configure.ac (x86_64-*-linux*): New x32 check.
8110 * configure.srv (ipa_x32_linux_regobj): New.
8111 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8112 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8114 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8116 * configure: Regenerate.
8118 2016-08-09 Pedro Alves <palves@redhat.com>
8121 * Makefile.in (OBS): Add signals-state-save-restore.o.
8122 (signals-state-save-restore.o): New rule.
8123 * config.in: Regenerate.
8124 * configure: Regenerate.
8125 * linux-low.c: Include "signals-state-save-restore.h".
8126 (linux_create_inferior): Call
8127 restore_original_signals_state.
8128 * server.c: Include "dispositions-save-restore.h".
8129 (captured_main): Call save_original_signals_state.
8131 2016-08-05 Pedro Alves <palves@redhat.com>
8133 * configure: Regenerate.
8135 2016-08-04 Yao Qi <yao.qi@linaro.org>
8137 * linux-low.c (regsets_fetch_inferior_registers): Check
8138 errno is ESRCH or not.
8140 2016-08-02 Yao Qi <yao.qi@linaro.org>
8142 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8143 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8144 (thread_db_load_search): Update.
8145 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8146 td_ta_set_event and td_ta_event_getmsg.
8148 2016-07-26 Pedro Alves <palves@redhat.com>
8151 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8152 of unsigned long for 64-bit registers and use uint32_t instead of
8153 unsigned int for 32-bit registers.
8155 2016-07-26 Pedro Alves <palves@redhat.com>
8157 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8160 2016-07-21 Tom Tromey <tom@tromey.com>
8162 * configure: Rebuild.
8164 2016-07-21 Yao Qi <yao.qi@linaro.org>
8166 * mem-break.c (find_gdb_breakpoint): Cast bp to
8167 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8169 2016-07-21 Yao Qi <yao.qi@linaro.org>
8171 * server.c (handle_v_requests): Support s and S actions
8172 if target_supports_software_single_step return true.
8174 2016-07-21 Yao Qi <yao.qi@linaro.org>
8176 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8177 is resume_step, call maybe_hw_step.
8178 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8180 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8182 (proceed_one_lwp): If resume request is resume_step, install
8183 reinsert breakpoints and call maybe_hw_step.
8185 2016-07-21 Yao Qi <yao.qi@linaro.org>
8187 * linux-low.c (proceed_one_lwp): Declare.
8188 (linux_resume_one_thread): Remove local variable 'step'.
8189 Lift code enqueue signal. Call proceed_one_lwp instead of
8190 linux_resume_one_lwp.
8192 2016-07-21 Yao Qi <yao.qi@linaro.org>
8194 * linux-low.c (linux_resume_one_thread): Call
8195 enqueue_pending_signal.
8197 2016-07-21 Yao Qi <yao.qi@linaro.org>
8199 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8200 * inferiors.c (do_restore_current_thread_cleanup): New function.
8201 (make_cleanup_restore_current_thread): Likewise.
8202 * linux-low.c (install_software_single_step_breakpoints): Call
8203 make_cleanup_restore_current_thread. Switch current_thread to
8206 2016-07-21 Yao Qi <yao.qi@linaro.org>
8208 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8209 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8210 (clone_one_breakpoint): Likewise.
8211 (delete_reinsert_breakpoints): Change parameter to thread.
8213 (has_reinsert_breakpoints): Likewise.
8214 (uninsert_reinsert_breakpoints): Likewise.
8215 (reinsert_reinsert_breakpoints): Likewise.
8216 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8217 (delete_reinsert_breakpoints): Likewise.
8218 (reinsert_reinsert_breakpoints): Likewise.
8219 (uninsert_reinsert_breakpoints): Likewise.
8220 (has_reinsert_breakpoints): Likewise.
8222 2016-07-21 Yao Qi <yao.qi@linaro.org>
8224 * inferiors.c (get_thread_process): Make parameter const.
8225 * inferiors.h (get_thread_process): Update declaration.
8226 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8227 Add new parameters child_thread and parent_thread. Callers
8229 * mem-break.h (clone_all_breakpoints): Update declaration.
8231 2016-07-21 Yao Qi <yao.qi@linaro.org>
8233 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8234 <command_list, handler>: Remove.
8235 (struct gdb_breakpoint): New.
8236 (struct other_breakpoint): New.
8237 (struct reinsert_breakpoint): New.
8238 (is_gdb_breakpoint): New function.
8239 (any_persistent_commands): Update command_list if
8240 is_gdb_breakpoint returns true.
8241 (set_breakpoint): Create breakpoints according to their types.
8242 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8243 (set_gdb_breakpoint_1): Likewise.
8244 (set_gdb_breakpoint): Likewise.
8245 (clear_breakpoint_conditions): Change parameter type to
8246 'struct gdb_breakpoint *'.
8247 (clear_breakpoint_commands): Likewise.
8248 (clear_breakpoint_conditions_and_commands): Likewise.
8249 (add_condition_to_breakpoint): Likewise.
8250 (add_breakpoint_condition): Likewise.
8251 (add_commands_to_breakpoint): Likewise.
8252 (check_breakpoints): Check other_breakpoint.
8253 (clone_one_breakpoint): Clone breakpopint according to its type.
8254 * mem-break.h (struct gdb_breakpoint): Declare.
8255 (set_gdb_breakpoint): Update declaration.
8256 (clear_breakpoint_conditions_and_commands): Likewise.
8257 (add_breakpoint_condition): Likewise.
8258 (add_breakpoint_commands): Likewise.
8259 * server.c (process_point_options): Change parameter type to
8260 'struct gdb_breakpoint *'.
8262 2016-07-21 Yao Qi <yao.qi@linaro.org>
8264 * mem-break.c (set_breakpoint_at): Rename it to ...
8265 (set_breakpoint_type_at): ... it.
8266 (set_breakpoint_at): Call set_breakpoint_type_at.
8267 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8268 * mem-break.h (set_breakpoint_at): Update comments.
8270 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8272 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8274 (nios2_store_gregset): Likewise.
8276 2016-07-01 Pedro Alves <palves@redhat.com>
8277 Antoine Tremblay <antoine.tremblay@ericsson.com>
8279 * linux-low.c: Change interface to take the target lwp_info
8280 pointer directly and return void. Handle detaching from a zombie
8282 (linux_detach_lwp_callback): New function.
8283 (linux_detach): Detach from the leader thread after detaching from
8286 2016-06-28 Yao Qi <yao.qi@linaro.org>
8288 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8289 for variable new_offset.
8290 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8291 (aarch64_ftrace_insn_reloc_cb): Likewise.
8292 (aarch64_ftrace_insn_reloc_tb): Likewise.
8293 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8294 PRIx64 instead of PRIx32.
8296 2016-06-28 Yao Qi <yao.qi@linaro.org>
8298 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8299 (the_low_target): Install arm_get_syscall_trapinfo.
8301 2016-06-28 Yao Qi <yao.qi@linaro.org>
8303 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8305 (the_low_target): Install aarch64_get_syscall_trapinfo.
8307 2016-06-28 Yao Qi <yao.qi@linaro.org>
8309 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8311 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8312 Remove parameter sysno.
8313 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8316 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8318 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8319 (s390_emit_ne_goto): Likewise.
8320 (s390_emit_lt_goto): Likewise.
8321 (s390_emit_le_goto): Likewise.
8322 (s390_emit_gt_goto): Likewise.
8323 (s390_emit_ge_goto): Likewise.
8324 (s390x_emit_eq_goto): Likewise.
8325 (s390x_emit_ne_goto): Likewise.
8326 (s390x_emit_lt_goto): Likewise.
8327 (s390x_emit_le_goto): Likewise.
8328 (s390x_emit_gt_goto): Likewise.
8329 (s390x_emit_ge_goto): Likewise.
8330 (s390_emit_ops_impl): Mark variable static.
8331 (s390x_emit_ops): Likewise.
8333 2016-06-17 Yao Qi <yao.qi@linaro.org>
8335 * linux-low.c (handle_extended_wait): Call
8336 uninsert_reinsert_breakpoints for the parent process. Remove
8337 reinsert breakpoints from the child process. Reinsert them to
8338 the parent process when vfork is done.
8339 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8340 (reinsert_reinsert_breakpoints): New function.
8341 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8342 (reinsert_reinsert_breakpoints): Declare.
8344 2016-06-17 Yao Qi <yao.qi@linaro.org>
8346 * linux-low.c (handle_extended_wait): If the parent is doing
8347 step-over, remove the reinsert breakpoints from the forked child.
8349 2016-06-17 Yao Qi <yao.qi@linaro.org>
8351 * linux-low.c (unsuspend_all_lwps): Declare.
8352 (linux_low_filter_event): If thread exited, call finish_step_over.
8353 If step-over is finished, unsuspend other threads.
8355 2016-06-17 Yao Qi <yao.qi@linaro.org>
8357 * linux-low.c (linux_resume_one_lwp_throw): Assert
8358 has_reinsert_breakpoints returns false.
8359 * mem-break.c (delete_disabled_breakpoints): Assert
8360 bp type isn't reinsert_breakpoint.
8362 2016-06-17 Yao Qi <yao.qi@linaro.org>
8364 * linux-low.c (maybe_hw_step): New function.
8365 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8366 (finish_step_over): Switch current_thread to lwp temporarily,
8367 and assert has_reinsert_breakpoints returns true.
8368 (proceed_one_lwp): Call maybe_hw_step.
8369 * mem-break.c (has_reinsert_breakpoints): New function.
8370 * mem-break.h (has_reinsert_breakpoints): Declare.
8372 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8374 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8376 2016-05-17 Yao Qi <yao.qi@linaro.org>
8378 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8379 instead of find_inferior.
8381 2016-05-05 Yao Qi <yao.qi@linaro.org>
8383 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8384 Initialize res to zero.
8386 2016-05-05 Yao Qi <yao.qi@linaro.org>
8388 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8391 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8393 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8394 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8395 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8397 2016-04-28 Par Olsson <par.olsson@windriver.com>
8398 Simon Marchi <simon.marchi@ericsson.com>
8400 * tracepoint.c (write_inferior_int8): New function.
8401 (cmd_qtenable_disable): Write enable flag using
8402 write_inferior_int8.
8404 2016-04-25 Yao Qi <yao.qi@linaro.org>
8406 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8407 (need_step_over_p): Return zero if the LWP has pending signals
8408 can be delivered on software single step target.
8410 2016-04-25 Yao Qi <yao.qi@linaro.org>
8412 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8413 return instead of error.
8415 2016-04-22 Yao Qi <yao.qi@linaro.org>
8417 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8420 2016-04-22 Yao Qi <yao.qi@linaro.org>
8422 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8423 signal when stepping over breakpoint with software single
8426 2016-04-21 Pedro Alves <palves@redhat.com>
8428 * linux-s390-low.c (s390_collect_ptrace_register)
8429 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8431 (s390_check_regset): Use void * instead of gdb_byte *.
8433 2016-04-20 Pedro Alves <palves@redhat.com>
8435 * configure: Renegerate.
8437 2016-04-20 Yao Qi <yao.qi@linaro.org>
8439 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8440 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8442 (arm_store_gregset): Likewise.
8444 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8446 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8447 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8448 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8449 (amd64-avx-mpx-linux.c): New rules.
8450 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8451 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8452 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8453 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8454 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8455 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8456 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8457 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8458 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8459 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8460 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8461 * linux-x86-low.c (x86_linux_read_description): Add case for
8462 X86_XSTATE_AVX_MPX_MASK.
8463 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8464 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8465 init_registers_i386_avx_mpx_linux.
8466 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8467 (initialize_low_tracepoint): Call
8468 init_registers_i386_avx_mpx_linux.
8469 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8470 (initialize_low_tracepoint): Call
8471 init_registers_amd64_avx_mpx_linux.
8472 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8473 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8474 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8477 2016-04-18 Pedro Alves <palves@redhat.com>
8479 * configure: Regenerate.
8481 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8483 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8484 (aarch64_emit_sub): Likewise.
8486 2016-04-12 Pedro Alves <palves@redhat.com>
8488 * utils.c (prepare_to_throw_exception): Delete.
8490 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8492 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8494 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8496 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8498 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8500 * linux-aarch64-ipa.c: Add <elf.h> include.
8501 * linux-ppc-ipa.c: Add <elf.h> include.
8502 * linux-s390-ipa.c: Add <elf.h> include.
8504 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8506 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8507 (get_raw_reg_ptr): Likewise.
8508 (get_trace_state_variable_value_ptr): Likewise.
8509 (set_trace_state_variable_value_ptr): Likewise.
8510 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8513 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8514 Marcin Kościelnicki <koriakin@0x04.net>
8517 * linux-ppc-low.c (emit_insns): New function.
8518 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8519 (ppc_emit_prologue): New function.
8520 (ppc_emit_epilogue): New function.
8521 (ppc_emit_add): New function.
8522 (ppc_emit_sub): New function.
8523 (ppc_emit_mul): New function.
8524 (ppc_emit_lsh): New function.
8525 (ppc_emit_rsh_signed): New function.
8526 (ppc_emit_rsh_unsigned): New function.
8527 (ppc_emit_ext): New function.
8528 (ppc_emit_zero_ext): New function.
8529 (ppc_emit_log_not): New function.
8530 (ppc_emit_bit_and): New function.
8531 (ppc_emit_bit_or): New function.
8532 (ppc_emit_bit_xor): New function.
8533 (ppc_emit_bit_not): New function.
8534 (ppc_emit_equal): New function.
8535 (ppc_emit_less_signed): New function.
8536 (ppc_emit_less_unsigned): New function.
8537 (ppc_emit_ref): New function.
8538 (ppc_emit_const): New function.
8539 (ppc_emit_reg): New function.
8540 (ppc_emit_pop): New function.
8541 (ppc_emit_stack_flush): New function.
8542 (ppc_emit_swap): New function.
8543 (ppc_emit_stack_adjust): New function.
8544 (ppc_emit_call): New function.
8545 (ppc_emit_int_call_1): New function.
8546 (ppc_emit_void_call_2): New function.
8547 (ppc_emit_if_goto): New function.
8548 (ppc_emit_goto): New function.
8549 (ppc_emit_eq_goto): New function.
8550 (ppc_emit_ne_goto): New function.
8551 (ppc_emit_lt_goto): New function.
8552 (ppc_emit_le_goto): New function.
8553 (ppc_emit_gt_goto): New function.
8554 (ppc_emit_ge_goto): New function.
8555 (ppc_write_goto_address): New function.
8556 (ppc_emit_ops_impl): New static variable.
8557 (ppc64v1_emit_prologue): New function.
8558 (ppc64v2_emit_prologue): New function.
8559 (ppc64_emit_epilogue): New function.
8560 (ppc64_emit_add): New function.
8561 (ppc64_emit_sub): New function.
8562 (ppc64_emit_mul): New function.
8563 (ppc64_emit_lsh): New function.
8564 (ppc64_emit_rsh_signed): New function.
8565 (ppc64_emit_rsh_unsigned): New function.
8566 (ppc64_emit_ext): New function.
8567 (ppc64_emit_zero_ext): New function.
8568 (ppc64_emit_log_not): New function.
8569 (ppc64_emit_bit_and): New function.
8570 (ppc64_emit_bit_or): New function.
8571 (ppc64_emit_bit_xor): New function.
8572 (ppc64_emit_bit_not): New function.
8573 (ppc64_emit_equal): New function.
8574 (ppc64_emit_less_signed): New function.
8575 (ppc64_emit_less_unsigned): New function.
8576 (ppc64_emit_ref): New function.
8577 (ppc64_emit_const): New function.
8578 (ppc64v1_emit_reg): New function.
8579 (ppc64v2_emit_reg): New function.
8580 (ppc64_emit_pop): New function.
8581 (ppc64_emit_stack_flush): New function.
8582 (ppc64_emit_swap): New function.
8583 (ppc64v1_emit_call): New function.
8584 (ppc64v2_emit_call): New function.
8585 (ppc64v1_emit_int_call_1): New function.
8586 (ppc64v2_emit_int_call_1): New function.
8587 (ppc64v1_emit_void_call_2): New function.
8588 (ppc64v2_emit_void_call_2): New function.
8589 (ppc64_emit_if_goto): New function.
8590 (ppc64_emit_eq_goto): New function.
8591 (ppc64_emit_ne_goto): New function.
8592 (ppc64_emit_lt_goto): New function.
8593 (ppc64_emit_le_goto): New function.
8594 (ppc64_emit_gt_goto): New function.
8595 (ppc64_emit_ge_goto): New function.
8596 (ppc64v1_emit_ops_impl): New static variable.
8597 (ppc64v2_emit_ops_impl): New static variable.
8598 (ppc_emit_ops): New function.
8599 (linux_low_target): Wire in ppc_emit_ops.
8601 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8602 Marcin Kościelnicki <koriakin@0x04.net>
8605 * Makefile.in: Add powerpc-*-ipa.o
8606 * configure.srv: Add ipa_obj for powerpc*-linux.
8607 * linux-ppc-ipa.c: New file.
8608 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8610 (PPC_FIELD): New macro.
8611 (PPC_SEXT): New macro.
8612 (PPC_OP6): New macro.
8613 (PPC_BO): New macro.
8614 (PPC_LI): New macro.
8615 (PPC_BD): New macro.
8616 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8617 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8618 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8619 (ppc_get_thread_area): New function.
8620 (is_elfv2_inferior): New function.
8621 (gen_ds_form): New function.
8622 (GEN_STD): New macro.
8623 (GEN_STDU): New macro.
8624 (GEN_LD): New macro.
8625 (GEN_LDU): New macro.
8626 (gen_d_form): New function.
8627 (GEN_ADDI): New macro.
8628 (GEN_ADDIS): New macro.
8629 (GEN_LI): New macro.
8630 (GEN_LIS): New macro.
8631 (GEN_ORI): New macro.
8632 (GEN_ORIS): New macro.
8633 (GEN_LWZ): New macro.
8634 (GEN_STW): New macro.
8635 (GEN_STWU): New macro.
8636 (gen_xfx_form): New function.
8637 (GEN_MFSPR): New macro.
8638 (GEN_MTSPR): New macro.
8639 (GEN_MFCR): New macro.
8640 (GEN_MTCR): New macro.
8641 (GEN_SYNC): New macro.
8642 (GEN_LWSYNC): New macro.
8643 (gen_x_form): New function.
8644 (GEN_OR): New macro.
8645 (GEN_MR): New macro.
8646 (GEN_LWARX): New macro.
8647 (GEN_STWCX): New macro.
8648 (GEN_CMPW): New macro.
8649 (gen_md_form): New function.
8650 (GEN_RLDICL): New macro.
8651 (GEN_RLDICR): New macro.
8652 (gen_i_form): New function.
8654 (GEN_BL): New macro.
8655 (gen_b_form): New function.
8656 (GEN_BNE): New macro.
8657 (GEN_LOAD): New macro.
8658 (GEN_STORE): New macro.
8659 (gen_limm): New function.
8660 (gen_atomic_xchg): New function.
8661 (gen_call): New function.
8662 (ppc_relocate_instruction): New function.
8663 (ppc_install_fast_tracepoint_jump_pad): New function.
8664 (ppc_get_min_fast_tracepoint_insn_len): New function.
8665 (ppc_get_ipa_tdesc_idx): New function.
8666 (the_low_target): Wire in the new functions.
8667 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8669 * linux-ppc-tdesc.h: New file.
8671 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8673 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8674 (alloc_jump_pad_buffer): New function.
8675 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8676 (alloc_jump_pad_buffer): New function.
8677 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8678 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8679 (alloc_jump_pad_buffer): New function.
8680 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8681 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8682 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8683 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8685 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8687 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8688 * linux-amd64-ipa.c: Likewise.
8689 * linux-i386-ipa.c: Likewise.
8690 * linux-s390-ipa.c: Likewise.
8691 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8692 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8693 set_trace_state_variable_value_ptr.
8694 (struct ipa_sym_addresses): Likewise.
8695 (symbol_list): Likewise.
8696 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8697 accessing gdb_collect directly.
8698 (gdb_collect_ptr_type): New typedef.
8699 (get_raw_reg_ptr_type): New typedef.
8700 (get_trace_state_variable_value_ptr_type): New typedef.
8701 (set_trace_state_variable_value_ptr_type): New typedef.
8702 (gdb_collect_ptr): New global.
8703 (get_raw_reg_ptr): New global.
8704 (get_trace_state_variable_value_ptr): New global.
8705 (set_trace_state_variable_value_ptr): New global.
8706 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8707 accessing get_raw_reg directly.
8708 (get_get_tsv_func_addr): Likewise for
8709 get_trace_state_variable_value_ptr.
8710 (get_set_tsv_func_addr): Likewise for
8711 set_trace_state_variable_value_ptr.
8712 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8714 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8716 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8718 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8720 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8722 (relocate_instruction): Remove own_buf.
8723 * server.c (own_buf): Make global.
8724 (handle_v_requests): Make global.
8725 * server.h (own_buf): New declaration.
8726 (handle_v_requests): New prototype.
8728 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8731 * linux-s390-low.c (add_insns): New function.
8732 (s390_emit_prologue): New function.
8733 (s390_emit_epilogue): New function.
8734 (s390_emit_add): New function.
8735 (s390_emit_sub): New function.
8736 (s390_emit_mul): New function.
8737 (s390_emit_lsh): New function.
8738 (s390_emit_rsh_signed): New function.
8739 (s390_emit_rsh_unsigned): New function.
8740 (s390_emit_ext): New function.
8741 (s390_emit_log_not): New function.
8742 (s390_emit_bit_and): New function.
8743 (s390_emit_bit_or): New function.
8744 (s390_emit_bit_xor): New function.
8745 (s390_emit_bit_not): New function.
8746 (s390_emit_equal): New function.
8747 (s390_emit_less_signed): New function.
8748 (s390_emit_less_unsigned): New function.
8749 (s390_emit_ref): New function.
8750 (s390_emit_if_goto): New function.
8751 (s390_emit_goto): New function.
8752 (s390_write_goto_address): New function.
8753 (s390_emit_litpool): New function.
8754 (s390_emit_const): New function.
8755 (s390_emit_call): New function.
8756 (s390_emit_reg): New function.
8757 (s390_emit_pop): New function.
8758 (s390_emit_stack_flush): New function.
8759 (s390_emit_zero_ext): New function.
8760 (s390_emit_swap): New function.
8761 (s390_emit_stack_adjust): New function.
8762 (s390_emit_set_r2): New function.
8763 (s390_emit_int_call_1): New function.
8764 (s390_emit_void_call_2): New function.
8765 (s390_emit_eq_goto): New function.
8766 (s390_emit_ne_goto): New function.
8767 (s390_emit_lt_goto): New function.
8768 (s390_emit_le_goto): New function.
8769 (s390_emit_gt_goto): New function.
8770 (s390_emit_ge_goto): New function.
8771 (s390x_emit_prologue): New function.
8772 (s390x_emit_epilogue): New function.
8773 (s390x_emit_add): New function.
8774 (s390x_emit_sub): New function.
8775 (s390x_emit_mul): New function.
8776 (s390x_emit_lsh): New function.
8777 (s390x_emit_rsh_signed): New function.
8778 (s390x_emit_rsh_unsigned): New function.
8779 (s390x_emit_ext): New function.
8780 (s390x_emit_log_not): New function.
8781 (s390x_emit_bit_and): New function.
8782 (s390x_emit_bit_or): New function.
8783 (s390x_emit_bit_xor): New function.
8784 (s390x_emit_bit_not): New function.
8785 (s390x_emit_equal): New function.
8786 (s390x_emit_less_signed): New function.
8787 (s390x_emit_less_unsigned): New function.
8788 (s390x_emit_ref): New function.
8789 (s390x_emit_if_goto): New function.
8790 (s390x_emit_const): New function.
8791 (s390x_emit_call): New function.
8792 (s390x_emit_reg): New function.
8793 (s390x_emit_pop): New function.
8794 (s390x_emit_stack_flush): New function.
8795 (s390x_emit_zero_ext): New function.
8796 (s390x_emit_swap): New function.
8797 (s390x_emit_stack_adjust): New function.
8798 (s390x_emit_int_call_1): New function.
8799 (s390x_emit_void_call_2): New function.
8800 (s390x_emit_eq_goto): New function.
8801 (s390x_emit_ne_goto): New function.
8802 (s390x_emit_lt_goto): New function.
8803 (s390x_emit_le_goto): New function.
8804 (s390x_emit_gt_goto): New function.
8805 (s390x_emit_ge_goto): New function.
8806 (s390_emit_ops): New function.
8807 (struct linux_target_ops): Fill in emit_ops hook.
8809 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8812 * Makefile.in: Add s390 IPA files.
8813 * configure.srv: Build IPA for s390.
8814 * linux-s390-ipa.c: New file.
8815 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8816 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8817 (tdesc_s390_linux32): Likewise.
8818 (init_registers_s390_linux32v1): Likewise.
8819 (tdesc_s390_linux32v1): Likewise.
8820 (init_registers_s390_linux32v2): Likewise.
8821 (tdesc_s390_linux32v2): Likewise.
8822 (init_registers_s390_linux64): Likewise.
8823 (tdesc_s390_linux64): Likewise.
8824 (init_registers_s390_linux64v1): Likewise.
8825 (tdesc_s390_linux64v1): Likewise.
8826 (init_registers_s390_linux64v2): Likewise.
8827 (tdesc_s390_linux64v2): Likewise.
8828 (init_registers_s390_te_linux64): Likewise.
8829 (tdesc_s390_te_linux64): Likewise.
8830 (init_registers_s390_vx_linux64): Likewise.
8831 (tdesc_s390_vx_linux64): Likewise.
8832 (init_registers_s390_tevx_linux64): Likewise.
8833 (tdesc_s390_tevx_linux64): Likewise.
8834 (init_registers_s390x_linux64): Likewise.
8835 (tdesc_s390x_linux64): Likewise.
8836 (init_registers_s390x_linux64v1): Likewise.
8837 (tdesc_s390x_linux64v1): Likewise.
8838 (init_registers_s390x_linux64v2): Likewise.
8839 (tdesc_s390x_linux64v2): Likewise.
8840 (init_registers_s390x_te_linux64): Likewise.
8841 (tdesc_s390x_te_linux64): Likewise.
8842 (init_registers_s390x_vx_linux64): Likewise.
8843 (tdesc_s390x_vx_linux64): Likewise.
8844 (init_registers_s390x_tevx_linux64): Likewise.
8845 (tdesc_s390x_tevx_linux64): Likewise.
8846 (have_hwcap_s390_vx): New static variable.
8847 (s390_arch_setup): Fill have_hwcap_s390_vx.
8848 (s390_get_thread_area): New function.
8849 (s390_ft_entry_gpr_esa): New const.
8850 (s390_ft_entry_gpr_zarch): New const.
8851 (s390_ft_entry_misc): New const.
8852 (s390_ft_entry_fr): New const.
8853 (s390_ft_entry_vr): New const.
8854 (s390_ft_main_31): New const.
8855 (s390_ft_main_64): New const.
8856 (s390_ft_exit_fr): New const.
8857 (s390_ft_exit_vr): New const.
8858 (s390_ft_exit_misc): New const.
8859 (s390_ft_exit_gpr_esa): New const.
8860 (s390_ft_exit_gpr_zarch): New const.
8861 (append_insns): New function.
8862 (s390_relocate_instruction): New function.
8863 (s390_install_fast_tracepoint_jump_pad): New function.
8864 (s390_get_min_fast_tracepoint_insn_len): New function.
8865 (s390_get_ipa_tdesc_idx): New function.
8866 (struct linux_target_ops): Wire in the above functions.
8867 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8868 * linux-s390-tdesc.h: New file.
8870 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8872 * linux-s390-low.c (s390_supports_tracepoints): New function.
8873 (struct linux_target_ops): Fill supports_tracepoints hook.
8875 2016-03-18 Yao Qi <yao.qi@linaro.org>
8877 * linux-low.c (lwp_signal_can_be_delivered): New function.
8878 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8880 2016-03-18 Yao Qi <yao.qi@linaro.org>
8882 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8883 0 if signal is enqueued. Remove 'signal' from one debugging
8884 message. Move one debugging message to some lines below.
8885 Remove code setting 'signal' to 0.
8887 2016-03-18 Yao Qi <yao.qi@linaro.org>
8889 * linux-low.c (linux_low_filter_event): Remove redundant
8890 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8892 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8894 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8895 (struct linux_target_ops): Wire in the above.
8897 2016-03-03 Yao Qi <yao.qi@linaro.org>
8899 * linux-low.c: Update comments to start_step_over.
8901 2016-03-03 Yao Qi <yao.qi@linaro.org>
8904 * linux-low.c (handle_extended_wait): Set child suspended
8905 if event_lwp->bp_reinsert isn't zero.
8907 2016-03-02 Yao Qi <yao.qi@linaro.org>
8909 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
8910 enqueue_pending_signal.
8912 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
8914 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
8917 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8919 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
8920 (s390_regmap_3264) [!__s390x__]: New global.
8921 (s390_collect_ptrace_register): Skip map entries containing -1.
8922 (s390_supply_ptrace_register): Ditto.
8923 (s390_fill_gprs_high): New function.
8924 (s390_store_gprs_high): New function.
8925 (s390_regsets): Add NT_S390_HIGH_GPRS.
8926 (s390_get_hwcap): Enable on 31-bit.
8927 (have_hwcap_s390_high_gprs): Enable on 31-bit.
8928 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
8929 Detect NT_S390_HIGH_GPRS.
8930 (s390_usrregs_info_3264): Enable on 31-bit.
8931 (s390_regs_info): Enable regs_info_3264 on 31-bit.
8932 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
8934 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
8937 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
8938 * configure.srv: Ditto.
8939 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
8940 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
8941 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
8942 (init_registers_amd64_linux): Remove prototype.
8943 (tdesc_amd64_linux): Remove declaration.
8944 (get_ipa_tdesc): New function.
8945 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8946 initialize remaining tdescs.
8947 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
8948 (init_registers_i386_linux): Remove prototype.
8949 (tdesc_i386_linux): Remove declaration.
8950 (get_ipa_tdesc): New function.
8951 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
8952 initialize remaining tdescs.
8953 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
8954 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
8955 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
8956 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
8957 (x86_get_ipa_tdesc_idx): New function.
8958 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
8959 * linux-x86-tdesc.h: New file.
8960 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
8961 (target_get_ipa_tdesc_idx): New macro.
8962 * tracepoint.c (ipa_tdesc_idx): New macro.
8963 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
8964 (symbol_list): Add ipa_tdesc_idx.
8965 (cmd_qtstart): Write ipa_tdesc_idx in the target.
8966 (ipa_tdesc): Remove.
8967 (ipa_tdesc_idx): New variable.
8968 (get_context_regcache): Use get_ipa_tdesc.
8969 (gdb_collect): Ditto.
8971 * tracepoint.h (get_ipa_tdesc): New prototype.
8972 (ipa_tdesc): Remove.
8974 2016-02-24 Pedro Alves <palves@redhat.com>
8976 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
8977 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
8978 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
8979 Factor out common code between the USE_SIGTRAP_SIGINFO and
8980 !USE_SIGTRAP_SIGINFO blocks.
8981 (linux_low_filter_event): Call save_stop_reason instead of
8982 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
8984 (linux_wait_1): Update comments.
8986 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
8988 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
8989 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
8990 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
8991 ppc_insert_point, ppc_remove_point.
8993 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
8995 * linux-s390-low.c (s390_supports_z_point_type): New function.
8996 (struct linux_target_ops): Wire s390_supports_z_point_type in.
8998 2016-02-16 Yao Qi <yao.qi@linaro.org>
9000 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9001 PC. Get pc from regcache_read_pc.
9003 2016-02-12 Yao Qi <yao.qi@linaro.org>
9005 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9006 or linux_get_pc_32bit.
9007 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9009 2016-02-12 Yao Qi <yao.qi@linaro.org>
9011 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9012 arm_linux_get_next_pcs_fixup.
9014 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9016 * tracepoint.c (x_tracepoint_action_download): Change
9017 write_inferior_data_ptr to write_inferior_data_pointer.
9018 (cmd_qtstart): Likewise.
9019 (write_inferior_data_ptr): Remove.
9020 (download_agent_expr): Change write_inferior_data_ptr to
9021 write_inferior_data_pointer.
9022 (download_tracepoint_1): Likewise.
9023 (download_tracepoint): Likewise.
9024 (download_trace_state_variables): Likewise.
9026 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9027 Marcin Kościelnicki <koriakin@0x04.net>
9029 * tracepoint.c (struct tracepoint_action_ops): Remove.
9030 (struct tracepoint_action): Remove ops.
9031 (m_tracepoint_action_download, r_tracepoint_action_download)
9032 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9033 size and offset accordingly.
9034 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9035 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9036 (tracepoint_action_send, tracepoint_action_download): New functions.
9037 Helpers for trace action handlers.
9038 (add_tracepoint_action): Remove setup actions ops.
9039 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9041 2016-02-10 Yao Qi <yao.qi@linaro.org>
9043 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9045 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9047 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9049 * configure: Regenerate.
9051 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9053 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9054 void * to gdb_byte *.
9055 * linux-low.c (siginfo_fixup): Likewise.
9056 (linux_xfer_siginfo): Likewise.
9057 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9059 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9061 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9063 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9065 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9067 * linux-x86-low.c [__x86_64__]: Include
9068 "nat/amd64-linux-siginfo.h".
9069 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9070 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9071 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9072 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9073 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9074 (cpt_si_fd, si_timerid, si_overrun): Move from
9075 nat/amd64-linux-siginfo.c.
9076 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9078 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9080 * server.c (skip_to_semicolon): Remove.
9081 (process_point_options): Use strchrnul instead of
9084 2016-01-26 Yao Qi <yao.qi@linaro.org>
9086 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9087 * linux-low.c (install_software_single_step_breakpoints): Don't
9088 call regcache_read_pc.
9089 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9092 2016-01-26 Yao Qi <yao.qi@linaro.org>
9094 * linux-low.c (install_software_single_step_breakpoints): Call
9095 regcache_read_pc instead of get_pc.
9097 2016-01-26 Yao Qi <yao.qi@linaro.org>
9099 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9100 (unblock_async_io): Rename to ...
9101 (block_unblock_async_io): ... it. New function.
9102 (enable_async_io): Don't install SIGIO handler. Unblock it
9104 (disable_async_io): Don't ignore SIGIO. Block it instead.
9105 (initialize_async_io): Install SIGIO handler. Don't call
9108 2016-01-26 Yao Qi <yao.qi@linaro.org>
9110 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9111 first character is '\003', call *the_target->request_interrupt.
9113 2016-01-25 Yao Qi <yao.qi@linaro.org>
9115 * remote-utils.c (new_thread_notify): Remove.
9116 (dead_thread_notify): Likewise.
9117 * remote-utils.h (new_thread_notify): Remove declaration.
9118 (dead_thread_notify): Likewise.
9120 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9122 * gdb.trace/pending.exp: Fix expected message on continue.
9124 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9126 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9127 it works properly on big-endian machines where sizeof (CORE_ADDR)
9130 2016-01-21 Pedro Alves <palves@redhat.com>
9132 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9133 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9134 * configure: Regenerate.
9136 2016-01-21 Yao Qi <yao.qi@linaro.org>
9138 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9139 is_thumb and set it according to CPSR saved on the stack.
9140 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9141 arm_sigreturn_next_pc.
9143 2016-01-18 Yao Qi <yao.qi@linaro.org>
9145 * linux-low.c (linux_set_pc_64bit): New function.
9146 (linux_get_pc_64bit): New function.
9147 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9149 * linux-sparc-low.c (debug_threads): Remove declaration.
9150 (sparc_get_pc): Remove.
9151 (the_low_target): Use linux_get_pc_64bit instead of
9153 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9154 (the_low_target): Use linux_get_pc_64bit and
9157 2016-01-18 Yao Qi <yao.qi@linaro.org>
9159 * linux-arm-low.c (debug_threads): Remove declaration.
9160 (arm_get_pc, arm_set_pc): Remove.
9161 (the_low_target): Use linux_get_pc_32bit and
9163 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9164 (the_low_target): Use linux_get_pc_32bit and
9166 * linux-cris-low.c (debug_threads): Remove declaration.
9167 (cris_get_pc, cris_set_pc,): Remove.
9168 (the_low_target): Use linux_get_pc_32bit and
9170 * linux-crisv32-low.c (debug_threads): Remove declaration.
9171 (cris_get_pc, cris_set_pc): Remove.
9172 (the_low_target): Use linux_get_pc_32bit and
9174 * linux-low.c: Include inttypes.h.
9175 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9176 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9177 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9178 (the_low_target): Use linux_get_pc_32bit and
9180 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9181 (the_low_target): Use linux_get_pc_32bit and
9183 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9184 (the_low_target): Use linux_get_pc_32bit and
9186 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9187 (the_low_target): Use linux_get_pc_32bit and
9189 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9190 (the_low_target): Use linux_get_pc_32bit and
9193 2016-01-18 Gary Benson <gbenson@redhat.com>
9195 * configure.ac (AC_FUNC_FORK): New check.
9196 * config.in: Regenerate.
9197 * configure: Likewise.
9199 2016-01-14 Yao Qi <yao.qi@linaro.org>
9201 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9202 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9203 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9204 arm_get_next_pcs_ctor.
9206 2016-01-12 Josh Stone <jistone@redhat.com>
9207 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9209 * inferiors.h: Include "gdb_vecs.h".
9210 (struct process_info): Add syscalls_to_catch.
9211 * inferiors.c (remove_process): Free syscalls_to_catch.
9212 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9213 syscall_return stops.
9214 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9215 * server.c (handle_general_set): Handle QCatchSyscalls.
9216 (handle_query): Report support for QCatchSyscalls.
9217 * target.h (struct target_ops): Add supports_catch_syscall.
9218 (target_supports_catch_syscall): New macro.
9219 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9220 (struct lwp_info): Add syscall_state.
9221 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9222 Maintain syscall_state and syscalls_to_catch across exec.
9223 (get_syscall_trapinfo): New function, proxy to the_low_target.
9224 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9225 (linux_low_filter_event): Toggle syscall_state entry/return for
9226 syscall traps, and set it ignored for all others.
9227 (gdb_catching_syscalls_p): New function.
9228 (gdb_catch_this_syscall_p): New function.
9229 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9230 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9231 (linux_supports_catch_syscall): New function.
9232 (linux_target_ops): Install it.
9233 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9234 (the_low_target): Install it.
9236 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9238 * acinclude.m4: Include new ../warning.m4 file.
9239 * configure: Regenerated.
9240 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9242 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9244 * ax.c (is_goto_target): Mark static.
9245 * linux-low.c (register_addr): Likewise.
9246 (linux_fetch_registers, linux_store_registers): Likewise.
9247 * mem-break.c (any_persistent_commands): Fix old prototype.
9248 (add_commands_to_breakpoint): Mark static.
9249 * regcache.c (find_register_by_name): Delete unused func.
9250 * remote-utils.c (hex_or_minus_one): Mark static.
9251 * server.c (monitor_show_help): Mark static.
9252 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9253 handle_v_requests): Likewise.
9255 2016-01-12 Pedro Alves <palves@redhat.com>
9257 Remove use of the registered trademark symbol throughout.
9259 2016-01-08 Yao Qi <yao.qi@linaro.org>
9261 * remote-utils.c (getpkt): If c is '\003', call target hook
9264 2016-01-06 Yao Qi <yao.qi@linaro.org>
9266 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9267 linux-aarch32-low.c.
9268 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9269 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9270 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9271 (thumb2_breakpoint): Declare.
9272 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9273 linux-aarch32-low.h.
9274 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9275 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9276 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9278 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9280 * gdbreplay.c (gdbreplay_version): Change copyright year in
9282 * server.c (gdbserver_version): Likewise.
9284 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9286 * server.c (crc32_table): Delete.
9287 (crc32): Use libiberty's xcrc32 function.
9289 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9291 * lynx-low.c (lynx_delete_thread_callback): New function.
9292 (lynx_mourn): Properly delete our process and all of its
9293 threads. Remove call to clear_inferiors.
9295 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9297 * target.c (thread_search_callback): Add check that
9298 the thread_stopped target callback is not NULL before
9301 2015-12-21 Yao Qi <yao.qi@linaro.org>
9303 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9306 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9308 * server.c (handle_query): Call target_supports_software_single_step.
9310 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9312 * linux-low.c (single_step): New function.
9313 (linux_resume_one_lwp_throw): Call single_step.
9314 (start_step_over): Likewise.
9316 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9318 * Makefile.in (SFILES): Append arch/arm-linux.c,
9319 arch/arm-get-next-pcs.c.
9320 (arm-linux.o): New rule.
9321 (arm-get-next-pcs.o): New rule.
9322 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9324 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9325 to linux-aarch32-low.c.
9326 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9327 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9328 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9329 (thumb2_breakpoint_len): Likewise.
9330 (arm_is_thumb_mode): Make non-static.
9331 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9332 from linux-aarch32-low.c.
9333 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9334 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9335 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9336 (thumb2_breakpoint_len): Likewise.
9337 (arm_is_thumb_mode): New declaration.
9338 * linux-arm-low.c: Include arch/arm-linux.h
9339 aarch/arm-get-next-pcs.h, sys/syscall.h.
9340 (get_next_pcs_ops): New struct.
9341 (get_next_pcs_addr_bits_remove): New function.
9342 (get_next_pcs_is_thumb): New function.
9343 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9344 (arm_sigreturn_next_pc): Likewise.
9345 (get_next_pcs_syscall_next_pc): Likewise.
9346 (arm_gdbserver_get_next_pcs): Likewise.
9347 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9349 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9350 * server.h: Include gdb_vecs.h.
9352 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9354 * Makefile.in (SFILES): Append common/common-regcache.c.
9355 (OBS): Append common-regcache.o.
9356 (common-regcache.o): New rule.
9357 * regcache.c (init_register_cache): Initialize cache to
9359 (regcache_raw_read_unsigned): New function.
9360 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9361 register_status enum.
9363 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9365 * linux-aarch64-low.c (the_low_targets): Rename
9366 breakpoint_reinsert_addr to get_next_pcs.
9367 * linux-arm-low.c (the_low_targets): Likewise.
9368 * linux-bfin-low.c (the_low_targets): Likewise.
9369 * linux-cris-low.c (the_low_targets): Likewise.
9370 * linux-crisv32-low.c (the_low_targets): Likewise.
9371 * linux-low.c (can_software_single_step): Likewise.
9372 (install_software_single_step_breakpoints): New function.
9373 (start_step_over): Use install_software_single_step_breakpoints.
9374 * linux-low.h: New CORE_ADDR vector.
9375 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9377 * linux-mips-low.c (the_low_targets): Likewise.
9378 * linux-nios2-low.c (the_low_targets): Likewise.
9379 * linux-sparc-low.c (the_low_targets): Likewise.
9381 2015-12-17 Pedro Alves <palves@redhat.com>
9383 * linux-low.c (linux_kill_one_lwp): Remove references to
9385 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9387 (linux_init_signals): Delete.
9388 (initialize_low): Adjust.
9389 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9391 2015-12-16 Pedro Alves <palves@redhat.com>
9393 * configure.ac (compiler warning flags): When testing a
9394 -Wno-foo option, check whether -Wfoo works instead.
9395 * configure: Regenerate.
9397 2015-12-11 Don Breazeal <donb@codesourcery.com>
9399 * server.c (process_serial_event): Don't exit from gdbserver
9400 in remote mode if there are still active inferiors.
9402 2015-12-11 Yao Qi <yao.qi@linaro.org>
9404 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9405 arm_breakpoint_at if the process is 32-bit.
9407 2015-12-11 Yao Qi <yao.qi@linaro.org>
9409 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9412 2015-12-07 Yao Qi <yao.qi@linaro.org>
9414 * configure.srv: Append arm.o to srv_tgtobj for
9415 aarch64*-*-linux* target.
9416 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9417 from linux-arm-low.c.
9418 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9419 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9420 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9421 (thumb2_breakpoint_len): Likewise.
9422 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9423 (arm_breakpoint_kinds): Likewise.
9424 (arm_breakpoint_kind_from_pc): Likewise.
9425 (arm_sw_breakpoint_from_kind): Likewise.
9426 (arm_breakpoint_kind_from_current_state): Likewise.
9427 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9428 (arm_sw_breakpoint_from_kind): Declare.
9429 (arm_breakpoint_kind_from_current_state): Declare.
9430 (arm_breakpoint_at): Declare.
9431 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9432 arm_sw_breakpoint_from_kind if process is 32-bit.
9433 (aarch64_breakpoint_kind_from_pc): New function.
9434 (aarch64_breakpoint_kind_from_current_state): New function.
9435 (the_low_target): Initialize fields breakpoint_kind_from_pc
9436 and breakpoint_kind_from_current_state.
9437 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9438 linux-aarch32-low.c.
9439 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9440 (arm_breakpoint, arm_breakpoint_len): Likewise.
9441 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9442 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9443 (arm_is_thumb_mode): Likewise.
9444 (arm_breakpoint_at): Likewise.
9445 (arm_breakpoint_kind_from_pc): Likewise.
9446 (arm_sw_breakpoint_from_kind): Likewise.
9447 (arm_breakpoint_kind_from_current_state): Likewise.
9450 2015-08-04 Yao Qi <yao.qi@linaro.org>
9452 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9453 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9454 * server.c (extended_protocol): Remove "static".
9455 * server.h (extended_protocol): Declare it.
9457 2015-12-04 Josh Stone <jistone@redhat.com>
9459 * target.h (struct target_ops) <arch_setup>: Rename to ...
9460 (struct target_ops) <post_create_inferior>: ... this.
9461 (target_arch_setup): Rename to ...
9462 (target_post_create_inferior): ... this, calling post_create_inferior.
9463 * server.c (start_inferior): Update target_arch_setup calls to
9464 target_post_create_inferior.
9465 * linux-low.c (linux_low_ptrace_options): Forward declare.
9466 (linux_arch_setup): Update its comment for general use.
9467 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9468 (struct linux_target_ops): Use linux_post_create_inferior.
9469 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9470 to post_create_inferior.
9471 * nto-low.c (struct nto_target_ops): Likewise.
9472 * spu-low.c (struct spu_target_ops): Likewise.
9473 * win32-low.c (struct win32_target_ops): Likewise.
9475 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9477 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9479 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9481 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9482 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9483 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9484 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9485 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9486 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9487 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9488 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9489 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9490 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9491 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9492 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9494 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9496 * linux-low.c (linux_look_up_symbols): Don't call
9497 linux_supports_traceclone.
9498 * linux-low.h (thread_db_init): Remove use_events argument.
9499 * thread-db.c (thread_db_use_event): Remove global variable.
9500 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9501 (struct thread_db) <td_create_bp>: Remove field.
9502 (thread_db_create_event): Remove function.
9503 (thread_db_enable_reporting): Likewise.
9504 (find_one_thread): Don't check for thread_db_use_events.
9505 (attach_thread): Likewise.
9506 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9507 (try_thread_db_load_1): Don't check for thread_db_use_events.
9508 (thread_db_init): Remove use_events argument and thread events
9510 (remove_thread_event_breakpoints): Remove function.
9511 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9513 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9515 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9517 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9518 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9519 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9520 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9521 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9523 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9525 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9526 * linux-low.c (can_hardware_single_step): Use
9527 supports_hardware_single_step.
9528 (can_software_single_step): New function.
9529 (start_step_over): Call can_software_single_step.
9530 (linux_supports_hardware_single_step): New function.
9531 (struct target_ops) <supports_software_single_step>: Initialize.
9532 * linux-low.h (struct linux_target_ops)
9533 <supports_hardware_single_step>: Initialize.
9534 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9535 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9536 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9537 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9538 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9539 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9540 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9541 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9542 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9543 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9545 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9546 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9548 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9549 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9550 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9552 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9553 * target.h (struct target_ops): <supports_software_single_step>:
9555 (target_supports_software_single_step): New macro.
9557 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9559 * linux-low.c (linux_wait_1): Fix pc advance condition.
9560 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9561 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9563 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9565 * linux-arm-low.c (arm_is_thumb_mode): New function.
9566 (arm_breakpoint_at): Use arm_is_thumb_mode.
9567 (arm_breakpoint_kind_from_current_state): New function.
9568 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9570 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9571 (linux_breakpoint_kind_from_current_state): New function.
9572 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9573 * linux-low.h (struct linux_target_ops)
9574 <breakpoint_kind_from_current_state>: New field.
9575 * target.h (struct target_ops): Likewise.
9576 (target_breakpoint_kind_from_current_state): New macro.
9578 2015-11-30 Pedro Alves <palves@redhat.com>
9580 * linux-low.c (linux_resume): Wake up the event loop before
9583 2015-11-30 Pedro Alves <palves@redhat.com>
9585 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9587 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9589 * target.c (struct thread_search): New structure.
9590 (thread_search_callback): New function.
9591 (prev_general_thread): New global.
9592 (prepare_to_access_memory, done_accessing_memory): New functions.
9593 * target.h (prepare_to_access_memory, done_accessing_memory):
9594 Replace macros with function declarations.
9596 2015-11-30 Pedro Alves <palves@redhat.com>
9599 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9600 report TARGET_WAITKIND_NO_RESUMED.
9601 * remote-utils.c (prepare_resume_reply): Handle
9602 TARGET_WAITKIND_NO_RESUMED.
9603 * server.c (report_no_resumed): New global.
9604 (handle_query) <qSupported>: Handle "no-resumed+". Report
9605 "no-resumed+" support.
9606 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9607 return error if the client doesn't support no-resumed events.
9608 (push_stop_notification): New function.
9609 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9610 events if the client supports them.
9612 2015-11-30 Pedro Alves <palves@redhat.com>
9614 * linux-low.c (thread_still_has_status_pending_p): Don't check
9616 (lwp_resumed): New function.
9617 (status_pending_p_callback): Return early if the LWP is not
9618 supposed to be resumed.
9620 2015-11-30 Pedro Alves <palves@redhat.com>
9622 * linux-low.c (handle_extended_wait): Assert that the LWP's
9623 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9624 thread create events, leave the new child's status pending.
9625 (linux_low_filter_event): If GDB wants to hear about thread exit
9626 events, leave the LWP marked dead and don't delete it.
9627 (linux_wait_for_event_filtered): Don't check for thread exit.
9628 (filter_exit_event): New function.
9629 (linux_wait_1): Use it, when returning an exit event.
9630 (linux_resume_one_lwp_throw): Assert that the LWP's
9631 waitstatus is TARGET_WAITKIND_IGNORE.
9632 * remote-utils.c (prepare_resume_reply): Handle
9633 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9634 * server.c (report_thread_events): New global.
9635 (handle_general_set): Handle QThreadEvents.
9636 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9637 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9638 TARGET_WAITKIND_THREAD_EXITED.
9639 * server.h (report_thread_events): Declare.
9641 2015-11-30 Pedro Alves <palves@redhat.com>
9643 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9644 the thread's last_resume_kind was resume_stop.
9646 2015-11-30 Pedro Alves <palves@redhat.com>
9648 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9651 2015-11-30 Pedro Alves <palves@redhat.com>
9653 * server.c (handle_v_requests): Handle vCtrlC.
9655 2015-11-30 Pedro Alves <palves@redhat.com>
9657 * gdbthread.h (find_any_thread_of_pid): Declare.
9658 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9660 * server.c (handle_query): If current_thread is NULL, look for
9661 another thread of the selected process.
9663 2015-11-26 Daniel Colascione <dancol@dancol.org>
9664 Simon Marchi <simon.marchi@ericsson.com>
9666 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9667 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9669 * target.h (struct target_ops) <thread_name>: New field.
9670 (target_thread_name): New macro.
9672 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9674 * regcache.h (regcache_invalidate_pid): Add declaration.
9675 * regcache.c (regcache_invalidate_pid): New function, extracted
9676 from regcache_invalidate.
9677 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9678 Add trivial documentation comment.
9679 * lynx-low.c: Use regcache_invalidate_pid instead of
9680 regcache_invalidate.
9682 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9684 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9685 and Elf64_auxv_t if the target is Android.
9687 2015-11-22 Doug Evans <xdje42@gmail.com>
9689 * target.h: #include <sys/types.h>.
9691 2015-11-19 Pedro Alves <palves@redhat.com>
9693 * linux-low.c (linux_process_qsupported): Change prototype.
9695 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9697 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9698 and adjust to loop over all features.
9699 * server.c (handle_query) <qSupported>: Adjust to call
9700 target_process_qsupported once, passing it a vector of unprocessed
9702 * target.h (struct target_ops) <process_qsupported>: Change
9704 (target_process_qsupported): Adjust.
9706 2015-11-19 Pedro Alves <palves@redhat.com>
9708 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9710 * configure: Regenerate.
9712 2015-11-19 Pedro Alves <palves@redhat.com>
9714 * configure: Regenerate.
9716 2015-11-19 Yao Qi <yao.qi@linaro.org>
9718 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9721 2015-11-19 Yao Qi <yao.qi@linaro.org>
9723 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9724 (struct aarch64_operand): Move enum out.
9726 2015-11-19 Yao Qi <yao.qi@linaro.org>
9728 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9729 struct user_fpsimd_state *.
9730 (aarch64_store_fpregset): Likewise.
9732 2015-11-19 Yao Qi <yao.qi@linaro.org>
9734 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9735 struct user_pt_regs *.
9736 (aarch64_store_gregset): Likewise.
9738 2015-11-18 Pedro Alves <palves@redhat.com>
9740 * Makefile.in (all_object_files): Add $IPA_OBJS.
9742 2015-11-17 Pedro Alves <palves@redhat.com>
9744 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9745 GDB_SIGNAL_0 and gdb_signal_to_string.
9747 2015-11-17 Pedro Alves <palves@redhat.com>
9749 * win32-low.c (handle_output_debug_string): Remove parameter.
9750 (win32_kill): Remove our_status local and adjust call to
9751 handle_output_debug_string.
9752 (get_child_debug_event): Adjust call to
9753 handle_output_debug_string.
9755 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9757 * linux-mips-low.c (mips_fill_gregset): Add cast.
9758 (mips_store_gregset): Likewise.
9759 (mips_fill_fpregset): Likewise.
9760 (mips_store_fpregset): Likewise.
9762 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9764 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9767 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9769 * linux-mips-low.c (mips_linux_new_thread): Change type of
9770 watch_type to enum target_hw_bp_type.
9772 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9774 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9775 Change return type to arm_hwbp_type.
9777 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9779 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9780 (arm_store_gregset): Likewise.
9781 * linux-arm-low.c (arm_get_hwcap): Likewise.
9782 (arm_read_description): Likewise.
9784 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9786 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9788 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9790 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9791 (ppc_fill_vsxregset): Likewise.
9792 (ppc_store_vsxregset): Likewise.
9793 (ppc_fill_vrregset): Likewise.
9794 (ppc_store_vrregset): Likewise.
9795 (ppc_fill_evrregset): Likewise.
9796 (ppc_store_evrregset): Likewise.
9798 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9800 * linux-ppc-low.c (ppc_usrregs_info): Remove
9801 forward-declaration.
9802 (ppc_arch_setup): Move lower in file.
9804 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9806 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9807 (ps_pdwrite): Likewise.
9809 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9811 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9812 to after assert checks.
9814 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9816 * proc-service.c (ps_pdread): Add/adjust casts.
9817 (ps_pdwrite): Add/adjust casts.
9819 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9821 * server.c (handle_search_memory_1): Cast return value of
9824 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9826 * server.c (write_qxfer_response): Change type of data to
9829 2015-10-29 Pedro Alves <palves@redhat.com>
9831 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9833 2015-10-29 Pedro Alves <palves@redhat.com>
9835 * tracepoint.c (clear_installed_tracepoints): Add casts.
9837 2015-10-29 Pedro Alves <palves@redhat.com>
9839 * server.c (handle_v_cont, process_serial_event): Add enum
9840 gdb_signal casts to signal parsing code.
9842 2015-10-29 Pedro Alves <palves@redhat.com>
9844 * linux-low.h (NULL_REGSET): Define.
9845 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9846 * linux-arm-low.c (arm_regsets): Likewise.
9847 * linux-crisv32-low.c (cris_regsets): Likewise.
9848 * linux-m68k-low.c (m68k_regsets): Likewise.
9849 * linux-mips-low.c (mips_regsets): Likewise.
9850 * linux-nios2-low.c (nios2_regsets): Likewise.
9851 * linux-ppc-low.c (ppc_regsets): Likewise.
9852 * linux-s390-low.c (s390_regsets): Likewise.
9853 * linux-sh-low.c (sh_regsets): Likewise.
9854 * linux-sparc-low.c (sparc_regsets): Likewise.
9855 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9856 * linux-tile-low.c (tile_regsets): Likewise.
9857 * linux-x86-low.c (x86_regsets): Likewise.
9858 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9860 2015-10-29 Pedro Alves <palves@redhat.com>
9862 * linux-low.h (NULL_REGSET): Define.
9863 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9864 * linux-arm-low.c (arm_regsets): Likewise.
9865 * linux-crisv32-low.c (cris_regsets): Likewise.
9866 * linux-m68k-low.c (m68k_regsets): Likewise.
9867 * linux-mips-low.c (mips_regsets): Likewise.
9868 * linux-nios2-low.c (nios2_regsets): Likewise.
9869 * linux-ppc-low.c (ppc_regsets): Likewise.
9870 * linux-s390-low.c (s390_regsets): Likewise.
9871 * linux-sh-low.c (sh_regsets): Likewise.
9872 * linux-sparc-low.c (sparc_regsets): Likewise.
9873 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9874 * linux-tile-low.c (tile_regsets): Likewise.
9875 * linux-x86-low.c (x86_regsets): Likewise.
9876 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9878 2015-10-26 Doug Evans <dje@google.com>
9880 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9882 2015-10-26 Doug Evans <dje@google.com>
9884 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9886 2015-10-26 Doug Evans <dje@google.com>
9888 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9890 (attach_thread, find_new_threads_callback): Ditto.
9892 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9894 * mem-break.h (set_breakpoint_data): Remove.
9896 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9898 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9899 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9900 (initialize_low): Remove set_breakpoint_data call.
9901 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
9902 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
9903 (initialize_low): Remove set_breakpoint_data call.
9904 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
9905 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9906 (initialize_low): Remove set_breakpoint_data call.
9908 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9910 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
9911 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
9912 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
9913 * target.h (target_breakpoint_kind_from_pc): New macro.
9915 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
9917 * linux-low.c (default_breakpoint_kind_from_pc): New function.
9918 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
9919 the default breakpoint kind.
9921 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9923 * linux-arm-low.c (arm_supports_z_point_type): Add software
9926 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9928 * linux-arm-low.c: Refactor breakpoint definitions.
9929 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
9930 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
9932 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9934 * Makefile.in: Add arm.c/o.
9935 * configure.srv: Likewise.
9936 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
9937 (arm_breakpoint_kind_from_pc): New function.
9938 (arm_sw_breakpoint_from_kind): Return proper kind.
9939 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
9941 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9943 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
9945 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
9946 (struct raw_breakpoint) <size>: Remove.
9947 (struct raw_breakpoint) <kind>: Add.
9948 (bp_size): New function.
9949 (bp_opcode): Likewise.
9950 (find_raw_breakpoint_at): Adjust for kind.
9951 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
9952 (remove_memory_breakpoint): Adjust for kind call bp_size.
9953 (set_raw_breakpoint_at): Adjust for kind.
9954 (set_breakpoint): Likewise.
9955 (set_breakpoint_at): Call breakpoint_kind_from_pc.
9956 (delete_raw_breakpoint): Adjust for kind.
9957 (delete_breakpoint): Likewise.
9958 (find_gdb_breakpoint): Likewise.
9959 (set_gdb_breakpoint_1): Likewise.
9960 (set_gdb_breakpoint): Likewise.
9961 (delete_gdb_breakpoint_1): Likewise.
9962 (delete_gdb_breakpoint): Likewise.
9963 (uninsert_raw_breakpoint): Likewise.
9964 (reinsert_raw_breakpoint): Likewise.
9965 (set_breakpoint_data): Remove.
9966 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
9967 (check_mem_read): Adjust for kind call bp_size.
9968 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
9969 (clone_one_breakpoint): Adjust for kind.
9970 * mem-break.h (set_gdb_breakpoint): Likewise.
9971 (delete_gdb_breakpoint): Likewise.
9972 * server.c (process_serial_event): Likewise.
9974 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
9976 * linux-aarch64-low.c (aarch64_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-arm-low.c (arm_breakpoint_kind_from_pc): New function.
9982 (arm_sw_breakpoint_from_kind): New function.
9983 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
9984 (struct linux_target_ops) <breakpoint>: Remove.
9985 (struct linux_target_ops) <breakpoint_len>: Remove.
9986 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9987 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9988 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
9989 (struct linux_target_ops) <breakpoint>: Remove.
9990 (struct linux_target_ops) <breakpoint_len>: Remove.
9991 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9992 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9993 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
9994 (struct linux_target_ops) <breakpoint>: Remove.
9995 (struct linux_target_ops) <breakpoint_len>: Remove.
9996 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
9997 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
9998 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
9999 and sw_breakpoint_from_kind to increment the pc.
10000 (linux_breakpoint_kind_from_pc): New function.
10001 (linux_sw_breakpoint_from_kind): New function.
10002 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10003 (initialize_low): Call breakpoint_kind_from_pc and
10004 sw_breakpoint_from_kind to replace breakpoint_data/len.
10005 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10007 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10008 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10009 (struct linux_target_ops) <breakpoint>: Remove.
10010 (struct linux_target_ops) <breakpoint_len>: Remove.
10011 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10012 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10013 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10014 (struct linux_target_ops) <breakpoint>: Remove.
10015 (struct linux_target_ops) <breakpoint_len>: Remove.
10016 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10017 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10018 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10019 (struct linux_target_ops) <breakpoint>: Remove.
10020 (struct linux_target_ops) <breakpoint_len>: Remove.
10021 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10022 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10023 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10024 (struct linux_target_ops) <breakpoint>: Remove.
10025 (struct linux_target_ops) <breakpoint_len>: Remove.
10026 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10027 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10028 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10029 (struct linux_target_ops) <breakpoint>: Remove.
10030 (struct linux_target_ops) <breakpoint_len>: Remove.
10031 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10032 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10033 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10034 (struct linux_target_ops) <breakpoint>: Remove.
10035 (struct linux_target_ops) <breakpoint_len>: Remove.
10036 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10037 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10038 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10039 (struct linux_target_ops) <breakpoint>: Remove.
10040 (struct linux_target_ops) <breakpoint_len>: Remove.
10041 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10042 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10043 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10044 (struct linux_target_ops) <breakpoint>: Remove.
10045 (struct linux_target_ops) <breakpoint_len>: Remove.
10046 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10047 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10048 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10049 (struct linux_target_ops) <breakpoint>: Remove.
10050 (struct linux_target_ops) <breakpoint_len>: Remove.
10051 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10052 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10053 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10054 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10055 (struct linux_target_ops) <breakpoint>: Remove.
10056 (struct linux_target_ops) <breakpoint_len>: Remove.
10057 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10058 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10059 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10060 (struct linux_target_ops) <breakpoint>: Remove.
10061 (struct linux_target_ops) <breakpoint_len>: Remove.
10062 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10063 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10065 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10067 * linux-cris-low.c (cris_get_pc): Remove void arg.
10069 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10071 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10074 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10076 * inferiors.c (thread_pid_matches_callback): New function.
10077 (find_thread_process): New function.
10078 (remove_thread): Reset current_thread.
10079 (remove_process): Assert threads have been removed first.
10081 2015-10-15 Yao Qi <yao.qi@linaro.org>
10083 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10085 (aarch64_remove_point): Likewise.
10086 * regcache.c (regcache_register_size): New function.
10088 2015-10-12 Yao Qi <yao.qi@linaro.org>
10090 * linux-aarch64-low.c: Update all callers as emit_load_store
10091 is renamed to aarch64_emit_load_store.
10093 2015-10-12 Yao Qi <yao.qi@linaro.org>
10095 * linux-aarch64-low.c: Update all callers of function renaming
10096 from emit_insn to aarch64_emit_insn.
10098 2015-10-12 Yao Qi <yao.qi@linaro.org>
10100 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10101 arch/aarch64-insn.h.
10102 (struct aarch64_memory_operand): Likewise.
10103 (ENCODE): Likewise.
10104 (emit_insn): Move to arch/aarch64-insn.c.
10105 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10106 (emit_load_store): Move to arch/aarch64-insn.c.
10107 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10108 (can_encode_int32): Remove.
10110 2015-10-12 Yao Qi <yao.qi@linaro.org>
10112 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10113 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10114 (aarch64_relocate_instruction): Likewise.
10115 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10116 (struct aarch64_insn_visitor): Likewise.
10118 2015-10-12 Yao Qi <yao.qi@linaro.org>
10120 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10121 (struct aarch64_insn_visitor): New.
10122 (struct aarch64_insn_relocation_data): New.
10123 (aarch64_ftrace_insn_reloc_b): New function.
10124 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10125 (aarch64_ftrace_insn_reloc_cb): Likewise.
10126 (aarch64_ftrace_insn_reloc_tb): Likewise.
10127 (aarch64_ftrace_insn_reloc_adr): Likewise.
10128 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10129 (aarch64_ftrace_insn_reloc_others): Likewise.
10131 (aarch64_relocate_instruction): Use visitor.
10133 2015-10-12 Yao Qi <yao.qi@linaro.org>
10135 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10136 int. Add argument buf.
10137 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10138 aarch64_relocate_instruction.
10140 2015-10-12 Yao Qi <yao.qi@linaro.org>
10142 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10143 argument insn. Remove local variable insn. Don't call
10144 target_read_uint32.
10145 (aarch64_install_fast_tracepoint_jump_pad): Call
10146 target_read_uint32.
10148 2015-09-30 Yao Qi <yao.qi@linaro.org>
10150 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10151 (emit_load_store_pair): Likewise.
10153 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10155 * dll.c (match_dll): Add cast(s).
10156 (unloaded_dll): Likewise.
10157 * linux-low.c (second_thread_of_pid_p): Likewise.
10158 (delete_lwp_callback): Likewise.
10159 (count_events_callback): Likewise.
10160 (select_event_lwp_callback): Likewise.
10161 (linux_set_resume_request): Likewise.
10162 * server.c (accumulate_file_name_length): Likewise.
10163 (emit_dll_description): Likewise.
10164 (handle_qxfer_threads_worker): Likewise.
10165 (visit_actioned_threads): Likewise.
10166 * thread-db.c (any_thread_of): Likewise.
10167 * tracepoint.c (same_process_p): Likewise.
10168 (match_blocktype): Likewise.
10169 (build_traceframe_info_xml): Likewise.
10171 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10173 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10175 (gdb_unparse_agent_expr): Likewise.
10176 * hostio.c (require_data): Likewise.
10177 (handle_pread): Likewise.
10178 * linux-low.c (disable_regset): Likewise.
10179 (fetch_register): Likewise.
10180 (store_register): Likewise.
10181 (get_dynamic): Likewise.
10182 (linux_qxfer_libraries_svr4): Likewise.
10183 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10184 (set_fast_tracepoint_jump): Likewise.
10185 (uninsert_fast_tracepoint_jumps_at): Likewise.
10186 (reinsert_fast_tracepoint_jumps_at): Likewise.
10187 (validate_inserted_breakpoint): Likewise.
10188 (clone_agent_expr): Likewise.
10189 * regcache.c (init_register_cache): Likewise.
10190 * remote-utils.c (putpkt_binary_1): Likewise.
10191 (decode_M_packet): Likewise.
10192 (decode_X_packet): Likewise.
10193 (look_up_one_symbol): Likewise.
10194 (relocate_instruction): Likewise.
10195 (monitor_output): Likewise.
10196 * server.c (handle_search_memory): Likewise.
10197 (handle_qxfer_exec_file): Likewise.
10198 (handle_qxfer_libraries): Likewise.
10199 (handle_qxfer): Likewise.
10200 (handle_query): Likewise.
10201 (handle_v_cont): Likewise.
10202 (handle_v_run): Likewise.
10203 (captured_main): Likewise.
10204 * target.c (write_inferior_memory): Likewise.
10205 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10206 * tracepoint.c (init_trace_buffer): Likewise.
10207 (add_tracepoint_action): Likewise.
10208 (add_traceframe): Likewise.
10209 (add_traceframe_block): Likewise.
10210 (cmd_qtdpsrc): Likewise.
10211 (cmd_qtdv): Likewise.
10212 (cmd_qtstatus): Likewise.
10213 (response_source): Likewise.
10214 (response_tsv): Likewise.
10215 (cmd_qtnotes): Likewise.
10216 (gdb_collect): Likewise.
10217 (initialize_tracepoint): Likewise.
10219 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10221 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10222 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10223 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10225 (enum aarch64_condition_codes): New enum.
10226 (w0): New static global.
10229 (struct aarch64_memory_operand) <type>: New
10230 MEMORY_OPERAND_POSTINDEX type.
10231 (postindex_memory_operand): New helper function.
10232 (emit_ret): New function.
10233 (emit_load_store_pair): New function, factored out of emit_stp
10234 with support for MEMORY_OPERAND_POSTINDEX.
10235 (emit_stp): Rewrite using emit_load_store_pair.
10236 (emit_ldp): New function.
10237 (emit_load_store): Likewise.
10238 (emit_ldr): Mention post-index instruction in comment.
10239 (emit_ldrh): New function.
10240 (emit_ldrb): New function.
10241 (emit_ldrsw): Mention post-index instruction in comment.
10242 (emit_str): Likewise.
10243 (emit_subs): New function.
10244 (emit_cmp): Likewise.
10245 (emit_and): Likewise.
10246 (emit_orr): Likewise.
10247 (emit_orn): Likewise.
10248 (emit_eor): Likewise.
10249 (emit_mvn): Likewise.
10250 (emit_lslv): Likewise.
10251 (emit_lsrv): Likewise.
10252 (emit_asrv): Likewise.
10253 (emit_mul): Likewise.
10254 (emit_sbfm): Likewise.
10255 (emit_sbfx): Likewise.
10256 (emit_ubfm): Likewise.
10257 (emit_ubfx): Likewise.
10258 (emit_csinc): Likewise.
10259 (emit_cset): Likewise.
10260 (emit_nop): Likewise.
10261 (emit_ops_insns): New helper function.
10262 (emit_pop): Likewise.
10263 (emit_push): Likewise.
10264 (aarch64_emit_prologue): New function.
10265 (aarch64_emit_epilogue): Likewise.
10266 (aarch64_emit_add): Likewise.
10267 (aarch64_emit_sub): Likewise.
10268 (aarch64_emit_mul): Likewise.
10269 (aarch64_emit_lsh): Likewise.
10270 (aarch64_emit_rsh_signed): Likewise.
10271 (aarch64_emit_rsh_unsigned): Likewise.
10272 (aarch64_emit_ext): Likewise.
10273 (aarch64_emit_log_not): Likewise.
10274 (aarch64_emit_bit_and): Likewise.
10275 (aarch64_emit_bit_or): Likewise.
10276 (aarch64_emit_bit_xor): Likewise.
10277 (aarch64_emit_bit_not): Likewise.
10278 (aarch64_emit_equal): Likewise.
10279 (aarch64_emit_less_signed): Likewise.
10280 (aarch64_emit_less_unsigned): Likewise.
10281 (aarch64_emit_ref): Likewise.
10282 (aarch64_emit_if_goto): Likewise.
10283 (aarch64_emit_goto): Likewise.
10284 (aarch64_write_goto_address): Likewise.
10285 (aarch64_emit_const): Likewise.
10286 (aarch64_emit_call): Likewise.
10287 (aarch64_emit_reg): Likewise.
10288 (aarch64_emit_pop): Likewise.
10289 (aarch64_emit_stack_flush): Likewise.
10290 (aarch64_emit_zero_ext): Likewise.
10291 (aarch64_emit_swap): Likewise.
10292 (aarch64_emit_stack_adjust): Likewise.
10293 (aarch64_emit_int_call_1): Likewise.
10294 (aarch64_emit_void_call_2): Likewise.
10295 (aarch64_emit_eq_goto): Likewise.
10296 (aarch64_emit_ne_goto): Likewise.
10297 (aarch64_emit_lt_goto): Likewise.
10298 (aarch64_emit_le_goto): Likewise.
10299 (aarch64_emit_gt_goto): Likewise.
10300 (aarch64_emit_ge_got): Likewise.
10301 (aarch64_emit_ops_impl): New static global variable.
10302 (aarch64_emit_ops): New target function, return
10303 &aarch64_emit_ops_impl.
10304 (struct linux_target_ops): Install it.
10306 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10308 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10309 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10311 * linux-aarch64-ipa.c: New file.
10312 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10314 (aarch64_get_thread_area): New target method.
10315 (extract_signed_bitfield): New helper function.
10316 (aarch64_decode_ldr_literal): New function.
10317 (enum aarch64_opcodes): New enum.
10318 (struct aarch64_register): New struct.
10319 (struct aarch64_operand): New struct.
10320 (x0): New static global.
10329 (aarch64_register): New helper function.
10330 (register_operand): Likewise.
10331 (immediate_operand): Likewise.
10332 (struct aarch64_memory_operand): New struct.
10333 (offset_memory_operand): New helper function.
10334 (preindex_memory_operand): Likewise.
10335 (enum aarch64_system_control_registers): New enum.
10336 (ENCODE): New macro.
10337 (emit_insn): New helper function.
10338 (emit_b): New function.
10339 (emit_bcond): Likewise.
10340 (emit_cb): Likewise.
10341 (emit_tb): Likewise.
10342 (emit_blr): Likewise.
10343 (emit_stp): Likewise.
10344 (emit_ldp_q_offset): Likewise.
10345 (emit_stp_q_offset): Likewise.
10346 (emit_load_store): Likewise.
10347 (emit_ldr): Likewise.
10348 (emit_ldrsw): Likewise.
10349 (emit_str): Likewise.
10350 (emit_ldaxr): Likewise.
10351 (emit_stxr): Likewise.
10352 (emit_stlr): Likewise.
10353 (emit_data_processing_reg): Likewise.
10354 (emit_data_processing): Likewise.
10355 (emit_add): Likewise.
10356 (emit_sub): Likewise.
10357 (emit_mov): Likewise.
10358 (emit_movk): Likewise.
10359 (emit_mov_addr): Likewise.
10360 (emit_mrs): Likewise.
10361 (emit_msr): Likewise.
10362 (emit_sevl): Likewise.
10363 (emit_wfe): Likewise.
10364 (append_insns): Likewise.
10365 (can_encode_int32_in): New helper function.
10366 (aarch64_relocate_instruction): New function.
10367 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10368 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10369 (struct linux_target_ops): Install aarch64_get_thread_area,
10370 aarch64_install_fast_tracepoint_jump_pad and
10371 aarch64_get_min_fast_tracepoint_insn_len.
10373 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10375 * Makefile.in (aarch64-insn.o): New rule.
10376 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10378 2015-09-21 Yao Qi <yao.qi@linaro.org>
10380 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10382 2015-09-21 Yao Qi <yao.qi@linaro.org>
10384 * tracepoint.c (max_jump_pad_size): Remove.
10386 2015-09-18 Yao Qi <yao.qi@linaro.org>
10388 * linux-aarch64-low.c: Don't include sys/uio.h.
10389 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10391 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10393 * tracepoint.c (eval_result_type): Change prototype.
10394 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10396 2015-09-15 Pedro Alves <palves@redhat.com>
10398 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10399 Check whether to report exec events instead of checking whether
10400 multiprocess is enabled.
10402 2015-09-15 Pedro Alves <palves@redhat.com>
10405 * remote-utils.c (prepare_resume_reply): Merge
10406 TARGET_WAITKIND_VFORK_DONE switch case with the
10407 TARGET_WAITKIND_FORKED case.
10409 2015-09-15 Yao Qi <yao.qi@linaro.org>
10411 * server.c (handle_query): Check string comparison using
10412 "else if" instead of "if".
10414 2015-09-15 Yao Qi <yao.qi@linaro.org>
10416 * server.c (vCont_supported): New global variable.
10417 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10418 matches. Append ";vContSupported+" to own_buf.
10419 (handle_v_requests): Append ";s;S" to own_buf if target supports
10420 hardware single step or vCont_supported is false.
10421 (capture_main): Set vCont_supported to zero.
10423 2015-09-15 Yao Qi <yao.qi@linaro.org>
10425 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10427 (linux_supports_hardware_single_step): ... New function.
10428 (linux_target_ops): Update.
10429 * lynx-low.c (lynx_target_ops): Set field
10430 supports_hardware_single_step to target_can_do_hardware_single_step.
10431 * nto-low.c (nto_target_ops): Likewise.
10432 * spu-low.c (spu_target_ops): Likewise.
10433 * win32-low.c (win32_target_ops): Likewise.
10434 * target.c (target_can_do_hardware_single_step): New function.
10435 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10436 Remove. <supports_hardware_single_step>: New field.
10437 (target_supports_conditional_breakpoints): Remove.
10438 (target_supports_hardware_single_step): New macro.
10439 (target_can_do_hardware_single_step): Declare.
10440 * server.c (handle_query): Use target_supports_hardware_single_step
10441 instead of target_supports_conditional_breakpoints.
10443 2015-09-15 Yao Qi <yao.qi@linaro.org>
10445 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10447 (struct linux_target_ops the_low_target): Install
10448 aarch64_linux_siginfo_fixup.
10450 2015-09-11 Don Breazeal <donb@codesourcery.com>
10451 Luis Machado <lgustavo@codesourcery.com>
10453 * linux-low.c (linux_mourn): Static declaration.
10454 (linux_arch_setup): Move in front of
10455 handle_extended_wait.
10456 (linux_arch_setup_thread): New function.
10457 (handle_extended_wait): Handle exec events. Call
10458 linux_arch_setup_thread. Make event_lwp argument a
10459 pointer-to-a-pointer.
10460 (check_zombie_leaders): Do not check stopped threads.
10461 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10462 (linux_low_filter_event): Add lwp and thread for exec'ing
10463 non-leader thread if leader thread has been deleted.
10464 Refactor code into linux_arch_setup_thread and call it.
10465 Pass child lwp pointer by reference to handle_extended_wait.
10466 (linux_wait_for_event_filtered): Update comment.
10467 (linux_wait_1): Prevent clobbering exec event status.
10468 (linux_supports_exec_events): New function.
10469 (linux_target_ops) <supports_exec_events>: Initialize new member.
10470 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10472 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10473 * server.c (report_exec_events): New global variable.
10474 (handle_query): Handle qSupported query for exec-events feature.
10475 (captured_main): Initialize report_exec_events.
10476 * server.h (report_exec_events): Declare new global variable.
10477 * target.h (struct target_ops) <supports_exec_events>: New
10479 (target_supports_exec_events): New macro.
10480 * win32-low.c (win32_target_ops) <supports_exec_events>:
10481 Initialize new member.
10483 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10485 * linux-low.c (linux_low_enable_btrace): Remove.
10486 (linux_target_ops): Replace linux_low_enable_btrace with
10487 linux_enable_btrace.
10489 2015-09-03 Yao Qi <yao.qi@linaro.org>
10491 * linux-aarch64-low.c (aarch64_insert_point): Call
10492 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10495 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10497 * linux-low.c (check_stopped_by_breakpoint): Use
10498 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10500 2015-08-27 Pedro Alves <palves@redhat.com>
10502 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10504 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10506 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10507 the XNEW-family equivalent.
10508 (compile_bytecodes): Likewise.
10509 * dll.c (loaded_dll): Likewise.
10510 * event-loop.c (append_callback_event): Likewise.
10511 (create_file_handler): Likewise.
10512 (create_file_event): Likewise.
10513 * hostio.c (handle_open): Likewise.
10514 * inferiors.c (add_thread): Likewise.
10515 (add_process): Likewise.
10516 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10517 * linux-arm-low.c (arm_new_process): Likewise.
10518 (arm_new_thread): Likewise.
10519 * linux-low.c (add_to_pid_list): Likewise.
10520 (linux_add_process): Likewise.
10521 (handle_extended_wait): Likewise.
10522 (add_lwp): Likewise.
10523 (enqueue_one_deferred_signal): Likewise.
10524 (enqueue_pending_signal): Likewise.
10525 (linux_resume_one_lwp_throw): Likewise.
10526 (linux_resume_one_thread): Likewise.
10527 (linux_read_memory): Likewise.
10528 (linux_write_memory): Likewise.
10529 * linux-mips-low.c (mips_linux_new_process): Likewise.
10530 (mips_linux_new_thread): Likewise.
10531 (mips_add_watchpoint): Likewise.
10532 * linux-x86-low.c (initialize_low_arch): Likewise.
10533 * lynx-low.c (lynx_add_process): Likewise.
10534 * mem-break.c (set_raw_breakpoint_at): Likewise.
10535 (set_breakpoint): Likewise.
10536 (add_condition_to_breakpoint): Likewise.
10537 (add_commands_to_breakpoint): Likewise.
10538 (clone_agent_expr): Likewise.
10539 (clone_one_breakpoint): Likewise.
10540 * regcache.c (new_register_cache): Likewise.
10541 * remote-utils.c (look_up_one_symbol): Likewise.
10542 * server.c (queue_stop_reply): Likewise.
10543 (start_inferior): Likewise.
10544 (queue_stop_reply_callback): Likewise.
10545 (handle_target_event): Likewise.
10546 * spu-low.c (fetch_ppc_memory): Likewise.
10547 (store_ppc_memory): Likewise.
10548 * target.c (set_target_ops): Likewise.
10549 * thread-db.c (thread_db_load_search): Likewise.
10550 (try_thread_db_load_1): Likewise.
10551 * tracepoint.c (add_tracepoint): Likewise.
10552 (add_tracepoint_action): Likewise.
10553 (create_trace_state_variable): Likewise.
10554 (cmd_qtdpsrc): Likewise.
10555 (cmd_qtro): Likewise.
10556 (add_while_stepping_state): Likewise.
10557 * win32-low.c (child_add_thread): Likewise.
10558 (get_image_name): Likewise.
10560 2015-08-25 Yao Qi <yao.qi@linaro.org>
10562 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10564 2015-08-25 Yao Qi <yao.qi@linaro.org>
10566 * Makefile.in (aarch64-linux.o): New rule.
10567 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10569 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10570 (aarch64_init_debug_reg_state): Make it extern.
10571 (aarch64_linux_prepare_to_resume): Remove.
10573 2015-08-25 Yao Qi <yao.qi@linaro.org>
10575 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10576 lwp_arch_private_info and ptid_of_lwp.
10578 2015-08-25 Yao Qi <yao.qi@linaro.org>
10580 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10581 Find proc_info by find_process_pid. All callers updated.
10583 2015-08-25 Yao Qi <yao.qi@linaro.org>
10585 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10587 (debug_reg_change_callback): Remove.
10588 (aarch64_notify_debug_reg_change): Remove.
10590 2015-08-25 Yao Qi <yao.qi@linaro.org>
10592 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10593 Call current_lwp_ptid.
10595 2015-08-25 Yao Qi <yao.qi@linaro.org>
10597 * linux-aarch64-low.c (debug_reg_change_callback): Use
10600 2015-08-25 Yao Qi <yao.qi@linaro.org>
10602 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10604 2015-08-25 Yao Qi <yao.qi@linaro.org>
10606 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10608 2015-08-25 Yao Qi <yao.qi@linaro.org>
10610 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10613 2015-08-25 Yao Qi <yao.qi@linaro.org>
10615 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10617 (debug_reg_change_callback): Remove argument entry and add argument
10618 lwp. Remove local variable thread. Don't print thread id in the
10619 debugging output. Don't check whether pid of thread equals to pid.
10620 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10621 iterate_over_lwps instead find_inferior.
10623 2015-08-24 Pedro Alves <palves@redhat.com>
10625 * inferiors.c (get_first_process): New function.
10626 * inferiors.h (get_first_process): New declaration.
10627 * remote-utils.c (read_ptid): Default to the first process in the
10628 list, instead of to the current thread's process.
10630 2015-08-24 Pedro Alves <palves@redhat.com>
10632 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10633 * event-loop.c: Likewise.
10634 * remote-utils.c: Likewise.
10635 * tracepoint.c: Likewise.
10637 2015-08-24 Pedro Alves <palves@redhat.com>
10639 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10642 2015-08-21 Pedro Alves <palves@redhat.com>
10644 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10645 instead of literal 1.
10647 2015-08-21 Pedro Alves <palves@redhat.com>
10649 * tdesc.c (default_description): Explicitly zero-initialize.
10651 2015-08-21 Pedro Alves <palves@redhat.com>
10654 * inferiors.c (remove_thread): Discard any pending stop reply for
10656 * server.c (remove_all_on_match_pid): Rename to ...
10657 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10659 (discard_queued_stop_replies): Change parameter to a ptid. Now
10661 (handle_v_kill, kill_inferior_callback, captured_main)
10662 (process_serial_event): Adjust.
10663 * server.h (discard_queued_stop_replies): Declare.
10665 2015-08-21 Pedro Alves <palves@redhat.com>
10667 * linux-low.c (wait_for_sigstop): Always switch to no thread
10668 selected if the previously current thread dies.
10669 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10670 process instead of the current thread's.
10671 * remote-utils.c (input_interrupt): Don't check if there's no
10673 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10674 current thread to the general thread fails, error out.
10675 (handle_qxfer_auxv, handle_qxfer_libraries)
10676 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10677 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10678 (handle_query): Check if there's a thread selected instead of
10679 checking whether there's any thread in the thread list.
10680 (handle_qxfer_threads, handle_qxfer_btrace)
10681 (handle_qxfer_btrace_conf): Don't error out early if there's no
10682 thread in the thread list.
10683 (handle_v_cont, myresume): Don't set the current thread to the
10685 (process_serial_event) <Hg handling>: Also set thread_id if the
10686 previous general thread is still alive.
10687 (process_serial_event) <g/G handling>: If setting the current
10688 thread to the general thread fails, error out.
10689 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10690 thread's lwp instead of the current thread's.
10691 * target.c (set_desired_thread): If the desired thread was not
10692 found, leave the current thread pointing to NULL. Return an int
10693 (boolean) indicating success.
10694 * target.h (set_desired_thread): Change return type to int.
10696 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10698 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10699 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10701 (ps_get_thread_area): New function.
10703 2015-08-19 Gary Benson <gbenson@redhat.com>
10705 * hostio.c (handle_pread): Do not attempt to read more data
10706 than hostio_reply_with_data can fit in a packet.
10708 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10710 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10712 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10714 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10716 2015-08-06 Pedro Alves <palves@redhat.com>
10718 * tracepoint.c (expr_eval_result): Now an int.
10720 2015-08-06 Pedro Alves <palves@redhat.com>
10722 * gdbthread.h (struct regcache): Forward declare.
10723 (struct thread_info) <regcache_data>: Now a struct regcache
10725 * inferiors.c (inferior_regcache_data)
10726 (set_inferior_regcache_data): Now work with struct regcache
10728 * inferiors.h (struct regcache): Forward declare.
10729 (inferior_regcache_data, set_inferior_regcache_data): Now work
10730 with struct regcache pointers.
10731 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10732 (free_register_cache_thread): Remove struct regcache pointer
10735 2015-08-06 Pedro Alves <palves@redhat.com>
10737 * server.c (captured_main): On error, print the exception message
10738 to stderr, and if run_once is set, throw a quit.
10740 2015-08-06 Pedro Alves <palves@redhat.com>
10742 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10743 the current thread.
10745 2015-08-06 Pedro Alves <palves@redhat.com>
10747 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10748 reading beyond the passed in buffer length.
10750 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10752 * tracepoint.c (symbol_list) <required>: Remove.
10754 2015-08-06 Pedro Alves <palves@redhat.com>
10756 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10757 count if stopping and suspending threads.
10758 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10759 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10760 (linux_detach): Complete an ongoing step-over.
10761 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10763 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10764 (linux_wait_1): If passing a signal to the inferior after
10765 finishing a step-over, unsuspend and re-resume all lwps. If we
10766 see a single-step event but the thread should be continuing, don't
10767 pass the trap to gdb.
10768 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10769 internal_error instead of gdb_assert.
10770 (enqueue_pending_signal): New function.
10771 (check_ptrace_stopped_lwp_gone): Add debug output.
10772 (start_step_over): Use internal_error instead of gdb_assert.
10773 (complete_ongoing_step_over): New function.
10774 (linux_resume_one_thread): Don't resume a suspended thread.
10775 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10778 2015-08-06 Pedro Alves <palves@redhat.com>
10780 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10781 (linux_thread_alive): Use lwp_is_marked_dead.
10782 (extended_event_reported): Delete.
10783 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10784 instead of extended_event_reported.
10785 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10787 (lwp_is_marked_dead): New function.
10788 (lwp_running): Use lwp_is_marked_dead.
10789 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10792 2015-08-06 Pedro Alves <palves@redhat.com>
10794 * linux-low.c (linux_wait_1): Move fork event output out of the
10795 !report_to_gdb check. Pass event_child->waitstatus to
10796 target_waitstatus_to_string instead of ourstatus.
10798 2015-08-04 Yao Qi <yao.qi@linaro.org>
10800 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10801 if current_thread is 32 bit.
10803 2015-08-04 Yao Qi <yao.qi@linaro.org>
10805 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10806 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10807 * server.c (extended_protocol): Remove "static".
10808 * server.h (extended_protocol): Declare it.
10810 2015-08-04 Yao Qi <yao.qi@linaro.org>
10812 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10813 both aarch64 and aarch32.
10814 (aarch64_set_pc): Likewise.
10816 2015-08-04 Yao Qi <yao.qi@linaro.org>
10818 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10819 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10820 arm-with-neon.xml to srv_xmlfiles.
10821 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10822 (is_64bit_tdesc): New function.
10823 (aarch64_linux_read_description): New function.
10824 (aarch64_arch_setup): Call aarch64_linux_read_description.
10825 (regs_info): Rename to regs_info_aarch64.
10826 (aarch64_regs_info): Return right regs_info.
10827 (initialize_low_arch): Call initialize_low_arch_aarch32.
10829 2015-08-04 Yao Qi <yao.qi@linaro.org>
10831 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10832 * linux-aarch32-low.c: New file.
10833 * linux-aarch32-low.h: New file.
10834 * linux-arm-low.c (arm_fill_gregset): Move it to
10835 linux-aarch32-low.c.
10836 (arm_store_gregset): Likewise.
10837 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10838 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10839 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10840 (regs_info): Rename to regs_info_arm.
10841 (arm_regs_info): Return regs_info_aarch32 if
10842 have_ptrace_getregset is 1 and target description is
10843 arm_with_neon or arm_with_vfpv3.
10844 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10845 Call initialize_low_arch_aarch32 instead.
10847 2015-08-04 Yao Qi <yao.qi@linaro.org>
10849 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10850 * linux-low.c: ... here.
10851 * linux-low.h (have_ptrace_getregset): Declare it.
10853 2015-08-04 Pedro Alves <palves@redhat.com>
10855 * thread-db.c (struct thread_db): Use new typedefs.
10856 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10858 (disable_thread_event_reporting): Cast result of dlsym to
10859 destination function pointer type.
10860 (thread_db_mourn): Use td_ta_delete_ftype.
10862 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10864 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10866 (CDX_BREAKPOINT): Define for R2.
10867 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10868 (the_low_target): Add comments.
10870 2015-07-30 Yao Qi <yao.qi@linaro.org>
10872 * linux-arm-low.c (arm_hwcap): Remove it.
10873 (arm_read_description): New local variable arm_hwcap. Don't
10874 set arm_hwcap to zero.
10876 2015-07-30 Yao Qi <yao.qi@linaro.org>
10878 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10879 Use regcache->tdesc instead.
10880 (arm_store_wmmxregset): Likewise.
10881 (arm_fill_vfpregset): Likewise.
10882 (arm_store_vfpregset): Likewise.
10884 2015-07-30 Yao Qi <yao.qi@linaro.org>
10886 * linux-arm-low.c: Include arch/arm.h.
10887 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10888 (arm_store_gregset): Likewise.
10890 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10892 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10893 ptrace's 4th parameter.
10895 2015-07-27 Yao Qi <yao.qi@linaro.org>
10897 * configure.srv (case aarch64*-*-linux*): Don't set
10900 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
10902 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
10904 * linux-arm-low.c: Likewise.
10905 * linux-cris-low.c: Likewise.
10906 * linux-crisv32-low.c: Likewise.
10907 * linux-low.c: Likewise.
10908 * linux-m68k-low.c: Likewise.
10909 * linux-mips-low.c: Likewise.
10910 * linux-nios2-low.c: Likewise.
10911 * linux-s390-low.c: Likewise.
10912 * linux-sparc-low.c: Likewise.
10913 * linux-tic6x-low.c: Likewise.
10914 * linux-tile-low.c: Likewise.
10915 * linux-x86-low.c: Likewise.
10917 2015-07-24 Pedro Alves <palves@redhat.com>
10919 * config.in: Regenerate.
10920 * configure: Regenerate.
10922 2015-07-24 Pedro Alves <palves@redhat.com>
10924 * acinclude.m4: Include ../ptrace.m4.
10925 * configure.ac: Call GDB_AC_PTRACE.
10926 * config.in, configure: Regenerate.
10928 2015-07-24 Yao Qi <yao.qi@linaro.org>
10930 * linux-low.c (linux_create_inferior): Remove setting to
10931 proc->priv->new_inferior.
10932 (linux_attach): Likewise.
10933 (linux_low_filter_event): Likewise.
10934 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
10936 2015-07-24 Yao Qi <yao.qi@linaro.org>
10938 * linux-low.c (linux_arch_setup): New function.
10939 (linux_low_filter_event): If proc->tdesc is NULL and
10940 proc->attached is true, call the_low_target.arch_setup.
10941 Otherwise, keep status pending, and return.
10942 (linux_resume_one_lwp_throw): Don't call get_pc if
10943 thread->while_stepping isn't NULL. Don't call
10944 get_thread_regcache if proc->tdesc is NULL.
10945 (need_step_over_p): Return 0 if proc->tdesc is NULL.
10946 (linux_target_ops): Install arch_setup.
10947 * server.c (start_inferior): Call the_target->arch_setup.
10948 * target.h (struct target_ops) <arch_setup>: New field.
10949 (target_arch_setup): New marco.
10950 * lynx-low.c (lynx_target_ops): Update.
10951 * nto-low.c (nto_target_ops): Update.
10952 * spu-low.c (spu_target_ops): Update.
10953 * win32-low.c (win32_target_ops): Update.
10955 2015-07-24 Yao Qi <yao.qi@linaro.org>
10957 * linux-low.c (linux_add_process): Don't set
10958 proc->priv->new_inferior.
10959 (linux_create_inferior): Set proc->priv->new_inferior to 1.
10960 (linux_attach): Likewise.
10962 2015-07-24 Yao Qi <yao.qi@linaro.org>
10964 * server.c (start_inferior): Code refactor.
10966 2015-07-24 Yao Qi <yao.qi@linaro.org>
10968 * server.c (process_serial_event): Set general_thread.
10970 2015-07-21 Yao Qi <yao.qi@linaro.org>
10972 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
10973 aarch64_linux_get_debug_reg_capacity.
10975 2015-07-17 Yao Qi <yao.qi@linaro.org>
10977 * Makefile.in (aarch64-linux-hw-point.o): New rule.
10978 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
10979 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
10980 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
10981 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
10982 (AARCH64_HWP_ALIGNMENT): Likewise.
10983 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
10984 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
10985 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
10986 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
10987 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
10988 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
10989 (struct aarch64_debug_reg_state): Likewise.
10990 (struct arch_lwp_info): Likewise.
10991 (aarch64_align_watchpoint): Likewise.
10992 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
10993 (aarch64_watchpoint_length): Likewise.
10994 (aarch64_point_encode_ctrl_reg): Likewise
10995 (aarch64_point_is_aligned): Likewise.
10996 (aarch64_align_watchpoint): Likewise.
10997 (aarch64_linux_set_debug_regs):
10998 (aarch64_dr_state_insert_one_point): Likewise.
10999 (aarch64_dr_state_remove_one_point): Likewise.
11000 (aarch64_handle_breakpoint): Likewise.
11001 (aarch64_handle_aligned_watchpoint): Likewise.
11002 (aarch64_handle_unaligned_watchpoint): Likewise.
11003 (aarch64_handle_watchpoint): Likewise.
11005 2015-07-17 Yao Qi <yao.qi@linaro.org>
11007 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11008 and don't aarch64_get_debug_reg_state. All callers update.
11009 (aarch64_handle_aligned_watchpoint): Likewise.
11010 (aarch64_handle_unaligned_watchpoint): Likewise.
11011 (aarch64_handle_watchpoint): Likewise.
11012 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11013 (aarch64_remove_point): Likewise.
11015 2015-07-17 Yao Qi <yao.qi@linaro.org>
11017 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11019 (aarch64_handle_unaligned_watchpoint): Likewise.
11021 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11023 Revert the previous 3 commits:
11024 Move gdb_regex* to common/
11025 Move linux_find_memory_regions_full & co.
11026 gdbserver build-id attribute generator
11028 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11029 Jan Kratochvil <jan.kratochvil@redhat.com>
11031 gdbserver build-id attribute generator.
11032 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11033 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11034 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11036 (get_dynamic): Use find_pdhr to traverse program headers.
11037 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11038 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11039 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11040 (get_hex_build_id): New.
11041 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11042 to reply XML document.
11044 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11045 Jan Kratochvil <jan.kratochvil@redhat.com>
11047 * target.c: Include target/target-utils.h and fcntl.h.
11048 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11049 (target_fileio_read_stralloc): New functions.
11051 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11053 * Makefile.in (OBS): Add gdb_regex.o.
11054 (gdb_regex.o): New.
11055 * config.in: Rebuilt.
11056 * configure: Rebuilt.
11058 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11059 Jan Kratochvil <jan.kratochvil@redhat.com>
11061 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11062 * Makefile.in (OBS): Add target-utils.o.
11063 (linux-maps.o, target-utils.o): New.
11064 * configure.srv (srv_linux_obj): Add linux-maps.o.
11066 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11068 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11069 function, return 1.
11070 (the_low_target): Install it.
11072 2015-07-14 Pedro Alves <palves@redhat.com>
11074 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11075 Instead, ignore ECHILD, and throw an error for other errnos.
11077 2015-07-10 Pedro Alves <palves@redhat.com>
11079 * event-loop.c (struct callback_event) <data>: Change type to
11080 gdb_client_data instance instead of gdb_client_data pointer.
11081 (append_callback_event): Adjust.
11083 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11085 * linux-aarch64-low.c: Add comments for each linux_target_ops
11086 method. Remove comments already covered in target_ops and
11087 linux_target_ops definitions.
11088 (the_low_target): Add comments for each unimplemented method.
11090 2015-07-09 Yao Qi <yao.qi@linaro.org>
11092 * linux-aarch64-low.c (aarch64_regmap): Remove.
11093 (aarch64_usrregs_info): Remove.
11094 (regs_info): Set field usrregs to NULL.
11096 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11098 * linux-low.c: Include "rsp-low.h"
11099 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11100 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11101 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11102 (handle_btrace_enable_pt): New.
11103 (handle_btrace_general_set): Support "pt".
11104 (handle_btrace_conf_general_set): Support "pt:size".
11106 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11108 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11111 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11113 * linux-aarch64-low.c: Remove comment about endianness.
11114 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11115 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11118 2015-06-24 Gary Benson <gbenson@redhat.com>
11120 * linux-i386-ipa.c (stdint.h): Do not include.
11121 * lynx-i386-low.c (stdint.h): Likewise.
11122 * lynx-ppc-low.c (stdint.h): Likewise.
11123 * mem-break.c (stdint.h): Likewise.
11124 * thread-db.c (stdint.h): Likewise.
11125 * tracepoint.c (stdint.h): Likewise.
11126 * win32-low.c (stdint.h): Likewise.
11128 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11130 * server.c (write_qxfer_response): Update call to
11131 remote_escape_output.
11133 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11134 Jan Kratochvil <jan.kratochvil@redhat.com>
11136 Merge multiple hex conversions.
11137 * gdbreplay.c (tohex): Rename to 'fromhex'.
11138 (logchar): Use fromhex.
11140 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11142 * server.c (handle_qxfer_libraries): Set `version' attribute for
11145 2015-06-10 Gary Benson <gbenson@redhat.com>
11147 * target.h (struct target_ops) <multifs_open>: New field.
11148 <multifs_unlink>: Likewise.
11149 <multifs_readlink>: Likewise.
11150 * linux-low.c (nat/linux-namespaces.h): New include.
11151 (linux_target_ops): Initialize the_target->multifs_open,
11152 the_target->multifs_unlink and the_target->multifs_readlink.
11153 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11154 * hostio.c (hostio_fs_pid): New static variable.
11155 (hostio_handle_new_gdb_connection): New function.
11156 (handle_setfs): Likewise.
11157 (handle_open): Use the_target->multifs_open as appropriate.
11158 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11159 (handle_readlink): Use the_target->multifs_readlink as
11161 (handle_vFile): Handle vFile:setfs packets.
11162 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11163 after target_handle_new_gdb_connection.
11165 2015-06-10 Gary Benson <gbenson@redhat.com>
11167 * configure.ac (AC_CHECK_FUNCS): Add setns.
11168 * config.in: Regenerate.
11169 * configure: Likewise.
11170 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11171 (linux-namespaces.o): New rule.
11172 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11174 2015-06-09 Gary Benson <gbenson@redhat.com>
11176 * hostio.c (handle_open): Process mode argument with
11177 fileio_to_host_mode.
11179 2015-06-01 Yao Qi <yao.qi@linaro.org>
11181 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11182 * linux-x86-low.c: Likewise.
11184 2015-05-28 Don Breazeal <donb@codesourcery.com>
11186 * linux-low.c (handle_extended_wait): Initialize
11187 thread_info.last_resume_kind for new fork children.
11189 2015-05-15 Pedro Alves <palves@redhat.com>
11191 * target.h (target_handle_new_gdb_connection): Rewrite using if
11192 wrapped in do/while.
11194 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11196 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11197 * configure, config.in: Regenerate.
11198 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11201 2015-05-12 Don Breazeal <donb@codesourcery.com>
11203 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11204 PTRACE_EVENT_VFORK_DONE.
11205 (linux_low_ptrace_options, extended_event_reported): Add vfork
11207 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11208 and "vforkdone" for RSP 'T' Stop Reply Packet.
11209 * server.h (report_vfork_events): Declare
11212 2015-05-12 Don Breazeal <donb@codesourcery.com>
11214 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11215 (the_low_target) <new_fork>: Initialize new member.
11216 * linux-arm-low.c (arm_new_fork): New function.
11217 (the_low_target) <new_fork>: Initialize new member.
11218 * linux-low.c (handle_extended_wait): Call new target function
11220 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11221 * linux-mips-low.c (mips_add_watchpoint): New function
11222 extracted from mips_insert_point.
11223 (the_low_target) <new_fork>: Initialize new member.
11224 (mips_linux_new_fork): New function.
11225 (mips_insert_point): Call mips_add_watchpoint.
11226 * linux-x86-low.c (x86_linux_new_fork): New function.
11227 (the_low_target) <new_fork>: Initialize new member.
11229 2015-05-12 Don Breazeal <donb@codesourcery.com>
11231 * linux-low.c (handle_extended_wait): Implement return value,
11232 rename argument 'event_child' to 'event_lwp', handle
11233 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11234 (linux_low_ptrace_options): New function.
11235 (linux_low_filter_event): Call linux_low_ptrace_options,
11236 use different argument fo linux_enable_event_reporting,
11237 use return value from handle_extended_wait.
11238 (extended_event_reported): New function.
11239 (linux_wait_1): Call extended_event_reported and set
11240 status to report fork events.
11241 (linux_write_memory): Add pid to debug message.
11242 (reset_lwp_ptrace_options_callback): New function.
11243 (linux_handle_new_gdb_connection): New function.
11244 (linux_target_ops): Initialize new structure member.
11245 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11246 * lynx-low.c: Initialize new structure member.
11247 * remote-utils.c (prepare_resume_reply): Implement stop reason
11248 "fork" for "T" stop message.
11249 * server.c (handle_query): Call handle_new_gdb_connection.
11250 * server.h (report_fork_events): Declare global flag.
11251 * target.h (struct target_ops) <handle_new_gdb_connection>:
11253 (target_handle_new_gdb_connection): New macro.
11254 * win32-low.c: Initialize new structure member.
11256 2015-05-12 Don Breazeal <donb@codesourcery.com>
11258 * mem-break.c (APPEND_TO_LIST): Define macro.
11259 (clone_agent_expr): New function.
11260 (clone_one_breakpoint): New function.
11261 (clone_all_breakpoints): New function.
11262 * mem-break.h: Declare new functions.
11264 2015-05-12 Don Breazeal <donb@codesourcery.com>
11266 * linux-low.c (linux_supports_fork_events): New function.
11267 (linux_supports_vfork_events): New function.
11268 (linux_target_ops): Initialize new structure members.
11269 (initialize_low): Call linux_check_ptrace_features.
11270 * lynx-low.c (lynx_target_ops): Initialize new structure
11272 * server.c (report_fork_events, report_vfork_events):
11274 (handle_query): Add new features to qSupported packet and
11276 (captured_main): Initialize new global variables.
11277 * target.h (struct target_ops) <supports_fork_events>:
11279 <supports_vfork_events>: New member.
11280 (target_supports_fork_events): New macro.
11281 (target_supports_vfork_events): New macro.
11282 * win32-low.c (win32_target_ops): Initialize new structure
11285 2015-05-12 Gary Benson <gbenson@redhat.com>
11287 * server.c (handle_qxfer_exec_file): Use current process
11290 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11292 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11293 Remove HAVE_PTRACE_GETREGS conditionals.
11294 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11295 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11297 2015-05-08 Yao Qi <yao.qi@linaro.org>
11299 * linux-low.c (linux_supports_conditional_breakpoints): New
11301 (linux_target_ops): Install new target method.
11302 * lynx-low.c (lynx_target_ops): Install NULL hook for
11303 supports_conditional_breakpoints.
11304 * nto-low.c (nto_target_ops): Likewise.
11305 * spu-low.c (spu_target_ops): Likewise.
11306 * win32-low.c (win32_target_ops): Likewise.
11307 * server.c (handle_query): Check
11308 target_supports_conditional_breakpoints.
11309 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11311 (target_supports_conditional_breakpoints): New macro.
11313 2015-05-06 Pedro Alves <palves@redhat.com>
11316 * server.c (start_inferior): If the process exits, mourn it.
11318 2015-04-21 Gary Benson <gbenson@redhat.com>
11320 * hostio.c (fileio_open_flags_to_host): Factored out to
11321 fileio_to_host_openflags in common/fileio.c. Single use
11324 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11326 * linux-xtensa-low.c (xtensa_fill_gregset)
11327 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11330 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11332 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11333 (regs_info): Replace usrregs pointer with NULL.
11335 2015-04-17 Gary Benson <gbenson@redhat.com>
11337 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11338 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11339 * server.c (handle_qxfer_exec_file): New function.
11340 (qxfer_packets): Add exec-file entry.
11341 (handle_query): Report qXfer:exec-file:read as supported packet.
11343 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11345 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11347 2015-04-09 Gary Benson <gbenson@redhat.com>
11349 * hostio-errno.c (errno_to_fileio_error): Remove function.
11350 Update caller to use remote_fileio_to_fio_error.
11352 2015-04-09 Yao Qi <yao.qi@linaro.org>
11354 * linux-low.c (linux_insert_point): Call
11355 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11356 (linux_remove_point): Call remove_memory_breakpoint if type is
11358 * linux-x86-low.c (x86_insert_point): Don't call
11359 insert_memory_breakpoint.
11360 (x86_remove_point): Don't call remove_memory_breakpoint.
11362 2015-04-01 Pedro Alves <palves@redhat.com>
11363 Cleber Rosa <crosa@redhat.com>
11365 * server.c (gdbserver_usage): Reorganize and extend the usage
11368 2015-03-24 Pedro Alves <palves@redhat.com>
11370 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11371 output. Also dump TRAP_TRACE.
11372 (linux_low_filter_event): In debug output, distinguish a
11373 resume_stop SIGSTOP from a delayed SIGSTOP.
11375 2015-03-24 Gary Benson <gbenson@redhat.com>
11377 * linux-x86-low.c (x86_linux_new_thread): Moved to
11379 (x86_linux_prepare_to_resume): Likewise.
11381 2015-03-24 Gary Benson <gbenson@redhat.com>
11383 * Makefile.in (x86-linux-dregs.o): New rule.
11384 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11385 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11386 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11387 (x86_linux_dr_get): Likewise.
11388 (x86_linux_dr_set): Likewise.
11389 (update_debug_registers_callback): Likewise.
11390 (x86_linux_dr_set_addr): Likewise.
11391 (x86_linux_dr_get_addr): Likewise.
11392 (x86_linux_dr_set_control): Likewise.
11393 (x86_linux_dr_get_control): Likewise.
11394 (x86_linux_dr_get_status): Likewise.
11395 (x86_linux_update_debug_registers): Likewise.
11397 2015-03-24 Gary Benson <gbenson@redhat.com>
11399 * linux-x86-low.c (x86_linux_update_debug_registers):
11400 New function, factored out from...
11401 (x86_linux_prepare_to_resume): ...this.
11403 2015-03-24 Gary Benson <gbenson@redhat.com>
11405 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11406 (x86_linux_dr_set): Likewise.
11407 (update_debug_registers_callback): Likewise.
11408 (x86_linux_dr_set_addr): Likewise.
11409 (x86_linux_dr_get_addr): Likewise.
11410 (x86_linux_dr_set_control): Likewise.
11411 (x86_linux_dr_get_control): Likewise.
11412 (x86_linux_dr_get_status): Likewise.
11413 (x86_linux_prepare_to_resume): Likewise.
11415 2015-03-24 Gary Benson <gbenson@redhat.com>
11417 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11418 Use perror_with_name. Pass string through gettext.
11419 (x86_linux_dr_set): Likewise.
11421 2015-03-24 Gary Benson <gbenson@redhat.com>
11423 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11424 (x86_linux_dr_set_addr): ...this.
11425 (x86_dr_low_get_addr): Rename to...
11426 (x86_linux_dr_get_addr): ...this.
11427 (x86_dr_low_set_control): Rename to...
11428 (x86_linux_dr_set_control): ...this.
11429 (x86_dr_low_get_control): Rename to...
11430 (x86_linux_dr_get_control): ...this.
11431 (x86_dr_low_get_status): Rename to...
11432 (x86_linux_dr_get_status): ...this.
11433 (x86_dr_low): Update with new function names.
11435 2015-03-24 Gary Benson <gbenson@redhat.com>
11437 * Makefile.in (x86-linux.o): New rule.
11438 * configure.srv: Add x86-linux.o to relevant targets.
11439 * linux-low.c (lwp_set_arch_private_info): New function.
11440 (lwp_arch_private_info): Likewise.
11441 * linux-x86-low.c: Include nat/x86-linux.h.
11442 (arch_lwp_info): Removed structure.
11443 (update_debug_registers_callback):
11444 Use lwp_set_debug_registers_changed.
11445 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11446 and lwp_set_debug_registers_changed.
11447 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11449 2015-03-24 Gary Benson <gbenson@redhat.com>
11451 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11452 * linux-arm-low.c (arm_new_thread): Likewise.
11453 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11454 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11455 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11456 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11458 2015-03-24 Gary Benson <gbenson@redhat.com>
11460 * linux-low.c (ptid_of_lwp): New function.
11461 (lwp_is_stopped): Likewise.
11462 (lwp_stop_reason): Likewise.
11463 * linux-x86-low.c (update_debug_registers_callback):
11464 Use lwp_is_stopped.
11465 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11468 2015-03-24 Gary Benson <gbenson@redhat.com>
11470 * linux-low.h (linux_stop_lwp): Remove declaration.
11472 2015-03-24 Gary Benson <gbenson@redhat.com>
11474 * linux-low.h: Include nat/linux-nat.h.
11475 * linux-low.c (iterate_over_lwps_args): New structure.
11476 (iterate_over_lwps_filter): New function.
11477 (iterate_over_lwps): Likewise.
11478 * linux-x86-low.c (update_debug_registers_callback):
11479 Update signature to what iterate_over_lwps expects.
11480 Remove PID check that iterate_over_lwps now performs.
11481 (x86_dr_low_set_addr): Use iterate_over_lwps.
11482 (x86_dr_low_set_control): Likewise.
11484 2015-03-24 Gary Benson <gbenson@redhat.com>
11486 * linux-x86-low.c (x86_debug_reg_state): New function.
11487 (x86_linux_prepare_to_resume): Use the above.
11489 2015-03-24 Gary Benson <gbenson@redhat.com>
11491 * linux-low.c (current_lwp_ptid): New function.
11492 * linux-x86-low.c: Include nat/linux-nat.h.
11493 (x86_dr_low_get_addr): Use current_lwp_ptid.
11494 (x86_dr_low_get_control): Likewise.
11495 (x86_dr_low_get_status): Likewise.
11497 2015-03-20 Pedro Alves <palves@redhat.com>
11499 * tracepoint.c (cmd_qtstatus): Make "str" const.
11501 2015-03-20 Pedro Alves <palves@redhat.com>
11503 * server.c (handle_general_set): Make "req_str" const.
11505 2015-03-19 Pedro Alves <palves@redhat.com>
11507 * linux-low.c (linux_resume_one_lwp): Rename to ...
11508 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11509 instead call perror_with_name.
11510 (check_ptrace_stopped_lwp_gone): New function.
11511 (linux_resume_one_lwp): Reimplement as wrapper around
11512 linux_resume_one_lwp_throw that swallows errors if the LWP is
11515 2015-03-19 Pedro Alves <palves@redhat.com>
11517 * linux-low.c (count_events_callback, select_event_lwp_callback):
11518 No longer check whether the thread has resume_stop as last resume
11521 2015-03-19 Pedro Alves <palves@redhat.com>
11523 * linux-low.c (count_events_callback, select_event_lwp_callback):
11524 Use the lwp's status_pending_p field, not the thread's.
11526 2015-03-19 Pedro Alves <palves@redhat.com>
11528 * linux-low.c (select_event_lwp_callback): Update comments to
11529 no longer mention SIGTRAP.
11531 2015-03-18 Gary Benson <gbenson@redhat.com>
11533 * server.c (handle_query): Do not report vFile:fstat as supported.
11535 2015-03-11 Gary Benson <gbenson@redhat.com>
11537 * hostio.c (sys/types.h): New include.
11538 (sys/stat.h): Likewise.
11539 (common-remote-fileio.h): Likewise.
11540 (handle_fstat): New function.
11541 (handle_vFile): Handle vFile:fstat packets.
11543 2015-03-11 Gary Benson <gbenson@redhat.com>
11545 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11546 struct stat.st_blocks and struct stat.st_blksize.
11547 * configure: Regenerate.
11548 * config.in: Likewise.
11549 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11550 (OBS): Add common-remote-fileio.o.
11551 (common-remote-fileio.o): New rule.
11553 2015-03-09 Pedro Alves <palves@redhat.com>
11555 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11556 'struct sockaddr' pointer in 'accept' call.
11558 2015-03-09 Pedro Alves <palves@redhat.com>
11561 2015-03-07 Pedro Alves <palves@redhat.com>
11562 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11563 or <winsock2.h> here. Instead include "gdb_socket.h".
11564 (remote_open): Use union gdb_sockaddr_u.
11565 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11566 or <winsock2.h> here. Instead include "gdb_socket.h".
11567 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11568 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11570 (init_named_socket, gdb_agent_helper_thread): Use union
11573 2015-03-07 Pedro Alves <palves@redhat.com>
11575 * configure.ac (build_warnings): Move
11576 -Wdeclaration-after-statement to the C-specific set.
11577 * configure: Regenerate.
11579 2015-03-07 Pedro Alves <palves@redhat.com>
11581 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11582 or <winsock2.h> here. Instead include "gdb_socket.h".
11583 (remote_open): Use union gdb_sockaddr_u.
11584 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11585 or <winsock2.h> here. Instead include "gdb_socket.h".
11586 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11587 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11589 (init_named_socket, gdb_agent_helper_thread): Use union
11592 2015-03-07 Pedro Alves <palves@redhat.com>
11594 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11597 2015-03-06 Yao Qi <yao.qi@linaro.org>
11599 * linux-aarch64-low.c (aarch64_insert_point): Use
11600 show_debug_regs as a boolean.
11601 (aarch64_remove_point): Likewise.
11603 2015-03-05 Pedro Alves <palves@redhat.com>
11605 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11606 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11607 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11608 * nto-low.c (nto_target_ops): Likewise.
11609 * spu-low.c (spu_target_ops): Likewise.
11610 * win32-low.c (win32_target_ops): Likewise.
11612 2015-03-04 Pedro Alves <palves@redhat.com>
11614 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11615 Decide whether a breakpoint triggered based on the SIGTRAP's
11617 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11618 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11619 (linux_low_filter_event): Check for breakpoints before checking
11621 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11623 (linux_stopped_by_sw_breakpoint)
11624 (linux_supports_stopped_by_sw_breakpoint)
11625 (linux_stopped_by_hw_breakpoint)
11626 (linux_supports_stopped_by_hw_breakpoint): New functions.
11627 (linux_target_ops): Install new target methods.
11629 2015-03-04 Pedro Alves <palves@redhat.com>
11631 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11632 * server.c (swbreak_feature, hwbreak_feature): New globals.
11633 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11634 (captured_main): Clear swbreak_feature and hwbreak_feature.
11635 * server.h (swbreak_feature, hwbreak_feature): Declare.
11636 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11637 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11638 supports_stopped_by_hw_breakpoint>: New fields.
11639 (target_supports_stopped_by_sw_breakpoint)
11640 (target_stopped_by_sw_breakpoint)
11641 (target_supports_stopped_by_hw_breakpoint)
11642 (target_stopped_by_hw_breakpoint): Declare.
11644 2015-03-04 Pedro Alves <palves@redhat.com>
11646 enum lwp_stop_reason -> enum target_stop_reason
11647 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11648 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11649 (linux_wait_1, stuck_in_jump_pad_callback)
11650 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11651 (linux_stopped_by_watchpoint):
11652 * linux-low.h (enum lwp_stop_reason): Delete.
11653 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11654 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11656 2015-03-04 Yao Qi <yao.qi@linaro.org>
11658 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11660 2015-03-03 Gary Benson <gbenson@redhat.com>
11662 * hostio.c (handle_vFile): Fix prefix lengths.
11664 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11666 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11669 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11671 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11672 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11673 (clean): Add "rm -f" for above C files.
11674 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11675 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11676 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11677 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11678 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11679 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11680 (init_registers_s390x_vx_linux64)
11681 (init_registers_s390x_tevx_linux64)
11682 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11683 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11685 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11686 (s390_store_vxrs_high): New functions.
11687 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11689 (s390_arch_setup): Add logic for selecting one of the new target
11690 descriptions. Activate the new vector regsets if applicable.
11691 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11692 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11693 and init_registers_s390x_tevx_linux64.
11695 2015-03-01 Pedro Alves <palves@redhat.com>
11697 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11700 2015-02-27 Pedro Alves <palves@redhat.com>
11702 * linux-x86-low.c (u_debugreg_offset): New function.
11703 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11705 2015-02-27 Pedro Alves <palves@redhat.com>
11707 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11708 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11709 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11710 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11711 (ps_lsetfpregs, ps_getpid)
11712 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11713 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11714 (ps_lsetxregs, ps_plog): Declare.
11716 2015-02-27 Pedro Alves <palves@redhat.com>
11718 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11719 IP_AGENT_EXPORT_FUNC.
11720 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11721 IP_AGENT_EXPORT_FUNC.
11722 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11723 (IP_AGENT_EXPORT): Delete.
11724 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11725 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11726 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11727 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11728 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11729 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11730 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11731 (traceframe_read_count, traceframe_write_count)
11732 (traceframes_created, trace_state_variables, get_raw_reg)
11733 (get_trace_state_variable_value, set_trace_state_variable_value)
11734 (ust_loaded, helper_thread_id, cmd_buf): Use
11735 IPA_SYM_EXPORTED_NAME.
11736 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11737 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11738 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11739 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11740 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11741 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11742 EXTERN_C_PUSH/EXTERN_C_POP.
11743 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11744 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11745 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11746 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11747 (traceframe_write_count, traceframe_read_count)
11748 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11749 (about_to_request_buffer_space, get_trace_state_variable_value)
11750 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11751 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11752 EXTERN_C_PUSH/EXTERN_C_POP.
11753 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11754 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11755 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11756 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11757 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11758 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11759 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11760 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11762 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11763 (IP_AGENT_EXPORT_VAR_DECL): Define.
11764 (tracing): Declare.
11765 (gdb_agent_get_raw_reg): Declare.
11767 2015-02-27 Tom Tromey <tromey@redhat.com>
11768 Pedro Alves <palves@redhat.com>
11770 Rename symbols whose names are reserved C++ keywords throughout.
11772 2015-02-27 Pedro Alves <palves@redhat.com>
11774 * Makefile.in (COMPILER): New, get it from autoconf.
11775 (CXX): Get from autoconf instead.
11776 (COMPILE.pre): Use COMPILER.
11777 (CC-LD): Rename to ...
11778 (CC_LD): ... this. Use COMPILER.
11779 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11780 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11781 * acinclude.m4: Include build-with-cxx.m4.
11782 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11783 Disable -Werror by default if building in C++ mode.
11784 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11785 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11786 the C++ compiler. Save/restore CXXFLAGS too.
11787 * configure: Regenerate.
11789 2015-02-27 Pedro Alves <palves@redhat.com>
11791 * acinclude.m4: Include libiberty.m4.
11792 * configure.ac: Call libiberty_INIT.
11793 * config.in, configure: Regenerate.
11795 2015-02-26 Pedro Alves <palves@redhat.com>
11797 * linux-low.c (linux_wait_1): When incrementing the PC past a
11798 program breakpoint always use the_low_target.breakpoint_len as
11799 increment, rather than the maximum between that and
11800 the_low_target.decr_pc_after_break.
11802 2015-02-23 Pedro Alves <palves@redhat.com>
11804 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11805 thread was doing a step-over; always adjust the PC if
11806 we stepped over a permanent breakpoint.
11807 (linux_wait_1): If we stepped over breakpoint that was on top of a
11808 permanent breakpoint, manually advance the PC past it.
11810 2015-02-23 Pedro Alves <palves@redhat.com>
11812 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11814 (x86_fill_gregset, x86_store_gregset): Use it when handling
11817 2015-02-20 Pedro Alves <palves@redhat.com>
11819 * thread-db.c: Include "nat/linux-procfs.h".
11820 (thread_db_init): Skip listing new threads if the kernel supports
11821 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11823 2015-02-20 Pedro Alves <palves@redhat.com>
11825 * linux-low.c (status_pending_p_callback): Use ptid_match.
11827 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11829 PR breakpoints/16812
11830 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11831 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11832 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11834 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11836 PR breakpoints/15956
11837 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11839 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11841 * linux-low.c (linux_low_btrace_conf): Print size.
11842 * server.c (handle_btrace_conf_general_set): New.
11843 (hanle_general_set): Call handle_btrace_conf_general_set.
11844 (handle_query): Report Qbtrace-conf:bts:size as supported.
11846 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11848 * linux-low.c (linux_low_enable_btrace): Update parameters.
11849 (linux_low_btrace_conf): New.
11850 (linux_target_ops)<to_btrace_conf>: Initialize.
11851 * server.c (current_btrace_conf): New.
11852 (handle_btrace_enable): Rename to ...
11853 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11854 to target_enable_btrace. Update comment. Update users.
11855 (handle_qxfer_btrace_conf): New.
11856 (qxfer_packets): Add btrace-conf entry.
11857 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11858 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11859 (target_ops)<read_btrace_conf>: New.
11860 (target_enable_btrace): Update parameters.
11861 (target_read_btrace_conf): New.
11863 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11865 * server.c (handle_btrace_general_set): Remove call to
11866 target_supports_btrace.
11867 (supported_btrace_packets): New.
11868 (handle_query): Call supported_btrace_packets.
11869 * target.h: include btrace-common.h.
11870 (btrace_target_info): Removed.
11871 (supports_btrace, target_supports_btrace): Update parameters.
11873 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11875 * Makefile.in (SFILES): Add common/btrace-common.c.
11876 (OBS): Add common/btrace-common.o.
11877 (btrace-common.o): Add build rules.
11878 * linux-low: Include btrace-common.h.
11879 (linux_low_read_btrace): Use struct btrace_data. Call
11880 btrace_data_init and btrace_data_fini.
11882 2015-02-06 Pedro Alves <palves@redhat.com>
11884 * thread-db.c (find_new_threads_callback): Add debug output.
11886 2015-02-04 Pedro Alves <palves@redhat.com>
11888 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11889 (resume_stopped_resumed_lwps): New function.
11890 (linux_wait_for_event_filtered): Use it.
11892 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11894 * Makefile.in (SFILES): Add linux-personality.c.
11895 (linux-personality.o): New rule.
11896 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11897 list of objects to be built.
11898 * linux-low.c: Include nat/linux-personality.h.
11899 (linux_create_inferior): Remove code to disable address space
11900 randomization (moved to ../nat/linux-personality.c). Create
11901 cleanup to disable address space randomization.
11903 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11905 * Makefile.in (posix-strerror.o): New rule.
11906 (mingw-strerror.o): Likewise.
11907 * configure: Regenerated.
11908 * configure.ac: Source file ../common/common.host. Initialize new
11909 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
11911 2015-01-14 Yao Qi <yao@codesourcery.com>
11913 * Makefile.in (SFILES): Add nat/ppc-linux.c.
11914 (ppc-linux.o): New rule.
11915 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
11916 * configure.ac: AC_CHECK_FUNCS(getauxval).
11917 * config.in: Re-generated.
11918 * configure: Re-generated.
11919 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
11920 ppc64_64bit_inferior_p
11922 2015-01-14 Yao Qi <yao@codesourcery.com>
11924 * linux-ppc-low.c: Include "nat/ppc-linux.h".
11925 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
11926 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
11927 (PT_ORIG_R3, PT_TRAP): Likewise.
11928 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11929 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11930 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11932 2015-01-10 Joel Brobecker <brobecker@adacore.com>
11934 * i387-fp.c (i387_cache_to_xsave): In look over
11935 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
11936 zmmh_low_space field by use of zmmh_high_space.
11938 2015-01-09 Pedro Alves <palves@redhat.com>
11940 * linux-low.c (step_over_bkpt): Move higher up in the file.
11941 (handle_extended_wait): Don't store the stop_pc here.
11942 (get_stop_pc): Adjust comments and rename to ...
11943 (check_stopped_by_breakpoint): ... this. Record whether the LWP
11944 stopped for a software breakpoint or hardware breakpoint.
11945 (thread_still_has_status_pending_p): New function.
11946 (status_pending_p_callback): Use
11947 thread_still_has_status_pending_p. If the event is no longer
11948 interesting, resume the LWP.
11949 (handle_tracepoints): Add assert.
11950 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
11951 (wstatus_maybe_breakpoint): New function.
11952 (cancel_breakpoint): Delete function.
11953 (check_stopped_by_watchpoint): New function, factored out from
11954 linux_low_filter_event.
11955 (lp_status_maybe_breakpoint): Delete function.
11956 (linux_low_filter_event): Remove filter_ptid argument.
11957 Leave thread group exits pending here. Store the LWP's stop PC.
11958 Always leave events pending.
11959 (linux_wait_for_event_filtered): Pull all events out of the
11960 kernel, and leave them all pending.
11961 (count_events_callback, select_event_lwp_callback): Consider all
11963 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
11964 (select_event_lwp): Only give preference to the stepping LWP in
11965 all-stop mode. Adjust comments.
11966 (ignore_event): New function.
11967 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
11968 references to cancel_breakpoints. Adjust to renames. Also give
11969 equal priority to all LWPs that have had events in non-stop mode.
11970 If reporting a software breakpoint event, unadjust the LWP's PC.
11971 (linux_wait): If linux_wait_1 returned an ignored event, retry.
11972 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
11974 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
11975 (resume_status_pending_p): Use thread_still_has_status_pending_p.
11976 (linux_stopped_by_watchpoint): Adjust.
11977 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
11978 * linux-low.h (enum lwp_stop_reason): New.
11979 (struct lwp_info) <stop_pc>: Adjust comment.
11980 <stopped_by_watchpoint>: Delete field.
11981 <stop_reason>: New field.
11982 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11983 * mem-break.c (software_breakpoint_inserted_here)
11984 (hardware_breakpoint_inserted_here): New function.
11985 * mem-break.h (software_breakpoint_inserted_here)
11986 (hardware_breakpoint_inserted_here): Declare.
11987 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
11988 (cancel_breakpoints): Delete.
11989 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
11990 (upload_fast_traceframes): Remove references to
11991 cancel_breakpoints.
11993 2015-01-09 Pedro Alves <palves@redhat.com>
11995 * thread-db.c (find_new_threads_callback): Ignore thread if the
11996 kernel thread ID is -1.
11998 2015-01-09 Pedro Alves <palves@redhat.com>
12000 * linux-low.c (linux_attach_fail_reason_string): Move to
12001 nat/linux-ptrace.c, and rename.
12002 (linux_attach_lwp): Update comment.
12003 (attach_proc_task_lwp_callback): New function.
12004 (linux_attach): Adjust to rename and use
12005 linux_proc_attach_tgid_threads.
12006 (linux_attach_fail_reason_string): Delete declaration.
12008 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12010 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12011 * server.c (gdbserver_version): Likewise.
12013 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12015 * remote-utils.c: Include ctype.h.
12016 (input_interrupt): Explicitly handle the case when the char
12017 received is the NUL byte. Improve the printing of non-ASCII
12020 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12022 * linux-low.c (linux_low_filter_event): Update call to
12023 linux_enable_event_reporting following the addition of
12024 a new parameter to that function.
12026 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12029 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12030 (AARCH64_FPCR_REGNO): Likewise.
12031 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12032 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12033 (aarch64_store_fpregset): Likewise.
12035 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12037 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12038 Remove FIXME comment about assumption about N.
12040 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12042 * configure.ac: If large-file support is disabled in GDBserver,
12043 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12044 * configure: Regenerate.
12046 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12048 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12049 warning upon ENODATA from ptrace.
12050 * linux-s390-low.c (s390_store_tdb): New.
12051 (s390_regsets): Add regset for NT_S390_TDB.
12053 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12055 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12056 without a fill_function.
12057 * linux-s390-low.c (s390_fill_last_break): Remove.
12058 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12059 (s390_arch_setup): Use regset's size instead of fill_function for
12060 loop end condition.
12062 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12064 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12065 the regset's store function when ptrace returned an error.
12066 * regcache.c (get_thread_regcache): Invalidate register cache
12067 before fetching inferior's registers.
12069 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12071 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12072 while-loop as for-loop.
12073 (regsets_store_inferior_registers): Likewise.
12075 2014-11-28 Yao Qi <yao@codesourcery.com>
12077 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12078 * config.in, configure: Re-generate.
12079 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12082 2014-11-21 Yao Qi <yao@codesourcery.com>
12084 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12085 (AC_CHECK_HEADERS): Remove malloc.h.
12086 * configure: Re-generated.
12087 * config.in: Re-generated.
12088 * server.h: Don't include alloca.h and malloc.h.
12089 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12090 Don't include malloc.h.
12092 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12094 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12095 corresponding ERRNO check in same block.
12097 2014-11-12 Pedro Alves <palves@redhat.com>
12099 * server.c (cont_thread): Update comment.
12100 (start_inferior, attach_inferior): No longer clear cont_thread.
12101 (handle_v_cont): No longer set cont_thread.
12102 (captured_main): Clear cont_thread each time a GDB connects.
12104 2014-11-12 Pedro Alves <palves@redhat.com>
12106 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12107 thread, and don't resume all threads if the Hc thread has exited.
12109 2014-11-12 Pedro Alves <palves@redhat.com>
12111 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12112 the process group instead of to a specific LWP.
12114 2014-10-15 Pedro Alves <palves@redhat.com>
12117 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12119 (arm_set_thread_context): Delete.
12120 (the_low_target): Adjust.
12121 * win32-i386-low.c (debug_registers_changed)
12122 (debug_registers_used): Delete.
12123 (update_debug_registers_callback): New function.
12124 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12125 needing to update their debug registers.
12126 (win32_get_current_dr): New function.
12127 (x86_dr_low_get_addr, x86_dr_low_get_control)
12128 (x86_dr_low_get_status): Fetch the debug register from the thread
12130 (i386_initial_stuff): Adjust.
12131 (i386_get_thread_context): Remove current_event parameter. Don't
12132 clear debug_registers_changed nor copy DR values to
12134 (i386_set_thread_context): Delete.
12135 (i386_prepare_to_resume): New function.
12136 (i386_thread_added): Mark the thread as needing to update irs
12138 (the_low_target): Remove i386_set_thread_context and install
12139 i386_prepare_to_resume.
12140 * win32-low.c (win32_get_thread_context): Adjust.
12141 (win32_set_thread_context): Use SetThreadContext
12143 (win32_prepare_to_resume): New function.
12144 (win32_require_context): New function, factored out from ...
12145 (thread_rec): ... this.
12146 (continue_one_thread): Call win32_prepare_to_resume on each thread
12147 we're about to continue.
12148 (win32_resume): Call win32_prepare_to_resume on the event thread.
12149 * win32-low.h (struct win32_thread_info)
12150 <debug_registers_changed>: New field.
12151 (struct win32_target_ops): Change prototype of set_thread_context,
12152 delete set_thread_context and add prepare_to_resume.
12153 (win32_require_context): New declaration.
12155 2014-10-08 Gary Benson <gbenson@redhat.com>
12157 * server.h: Do not include common-exceptions.h.
12159 2014-10-08 Gary Benson <gbenson@redhat.com>
12161 * server.h: Do not include cleanups.h.
12163 2014-09-30 James Hogan <james.hogan@imgtec.com>
12165 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12166 mips64-dsp-linux.c.
12168 2014-09-23 Yao Qi <yao@codesourcery.com>
12170 * linux-low.c (lp_status_maybe_breakpoint): New function.
12171 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12172 (count_events_callback): Likewise.
12173 (select_event_lwp_callback): Likewise.
12174 (cancel_breakpoints_callback): Likewise.
12176 2014-09-19 Don Breazeal <donb@codesourcery.com>
12178 * linux-low.c (handle_extended_wait): Call
12179 linux_ptrace_get_extended_event.
12180 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12181 linux_is_extended_waitstatus.
12183 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12185 * Makefile.in (CPPFLAGS): Define.
12186 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12187 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12189 2014-09-16 Gary Benson <gbenson@redhat.com>
12191 * inferiors.h (current_inferior): Renamed as...
12192 (current_thread): New variable. All uses updated.
12193 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12194 (maybe_move_out_of_jump_pad): Likewise.
12195 (cancel_breakpoint): Likewise.
12196 (linux_low_filter_event): Likewise.
12197 (wait_for_sigstop): Likewise.
12198 (linux_resume_one_lwp): Likewise.
12199 (need_step_over_p): Likewise.
12200 (start_step_over): Likewise.
12201 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12202 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12203 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12204 and save_inferior as saved_thread.
12205 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12207 (regcache_invalidate_thread): Likewise.
12208 * remote-utils.c (prepare_resume_reply): Likewise.
12209 * thread-db.c (thread_db_get_tls_address): Likewise.
12210 (disable_thread_event_reporting): Likewise.
12211 (remove_thread_event_breakpoints): Likewise.
12212 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12214 * target.h (set_desired_inferior): Renamed as...
12215 (set_desired_thread): New declaration. All uses updated.
12216 * server.c (myresume): Updated comment to reference thread instead
12218 (handle_serial_event): Likewise.
12219 (handle_target_event): Likewise.
12221 2014-09-12 Tom Tromey <tromey@redhat.com>
12222 Gary Benson <gbenson@redhat.com>
12224 * regcache.h: Include common-regcache.h.
12225 (regcache_read_pc): Don't declare.
12226 * regcache.c (get_thread_regcache_for_ptid): New function.
12228 2014-09-11 Tom Tromey <tromey@redhat.com>
12229 Gary Benson <gbenson@redhat.com>
12231 * symbol.c: New file.
12232 * Makefile.in (SFILES): Add symbol.c.
12233 (OBS): Add symbol.o.
12235 2014-09-11 Gary Benson <gbenson@redhat.com>
12237 * target.c (target_stop_ptid, target_continue_ptid): New
12240 2014-09-11 Tom Tromey <tromey@redhat.com>
12241 Gary Benson <gbenson@redhat.com>
12243 * target.h: Include target/target.h.
12244 * target.c (target_read_memory, target_read_uint32)
12245 (target_write_memory): New functions.
12247 2014-09-11 Gary Benson <gbenson@redhat.com>
12249 * server.h (debug_hw_points): Don't declare.
12250 * server.c (debug_hw_points): Don't define. Replace all uses
12251 with show_debug_regs.
12252 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12253 all uses with show_debug_regs.
12255 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12257 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12258 endianness into account.
12259 (ppc_supply_ptrace_register): Likewise.
12261 2014-09-03 James Hogan <james.hogan@imgtec.com>
12263 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12264 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12266 2014-09-03 Gary Benson <gbenson@redhat.com>
12268 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12269 ALL_DEBUG_ADDRESS_REGISTERS.
12271 2014-09-02 Gary Benson <gbenson@redhat.com>
12273 * i386-low.h: Renamed as...
12274 * x86-low.h: New file. All type, function and variable name
12275 prefixes changed from "i386_" to "x86_". All references updated.
12276 * i386-low.c: Renamed as...
12277 * x86-low.c: New file. All type, function and variable name
12278 prefixes changed from "i386_" to "x86_". All references updated.
12280 2014-09-02 Gary Benson <gbenson@redhat.com>
12282 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12283 (x86_linux_new_thread): Likewise.
12285 2014-08-29 Gary Benson <gbenson@redhat.com>
12287 * server.h (setjmp.h): Do not include.
12288 (toplevel): Do not declare.
12289 (common-exceptions.h): Include.
12290 (cleanups.h): Likewise.
12291 * server.c (toplevel): Do not define.
12292 (exit_code): New static global.
12293 (detach_or_kill_for_exit_cleanup): New function.
12294 (main): New function. Original main renamed to...
12295 (captured_main): New function.
12296 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12298 2014-08-29 Gary Benson <gbenson@redhat.com>
12300 * Makefile.in (SFILES): Add common/common-exceptions.c.
12301 (OBS): Add common-exceptions.o.
12302 (common-exceptions.o): New rule.
12303 * utils.c (prepare_to_throw_exception): New function.
12305 2014-08-29 Gary Benson <gbenson@redhat.com>
12307 * config.in: Regenerate.
12308 * configure: Likewise.
12310 2014-08-29 Gary Benson <gbenson@redhat.com>
12312 * Makefile.in (SFILES): Add common/cleanups.c.
12314 (cleanups.o): New rule.
12316 2014-08-29 Gary Benson <gbenson@redhat.com>
12318 * utils.c (internal_vwarning): New function.
12320 2014-08-28 Gary Benson <gbenson@redhat.com>
12322 * utils.h (fatal): Remove declaration.
12323 * utils.c (fatal): Remove function.
12325 2014-08-28 Gary Benson <gbenson@redhat.com>
12327 * tracepoint.c (gdb_agent_init): Replace fatal with
12329 (initialize_tracepoint): Likewise.
12331 2014-08-28 Gary Benson <gbenson@redhat.com>
12333 * remote-utils.c (remote_prepare): Replace fatal with error.
12335 2014-08-28 Gary Benson <gbenson@redhat.com>
12337 * linux-low.c (linux_async): Replace fatal with warning.
12338 Tidy up and return.
12339 (linux_start_non_stop): Return -1 if linux_async failed.
12341 2014-08-28 Gary Benson <gbenson@redhat.com>
12343 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12345 (i386_dr_low_get_addr): Remove vague comment.
12346 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12349 2014-08-28 Gary Benson <gbenson@redhat.com>
12351 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12352 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12354 (linux_resume_one_lwp): Likewise.
12355 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12357 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12358 with internal_error.
12359 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12360 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12361 (find_register_by_name): Replace fatal with internal_error.
12362 (find_regno): Likewise.
12363 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12364 * thread-db.c (thread_db_create_event): Likewise.
12365 (thread_db_load_search): Likewise.
12366 (try_thread_db_load_1): Likewise.
12367 * tracepoint.c (get_jump_space_head): Replace fatal with
12369 (claim_trampoline_space): Likewise.
12370 (have_fast_tracepoint_trampoline_buffer): Likewise.
12371 (cmd_qtstart): Likewise.
12372 (stop_tracing): Likewise.
12373 (fast_tracepoint_collecting): Likewise.
12374 (target_malloc): Likewise.
12375 (download_tracepoint): Likewise.
12376 (download_trace_state_variables): Replace check with gdb_assert.
12377 (upload_fast_traceframes): Replace fatal with internal_error.
12379 2014-08-19 Tom Tromey <tromey@redhat.com>
12380 Gary Benson <gbenson@redhat.com>
12382 * Makefile.in (SFILES): Add common/common-debug.c.
12383 (OBS): Add common-debug.o.
12384 (common-debug.o): New rule.
12385 * debug.h (debug_printf): Don't declare.
12386 * debug.c (debug_printf): Renamed and rewritten as...
12387 (debug_vprintf): New function.
12389 2014-08-19 Gary Benson <gbenson@redhat.com>
12391 * utils.h: Do not include print-utils.h.
12393 2014-08-19 Tom Tromey <tromey@redhat.com>
12394 Gary Benson <gbenson@redhat.com>
12396 * server.h: Add static assertion.
12397 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12399 2014-08-19 Tom Tromey <tromey@redhat.com>
12400 Gary Benson <gbenson@redhat.com>
12402 * Makefile.in (SFILES): Add common/errors.c.
12403 (OBS): Add errors.o.
12404 (IPA_OBS): Add errors-ipa.o.
12405 (errors.o): New rule.
12406 (errors-ipa.o): Likewise.
12407 * utils.h (perror_with_name, error, warning): Don't declare.
12408 * utils.c (warning): Renamed and rewritten as...
12409 (vwarning): New function.
12410 (error): Renamed and rewritten as...
12411 (verror): New function.
12412 (internal_error): Renamed and rewritten as...
12413 (internal_verror): New function.
12415 2014-08-07 Gary Benson <gbenson@redhat.com>
12417 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12418 * configure: Regenerate.
12419 * config.in: Likewise.
12420 * server.h: Do not include errno.h.
12421 * event-loop.c: Likewise.
12422 * hostio-errno.c: Likewise.
12423 * linux-low.c: Likewise.
12424 * remote-utils.c: Likewise.
12425 * spu-low.c: Likewise.
12426 * utils.c: Likewise.
12427 * gdbreplay.c: Unconditionally include errno.h.
12429 2014-08-07 Gary Benson <gbenson@redhat.com>
12431 * server.h: Do not include string.h.
12432 * event-loop.c: Likewise.
12433 * linux-low.c: Likewise.
12434 * regcache.c: Likewise.
12435 * remote-utils.c: Likewise.
12436 * spu-low.c: Likewise.
12437 * utils.c: Likewise.
12439 2014-08-07 Gary Benson <gbenson@redhat.com>
12441 * server.h: Do not include gdb_assert.h.
12443 2014-08-07 Gary Benson <gbenson@redhat.com>
12445 * server.h: Do not include common-utils.h.
12447 2014-08-07 Gary Benson <gbenson@redhat.com>
12449 * server.h: Do not include ptid.h.
12450 * notif.h: Likewise.
12452 2014-08-07 Gary Benson <gbenson@redhat.com>
12454 * server.h: Do not include gdb_locale.h.
12456 2014-08-07 Gary Benson <gbenson@redhat.com>
12458 * server.h: Do not include gdb/signals.h.
12459 * win32-low.c: Likewise.
12461 2014-08-07 Gary Benson <gbenson@redhat.com>
12463 * server.h: Do not include pathmax.h.
12465 2014-08-07 Gary Benson <gbenson@redhat.com>
12467 * server.h: Do not include libiberty.h.
12468 * linux-bfin-low.c: Likewise.
12470 2014-08-07 Gary Benson <gbenson@redhat.com>
12472 * server.h: Do not include ansidecl.h.
12474 2014-08-07 Gary Benson <gbenson@redhat.com>
12476 * linux-x86-low.c: Do not include stddef.h.
12477 * lynx-ppc-low.c: Likewise.
12478 * tracepoint.c: Likewise.
12480 2014-08-07 Gary Benson <gbenson@redhat.com>
12482 * server.h: Do not include stdarg.h.
12483 * nto-low.c: Likewise.
12485 2014-08-07 Gary Benson <gbenson@redhat.com>
12487 * server.h: Do not include stdlib.h.
12488 * inferiors.c: Likewise.
12489 * linux-low.c: Likewise.
12490 * regcache.c: Likewise.
12491 * spu-low.c: Likewise.
12492 * tracepoint.c: Likewise.
12493 * utils.c: Likewise.
12495 2014-08-07 Gary Benson <gbenson@redhat.com>
12497 * server.h: Do not include stdio.h.
12498 * linux-low.c: Likewise.
12499 * remote-utils.c: Likewise.
12500 * spu-low.c: Likewise.
12501 * utils.c: Likewise.
12502 * wincecompat.c: Likewise.
12504 2014-08-06 Gary Benson <gbenson@redhat.com>
12506 * regcache.c (init_register_cache): Move conditionals inside if.
12508 2014-08-06 Gary Benson <gbenson@redhat.com>
12510 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12512 2014-07-31 Gary Benson <gbenson@redhat.com>
12514 * ax.h: Do not include server.h.
12515 * gdbthread.h: Likewise.
12516 * lynx-low.h: Likewise.
12517 * notif.h: Likewise.
12519 2014-07-30 Gary Benson <gbenson@redhat.com>
12521 * server.h: Include common-defs.h.
12522 Do not include config.h or build-gnulib-gdbserver/config.h.
12524 2014-07-30 Gary Benson <gbenson@redhat.com>
12526 * hostio-errno.c: Move server.h to top of includes list.
12527 * inferiors.c: Likewise.
12528 * linux-x86-low.c: Likewise.
12529 * notif.c: Include server.h.
12531 2014-07-24 Tom Tromey <tromey@redhat.com>
12532 Gary Benson <gbenson@redhat.com>
12534 * server.h (CORE_ADDR): Now unsigned.
12536 2014-07-16 Pedro Alves <palves@redhat.com>
12538 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12540 2014-07-15 Pedro Alves <palves@redhat.com>
12542 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12545 2014-07-11 Pedro Alves <palves@redhat.com>
12547 * linux-low.c (kill_wait_lwp): New function, based on
12548 kill_one_lwp_callback, but use my_waitpid directly.
12549 (kill_one_lwp_callback, linux_kill): Use it.
12551 2014-06-23 Pedro Alves <palves@redhat.com>
12553 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12554 before setting DR0..DR3.
12556 2014-06-20 Gary Benson <gbenson@redhat.com>
12558 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12559 * configure: Regenerated.
12560 * config.in: Likewise.
12562 2014-06-20 Gary Benson <gbenson@redhat.com>
12564 * Makefile.in (SFILES): Update locations for files moved
12565 from common to nat.
12566 (object file files): Reordered.
12568 2014-06-20 Gary Benson <gbenson@redhat.com>
12570 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12571 (i386_dr_low_set_addr): Likewise.
12572 (i386_dr_low_get_addr): Likewise.
12573 (i386_dr_low_can_set_control): Likewise.
12574 (i386_dr_low_set_control): Likewise.
12575 (i386_dr_low_get_control): Likewise.
12576 (i386_dr_low_get_status): Likewise.
12577 (i386_get_debug_register_length): Likewise.
12578 * linux-x86-low.c (i386_dr_low_set_addr):
12579 Changed signature. Made static.
12580 (i386_dr_low_get_addr): Likewise.
12581 (i386_dr_low_set_control): Likewise.
12582 (i386_dr_low_get_control): Likewise.
12583 (i386_dr_low_get_status): Likewise.
12584 (i386_dr_low): New global variable.
12585 * win32-i386-low.c (i386_dr_low_set_addr):
12586 Changed signature. Made static.
12587 (i386_dr_low_get_addr): Likewise.
12588 (i386_dr_low_set_control): Likewise.
12589 (i386_dr_low_get_control): Likewise.
12590 (i386_dr_low_get_status): Likewise.
12591 (i386_dr_low): New global variable.
12593 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12595 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12596 * Makefile.in (AR, AR_FLAGS): Define.
12597 * configure: Regenerate.
12599 2014-06-19 Gary Benson <gbenson@redhat.com>
12601 * Makefile.in (i386-dregs.o): New rule.
12602 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12603 * i386-low.c (target.h): Remove include.
12604 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12605 (DR_CONTROL_SHIFT): Likewise.
12606 (DR_CONTROL_SIZE): Likewise.
12607 (DR_RW_EXECUTE): Likewise.
12608 (DR_RW_WRITE): Likewise.
12609 (DR_RW_READ): Likewise.
12610 (DR_RW_IORW): Likewise.
12611 (DR_LEN_1): Likewise.
12612 (DR_LEN_2): Likewise.
12613 (DR_LEN_4): Likewise.
12614 (DR_LEN_8): Likewise.
12615 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12616 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12617 (DR_ENABLE_SIZE): Likewise.
12618 (DR_LOCAL_SLOWDOWN): Likewise.
12619 (DR_GLOBAL_SLOWDOWN): Likewise.
12620 (DR_CONTROL_RESERVED): Likewise.
12621 (I386_DR_CONTROL_MASK): Likewise.
12622 (I386_DR_VACANT): Likewise.
12623 (I386_DR_LOCAL_ENABLE): Likewise.
12624 (I386_DR_GLOBAL_ENABLE): Likewise.
12625 (I386_DR_DISABLE): Likewise.
12626 (I386_DR_SET_RW_LEN): Likewise.
12627 (I386_DR_GET_RW_LEN): Likewise.
12628 (I386_DR_WATCH_HIT): Likewise.
12629 (i386_wp_op_t): Likewise.
12630 (i386_show_dr): Likewise.
12631 (i386_length_and_rw_bits): Likewise.
12632 (i386_insert_aligned_watchpoint): Likewise.
12633 (i386_remove_aligned_watchpoint): Likewise.
12634 (i386_handle_nonaligned_watchpoint): Likewise.
12635 i386_update_inferior_debug_regs(): Likewise.
12636 (i386_dr_insert_watchpoint): Likewise.
12637 (i386_dr_remove_watchpoint): Likewise.
12638 (i386_dr_region_ok_for_watchpoint): Likewise.
12639 (i386_dr_stopped_data_address): Likewise.
12640 (i386_dr_stopped_by_watchpoint): Likewise.
12642 2014-06-19 Gary Benson <gbenson@redhat.com>
12644 * i386-low.c (i386_dr_show): Renamed to
12645 i386_show_dr and made static. All uses updated.
12646 (i386_dr_length_and_rw_bits): Renamed to
12647 i386_length_and_rw_bits and made static.
12649 (i386_dr_insert_aligned_watchpoint): Renamed to
12650 i386_insert_aligned_watchpoint and made static.
12652 (i386_dr_remove_aligned_watchpoint): Renamed to
12653 i386_remove_aligned_watchpoint and made static.
12655 (i386_dr_update_inferior_debug_regs): Renamed to
12656 i386_update_inferior_debug_regs and made static.
12659 2014-06-18 Gary Benson <gbenson@redhat.com>
12661 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12662 (i386_dr_low_can_set_control): Likewise.
12663 (i386_get_debug_register_length): Likewise.
12664 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12665 (i386_dr_low_can_set_control): Likewise.
12666 (i386_get_debug_register_length): Likewise.
12668 2014-06-17 Gary Benson <gbenson@redhat.com>
12670 * i386-low.h (i386-dregs.h): New include.
12671 (DR_FIRSTADDR): Now in i386-dregs.h.
12672 (DR_LASTADDR): Likewise.
12673 (DR_NADDR): Likewise.
12674 (DR_STATUS): Likewise.
12675 (DR_CONTROL): Likewise.
12676 (i386_debug_reg_state): Likewise.
12677 (i386_dr_insert_watchpoint): Likewise.
12678 (i386_dr_remove_watchpoint): Likewise.
12679 (i386_dr_region_ok_for_watchpoint): Likewise.
12680 (i386_dr_stopped_data_address): Likewise.
12681 (i386_dr_stopped_by_watchpoint): Likewise.
12682 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12684 2014-06-18 Gary Benson <gbenson@redhat.com>
12686 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12687 i386_dr_insert_watchpoint.
12688 (i386_low_remove_watchpoint): Renamed to
12689 i386_dr_remove_watchpoint.
12690 (i386_low_region_ok_for_watchpoint): Renamed to
12691 i386_dr_region_ok_for_watchpoint.
12692 (i386_low_stopped_data_address): Renamed to
12693 i386_dr_stopped_data_address.
12694 (i386_low_stopped_by_watchpoint): Renamed to
12695 i386_dr_stopped_by_watchpoint.
12696 * i386-low.c (i386_show_dr): Renamed to
12697 i386_dr_show and made nonstatic. All uses updated.
12698 (i386_length_and_rw_bits): Renamed to
12699 i386_dr_length_and_rw_bits and made nonstatic.
12701 (i386_insert_aligned_watchpoint): Renamed to
12702 i386_dr_insert_aligned_watchpoint and made nonstatic.
12704 (i386_remove_aligned_watchpoint): Renamed to
12705 i386_dr_remove_aligned_watchpoint and made nonstatic.
12707 (i386_update_inferior_debug_regs): Renamed to
12708 i386_dr_update_inferior_debug_regs and made nonstatic.
12710 (i386_low_insert_watchpoint): Renamed to
12711 i386_dr_insert_watchpoint. All uses updated.
12712 (i386_low_remove_watchpoint): Renamed to
12713 i386_dr_remove_watchpoint. All uses updated.
12714 (i386_low_region_ok_for_watchpoint): Renamed to
12715 i386_dr_region_ok_for_watchpoint. All uses updated.
12716 (i386_low_stopped_data_address): Renamed to
12717 i386_dr_stopped_data_address. All uses updated.
12718 (i386_low_stopped_by_watchpoint): Renamed to
12719 i386_dr_stopped_by_watchpoint. All uses updated.
12721 2014-06-18 Gary Benson <gbenson@redhat.com>
12723 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12724 (i386_dr_low_can_set_control): Likewise.
12725 (i386_insert_aligned_watchpoint): New check.
12727 2014-06-18 Gary Benson <gbenson@redhat.com>
12729 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12732 2014-06-18 Gary Benson <gbenson@redhat.com>
12734 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12735 instead of fatal and error.
12736 (i386_handle_nonaligned_watchpoint): Likewise.
12738 2014-06-18 Gary Benson <gbenson@redhat.com>
12740 * i386-low.c (i386_get_debug_register_length): New macro.
12741 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12742 (i386_show_dr): Use debug_printf instead of fprintf. Use
12743 phex to format values.
12745 2014-06-18 Gary Benson <gbenson@redhat.com>
12747 * i386-low.h: Comment changes.
12748 * i386-low.c: Likewise.
12750 2014-06-18 Gary Benson <gbenson@redhat.com>
12752 * i386-low.c: Whitespace changes.
12754 2014-06-12 Tom Tromey <tromey@redhat.com>
12756 * utils.c (freeargv): Remove.
12758 2014-06-12 Tom Tromey <tromey@redhat.com>
12760 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12761 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12762 (parse_debug_format_options): Likewise.
12763 (gdbserver_usage): Likewise.
12764 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12765 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12766 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12768 ($(LIBGNU)): Depend on libiberty.
12769 (all-lib): Recurse into all subdirs.
12770 (install-only): Invoke "install" target in subdirs.
12771 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12773 * configure: Rebuild.
12774 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12775 for vasprintf, vsnprintf, or gettimeofday.
12776 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12779 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12781 * development.sh: Delete.
12782 * Makefile.in (config.status): Adjust dependency on development.sh.
12783 * configure.ac: Adjust development.sh source call.
12784 * configure: Regenerate.
12786 2014-06-02 Pedro Alves <palves@redhat.com>
12788 * ax.c (gdb_free_agent_expr): New function.
12789 * ax.h (gdb_free_agent_expr): New declaration.
12790 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12792 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12794 (clear_breakpoint_conditions_and_commands): New function.
12795 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12796 (clear_breakpoint_conditions_and_commands): New declaration.
12798 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12800 * linux-aarch64-low.c (asm/ptrace.h): Include.
12802 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12804 Fix TLS access for -static -pthread.
12805 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12806 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12807 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12809 2014-05-20 Pedro Alves <palves@redhat.com>
12811 * linux-aarch64-low.c (aarch64_insert_point)
12812 (aarch64_remove_point): No longer check whether the type is
12813 supported here. Adjust to new interface.
12814 (the_low_target): Install aarch64_supports_z_point_type as
12815 supports_z_point_type method.
12816 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12817 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12818 instead of a Z packet char. Adjust.
12819 (arm_supports_z_point_type): New function.
12820 (arm_insert_point, arm_remove_point): Adjust to new interface.
12821 (the_low_target): Install arm_supports_z_point_type.
12822 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12823 (cris_insert_point, cris_remove_point): Adjust to new interface.
12824 Don't check whether the type is supported here.
12825 (the_low_target): Install cris_supports_z_point_type.
12826 * linux-low.c (linux_supports_z_point_type): New function.
12827 (linux_insert_point, linux_remove_point): Adjust to new interface.
12828 * linux-low.h (struct linux_target_ops) <insert_point,
12829 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12830 raw_breakpoint pointer parameter.
12831 <supports_z_point_type>: New method.
12832 * linux-mips-low.c (mips_supports_z_point_type): New function.
12833 (mips_insert_point, mips_remove_point): Adjust to new interface.
12834 Use mips_supports_z_point_type.
12835 (the_low_target): Install mips_supports_z_point_type.
12836 * linux-ppc-low.c (the_low_target): Install NULL as
12837 supports_z_point_type method.
12838 * linux-s390-low.c (the_low_target): Install NULL as
12839 supports_z_point_type method.
12840 * linux-sparc-low.c (the_low_target): Install NULL as
12841 supports_z_point_type method.
12842 * linux-x86-low.c (x86_supports_z_point_type): New function.
12843 (x86_insert_point): Adjust to new insert_point interface. Use
12844 insert_memory_breakpoint. Adjust to new
12845 i386_low_insert_watchpoint interface.
12846 (x86_remove_point): Adjust to remove_point interface. Use
12847 remove_memory_breakpoint. Adjust to new
12848 i386_low_remove_watchpoint interface.
12849 (the_low_target): Install x86_supports_z_point_type.
12850 * lynx-low.c (lynx_target_ops): Install NULL as
12851 supports_z_point_type callback.
12852 * nto-low.c (nto_supports_z_point_type): New.
12853 (nto_insert_point, nto_remove_point): Adjust to new interface.
12854 (nto_target_ops): Install nto_supports_z_point_type.
12855 * mem-break.c: Adjust intro comment.
12856 (struct raw_breakpoint) <raw_type, size>: New fields.
12857 <inserted>: Update comment.
12858 <shlib_disabled>: Delete field.
12859 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12860 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12861 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12862 (raw_bkpt_type_to_target_hw_bp_type): New function.
12863 (find_enabled_raw_code_breakpoint_at): New function.
12864 (find_raw_breakpoint_at): New type and size parameters. Use them.
12865 (insert_memory_breakpoint): New function, based off
12866 set_raw_breakpoint_at.
12867 (remove_memory_breakpoint): New function.
12868 (set_raw_breakpoint_at): Reimplement.
12869 (set_breakpoint): New, based on set_breakpoint_at.
12870 (set_breakpoint_at): Reimplement.
12871 (delete_raw_breakpoint): Go through the_target->remove_point
12872 instead of assuming memory breakpoints.
12873 (find_gdb_breakpoint_at): Delete.
12874 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12875 (find_gdb_breakpoint): New function.
12876 (set_gdb_breakpoint_at): Delete.
12877 (z_type_supported): New function.
12878 (set_gdb_breakpoint_1): New function, loosely based off
12879 set_gdb_breakpoint_at.
12880 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12881 (delete_gdb_breakpoint_at): Delete.
12882 (delete_gdb_breakpoint_1): New function, loosely based off
12883 delete_gdb_breakpoint_at.
12884 (delete_gdb_breakpoint): New function.
12885 (clear_gdb_breakpoint_conditions): Rename to ...
12886 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12888 (add_condition_to_breakpoint): Make static.
12889 (add_breakpoint_condition): Take a struct breakpoint pointer
12890 instead of an address. Adjust.
12891 (gdb_condition_true_at_breakpoint): Rename to ...
12892 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12894 (gdb_condition_true_at_breakpoint): Reimplement.
12895 (add_breakpoint_commands): Take a struct breakpoint pointer
12896 instead of an address. Adjust.
12897 (gdb_no_commands_at_breakpoint): Rename to ...
12898 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12899 parameter. Return true if no breakpoint was found. Change debug
12901 (gdb_no_commands_at_breakpoint): Reimplement.
12902 (run_breakpoint_commands): Rename to ...
12903 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
12904 and change return type to boolean.
12905 (run_breakpoint_commands): New function.
12906 (gdb_breakpoint_here): Also check for Z1 breakpoints.
12907 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
12908 breakpoint. Go through the_target->remove_point instead of
12909 assuming memory breakpoint.
12910 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
12911 software and hardware breakpoints.
12912 (reinsert_raw_breakpoint): Go through the_target->insert_point
12913 instead of assuming memory breakpoint.
12914 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
12915 software and hardware breakpoints.
12916 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
12917 Check both software and hardware breakpoints.
12918 (validate_inserted_breakpoint): Assert the breakpoint is a
12919 software breakpoint. Set the inserted flag to -1 instead of
12920 setting shlib_disabled.
12921 (delete_disabled_breakpoints): Adjust.
12922 (validate_breakpoints): Only validate software breakpoints.
12923 Adjust to inserted flag change.
12924 (check_mem_read, check_mem_write): Skip breakpoint types other
12925 than software breakpoints. Adjust to inserted flag change.
12926 * mem-break.h (enum raw_bkpt_type): New enum.
12927 (raw_breakpoint, struct process_info): Forward declare.
12928 (Z_packet_to_target_hw_bp_type): Delete declaration.
12929 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
12930 (set_gdb_breakpoint, delete_gdb_breakpoint)
12931 (clear_breakpoint_conditions): New declarations.
12932 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
12933 (breakpoint_inserted_here): Update comment.
12934 (add_breakpoint_condition, add_breakpoint_commands): Replace
12935 address parameter with a breakpoint pointer parameter.
12936 (gdb_breakpoint_here): Update comment.
12937 (delete_gdb_breakpoint_at): Delete.
12938 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
12939 * server.c (process_point_options): Take a struct breakpoint
12940 pointer instead of an address. Adjust.
12941 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
12942 delete_gdb_breakpoint.
12943 * spu-low.c (spu_target_ops): Install NULL as
12944 supports_z_point_type method.
12945 * target.h: Include mem-break.h.
12946 (struct target_ops) <prepare_to_access_memory>: Update comment.
12947 <supports_z_point_type>: New field.
12948 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12949 instead of a char. Also take a raw breakpoint pointer.
12950 * win32-arm-low.c (the_low_target): Install NULL as
12951 supports_z_point_type.
12952 * win32-i386-low.c (i386_supports_z_point_type): New function.
12953 (i386_insert_point, i386_remove_point): Adjust to new interface.
12954 (the_low_target): Install i386_supports_z_point_type.
12955 * win32-low.c (win32_supports_z_point_type): New function.
12956 (win32_insert_point, win32_remove_point): Adjust to new interface.
12957 (win32_target_ops): Install win32_supports_z_point_type.
12958 * win32-low.h (struct win32_target_ops):
12959 <supports_z_point_type>: New method.
12960 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
12961 instead of a char. Also take a raw breakpoint pointer.
12963 2014-05-20 Pedro Alves <palves@redhat.com>
12965 * mem-break.h: Include break-common.h.
12966 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12967 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
12968 (Z_packet_to_target_hw_bp_type): New declaration.
12969 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
12970 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
12971 (Z_PACKET_ACCESS_WP): Delete macros.
12972 (Z_packet_to_hw_type): Delete function.
12973 * i386-low.h: Don't include break-common.h here.
12974 (Z_packet_to_hw_type): Delete declaration.
12975 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
12976 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12977 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
12978 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
12979 * linux-aarch64-low.c: Don't include break-common.h here.
12980 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
12981 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
12982 (Z_packet_to_target_hw_bp_type): Delete function.
12983 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
12985 (mips_insert_point, mips_remove_point): Use
12986 Z_packet_to_target_hw_bp_type.
12988 2014-05-20 Pedro Alves <palves@redhat.com>
12990 * linux-aarch64-low.c: Include break-common.h.
12991 (enum target_point_type): Delete.
12992 (Z_packet_to_point_type): Rename to ...
12993 (Z_packet_to_target_hw_bp_type): ... this, and return a
12994 target_hw_bp_type instead.
12995 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
12996 instead of an enum target_point_type.
12997 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
12999 (aarch64_dr_state_insert_one_point)
13000 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13001 (aarch64_handle_aligned_watchpoint)
13002 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13003 Take an enum target_hw_bp_type instead of an enum
13005 (aarch64_supports_z_point_type): New function.
13006 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13007 use Z_packet_to_target_hw_bp_type.
13009 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13011 * configure.ac: Only use -Werror by default when DEVELOPMENT
13013 * configure: Regenerate.
13015 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13017 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13018 * linux-x86-low.c (X86_64_USER_REGS): New.
13019 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13021 2014-04-28 Yao Qi <yao@codesourcery.com>
13023 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13026 2014-04-25 Pedro Alves <palves@redhat.com>
13029 * linux-low.c (linux_attach_fail_reason_string): New function.
13030 (linux_attach_lwp): Delete.
13031 (linux_attach_lwp_1): Rename to ...
13032 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13033 argument. Remove "initial" parameter. Return int instead of
13034 void. Don't error or warn here.
13035 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13036 failure to attach to the tgid. Call warning when failing to
13038 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13039 argument. Remove "initial" parameter. Return int instead of
13040 void. Don't error or warn here.
13041 (linux_attach_fail_reason_string): New declaration.
13042 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13043 interface change. Use linux_attach_fail_reason_string.
13045 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13046 Walfred Tedeschi <walfred.tedeschi@intel.com>
13048 * Makefile.in: Added rules to handle new files
13049 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13050 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13051 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13052 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13053 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13054 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13055 x32-avx512-linux.o.
13056 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13057 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13058 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13059 i386/x32-avx512.xml.
13060 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13061 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13062 i386/x32-avx512-linux.xml.
13063 * i387-fp.c (num_avx512_k_registers): New constant for number
13065 (num_avx512_zmmh_low_registers): New constant for number of
13066 lower ZMM registers (0-15).
13067 (num_avx512_zmmh_high_registers): New constant for number of
13068 higher ZMM registers (16-31).
13069 (num_avx512_ymmh_registers): New contant for number of higher
13070 YMM registers (ymm16-31 added by avx521 on x86_64).
13071 (num_avx512_xmm_registers): New constant for number of higher
13072 XMM registers (xmm16-31 added by AVX512 on x86_64).
13073 (struct i387_xsave): Add space for AVX512 registers.
13074 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13075 Add code to handle AVX512 registers.
13076 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13077 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13078 prototypei from generated file.
13079 (tdesc_amd64_avx512_linux): Likewise.
13080 (init_registers_x32_avx512_linux): Likewise.
13081 (tdesc_x32_avx512_linux): Likewise.
13082 (init_registers_i386_avx512_linux): Likewise.
13083 (tdesc_i386_avx512_linux): Likewise.
13084 (x86_64_regmap): Add AVX512 registers.
13085 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13087 (initialize_low_arch): Add code to initialize AVX512 registers.
13089 2014-04-23 Pedro Alves <palves@redhat.com>
13091 * mem-break.c (find_gdb_breakpoint_at): Make static.
13092 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13094 2014-04-23 Pedro Alves <palves@redhat.com>
13096 * i386-low.c: Don't include break-common.h here.
13097 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13098 prototype to take target_hw_bp_type as argument instead of a Z
13100 * i386-low.h: Include break-common.h here.
13101 (Z_packet_to_hw_type): Declare.
13102 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13104 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13105 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13106 (x86_remove_point): Convert the packet number to a
13107 target_hw_bp_type before calling i386_low_remove_watchpoint.
13108 * win32-i386-low.c (i386_insert_point): Convert the packet number
13109 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13110 (i386_remove_point): Convert the packet number to a
13111 target_hw_bp_type before calling i386_low_remove_watchpoint.
13113 2014-04-23 Pedro Alves <palves@redhat.com>
13115 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13117 2014-04-10 Pedro Alves <palves@redhat.com>
13119 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13120 Check if the condition or command is NULL before checking if the
13121 breakpoint is known. On success, return true.
13122 * mem-break.h (add_breakpoint_condition): Document return.
13123 (add_breakpoint_commands): Add describing comment.
13124 * server.c (skip_to_semicolon): New function.
13125 (process_point_options): Use it.
13127 2014-04-09 Pedro Alves <palves@redhat.com>
13129 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13132 2014-02-27 Pedro Alves <palves@redhat.com>
13135 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13137 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13139 (last_thread_of_process_p): Take a PID argument instead of a
13141 (linux_wait_for_lwp): Delete.
13142 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13144 (linux_low_filter_event): New function, party factored out from
13145 linux_wait_for_event.
13146 (linux_wait_for_event): Rename to ...
13147 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13148 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13149 sigsuspend. Check for zombie leaders.
13150 (linux_wait_for_event): Reimplement as wrapper around
13151 linux_wait_for_event_filtered.
13152 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13153 a normal or signal exit is seen, it's the whole process exiting.
13154 (wait_for_sigstop): No longer a for_each_inferior callback.
13155 Rewrite on top of linux_wait_for_event_filtered.
13156 (stop_all_lwps): Call wait_for_sigstop directly.
13157 * server.c (resume, handle_target_event): Handle
13158 TARGET_WAITKIND_NO_RESUMED.
13160 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13162 * win32-low.c (psapi_get_dll_name,
13163 * win32_CreateToolhelp32Snapshot): Delete.
13164 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13165 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13167 (handle_load_dll): Add function description.
13168 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13170 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13172 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13174 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13175 base address when calling win32_add_one_solib.
13176 (handle_load_dll): Delete local variable load_addr.
13177 Remove 0x1000 offset applied to DLL base address when calling
13178 win32_add_one_solib.
13179 (handle_unload_dll): Add comment.
13181 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13183 * win32-low.c (win32_add_all_dlls): Renames
13184 win32_ensure_ntdll_loaded. Rewrite function documentation.
13185 Adjust implementation to always load all DLLs.
13186 Add 0x1000 offset to DLL base address when calling
13187 win32_add_one_solib.
13188 (child_initialization_done): New static global.
13189 (do_initial_child_stuff): Set child_initialization_done to
13190 zero during child initialization, and 1 after. Replace call
13191 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13193 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13194 (handle_unload_dll): Add function documentation.
13195 (get_child_debug_event): Ignore load and unload DLL events
13196 during child initialization.
13198 2014-02-20 Doug Evans <dje@google.com>
13200 Remove global all_lwps.
13201 * inferiors.h (ptid_of): Move here from linux-low.h.
13202 (pid_of, lwpid_of): Ditto.
13203 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13204 parameter is a struct thread_info * now.
13205 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13206 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13207 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13209 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13210 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13211 * linux-arm-low.c (update_registers_callback): Update, "entry"
13212 parameter is a struct thread_info * now.
13213 Fetch lwpid from current_inferior directly.
13214 (arm_insert_point): Pass &all_threads to find_inferior instead of
13216 (arm_remove_point): Ditto.
13217 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13218 (arm_prepare_to_resume): Fetch pid from thread.
13219 (arm_read_description): Fetch lwpid from current_inferior directly.
13220 * linux-low.c (all_lwps): Delete.
13221 (delete_lwp): Delete call to remove_inferior.
13222 (handle_extended_wait): Fetch lwpid from thread.
13223 (add_lwp): Don't set lwp->entry.id. Remove call to
13224 add_inferior_to_list.
13225 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13226 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13227 (kill_one_lwp_callback): Ditto.
13228 (linux_kill): Don't dereference NULL pointer.
13229 Fetch ptid,lwpid from thread.
13230 (get_detach_signal): Fetch ptid from thread.
13231 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13232 Simplify call to regcache_invalidate_thread.
13233 (delete_lwp_callback): Update, "entry" parameter is a
13234 struct thread_info * now. Fetch pid from thread.
13235 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13236 (status_pending_p_callback): Update, "entry" parameter is a
13237 struct thread_info * now. Fetch ptid from thread.
13238 (find_lwp_pid): Update, "entry" parameter is a
13239 struct thread_info * now.
13240 (linux_wait_for_lwp): Fetch pid from thread.
13241 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13242 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13243 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13244 (dequeue_one_deferred_signal): Ditto.
13245 (cancel_breakpoint): Fetch ptid from current_inferior.
13246 (linux_wait_for_event): Pass &all_threads to find_inferior,
13247 not &all_lwps. Fetch ptid, lwpid from thread.
13248 (count_events_callback): Update, "entry" parameter is a
13249 struct thread_info * now.
13250 (select_singlestep_lwp_callback): Ditto.
13251 (select_event_lwp_callback): Ditto.
13252 (cancel_breakpoints_callback): Ditto.
13253 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13255 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13256 (unsuspend_one_lwp): Update, "entry" parameter is a
13257 struct thread_info * now.
13258 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13260 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13261 Fetch lwpid from thread, not lwp.
13262 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13263 Pass &all_threads to find_inferior, not &all_lwps.
13264 (send_sigstop): Fetch lwpid from thread, not lwp.
13265 (send_sigstop_callback): Update, "entry" parameter is a
13266 struct thread_info * now.
13267 (suspend_and_send_sigstop_callback): Ditto.
13268 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13269 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13270 struct thread_info * now.
13271 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13273 (lwp_running): Update, "entry" parameter is a
13274 struct thread_info * now.
13275 (stop_all_lwps): Fetch ptid from thread.
13276 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13277 (linux_resume_one_lwp): Fetch lwpid from thread.
13278 (linux_set_resume_request): Update, "entry" parameter is a
13279 struct thread_info * now. Fetch pid, lwpid from thread.
13280 (resume_status_pending_p): Update, "entry" parameter is a
13281 struct thread_info * now.
13282 (need_step_over_p): Ditto. Fetch lwpid from thread.
13283 (start_step_over): Fetch lwpid from thread.
13284 (linux_resume_one_thread): Update, "entry" parameter is a
13285 struct thread_info * now. Fetch lwpid from thread.
13286 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13287 (proceed_one_lwp): Update, "entry" parameter is a
13288 struct thread_info * now. Fetch lwpid from thread.
13289 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13290 struct thread_info * now.
13291 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13292 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13293 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13295 (regsets_store_inferior_registers): Ditto.
13296 (fetch_register, store_register): Ditto.
13297 (linux_read_memory, linux_write_memory): Ditto.
13298 (linux_request_interrupt): Ditto.
13299 (linux_read_auxv): Ditto.
13300 (linux_xfer_siginfo): Ditto.
13301 (linux_qxfer_spu): Ditto.
13302 (linux_qxfer_libraries_svr4): Ditto.
13303 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13304 moved to inferiors.h.
13306 (get_thread_lwp): Update.
13307 (struct lwp_info): Delete member "entry". Simplify comment for
13309 (all_lwps): Delete.
13310 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13311 current_inferior directly.
13312 (update_watch_registers_callback): Update, "entry" parameter is a
13313 struct thread_info * now. Fetch pid from thread.
13314 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13315 (mips_insert_point): Fetch lwpid from current_inferior.
13316 Pass &all_threads to find_inferior, not &all_lwps.
13317 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13318 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13320 (mips_stopped_data_address): Ditto.
13321 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13323 * linux-tile-low.c (tile_arch_setup): Ditto.
13324 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13325 (update_debug_registers_callback): Update, "entry" parameter is a
13326 struct thread_info * now. Fetch pid from thread.
13327 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13328 Pass &all_threads to find_inferior, not &all_lwps.
13329 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13330 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13331 Pass &all_threads to find_inferior, not &all_lwps.
13332 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13333 (i386_dr_low_get_status): Ditto.
13334 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13335 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13336 (x86_linux_read_description): Ditto.
13337 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13339 2014-02-20 Doug Evans <dje@google.com>
13341 * inferiors.c (get_first_inferior): Fix buglet.
13343 2014-02-19 Doug Evans <dje@google.com>
13345 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13346 * inferiors.c (add_thread): Change result type to struct thread_info *.
13347 All callers updated.
13348 (add_lwp): Call add_thread here instead of in callers.
13349 All callers updated.
13350 * linux-low.h (get_lwp_thread): Rewrite.
13351 (struct lwp_info): New member "thread".
13353 2014-02-19 Doug Evans <dje@google.com>
13355 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13356 All callers updated.
13358 2014-02-19 Doug Evans <dje@google.com>
13360 * inferiors.c (add_thread): Fix whitespace.
13362 2014-02-19 Doug Evans <dje@google.com>
13364 * dll.c (clear_dlls): Replace accessing list implemention details
13366 * gdbthread.h (get_first_thread): Declare.
13367 * inferiors.c (for_each_inferior_with_data): New function.
13368 (get_first_thread): New function.
13369 (find_thread_ptid): Simplify.
13370 (get_first_inferior): New function.
13371 (clear_list): Delete.
13372 (one_inferior_p): New function.
13373 (clear_inferior_list): New function.
13374 (clear_inferiors): Update.
13375 * inferiors.h (for_each_inferior_with_data): Declare.
13376 (clear_inferior_list): Declare.
13377 (one_inferior_p): Declare.
13378 (get_first_inferior): Declare.
13379 * linux-low.c (linux_wait_for_event): Replace accessing list
13380 implemention details with API function.
13381 * server.c (target_running): Ditto.
13382 (accumulate_file_name_length): New function.
13383 (emit_dll_description): New function.
13384 (handle_qxfer_libraries): Replace accessing list implemention
13385 details with API function.
13386 (handle_qxfer_threads_worker): New function.
13387 (handle_qxfer_threads_proper): Replace accessing list implemention
13388 details with API function.
13389 (handle_query): Ditto.
13390 (visit_actioned_threads_callback_ftype): New typedef.
13391 (visit_actioned_threads_data): New struct.
13392 (visit_actioned_threads): Rewrite to be find_inferior callback.
13393 (resume): Call find_inferior.
13394 (handle_status): Replace accessing list implemention
13395 details with API function.
13396 (process_serial_event): Replace accessing list implemention details
13398 * target.c (set_desired_inferior): Replace accessing list implemention
13399 details with API function.
13400 * tracepoint.c (same_process_p): New function.
13401 (gdb_agent_about_to_close): Replace accessing list implemention
13402 details with API function.
13403 * win32-low.c (child_delete_thread): Replace accessing list
13404 implemention details with API function.
13405 (match_dll_by_basename): New function.
13406 (dll_is_loaded_by_basename): New function.
13407 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13408 details call to dll_is_loaded_by_basename.
13410 2014-02-19 Doug Evans <dje@google.com>
13412 * dll.h (struct dll_info): Add comment.
13413 * gdbthread.h (struct thread_info): Add comment.
13414 (current_ptid): Simplify.
13415 * inferiors.c (add_process): Update.
13416 (remove_process): Update.
13417 * inferiors.h (struct process_info): Rename member "head" to "entry".
13418 * linux-low.c (delete_lwp): Update.
13420 (last_thread_of_process_p): Update.
13421 (kill_one_lwp_callback, linux_kill): Update.
13422 (status_pending_p_callback): Update.
13423 (wait_for_sigstop): Update. Simplify read of ptid.
13424 (start_step_over): Update.
13425 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13426 (get_lwp_thread): Update.
13427 (struct lwp_info): Rename member "head" to "entry".
13428 * regcache.h (inferior_list_entry): Delete.
13429 * server.c (kill_inferior_callback): Update.
13430 (detach_or_kill_inferior_callback): Update.
13431 (print_started_pid): Update.
13432 (print_attached_pid): Update.
13433 (process_serial_event): Simplify read of ptid.
13434 * thread-db.c (thread_db_create_event): Update.
13435 (thread_db_get_tls_address): Update.
13436 * win32-low.c (current_inferior_ptid): Simplify.
13438 2014-02-19 Tom Tromey <tromey@redhat.com>
13440 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13442 (target_supports_btrace): Update.
13444 2014-02-14 Yao Qi <yao@codesourcery.com>
13446 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13447 (rsp-low-ipa.o): New target.
13449 2014-02-12 Tom Tromey <tromey@redhat.com>
13451 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13452 convert_ascii_to_int.
13453 * regcache.c (registers_to_string): Likewise.
13454 * remote-utils.c (decode_M_packet): Likewise.
13455 * server.c (process_serial_event): Likewise.
13457 2014-02-12 Tom Tromey <tromey@redhat.com>
13459 * server.c (handle_query, handle_v_run): Use hex2bin, not
13461 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13463 2014-02-12 Tom Tromey <tromey@redhat.com>
13465 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13466 convert_int_to_ascii.
13467 * regcache.c (registers_to_string, collect_register_as_string):
13469 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13471 * server.c (process_serial_event): Likewise.
13472 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13473 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13475 2014-02-12 Tom Tromey <tromey@redhat.com>
13477 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13478 bin2hex, not hexify.
13479 * tracepoint.c (cmd_qtstatus): Likewise.
13481 2014-02-12 Tom Tromey <tromey@redhat.com>
13483 * remote-utils.c (monitor_output): Pass explicit length to
13486 2014-02-12 Tom Tromey <tromey@redhat.com>
13488 * tracepoint.c: Include rsp-low.h.
13489 * server.c: Include rsp-low.h.
13490 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13491 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13493 * remote-utils.c: Include rsp-low.h.
13494 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13495 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13496 (convert_int_to_ascii, convert_ascii_to_int): Move to
13498 * regcache.c: Include rsp-low.h.
13499 * ax.c: Include rsp-low.h.
13500 * Makefile.in (SFILES): Add common/rsp-low.c.
13501 (OBS): Add rsp-low.o.
13502 (rsp-low.o): New target.
13504 2014-02-12 Tom Tromey <tromey@redhat.com>
13506 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13507 Include print-utils.h.
13508 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13509 (plongest, thirty_two, phex_nz): Remove.
13510 * Makefile.in (SFILES): Add common/print-utils.c.
13511 (OBS): Add print-utils.o.
13512 (print-utils-ipa.o): New target.
13513 (print-utils.o): New target.
13514 (IPA_OBJS): Add print-utils-ipa.o.
13516 2014-02-06 Tom Tromey <tromey@redhat.com>
13518 * Makefile.in (SFILES): Fix indentation.
13520 2014-02-05 Doug Evans <dje@google.com>
13522 * linux-low.c (linux_wait_for_event): Improve comment.
13523 (linux_wait_1): Keep current_inferior in sync with event_child.
13525 2014-01-22 Doug Evans <dje@google.com>
13527 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13529 2014-01-22 Doug Evans <dje@google.com>
13531 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13532 * configure: Regenerate.
13533 * config.in: Regenerate.
13534 * Makefile.in (SFILES): Add debug.c.
13535 (OBS): Add debug.o.
13536 * debug.c: New file.
13537 * debug.h: New file.
13538 * linux-aarch64-low.c (*): Update all debugging printfs to use
13539 debug_printf instead of fprintf.
13540 * linux-arm-low.c (*): Ditto.
13541 * linux-cris-low.c (*): Ditto.
13542 * linux-crisv32-low.c (*): Ditto.
13543 * linux-m32r-low.c (*): Ditto.
13544 * linux-sparc-low.c (*): Ditto.
13545 * linux-x86.c (*): Ditto.
13546 * linux-low.c (*): Ditto.
13547 (linux_wait_1): Add calls to debug_enter, debug_exit.
13548 (linux_wait): Remove redundant debugging printf.
13549 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13550 (linux_resume, unstop_all_lwps): Ditto.
13551 * mem-break.c (*): Update all debugging printfs to use
13552 debug_printf instead of fprintf.
13553 * remote-utils.c (*): Ditto.
13554 * thread-db.c (*): Ditto.
13555 * server.c #include <ctype.h>, "gdb_vecs.h".
13556 (debug_threads): Moved to debug.c.
13557 (*): Update all debugging printfs to use debug_printf instead of
13559 (start_inferior): Replace call to fflush with call to debug_flush.
13560 (monitor_show_help): Mention set debug-format.
13561 (parse_debug_format_options): New function.
13562 (handle_monitor_command): Handle "monitor set debug-format".
13563 (gdbserver_usage): Mention --debug-format.
13564 (main): Parse --debug-format.
13565 * server.h (debug_threads): Declaration moved to debug.h.
13566 #include "debug.h".
13567 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13568 trace_debug_1 that uses debug_printf.
13569 (tracepoint_look_up_symbols): Update all debugging printfs to use
13570 debug_printf instead of fprintf.
13572 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13574 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13577 2014-01-17 Pedro Alves <palves@redhat.com>
13580 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13581 defined after including gdb_proc_service.h.
13583 2014-01-16 Doug Evans <dje@google.com>
13585 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13586 (match_dll): Use it.
13588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13590 * target.h (target_ops) <read_btrace>: Change parameters and
13591 return type to allow error reporting.
13592 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13593 trace reading errors on.
13594 * linux-low.c (linux_low_read_btrace): Pass trace reading
13596 (linux_low_disable_btrace): New.
13598 2014-01-15 Doug Evans <dje@google.com>
13600 * inferiors.c (thread_id_to_gdb_id): Delete.
13601 * inferiors.h (thread_id_to_gdb_id): Delete.
13603 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13605 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13606 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13609 2014-01-08 Pedro Alves <palves@redhat.com>
13611 * server.c (handle_status): Don't discard previous queued stop
13612 replies or thread's pending status here.
13613 (main) <disconnection>: Do it here instead.
13615 2014-01-08 Pedro Alves <palves@redhat.com>
13617 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13618 * server.c (visit_actioned_threads, handle_pending_status): New
13620 (handle_v_cont): Factor out parts to ...
13621 (resume): ... this new function. If in all-stop, and a thread
13622 being resumed has a pending status, report it without actually
13624 (myresume): Adjust to use the new 'resume' function.
13625 (clear_pending_status_callback, set_pending_status_callback)
13626 (find_status_pending_thread_callback): New functions.
13627 (handle_status): Handle the case of multiple threads having
13628 interesting statuses to report. Report threads' real last signal
13629 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13630 with an interesting thread to report the status for, instead of
13631 always reporting the status of the first thread.
13633 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13635 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13636 * gdbreplay.c (gdbreplay_version): Likewise.
13638 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13640 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13641 iov.iov_len with the real length in use.
13643 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13645 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13646 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13647 for all targets that use win32-low.c.
13648 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13649 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13651 2013-12-13 Pedro Alves <palves@redhat.com>
13653 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13654 if equal to TARGET_WAITKIND_LOADED.
13655 * win32-low.c (cached_status): New static global.
13656 (win32_wait): Add declaration.
13657 (do_initial_child_stuff): Flush all initial pending debug events
13658 up to the initial breakpoint.
13659 (win32_wait): If CACHED_STATUS was set, return that instead
13660 of doing a real wait. Remove the code resuming the execution
13661 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13662 during the initial phase. Also remove the code changing
13663 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13664 TARGET_WAITKIND_STOPPED.
13666 2013-12-11 Yao Qi <yao@codesourcery.com>
13668 * notif.c (handle_notif_ack): Return 0 if no notification
13671 2013-11-20 Doug Evans <dje@google.com>
13673 * linux-low.c (linux_set_resume_request): Fix comment.
13675 2013-11-20 Doug Evans <dje@google.com>
13677 * linux-low.c (resume_status_pending_p): Tweak comment.
13679 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13681 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13682 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13683 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13684 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13685 (srv_amd64_regobj): Add amd64-mpx.o.
13686 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13687 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13688 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13689 * i387-fp.c (num_pl_bnd_register) Added constant.
13690 (num_pl_bnd_cfg_registers) Added constant.
13691 (struct i387_xsave) Added reserved area and MPX fields.
13692 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13693 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13695 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13696 (init_registers_amd64_mpx_linux): Declare new function.
13697 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13698 (x86_64_regmap): Add MPX registers.
13699 (x86_linux_read_description): Add MPX case.
13700 (initialize_low_arch): Initialize MPX targets.
13702 2013-11-18 Tom Tromey <tromey@redhat.com>
13704 * configure: Rebuild.
13705 * configure.ac: Don't check for stdlib.h.
13706 * gdbreplay.c: Unconditionally include stdlib.h.
13708 2013-11-18 Tom Tromey <tromey@redhat.com>
13710 * config.in: Rebuild.
13711 * configure: Rebuild.
13712 * configure.ac: Don't use AC_HEADER_DIRENT.
13714 2013-11-18 Tom Tromey <tromey@redhat.com>
13716 * server.h: Don't check HAVE_STRING_H.
13717 * gdbreplay.c: Don't check HAVE_STRING_H.
13718 * configure: Rebuild.
13720 2013-11-18 Tom Tromey <tromey@redhat.com>
13722 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13725 2013-11-08 Tom Tromey <tromey@redhat.com>
13727 * configure, config.in: Rebuild.
13728 * configure.ac: Remove unused configury.
13730 2013-11-08 Tom Tromey <tromey@redhat.com>
13732 * acinclude.m4: Include common.m4, codeset.m4.
13733 * configure, config.in: Rebuild.
13734 * configure.ac: Use GDB_AC_COMMON.
13736 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13738 * linux-s390-low.c (HWCAP_S390_TE): New define.
13739 (s390_arch_setup): Consider the TE field in the HWCAP for
13740 determining 'have_regset_tdb'.
13742 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13745 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13748 2013-10-02 Pedro Alves <palves@redhat.com>
13750 * server.c (process_serial_event): Don't output "GDBserver
13751 exiting" if GDB is connected through stdio.
13752 * target.c (mywait): Likewise, be silent if GDB is connected
13755 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13757 * lynx-low.c (lynx_add_threads_after_attach): New function.
13758 (lynx_attach): Remove call to add_thread. Add call to
13759 lynx_add_threads_after_attach instead.
13761 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13763 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13764 * config.in, configure: Regenerated.
13766 2013-09-18 Yao Qi <yao@codesourcery.com>
13769 * server.c (start_inferior): Clear 'resume_info'.
13771 2013-09-16 Jiong Wang <jiwang@tilera.com>
13773 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13776 2013-09-16 Jiong Wang <jiwang@tilera.com>
13778 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13779 linux-tile-low.o to srv_tgtobj.
13781 2013-09-16 Will Newton <will.newton@linaro.org>
13783 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13786 2013-09-06 Pedro Alves <palves@redhat.com>
13788 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13789 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13790 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13791 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13792 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13793 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13795 2013-09-06 Pedro Alves <palves@redhat.com>
13797 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13798 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13800 2013-09-06 Pedro Alves <palves@redhat.com>
13802 * linux-amd64-ipa.c: Include tracepoint.h.
13803 * linux-i386-ipa.c: Include tracepoint.h.
13805 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13807 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13808 (ps_get_thread_area): New function.
13810 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13812 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13813 (initialize_low_arch): Call init_registers_crisv32 rather than
13814 init_register_crisv32.
13816 2013-09-05 Pedro Alves <palves@redhat.com>
13818 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13820 * hostio.h: ... this new file.
13821 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13822 win32-low.c: Include hostio.h.
13824 2013-09-05 Pedro Alves <palves@redhat.com>
13826 * server.h (gdb_client_data, handler_func, callback_handler_func)
13827 (delete_file_handler, add_file_handler, append_callback_event)
13828 (delete_callback_event, start_event_loop, initialize_event_loop):
13829 Move to event-loop.h and include it.
13830 * event-loop.h: New file.
13832 2013-09-05 Pedro Alves <palves@redhat.com>
13834 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13835 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13836 (loaded_dll, unloaded_dll): Move to ...
13837 * dll.h: ... this new file.
13838 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13840 2013-09-05 Pedro Alves <palves@redhat.com>
13842 * server.h (current_process, get_thread_process, all_processes)
13843 (add_inferior_to_list, for_each_inferior, current_inferior)
13844 (remove_inferior, add_process, remove_process, find_process_pid)
13845 (have_started_inferiors_p, have_attached_inferiors_p)
13846 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13847 (clear_inferiors, find_inferior, find_inferior_id)
13848 (inferior_target_data, set_inferior_target_data)
13849 (inferior_regcache_data, set_inferior_regcache_data): Move to
13850 inferiors.h, and include it.
13851 * inferiors.h: New file.
13853 2013-09-05 Pedro Alves <palves@redhat.com>
13855 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13859 2013-09-05 Pedro Alves <palves@redhat.com>
13861 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13863 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13864 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13865 (handle_tracepoint_general_set, handle_tracepoint_query)
13866 (tracepoint_finished_step, tracepoint_was_hit)
13867 (release_while_stepping_state_list, current_traceframe)
13868 (in_readonly_region, traceframe_read_mem)
13869 (fetch_traceframe_registers, traceframe_read_sdata)
13870 (traceframe_read_info, struct fast_tpoint_collect_status)
13871 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13872 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13873 (supply_fast_tracepoint_registers)
13874 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13875 (ipa_tdesc, claim_trampoline_space)
13876 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13877 (agent_mem_read, agent_get_trace_state_variable_value)
13878 (agent_set_trace_state_variable_value, agent_tsv_read)
13879 (agent_mem_read_string, get_raw_reg_func_addr)
13880 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13881 * tracepoint.h: ... this new file.
13883 2013-09-05 Pedro Alves <palves@redhat.com>
13885 * server.h (perror_with_name, error, fatal, warning, paddress)
13886 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13888 * utils.h: New file.
13890 2013-09-05 Pedro Alves <palves@redhat.com>
13892 * server.h (remote_debug, noack_mode, transport_is_reliable)
13893 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13894 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13895 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13896 (write_enn, initialize_async_io, enable_async_io)
13897 (disable_async_io, check_remote_input_interrupt_request)
13898 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13899 (dead_thread_notify, prepare_resume_reply)
13900 (decode_address_to_semicolon, decode_address, decode_m_packet)
13901 (decode_M_packet, decode_X_packet, decode_xfer_write)
13902 (decode_search_memory_packet, unhexify, hexify)
13903 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
13904 (look_up_one_symbol, relocate_instruction)
13905 (monitor_output): Move to remote-utils.h, and include it.
13906 * remote-utils.h: New file.
13908 2013-09-05 Pedro Alves <palves@redhat.com>
13910 * server.h (_): Delete.
13912 2013-09-02 Pedro Alves <palves@redhat.com>
13914 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
13915 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
13917 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
13919 2013-09-02 Pierre Muller <muller@sourceware.org>
13921 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
13922 or WriteProcessMemory complete successfully and handle
13923 ERROR_PARTIAL_COPY error.
13925 2013-09-02 Pedro Alves <palves@redhat.com>
13927 * server.c (gdb_read_memory): Return -1 on traceframe memory read
13928 error instead of EIO.
13930 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13933 * linux-low.c: Include filestuff.h.
13934 (linux_create_inferior) <pid == 0>: Call close_most_fds.
13935 * lynx-low.c: Include filestuff.h.
13936 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
13937 * server.c: Include filestuff.h.
13938 (main): Call notice_open_fds.
13939 * spu-low.c: Include filestuff.h.
13940 (spu_create_inferior) <pid == 0>: Call close_most_fds.
13942 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
13944 * Makefile.in: Explain why ../target and ../nat are not
13945 listed as include file search paths.
13946 (linux-waitpid.o): New object file rule.
13947 * configure.srv (srv_native_linux_obj): New variable.
13948 Replace all occurrences of linux native object files with
13949 $srv_native_linux_obj.
13950 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
13951 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
13952 (linux_enable_event_reporting): Remove declaration.
13953 (my_waitpid): Moved to common/linux-waitpid.c.
13954 (linux_wait_for_event): Pass ptid when calling
13955 linux_enable_event_reporting.
13956 (linux_supports_tracefork_flag): Remove.
13957 (linux_enable_event_reporting): Likewise.
13958 (linux_tracefork_grandchild): Remove.
13959 (STACK_SIZE): Moved to common/linux-ptrace.c.
13960 (linux_tracefork_child): Remove.
13961 (linux_test_for_tracefork): Remove.
13962 (linux_look_up_symbols): Call linux_supports_traceclone.
13963 (initialize_low): Remove call to linux_test_for_tracefork.
13964 * linux-low.h (PTRACE_TYPE_ARG3): Move to
13965 common/linux-ptrace.h.
13966 (PTRACE_TYPE_ARG4): Likewise.
13967 Include linux-ptrace.h.
13969 2013-08-21 Pedro Alves <palves@redhat.com>
13971 * config.in: Renegerate.
13973 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
13975 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
13976 (SFILES): Remove $(srcdir)/common/target-common.c and
13977 add $(srcdir)/target/waitstatus.c.
13978 (OBS): Remove target-common.o and add waitstatus.o.
13979 (server_h): Remove $(srcdir)/../common/target-common.h and
13980 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
13981 and $(srcdir)/../target/waitstatus.h.
13982 (target-common.o): Remove.
13983 (waitstatus.o): New target object file.
13984 * target.h: Do not include target-common.h and
13985 include target/resume.h, target/wait.h and
13986 target/waitstatus.h.
13988 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
13990 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13991 to PTRACE_TYPE_ARG3.
13992 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
13993 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
13995 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
13996 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
13998 2013-07-27 Jie Zhang <jie@codesourcery.com>
13999 Daniel Jacobowitz <dan@codesourcery.com>
14000 Yao Qi <yao@codesourcery.com>
14002 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14003 (mips-linux-watch.o): New rule.
14004 (mips_linux_watch_h): New variable.
14005 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14007 * linux-mips-low.c: Include mips-linux-watch.h.
14008 (struct arch_process_info, struct arch_lwp_info): New.
14009 (update_watch_registers_callback): New function.
14010 (mips_linux_new_process, mips_linux_new_thread) New functions.
14011 (mips_linux_prepare_to_resume, mips_insert_point): New
14013 (mips_remove_point, mips_stopped_by_watchpoint): New
14015 (rsp_bp_type_to_target_hw_bp_type): New function.
14016 (mips_stopped_data_address): New function.
14017 (the_low_target): Add watchpoint support functions.
14019 2013-07-27 Yao Qi <yao@codesourcery.com>
14021 * i386-low.c: Include break-common.h.
14022 (enum target_hw_bp_type): Remove.
14024 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14026 * Makefile.in (SFILES): /common/target-common.c.
14027 (OBS): Add target-common.o.
14028 (server_h): Add $(srcdir)/../common/target-common.h.
14029 (target-common.o): New target.
14030 * server.c (queue_stop_reply_callback): Free
14031 status string after use.
14032 * target.c (target_waitstatus_to_string): Remove.
14033 * target.h: Include target-common.h.
14034 (resume_kind): Likewise.
14035 (target_waitkind): Likewise.
14036 (target_waitstatus): Likewise.
14037 (TARGET_WNOHANG): Likewise.
14039 2013-07-04 Yao Qi <yao@codesourcery.com>
14041 * Makefile.in (host_alias): Use @host_noncanonical@.
14042 (target_alias): Use @target_noncanonical@.
14043 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14044 ACX_NONCANONICAL_HOST.
14045 * configure: Regenerated.
14048 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14050 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14051 * configure: Rebuild.
14052 * Makefile.in (version_host, version_target): Get from configure.
14053 (version.c): Use $(version_host) and $(version_target).
14055 2013-07-03 Pedro Alves <palves@redhat.com>
14057 * Makefile.in (config.status): Depend on development.sh.
14058 * acinclude.m4: Include libmcheck.m4.
14059 * configure: Regenerate.
14061 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14063 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14064 attribute inside the parentheses.
14065 (winapi_DebugSetProcessKillOnExit): Ditto.
14066 (winapi_DebugBreakProcess): Ditto.
14067 (winapi_GenerateConsoleCtrlEvent): Ditto.
14069 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14071 * notif.h (notif_event): Add a dummy member to avoid compiler
14074 2013-07-01 Pedro Alves <palves@redhat.com>
14076 * hostio.c (HOSTIO_PATH_MAX): Define.
14077 (require_filename, handle_open, handle_unlink, handle_readlink):
14080 2013-07-01 Pedro Alves <palves@redhat.com>
14082 * server.h: Include "pathmax.h".
14083 * linux-low.c: Don't include sys/param.h.
14084 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14086 * win32-low.c: Don't include sys/param.h.
14087 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14089 2013-07-01 Pedro Alves <palves@redhat.com>
14091 * event-loop.c: Don't check HAVE_UNISTD_H before including
14093 * gdbreplay.c: Likewise.
14094 * remote-utils.c: Likewise.
14095 * server.c: Likewise.
14096 * configure.ac: Don't check for unistd.h.
14097 * configure: Regenerate.
14099 2013-06-28 Tom Tromey <tromey@redhat.com>
14101 * Makefile.in (version.c): Use version.in, not
14104 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14106 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14107 * configure: Rebuild.
14108 * Makefile.in (version_host, version_target): Get from configure.
14109 (version.c): Use $(version_host) and $(version_target).
14111 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14113 Fix trace-status to output user name without trailing colon.
14114 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14116 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14118 Fix trace-status to output proper start-time and stop-time.
14119 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14120 output start time and stop time in hex as gdb expects.
14122 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14124 * tracepoint.c (build_traceframe_info_xml): Output trace state
14125 variables present in the trace buffer.
14127 2013-06-24 Tom Tromey <tromey@redhat.com>
14129 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14131 (version.o): Remove.
14132 * gdbreplay.c: Include version.h.
14133 (version, host_name): Don't declare.
14134 * server.h: Include version.h.
14135 (version, host_name): Don't declare.
14137 2013-06-12 Pedro Alves <palves@redhat.com>
14139 * linux-x86-low.c (linux_is_elf64): Delete global.
14140 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14141 with local linux_pid_exe_is_elf_64_file use.
14143 2013-06-11 Pedro Alves <palves@redhat.com>
14145 * linux-low.c (regset_disabled, disable_regset): New functions.
14146 (regsets_fetch_inferior_registers)
14147 (regsets_store_inferior_registers): Use them.
14148 (initialize_regsets_info); Don't allocate the disabled_regsets
14150 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14153 2013-06-11 Pedro Alves <palves@redhat.com>
14155 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14158 2013-06-11 Pedro Alves <palves@redhat.com>
14160 * linux-x86-low.c (initialize_low_arch): Call
14161 init_registers_x32_avx_linux.
14163 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14165 Fix compatibility with Android Bionic.
14166 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14169 2013-06-07 Pedro Alves <palves@redhat.com>
14172 * Makefile.in (OBS): Add tdesc.o.
14173 (IPA_OBJS): Add tdesc-ipa.o.
14174 (tdesc-ipa.o): New rule.
14175 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14177 * linux-low.c (new_inferior): Delete.
14178 (disabled_regsets, num_regsets): Delete.
14179 (linux_add_process): Adjust to set the new per-process
14181 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14182 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14183 was a stop. When calling arch_setup, switch the current inferior
14184 to the thread that got an event.
14185 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14186 (regsets_fetch_inferior_registers)
14187 (regsets_store_inferior_registers): New regsets_info parameter.
14189 (linux_register_in_regsets): New regs_info parameter. Adjust to
14191 (register_addr, fetch_register, store_register): New usrregs_info
14192 parameter. Adjust to use it.
14193 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14194 parameter regs_info. Adjust to use it.
14195 (linux_fetch_registers): Get the current inferior's regs_info, and
14197 (linux_store_registers): Ditto.
14198 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14199 (initialize_low): Don't initialize the target_regsets here. Call
14200 initialize_low_arch.
14201 * linux-low.h (target_regsets): Delete declaration.
14202 (struct regsets_info): New.
14203 (struct usrregs_info): New.
14204 (struct regs_info): New.
14205 (struct process_info_private) <new_inferior>: New field.
14206 (struct linux_target_ops): Delete the num_regs, regmap, and
14207 regset_bitmap fields. New field regs_info.
14208 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14209 * i387-fp.c (num_xmm_registers): Delete.
14210 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14211 calls to new interface.
14212 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14213 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14214 Infer the number of xmm registers from the regcache's target
14216 * i387-fp.h (num_xmm_registers): Delete.
14217 * inferiors.c (add_thread): Don't install the thread's regcache
14219 * proc-service.c (gregset_info): Fetch the current inferior's
14220 regs_info. Adjust to use it.
14221 * regcache.c: Include tdesc.h.
14222 (register_bytes, reg_defs, num_registers)
14223 (gdbserver_expedite_regs): Delete.
14224 (get_thread_regcache): If the thread doesn't have a regcache yet,
14225 create one, instead of aborting gdbserver.
14226 (regcache_invalidate_one): Rename to ...
14227 (regcache_invalidate_thread): ... this.
14228 (regcache_invalidate_one): New.
14229 (regcache_invalidate): Only invalidate registers of the current
14231 (init_register_cache): Add target_desc parameter, and use it.
14232 (new_register_cache): Ditto. Assert the target description has a
14233 non zero registers_size.
14234 (regcache_cpy): Add assertions. Adjust.
14235 (realloc_register_cache, set_register_cache): Delete.
14236 (registers_to_string, registers_from_string): Adjust.
14237 (find_register_by_name, find_regno, find_register_by_number)
14238 (register_cache_size): Add target_desc parameter, and use it.
14239 (free_register_cache_thread, free_register_cache_thread_one)
14240 (regcache_release, register_cache_size): New.
14241 (register_size): Add target_desc parameter, and use it.
14242 (register_data, supply_register, supply_register_zeroed)
14243 (supply_regblock, supply_register_by_name, collect_register)
14244 (collect_register_as_string, collect_register_by_name): Adjust.
14245 * regcache.h (struct target_desc): Forward declare.
14246 (struct regcache) <tdesc>: New field.
14247 (init_register_cache, new_register_cache): Add target_desc
14249 (regcache_invalidate_thread): Declare.
14250 (regcache_invalidate_one): Delete declaration.
14251 (regcache_release): Declare.
14252 (find_register_by_number, register_cache_size, register_size)
14253 (find_regno): Add target_desc parameter.
14254 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14256 * remote-utils.c: Include tdesc.h.
14257 (outreg, prepare_resume_reply): Adjust.
14258 * server.c: Include tdesc.h.
14259 (gdbserver_xmltarget): Delete declaration.
14260 (get_features_xml, process_serial_event): Adjust.
14261 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14263 (struct process_info) <tdesc>: New field.
14264 (ipa_tdesc): Declare.
14265 * tdesc.c: New file.
14266 * tdesc.h: New file.
14267 * tracepoint.c: Include tdesc.h.
14268 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14269 (get_context_regcache): Adjust to pass ipa_tdesc down.
14270 (do_action_at_tracepoint): Adjust to get the register cache size
14271 from the context regcache's description.
14272 (traceframe_walk_blocks): Adjust to get the register cache size
14273 from the current trace frame's description.
14274 (traceframe_get_pc): Adjust to get current trace frame's
14275 description and pass it down.
14276 (gdb_collect): Adjust to get the register cache size from the
14278 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14279 (gdbserver_xmltarget): Delete.
14280 (initialize_low_tracepoint): Set the ipa's target description.
14281 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14282 (initialize_low_tracepoint): Set the ipa's target description.
14283 * linux-x86-low.c: Include tdesc.h.
14284 [__x86_64__] (is_64bit_tdesc): New.
14285 (ps_get_thread_area, x86_get_thread_area): Use it.
14286 (i386_cannot_store_register): Rename to ...
14287 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14288 (i386_cannot_fetch_register): Rename to ...
14289 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14290 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14292 (target_regsets): Rename to ...
14293 (x86_regsets): ... this.
14294 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14296 (x86_siginfo_fixup): Use is_64bit_tdesc.
14297 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14298 (tdesc_x32_avx_linux, tdesc_x32_linux)
14299 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14301 (x86_linux_update_xmltarget): Delete.
14302 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14303 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14304 (AMD64_LINUX_USER64_CS): New.
14305 (x86_linux_read_description): New, based on
14306 x86_linux_update_xmltarget.
14307 (same_process_callback): New.
14308 (x86_arch_setup_process_callback): New.
14309 (x86_linux_update_xmltarget): New.
14310 (x86_regsets_info): New.
14311 (amd64_linux_regs_info): New.
14312 (i386_linux_usrregs_info): New.
14313 (i386_linux_regs_info): New.
14314 (x86_linux_regs_info): New.
14315 (x86_arch_setup): Reimplement.
14316 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14317 (x86_emit_ops): Ditto.
14318 (the_low_target): Adjust. Install x86_linux_regs_info,
14319 x86_cannot_fetch_register, and x86_cannot_store_register.
14320 (initialize_low_arch): New.
14321 * linux-ia64-low.c (tdesc_ia64): Declare.
14322 (ia64_fetch_register): Adjust.
14323 (ia64_usrregs_info, regs_info): New globals.
14324 (ia64_regs_info): New function.
14325 (the_low_target): Adjust.
14326 (initialize_low_arch): New function.
14327 * linux-sparc-low.c (tdesc_sparc64): Declare.
14328 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14330 (sparc_arch_setup): New function.
14331 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14332 (the_low_target): Adjust.
14333 (initialize_low_arch): New function.
14334 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14335 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14336 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14337 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14338 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14339 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14340 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14341 (tdesc_powerpc_isa205_vsx64l): Declare.
14342 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14343 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14344 (ppc_set_pc, ppc_get_hwcap): Adjust.
14345 (ppc_usrregs_info): Forward declare.
14346 (!__powerpc64__) ppc_regmap_adjusted: New global.
14347 (ppc_arch_setup): Adjust to the current process'es target
14349 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14350 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14351 (ppc_store_evrregset): Adjust.
14352 (target_regsets): Rename to ...
14353 (ppc_regsets): ... this, and make static.
14354 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14355 (ppc_regs_info): New function.
14356 (the_low_target): Adjust.
14357 (initialize_low_arch): New function.
14358 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14359 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14360 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14361 (tdesc_s390x_linux64v2): Declare.
14362 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14363 (s390_fill_gregset, s390_store_last_break): Adjust.
14364 (target_regsets): Rename to ...
14365 (s390_regsets): ... this, and make static.
14366 (s390_get_pc, s390_set_pc): Adjust.
14367 (s390_get_hwcap): New target_desc parameter, and use it.
14368 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14369 (s390_arch_setup): Adjust to set the current process'es target
14370 description. Don't adjust the regmap.
14371 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14372 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14373 (regs_info_3264): New globals.
14374 (s390_regs_info): New function.
14375 (the_low_target): Adjust.
14376 (initialize_low_arch): New function.
14377 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14378 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14379 [__mips64] (init_registers_mips_linux)
14380 (init_registers_mips_dsp_linux): Delete defines.
14381 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14382 (have_dsp): New global.
14383 (mips_read_description): New, based on mips_arch_setup.
14384 (mips_arch_setup): Reimplement.
14385 (get_usrregs_info): New function.
14386 (mips_cannot_fetch_register, mips_cannot_store_register)
14387 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14388 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14389 (target_regsets): Rename to ...
14390 (mips_regsets): ... this, and make static.
14391 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14392 (dsp_regs_info, regs_info): New globals.
14393 (mips_regs_info): New function.
14394 (the_low_target): Adjust.
14395 (initialize_low_arch): New function.
14396 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14397 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14399 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14400 (arm_read_description): New, with bits factored from
14402 (arm_arch_setup): Reimplement.
14403 (target_regsets): Rename to ...
14404 (arm_regsets): ... this, and make static.
14405 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14406 (arm_regs_info): New function.
14407 (the_low_target): Adjust.
14408 (initialize_low_arch): New function.
14409 * linux-m68k-low.c (tdesc_m68k): Declare.
14410 (target_regsets): Rename to ...
14411 (m68k_regsets): ... this, and make static.
14412 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14413 (m68k_regs_info): New function.
14414 (m68k_arch_setup): New function.
14415 (the_low_target): Adjust.
14416 (initialize_low_arch): New function.
14417 * linux-sh-low.c (tdesc_sharch): Declare.
14418 (target_regsets): Rename to ...
14419 (sh_regsets): ... this, and make static.
14420 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14421 (sh_regs_info, sh_arch_setup): New functions.
14422 (the_low_target): Adjust.
14423 (initialize_low_arch): New function.
14424 * linux-bfin-low.c (tdesc_bfin): Declare.
14425 (bfin_arch_setup): New function.
14426 (bfin_usrregs_info, regs_info): New globals.
14427 (bfin_regs_info): New function.
14428 (the_low_target): Adjust.
14429 (initialize_low_arch): New function.
14430 * linux-cris-low.c (tdesc_cris): Declare.
14431 (cris_arch_setup): New function.
14432 (cris_usrregs_info, regs_info): New globals.
14433 (cris_regs_info): New function.
14434 (the_low_target): Adjust.
14435 (initialize_low_arch): New function.
14436 * linux-cris-low.c (tdesc_crisv32): Declare.
14437 (cris_arch_setup): New function.
14438 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14439 (cris_regs_info): New function.
14440 (the_low_target): Adjust.
14441 (initialize_low_arch): New function.
14442 * linux-m32r-low.c (tdesc_m32r): Declare.
14443 (m32r_arch_setup): New function.
14444 (m32r_usrregs_info, regs_info): New globals.
14445 (m32r_regs_info): Adjust.
14446 (initialize_low_arch): New function.
14447 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14448 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14449 (tic6x_usrregs_info): Forward declare.
14450 (tic6x_read_description): New function, based on ...
14451 (tic6x_arch_setup): ... this. Reimplement.
14452 (target_regsets): Rename to ...
14453 (tic6x_regsets): ... this, and make static.
14454 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14455 (tic6x_regs_info): New function.
14456 (the_low_target): Adjust.
14457 (initialize_low_arch): New function.
14458 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14459 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14460 (target_regsets): Rename to ...
14461 (xtensa_regsets): ... this, and make static.
14462 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14464 (xtensa_arch_setup, xtensa_regs_info): New functions.
14465 (the_low_target): Adjust.
14466 (initialize_low_arch): New function.
14467 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14468 (nios2_arch_setup): Set the current process'es tdesc.
14469 (target_regsets): Rename to ...
14470 (nios2_regsets): ... this.
14471 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14472 (nios2_regs_info): New function.
14473 (the_low_target): Adjust.
14474 (initialize_low_arch): New function.
14475 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14476 (aarch64_arch_setup): Set the current process'es tdesc.
14477 (target_regsets): Rename to ...
14478 (aarch64_regsets): ... this.
14479 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14480 (aarch64_regs_info): New function.
14481 (the_low_target): Adjust.
14482 (initialize_low_arch): New function.
14483 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14485 (target_regsets): Rename to ...
14486 (tile_regsets): ... this.
14487 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14488 (tile_regs_info): New function.
14489 (tile_arch_setup): Set the current process'es tdesc.
14490 (the_low_target): Adjust.
14491 (initialize_low_arch): New function.
14492 * spu-low.c (tdesc_spu): Declare.
14493 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14494 * win32-arm-low.c (tdesc_arm): Declare.
14495 (arm_arch_setup): New function.
14496 (the_low_target): Install arm_arch_setup instead of
14497 init_registers_arm.
14498 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14499 (init_windows_x86): Rename to ...
14500 (i386_arch_setup): ... this. Set `win32_tdesc'.
14501 (the_low_target): Adjust.
14502 * win32-low.c (win32_tdesc): New global.
14503 (child_add_thread): Don't create the thread cache here.
14504 (do_initial_child_stuff): Set the new process'es tdesc.
14505 * win32-low.h (struct target_desc): Forward declare.
14506 (win32_tdesc): Declare.
14507 * lynx-i386-low.c (tdesc_i386): Declare global.
14508 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14509 * lynx-low.c (lynx_tdesc): New global.
14510 (lynx_add_process): Set the new process'es tdesc.
14511 * lynx-low.h (struct target_desc): Forward declare.
14512 (lynx_tdesc): Declare global.
14513 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14514 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14515 * nto-low.c (nto_tdesc): New global.
14516 (do_attach): Set the new process'es tdesc.
14517 * nto-low.h (struct target_desc): Forward declare.
14518 (nto_tdesc): Declare.
14519 * nto-x86-low.c (tdesc_i386): Declare.
14520 (nto_x86_arch_setup): Set `nto_tdesc'.
14522 2013-06-04 Gary Benson <gbenson@redhat.com>
14524 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14525 to qSupported response when appropriate.
14526 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14527 with nonzero-length annex.
14528 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14529 arguments supplied in annex.
14531 2013-05-31 Doug Evans <dje@google.com>
14534 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14535 64 bits in 64-cross-32 environment.
14537 2013-05-28 Pedro Alves <palves@redhat.com>
14539 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14540 (aarch64-without-fpu.c): Delete rule.
14541 * configure.srv (aarch64*-*-linux*): Remove references to
14542 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14543 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14546 2013-05-24 Pedro Alves <palves@redhat.com>
14548 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14549 instead of strchr/decode_address. Error if the range isn't split
14550 with a ','. Don't assume there's be a ':' in the action.
14552 2013-05-23 Yao Qi <yao@codesourcery.com>
14553 Pedro Alves <palves@redhat.com>
14555 * linux-low.c (lwp_in_step_range): New function.
14556 (linux_wait_1): If the thread was range stepping and stopped
14557 outside the stepping range, report the stop to GDB. Otherwise,
14558 continue stepping. Add range stepping debug output.
14559 (linux_set_resume_request): Copy the step range from the resume
14560 request to the lwp.
14561 (linux_supports_range_stepping): New.
14562 (linux_target_ops) <supports_range_stepping>: Set to
14563 linux_supports_range_stepping.
14564 * linux-low.h (struct linux_target_ops)
14565 <supports_range_stepping>: New field.
14566 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14567 * linux-x86-low.c (x86_supports_range_stepping): New.
14568 (the_low_target) <supports_range_stepping>: Set to
14569 x86_supports_range_stepping.
14570 * server.c (handle_v_cont): Handle 'r' action.
14571 (handle_v_requests): Append ";r" if the target supports range
14573 * target.h (struct thread_resume) <step_range_start,
14574 step_range_end>: New fields.
14575 (struct target_ops) <supports_range_stepping>:
14577 (target_supports_range_stepping): New macro.
14579 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14581 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14582 confusion in comment.
14584 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14586 * lynx-low.c (struct process_info_private): New type.
14587 (lynx_add_process): New function.
14588 (lynx_create_inferior, lynx_attach): Replace calls to
14589 add_process by calls to lynx_add_process.
14590 (lynx_resume): If PTID is null, then try using
14591 current_process()->private->last_wait_event_ptid.
14593 (lynx_clear_inferiors): Delete. The contents of that function
14594 has been inlined in lynx_mourn;
14595 (lynx_wait_1): Save the ptid in the process's private data.
14596 (lynx_mourn): Free the process' private data. Replace call
14597 to lynx_clear_inferiors by call to clear_inferiors.
14599 2013-05-17 Yao Qi <yao@codesourcery.com>
14601 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14604 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14606 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14607 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14608 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14609 PT_TEXT_END_ADDR guards. Update comments.
14610 (linux_target_op) <read_offsets>: Conditionally define to
14611 linux_read_offsets if the target is UCLIBC and if it defines
14612 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14614 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14615 Andrew Jenner <andrew@codesourcery.com>
14617 * Makefile.in (SFILES): Add linux-nios2-low.c.
14618 (clean): Add action to delete nios2-linux.c.
14619 (nios2-linux.c): New rule.
14620 * configure.srv: Add nios2*-*-linux*.
14621 * linux-nios2-low.c: New.
14623 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14625 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14627 2013-04-25 Hui Zhu <hui@codesourcery.com>
14630 * ax.c (ax_printf): Add fflush.
14632 2013-04-22 Tom Tromey <tromey@redhat.com>
14634 * Makefile.in (SFILES): Add filestuff.c.
14635 (OBS): Add filestuff.o.
14636 (filestuff.o): New target.
14637 * config.in, configure: Rebuild.
14638 * configure.ac: Check for fdwalk, pipe2.
14640 2013-04-17 Pedro Alves <palves@redhat.com>
14642 * configure.ac (USE_THREAD_DB): Delete variable.
14643 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14644 Don't AC_SUBST USE_THREAD_DB.
14645 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14646 * config.in, configure: Regenerate.
14648 2013-04-16 Pedro Alves <palves@redhat.com>
14650 * linux-low.h (struct lwp_info) <thread_known>: Move under
14651 the USE_THREAD_DB #ifdef.
14653 2013-04-16 Pedro Alves <palves@redhat.com>
14655 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14656 (linux-low.o): Delete rule.
14657 * linux-low.h: Always include "gdb_thread_db.h" instead of
14658 conditionally including thread_db.h.
14659 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14662 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14664 * Makefile.in (install-only): Fix make install regression.
14666 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14668 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14669 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14671 * gdbserver.1: Remove.
14673 2013-03-22 Pedro Alves <palves@redhat.com>
14675 * linux-low.c (handle_extended_wait): Don't call
14676 linux_enable_event_reporting.
14678 2013-03-15 Tony Theodore <tonyt@logyst.com>
14681 * Makefile.in (SHELL): Use @SHELL@.
14683 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14685 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14688 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14690 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14691 Remove extraneous NULL element.
14693 2013-03-13 Yao Qi <yao@codesourcery.com>
14695 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14696 'V' block in trace frame.
14698 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14700 * target.h (struct target_ops): Add btrace ops.
14701 (target_supports_btrace): New macro.
14702 (target_enable_btrace): New macro.
14703 (target_disable_btrace): New macro.
14704 (target_read_btrace): New macro.
14705 * gdbthread.h (struct thread_info): Add btrace field.
14706 * server.c: Include btrace-common.h.
14707 (handle_btrace_general_set): New function.
14708 (handle_btrace_enable): New function.
14709 (handle_btrace_disable): New function.
14710 (handle_general_set): Call handle_btrace_general_set.
14711 (handle_qxfer_btrace): New function.
14712 (struct qxfer qxfer_packets[]): Add btrace entry.
14713 * inferiors.c (remove_thread): Disable btrace.
14714 * linux-low: Include linux-btrace.h.
14715 (linux_low_enable_btrace): New function.
14716 (linux_low_read_btrace): New function.
14717 (linux_target_ops): Add btrace ops.
14718 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14719 Add srv_linux_btrace=yes.
14720 (x86_64-*-linux*): Add linux-btrace.o.
14721 Add srv_linux_btrace=yes.
14722 * configure.ac: Define HAVE_LINUX_BTRACE.
14723 * config.in: Regenerated.
14724 * configure: Regenerated.
14726 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14728 * server.c (handle_qxfer): Preserve error message if -3 is
14730 (qxfer): Document the -3 return value.
14732 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14734 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14735 (linux_btrace_h): New variable.
14736 (linux-btrace.o): New rule.
14738 2013-03-08 Stan Shebs <stan@codesourcery.com>
14739 Hafiz Abid Qadeer <abidh@codesourcery.com>
14741 * tracepoint.c (trace_buffer_size): New global.
14742 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14743 (init_trace_buffer): Change to one-argument function. Allocate
14744 trace buffer memory.
14745 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14746 handle QTBuffer:size packet.
14747 (cmd_bigqtbuffer_size): New function.
14748 (initialize_tracepoint): Call init_trace_buffer with
14749 DEFAULT_TRACE_BUFFER_SIZE.
14750 * server.c (handle_query): Add QTBuffer:size in the
14753 2013-03-07 Yao Qi <yao@codesourcery.com>
14755 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14756 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14758 (cmd_qtsp): Adjust condition. Do post increment.
14759 Set cur_action and cur_step_action back to 0.
14761 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14764 * linux-low.c (linux_write_memory): Return early success if LEN is
14767 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14769 * configure.srv: Add x86_64-*-cygwin* as target.
14771 2013-02-28 Tom Tromey <tromey@redhat.com>
14773 * configure.ac: Invoke AC_SYS_LARGEFILE.
14774 * configure, config.in: Rebuild.
14776 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14778 * win32-low.c: Throughout, fix format strings and casts of
14779 printf-like functions to avoid type related warnings on all
14781 (get_child_debug_event): Print dwDebugEventCode as hex since
14782 that's how it's usually documented.
14784 2013-02-28 Yao Qi <yao@codesourcery.com>
14786 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14789 2013-02-27 Jiong Wang <jiwang@tilera.com>
14791 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14792 (reg-tilegx32.c): New rule.
14793 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14794 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14795 different register info initializer according to elf class.
14796 (init_registers_tilgx32): New function. The tilegx32 register info
14798 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14799 (tile_store_gregset): Likewise.
14801 2013-02-27 Yao Qi <yao@codesourcery.com>
14803 * server.c (process_point_options): Print debug message when
14804 debug_threads is true.
14806 2013-02-26 Yao Qi <yao@codesourcery.com>
14808 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14810 2013-02-19 Pedro Alves <palves@redhat.com>
14811 Kai Tietz <ktietz@redhat.com>
14815 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14816 instead of strtoul to extract address from packet.
14817 (process_serial_event) <'z'>: Likewise.
14819 2013-02-18 Yao Qi <yao@codesourcery.com>
14821 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14823 2013-02-14 Pedro Alves <palves@redhat.com>
14827 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14828 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14830 2013-02-14 Pedro Alves <palves@redhat.com>
14832 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14834 2013-02-14 Pedro Alves <palves@redhat.com>
14836 * tracepoint.c (save_string): Delete.
14837 (add_tracepoint_action): Use savestring instead of save_string.
14839 2013-02-12 Pedro Alves <palves@redhat.com>
14841 * linux-xtensa-low.c: Ditto.
14842 * xtensa-xtregs.c: Ditto.
14844 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14846 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14849 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14851 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14852 aarch64_num_wp_regs and aarch64_num_bp_regs to
14853 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14855 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14857 * linux-aarch64-low.c (ps_get_thread_area): Replace
14858 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14860 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14861 Marcus Shawcroft <marcus.shawcroft@arm.com>
14862 Nigel Stephens <nigel.stephens@arm.com>
14863 Yufeng Zhang <yufeng.zhang@arm.com>
14865 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14866 (aarch64.c, aarch64-without-fpu.c): New targets.
14867 * configure.srv (aarch64*-*-linux*): New.
14868 * linux-aarch64-low.c: New file.
14870 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14872 * linux-low.c (handle_extended_wait, linux_create_inferior)
14873 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14874 (dequeue_one_deferred_signal, linux_resume_one_thread)
14875 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14876 (linux_tracefork_grandchild, linux_test_for_tracefork)
14877 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14878 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14879 where the argument is 0.
14881 2013-01-25 Yao Qi <yao@codesourcery.com>
14883 * event-loop.c: Include "queue.h".
14884 (gdb_event_p): New typedef.
14885 (struct gdb_event) <next_event>: Remove.
14886 (event_queue): Change to QUEUE(gdb_event_p).
14887 (async_queue_event): Remove.
14888 (gdb_event_xfree): New.
14889 (initialize_event_loop): New.
14890 (process_event): Use API from QUEUE.
14891 (wait_for_event): Likewise.
14892 * server.c (main): Call initialize_event_loop.
14893 * server.h (initialize_event_loop): Declare.
14895 2013-01-18 Yao Qi <yao@codesourcery.com>
14897 * ax.h (struct eval_agent_expr_context): New.
14898 (gdb_eval_agent_expr): Update declaration.
14899 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14900 TFRAME. Add new argument CTX.
14901 * server.h (struct eval_agent_expr_context): Declare.
14902 (agent_mem_read, agent_tsv_read): Update declaration.
14903 (agent_mem_read_string): Likewise.
14904 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
14905 (add_traceframe_block): Add new argument TPOINT.
14906 Increase TPOINT->traceframe_usage.
14907 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
14908 eval_tracepoint_agent_expr.
14909 (condition_true_at_tracepoint): Likewise.
14910 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
14911 (agent_mem_read_string, agent_tsv_read): Likewise.
14913 2013-01-16 Yao Qi <yao@codesourcery.com>
14915 * linux-low.c (linux_resume_one_lwp): Don't check
14916 'lwp->bp_reinsert != 0'.
14918 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14919 Pedro Alves <palves@redhat.com>
14921 * lynx-low.c (ptrace_request_to_str): Define a temporary
14922 macro and use it to simplify this function's implementation.
14924 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14926 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
14929 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14931 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
14933 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14935 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
14937 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14939 * lynx-low.c (lynx_resume): Use the resume_info parameter
14940 to determine the ptid for the lynx_ptrace call, unless
14941 it is equal to minus_one_ptid, in which case we use the
14942 ptid of the current_inferior.
14943 (lynx_wait_1): After having received a thread create/exit
14944 event, resume the inferior's execution using the signaling
14945 thread's ptid, rather than the old ptid.
14947 2013-01-07 Joel Brobecker <brobecker@adacore.com>
14949 * lynx-low.c (lynx_resume): Delete variable ret.
14951 2013-01-01 Joel Brobecker <brobecker@adacore.com>
14953 * gdbreplay.c (gdbreplay_version): Update copyright year.
14954 * server.c (gdbserver_version): Likewise.
14956 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14958 * lynx-low.c (lynx_wait_1): Add debug trace before adding
14961 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14963 * lynx-low.c (ptrace_request_to_str): Add handling for
14964 PTRACE_GETTRACESIG.
14966 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14968 * lynx-low.c (lynx_attach): Delete variable new_process.
14970 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14972 * lynx-low.c (lynx_create_inferior): Delete variable
14975 2012-12-17 Joel Brobecker <brobecker@adacore.com>
14977 * lynx-low.c (ptrace_request_to_str): Do not handle
14978 PTRACE_GETTHREADLIST if this macro does not exist.
14980 2012-12-15 Yao Qi <yao@codesourcery.com>
14982 * Makefile.in (OBS): Add notif.o.
14983 * notif.c, notif.h: New.
14984 * server.c: Include "notif.h".
14985 (struct vstop_notif) <next>: Remove.
14987 (queue_stop_reply): Update.
14988 (push_event, send_next_stop_reply): Remove.
14989 (discard_queued_stop_replies): Update.
14990 (notif_stop): New variable.
14991 (handle_v_stopped): Remove.
14992 (handle_v_requests): Don't call handle_v_stopped. Call
14993 handle_ack_notif instead.
14994 (queue_stop_reply_callback): Call notif_event_enque instead
14995 of queue_stop_reply.
14996 (handle_status): Don't call send_next_stop_reply, call
14997 notif_write_event instead.
14998 (kill_inferior_callback): Likewise.
14999 (detach_or_kill_inferior_callback): Likewise.
15000 (main): Call initialize_notif.
15001 (process_serial_event): Call QUEUE_is_empty.
15002 (handle_target_event): Call notif_push instead of push event.
15003 * server.h (push_event): Remove declaration.
15005 2012-12-10 Tom Tromey <tromey@redhat.com>
15007 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15008 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15011 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15012 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15013 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15014 (amd64-linux-ipa.o, ax.o): Rewrite.
15015 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15016 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15017 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15018 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15019 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15020 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15021 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15022 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15023 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15024 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15025 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15026 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15027 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15028 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15029 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15030 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15031 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15032 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15033 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15034 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15035 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15036 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15037 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15038 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15039 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15040 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15041 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15042 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15043 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15044 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15045 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15046 (reg-tilegx.o): Remove.
15047 (all_object_files): New macro.
15048 Include .deps files.
15049 * aclocal.m4, configure: Rebuild.
15050 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15051 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15052 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15054 2012-12-05 Tom Tromey <tromey@redhat.com>
15057 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15059 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15061 * configure.ac: Check for linux/perf_event.h.
15062 * config.in: Regenerated.
15063 * configure: Regenerated.
15065 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15067 * hostio.c (handle_readlink): Decrease buffer size
15068 parameter passed to readlink by one byte.
15070 2012-11-26 Yao Qi <yao@codesourcery.com>
15072 * configure.ac (build_warnings): Append '-Wempty-body'.
15073 * configure: Regenerated.
15074 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15077 2012-11-15 Pierre Muller <muller@sourceware.org>
15079 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15080 * config.in: Regenerate.
15081 * configure: Regenerate.
15082 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15083 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15084 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15085 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15087 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15088 instead of <sys/wait.h> header.
15089 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15091 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15093 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15094 (various make rules): Remove -DGDBSERVER
15096 2012-11-09 Yao Qi <yao@codesourcery.com>
15098 * spu-low.c (current_ptid): Move it to ..
15099 * gdbthread.h: ... here. New.
15100 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15101 * server.c (myresume, process_serial_event): Likewise.
15102 * thread-db.c (thread_db_find_new_threads): Likewise.
15103 * tracepoint.c (run_inferior_command): Likewise.
15105 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15107 * server.c (handle_search_memory_1): Include access length in
15110 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15112 * linux-crisv32-low.c: Fix compile errors.
15114 2012-09-04 Yao Qi <yao@codesourcery.com>
15116 * tracepoint.c (cmd_qtsv): Adjust debug message.
15117 Don't check CUR_TPOINT.
15119 2012-08-28 Yao Qi <yao@codesourcery.com>
15121 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15122 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15123 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15124 Remove declarations of xmalloc, xreallloc, xstrdup and
15126 * Makefile.in (libiberty_h): New.
15127 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15128 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15130 2012-08-23 Yao Qi <yao@codesourcery.com>
15132 * server.h: Remove declaration of 'xsnprintf'.
15134 2012-08-22 Keith Seitz <keiths@redhat.com>
15136 * server.h: Include build-gnulib-gbserver/config.h.
15137 * gdbreplay.c: Likewise.
15139 2012-08-08 Doug Evans <dje@google.com>
15141 * Makefile.in (SFILES): Add gdb_vecs.c.
15142 (OBS): Add gdb_vecs.o.
15143 (gdb_vecs_h, host_defs_h): New variables.
15144 (thread-db.o): Add $(gdb_vecs_h) dependency.
15145 (gdb_vecs.o): New rule.
15146 * thread-db.c: #include "gdb_vecs.h".
15147 (thread_db_load_search): Use a vector to iterate over path elements.
15148 Handle text appearing after "$pdir".
15150 * configure.ac: Add check for strstr.
15151 * config.in: Regenerate.
15152 * configure: Regenerate.
15154 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15156 * hostio.c (handle_pread): If pread fails, fall back to attempting
15158 (handle_pwrite): Likewise for pwrite.
15160 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15162 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15163 between unsupported TYPE and unimplementable ADDR/LEN combination.
15164 (arm_insert_point): Act on new return value.
15166 2012-07-31 Pedro Alves <palves@redhat.com>
15168 * server.c (process_point_options): Only skip tokens if we find
15169 one that is unrecognized. Don't treat 'X' specially while
15170 skipping unrecognized tokens.
15172 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15174 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15175 to 4-byte-align HW breakpoint addresses for Thumb.
15177 2012-07-27 Yao Qi <yao@codesourcery.com>
15181 * server.h: Declare gdb_agent_about_to_close.
15182 * target.c (kill_inferior): Include "agent.h".
15183 New. Send command 'kill'.
15184 * target.h (kill_inferior): Removed macro.
15185 * tracepoint.c (gdb_agent_about_to_close): New.
15186 (gdb_agent_helper_thread): Handle command 'close'.
15187 Wait endlessly until the inferior stops.
15188 Install gdb_agent_remove_socket to atexit hook.
15189 (agent_socket_name): New static variable.
15190 (gdb_agent_socket_init): Replace local variable 'name' with
15191 'agent_socket_name'.
15192 (gdb_agent_remove_socket): New.
15194 2012-07-27 Yao Qi <yao@codesourcery.com>
15196 * server.c (process_point_options): Stop at 'X' when parsing.
15198 2012-07-19 Michael Eager <eager@eagercon.com>
15200 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15202 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15203 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15204 hardware breakpoint.
15206 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15208 * gdbserver/linux-low.c (initialize_low): Call
15209 linux_ptrace_init_warnings.
15211 2012-07-02 Doug Evans <dje@google.com>
15213 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15216 2012-07-02 Stan Shebs <stan@codesourcery.com>
15218 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15219 (ax.o): Add it to build rule.
15221 (OBS): Add format.o.
15222 (IPA_OBS): Add format.o.
15223 * server.c (handle_query): Claim support for breakpoint commands.
15224 (process_point_options): Add command case.
15225 (process_serial_event): Leave running if there are printfs in
15227 * mem-break.h (any_persistent_commands): Declare.
15228 (add_breakpoint_commands): Declare.
15229 (gdb_no_commands_at_breakpoint): Declare.
15230 (run_breakpoint_commands): Declare.
15231 * mem-break.c (struct point_command_list): New struct.
15232 (struct breakpoint): New field command_list.
15233 (any_persistent_commands): New function.
15234 (add_commands_to_breakpoint): New function.
15235 (add_breakpoint_commands): New function.
15236 (gdb_no_commands_at_breakpoint): New function.
15237 (run_breakpoint_commands): New function.
15238 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15240 * ax.c: Include format.h.
15241 (ax_printf): New function.
15242 (gdb_eval_agent_expr): Add printf opcode.
15244 2012-06-13 Yao Qi <yao@codesourcery.com>
15246 * server.c (start_inferior): Remove duplicated writes to fields
15247 'last_resume_kind' and 'last_status' of 'current_inferior'.
15249 2012-06-12 Yao Qi <yao@codesourcery.com>
15250 Pedro Alves <palves@redhat.com>
15252 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15254 * server.c (handle_v_cont): Extend comment.
15256 2012-06-11 Yao Qi <yao@codesourcery.com>
15258 * linux-low.c (linux_attach): Add 'static'.
15260 2012-06-06 Yao Qi <yao@codesourcery.com>
15262 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15264 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15266 Fix gcc -flto compilation warning.
15267 * server.c (main): Make variable multi_mode and attach volatile.
15269 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15271 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15272 if the platform doesn't know about it.
15274 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15276 * Makefile.in (SFILES): Add linux-tile-low.c.
15277 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15278 * configure.srv: Handle tilegx-*-linux*.
15279 * linux-tile-low.c: New file.
15281 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15283 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15285 2012-05-24 Pedro Alves <palves@redhat.com>
15289 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15291 2012-05-24 Pedro Alves <palves@redhat.com>
15295 Replace target_signal with gdb_signal throughout.
15297 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15299 * linux-low.c (linux_store_registers): Avoid the copying sequence
15300 when no data has been retrieved by ptrace.
15302 2012-05-22 Will Deacon <will.deacon@arm.com>
15304 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15305 Include asm/ptrace.h.
15306 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15309 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15311 * linux-low.c (linux_store_registers): Don't re-retrieve data
15312 with ptrace that has already been obtained from /proc. Always
15313 copy any data retrieved with ptrace to the buffer supplied.
15315 2012-05-11 Yao Qi <yao@codesourcery.com>
15316 Pedro Alves <palves@redhat.com>
15318 * linux-low.c (enum stopping_threads_kind): New.
15319 (stopping_threads): Change type to `enum stopping_threads_kind'.
15320 (handle_extended_wait): If stopping and suspending threads, leave
15321 the new_lwp suspended too.
15322 (linux_wait_for_event): Adjust.
15323 (stop_all_lwps): Set `stopping_threads' to
15324 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15325 whether we're suspending threads or just stopping them. Assert no
15328 2012-04-29 Yao Qi <yao@codesourcery.com>
15330 * server.h: Move some code to ...
15331 * gdbthread.h: ... here. New.
15332 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15333 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15334 (nto-low.o, win32-low.o): Likewise.
15335 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15336 * regcache.c, remote-utils.c, server.c: Likewise.
15337 * target.c, tracepoint.c, win32-low.c: Likewise.
15339 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15341 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15342 (PTRACE_ARG4_TYPE): Likewise.
15343 (PTRACE_XFER_TYPE): Likewise.
15344 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15345 ptrace to PTRACE_ARG3_TYPE.
15346 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15347 (PTRACE_ARG4_TYPE): Likewise.
15348 (PTRACE_XFER_TYPE): Likewise.
15349 (linux_detach_one_lwp): Cast fourth argument of
15350 ptrace to long then PTRACE_ARG4_TYPE.
15351 (regsets_fetch_inferior_registers): Cast third argument of
15352 ptrace to long then PTRACE_ARG3_TYPE.
15353 (regsets_store_inferior_registers): Likewise.
15355 2012-04-20 Pedro Alves <palves@redhat.com>
15357 * configure: Regenerate.
15359 2012-04-19 Pedro Alves <palves@redhat.com>
15361 * Makefile.in (GNULIB_BUILDDIR): New.
15362 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15363 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15364 (all, install-only, uninstall, clean-info, all-lib, clean): No
15365 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15366 (maintainer-clean realclean distclean): Use subdir_do.
15368 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15369 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15370 * acinclude.m4: Include acx_configure_dir.m4.
15371 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15372 calls. Call AC_PROG_RANLIB. Configure gnulib using
15375 (GNULIB_STDINT_H): Adjust.
15376 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15377 * gdbreplay.c: Include build-gnulib/config.h.
15378 * server.h: Likewise.
15379 * aclocal.m4: Regenerate.
15380 * config.in: Regenerate.
15381 * configure: Regenerate.
15383 2012-04-19 Pedro Alves <palves@redhat.com>
15385 * Makefile.in (LIBGNU, INCGNU): Adjust.
15386 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15387 (all, install-only, uninstall, clean-info, all-lib, clean)
15388 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15389 * configure.ac: Adjust AC_OUTPUT output.
15390 * aclocal.m4: Regenerate.
15391 * configure: Regenerate.
15393 2012-04-19 Pedro Alves <palves@redhat.com>
15395 * Makefile.in (generated_files): New.
15396 (server_h): Remove the explicit dependency on config.h, and depend
15397 on $generated_files.
15399 2012-04-19 Pedro Alves <palves@redhat.com>
15401 * Makefile.in (INCGNU): Add -Ignulib.
15403 2012-04-19 Pedro Alves <palves@redhat.com>
15405 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15406 (INCGNU): ... this, and spell out -I here.
15407 (GNULIB_LIB): Rename to ...
15408 (LIBGNU): ... this.
15409 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15411 2012-04-19 Pedro Alves <palves@redhat.com>
15413 * config.in: Regenerate.
15415 2012-04-19 Pedro Alves <palves@redhat.com>
15417 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15418 * server.h (memmem): Remove declaration.
15419 * config.in: Regenerate.
15420 * configure: Regenerate.
15422 2012-04-19 Yao Qi <yao@codesourcery.com>
15424 * Makefile.in (SFILES): Add common/vec.c.
15428 2012-04-19 Yao Qi <yao@codesourcery.com>
15430 * remote-utils.c (prepare_resume_reply): Replace with macro
15431 target_core_of_thread.
15432 * server.c (handle_qxfer_threads_proper): Likewise.
15433 * target.h (traget_core_of_thread): New macro.
15435 2012-04-18 Pedro Alves <palves@redhat.com>
15437 * aclocal.m4: Regenerate.
15438 * configure: Regenerate.
15440 2012-04-16 Yao Qi <yao@codesourcery.com>
15442 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15443 duplicated on address.
15445 2012-04-16 Yao Qi <yao@codesourcery.com>
15447 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15448 (struct tracepoint_action_ops) <send>: New field.
15449 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15450 (agent_expr_send, x_tracepoint_action_send): New.
15451 (l_tracepoint_action_send): New.
15452 (cmd_qtdp): Download and install tracepoint
15453 according to `use_agent'.
15454 (run_inferior_command): Add one more parameter `len'.
15456 (tracepoint_send_agent): New.
15457 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15459 2012-04-16 Yao Qi <yao@codesourcery.com>
15461 * tracepoint.c (download_tracepoints): Moved to ...
15462 (cmd_qtstart): ... here.
15464 2012-04-14 Yao Qi <yao@codesourcery.com>
15466 * tracepoint.c: Include inttypes.h.
15467 (struct collect_memory_action): Use sized types.
15468 (struct tracepoint): Likewise.
15469 (cmd_qtdp, stop_tracing): Update print specifiers.
15470 (cmd_qtp, response_tracepoint): Likewise.
15471 (collect_data_at_tracepoint): Likewise.
15472 (collect_data_at_step): Likewise.
15474 2012-04-14 Yao Qi <yao@codesourcery.com>
15476 Import gnulib module inttypes.
15477 * aclocal.m4, config.in, configure: Regenerated.
15479 2012-04-14 Yao Qi <yao@codesourcery.com>
15481 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15482 Makefile and config.status at last.
15484 2012-04-13 Yao Qi <yao@codesourcery.com>
15486 * tracepoint.c: Include stdint.h unconditionally.
15488 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15490 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15491 on BFD_HAVE_SYS_PROCFS_TYPE.
15492 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15493 * configure: Regenerate.
15494 * config.in: Likewise.
15496 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15498 * Makefile.in (clean): Also remove x32.c x32-linux.c
15499 x32-avx.c x32-avx-linux.c.
15500 (x32.o): New target.
15502 (x32-linux.o): Likewise.
15503 (x32-linux.c): Likewise.
15504 (x32-avx.o): Likewise.
15505 (x32-avx.c): Likewise.
15506 (x32-avx-linux.o): Likewise.
15507 (x32-avx-linux.c): Likewise.
15509 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15510 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15511 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15512 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15513 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15514 i386/x32-avx-linux.xml.
15516 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15517 (init_registers_x32_avx_linux): Likwise.
15518 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15519 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15521 2012-04-13 Pedro Alves <palves@redhat.com>
15523 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15524 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15525 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15526 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15529 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15531 * linux-x86-low.c (compat_x32_clock_t): New.
15532 (compat_x32_siginfo_t): Likewise.
15533 (compat_x32_siginfo_from_siginfo): Likewise.
15534 (siginfo_from_compat_x32_siginfo): Likewise.
15535 (linux_is_elf64): Likewise.
15536 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15537 and siginfo_from_compat_x32_siginfo for x32.
15538 (x86_arch_setup): Set linux_is_elf64.
15540 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15543 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15545 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15546 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15547 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15548 compatible with process.
15550 2012-04-12 Yao Qi <yao@codesourcery.com>
15552 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15553 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15554 (install-only, install-info, clean): Handle sub dir gnulib.
15555 (all-lib, am--refresh): New targets.
15556 (memmem.o): Remove target.
15557 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15558 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15559 (AC_REPLACE_FUNCS): Remove memmem.
15560 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15561 (AC_OUTPUT): Generate Makefile in gnulib/.
15562 * aclocal.m4, config.in, configure: Regenerated.
15564 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15566 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15568 2012-04-05 Pedro Alves <palves@redhat.com>
15570 -Werror=strict-aliasing
15572 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15575 2012-04-04 Pedro Alves <palves@redhat.com>
15577 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15578 (sparc_store_gregset_from_stack, sparc_store_gregset)
15579 (sparc_breakpoint_at): Fix formatting.
15581 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15583 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15585 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15586 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15587 * config.in: Regenerate.
15588 * configure: Likewise.
15590 2012-03-29 Pedro Alves <palves@redhat.com>
15592 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15593 Correct ptrace arguments.
15595 2012-03-28 Pedro Alves <palves@redhat.com>
15597 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15598 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15599 (IA64_FR1_REGNUM): New defines.
15600 (ia64_fetch_register): New.
15601 (the_low_target): Install it.
15602 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15604 * linux-low.c (linux_fetch_registers): Try the
15605 the_low_target.fetch_register hook first.
15607 * linux-arm-low.c (the_low_target): Adjust.
15608 * linux-bfin-low.c (the_low_target): Adjust.
15609 * linux-cris-low.c (the_low_target): Adjust.
15610 * linux-crisv32-low.c (the_low_target): Adjust.
15611 * linux-m32r-low.c (the_low_target): Adjust.
15612 * linux-m68k-low.c (the_low_target): Adjust.
15613 * linux-mips-low.c (the_low_target): Adjust.
15614 * linux-ppc-low.c (the_low_target): Adjust.
15615 * linux-s390-low.c (the_low_target): Adjust.
15616 * linux-sh-low.c (the_low_target): Adjust.
15617 * linux-sparc-low.c (the_low_target): Adjust.
15618 * linux-tic6x-low.c (the_low_target): Adjust.
15619 * linux-x86-low.c (the_low_target): Adjust.
15620 * linux-xtensa-low.c (the_low_target): Adjust.
15622 2012-03-26 Pedro Alves <palves@redhat.com>
15624 * server.c (handle_qxfer_libraries): Don't bail early if
15625 the_target->qxfer_libraries_svr4 is not NULL.
15627 2012-03-26 Pedro Alves <palves@redhat.com>
15629 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15631 2012-03-23 Pedro Alves <palves@redhat.com>
15633 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15634 "library-list-svr4" element's start tag when the the DSO list is
15637 2012-03-23 Pedro Alves <palves@redhat.com>
15639 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15640 a variable whose type size is the same as the inferior's pointer
15643 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15645 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15647 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15648 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15649 * linux-low.h: Include <signal.h>.
15650 (struct siginfo): Remove forward declaration.
15651 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15654 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15656 * .gitignore: Ignore more files.
15658 2012-03-19 Pedro Alves <palves@redhat.com>
15659 Jan Kratochvil <jan.kratochvil@redhat.com>
15661 * server.c (cont_thread, general_thread): Add describing comments.
15662 (start_inferior): Clear `cont_thread'.
15663 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15666 2012-03-15 Yao Qi <yao@codesourcery.com>
15668 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15670 (cmd_qtdp): ... here.
15672 2012-03-15 Yao Qi <yao@codesourcery.com>
15674 * tracepoint.c (struct tracepoint_action_ops): New.
15675 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15676 (m_tracepoint_action_download): New.
15677 (r_tracepoint_action_download): New.
15678 (x_tracepoint_action_download): New.
15679 (l_tracepoint_action_download): New.
15680 (add_tracepoint_action): Install `action->ops' according type.
15681 (download_tracepoint_1): Move code `download' function pointer
15682 of various tracepoint_action_ops.
15684 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15686 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15687 linux_ptrace_attach_warnings.
15689 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15691 * Makefile.in (linux-ptrace.o): New.
15692 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15693 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15694 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15695 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15696 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15698 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15700 2012-03-08 Yao Qi <yao@codesourcery.com>
15701 Pedro Alves <palves@redhat.com>
15703 Fix PR server/13392.
15704 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15705 offset of JMP insn.
15706 * tracepoint.c (remove_tracepoint): New.
15707 (cmd_qtdp): Call remove_tracepoint when failed to install.
15709 2012-03-07 Pedro Alves <palves@redhat.com>
15711 * linux-low.c (get_detach_signal): New.
15712 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15713 Pass on pending signals to PTRACE_DETACH. Check the result of the
15715 * server.c (program_signals, program_signals_p): New.
15716 (handle_general_set): Handle QProgramSignals.
15717 * server.h (program_signals, program_signals_p): Declare.
15719 2012-03-05 Pedro Alves <palves@redhat.com>
15720 Jan Kratochvil <jan.kratochvil@redhat.com>
15722 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15725 2012-03-03 Yao Qi <yao@codesourcery.com>
15727 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15728 agent_look_up_symbols.
15730 2012-03-03 Yao Qi <yao@codesourcery.com>
15732 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15733 (linux-x86-low.o): Likewise.
15734 * server.h: Remove in_process_agent_loaded.
15735 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15739 2012-03-03 Yao Qi <yao@codesourcery.com>
15741 * tracepoint.c (gdb_agent_capability): New global.
15742 (in_process_agent_loaded_ust): Renamed to
15743 `in_process_agent_supports_ust'.
15745 (in_process_agent_supports_ust): Call agent_capability_check.
15746 (clear_installed_tracepoints): Assert that agent supports
15749 2012-03-03 Yao Qi <yao@codesourcery.com>
15751 * linux-low.c (linux_supports_agent): New.
15752 (linux_target_ops): Initialize field `supports_agent' with
15753 linux_supports_agent.
15754 * target.h (struct target_ops) <supports_agent>: New.
15755 (target_supports_agent): New macro.
15756 * server.c (handle_general_set): Handle packet 'QAgent'.
15757 (handle_query): Send `QAgent+'.
15758 * Makefile.in (server.o): Depends on agent.h.
15760 2012-03-03 Yao Qi <yao@codesourcery.com>
15762 * Makefile.in (OBS): Add agent.o.
15763 Add new rule for agent.o.
15764 Track dependence of tracepoint.c on agent.h.
15765 * tracepoint.c (run_inferior_command_1):
15766 (run_inferior_command): Call agent_run_command.
15767 (gdb_ust_connect_sync_socket): Deleted. Move it to
15769 (resume_thread, stop_thread): Likewise.
15770 (gdb_ust_socket_init): Renamed to ...
15771 (gdb_agent_socket_init): ... New.
15772 (gdb_ust_thread): Renamed to ...
15773 (gdb_agent_helper_thread): ... New.
15774 (gdb_ust_init): Move some code to ...
15775 (gdb_agent_init): ... here. New.
15776 [HAVE_UST]: Call gdb_ust_init.
15777 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15778 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15779 * config.in, configure: Regenerated.
15781 2012-03-02 Pedro Alves <palves@redhat.com>
15783 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15784 * linux-low.c (struct simple_pid_list): New.
15785 (stopped_pids): New a struct simple_pid_list pointer.
15786 (add_to_pid_list, pull_pid_from_list): New.
15787 (handle_extended_wait): Don't assume the first signal new children
15788 report is SIGSTOP. Adjust call to pull_pid_from_list.
15789 (linux_wait_for_lwp): Adjust.
15791 2012-03-02 Yao Qi <yao@codesourcery.com>
15793 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15796 2012-03-02 Yao Qi <yao@codesourcery.com>
15798 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15799 `stop_pc' and `tpoint'. Update caller.
15801 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15803 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15804 * linux-low.c (use_linux_regsets): New macro.
15805 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15806 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15807 (linux_register_in_regsets): New function.
15808 (usr_fetch_inferior_registers): Skip registers covered by
15810 (usr_store_inferior_registers): Likewise.
15811 (usr_fetch_inferior_registers): New macro.
15812 (usr_store_inferior_registers): Likewise.
15813 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15814 (linux_store_registers): Likewise.
15815 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15817 (init_registers_mips64_dsp_linux): Likewise.
15818 (init_registers_mips_linux): New macro.
15819 (init_registers_mips_dsp_linux): Likewise.
15820 (mips_dsp_num_regs): Likewise.
15821 (DSP_BASE, DSP_CONTROL): New fallback macros.
15822 (mips_base_regs): New macro.
15823 (mips_regmap): Use it. Fix the size.
15824 (mips_dsp_regmap): New variable.
15825 (mips_dsp_regset_bitmap): Likewise.
15826 (mips_arch_setup): New function.
15827 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15829 (mips_cannot_store_register): Likewise.
15830 (the_low_target): Update .arch_setup, .num_regs and .regmap
15831 initializers. Add .regset_bitmap initializer.
15832 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15834 * linux-bfin-low.c (the_low_target): Likewise.
15835 * linux-cris-low.c (the_low_target): Likewise.
15836 * linux-crisv32-low.c (the_low_target): Likewise.
15837 * linux-ia64-low.c (the_low_target): Likewise.
15838 * linux-m32r-low.c (the_low_target): Likewise.
15839 * linux-m68k-low.c (the_low_target): Likewise.
15840 * linux-ppc-low.c (the_low_target): Likewise.
15841 * linux-s390-low.c (the_low_target): Likewise.
15842 * linux-sh-low.c (the_low_target): Likewise.
15843 * linux-sparc-low.c (the_low_target): Likewise.
15844 * linux-tic6x-low.c (the_low_target): Likewise.
15845 * linux-x86-low.c (the_low_target): Likewise.
15846 * linux-xtensa-low.c (the_low_target): Likewise.
15847 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15848 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15849 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15851 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15852 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15854 2012-02-29 Yao Qi <yao@codesourcery.com>
15855 Pedro Alves <palves@redhat.com>
15857 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15858 `step_over_finished' is true.
15860 2012-02-27 Pedro Alves <palves@redhat.com>
15862 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15863 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15865 2012-02-27 Pedro Alves <palves@redhat.com>
15868 * linux-low.c (pid_is_stopped): New.
15869 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15871 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15873 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15876 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15878 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15880 2012-02-24 Luis Machado <lgustavo@codesourcery>
15882 * server.c (handle_query): Advertise support for target-side
15883 breakpoint condition evaluation.
15884 (process_point_options): New function.
15885 (process_serial_event): When inserting a breakpoint, check for
15886 a target-side condition that should be evaluated.
15888 * mem-break.c: Include regcache.h and ax.h.
15889 (point_cond_list_t): New data structure.
15890 (breakpoint) <cond_list>: New field.
15891 (find_gdb_breakpoint_at): Make non-static.
15892 (delete_gdb_breakpoint_at): Clear any target-side
15894 (clear_gdb_breakpoint_conditions): New function.
15895 (add_condition_to_breakpoint): Likewise.
15896 (add_breakpoint_condition): Likewise.
15897 (gdb_condition_true_at_breakpoint): Likewise.
15898 (gdb_breakpoint_here): Return result directly instead
15899 of going through a local variable.
15901 * mem-break.h (find_gdb_breakpoint_at): New prototype.
15902 (clear_gdb_breakpoint_conditions): Likewise.
15903 (add_breakpoint_condition): Likewise.
15904 (gdb_condition_true_at_breakpoint): Likewise.
15906 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
15907 (need_step_over_p): Take target-side breakpoint condition into
15910 2012-02-24 Luis Machado <lgustavo@codesourcery>
15912 * server.h: Include tracepoint.h.
15913 (agent_mem_read, agent_get_trace_state_variable_value,
15914 agent_set_trace_state_variable_value,
15915 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
15916 get_set_tsv_func_addr): New prototypes.
15918 * ax.h: New include file.
15919 * ax.c: New source file.
15921 * tracepoint.c: Include ax.h.
15922 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
15923 agent_expr, eval_result_type): Move to ax.h.
15924 (parse_agent_expr): Rename to ...
15925 (gdb_parse_agent_expr): ... this, make it non-static and move
15927 (unparse_agent_expr) Rename to ...
15928 (gdb_unparse_agent_expr): ... this, make it non-static and move
15930 (eval_agent_expr): Rename to ...
15931 (eval_tracepoint_agent_expr): ... this.
15932 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
15933 forward declarations.
15934 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
15935 (agent_get_trace_state_variable_value): New function.
15936 (agent_set_trace_state_variable_value): New function.
15937 (cmd_qtdp): Call gdb_parse_agent_expr (...).
15938 (response_tracepoint): Call gdb_unparse_agent_expr (...).
15939 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
15940 (condition_true_at_tracepoint): Likewise.
15941 (parse_agent_expr): Rename to ...
15942 (gdb_parse_agent_expr): ... this and move to ax.c.
15943 (unparse_agent_expr): Rename to ...
15944 (gdb_unparse_agent_expr): ... this and move to ax.c.
15945 (gdb_agent_op_name): Move to ax.c.
15946 (eval_agent_expr): Rename to ...
15947 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
15949 (eval_tracepoint_agent_expr): New function.
15950 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
15952 (current_insn_ptr, emit_error, struct bytecode_address): Move to
15954 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
15955 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
15956 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
15957 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
15958 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
15959 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
15960 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
15961 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
15962 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
15963 (compile_bytecodes): Remove forward declaration.
15964 (is_goto_target): Move to ax.c.
15965 (compile_bytecodes): Move to ax.c and call
15966 agent_get_trace_state_variable_value (...) and
15967 agent_set_trace_state_variable_value (...).
15969 * Makefile.in: Update ax.c and IPA dependencies.
15971 2012-02-24 Pedro Alves <palves@redhat.com>
15973 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
15974 (cmd_bigqtbuffer_circular): ... this. Only handle
15975 'QTBuffer:circular:'.
15976 (handle_tracepoint_general_set): Adjust.
15978 2012-02-16 Yao Qi <yao@codesourcery.com>
15980 * inferiors.c: Move code to ...
15981 * dll.c: .... here. New.
15982 * server.h: Declare clear_dlls.
15983 * Makefile.in (SFILES): Add dll.c.
15987 2012-02-11 Yao Qi <yao@codesourcery.com>
15989 * server.c: (handle_monitor_command): Add a new parameter
15991 (handle_query): Update caller.
15993 2012-02-09 Joel Brobecker <brobecker@adacore.com>
15995 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
15996 * configure, config.in: Regenerate.
15997 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16000 2012-02-02 Pedro Alves <palves@redhat.com>
16002 Try SIGKILL first, then PTRACE_KILL.
16003 * linux-low.c (linux_kill_one_lwp): New.
16004 (linux_kill_one_lwp): Rename to ...
16005 (kill_one_lwp_callback): ... this. Use the new
16006 linux_kill_one_lwp.
16008 2012-02-02 Pedro Alves <palves@redhat.com>
16010 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16013 2012-01-27 Pedro Alves <palves@redhat.com>
16015 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16016 (elf_64_file_p): Make static.
16017 (linux_pid_exe_is_elf_64_file): New.
16018 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16019 Delete declarations.
16020 (linux_pid_exe_is_elf_64_file): Declare.
16021 * linux-x86-low.c (x86_arch_setup): Use
16022 linux_pid_exe_is_elf_64_file.
16024 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16026 * linux-low.c (linux_wait_for_event_1): Rename to ...
16027 (linux_wait_for_event): ... here and merge it with former
16028 linux_wait_for_event - new variable wait_ptid, use it.
16029 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16031 2012-01-23 Pedro Alves <palves@redhat.com>
16033 * server.c (main): Avoid yet another case of infinite loop while
16034 detaching/killing after a longjmp.
16036 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16039 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16041 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16043 * hostio.c (handle_readlink): New function.
16044 (handle_vFile): Call it to handle "vFile:readlink" packets.
16046 2012-01-20 Pedro Alves <palves@redhat.com>
16047 Ulrich Weigand <ulrich.weigand@linaro.org>
16049 * server.c (handle_v_requests): Only support vAttach and vRun to
16050 start multiple processes when in extended protocol mode.
16052 2012-01-17 Pedro Alves <palves@redhat.com>
16054 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16055 memalign plus mprotect to allocate the scratch buffer.
16057 2012-01-13 Pedro Alves <palves@redhat.com>
16059 * server.c (attach_inferior): Clear `cont_thread'.
16061 2012-01-13 Pedro Alves <palves@redhat.com>
16063 * server.c (main): Avoid infinite loop while detaching/killing
16066 2012-01-09 Doug Evans <dje@google.com>
16068 * server.c (start_inferior): Set last_ptid in --wrapper case.
16070 2012-01-06 Yao Qi <yao@codesourcery.com>
16072 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16074 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16076 2012-01-04 Yao Qi <yao@codesourcery.com>
16078 * tracepoint.c (cmd_qtdp): Print debug message
16079 for static tracepoint.
16081 2012-01-04 Yao Qi <yao@codesourcery.com>
16083 * tracepoint.c (trace_vdebug): Differentiate debug message
16084 between gdbserver and IPA.
16086 2012-01-03 Yao Qi <yao@codesourcery.com>
16088 * tracepoint.c (tracepoint_was_hit): Don't collect for
16091 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16093 * terminal.h: Reformat copyright header.
16095 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16097 * server.c (gdbserver_version): Update copyright year.
16098 * gdbreplay.c (gdbreplay_version): Likewise.
16100 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16102 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16105 2011-12-18 Hui Zhu <teawater@gmail.com>
16106 * linux-low.c (linux_create_inferior): Save return value to ret.
16108 2011-12-18 Hui Zhu <teawater@gmail.com>
16110 * linux-low.c (linux_create_inferior): Save return value to ret.
16112 2011-12-16 Doug Evans <dje@google.com>
16114 * linux-low.c (linux_create_inferior): If stdio connection,
16115 redirect stdin from /dev/null, stdout to stderr.
16116 * remote-utils.c (remote_is_stdio): New static global.
16117 (remote_connection_is_stdio): New function.
16118 (remote_prepare): Handle stdio connection.
16119 (remote_open): Ditto.
16120 (remote_close): Don't close stdin for stdio connections.
16121 (read_prim,write_prim): New functions. Replace all calls to
16122 read/write to these.
16123 * server.c (main): Watch for "-" argument. Move call to
16124 remote_prepare before start_inferior.
16125 * server.h (STDIO_CONNECTION_NAME): New macro.
16126 (remote_connection_is_stdio): Declare.
16128 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16129 in debugging output.
16131 2011-12-15 Yao Qi <yao@codesourcery.com>
16133 * tracepoint.c: Include sys/syscall.h.
16134 (gdb_ust_thread): Remove preprocessor conditional.
16136 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16138 * linux-low.c (linux_detach_one_lwp): Call
16139 the_low_target.prepare_to_resume before detaching.
16141 2011-12-14 Yao Qi <yao@codesourcery.com>
16143 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16146 2011-12-14 Yao Qi <yao@codesourcery.com>
16148 * i386-low.c (i386_low_stopped_data_address): Initialize local
16149 variable `control'.
16151 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16155 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16156 DR_CONTROL unless necessary. Extend comments.
16157 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16158 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16160 2011-12-13 Yao Qi <yao@codesourcery.com>
16162 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16164 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16166 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16168 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16169 Print new debug message for such case.
16171 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16173 Fix overlapping memcpy.
16174 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16175 the read_inferior_memory transfer.
16176 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16177 write_inferior_memory transfer.
16178 (set_fast_tracepoint_jump): New variable buf. Use it for the
16179 read_inferior_memory and write_inferior_memory transfers.
16180 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16181 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16182 Use it for the write_inferior_memory transfer.
16183 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16186 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16188 * linux-low.c (fetch_register, store_register): Make code
16189 consistent, fix formatting.
16191 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16193 * linux-low.c (usr_store_inferior_registers): Factor out code
16194 to handle individual registers into...
16195 (store_register): ... this new function.
16197 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16199 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16200 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16201 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16202 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16203 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16204 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16205 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16206 (srv_xmlfiles): Add new XML files.
16208 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16210 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16211 (init_registers_s390_linux32v1): Add prototype.
16212 (init_registers_s390_linux32v2): Likewise.
16213 (init_registers_s390_linux64v1): Likewise.
16214 (init_registers_s390_linux64v2): Likewise.
16215 (init_registers_s390x_linux64v1): Likewise.
16216 (init_registers_s390x_linux64v2): Likewise.
16217 (s390_num_regs): Increment to 52.
16218 (s390_regmap): Add orig_r2 register.
16219 (s390_num_regs_3264): Increment to 68.
16220 (s390_regmap_3264): Add orig_r2 register.
16221 (s390_collect_ptrace_register): Handle orig_r2 register.
16222 (s390_supply_ptrace_register): Likewise.
16223 (s390_fill_last_break): New function.
16224 (s390_store_last_break): Likewise.
16225 (s390_fill_system_call): New function.
16226 (s390_store_system_call): Likewise.
16227 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16229 (s390_check_regset): New function.
16230 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16231 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16232 Update target_regsets for available register sets.
16234 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16235 Jan Kratochvil <jan.kratochvil@redhat.com>
16237 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16238 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16240 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16241 * linux-low.h (struct process_info_private): New member r_debug.
16242 * server.c (handle_qxfer_libraries): Call
16243 the_target->qxfer_libraries_svr4.
16244 (handle_qxfer_libraries_svr4): New function.
16245 (qxfer_packets): New entry "libraries-svr4".
16246 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16247 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16248 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16249 PACKET_qXfer_libraries_svr4.
16251 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16253 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16254 PSW address/mask between 8-byte and 16-byte formats.
16255 (s390_supply_ptrace_register): Likewise.
16256 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16257 basic addressing mode bit.
16259 2011-11-24 Stan Shebs <stan@codesourcery.com>
16261 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16263 2011-11-17 Stan Shebs <stan@codesourcery.com>
16265 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16266 (tracing_start_time): New global.
16267 (tracing_stop_time): New global.
16268 (tracing_user_name): New global.
16269 (tracing_notes): New global.
16270 (tracing_stop_note): New global.
16271 (cmd_qtstart): Set traceframe_usage, start_time.
16272 (stop_tracing): Set stop_time.
16273 (cmd_qtstatus): Report additional status.
16274 (cmd_qtp): New function.
16275 (handle_tracepoint_query): Call it.
16276 (cmd_qtnotes): New function.
16277 (handle_tracepoint_general_set): Call it.
16278 (get_timestamp): Rename from tsv_get_timestamp.
16280 2011-11-14 Stan Shebs <stan@codesourcery.com>
16281 Kwok Cheung Yeung <kcy@codesourcery.com>
16283 * linux-x86-low.c (small_jump_insn): New.
16284 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16285 trampoline and error message, build a trampoline and issue a small
16286 jump instruction to it.
16287 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16288 trampoline and error message.
16289 (x86_get_min_fast_tracepoint_insn_len): New.
16290 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16291 * linux-low.h (struct linux_target_ops): Add arguments to
16292 install_fast_tracepoint_jump_pad operation, add new operation.
16293 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16295 (linux_get_min_fast_tracepoint_insn_len): New function.
16296 (linux_target_op): Add new operation.
16297 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16298 (gdb_trampoline_buffer_end): Ditto.
16299 (gdb_trampoline_buffer_error): Ditto.
16300 (struct ipa_sym_addresses): Add fields for new IPA variables.
16301 (symbol_list): Add entries for new IPA variables.
16302 (struct tracepoint): Add fields to hold the address range of the
16303 trampoline used by the tracepoint.
16304 (trampoline_buffer_head): New static variable.
16305 (trampoline_buffer_tail): Ditto.
16306 (claim_trampoline_space): New function.
16307 (have_fast_tracepoint_trampoline_buffer): New function.
16308 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16310 (install_fast_tracepoint): Ditto, also add error buffer argument.
16311 (cmd_qtminftpilen): New function.
16312 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16313 (fast_tracepoint_from_trampoline_address): New function.
16314 (fast_tracepoint_collecting): Handle trampoline as part of jump
16316 (set_trampoline_buffer_space): New function.
16317 (initialize_tracepoint): Initialize new IPA variables.
16318 * target.h (struct target_ops): Add arguments to
16319 install_fast_tracepoint_jump_pad operation, add new
16320 get_min_fast_tracepoint_insn_len operation.
16321 (target_get_min_fast_tracepoint_insn_len): New.
16322 (install_fast_tracepoint_jump_pad): Add arguments.
16323 * server.h (IPA_BUFSIZ): Define.
16324 * linux-i386-ipa.c: Include extra header files.
16325 (initialize_fast_tracepoint_trampoline_buffer): New function.
16326 (initialize_low_tracepoint): Call it.
16327 * server.h (set_trampoline_buffer_space): Declare.
16328 (claim_trampoline_space): Ditto.
16329 (have_fast_tracepoint_trampoline_buffer): Ditto.
16331 2011-11-14 Yao Qi <yao@codesourcery.com>
16333 * server.c (handle_query): Handle InstallInTrace for qSupported.
16334 * tracepoint.c (add_tracepoint): Sort list.
16335 (install_tracepoint, download_tracepoint): New.
16336 (cmd_qtdp): Call them to install and download tracepoints.
16337 (sort_tracepoints): Removed.
16338 (cmd_qtstart): Update.
16340 2011-11-14 Yao Qi <yao@codesourcery.com>
16342 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16343 * mem-break.h: Declare.
16344 * tracepoint.c (cmd_qtstart): Move some code to ...
16345 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16347 (download_tracepoints): Move some code to ...
16348 (download_tracepoint_1): ... here. New.
16350 2011-11-08 Yao Qi <yao@codesourcery.com>
16352 * remote-utils.c (relocate_instruction): A comment fix.
16354 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16356 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16357 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16358 dr_status_mirror and dr_control_mirror from debug_reg_state.
16359 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16360 (i386_initial_stuff): Remove use of deleted globals.
16361 (i386_get_thread_context, i386_set_thread_context,
16362 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16363 from debug_reg_state.
16365 2011-11-05 Yao Qi <yao@codesourcery.com>
16367 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16368 address as TPOINT's.
16370 2011-11-02 Stan Shebs <stan@codesourcery.com>
16372 * tracepoint.c (agent_mem_read_string): New function.
16373 (eval_agent_expr): Call it for tracenz.
16374 * server.c (handle_query): Report support for tracenz.
16376 2011-11-02 Yao Qi <yao@codesourcery.com>
16378 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16380 2011-11-02 Yao Qi <yao@codesourcery.com>
16382 * target.h: Fix a typo in comment.
16384 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16386 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16387 clobber the breakpoints' shadows with fast tracepoint jumps.
16388 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16389 * target.c (write_inferior_memory): Also pass MYADDR down to
16392 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16394 * configure.ac: Check support for personality routine.
16395 * configure: Regenerate.
16396 * config.in: Likewise.
16397 * linux-low.c: Include <sys/personality.h>.
16398 Define ADDR_NO_RANDOMIZE if necessary.
16399 (linux_create_inferior): Disable address space randomization when
16400 forking inferior, if requested.
16401 (linux_supports_disable_randomization): New function.
16402 (linux_target_ops): Install it.
16403 * server.h (disable_randomization): Declare.
16404 * server.c (disable_randomization): New global variable.
16405 (handle_general_set): Handle QDisableRandomization.
16406 (handle_query): Likewise for qSupported.
16407 (main): Support --disable-randomization and --no-disable-randomization
16408 command line arguments.
16409 * target.h (struct target_ops): Add supports_disable_randomization.
16410 (target_supports_disable_randomization): New macro.
16412 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16414 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16416 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16417 [!PT_GETDSBT] (target_loadmap): New definition.
16418 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16419 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16420 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16421 and PT_GETDSBT to LINUX_LOADMAP.
16422 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16423 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16425 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16427 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16428 (arm_linux_hwbp_cap): New static variable.
16429 (arm_linux_get_hwbp_cap): Replace by ...
16430 (arm_linux_init_hwbp_cap): ... this new function.
16431 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16432 (arm_linux_get_hw_watchpoint_count): Likewise.
16433 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16434 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16435 (arm_prepare_to_resume): Use perror_with_name instead of error.
16437 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16439 * linux-arm-low.c: Include <signal.h>.
16440 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16441 (struct arm_linux_hwbp_cap): New data type.
16442 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16443 (struct arm_linux_hw_breakpoint): New data type.
16444 (MAX_BPTS, MAX_WPTS): Define.
16445 (struct arch_process_info, struct arch_lwp_info): New data types.
16446 (arm_linux_get_hwbp_cap): New function.
16447 (arm_linux_get_hw_breakpoint_count): Likewise.
16448 (arm_linux_get_hw_watchpoint_count): Likewise.
16449 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16450 (arm_hwbp_control_initialize): Likewise.
16451 (arm_hwbp_control_is_enabled): Likewise.
16452 (arm_hwbp_control_is_initialized): Likewise.
16453 (arm_hwbp_control_disable): Likewise.
16454 (arm_linux_hw_breakpoint_equal): Likewise.
16455 (arm_linux_hw_point_initialize): Likewise.
16456 (struct update_registers_data): New data structure.
16457 (update_registers_callback: New function.
16458 (arm_insert_point): Likewise.
16459 (arm_remove_point): Likewise.
16460 (arm_stopped_by_watchpoint): Likewise.
16461 (arm_stopped_data_address): Likewise.
16462 (arm_new_process): Likewise.
16463 (arm_new_thread): Likewise.
16464 (arm_prepare_to_resume): Likewise.
16465 (the_low_target): Register arm_insert_point, arm_remove_point,
16466 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16467 arm_new_thread, and arm_prepare_to_resume.
16469 2011-09-15 Stan Shebs <stan@codesourcery.com>
16471 * server.h (struct emit_ops): Add compare-goto fields.
16472 * tracepoint.c (gdb_agent_op_sizes): New table.
16473 (emit_eq_goto): New function.
16474 (emit_ne_goto): New function.
16475 (emit_lt_goto): New function.
16476 (emit_le_goto): New function.
16477 (emit_gt_goto): New function.
16478 (emit_ge_goto): New function.
16479 (is_goto_target): New function.
16480 (compile_bytecodes): Recognize special cases of compare-goto
16481 combinations and call specialized emitters for them.
16482 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16483 (amd64_emit_ne_goto): New function.
16484 (amd64_emit_lt_goto): New function.
16485 (amd64_emit_le_goto): New function.
16486 (amd64_emit_gt_goto): New function.
16487 (amd64_emit_ge_goto): New function.
16488 (amd64_emit_ops): Add the new functions.
16489 (i386_emit_eq_goto): New function.
16490 (i386_emit_ne_goto): New function.
16491 (i386_emit_lt_goto): New function.
16492 (i386_emit_le_goto): New function.
16493 (i386_emit_gt_goto): New function.
16494 (i386_emit_ge_goto): New function.
16495 (i386_emit_ops): Add the new functions.
16497 2011-09-08 Stan Shebs <stan@codesourcery.com>
16499 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16500 (i386_emit_epilogue): Restore %ebx.
16502 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16504 * server.c (step_thread): Remove definition.
16505 (process_serial_event): Don't handle Hs.
16506 * server.h (step_thread): Remove declaration.
16507 * target.c (set_desired_inferior): Remove use of step_thread.
16509 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16511 * linux-low.c: Include linux-procfs.h.
16512 (linux_attach_lwp_1): Update comments.
16513 (linux_attach): Scan for existing threads when attaching to a
16514 process that is the tgid.
16515 * Makefile.in: Update dependencies.
16517 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16519 * configure.srv: Add linux-procfs.o dependencies.
16521 2011-08-14 Yao Qi <yao@codesourcery.com>
16523 * target.h (struct target_ops): Fix indent.
16524 * win32-low.c (win32_target_ops): Fix comment.
16526 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16527 Yao Qi <yao@codesourcery.com>
16529 * Makefile.in (clean): Remove tic6x-*.c files.
16530 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16531 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16532 (tic6x-c64xp-linux.c): Likewise.
16533 * configure.srv: Add support for tic6x-*-uclinux.
16534 * linux-tic6x-low.c: New.
16535 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16537 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16538 Yao Qi <yao@codesourcery.com>
16540 * target.h (struct target_ops): Add read_loadmap.
16541 * linux-low.c (struct target_loadseg): New type.
16542 (struct target_loadmap): New type.
16543 (linux_read_loadmap): New function.
16544 (linux_target_ops): Add linux_read_loadmap.
16545 * server.c (handle_query): Support qXfer:fdpic:read packet.
16546 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16549 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16551 * win32-low.c: Include <stdint.h>.
16553 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16555 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16556 to the inferior here.
16557 (i386_remove_aligned_watchpoint): Ditto.
16558 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16559 fit part of the watchpoint in the debug registers.
16560 (i386_update_inferior_debug_regs): New.
16561 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16562 registers, and only update the inferior on success.
16563 (i386_low_remove_watchpoint): Ditto.
16565 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16567 * linux-low.c (compare_ints, unique, list_threads, show_process,
16568 linux_core_of_thread): Delete.
16569 (linux_target_ops): Change linux_core_of_thread to
16570 linux_common_core_of_thread.
16571 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16572 * utils.c (malloc_failure): Change type of argument.
16573 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16574 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16575 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16576 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16577 (IPA_OBJS): Add common-utils-ipa.o.
16578 (ptid_h, linux_osdata_h): New macros.
16579 (server_h): Add common/common-utils.h, common/xml-utils.h,
16580 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16582 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16583 ptid.o, buffer.o): New rules.
16584 (linux-low.o): Add common/linux-osdata.h as a dependency.
16585 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16586 * configure.ac: Add AC_HEADER_DIRENT check.
16587 * config.in: Regenerate.
16588 * configure: Regenerate.
16589 * remote-utils.c (xml_escape_text): Delete.
16590 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16591 buffer_xml_printf): Move to common/buffer.c.
16592 * server.c (main): Remove call to initialize_inferiors.
16593 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16594 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16595 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16596 internal_error, gdb_assert, gdb_assert_fail): Delete.
16597 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16598 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16600 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16601 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16602 initialize_inferiors): Delete.
16604 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16606 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16609 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16611 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16613 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16615 2011-05-26 Yao Qi <yao@codesourcery.com>
16617 * Makefile.in (thread-db.o): Track dependence to
16618 common/gdb_thread_db.h.
16619 * thread-db.c: include gdb_thread_db.h from right place.
16621 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16623 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16624 __FILE__ and __LINE__ to internal_error.
16626 2011-05-13 Doug Evans <dje@google.com>
16628 * thread-db.c (try_thread_db_load_from_sdir): New function.
16629 (try_thread_db_load_from_dir): New function.
16630 (thread_db_load_search): Handle $sdir, ignore $pdir.
16631 Remove trying of system directories if search of
16632 libthread-db-search-path fails, that is now done via $sdir.
16634 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16636 * server.c (handle_query): Add EnableDisableTracepoints to the list
16637 of supported features.
16638 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16640 (cmd_qtenable_disable): New.
16641 (cmd_qtstart): Install tracepoints even if disabled.
16642 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16643 receiving a QTEnable or QTDisable packet.
16644 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16645 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16647 (gdb_probe): Skip data collection if static tracepoint is disabled.
16649 2011-05-10 Doug Evans <dje@google.com>
16651 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16653 2011-05-04 Doug Evans <dje@google.com>
16655 * linux-low.c (linux_join): Skip process lookup.
16656 * spu-low.c (spu_join): Ditto.
16657 * server.c (join_inferiors_callback): Delete.
16658 (process_serial_event): For 'D' packet (detach) call join_inferior
16661 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16663 * README: Don't mention xscale*-*-linux*.
16664 * configure.srv (xscale*-*-linux*): Don't handle target.
16666 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16668 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16670 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16671 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16672 (i386_emit_void_call_2): Likewise.
16674 2011-04-26 Yao Qi <yao@codesourcery.com>
16676 * linux-low.c: Move common macros to linux-ptrace.h.
16677 Include linux-ptrace.h.
16678 * Makefile.in (linux_ptrace_h): New.
16679 (linux-low.o): Depends on linux-ptrace.h.
16681 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16683 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16684 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16685 (remote_prepare): New function with most of the TCP code from ...
16686 (remote_open): ... here. Detect PORT here unconditionally. Move also
16687 setting transport_is_reliable.
16688 * server.c (run_once): New variable.
16689 (gdbserver_usage): Document it.
16690 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16691 the first run if RUN_ONCE.
16692 * server.h (run_once, remote_prepare): New declarations.
16694 2011-04-19 Tom Tromey <tromey@redhat.com>
16696 * win32-low.c (handle_load_dll): Remove duplicate "the".
16698 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16700 Remove support for old Cygwin 1.5 versions.
16701 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16702 function to avoid warning.
16703 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16706 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16708 * gdbserver/server.h (Macro _): Define it if not available.
16710 2011-03-14 Michael Snyder <msnyder@vmware.com>
16712 * hostio.c (handle_close): Remove unnecessary null test.
16714 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16716 * Makefile.in (maintainer-clean realclean distclean): Remove
16717 "make ... subdir_do" command.
16719 2011-03-10 Michael Snyder <msnyder@vmware.com>
16721 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16723 * server.c (handle_v_run): Free alloced buffer on early return.
16725 2011-03-09 Yao Qi <yao@codesourcery.com>
16728 2011-03-04 Yao Qi <yao@codesourcery.com>
16730 * Makefile.in: Remove GNU make feature --directory.
16732 2011-03-05 Yao Qi <yao@codesourcery.com>
16734 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16735 (subdir_do): New make target. Copied from gdb/Makefile.
16736 (maintainer-clean, realclean, distclean, clean): Call corresponding
16737 make targets in common/Makefile.
16739 2011-02-11 Yao Qi <yao@codesourcery.com>
16741 * configure.ac: Call AC_PROG_RANLIB.
16742 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16743 * configure: Regenerate.
16745 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16747 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16749 2011-03-06 Yao Qi <yao@codesourcery.com>
16751 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16753 2011-03-05 Yao Qi <yao@codesourcery.com>
16755 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16756 (subdir_do): New make target. Copied from gdb/Makefile.
16757 (maintainer-clean, realclean, distclean, clean): Call corresponding
16758 make targets in common/Makefile.
16760 2011-03-04 Yao Qi <yao@codesourcery.com>
16762 * Makefile.in: Remove GNU make feature --directory.
16764 2011-03-04 Michael Snyder <msnyder@vmware.com>
16766 * server.c (queue_stop_reply): Call xmalloc not malloc.
16768 2011-03-02 Michael Snyder <msnyder@vmware.com>
16770 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16772 2011-02-28 Michael Snyder <msnyder@vmware.com>
16774 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16775 (cmd_qtframe): Ditto.
16776 (cmd_qtbuffer): Ditto.
16777 (cmd_bigqtbuffer): Ditto.
16779 * utils.c (decimal2str): Initialize 'width' to nine, then
16780 don't mess with it.
16782 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16784 * hostio.c (require_data): Free *data, not data.
16786 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16788 * hostio.c (require_data): Use free, not xfree.
16790 2011-02-27 Michael Snyder <msnyder@vmware.com>
16792 * server.c (handle_query): Discard unused value.
16794 * hostio.c (require_data): Free malloc memory before returning
16797 2011-02-26 Michael Snyder <msnyder@vmware.com>
16799 * linux-low.c (list_threads): Call closedir for dirent.
16801 2011-02-27 Michael Snyder <msnyder@vmware.com>
16803 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16804 a case statement falls through.
16806 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16808 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16811 2011-02-26 Michael Snyder <msnyder@vmware.com>
16813 * utils.c (decimal2str): Eliminate dead code and dead param.
16814 (pulongest): Drop dead param from call to decimal2str.
16817 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16819 Revert the following patch (not approved yet):
16820 2011-02-21 Hui Zhu <teawater@gmail.com>
16821 * tracepoint.c (tp_printf): New function.
16822 (eval_agent_expr): Handle gdb_agent_op_printf.
16824 2011-02-21 Hui Zhu <teawater@gmail.com>
16826 * tracepoint.c (tp_printf): New function.
16827 (eval_agent_expr): Handle gdb_agent_op_printf.
16829 2011-02-18 Tom Tromey <tromey@redhat.com>
16831 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16832 (tracepoint.o): Likewise.
16833 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16834 (gdb_agent_op_names): Likewise.
16836 2011-02-18 Tom Tromey <tromey@redhat.com>
16838 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16839 gdb_agent_op_rot>: New constants.
16840 (gdb_agent_op_names): Add pick and roll.
16841 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16844 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16846 * aclocal.m4: Regenerated with aclocal-1.11.1.
16848 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16850 * server.c (handle_qxfer_traceframe_info): New.
16851 (qxfer_packets): Register "traceframe-info".
16852 (handle_query): Report support for qXfer:traceframe-info:read+.
16853 * tracepoint.c (match_blocktype): New.
16854 (traceframe_find_block_type): Rename to ...
16855 (traceframe_walk_blocks): ... this. Add callback filter argument,
16857 (traceframe_find_block_type): New, reimplemented on top of
16858 traceframe_walk_blocks.
16859 (build_traceframe_info_xml): New.
16860 (traceframe_read_info): New.
16861 * server.h (traceframe_read_info): Declare.
16863 2011-02-11 Yao Qi <yao@codesourcery.com>
16865 * configure.ac: Call AC_PROG_RANLIB.
16866 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16867 * configure: Regenerate.
16869 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16871 * server.c (gdb_read_memory): Change return semantics to allow
16873 (handle_search_memory_1): Adjust.
16874 (process_serial_event) <'m' packet>: Handle partial transfers.
16875 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16877 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16879 * regcache.c (init_register_cache): Initialize
16880 regcache->register_status.
16881 (free_register_cache): Release regcache->register_status.
16882 (regcache_cpy): Copy register_status.
16883 (registers_to_string): Print 'x's for unavailable registers.
16884 (supply_register): Mark the register's status valid or
16885 unavailable, depending on whether a buffer was passed in or not.
16886 (supply_register_zeroed): New.
16887 (supply_regblock): Mark the registers' status valid or
16888 unavailable, depending on whether a buffer was passed in or not.
16889 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16890 (struct regcache): New `register_status' field.
16891 (supply_register_zeroed): Declare.
16892 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16893 supply_register_zeroed, rather than passing a NULL buffer to
16895 * tracepoint.c (fetch_traceframe_registers): Update comment.
16897 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16899 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
16902 2011-01-25 Pedro Alves <pedro@codesourcery.com>
16904 * server.h (decode_xfer_write): Change prototype.
16905 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
16906 and don't extract the annex here.
16907 * server.c (decode_xfer_read): Remove `annex' parameter,
16908 and don't extract the annex here.
16909 (decode_xfer): New.
16910 (struct qxfer): New.
16911 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
16912 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
16913 (handle_qxfer_statictrace): New functions, abstracted out from
16914 handle_query, and made to use the struct qxfer interface.
16915 (handle_threads_qxfer_proper): Rename to ...
16916 (handle_qxfer_threads_proper): ... this.
16917 (handle_threads_qxfer): Rename to ...
16918 (handle_qxfer_threads): ... this. Adjust.
16919 (qxfer_packets): New array.
16920 (handle_qxfer): New function.
16921 (handle_query): Use handle_qxfer.
16923 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
16925 * gdbreplay.c: Shorten lines of >= 80 columns.
16926 * linux-low.c: Ditto.
16927 * linux-ppc-low.c: Ditto.
16928 * linux-s390-low.c: Ditto.
16929 * linux-sparc-low.c: Ditto.
16930 * linux-x86-low.c: Ditto.
16931 * linux-xtensa-low.c: Ditto.
16932 * mem-break.c: Ditto.
16933 * nto-low.c: Ditto.
16934 * regcache.h: Ditto.
16935 * remote-utils.c: Ditto.
16938 * thread-db.c: Ditto.
16939 * tracepoint.c: Ditto.
16941 * win32-low.h: Ditto.
16943 2011-01-05 Joel Brobecker <brobecker@adacore.com>
16945 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
16948 2011-01-01 Joel Brobecker <brobecker@adacore.com>
16950 * server.c (gdbserver_version): Update copyright year in version
16952 * gdbreplay.c (gdbreplay_version): Ditto.
16954 2010-12-29 Jie Zhang <jie.zhang@analog.com>
16956 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
16957 * linux-bfin-low.c: New file.
16958 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
16959 PT_DATA_ADDR for BFIN targets.
16960 * Makefile.in (SFILES): Add linux-bfin-low.c.
16961 (clean): Remove reg-bfin.c.
16962 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
16963 * README: Mention supported Blackfin targets.
16965 2010-12-23 Mike Frysinger <vapier@gentoo.org>
16967 * .gitignore: New file.
16969 2010-11-16 Mike Frysinger <vapier@gentoo.org>
16971 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
16973 2010-10-22 Jie Zhang <jie@codesourcery.com>
16975 * Makefile.in: Add FLAGS_TO_PASS variable.
16976 (install): Remove dependency of install-only and recursively
16977 invoke make for install-only.
16979 2010-10-04 Doug Evans <dje@google.com>
16981 * Makefile.in (uninstall): Use $(DESTDIR).
16983 2010-09-24 Pedro Alves <pedro@codesourcery.com>
16987 * linux-x86-low.c (compat_siginfo_from_siginfo)
16988 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
16989 si_code is < 0. Check for si_code == SI_TIMER before checking for
16992 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16994 * lynx-i386-low.c: New file.
16995 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
16997 2010-09-13 Joel Brobecker <brobecker@adacore.com>
16999 * lynx-low.c (ptrace_request_to_str): Remove handling for
17000 request values that have been removed in LynxOS 5.x.
17002 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17004 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17007 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17009 * configure.ac: Add --enable-inprocess-agent option.
17010 * configure: Rebuilt.
17012 2010-09-06 Yao Qi <yao@codesourcery.com>
17014 * linux-low.c (linux_kill): Remove unused variable.
17015 (linux_stabilize_threads): Likewise.
17016 * server.c (start_inferior): Likewise.
17017 (queue_stop_reply_callback): Likewise.
17018 * tracepoint.c (do_action_at_tracepoint): Likewise.
17020 2010-09-06 Yao Qi <yao@codesourcery.com>
17022 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17025 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17027 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17029 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17031 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17034 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17036 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17037 gdbserver/lynx-ppc-low.c: New files.
17038 * Makefile.in (lynx_low_h): New variable.
17039 (lynx-low.o, lynx-ppc-low.o): New rules.
17040 * configure.ac: On LynxOS, link with -lnetinet.
17041 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17042 * configure: regenerate.
17044 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17046 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17047 * configure.ac: Add check for vasprintf and vsnprintf.
17048 * configure, config.in: Regenerate.
17049 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17051 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17053 * gdbreplay.c: Move include of alloca.h up, next to include of
17055 * server.h: Add include of malloc.h.
17056 * mem-break.c: Remove include of malloc.h.
17057 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17059 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17061 * Makefile.in (memmem.o): Build with -Wno-error.
17063 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17065 * utils.c (xsnprintf): Make non-static.
17066 * server.h: Add xsnprintf declaration.
17067 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17068 replace calls to snprintf by calls to xsnprintf throughout.
17070 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17072 * configure.ac: Add configure check for alloca.
17073 * configure, config.in: Regenerate.
17074 * server.h: Include alloca.h if it exists.
17075 * gdbreplay.c: Include alloca.h if it exists.
17077 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17079 * linux-low.c (__SIGRTMIN): Define if not already defined.
17080 (linux_create_inferior): Check for __ANDROID__ rather than
17082 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17083 are already deferred.
17084 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17085 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17086 stopped and already has a pending signal to report.
17087 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17088 a pending signal to report or is moving out of a jump pad.
17089 (linux_init_signals): Check for __ANDROID__ rather than
17092 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17094 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17095 debug_threads check. Avoid a linear search when not doing debug
17098 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17100 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17101 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17102 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17103 (process_event): Change local fd's type to gdb_fildes_t.
17104 (create_file_handler): Adjust prototype.
17105 (delete_file_handler): Adjust prototype.
17106 (handle_file_event): Adjust prototype. Use pfildes.
17107 (create_file_event): Adjsut prototype.
17108 * remote-utils.c (remote_desc, listen_desc): Change type to
17110 * server.h: New gdb_fildes_t typedef.
17111 [USE_WIN32API]: Include winsock2.h.
17112 (delete_file_handler, add_file_handler): Adjust prototypes.
17113 (pfildes): Declare.
17114 * utils.c (pfildes): New.
17116 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17118 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17119 * configure: Regenerate.
17121 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17123 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17124 (linux_done_accessing_memory): ... this.
17125 (linux_target_ops): Adjust.
17126 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17127 * nto-low.c (nto_target_ops): Adjust comment.
17128 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17129 * spu-low.c (spu_target_ops): Adjust comment.
17130 * target.h (target_ops): Rename unprepare_to_access_memory field
17131 to done_accessing_memory.
17132 (unprepare_to_access_memory): Rename to ...
17133 (done_accessing_memory): ... this.
17135 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17137 * linux-low.c (linux_prepare_to_access_memory): New.
17138 (linux_unprepare_to_access_memory): New.
17139 (linux_target_ops): Install them.
17140 * server.c (read_memory): Rename to ...
17141 (gdb_read_memory): ... this. Use
17142 prepare_to_access_memory/prepare_to_access_memory.
17143 (write_memory): Rename to ...
17144 (gdb_write_memory): ... this. Use
17145 prepare_to_access_memory/prepare_to_access_memory.
17146 (handle_search_memory_1): Adjust.
17147 (process_serial_event): Adjust.
17148 * target.h (struct target_ops): New fields
17149 prepare_to_access_memory and unprepare_to_access_memory.
17150 (prepare_to_access_memory, unprepare_to_access_memory): New.
17151 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17152 prepare_to_access_memory/prepare_to_access_memory.
17153 * nto-low.c (nto_target_ops): Adjust.
17154 * spu-low.c (spu_target_ops): Adjust.
17155 * win32-low.c (win32_target_ops): Adjust.
17157 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17159 * Makefile.in (WARN_CFLAGS): Get it from configure.
17160 (WERROR_CFLAGS): New.
17161 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17162 * configure.ac: Introduce --enable-werror, which adds -Werror to
17163 the compiler command line. Enabled by default. Disable with
17164 --disable-werror. Add -Wdeclaration-after-statement
17165 Wpointer-arith and -Wformat-nonliteral to warning flags.
17166 * configure: Regenerate.
17168 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17170 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17172 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17174 * gdbreplay.c (remote_error): New.
17176 (expect): Use gdbchar. Check for error reading from GDB.
17177 Clarify sync error output.
17178 (play): Check for errors writing to GDB.
17179 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17180 * remote-utils.c (getpkt): Check for errors writing to the remote
17183 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17185 * linux-low.c (linux_wait_1): Move non-debugging code out of
17186 `debug_threads' control.
17188 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17190 * linux-low.c (linux_wait_1): Don't set last_status here.
17191 * server.c (push_event, queue_stop_reply_callback): Assert we're
17192 not pushing a TARGET_WAITKIND_IGNORE event.
17193 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17194 (myresume, handle_target_event): Set the thread's last_resume_kind
17195 and last_status from the target returned status.
17197 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17201 * linux-x86-low.c (update_debug_registers_callback): New.
17202 (i386_dr_low_set_addr): Use it.
17203 (i386_dr_low_get_addr): New.
17204 (i386_dr_low_set_control): Use update_debug_registers_callback.
17205 (i386_dr_low_get_control): New.
17206 (i386_dr_low_get_status): Adjust.
17207 * linux-low.c (linux_stop_lwp): New.
17208 * linux-low.h (linux_stop_lwp): Declare.
17210 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17211 argument instead of a i386_debug_reg_state.
17212 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17213 a i386_debug_reg_state.
17214 (i386_insert_aligned_watchpoint): Adjust.
17215 (i386_remove_aligned_watchpoint): Adjust.
17216 (i386_low_stopped_data_address): Read the debug registers from the
17217 inferior instead of from the mirrors.
17218 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17219 (i386_dr_low_get_addr): Declare.
17220 (i386_dr_low_get_control): Declare.
17221 (i386_dr_low_get_status): Change prototype.
17223 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17224 (i386_dr_low_get_addr): New.
17225 (i386_dr_low_get_control): New.
17226 (i386_dr_low_get_status): Adjust prototype. Return
17228 (i386_initial_stuff): Clear dr_status_mirror and
17230 (i386_get_thread_context): Adjust.
17231 (i386_set_thread_context): Adjust.
17232 (i386_thread_added): Adjust.
17234 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17236 * linux-low.h (linux_thread_area): Delete declaration.
17238 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17240 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17241 after its termination.
17243 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17245 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17246 (gdb_wants_all_stopped): Delete.
17247 (linux_wait_1): Don't call them.
17248 * server.c (handle_v_cont): Tag all threads as want-stopped.
17249 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17250 stopped as "client-wants-stopped".
17252 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17254 * Makefile.in (signals_h): New.
17255 (server_h): Depend on it.
17256 (server.o): Don't depend on $(signals_def).
17257 (signals.o): Depend on $(signals_def).
17259 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17261 * Makefile.in (signals_def): New.
17262 (server_h): Append include/gdb/signals.h and signals_def.
17263 (server.o): Append signals_def.
17265 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17267 * server.c (handle_target_event): Use target_signal_to_host for
17268 resume_info.sig initialization.
17269 * target.h (struct thread_resume) <sig>: New comment.
17271 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17273 * server.c (handle_query): strcpy() the returned string from paddress()
17274 instead of sprintf().
17275 * utils.c (paddress): Return phex_nz().
17277 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17279 * server.c (handle_v_cont): Call mourn_inferior if process
17281 (myresume): Likewise.
17283 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17285 Static tracepoints, and integration with UST.
17287 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17288 * mem-break.c (uninsert_all_breakpoints)
17289 (reinsert_all_breakpoints): New.
17290 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17291 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17292 (gdb_agent_ust_loaded, helper_thread_id)
17293 (gdb_agent_helper_thread_id): New macros.
17294 (struct ipa_sym_addresses): Add addr_ust_loaded,
17295 addr_helper_thread_id, addr_cmd_buf.
17296 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17297 (in_process_agent_loaded_ust): New.
17298 (write_e_ust_not_loaded): New.
17299 (maybe_write_ipa_ust_not_loaded): New.
17300 (struct collect_static_trace_data_action): New.
17301 (enum tracepoint_type) <static_tracepoint>: New.
17302 (struct tracepoint) <handle>: Mention static tracepoints.
17303 (struct static_tracepoint_ctx): New.
17304 (CMD_BUF_SIZE): New.
17305 (add_tracepoint_action): Handle static tracepoint actions.
17306 (unprobe_marker_at): New.
17307 (clear_installed_tracepoints): Handle static tracepoints.
17308 (cmd_qtdp): Handle static tracepoints.
17309 (probe_marker_at): New.
17310 (cmd_qtstart): Handle static tracepoints.
17311 (response_tracepoint): Handle static tracepoints.
17312 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17313 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17314 (get_context_regcache): Handle static tracepoints.
17315 (do_action_at_tracepoint): Handle static tracepoint actions.
17316 (traceframe_find_block_type): Handle static trace data blocks.
17317 (traceframe_read_sdata): New.
17318 (download_tracepoints): Download static tracepoint actions.
17319 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17320 (GDB_PROBE_NAME): New.
17322 (GET_UST_SYM): New.
17325 (ust_marker_to_static_tracepoint): New.
17327 (collect_ust_data_at_tracepoint): New.
17328 (gdb_ust_probe): New.
17329 (UNIX_PATH_MAX, SOCK_DIR): New.
17330 (gdb_ust_connect_sync_socket): New.
17331 (resume_thread, stop_thread): New.
17332 (run_inferior_command): New.
17333 (init_named_socket): New.
17334 (gdb_ust_socket_init): New.
17335 (cstr_to_hexstr): New.
17337 (first_marker, next_marker): New.
17338 (response_ust_marker): New.
17339 (cmd_qtfstm, cmd_qtsstm): New.
17340 (unprobe_marker_at, probe_marker_at): New.
17341 (cmd_qtstmat, gdb_ust_thread): New.
17342 (gdb_ust_init): New.
17343 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17344 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17345 (ST_REGENTRY): New.
17346 (x86_64_st_collect_regmap): New.
17347 (X86_64_NUM_ST_COLLECT_GREGS): New.
17348 (AMD64_RIP_REGNUM): New.
17349 (supply_static_tracepoint_registers): New.
17350 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17351 (ST_REGENTRY): New.
17352 (i386_st_collect_regmap): New.
17353 (i386_NUM_ST_COLLECT_GREGS): New.
17354 (supply_static_tracepoint_registers): New.
17355 * server.c (handle_query): Handle qXfer:statictrace:read.
17356 <qSupported>: Report support for StaticTracepoints, and
17357 qXfer:statictrace:read features.
17358 * server.h (traceframe_read_sdata)
17359 (supply_static_tracepoint_registers): Declare.
17360 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17361 (unpack_varlen_hex): Include in IPA build.
17362 * Makefile.in (ustlibs, ustinc): New.
17363 (IPA_OBJS): Add remote-utils-ipa.o.
17364 ($(IPA_LIB)): Link -ldl and -lpthread.
17366 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17367 * config.in, configure: Regenerate.
17369 2010-06-20 Ian Lance Taylor <iant@google.com>
17370 Pedro Alves <pedro@codesourcery.com>
17372 * linux-x86-low.c (always_true): Delete.
17373 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17374 trying to fool the compiler with always_true.
17376 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17378 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17379 conditions in gdbserver.
17381 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17383 * spu-low.c (spu_read_memory): Wrap around local store limit.
17384 (spu_write_memory): Likewise.
17386 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17388 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17389 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17391 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17393 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17394 uses with LONGEST uses.
17396 2010-06-14 Stan Shebs <stan@codesourcery.com>
17397 Pedro Alves <pedro@codesourcery.com>
17401 * linux-x86-low.c: Include limits.h.
17403 (always_true): New.
17406 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17407 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17408 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17409 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17410 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17411 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17412 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17413 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17414 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17415 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17416 (amd64_emit_void_call_2): New.
17417 (amd64_emit_ops): New.
17418 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17419 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17420 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17421 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17422 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17423 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17424 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17425 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17426 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17427 (i386_emit_stack_adjust, i386_emit_int_call_1)
17428 (i386_emit_void_call_2): New.
17429 (i386_emit_ops): New.
17430 (x86_emit_ops): New.
17431 (the_low_target): Install x86_emit_ops.
17432 * server.h (struct emit_ops): New.
17433 (get_raw_reg_func_addr): Declare.
17434 (current_insn_ptr, emit_error): Declare.
17435 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17436 (set_trace_state_variable_value): New defines.
17437 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17438 addr_get_trace_state_variable_value and
17439 addr_set_trace_state_variable_value.
17440 (symbol_list): New fields for get_raw_reg,
17441 get_trace_state_variable_value and set_trace_state_variable_value.
17442 (condfn): New typedef.
17443 (struct tracepoint): New field `compiled_cond'.
17444 (do_action_at_tracepoint): Clear compiled_cond.
17445 (get_trace_state_variable_value, set_trace_state_variable_value):
17447 (condition_true_at_tracepoint): If there's a compiled condition,
17449 (current_insn_ptr, emit_error): New globals.
17450 (struct bytecode_address): New.
17451 (get_raw_reg_func_addr): New.
17452 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17453 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17454 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17455 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17456 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17457 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17458 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17459 (compile_tracepoint_condition, compile_bytecodes): New.
17460 * target.h (emit_ops): Forward declare.
17461 (struct target_ops): New field emit_ops.
17462 (target_emit_ops): New.
17463 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17464 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17465 * linux-low.c (linux_emit_ops): New.
17466 (linux_target_ops): Install it.
17467 * linux-low.h (struct linux_target_ops): New field emit_ops.
17469 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17471 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17472 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17474 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17475 Stan Shebs <stan@codesourcery.com>
17477 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17478 (all): Depend on $(extra_libraries).
17479 (install-only): Install the IPA.
17480 (IPA_OBJS, IPA_LIB): New.
17481 (clean): Remove the IPA lib.
17482 (IPAGENT_CFLAGS): New.
17483 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17484 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17485 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17486 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17487 * configure.ac: Check for atomic builtins support in the compiler.
17488 (IPA_DEPFILES, extra_libraries): Define.
17489 * configure.srv (ipa_obj): Add description.
17490 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17491 (i[34567]86-*-linux*): Set ipa_obj.
17492 (x86_64-*-linux*): Set ipa_obj.
17493 * linux-low.c (stabilizing_threads): New.
17494 (supports_fast_tracepoints): New.
17495 (linux_detach): Stabilize threads before detaching.
17496 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17497 the lwp is either not stabilizing, or is moving out of a jump pad.
17498 (linux_fast_tracepoint_collecting): New.
17499 (maybe_move_out_of_jump_pad): New.
17500 (enqueue_one_deferred_signal): New.
17501 (dequeue_one_deferred_signal): New.
17502 (linux_wait_for_event_1): If moving out of a jump pad, defer
17503 pending signals to later.
17504 (linux_stabilize_threads): New.
17505 (linux_wait_1): Check if threads need moving out of jump pads, and
17507 (stuck_in_jump_pad_callback): New.
17508 (move_out_of_jump_pad_callback): New.
17509 (lwp_running): New.
17510 (linux_resume_one_lwp): Handle moving out of jump pads.
17511 (linux_set_resume_request): Dequeue deferred signals.
17512 (need_step_over_p): Also step over fast tracepoint jumps.
17513 (start_step_over): Also uninsert fast tracepoint jumps.
17514 (finish_step_over): Also reinsert fast tracepoint jumps.
17515 (linux_install_fast_tracepoint_jump): New.
17516 (linux_target_ops): Install linux_stabilize_threads and
17517 linux_install_fast_tracepoint_jump_pad.
17518 * linux-low.h (linux_target_ops) <get_thread_area,
17519 install_fast_tracepoint_jump_pad>: New fields.
17520 (struct lwp_info) <collecting_fast_tracepoint,
17521 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17522 (linux_get_thread_area): Declare.
17523 * linux-x86-low.c (jump_insn): New.
17524 (x86_get_thread_area): New.
17525 (append_insns): New.
17526 (push_opcode): New.
17527 (amd64_install_fast_tracepoint_jump_pad): New.
17528 (i386_install_fast_tracepoint_jump_pad): New.
17529 (x86_install_fast_tracepoint_jump_pad): New.
17530 (the_low_target): Install x86_get_thread_area and
17531 x86_install_fast_tracepoint_jump_pad.
17532 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17533 (struct fast_tracepoint_jump): New.
17534 (fast_tracepoint_jump_insn): New.
17535 (fast_tracepoint_jump_shadow): New.
17536 (find_fast_tracepoint_jump_at): New.
17537 (fast_tracepoint_jump_here): New.
17538 (delete_fast_tracepoint_jump): New.
17539 (set_fast_tracepoint_jump): New.
17540 (uninsert_fast_tracepoint_jumps_at): New.
17541 (reinsert_fast_tracepoint_jumps_at): New.
17542 (set_breakpoint_at): Use write_inferior_memory.
17543 (uninsert_raw_breakpoint): Use write_inferior_memory.
17544 (check_mem_read): Mask out fast tracepoint jumps.
17545 (check_mem_write): Mask out fast tracepoint jumps.
17546 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17547 (set_fast_tracepoint_jump): Declare.
17548 (delete_fast_tracepoint_jump)
17549 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17550 (reinsert_fast_tracepoint_jumps_at): Declare.
17551 * regcache.c: Don't compile many functions when building the
17552 in-process agent library.
17553 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17554 the register buffer in the heap.
17555 (free_register_cache): If the register buffer isn't owned by the
17556 regcache, don't free it.
17557 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17558 pre-existing register caches.
17559 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17561 (convert_ascii_to_int): : Constify `from' parameter type.
17562 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17563 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17564 the needed buffer in-place.
17565 (relocate_instruction): New.
17566 * server.c (handle_query) <qSymbols>: If the target supports
17567 tracepoints, give it a chance of looking up symbols. Report
17568 support for fast tracepoints.
17569 (handle_status): Stabilize threads.
17570 (process_serial_event): Adjust.
17571 * server.h (struct fast_tracepoint_jump): Forward declare.
17572 (struct process_info) <fast_tracepoint_jumps>: New field.
17573 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17574 (decode_X_packet, decode_M_packet): Adjust.
17575 (relocate_instruction): Declare.
17576 (in_process_agent_loaded): Declare.
17577 (tracepoint_look_up_symbols): Declare.
17578 (struct fast_tpoint_collect_status): Declare.
17579 (fast_tracepoint_collecting): Declare.
17580 (force_unlock_trace_buffer): Declare.
17581 (handle_tracepoint_bkpts): Declare.
17582 (initialize_low_tracepoint)
17583 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17584 * target.h (struct target_ops) <stabilize_threads,
17585 install_fast_tracepoint_jump_pad>: New fields.
17586 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17587 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17588 [HAVE_STDINT_H]: Include stdint.h.
17589 (trace_debug_1): Rename to ...
17590 (trace_vdebug): ... this.
17591 (trace_debug): Rename to ...
17592 (trace_debug_1): ... this. Add `level' parameter.
17593 (trace_debug): New.
17594 (ATTR_USED, ATTR_NOINLINE): New.
17595 (IP_AGENT_EXPORT): New.
17596 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17597 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17598 (about_to_request_buffer_space, trace_buffer_is_full)
17599 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17600 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17601 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17602 (traceframe_write_count, traceframes_created)
17603 (trace_state_variables)
17604 New renaming defines.
17605 (struct ipa_sym_addresses): New.
17606 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17607 (symbol_list): New.
17608 (ipa_sym_addrs): New.
17609 (all_tracepoint_symbols_looked_up): New.
17610 (in_process_agent_loaded): New.
17611 (write_e_ipa_not_loaded): New.
17612 (maybe_write_ipa_not_loaded): New.
17613 (tracepoint_look_up_symbols): New.
17614 (debug_threads) [IN_PROCESS_AGENT]: New.
17615 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17616 (UNKNOWN_SIDE_EFFECTS): New.
17617 (stop_tracing): New.
17618 (flush_trace_buffer): New.
17619 (stop_tracing_bkpt): New.
17620 (flush_trace_buffer_bkpt): New.
17621 (read_inferior_integer): New.
17622 (read_inferior_uinteger): New.
17623 (read_inferior_data_pointer): New.
17624 (write_inferior_data_pointer): New.
17625 (write_inferior_integer): New.
17626 (write_inferior_uinteger): New.
17627 (struct collect_static_trace_data_action): Delete.
17628 (enum tracepoint_type): New.
17629 (struct tracepoint) <type>: New field `type'.
17630 <actions_str, step_actions, step_actions_str>: Only include in
17632 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17633 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17634 (tracepoints): Use IP_AGENT_EXPORT.
17635 (last_tracepoint): Don't include in the IPA.
17636 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17637 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17638 (alloced_trace_state_variables): New.
17639 (trace_state_variables): Use IP_AGENT_EXPORT.
17640 (traceframe_t): Delete unused variable.
17641 (circular_trace_buffer): Don't include in the IPA.
17642 (trace_buffer_start): Delete.
17643 (struct trace_buffer_control): New.
17644 (trace_buffer_free): Delete.
17645 (struct ipa_trace_buffer_control): New.
17646 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17647 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17649 (trace_buffer_ctrl): New.
17650 (TRACE_BUFFER_CTRL_CURR): New.
17651 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17652 Reimplement as macros.
17653 (trace_buffer_wrap): Delete.
17654 (traceframe_write_count, traceframe_read_count)
17655 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17656 (struct tracepoint_hit_ctx) <type>: New field.
17657 (struct fast_tracepoint_ctx): New.
17658 (memory_barrier): New.
17660 (record_tracepoint_error): Update atomically in the IPA.
17661 (clear_inferior_trace_buffer): New.
17662 (about_to_request_buffer_space): New.
17663 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17664 updating the same buffer.
17665 (add_tracepoint): Default the tracepoint's type to trap
17666 tracepoint, and orig_size to -1.
17667 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17668 internal variables.
17669 (create_trace_state_variable): New parameter `gdb'. Handle it.
17670 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17671 (cmd_qtdp): Handle fast tracepoints.
17672 (cmd_qtdv): Adjust.
17673 (max_jump_pad_size): New.
17674 (gdb_jump_pad_head): New.
17675 (get_jump_space_head): New.
17676 (claim_jump_space): New.
17677 (sort_tracepoints): New.
17678 (MAX_JUMP_SIZE): New.
17679 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17681 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17682 support. Upload fast traceframes, and delete internal IPA
17684 (stop_tracing_handler): New.
17685 (flush_trace_buffer_handler): New.
17686 (cmd_qtstop): Upload fast tracepoints.
17687 (response_tracepoint): Handle fast tracepoints.
17688 (tracepoint_finished_step): Upload fast traceframes. Set the
17689 tracepoint hit context's tracepoint type.
17690 (handle_tracepoint_bkpts): New.
17691 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17692 type. Add comment about fast tracepoints.
17693 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17694 non-existing action_str field.
17695 (get_context_regcache): Handle fast tracepoints.
17696 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17698 (fast_tracepoint_from_jump_pad_address): New.
17699 (fast_tracepoint_from_ipa_tpoint_address): New.
17700 (collecting_t): New.
17701 (force_unlock_trace_buffer): New.
17702 (fast_tracepoint_collecting): New.
17704 (gdb_collect): New.
17705 (write_inferior_data_ptr): New.
17706 (target_tp_heap): New.
17707 (target_malloc): New.
17708 (download_agent_expr): New.
17710 (download_tracepoints): New.
17711 (download_trace_state_variables): New.
17712 (upload_fast_traceframes): New.
17713 (IPA_FIRST_TRACEFRAME): New.
17714 (IPA_NEXT_TRACEFRAME_1): New.
17715 (IPA_NEXT_TRACEFRAME): New.
17716 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17717 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17718 (gdb_jump_pad_buffer_end): New.
17719 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17720 (initialize_tracepoint): Adjust.
17721 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17722 buffer. Initialize the low module.
17723 * utils.c (PREFIX, TOOLNAME): New.
17724 (malloc_failure): Use PREFIX.
17725 (error): In the IPA, an error causes an exit.
17726 (fatal, warning): Use PREFIX.
17727 (internal_error): Use TOOLNAME.
17728 (NUMCELLS): Increase to 10.
17729 * configure, config.in: Regenerate.
17731 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17733 * server.c (handle_query) <qSupported>: Do two passes over the
17734 qSupported string to avoid nesting strtok.
17736 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17738 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17740 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17741 -Wl,--dynamic-list.
17742 * configure: Regenerate.
17743 * proc-service.list: New.
17745 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17747 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17750 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17752 * gdbreplay.c (remote_open): Check error return from socket() call by
17753 its equality to -1 not by it being negative.
17754 * remote-utils.c (remote_open): Likewise.
17756 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17758 * config.h: Regenerate.
17760 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17762 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17763 doesn't provide PTRACE_GET_THREAD_AREA.
17765 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17767 * linux-m68k-low.c: Include <asm/ptrace.h>
17768 (ps_get_thread_area): Implement.
17770 2010-05-03 Doug Evans <dje@google.com>
17772 * event-loop.c (struct callback_event): New struct.
17773 (callback_list): New global.
17774 (append_callback_event, delete_callback_event): New functions.
17775 (process_callback): New function.
17776 (start_event_loop): Call it.
17777 * remote-utils.c (NOT_SCHEDULED): Define.
17778 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17779 moved out of readchar.
17780 (readchar): Rewrite. Call reschedule before returning.
17781 (reset_readchar): New function.
17782 (remote_close): Call it.
17783 (process_remaining, reschedule): New functions.
17784 * server.h (callback_handler_func): New typedef.
17785 (append_callback_event, delete_callback_event): Declare.
17787 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17789 * proc-service.c (ps_pglobal_lookup): Use
17790 thread_db_look_up_one_symbol.
17791 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17792 parameter. Use it instead of all_symbols_looked_up.
17793 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17795 (all_symbols_looked_up): Don't declare.
17796 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17797 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17799 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17800 Set all_symbols_looked_up here.
17801 (thread_db_look_up_one_symbol): New.
17802 (thread_db_get_tls_address): Adjust.
17803 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17804 thread_db object on the heap, and tentatively set it in the
17806 (thread_db_init): Don't set all_symbols_looked_up here.
17807 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17809 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17811 * linux-low.c (linux_kill, linux_detach): Adjust.
17812 (status_pending_p_callback): Remove redundant statement. Check
17813 for !TARGET_WAITIKIND_IGNORE, instead of
17814 TARGET_WAITKIND_STOPPED.
17815 (handle_tracepoints): Make sure LWP is locked. Adjust.
17816 (linux_wait_for_event_1): Adjust.
17817 (linux_cancel_breakpoints): New.
17818 (unsuspend_one_lwp): New.
17819 (unsuspend_all_lwps): New.
17820 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17821 (send_sigstop_callback): Change return type to int, add new
17822 `except' parameter and handle it.
17823 (suspend_and_send_sigstop_callback): New.
17824 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17825 pass them down. If SUSPEND, also increment the lwp's suspend
17827 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17828 (need_step_over_p): Don't consider suspended LWPs.
17829 (start_step_over): Adjust.
17830 (proceed_one_lwp): Change return type to int, add new `except'
17831 parameter and handle it.
17832 (unsuspend_and_proceed_one_lwp): New.
17833 (proceed_all_lwps): Use find_inferior instead of
17835 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17836 also decrement the suspend count of LWPs. Pass `except' down,
17837 instead of hacking its suspend count.
17838 (linux_pause_all): Add `freeze' parameter. Adjust.
17839 (linux_unpause_all): New.
17840 (linux_target_ops): Install linux_unpause_all.
17841 * server.c (handle_status): Adjust.
17842 * target.h (struct target_ops): New fields `unpause_all' and
17843 `cancel_breakpoints'. Add new parameter to `pause_all'.
17844 (pause_all): Add new `freeze' parameter.
17845 (unpause_all): New.
17846 (cancel_breakpoints): New.
17847 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17848 cancel breakpoints.
17849 (cmd_qtstart): Pause threads.
17850 (stop_tracing): Pause threads, and cancel breakpoints.
17851 * win32-low.c (win32_target_ops): Adjust.
17853 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17855 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17856 the inferior right away from here...
17857 (linux_wait_1): ... to here, and adjust to check the thread's
17858 last_resume_kind instead of the lwp's step or stop_expected flags.
17860 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17862 * README: Use consistent `GDB' and `GDBserver' spellings.
17864 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17866 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17867 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17868 (linux_detach_one_lwp): Assume the lwp is stopped.
17869 (any_thread_of): Delete.
17870 (linux_detach): Stop all lwps here. Don't blindly delete all
17872 (delete_lwp_callback): New.
17873 (linux_mourn): Delete all lwps of the process that is gone.
17874 (linux_wait_1): Don't delete the last lwp of the process here.
17875 * mem-break.h (mark_breakpoints_out): Declare.
17876 * mem-break.c (mark_breakpoints_out): New.
17877 (free_all_breakpoints): Use it.
17878 * server.c (handle_target_event): If the process is gone, mark
17880 * thread-db.c (struct thread_db) <create_bp>: New field.
17881 (thread_db_enable_reporting): Fix prototype. Store a thread event
17882 breakpoint reference in the thread_db struct.
17883 (thread_db_load_search): Clear the thread_db object.
17884 (try_thread_db_load_1): Ditto.
17885 (switch_to_process): New.
17886 (disable_thread_event_reporting): Use it.
17887 (remove_thread_event_breakpoints): New.
17888 (thread_db_detach, thread_db_mourn): Use it.
17890 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17892 * linux-low.c (linux_enable_event_reporting): New.
17893 (linux_wait_for_event_1, handle_extended_wait): Use it.
17895 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17897 * linux-low.c (linux_kill_one_lwp, linux_kill)
17898 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17899 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17900 SIGSTOP even if the LWP is stopped.
17901 (send_sigstop_callback): New.
17902 (stop_all_lwps): Use send_sigstop_callback instead.
17903 (linux_resume_one_thread): Adjust.
17904 (proceed_one_lwp): Still proceed an LWP that the client has
17905 requested to stop, if we haven't reported it as stopped yet. Make
17906 sure that LWPs the client want stopped, have a pending SIGSTOP.
17908 2010-04-26 Doug Evans <dje@google.com>
17910 * server.c (handle_general_set): Make static.
17912 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
17913 Print received char after testing for error/eof instead of before.
17914 (input_interrupt): Tweak comment.
17916 2010-04-23 Doug Evans <dje@google.com>
17918 * server.c (start_inferior): Print inferior argv if --debug.
17920 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
17922 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
17923 * nto-x86-low.c: Include server.h
17925 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
17927 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
17928 be consistent with other sources of this directory.
17929 (init_registers_amd64): Correct name of source file of this function
17932 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17934 * configure.srv (x86_64-*-mingw*): New configuration for Windows
17935 64-bit executables.
17937 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17939 * win32-i386-low.c: Add 64-bit support.
17940 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
17941 (init_registers_amd64): Declare.
17942 (mappings): Add 64-bit version of array.
17943 (init_windows_x86): New function.
17944 (the_low_target): Change init_arch field to init_windows_x86.
17946 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17948 * win32-low.c: Adapt to support also 64-bit architecture.
17949 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
17950 (get_image_name): Use SIZE_T type for local variable `done'.
17951 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
17952 (toolhelp_get_dll_name): Idem.
17953 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
17954 Use uintptr_t typecast to avoid warning.
17955 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
17956 (handle_exception): Use phex_nz to avoid warning.
17957 (win32_wait): Remove unused local variable `process'.
17959 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
17961 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
17964 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
17966 * configure.ac: Use `ws2_32' library for srv_mingw.
17967 * configure: Regenerate.
17968 * gdbreplay.c: Include winsock2.h instead of winsock.h.
17969 * remote-utils.c: Likewise.
17971 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
17973 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
17974 if __x86_64__ is defined.
17976 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17978 * configure: Regenerate.
17980 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
17982 * server.c (handle_query): Handle 'qGetTIBAddr' query.
17983 * target.h (target_ops): New get_tib_address field.
17984 * win32-low.h (win32_thread_info): Add thread_local_base field.
17985 * win32-low.c (child_add_thread): Add tlb argument.
17986 Set thread_local_base field to TLB.
17987 (get_child_debug_event): Adapt to child_add_thread change.
17988 (win32_get_tib_address): New function.
17989 (win32_target_ops): Set get_tib_address field to
17990 win32_get_tib_address.
17991 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
17993 2010-04-12 Pedro Alves <pedro@codesourcery.com>
17995 * linux-low.c (linux_mourn): Also remove the process.
17996 * server.c (handle_target_event): Don't remove the process here.
17997 * nto-low.c (nto_mourn): New.
17998 (nto_target_ops): Install it.
17999 * spu-low.c (spu_mourn): New.
18000 (spu_target_ops): Install it.
18001 * win32-low.c (win32_mourn): New.
18002 (win32_target_ops): Install it.
18004 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18006 * server.h (buffer_xml_printf): Remove redundant `;'.
18008 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18010 * regcache.c (set_register_cache): Invalidate regcaches before
18011 changing the register cache layout.
18012 (regcache_invalidate_one): Allow a NULL regcache.
18013 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18014 regcaches before changing the register cache layout or the target
18017 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18019 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18020 variable warning on Linux/x86-64.
18022 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18024 GDBserver disconnected tracing support.
18026 * linux-low.c (linux_remove_process): Delete.
18027 (add_lwp): Don't set last_resume_kind here.
18028 (linux_kill): Use `mourn'.
18029 (linux_detach): Use `thread_db_detach', and `mourn'.
18030 (linux_mourn): New.
18031 (linux_attach_lwp_1): Adjust comment.
18032 (linux_attach): last_resume_kind moved the thread_info; adjust.
18033 (status_pending_p_callback): Adjust.
18034 (linux_wait_for_event_1): Adjust.
18035 (count_events_callback, select_singlestep_lwp_callback)
18036 (select_event_lwp_callback, cancel_breakpoints_callback)
18037 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18038 (proceed_one_lwp): Adjust.
18039 (linux_async): Add debug output.
18040 (linux_thread_stopped): New.
18041 (linux_pause_all): New.
18042 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18044 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18045 (thread_db_free): Delete declaration.
18046 (thread_db_detach, thread_db_mourn): Declare.
18047 * thread-db.c (thread_db_init): Use thread_db_mourn.
18048 (thread_db_free): Delete, split in two.
18049 (disable_thread_event_reporting): New.
18050 (thread_db_detach): New.
18051 (thread_db_mourn): New.
18053 * server.h (struct thread_info) <last_resume_kind>: New field.
18054 <attached>: Add comment.
18055 <gdb_detached>: New field.
18056 (handler_func): Change return type to int.
18057 (handle_serial_event, handle_target_event): Ditto.
18058 (gdb_connected): Declare.
18060 (disconnected_tracing): Declare.
18061 (stop_tracing): Declare.
18063 * server.c (handle_query) <qSupported>: Report support for
18064 disconnected tracing.
18065 (queue_stop_reply_callback): Account for running threads.
18066 (gdb_wants_thread_stopped): New.
18067 (gdb_wants_all_threads_stopped): New.
18068 (gdb_reattached_process): New.
18069 (handle_status): Clear the `gdb_detached' flag of all processes.
18070 In all-stop, stop all threads.
18071 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18072 (process_serial_event): If the remote connection breaks, or if an
18073 exit was forced with "monitor exit", force an event loop exit.
18074 Handle disconnected tracing on detach.
18075 (handle_serial_event): Adjust.
18076 (handle_target_event): If GDB isn't connected, forward events back
18077 to the inferior, unless the last process exited, in which case,
18078 exit gdbserver. Adjust interface.
18080 * remote-utils.c (remote_open): Don't block in accept. Instead
18081 register an event loop source on the listen socket file
18082 descriptor. Refactor bits into ...
18083 (listen_desc): ... this new global.
18084 (gdb_connected): ... this new function.
18085 (enable_async_notification): ... this new function.
18086 (handle_accept_event): ... this new function.
18087 (remote_close): Clear remote_desc.
18089 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18091 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18093 (mourn_inferior): Define.
18094 (target_process_qsupported): Avoid the dangling else problem.
18095 (thread_stopped): Define.
18096 (pause_all): Define.
18097 (target_waitstatus_to_string): Declare.
18098 * target.c (target_waitstatus_to_string): New.
18100 * tracepoint.c (tracing): Make extern.
18101 (disconnected_tracing): New.
18102 (stop_tracing): Make extern. Handle tracing stops due to GDB
18104 (cmd_qtdisconnected): New.
18105 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18106 (handle_tracepoint_general_set): Handle QTDisconnected.
18108 * event-loop.c (event_handler_func): Change return type to int.
18109 (process_event): Bail out if the event handler wants the event
18111 (handle_file_event): Ditto.
18112 (start_event_loop): Bail out if the event handler wants the event
18115 * nto-low.c (nto_target_ops): Adjust.
18116 * spu-low.c (spu_wait): Don't remove the process here.
18117 (spu_target_ops): Adjust.
18118 * win32-low.c (win32_wait): Don't remove the process here.
18119 (win32_target_ops): Adjust.
18121 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18123 * regcache.c (realloc_register_cache): Invalidate inferior's
18124 regcache before recreating it.
18126 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18128 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18130 2010-04-09 Stan Shebs <stan@codesourcery.com>
18131 Pedro Alves <pedro@codesourcery.com>
18133 * server.h (LONGEST): New.
18134 (struct thread_info) <while_stepping>: New field.
18135 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18137 (initialize_tracepoint, handle_tracepoint_general_set)
18138 (handle_tracepoint_query, tracepoint_finished_step)
18139 (tracepoint_was_hit, release_while_stepping_state_list):
18140 (current_traceframe): Declare.
18141 * server.c (handle_general_set): Handle tracepoint packets.
18142 (read_memory): New.
18143 (write_memory): New.
18144 (handle_search_memory_1): Use read_memory.
18145 (handle_query): Report support for conditional tracepoints, trace
18146 state variables, and tracepoint sources. Handle tracepoint
18148 (main): Initialize the tracepoints module.
18149 (process_serial_event): Handle traceframe reads/writes.
18151 * linux-low.c (handle_tracepoints): New.
18152 (linux_wait_1): Call it.
18153 (linux_resume_one_lwp): Handle while-stepping.
18154 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18155 (linux_target_ops): Install them.
18156 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18158 * linux-x86-low.c (x86_supports_tracepoints): New.
18159 (the_low_target). Install it.
18161 * mem-break.h (delete_breakpoint): Declare.
18162 * mem-break.c (delete_breakpoint): Make external.
18164 * target.h (struct target_ops): Add `supports_tracepoints',
18165 `read_pc', and `write_pc' fields.
18166 (target_supports_tracepoints): Define.
18167 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18170 * regcache.h (struct regcache) <registers_owned>: New field.
18171 (init_register_cache, regcache_cpy): Declare.
18172 (regcache_read_pc, regcache_write_pc): Declare.
18173 (register_cache_size): Declare.
18174 (supply_regblock): Declare.
18175 * regcache.c (init_register_cache): New.
18176 (new_register_cache): Use it.
18177 (regcache_cpy): New.
18178 (register_cache_size): New.
18179 (supply_regblock): New.
18180 (regcache_read_pc, regcache_write_pc): New.
18182 * tracepoint.c: New.
18184 * Makefile.in (OBS): Add tracepoint.o.
18185 (tracepoint.o): New rule.
18187 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18189 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18191 (i386-mmx.c): Likewise.
18192 (i386-mmx-linux.o): Likewise.
18193 (i386-mmx-linux.c): Likewise.
18195 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18196 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18197 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18198 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18200 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18201 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18202 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18204 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18206 * Makefile.in (clean): Updated.
18208 (i386-avx.c): Likewise.
18209 (i386-avx-linux.o): Likewise.
18210 (i386-avx-linux.c): Likewise.
18211 (amd64-avx.o): Likewise.
18212 (amd64-avx.c): Likewise.
18213 (amd64-avx-linux.o): Likewise.
18214 (amd64-avx-linux.c): Likewise.
18216 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18217 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18218 (srv_amd64_regobj): Add amd64-avx.o.
18219 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18220 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18221 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18222 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18223 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18224 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18225 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18227 * i387-fp.c: Include "i386-xstate.h".
18229 (i387_cache_to_xsave): Likewise.
18230 (i387_xsave_to_cache): Likewise.
18231 (x86_xcr0): Likewise.
18233 * i387-fp.h (i387_cache_to_xsave): Likewise.
18234 (i387_xsave_to_cache): Likewise.
18235 (x86_xcr0): Likewise.
18237 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18238 * linux-crisv32-low.c (target_regsets): Likewise.
18239 * linux-m68k-low.c (target_regsets): Likewise.
18240 * linux-mips-low.c (target_regsets): Likewise.
18241 * linux-ppc-low.c (target_regsets): Likewise.
18242 * linux-s390-low.c (target_regsets): Likewise.
18243 * linux-sh-low.c (target_regsets): Likewise.
18244 * linux-sparc-low.c (target_regsets): Likewise.
18245 * linux-xtensa-low.c (target_regsets): Likewise.
18247 * linux-low.c: Include <sys/uio.h>.
18248 (regsets_fetch_inferior_registers): Support nt_type.
18249 (regsets_store_inferior_registers): Likewise.
18250 (linux_process_qsupported): New.
18251 (linux_target_ops): Add linux_process_qsupported.
18253 * linux-low.h (regset_info): Add nt_type.
18254 (linux_target_ops): Add process_qsupported.
18256 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18258 (init_registers_i386_avx_linux): New.
18259 (init_registers_amd64_avx_linux): Likewise.
18260 (xmltarget_i386_linux_no_xml): Likewise.
18261 (xmltarget_amd64_linux_no_xml): Likewise.
18262 (PTRACE_GETREGSET): Likewise.
18263 (PTRACE_SETREGSET): Likewise.
18264 (x86_fill_xstateregset): Likewise.
18265 (x86_store_xstateregset): Likewise.
18266 (use_xml): Likewise.
18267 (x86_linux_update_xmltarget): Likewise.
18268 (x86_linux_process_qsupported): Likewise.
18269 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18270 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18271 init_registers_i386_linux here. Call
18272 x86_linux_update_xmltarget.
18273 (the_low_target): Add x86_linux_process_qsupported.
18275 * server.c (handle_query): Call target_process_qsupported.
18277 * target.h (target_ops): Add process_qsupported.
18278 (target_process_qsupported): New.
18280 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18282 * inferiors.c (add_thread): Set last_status kind to
18283 TARGET_WAITKIND_IGNORE.
18284 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18285 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18286 (linux_wait_1): Move `thread' local definition to block that uses
18287 it. Don't NULL initialize `event_child'.
18288 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18289 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18290 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18292 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18294 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18295 an extended waitstatus, or by a watchpoint.
18296 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18297 thread was stepping or has been stopped by a watchpoint.
18299 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18301 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18302 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18303 of another, then delete the previous, and validate all
18305 (validate_inserted_breakpoint): New.
18306 (delete_disabled_breakpoints): New.
18307 (validate_breakpoints): New.
18308 (check_mem_read): Validate breakpoints before trusting their
18309 shadow. Delete disabled breakpoints.
18310 (check_mem_write): Validate breakpoints before trusting they
18311 should be inserted. Delete disabled breakpoints.
18312 * mem-break.h (validate_breakpoints):
18313 * server.c (handle_query): Validate breakpoints when we see a
18316 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18318 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18319 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18320 if we could tell there's a GDB breakpoint at stop_pc.
18321 (need_step_over_p): Don't do a step over if we find a GDB
18322 breakpoint at the resume PC.
18324 * mem-break.c (struct raw_breakpoint): New.
18325 (enum bkpt_type): New type `gdb_breakpoint'.
18326 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18327 fields. New field `raw'.
18328 (find_raw_breakpoint_at): New.
18329 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18330 breakpoint instead.
18331 (set_breakpoint_at): Adjust.
18332 (delete_raw_breakpoint): New.
18333 (release_breakpoint): New.
18334 (delete_breakpoint): Rename to...
18335 (delete_breakpoint_1): ... this. Add proc parameter. Use
18336 release_breakpoint. Return ENOENT.
18337 (delete_breakpoint): Reimplement.
18338 (find_breakpoint_at): Delete.
18339 (find_gdb_breakpoint_at): New.
18340 (delete_breakpoint_at): Delete.
18341 (set_gdb_breakpoint_at): New.
18342 (delete_gdb_breakpoint_at): New.
18343 (gdb_breakpoint_here): New.
18344 (set_reinsert_breakpoint): Use release_breakpoint.
18345 (uninsert_breakpoint): Rename to ...
18346 (uninsert_raw_breakpoint): ... this.
18347 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18348 (reinsert_raw_breakpoint): Change parameter type to
18350 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18352 (check_breakpoints): Adjust. Use release_breakpoint.
18353 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18354 (breakpoint_inserted_here): Ditto.
18355 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18356 Don't trust the breakpoint's shadow if it is not inserted.
18357 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18358 (delete_all_breakpoints): Adjust.
18359 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18360 use delete_breakpoint_1.
18362 * mem-break.h (breakpoints_supported): Delete declaration.
18363 (set_gdb_breakpoint_at): Declare.
18364 (gdb_breakpoint_here): Declare.
18365 (delete_breakpoint_at): Delete.
18366 (delete_gdb_breakpoint_at): Declare.
18368 * server.h (struct raw_breakpoint): Forward declare.
18369 (struct process_info): New field `raw_breakpoints'.
18371 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18374 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18376 * linux-low.c (status_pending_p_callback): Fix comment.
18377 (linux_wait_for_event_1): Move most of the internal breakpoint
18378 handling from here...
18379 (linux_wait_1): ... to here.
18380 (count_events_callback): New.
18381 (select_singlestep_lwp_callback): New.
18382 (select_event_lwp_callback): New.
18383 (cancel_breakpoints_callback): New.
18384 (select_event_lwp): New.
18385 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18386 priority to all LWPs that have had events that should be reported
18387 to the client. Cancel breakpoints when about to reporting the
18388 event to the client, not while stopping lwps. No longer cancel
18389 finished single-steps here.
18390 (cancel_finished_single_step): Delete.
18391 (cancel_finished_single_steps): Delete.
18393 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18395 * mem-break.c (enum bkpt_type): New.
18396 (struct breakpoint): New field `type'.
18397 (set_breakpoint_at): Change return type to struct breakpoint
18398 pointer. Set type to `other_breakpoint' by default.
18399 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18400 in the breakpoint list.
18401 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18402 (reinsert_breakpoint): Rename to ...
18403 (reinsert_raw_breakpoint): ... this.
18404 (reinsert_breakpoints_at): Adjust.
18405 * mem-break.h (struct breakpoint): Declare.
18406 (set_breakpoint_at): Change return type to struct breakpoint
18409 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18411 * server.c (handle_query): Assign, not compare.
18413 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18415 Teach linux gdbserver to step-over-breakpoints.
18417 * linux-low.c (can_hardware_single_step): New.
18418 (supports_breakpoints): New.
18419 (handle_extended_wait): If stopping threads, read the stop pc of
18420 the new cloned LWP.
18422 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18423 low target doesn't support retrieving the PC.
18424 (add_lwp): Set last_resume_kind to resume_continue.
18425 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18426 (linux_attach): Don't clear stop_expected. Set the lwp's
18427 last_resume_kind to resume_stop.
18428 (linux_detach_one_lwp): Don't check for removed breakpoints.
18429 (check_removed_breakpoint): Delete.
18430 (status_pending_p): Rename to ...
18431 (status_pending_p_callback): ... this. Don't check for removed
18432 breakpoints. Don't consider threads that are stopped from GDB's
18434 (linux_wait_for_lwp): Always read the stop_pc here.
18435 (cancel_breakpoint): New.
18436 (step_over_bkpt): New global.
18437 (linux_wait_for_event_1): Implement stepping over breakpoints.
18438 (gdb_wants_lwp_stopped): New.
18439 (gdb_wants_all_stopped): New.
18440 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18441 single-step traps here. Store the thread's last reported target
18443 (send_sigstop): Don't clear stop_expected. Always set it,
18445 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18446 (cancel_finished_single_step): New.
18447 (cancel_finished_single_steps): New.
18448 (wait_for_sigstop): Don't cancel finished single-step traps here.
18449 (linux_resume_one_lwp): Don't check for removed breakpoints.
18450 Don't set `step' on non-hardware step archs.
18451 (linux_set_resume_request): Ignore resume_stop requests if already
18452 stopping or stopped. Set the lwp's last_resume_kind.
18453 (resume_status_pending_p): Don't check for removed breakpoints.
18454 (need_step_over_p): New.
18455 (start_step_over): New.
18456 (finish_step_over): New.
18457 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18458 requests. Clear the thread's last reported target waitstatus.
18459 Don't use the `suspended' flag. Don't consider pending breakpoints.
18460 (linux_resume): Start a step-over if necessary.
18461 (proceed_one_lwp): New.
18462 (proceed_all_lwps): New.
18463 (unstop_all_lwps): New.
18464 * linux-low.h (struct lwp_info): Rewrite comment for the
18465 `suspended' flag. Add the `stop_pc' field. Delete the
18466 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18467 Add `'last_resume_kind' and `need_step_over' fields.
18468 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18469 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18470 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18471 (set_raw_breakpoint_at): New.
18472 (set_breakpoint_at): Rewrite to use it.
18473 (reinsert_breakpoint_handler): Delete.
18474 (set_reinsert_breakpoint): New.
18475 (reinsert_breakpoint_by_bp): Delete.
18476 (delete_reinsert_breakpoints): New.
18477 (uninsert_breakpoint): Rewrite.
18478 (uninsert_breakpoints_at): New.
18479 (reinsert_breakpoint): Rewrite.
18480 (reinsert_breakpoints_at): New.
18481 (check_breakpoints): Rewrite.
18482 (breakpoint_here): New.
18483 (breakpoint_inserted_here): New.
18484 (check_mem_read): Adjust.
18485 * mem-break.h (breakpoints_supported, breakpoint_here)
18486 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18487 (reinsert_breakpoint_by_bp): Delete declaration.
18488 (delete_reinsert_breakpoints): Declare.
18489 (reinsert_breakpoint): Delete declaration.
18490 (reinsert_breakpoints_at): Declare.
18491 (uninsert_breakpoint): Delete declaration.
18492 (uninsert_breakpoints_at): Declare.
18493 (check_breakpoints): Adjust prototype.
18494 * server.h: Adjust include order.
18495 (struct thread_info): Declare here. Add a `last_status' field.
18497 2010-03-23 Michael Snyder <msnyder@vmware.com>
18499 * server.c (crc32): New function.
18500 (handle_query): Add handling for 'qCRC:' request.
18502 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18504 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18505 lwp had been stopped by a watchpoint.
18507 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18509 * server.h (internal_error): Declare.
18510 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18511 * utils.c (internal_error): New function.
18513 2010-03-15 Andreas Schwab <schwab@redhat.com>
18515 * configure.srv: Fix typo setting srv_regobj.
18517 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18519 * linux-low.c (fetch_register): Avoid passing a non string literal
18521 (usr_store_inferior_registers): Ditto.
18523 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18525 * linux-low.c (linux_write_memory): Bail out early if peeking
18528 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18530 * linux-low.h (struct lwp_info): New fields
18531 `stopped_by_watchpoint' and `stopped_data_address'.
18532 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18533 here, and cache them in the lwp object.
18534 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18536 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18538 (linux_stopped_by_watchpoint): Rewrite.
18539 (linux_stopped_data_address): Rewrite.
18541 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18543 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18544 switching the current inferior, not before.
18546 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18548 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18549 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18550 i386-linux.c and amd64-linux.c.
18551 (reg-i386.o): Removed.
18552 (reg-i386.c): Likewise.
18553 (reg-i386-linux.o): Likewise.
18554 (reg-i386-linux.c): Likewise.
18555 (reg-x86-64.o): Likewise.
18556 (reg-x86-64.c): Likewise.
18557 (reg-x86-64-linux.o): Likewise.
18558 (reg-x86-64-linux.c): Likewise.
18560 (i386.c): Likewise.
18561 (i386-linux.o): Likewise.
18562 (i386-linux.c): Likewise.
18563 (amd64.o): Likewise.
18564 (amd64.c): Likewise.
18565 (amd64-linux.o): Likewise.
18566 (amd64-linux.c): Likewise.
18568 * configure.srv (srv_i386_regobj): New.
18569 (srv_i386_linux_regobj): Likewise.
18570 (srv_amd64_regobj): Likewise.
18571 (srv_amd64_linux_regobj): Likewise.
18572 (srv_i386_32bit_xmlfiles): Likewise.
18573 (srv_i386_64bit_xmlfiles): Likewise.
18574 (srv_i386_xmlfiles): Likewise.
18575 (srv_amd64_xmlfiles): Likewise.
18576 (srv_i386_linux_xmlfiles): Likewise.
18577 (srv_amd64_linux_xmlfiles): Likewise.
18578 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18579 srv_xmlfiles to $srv_i386_xmlfiles.
18580 (i[34567]86-*-mingw32ce*): Likewise.
18581 (i[34567]86-*-mingw*): Likewise.
18582 (i[34567]86-*-nto*): Likewise.
18583 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18584 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18585 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18586 (x86_64-*-linux*): Likewise.
18588 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18589 (init_registers_amd64_linux): New.
18590 (x86_arch_setup): Replace init_registers_x86_64_linux with
18591 init_registers_amd64_linux.
18593 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18595 * configure.ac: Check for libdl. If it is not available link against
18596 static libthread_db.
18597 * configure: Regenerate.
18599 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18603 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18604 handing a read watchpoint.
18605 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18607 2010-02-12 Doug Evans <dje@google.com>
18609 * linux-low.c (linux_supports_tracefork_flag): Document.
18610 (linux_look_up_symbols): Add comment.
18612 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18614 * regcache.c (supply_register): Clear regcache if buf is NULL.
18616 2010-02-02 Nicolas Roche <roche@sourceware.org>
18617 Joel Brobecker <brobecker@adacore.com>
18619 * inferiors.c (find_inferior): Add function documentation.
18620 (unloaded_dll): Handle the case where the unloaded dll has not
18621 been previously registered in the dll list.
18623 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18625 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18626 (thumb2_breakpoint): New.
18627 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18629 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18631 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18632 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18635 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18637 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18639 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18641 * linux-s390-low.c (s390_collect_ptrace_register)
18642 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18644 2010-01-21 Doug Evans <dje@google.com>
18646 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18647 (PTRACE_ARG4_TYPE): New macro.
18648 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18649 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18650 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18651 (usr_store_inferior_registers): Ditto.
18652 (linux_read_memory, linux_write_memory): Ditto.
18653 (linux_test_for_tracefork): Ditto.
18655 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18656 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18658 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18660 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18663 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18665 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18666 prototype to take a regcache. Adjust.
18668 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18670 * regcache.h (struct thread_info): Forward declare.
18671 (struct regcache): New.
18672 (new_register_cache): Adjust prototype.
18673 (get_thread_regcache): Declare.
18674 (free_register_cache): Adjust prototype.
18675 (registers_to_string, registers_from_string): Ditto.
18676 (supply_register, supply_register_by_name, collect_register)
18677 (collect_register_as_string, collect_register_by_name): Ditto.
18678 * regcache.c (struct inferior_regcache_data): Delete.
18679 (get_regcache): Rename to ...
18680 (get_thread_regcache): ... this. Adjust. Switch inferior before
18681 fetching registers.
18682 (regcache_invalidate_one): Adjust.
18683 (regcache_invalidate): Fix prototype.
18684 (new_register_cache): Return the new register cache.
18685 (free_register_cache): Change prototype.
18686 (realloc_register_cache): Adjust.
18687 (registers_to_string): Change prototype to take a regcache. Adjust.
18688 (registers_from_string): Ditto.
18689 (register_data): Ditto.
18690 (supply_register): Ditto.
18691 (supply_register_by_name): Ditto.
18692 (collect_register): Ditto.
18693 (collect_register_as_string): Ditto.
18694 (collect_register_by_name): Ditto.
18695 * server.c (process_serial_event): Adjust.
18696 * linux-low.h (regset_fill_func, regset_store_func): Change
18698 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18700 * linux-low.c (get_stop_pc): Adjust.
18701 (check_removed_breakpoint): Adjust.
18702 (linux_wait_for_event): Adjust.
18703 (linux_resume_one_lwp): Adjust.
18704 (fetch_register): Add regcache parameter. Adjust.
18705 (usr_store_inferior_registers): Ditto.
18706 (regsets_fetch_inferior_registers): Ditto.
18707 (regsets_store_inferior_registers): Ditto.
18708 (linux_fetch_registers, linux_store_registers): Ditto.
18709 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18711 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18713 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18714 prototype to take a regcache.
18715 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18716 * remote-utils.c (convert_ascii_to_int, outreg)
18717 (prepare_resume_reply): Change prototype to take a regcache.
18719 * target.h (struct target_ops) <fetch_registers, store_registers>:
18720 Change prototype to take a regcache.
18721 (fetch_inferior_registers, store_inferior_registers): Change
18722 prototype to take a regcache. Adjust.
18723 * proc-service.c (ps_lgetregs): Adjust.
18724 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18725 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18726 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18727 take a regcache. Adjust.
18728 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18729 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18730 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18731 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18732 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18733 (cris_cannot_fetch_register):
18734 (cris_breakpoint_at): Change prototype to take a regcache.
18736 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18737 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18738 to take a regcache. Adjust.
18739 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18741 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18742 take a regcache. Adjust.
18743 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18744 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18745 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18746 * linux-mips-low.c (mips_get_pc):
18747 (mips_set_pc): Change prototype to take a regcache. Adjust.
18748 (mips_reinsert_addr): Adjust.
18749 (mips_collect_register): Change prototype to take a regcache.
18751 (mips_supply_register):
18752 (mips_collect_register_32bit, mips_supply_register_32bit)
18753 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18754 (mips_store_fpregset): Ditto.
18755 * linux-ppc-low.c (ppc_supply_ptrace_register)
18756 (ppc_supply_ptrace_register): Ditto.
18757 (parse_spufs_run): Adjust.
18758 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18759 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18760 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18761 take a regcache. Adjust.
18762 * linux-s390-low.c (s390_collect_ptrace_register)
18763 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18764 (s390_set_pc): Change prototype to take a regcache. Adjust.
18765 (s390_arch_setup): Adjust.
18766 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18767 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18768 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18769 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18770 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18772 (sparc_breakpoint_at): Adjust.
18773 * linux-xtensa-low.c (xtensa_fill_gregset):
18774 (xtensa_store_gregset):
18775 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18776 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18777 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18778 prototype to take a regcache. Adjust.
18779 * win32-arm-low.c (arm_fetch_inferior_register)
18780 (arm_store_inferior_register): Change prototype to take a
18782 * win32-i386-low.c (i386_fetch_inferior_register)
18783 (i386_store_inferior_register): Change prototype to take a
18785 * win32-low.c (child_fetch_inferior_registers)
18786 (child_store_inferior_registers): Change prototype to take a
18788 (win32_wait): Adjust.
18789 (win32_fetch_inferior_registers): Change prototype to take a
18791 (win32_store_inferior_registers): Adjust.
18792 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18793 store_inferior_register>: Change prototype to take a regcache.
18795 2010-01-20 Doug Evans <dje@google.com>
18797 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18799 (linux_wait_for_event1, linux_init_signals): Ditto.
18800 (W_STOPCODE): Provide definition if missing.
18802 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18804 * linux-low.c (linux_core_of_thread): New.
18805 (compare_ints, show_process, list_threads): New.
18806 (linux_qxfer_osdata): Report threads and cores.
18807 (linux_target_op): Register linux_core_of_thread.
18808 * remote-utils.c (prepare_resume_reply): Report the core.
18809 (buffer_xml_printf): Support %d specifier.
18810 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18812 (handle_query): Handle qXfer:threads. Announce availability
18814 * target.h (struct target_ops): New field core_of_thread.
18816 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18818 * Makefile.in (clean): Remove new generated files.
18819 (reg-s390.o, reg-s390.c): Remove rules.
18820 (reg-s390x.o, reg-s390x.c): Likewise.
18821 (s390-linux32.o, s390-linux32.c): Add rules.
18822 (s390-linux64.o, s390-linux64.c): Likewise.
18823 (s390x-linux64.o, s390x-linux64.c): Likewise.
18824 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18825 * linux-s390-low.c: Include <elf.h>.
18826 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18827 (init_registers_s390): Remove prototype.
18828 (init_registers_s390x): Likewise.
18829 (init_registers_s390_linux32): Add prototype.
18830 (init_registers_s390_linux64): Likewise.
18831 (init_registers_s390x_linux64): Likewise.
18832 (s390_num_regs_3264): New define.
18833 (s390_regmap_3264): New global variable.
18834 (s390_cannot_fetch_register): Remove obsolete check.
18835 (s390_cannot_store_register): Likewise.
18836 (s390_collect_ptrace_register): Handle upper/lower register halves.
18837 (s390_supply_ptrace_register): Likewise.
18838 (s390_fill_gregset): Update to register number changes.
18839 (s390_get_hwcap): New routine.
18840 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18841 Install appropriate regmap and register set.
18843 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18845 * server.c (gdbserver_version): Update copyright year to 2010.
18846 * gdbreplay.c (gdbreplay_version): Likewise.
18848 2009-12-28 Doug Evans <dje@google.com>
18850 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18851 elf/external.h. Include <elf.h> instead but only if necessary.
18853 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18855 * linux-low.c (linux_remove_process): Remove `detaching'
18856 parameter. Don't release/detach from thread_db here.
18857 (linux_kill): Release/detach from thread_db here, ...
18858 (linux_detach): ... and here, before actually detaching.
18859 (linux_wait_1): ... and here, when a process exits.
18860 * thread-db.c (any_thread_of): New.
18861 (thread_db_free): Switch the current inferior to a thread of the
18864 2009-12-21 Doug Evans <dje@google.com>
18866 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18868 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18869 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18870 warning ifndef __NR_tkill. Move setting of errno there too.
18871 Delete unnecessary resetting of errno after syscall.
18872 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18874 * configure.ac: Check for dladdr.
18875 * config.in: Regenerate.
18876 * configure: Regenerate.
18877 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18878 (try_thread_db_load): Update.
18880 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18882 2009-12-18 Doug Evans <dje@google.com>
18884 * event-loop.c: Include unistd.h if it exists.
18886 * linux-low.c (my_waitpid): Move definition away from being in
18887 between linux_tracefork_child/linux_test_for_tracefork.
18889 * gdb_proc_service.h (psaddr_t): Fix type.
18890 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18891 signature to match glibc.
18893 2009-12-16 Doug Evans <dje@google.com>
18895 * linux-low.c (linux_read_memory): Fix argument to read.
18897 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18899 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18900 events, don't leave current_inferior pointing at null.
18902 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18904 * win32-low.c (LOG): Delete.
18905 (OUTMSG): Output to stderr.
18906 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
18907 on compile time LOG macro.
18908 (win32_wait): Fix debug output.
18910 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18912 * win32-low.c (win32_add_one_solib): If the dll name is
18913 "ntdll.dll", prepend the system directory to the dll path.
18915 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
18917 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
18919 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
18920 Vladimir Prus <vladimir@codesourcery.com>
18922 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
18923 * configure.ac: Check for __mcoldfire__ and set
18924 gdb_cv_m68k_is_coldfire.
18925 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
18926 reg-cf.o and reg-m68k.o.
18927 * configure: Regenerated.
18929 2009-11-16 Pedro Alves <pedro@codesourcery.com>
18931 * linux-low.c (linux_remove_process): Add `detaching' parameter.
18932 Pass it to thread_db_free.
18933 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
18934 proper `detaching' argument to linux_remove_process.
18935 * linux-low.h (thread_db_free): Add `detaching' parameter.
18936 * thread-db.c (thread_db_init): Pass false as `detaching' argument
18938 (thread_db_free): Add `detaching' parameter. Only
18939 call td_ta_clear_event if detaching from process.
18941 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
18943 * thread-db.c (thread_db_free): Fix typo.
18945 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
18948 * thread-db.c (thread_db_free): Call td_ta_clear_event.
18950 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
18952 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
18953 with an i686 compiler.
18954 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
18956 * configure: Rebuilt.
18958 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
18962 * server.c (handle_search_memory_1): Correct read_addr initialization
18963 in loop for searching subsequent chunks.
18965 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
18967 * configure.ac: New --with-libthread-db option.
18968 * thread-db.c: Allow direct dependence on libthread_db.
18969 (thread_db_free): Adjust.
18970 * config.in: Regenerate.
18971 * configure: Likewise.
18973 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
18976 * thread-db.c (attach_thread): New function.
18977 (maybe_attach_thread): Return success/failure.
18978 (find_new_threads_callback): Adjust.
18979 (thread_db_find_new_threads): Loop until no new threads.
18981 2009-10-13 Pedro Alves <pedro@codesourcery.com>
18983 * proc-service.c (ps_lgetregs): Formatting.
18985 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
18987 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
18988 * configure.ac: Adjust.
18989 * linux-low.h (struct process_info_private): Move members to struct
18991 (thread_db_free, thread_db_handle_monitor_command): New prototype.
18992 * linux-low.c (linux_remove_process): Adjust.
18993 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
18994 * server.c (handle_query): Move code ...
18995 (handle_monitor_command): ... here. New function.
18996 * target.h (struct target_ops): New member.
18997 * thread-db.c (struct thread_db): New.
18998 (libthread_db_search_path): New variable.
18999 (thread_db_create_event, thread_db_enable_reporting)
19000 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19001 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19002 (try_thread_db_load_1, dladdr_to_soname): New functions.
19003 (try_thread_db_load, thread_db_load_search): New functions.
19004 (thread_db_init): Search for libthread_db.
19005 (thread_db_free): New function.
19006 (thread_db_handle_monitor_command): Likewise.
19007 * config.in: Regenerate.
19008 * configure: Regenerate.
19010 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19012 * spu-low.c (spu_kill): Wait for inferior to terminate.
19013 Call clear_inferiors.
19014 (spu_detach): Call clear_inferiors.
19016 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19018 * aclocal.m4: Regenerate.
19019 * config.in: Likewise.
19020 * configure: Likewise.
19022 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19024 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19025 (parse_spufs_run): New function.
19026 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19027 (ppc_breakpoint_at): Handle SPU breakpoints.
19029 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19031 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19032 (SPUFS_MAGIC): Define.
19033 (spu_enumerate_spu_ids): New function.
19034 (linux_qxfer_spu): New function.
19035 (linux_target_ops): Install linux_qxfer_spu.
19037 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19039 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19040 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19041 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19042 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19043 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19044 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19045 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19046 (init_registers_powerpc_cell32l): Add prototype.
19047 (init_registers_powerpc_cell64l): Likewise.
19048 (ppc_arch_setup): Detect Cell/B.E. architecture.
19050 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19052 * Makefile.in (datarootdir): New variable.
19054 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19056 * linux-low.c (linux_write_memory): Update debugging output.
19057 * Makefile.in (clean): Add new descriptions.
19058 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19059 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19060 * configure.srv: Add new files for arm*-*-linux*.
19061 * linux-arm-low.c: Add new declarations.
19062 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19063 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19064 (HWCAP_VFPv3D16): New.
19065 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19066 instead of __IWMMXT__.
19067 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19068 (arm_arch_setup): New.
19069 (target_regsets): Remove #ifdef. Add VFP regset.
19070 (the_low_target): Use arm_arch_setup.
19072 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19074 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19075 the main thread again.
19077 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19079 Adding Neutrino gdbserver.
19080 * configure: Regenerated.
19081 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19082 * configure.srv (i[34567]86-*-nto*): New target.
19083 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19084 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19085 (nto_comctrl) [__QNX__]: New function.
19086 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19088 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19090 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19093 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19094 Pedro Alves <pedro@codesourcery.com>
19096 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19097 don't support CONTEXT_EXTENDED_REGISTERS.
19098 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19099 (the_low_target): Install them.
19100 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19101 failing with ERROR_PIPE_NOT_CONNECTED.
19103 2009-06-30 Doug Evans <dje@google.com>
19104 Pierre Muller <muller@ics.u-strasbg.fr>
19106 Add h/w watchpoint support to x86-linux, win32-i386.
19107 * Makefile.in (SFILES): Add i386-low.c
19108 (i386_low_h): Define.
19109 (i386-low.o): Add dependencies.
19110 (linux-x86-low.o): Add i386-low.h dependency.
19111 (win32-i386-low.o): Ditto.
19112 * i386-low.c: New file.
19113 * i386-low.h: New file.
19114 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19115 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19116 * linux-low.c (linux_add_process): Initialize arch_private.
19117 (linux_remove_process): Free arch_private.
19118 (add_lwp): Initialize arch_private.
19119 (delete_lwp): Free arch_private.
19120 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19122 * linux-low.h (process_info_private): New member arch_private.
19123 (lwp_info): New member arch_private.
19124 (linux_target_ops): New members new_process, new_thread,
19126 (ptid_of): New macro.
19127 * linux-x86-low.c: Include stddef.h, i386-low.h.
19128 (arch_process_info): New struct.
19129 (arch_lwp_info): New struct.
19130 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19131 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19132 (i386_dr_low_get_status): New function.
19133 (x86_insert_point, x86_remove_point): New functions.
19134 (x86_stopped_by_watchpoint): New function.
19135 (x86_stopped_data_address): New function.
19136 (x86_linux_new_process, x86_linux_new_thread): New functions.
19137 (x86_linux_prepare_to_resume): New function.
19138 (the_low_target): Add entries for insert_point, remove_point,
19139 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19141 * server.c (debug_hw_points): New global.
19142 (monitor_show_help): Document set debug-hw-points.
19143 (handle_query): Process "set debug-hw-points".
19144 * server.h (debug_hw_points): Declare.
19145 (paddress): Declare.
19146 * utils.c (NUMCELLS, CELLSIZE): New macros.
19147 (get_sell, xsnprintf, paddress): New functions.
19148 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19149 remove_point, stopped_by_watchpoint, stopped_data_address.
19150 * win32-i386-low.c: Include i386-low.h.
19151 (debug_reg_state): Replaces dr.
19152 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19153 (i386_dr_low_get_status): New function.
19154 (i386_insert_point, i386_remove_point): New functions.
19155 (i386_stopped_by_watchpoint): New function.
19156 (i386_stopped_data_address): New function.
19157 (i386_initial_stuff): Update.
19158 (get_thread_context,set_thread_context,i386_thread_added): Update.
19159 (the_low_target): Add entries for insert_point,
19160 remove_point, stopped_by_watchpoint, stopped_data_address.
19161 * win32-low.c (win32_insert_watchpoint): New function.
19162 (win32_remove_watchpoint): New function.
19163 (win32_stopped_by_watchpoint): New function.
19164 (win32_stopped_data_address): New function.
19165 (win32_target_ops): Add entries for insert_watchpoint,
19166 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19167 * win32-low.h (win32_target_ops): New members insert_point,
19168 remove_point, stopped_by_watchpoint, stopped_data_address.
19170 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19172 * server.c (process_serial_event): Re-return unsupported, not
19173 error, if the type isn't recognized. Re-allow supporting only
19174 insert or remove packets. Also call require_running for
19175 breakpoints. Add missing break statement to default case. Tidy.
19176 * target.h (struct target_ops): Rename insert_watchpoint to
19177 insert_point, and remove_watchpoint to remove_point.
19179 * linux-low.h (struct linux_target_ops): Likewise.
19180 * linux-low.c (linux_insert_watchpoint): Rename to ...
19181 (linux_insert_point): ... this. Adjust.
19182 (linux_remove_watchpoint): Rename to ...
19183 (linux_remove_point): ... this. Adjust.
19184 (linux_target_ops): Adjust.
19185 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19186 (cris_insert_point): ... this.
19187 (cris_remove_watchpoint): Rename to ...
19188 (cris_remove_point): ... this.
19189 (the_low_target): Adjust.
19191 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19193 * server.c (handle_v_kill): Pass signal_pid to
19194 kill_inferior if multi_process is zero.
19196 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19198 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19199 * target.h (target_ops): Comment for *_watchpoint to make it clear
19200 the functions can get types '0' and '1'.
19202 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19204 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19205 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19206 * regcache.c (get_regcache): Likewise.
19207 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19208 * win32-low.c (child_fetch_inferior_registers): Remove check for
19211 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19212 Pedro Alves <pedro@codesourcery.com>
19214 * target.h (struct target_ops) <supports_multi_process>: New
19216 (target_supports_multi_process): New.
19217 * server.c (handle_query): Even if GDB reports support, only
19218 enable multi-process if the target also supports it. Report
19219 multi-process support only if the target backend supports it.
19220 * linux-low.c (linux_supports_multi_process): New function.
19221 (linux_target_ops): Install it as target_supports_multi_process
19224 2009-05-24 Doug Evans <dje@google.com>
19226 Global renaming of find_thread_pid to find_thread_ptid.
19227 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19228 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19229 All callers updated.
19231 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19232 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19235 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19236 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19237 (linux_resume_one_lwp): Ditto.
19239 2009-05-23 Doug Evans <dje@google.com>
19241 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19242 from struct inferior_list_entry * to struct lwp_info *.
19243 All callers updated.
19245 2009-05-13 Doug Evans <dje@google.com>
19247 * linux-x86-low.c: Don't include assert.h.
19248 (x86_siginfo_fixup): Use fatal, not assert.
19249 (x86_arch_setup): Fix comment.
19251 2009-05-12 Doug Evans <dje@google.com>
19253 Biarch support for i386/amd64 gdbserver.
19254 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19255 Add linux-x86-low.c.
19256 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19257 (linux-x86-low.o): Add.
19258 * linux-x86-64-low.c: Delete.
19259 * linux-i386-low.c: Delete.
19260 * linux-x86-low.c: New file.
19261 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19263 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19265 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19266 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19267 (linux_child_pid_to_exec_file): New function.
19268 (elf_64_header_p, elf_64_file_p): New functions.
19269 (siginfo_fixup): New function.
19270 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19271 give target a chance to convert layout.
19272 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19273 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19275 2009-05-07 Doug Evans <dje@google.com>
19277 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19278 (regsets_store_inferior_registers): Ditto.
19280 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19284 * linux-low.c (must_set_ptrace_flags): Delete.
19285 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19287 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19288 `lwp->must_set_ptrace_flags' instead.
19289 (linux_wait_for_event_1): Set ptrace options here.
19290 (linux_wait_1): ... not here.
19292 2009-04-30 Doug Evans <dje@google.com>
19294 * inferiors.c (started_inferior_callback): New function.
19295 (attached_inferior_callback): New function.
19296 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19297 * server.c (print_started_pid, print_attached_pid): New functions.
19298 (detach_or_kill_for_exit): New function.
19299 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19300 * server.h (have_started_inferiors_p): Declare.
19301 (have_attached_inferiors_p): Declare.
19303 * inferiors.c (remove_process): Fix memory leak, free process.
19304 * linux-low.c (linux_remove_process): New function.
19305 (linux_kill): Call it instead of remove_process.
19306 (linux_detach, linux_wait_1): Ditto.
19308 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19310 * configure.srv: Add x86 Windows CE target.
19312 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19314 * inferiors.c (get_thread_process): Make global.
19315 * server.h (get_thread_process): Add prototype.
19316 * thread-db.c (find_one_thread): Use get_thread_process
19317 instead of current_process.
19318 (thread_db_get_tls_address): Do not crash if called when
19319 thread layer is not yet initialized.
19321 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19323 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19324 * spu-low.c (current_tid): Rename to ...
19325 (current_ptid): ... this.
19326 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19327 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19328 ptid_get_lwp (current_ptid) instead of current_tid.
19329 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19330 instead of current_tid. Use find_process_pid to verify pid
19331 argument is valid. Pass proper argument to remove_process.
19332 (spu_thread_alive): Compare current_ptid instead of current_tid.
19333 (spu_resume): Likewise.
19335 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19337 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19340 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19342 Implement the multiprocess extensions, and add linux multiprocess
19345 * server.h (ULONGEST): Declare.
19346 (struct ptid, ptid_t): New.
19347 (minus_one_ptid, null_ptid): Declare.
19348 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19349 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19350 (struct inferior_list_entry): Change `id' type from unsigned from
19352 (struct sym_cache, struct breakpoint, struct
19353 process_info_private): Forward declare.
19354 (struct process_info): Declare.
19355 (current_process): Declare.
19356 (all_processes): Declare.
19357 (initialize_inferiors): Declare.
19358 (add_thread): Adjust to use ptid_t.
19359 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19360 (add_process, remove_process, find_thread_pid): Declare.
19361 (find_inferior_id): Adjust to use ptid_t.
19362 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19363 (multi_process): Declare.
19364 (push_event): Adjust to use ptid_t.
19365 (read_ptid, write_ptid): Declare.
19366 (prepare_resume_reply): Adjust to use ptid_t.
19367 (clear_symbol_cache): Declare.
19368 * inferiors.c (all_processes): New.
19369 (null_ptid, minus_one_ptid): New.
19370 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19371 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19372 (add_thread): Change unsigned long to ptid. Remove gdb_id
19374 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19375 (gdb_id_to_thread): Rename to ...
19376 (find_thread_pid): ... this. Change unsigned long to ptid.
19377 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19378 (loaded_dll, pull_pid_from_list): Adjust.
19379 (add_process, remove_process, find_process_pid)
19380 (get_thread_process, current_process, initialize_inferiors): New.
19381 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19382 (struct target_waitstatus) <related_pid>: Ditto.
19383 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19384 return type to int.
19385 (struct target_ops) <join>: Add `pid' argument.
19386 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19387 (struct target_ops) <wait>: Add `ptid' field. Change return type
19389 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19390 (mywait): Add `ptid' argument. Change return type to ptid_t.
19391 (target_pid_to_str): Declare.
19392 * target.c (set_desired_inferior): Adjust to use ptids.
19393 (mywait): Add new `ptid' argument. Adjust.
19394 (target_pid_to_str): New.
19395 * mem-break.h (free_all_breakpoints): Declare.
19396 * mem-break.c (breakpoints): Delelete.
19397 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19398 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19399 to use per-process breakpoint list.
19400 (free_all_breakpoints): New.
19401 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19402 (symbol_cache, all_symbols_looked_up): Delete.
19404 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19406 (prepare_resume_reply): Change ptid argument's type from unsigned
19407 long to ptid_t. Adjust. Implement W;process and X;process.
19408 (free_sym_cache, clear_symbol_cache): New.
19409 (look_up_one_symbol): Adjust to per-process symbol cache. *
19410 * server.c (cont_thread, general_thread, step_thread): Change type
19412 (attached): Delete.
19413 (multi_process): New.
19414 (last_ptid): Change type to ptid_t.
19415 (struct vstop_notif) <ptid>: Change type to ptid_t.
19416 (queue_stop_reply, push_event): Change `ptid' argument's type to
19418 (discard_queued_stop_replies): Add `pid' argument.
19419 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19420 changes. Don't reference the `attached' global.
19421 (attach_inferior): Adjust to mywait interface changes.
19422 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19423 features. Handle and report "multiprocess+". Handle
19425 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19427 (handle_v_kill): New.
19428 (handle_v_stopped): Adjust to use target_pid_to_str.
19429 (handle_v_requests): Allow multiple attaches and runs when
19430 multiprocess extensions are in effect. Handle "vKill".
19431 (myresume): Adjust to use ptids.
19432 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19433 (handle_status): Adjust to discard_queued_stop_replies interface
19435 (first_thread_of, kill_inferior_callback)
19436 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19437 (main): Call initialize_inferiors. Adjust to use ptids, killing
19438 and detaching from all inferiors. Handle multiprocess packet
19440 * linux-low.h: Include gdb_proc_service.h.
19441 (struct process_info_private): New.
19442 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19443 <lwpid_of>: Use ptid_get_lwp.
19444 (get_lwp_thread): Adjust.
19445 (struct lwp_info): Add `dead' member.
19446 (find_lwp_pid): Declare.
19447 * linux-low.c (thread_db_active): Delete.
19448 (new_inferior): Adjust comment.
19449 (inferior_pid): Delete.
19450 (linux_add_process): New.
19451 (handle_extended_wait): Adjust.
19452 (add_lwp): Change unsigned long to ptid.
19453 (linux_create_inferior): Add process to processes table. Adjust
19454 to use ptids. Don't set new_inferior here.
19455 (linux_attach_lwp): Rename to ...
19456 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19457 it. Adjust to use ptids.
19458 (linux_attach_lwp): New.
19459 (linux_attach): Add process to processes table. Don't set
19461 (struct counter): New.
19462 (second_thread_of_pid_p, last_thread_of_process_p): New.
19463 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19464 multiple processes.
19465 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19466 processes. Remove process from process table.
19467 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19468 to multiple processes.
19469 (any_thread_of): New.
19470 (linux_detach): Add `pid' argument, and handle it. Remove process
19471 from processes table.
19472 (linux_join): Add `pid' argument. Handle it.
19473 (linux_thread_alive): Change unsighed long argument to ptid_t.
19474 Consider dead lwps as not being alive.
19475 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19476 threads we're not interested in.
19477 (same_lwp, find_lwp_pid): New.
19478 (linux_wait_for_lwp): Change `pid' argument's type from int to
19480 (linux_wait_for_event): Rename to ...
19481 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19482 from int to ptid_t. Adjust.
19483 (linux_wait_for_event): New.
19484 (linux_wait_1): Add `ptid' argument. Change return type to
19485 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19486 that exit from the process table.
19487 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19489 (mark_lwp_dead): New.
19490 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19491 stopping all threads, mark its main lwp as dead.
19492 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19494 (fetch_register, usr_store_inferior_registers)
19495 (regsets_fetch_inferior_registers)
19496 (regsets_store_inferior_registers, linux_read_memory)
19497 (linux_write_memory): Inline `inferior_pid'.
19498 (linux_look_up_symbols): Adjust to use per-process
19499 `thread_db_active'.
19500 (linux_request_interrupt): Adjust to use ptids.
19501 (linux_read_auxv): Inline `inferior_pid'.
19502 (initialize_low): Don't reference thread_db_active.
19503 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19504 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19505 (ps_getpid): Return the pid of the current inferior.
19506 * thread-db.c (proc_handle, thread_agent): Delete.
19507 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19509 (find_one_thread): Change argument type to ptid_t. Adjust to
19511 (maybe_attach_thread): Adjust to per-process data and ptids.
19512 (thread_db_find_new_threads): Ditto.
19513 (thread_db_init): Ditto.
19514 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19515 processes table. Adjust to use ptids.
19516 (spu_kill, spu_detach): Adjust interface. Remove process from
19518 (spu_join, spu_thread_alive): Adjust interface.
19519 (spu_wait): Adjust interface. Remove process from processes
19520 table. Adjust to use ptids.
19521 * win32-low.c (current_inferior_tid): Delete.
19522 (current_inferior_ptid): New.
19523 (debug_event_ptid): New.
19524 (thread_rec): Take a ptid. Adjust.
19525 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19526 (child_delete_thread): Ditto.
19527 (do_initial_child_stuff): Add `attached' argument. Add process to
19529 (child_fetch_inferior_registers, child_store_inferior_registers):
19531 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19532 (win32_attach): Pass 1 to do_initial_child_stuff.
19533 (win32_kill): Adjust interface. Remove process from processes
19535 (win32_detach): Ditto.
19536 (win32_join): Adjust interface.
19537 (win32_thread_alive): Take a ptid.
19538 (win32_resume): Adjust to use ptids.
19539 (get_child_debug_event): Ditto.
19540 (win32_wait): Adjust interface. Remove exiting process from
19543 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19545 Non-stop mode support.
19547 * server.h (non_stop): Declare.
19548 (gdb_client_data, handler_func): Declare.
19549 (delete_file_handler, add_file_handler, start_event_loop):
19551 (handle_serial_event, handle_target_event, push_event)
19552 (putpkt_notif): Declare.
19553 * target.h (enum resume_kind): New.
19554 (struct thread_resume): Replace `step' field by `kind' field.
19555 (TARGET_WNOHANG): Define.
19556 (struct target_ops) <wait>: Add `options' argument.
19557 <supports_non_stop, async, start_non_stop>: New fields.
19558 (target_supports_non_stop, target_async): New.
19559 (start_non_stop): Declare.
19560 (mywait): Add `options' argument.
19561 * target.c (mywait): Add `options' argument. Print child exit
19562 notifications here.
19563 (start_non_stop): New.
19564 * server.c (non_stop, own_buf, mem_buf): New globals.
19565 (struct vstop_notif): New.
19566 (notif_queue): New global.
19567 (queue_stop_reply, push_event, discard_queued_stop_replies)
19568 (send_next_stop_reply): New.
19569 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19571 (attach_inferior): In non-stop mode, don't wait for the target
19573 (handle_general_set): Handle QNonStop.
19574 (handle_query): When handling qC, return the current general
19575 thread, instead of the first thread of the list.
19576 (handle_query): If the backend supports non-stop mode, include
19577 QNonStop+ in the qSupported query response.
19578 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19580 (handle_v_attach, handle_v_run): Handle non-stop mode.
19581 (handle_v_stopped): New.
19582 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19583 (myresume): Adjust to use resume_kind. Handle non-stop.
19584 (queue_stop_reply_callback): New.
19585 (handle_status): Handle non-stop mode.
19586 (main): Clear non_stop flag on reconnection. Use the event-loop.
19587 Refactor serial protocol handling from here ...
19588 (process_serial_event): ... to this new function. When GDB
19589 selects any thread, select one here. In non-stop mode, wait until
19590 GDB acks all pending events before exiting.
19591 (handle_serial_event, handle_target_event): New.
19592 * remote-utils.c (remote_open): Install remote_desc in the event
19594 (remote_close): Remove remote_desc from the event loop.
19595 (putpkt_binary): Rename to...
19596 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19597 (putpkt_binary): New as wrapper around putpkt_binary_1.
19598 (putpkt_notif): New.
19599 (prepare_resume_reply): In non-stop mode, don't change the
19601 * event-loop.c: New.
19602 * Makefile.in (OBJ): Add event-loop.o.
19603 (event-loop.o): New rule.
19605 * linux-low.h (pid_of): Moved here.
19607 (get_lwp_thread): Use lwpid_of.
19608 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19609 * linux-low.c (pid_of): Delete.
19610 (inferior_pid): Use lwpid_of.
19611 (linux_event_pipe): New.
19612 (target_is_async_p): New.
19614 (handle_extended_wait): Use lwpid_of.
19615 (add_lwp): Don't set lwpid field.
19616 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19617 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19618 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19619 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19620 first. Adjust to linux_wait_for_event interface changes. Use
19622 (linux_detach): Don't delete the main lwp here.
19623 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19624 (status_pending_p): Don't consider explicitly suspended lwps.
19625 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19626 pointer. Add OPTIONS argument. Change return type to int. Use
19627 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19628 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19629 pointer. Add status pointer argument. Return a pid instead of a
19630 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19631 changes. In non-stop mode, don't switch to a random thread.
19632 (linux_wait): Rename to...
19633 (linux_wait_1): ... this. Add target_options argument, and handle
19634 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19635 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19636 clean exit and signal exit code. Don't stop all threads in
19637 non-stop mode. In all-stop mode, only stop all threads when
19638 reporting a stop to GDB. Handle explicit thread stop requests.
19639 (async_file_flush, async_file_mark): New.
19641 (send_sigstop): Use lwpid_of.
19642 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19643 interface changes. In non-stop mode, don't switch to a random
19645 (linux_resume_one_lwp): Use lwpid_of.
19646 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19647 (linux_resume_one_thread): ... this. Handle resume_stop. In
19648 non-stop mode, don't look for pending flag in all threads.
19649 (resume_status_pending_p): Don't consider explicitly suspended
19651 (my_waitpid): Reimplement. Emulate __WALL.
19652 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19654 (sigchld_handler, linux_supports_non_stop, linux_async)
19655 (linux_start_non_stop): New.
19656 (linux_target_ops): Register linux_supports_non_stop, linux_async
19657 and linux_start_non_stop.
19658 (initialize_low): Install SIGCHLD handler.
19659 * thread-db.c (thread_db_create_event, find_one_thread)
19660 (thread_db_get_tls_address): Use lwpid_of.
19661 * win32-low.c (win32_detach): Adjust to use resume_kind.
19662 (win32_wait): Add `options' argument.
19663 * spu-low.c (spu_resume): Adjust to use resume_kind.
19664 (spu_wait): Add `options' argument.
19666 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19668 Decouple target code from remote protocol.
19670 * target.h (enum target_waitkind): New.
19671 (struct target_waitstatus): New.
19672 (struct target_ops) <wait>: Return an unsigned long. Take a
19673 target_waitstatus pointer instead of a char pointer.
19674 (mywait): Likewise.
19675 * target.c (mywait): Change prototype to return an unsigned long.
19676 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19677 * server.h (thread_from_wait, old_thread_from_wait): Delete
19679 (prepare_resume_reply): Change prototype to take a
19681 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19682 (last_status, last_ptid): New.
19683 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19684 pid instead of a signal.
19685 (attach_inferior): Remove "status" and "signal" parameters.
19687 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19689 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19690 (handle_v_requests, myresume): Remove "status" and "signal"
19691 parameters. Adjust.
19692 (handle_status): New.
19693 (main): Delete local `status'. Adjust.
19694 * remote-utils.c: Include target.h.
19695 (prepare_resume_reply): Change prototype to take a
19696 target_waitstatus. Adjust.
19698 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19700 * spu-low.c (spu_wait): Adjust.
19701 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19703 (win32_wait): Adjust.
19705 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19707 * target.h (struct thread_resume): Delete leave_stopped member.
19708 (struct target_ops): Add a `n' argument to the `resume' callback.
19709 * server.c (start_inferior): Adjust.
19710 (handle_v_cont, myresume): Adjust.
19711 * linux-low.c (check_removed_breakpoint): Adjust to resume
19712 interface change, and to removed leave_stopped field.
19713 (resume_ptr): Delete.
19714 (struct thread_resume_array): New.
19715 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19716 resume interface change.
19717 (linux_continue_one_thread, linux_queue_one_thread)
19718 (resume_status_pending_p): Check if the resume field is NULL
19719 instead of checking the leave_stopped member.
19720 (linux_resume): Adjust to the target resume interface change.
19721 * spu-low.c (spu_resume): Adjust to the target resume interface
19723 * win32-low.c (win32_detach, win32_resume): Ditto.
19725 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19727 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19729 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19731 (linux_continue_one_thread): Only preserve the stepping flag if
19732 there's a pending breakpoint.
19734 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19736 * server.c (main): After the inferior having exited, call
19737 remote_close before exiting gdbserver.
19739 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19741 Fix size of FPSCR in Power 7 processors.
19742 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19743 (PPC_FEATURE_HAS_DFP): New #define.
19744 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19747 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19749 * server.c (handle_query) Whitespace and formatting.
19751 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19753 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19754 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19755 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19756 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19757 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19758 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19759 Makefile.in, configure.ac: Fix whitespace throughout.
19760 * configure: Regenerate.
19762 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19764 * inferiors.c (find_inferior): Make it safe for the callback
19765 function to delete the currently iterated inferior.
19767 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19769 * Makefile.in (linuw_low_h): Move higher.
19770 (thread-db.o): Depend on $(linux_low_h).
19772 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19774 Rename "process" to "lwp" throughout.
19776 * linux-low.c (all_processes): Rename to...
19777 (all_lwps): ... this.
19778 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19779 (add_process): Rename to ...
19780 (add_lwp): ... this. Adjust.
19781 (linux_create_inferior): Adjust.
19782 (linux_attach_lwp): Adjust.
19783 (linux_attach): Adjust.
19784 (linux_kill_one_process): Rename to ...
19785 (linux_kill_one_lwp): ... this. Adjust.
19786 (linux_kill): Adjust.
19787 (linux_detach_one_process): Rename to ...
19788 (linux_detach_one_lwp): ... this. Adjust.
19789 (linux_detach): Adjust.
19790 (check_removed_breakpoint): Adjust.
19791 (status_pending_p): Adjust.
19792 (linux_wait_for_process): Rename to ...
19793 (linux_wait_for_lwp): ... this. Adjust.
19794 (linux_wait_for_event): Adjust.
19795 (send_sigstop): Adjust.
19796 (wait_for_sigstop): Adjust.
19797 (stop_all_processes): Rename to ...
19798 (stop_all_lwps): ... this.
19799 (linux_resume_one_process): Rename to ...
19800 (linux_resume_one_lwp): ... this. Adjust.
19801 (linux_set_resume_request, linux_continue_one_thread)
19802 (linux_queue_one_thread, resume_status_pending_p)
19803 (usr_store_inferior_registers, regsets_store_inferior_registers)
19804 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19806 * linux-low.h (get_process): Rename to ...
19807 (get_lwp): ... this. Adjust.
19808 (get_thread_process): Rename to ...
19809 (get_thread_lwp): ... this. Adjust.
19810 (get_process_thread): Rename to ...
19811 (get_lwp_thread): ... this. Adjust.
19812 (struct process_info): Rename to ...
19813 (struct lwp_info): ... this.
19814 (all_processes): Rename to ...
19815 (all_lwps): ... this.
19816 * proc-service.c (ps_lgetregs): Adjust.
19817 * thread-db.c (thread_db_create_event, find_one_thread)
19818 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19820 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19822 * server.c (handle_query): Handle "qAttached".
19824 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19826 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19827 GPLv3, update license URL.
19829 2009-03-01 Doug Evans <dje@google.com>
19831 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19832 (server_h): Add gdb_signals.h.
19833 (signals.o): Update.
19834 * server.h (target_signal_from_host,target_signal_to_host_p)
19835 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19837 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19839 * remote-utils.c (getpkt): Also generate remote-debug
19840 information if noack_mode is set.
19842 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19844 * server.c (handle_query): Report qXfer:siginfo:read and
19845 qXfer:siginfo:write as supported and handle them.
19846 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19847 * linux-low.c (linux_xfer_siginfo): New.
19848 (linux_target_ops): Set it.
19850 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19852 * server.c (gdbserver_usage): Mention --remote-debug.
19853 (main): Accept '--remote-debug' switch.
19855 2009-01-18 Doug Evans <dje@google.com>
19857 * regcache.c (new_register_cache): No need to check result of xcalloc.
19858 * server.c (handle_search_memory): Back out calls to xmalloc,
19859 result is checked and error is returned to user upon failure.
19860 (handle_query): Ditto. Add more checks for result of malloc.
19861 (handle_v_cont): Check result of malloc, report error back to
19863 (handle_v_run): Ditto. Call freeargv.
19864 * server.h (freeargv): Declare.
19865 * utils.c (freeargv): New fn.
19867 2009-01-15 Doug Evans <dje@google.com>
19869 * gdbreplay.c (perror_with_name): Make arg const char *.
19870 * server.h (target_signal_to_name): Make return type const char *.
19871 * thread-db.c (thread_db_err_str): Make return type const char *.
19872 * utils.c (perror_with_name): Make arg const char *.
19874 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19876 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19877 when handling a EXIT_PROCESS_DEBUG_EVENT.
19879 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19881 * gdbreplay.c (gdbreplay_version): Update copyright year.
19882 * server.c (gdbserver_version): Likewise.
19884 2009-01-05 Doug Evans <dje@google.com>
19886 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19887 (handle_extended_wait): Improve comment.
19889 2008-12-13 Doug Evans <dje@google.com>
19891 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19892 * server.h (ATTR_MALLOC): New macro.
19893 (xmalloc,xcalloc,xstrdup): Declare.
19894 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19895 * inferiors.c: Ditto.
19896 * linux-low.c: Ditto.
19897 * mem-break.c: Ditto.
19898 * regcache.c: Ditto.
19899 * remote-utils.c: Ditto.
19902 * win32-low.c: Ditto.
19904 2008-12-12 Doug Evans <dje@google.com>
19906 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
19907 in debugging printf.
19909 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
19911 2008-12-09 Doug Evans <dje@google.com>
19913 * linux-low.h (struct process_info): Delete member tid, unused.
19914 * thread-db.c (find_one_thread): Update.
19915 (maybe_attach_thread): Update.
19917 2008-12-02 Pedro Alves <pedro@codesourcery.com>
19919 * target.h (struct target_ops): Add qxfer_osdata member.
19920 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
19922 (linux_qxfer_osdata): New functions.
19923 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
19925 * server.c (handle_query): Handle "qXfer:osdata:read:".
19926 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
19927 (buffer_xml_printf): New functions.
19928 * server.h (struct buffer): New.
19929 (buffer_grow_str, buffer_grow_str0): New macros.
19930 (buffer_grow, buffer_free, buffer_init, buffer_finish)
19931 (buffer_xml_printf): Declare.
19933 2008-11-24 Doug Evans <dje@google.com>
19935 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
19937 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
19939 * server.c (handle_v_run): Always use the supplied argument list.
19941 2008-11-19 Bob Wilson <bob.wilson@acm.org>
19943 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
19944 (xtensa_regmap_table): Add entry for scompare1.
19946 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
19948 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
19949 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
19950 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
19951 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
19952 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
19953 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
19954 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
19955 XML target descriptions.
19956 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
19957 when inferior is running on an ISA 2.05 or later processor. Add
19958 special case to return offset for full 64-bit slot of FPSCR when
19961 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
19963 * Makefile.in (SFILES, clean): Added sparc64 files.
19964 (reg-sparc64.o, reg-sparc64.c): New.
19965 * configure.srv (sparc*-*-linux*): New configuration.
19966 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
19967 syscall arguments for SPARC.
19968 (regsets_store_inferior_registers): Likewise.
19969 * linux-sparc-low.c: New file.
19971 2008-10-21 Doug Evans <dje@google.com>
19973 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
19974 (READLINE_DIR,READLINE_DEP): Delete.
19975 (INTERNAL_CFLAGS): Update.
19976 (LINTFLAGS): Update.
19978 2008-10-10 Pedro Alves <pedro@codesourcery.com>
19980 * server.c (handle_v_run): If GDB didn't specify an argv, use the
19981 whole argv from the last run, not just argv[0].
19983 2008-09-08 Pedro Alves <pedro@codesourcery.com>
19985 * regcache.c (new_register_cache): Return NULL if the register
19986 cache size isn't known yet.
19987 (free_register_cache): Avoid dereferencing a NULL regcache.
19989 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
19991 * configure.srv: Merge MIPS and MIPS64.
19993 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
19995 * Makefile.in (uninstall): Apply $(EXEEXT) too.
19997 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
19999 * Makefile.in: Add required vsx dependencies.
20001 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20002 Declare init_registers_powerpc_vsx32l.
20003 Declare init_registers_powerpc_vsx64l.
20004 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20005 (ppc_arch_setup): Check for VSX in hwcap.
20006 (ppc_fill_vsxregset): New function.
20007 (ppc_store_vsxregset): New function.
20008 Add new VSX entry in regset_info target_regsets.
20010 * configure.srv: Add new VSX dependencies.
20012 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20014 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20015 (remote_open): Set or clear transport_is_reliable.
20016 (putpkt_binary): Don't expect acks in noack mode.
20017 (getpkt): Don't send ack/nac in noack mode.
20018 * server.c (handle_general_set): Handle QStartNoAckMode.
20019 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20021 (main): Reset noack_mode on every connection.
20022 * server.h (noack_mode): Declare.
20024 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20026 * Makefile.in (GDBREPLAY_OBS): New variable.
20027 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20029 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20030 Daniel Jacobowitz <dan@codesourcery.com>
20032 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20033 (usr_store_inferior_registers): Likewise.
20034 (regsets_store_inferior_registers): Likewise.
20036 2008-07-31 Rolf Jansen <rj@surtec.com>
20037 Pedro Alves <pedro@codesourcery.com>
20039 * configure.ac: Check for memmem declaration.
20040 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20041 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20042 (disable_packet_qfThreadInfo): Unconditionally compile.
20043 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20044 * configure, config.in: Regenerate.
20046 2008-07-28 Doug Kwan <dougkwan@google.com>
20048 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20049 (linux_write_memory): Remove declaration of errno.
20051 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20053 * linux-low.c (handle_extended_wait): Do not use "status"
20054 variable uninitialized.
20056 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20058 * server.c (handle_v_attach): Inhibit reporting dll changes.
20060 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20062 * remote-utils.c (prepare_resume_reply): If requested, don't
20063 output "thread:TID" in the T stop reply.
20065 * server.c (disable_packet_vCont, disable_packet_Tthread)
20066 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20067 (handle_query): If requested, disable support for qC, qfThreadInfo
20069 (handle_v_requests): If requested, disable support for vCont.
20070 (gdbserver_show_disableable): New.
20071 (main): Handle --disable-packet and --disable-packet=LIST.
20073 * server.h (disable_packet_vCont, disable_packet_Tthread)
20074 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20076 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20078 * server.c (gdbserver_usage): Mention --version.
20080 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20082 * Makefile.in (gdbreplay.o): New rule.
20084 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20086 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20087 message, not gdbserver.
20089 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20090 Nathan Sidwell <nathan@codesourcery.com>
20091 Joseph Myers <joseph@codesourcery.com>
20093 * acinclude.m4: Include ../../config/acx.m4.
20094 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20095 * configure, config.in: Regenerate.
20096 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20097 * server.c (gdbserver_version): Print PKGVERSION.
20098 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20099 (main): Adjust gdbserver_usage calls.
20100 * gdbreplay.c (version, host_name): Add declarations.
20101 (gdbreplay_version, gdbreplay_usage): New.
20102 (main): Accept --version and --help options.
20104 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20106 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20107 (arm_breakpoint_at): Handle Thumb.
20108 (the_low_target): Add comment.
20110 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20112 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20114 2008-05-09 Doug Evans <dje@google.com>
20116 * server.h (decode_search_memory_packet): Declare.
20117 * remote-utils.c (decode_search_memory_packet): New fn.
20118 * server.c (handle_search_memory_1): New fn.
20119 (handle_search_memory): New fn.
20120 (handle_query): Process qSearch:memory packets.
20122 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20124 * regcache.c (registers_length): Remove.
20125 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20126 full register packet.
20127 * regcache.h (registers_length): Remove prototype.
20128 * server.h (PBUFSIZ): Define to 16384.
20130 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20132 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20133 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20134 powerpc-64l.o, and powerpc-altivec64l.o.
20135 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20136 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20137 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20138 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20139 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20142 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20143 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20144 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20145 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20146 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20147 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20148 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20149 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20150 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20151 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20154 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20155 (init_registers_powerpc_32l): ... this new prototype.
20156 (init_registers_powerpc_32): Remove, replace by ...
20157 (init_registers_powerpc_altivec32l): ... this new prototype.
20158 (init_registers_powerpc_e500): Remove, replace by ...
20159 (init_registers_powerpc_e500l): ... this new prototype.
20160 (init_registers_ppc64): Remove, replace by ...
20161 (init_registers_powerpc_64l): ... this new prototype.
20162 (init_registers_powerpc_64): Remove, replace by ...
20163 (init_registers_powerpc_altivec64l): ... this new prototype.
20164 (ppc_num_regs): Set to 73.
20165 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20166 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20167 (ppc_cannot_store_register): Handle orig_r3 and trap.
20168 (ppc_arch_setup): Update init_registers_... calls.
20169 (ppc_fill_gregset): Handle orig_r3 and trap.
20171 * inferiors.c (clear_inferiors): Reset current_inferior.
20173 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20175 * acinclude.m4: Add override.m4.
20176 * configure: Regenerate.
20178 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20180 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20181 initial call to init_register_ppc64.
20183 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20185 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20186 single powerpc*-*-linux* case.
20187 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20189 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20191 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20192 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20194 * linux-ppc-low.c: Include <elf.h>.
20195 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20196 (ppc_hwcap): New global variable.
20197 (ppc_regmap): Remove __SPE__ #ifdef sections.
20198 (ppc_regmap_e500): New global variable.
20199 (ppc_cannot_store_register): Update __SPE__ special case.
20200 (ppc_get_hwcap): New function.
20201 (ppc_arch_setup): Use it to determine whether inferior supports
20202 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20203 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20204 Do not access registers if target does not support AltiVec.
20205 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20206 Do not access registers if target does not support SPE.
20207 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20209 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20211 * linux-low.c (disabled_regsets, num_regsets): New.
20212 (use_regsets_p): Delete.
20213 (linux_wait_for_process): Clear disabled_regsets.
20214 (regsets_fetch_inferior_registers): Check and set it.
20215 (regsets_store_inferior_registers): Likewise.
20216 (linux_fetch_registers, linux_store_registers): Do not use
20218 (initialize_low): Allocate disabled_regsets.
20220 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20222 * Makefile.in (LIBOBJS): New.
20223 (OBS): Use LIBOBJS.
20224 (memmem.o): New rule.
20225 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20226 * configure: Regenerated.
20228 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20230 * server.c (handle_query): Never return "unsupported" for
20231 qXfer:features:read queries.
20233 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20235 * server.c (get_features_xml): Fix inverted condition.
20236 (handle_query): Always support qXfer:feature:read.
20238 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20240 * server.c (wrapper_argv): New.
20241 (start_inferior): Handle wrapper_argv. If set, expect an extra
20243 (gdbserver_usage): Document --wrapper.
20244 (main): Parse --wrapper.
20246 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20248 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20249 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20250 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20251 (ppc_set_pc): Likewise.
20252 (ppc_arch_setup): New function.
20253 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20254 of collect_register.
20255 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20257 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20259 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20260 instead of linux-ppc64-low.o.
20261 * linux-ppc64-low.c: Remove file.
20262 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20263 (linux-ppc64-low.o): Remove rule.
20265 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20266 (init_registers_powerpc_64): Likewise.
20267 (ppc_regmap): Conditionally define depending on __powerpc64__.
20268 (ppc_cannot_store_register): Do not special-case "fpscr" when
20269 compiled on __powerpc64__.
20270 (ppc_collect_ptrace_register): New function.
20271 (ppc_supply_ptrace_register): New function.
20272 (ppc_breakpoint): Change type to "unsigned int".
20273 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20274 (the_low_target): Conditionally provide initializers for the
20275 arch_setup member depending on __powerpc64__. Install
20276 collect_ptrace_register and supply_ptrace_register members.
20278 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20280 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20281 * server.c (gdbserver_xmltarget): Define.
20282 (get_features_xml): Use it to replace "target.xml" and arch_string.
20284 * configure.srv: Remove srv_xmltarget. Add XML files that were
20285 mentioned there to srv_xmlfiles instead. Remove conditional tests
20286 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20287 srv_xmlfiles and srv_regobj to include all possible choices.
20288 * configure.ac (srv_xmltarget): Remove.
20289 (srv_xmlfiles): Do not add "target.xml".
20290 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20291 checks for supplementary target information.
20292 * configure: Regenerate.
20293 * Makefile.in (XML_TARGET): Remove.
20294 (target.xml): Remove rule.
20295 (clean): Do not clean up target.xml.
20296 (.PRECIOUS): Do not mention target.xml.
20298 * target.h (struct target_ops): Remove arch_string member.
20299 * linux-low.c (linux_arch_string): Remove.
20300 (linux_target_ops): Remove arch_string initializer.
20301 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20302 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20303 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20304 * spu-low.c (spu_arch_string): Remove.
20305 (spu_target_ops): Remove arch_string initializer.
20306 * win32-low.c (win32_arch_string): Remove.
20307 (win32_target_ops): Remove arch_string initializer.
20308 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20309 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20310 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20312 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20314 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20315 by collect_ptrace_register and supply_ptrace_register hooks.
20316 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20317 instead of checking for the_low_target.left_pad_xfer.
20318 (usr_store_inferior_registers): Use collect_ptrace_register callback
20319 instead of checking for the_low_target.left_pad_xfer.
20321 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20322 (s390_supply_ptrace_register): Likewise.
20323 (s390_fill_gregset): Call s390_collect_ptrace_register.
20324 (the_low_target): Update.
20326 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20327 (ppc_supply_ptrace_register): Likewise.
20328 (the_low_target): Update.
20330 * linux-i386-low.c (the_low_target): Update.
20331 * linux-x86-64-low.c (the_low_target): Update.
20333 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20335 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20336 reg-s390.o and reg-s390x.o.
20338 * linux-low.c (new_inferior): New global variable.
20339 (linux_create_inferior, linux_attach): Set it.
20340 (linux_wait_for_process): Call the_low_target.arch_setup after the
20341 target has stopped for the first time.
20342 (initialize_low): Do not call the_low_target.arch_setup.
20344 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20345 (s390_set_pc): Likewise.
20346 (s390_arch_setup): New function.
20347 (the_low_target): Use s390_arch_setup as arch_setup routine.
20349 * regcache.c (realloc_register_cache): New function.
20350 (set_register_cache): Call it for each existing regcache.
20352 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20354 * server.h (init_registers): Remove prototype.
20356 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20357 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20358 instead of init_registers ().
20359 * linux-arm-low.c (init_registers_arm): Add prototype.
20360 (init_registers_arm_with_iwmmxt): Likewise.
20361 (the_low_target): Add initializer for arch_setup field.
20362 * linux-cris-low.c (init_registers_cris): Add prototype.
20363 (the_low_target): Add initializer for arch_setup field.
20364 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20365 (the_low_target): Add initializer for arch_setup field.
20366 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20367 (the_low_target): Add initializer for arch_setup field.
20368 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20369 (the_low_target): Add initializer for arch_setup field.
20370 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20371 (the_low_target): Add initializer for arch_setup field.
20372 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20373 (the_low_target): Add initializer for arch_setup field.
20374 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20375 (init_registers_mips64_linux): Likewise.
20376 (the_low_target): Add initializer for arch_setup field.
20377 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20378 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20379 (the_low_target): Add initializer for arch_setup field.
20380 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20381 (init_registers_powerpc_64): Likewise.
20382 (the_low_target): Add initializer for arch_setup field.
20383 * linux-s390-low.c (init_registers_s390): Add prototype.
20384 (init_registers_s390x): Likewise.
20385 (the_low_target): Add initializer for arch_setup field.
20386 * linux-sh-low.c (init_registers_sh): Add prototype.
20387 (the_low_target): Add initializer for arch_setup field.
20388 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20389 (the_low_target): Add initializer for arch_setup field.
20390 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20391 (the_low_target): Add initializer for arch_setup field.
20393 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20394 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20395 instead of init_registers ().
20396 * win32-arm-low.c (init_registers_arm): Add prototype.
20397 (the_low_target): Add initializer for arch_setup field.
20398 * win32-i386-low.c (init_registers_i386): Add prototype.
20399 (the_low_target): Add initializer for arch_setup field.
20401 * spu-low.c (init_registers_spu): Add prototype.
20402 (initialize_low): Call initialie_registers_spu () instead of
20403 initialize_registers ().
20405 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20407 * server.c (handle_v_requests): When handling the vRun and vAttach
20408 packets, if already debugging a process, don't kill it. Return an
20411 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20413 * server.c (handle_query): Correct length check.
20415 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20417 * win32-low.c (do_initial_child_stuff): Add process handle
20418 parameter. Set current_process_handle and current_process_id from the
20419 parameters. Clear globals.
20420 (win32_create_inferior): Don't set current_process_handle and
20421 current_process_id here. Instead pass them on the call to
20422 do_initial_child_stuff.
20423 (win32_attach): Likewise.
20424 (win32_clear_inferiors): New.
20425 (win32_kill): Don't close the current process handle or the
20426 current thread handle here. Instead call win32_clear_inferiors.
20427 (win32_detach): Don't open a new handle to the process. Call
20428 win32_clear_inferiors.
20429 (win32_join): Don't rely on current_process_handle; open a new
20430 handle using the process id.
20431 (win32_wait): Call win32_clear_inferiors when the inferior process
20434 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20436 * server.c (monitor_show_help): Add "exit".
20438 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20440 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20441 (clean): Add reg-xtensa.c.
20442 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20443 * configure.srv (xtensa*-*-linux*) New target.
20444 * linux-xtensa-low.c: New.
20445 * xtensa-xtregs.c: New.
20447 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20449 * hostio.c: Don't include errno.h.
20450 (errno_to_fileio_errno): Move to hostio-errno.
20451 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20452 error number outputting to the target->hostio_last_error callback.
20453 (hostio_packet_error): Use FILEIO_EINVAL directly.
20454 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20455 calls to hostio_error.
20456 * hostio-errno.c: New.
20457 * server.h (hostio_last_error_from_errno): Declare.
20458 * target.h (target_ops): Add hostio_last_error member.
20459 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20460 as hostio_last_error handler.
20461 * spu-low.c (spu_target_ops): Likewise.
20462 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20463 (wince_hostio_last_error): New functions.
20464 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20465 as hostio_last_error handler.
20466 (win32_target_ops) [!_WIN32_WCE]: Register
20467 hostio_last_error_from_errno as hostio_last_error handler.
20468 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20469 (hostio-errno.o): New rule.
20470 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20471 * configure.srv (srv_hostio_err_objs): New variable. Default to
20473 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20474 * configure: Regenerate.
20476 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20478 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20479 (linux_kill, linux_detach): Clean up the process list.
20480 * remote-utils.c (remote_open): Improve port number parsing.
20481 (putpkt_binary, input_interrupt): Only send interrupts if the target
20483 * server.c (extended_protocol): Make static.
20484 (attached): Define earlier.
20485 (exit_requested, response_needed, program_argv): New variables.
20486 (target_running): New.
20487 (start_inferior): Clear attached here.
20488 (attach_inferior): Set attached here.
20489 (require_running): Define.
20490 (handle_query): Use require_running and target_running. Implement
20492 (handle_v_attach, handle_v_run): New.
20493 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20494 (gdbserver_usage): Update.
20495 (main): Redo argument parsing. Handle --debug and --multi. Handle
20496 --attach along with other options or after the port. Save
20497 program_argv. Support no initial program. Resynchronize
20498 communication with GDB after an error. Handle "monitor exit".
20499 Use require_running and target_running. Always allow the extended
20500 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20501 restart in extended mode.
20502 * README: Refer to the GDB manual. Update --attach usage.
20504 2007-12-20 Andreas Schwab <schwab@suse.de>
20506 * linux-low.c (STACK_SIZE): Define.
20507 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20508 (linux_test_for_tracefork): Likewise.
20510 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20512 * linux-low.c (linux_wait_for_event): Update messages. Do not
20513 reinsert auto-delete breakpoints.
20514 * mem-break.c (struct breakpoint): Change return type of handler to
20516 (set_breakpoint_at): Update handler type.
20517 (reinsert_breakpoint_handler): Return 1 instead of calling
20519 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20521 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20522 * mem-break.h (set_breakpoint_at): Update handler type.
20523 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20524 * win32-low.c (auto_delete_breakpoint): New.
20525 (get_child_debug_event): Use it.
20527 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20529 * configure.ac: Check for pread and pwrite.
20530 * hostio.c (handle_pread): Fall back to lseek and read.
20531 (handle_pwrite): Fall back to lseek and write.
20532 * config.in, configure: Regenerated.
20534 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20536 * server.c (myresume): Add own_buf argument.
20537 (main): Update calls.
20539 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20541 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20542 * remote-utils.c (remote_open): Do not call disable_async_io.
20543 (block_async_io): Delete.
20544 (unblock_async_io): Make static.
20545 (initialize_async_io): New.
20546 * server.c (handle_v_cont): Handle async I/O here.
20547 (myresume): Likewise. Move other common resume tasks here...
20548 (main): ... from here. Call initialize_async_io. Disable async
20549 I/O before the main loop.
20550 * server.h (initialize_async_io): Declare.
20551 (block_async_io, unblock_async_io): Delete prototypes.
20552 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20554 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20556 * remote-utils.c (readchar): Allow binary data in received messages.
20558 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20560 * win32-low.c (attaching): New global.
20561 (win32_create_inferior): Clear the `attaching' global.
20562 (win32_attach): Set the `attaching' global.
20563 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20564 attaching. Only set a breakpoint at the entry point if not
20567 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20569 * server.c (main): Don't report dll events on the initial
20570 connection on attaches.
20572 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20574 * server.c (main): Relax numerical bases supported for the pid of
20575 the --attach command line argument.
20577 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20579 * win32-low.c (win32_attach): Call OpenProcess before
20580 DebugActiveProcess, not after. Add last error output to error
20583 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20585 * win32-low.c (win32_get_thread_context)
20586 (win32_set_thread_context): New functions.
20587 (thread_rec): Use win32_get_thread_context.
20588 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20589 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20592 2007-12-03 Leo Zayas
20593 Pedro Alves <pedro_alves@portugalmail.pt>
20595 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20597 (child_add_thread): Minor cleanup.
20598 (child_continue): Resume artificially suspended threads before
20599 calling ContinueDebugEvent.
20600 (suspend_one_thread): New.
20601 (fake_breakpoint_event): New.
20602 (get_child_debug_event): Change return type to int. Check here if
20603 gdb sent an interrupt request. If a soft interrupt was requested,
20604 fake a breakpoint event. Return 0 if there is no event to handle,
20606 (win32_wait): Don't check here if gdb sent an interrupt request.
20607 Ensure there is a valid event to handle.
20608 (win32_request_interrupt): Add soft interruption method as last
20611 2007-12-03 Leo Zayas
20612 Pedro Alves <pedro_alves@portugalmail.pt>
20614 * win32-low.h (win32_thread_info): Add descriptions to the
20615 structure members. Replace `suspend_count' counter by a
20617 * win32-low.c (thread_rec): Update condition of when to get the
20618 context from the inferior. Rely on ContextFlags being set if it
20619 has already been retrieved. Only suspend the inferior thread if
20620 we haven't already. Warn if that fails.
20621 (continue_one_thread): s/suspend_count/suspended/. Only call
20622 ResumeThread once. Warn if that fails.
20624 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20626 * win32-low.c (win32_wait): Don't read from the inferior when it
20627 has already exited.
20629 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20631 * Makefile.in (win32_low_h): New variable.
20632 (win32-low.o): Add dependency on $(win32_low_h).
20633 (win32-arm-low.o, win32-i386-low.o): New rules.
20635 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20637 * hostio.c: Correct copyright year.
20639 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20641 * Makefile.in (OBS): Add hostio.o.
20642 (hostio.o): New rule.
20643 * server.h (handle_vFile): Declare.
20644 * hostio.c: New file.
20645 * server.c (handle_v_requests): Take packet_len and new_packet_len
20646 for binary packets. Call handle_vFile.
20647 (main): Update call to handle_v_requests.
20649 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20651 * linux-low.c: Include <sched.h>.
20653 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20655 * linux-low.c (linux_tracefork_grandchild): New.
20656 (linux_tracefork_child): Use clone.
20657 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20659 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20661 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20663 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20665 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20667 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20669 * inferiors.c (change_inferior_id): Delete.
20670 (add_pid_to_list, pull_pid_from_list): New.
20671 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20672 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20673 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20674 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20675 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20676 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20677 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20678 (using_threads): Always set to 1.
20679 (handle_extended_wait): New.
20680 (add_process): Do not set TID.
20681 (linux_create_inferior): Set must_set_ptrace_flags.
20682 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20683 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20684 (linux_thread_alive): Rename TID argument to LWPID.
20685 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20686 (linux_wait_for_event): Do not use TID or check using_threads. Update
20687 call to dead_thread_notify. Call handle_extended_wait.
20688 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20689 (send_sigstop): Delete sigstop_sent.
20690 (wait_for_sigstop): Avoid TID.
20691 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20692 (linux_test_for_tracefork): New.
20693 (linux_lookup_signals): Use thread_db_active and
20694 linux_supports_tracefork_flag.
20695 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20696 * linux-low.h (get_process_thread): Avoid TID.
20697 (struct process_ifo): Move thread_known and tid to the end. Remove
20699 (linux_attach_lwp, thread_db_init): Update prototypes.
20700 * server.h (change_inferior_id): Delete prototype.
20701 (add_pid_to_list, pull_pid_from_list): New prototypes.
20702 * thread-db.c (thread_db_use_events): New.
20703 (find_first_thread): Rename to...
20704 (find_one_thread): ...this. Update callers and messages. Do not
20705 call fatal. Check thread_db_use_events. Do not call
20706 change_inferior_id or new_thread_notify.
20707 (maybe_attach_thread): Update. Do not call new_thread_notify.
20708 (thread_db_init): Set thread_db_use_events. Check use_events.
20709 * utils.c (fatal, warning): Correct message prefix.
20711 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20713 * Makefile.in (clean): Remove new files.
20714 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20715 (powerpc-64.o, powerpc-64.c): New rules.
20716 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20717 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20719 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20721 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20722 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20723 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20724 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20725 (target_regsets): Add AltiVec and SPE register sets.
20726 * configure.ac: Check for AltiVec and SPE.
20727 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20728 (ppc_fill_vrregset, ppc_store_vrregset): New.
20729 (target_regsets): Add AltiVec register set.
20730 * configure: Regenerated.
20732 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20734 * linux-low.c (O_LARGEFILE): Define.
20735 (linux_read_memory): Use /proc/PID/mem.
20736 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20737 * configure, config.in: Regenerated.
20739 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20741 * linux-low.c (linux_wait_for_event): Do not pass signals while
20744 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20746 * win32-low.c (create_process): New.
20747 (win32_create_inferior): Use create_process instead of
20748 CreateProcess. If create_process failed retry appending an ".exe"
20749 suffix. Store the GetLastError result immediatelly after
20750 create_process calls and use it on the call to error.
20752 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20754 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20756 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20758 * configure.ac: Switch license to GPLv3.
20760 2007-08-01 Michael Snyder <msnyder@access-company.com>
20762 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20764 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20766 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20768 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20769 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20770 CloseToolhelp32Snapshot.
20771 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20772 CloseToolhelp32Snapshot.
20774 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20776 * server.c (main): Check for inferior exit before main loop.
20778 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20780 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20781 instead of on tmp_desc.
20783 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20784 Daniel Jacobowitz <dan@codesourcery.com>
20786 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20787 (add_thread): Minor cleanups.
20788 (clear_inferiors): Move lower in the file. Clear the DLL
20790 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20791 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20792 (xml_escape_text): New.
20793 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20795 (handle_v_cont): Report errors.
20796 (gdbserver_version): Update.
20797 (main): Correct size of own_buf. Do not report initial DLL events.
20798 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20799 (unloaded_dll, xml_escape_text): New.
20800 * win32-low.c (enum target_waitkind): Update comments.
20801 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20802 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20803 (win32_EnumProcessModules, win32_GetModuleInformation)
20804 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20805 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20806 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20807 (win32_Module32First, win32_Module32Next, load_toolhelp)
20808 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20809 (get_child_debug_event): Handle DLL events.
20810 (win32_wait): Likewise.
20812 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20814 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20815 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20817 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20819 * win32-low.c (handle_output_debug_string): Ignore event if not
20822 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20824 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20826 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20828 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20830 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20832 * inferiors.c (change_inferior_id): Add comment.
20833 * linux-low.c (check_removed_breakpoint): Add an early
20834 prototype. Improve debug output.
20835 (linux_attach): Doc update.
20836 (linux_detach_one_process, linux_detach): Clean up before releasing
20838 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20839 * linux-low.h (struct process_info): Doc improvement.
20840 * mem-break.c (delete_all_breakpoints): New.
20841 * mem-break.h (delete_all_breakpoints): New prototype.
20842 * thread-db.c (find_first_thread): New.
20843 (thread_db_create_event): Call it instead of
20844 thread_db_find_new_threads. Clean up unused variables.
20845 (maybe_attach_thread): Remove first thread handling.
20846 (thread_db_find_new_threads): Use find_first_thread.
20847 (thread_db_get_tls_address): Likewise.
20849 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20851 * thread-db.c (thread_db_find_new_threads): Add prototype.
20852 (thread_db_create_event): Check for the main thread before adding
20854 (maybe_attach_thread): Only enable event reporting if TID == 0.
20855 (thread_db_get_tls_address): Check for new threads.
20857 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20859 * linux-low.c (linux_create_inferior): Try execv before execvp.
20860 * spu-low.c (spu_create_inferior): Likewise.
20862 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20864 * linux-low.c (linux_create_inferior): Change execv to execvp.
20865 * spu-low.c (spu_create_inferior): Likewies.
20867 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20869 * Makefile.in (clean): Clean new files instead of deleted ones.
20870 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20871 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20873 * configure.srv: Specify XML files and new regformats for MIPS and
20875 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20876 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20877 an entry for the restart register.
20878 (mips_cannot_fetch_register, mips_cannot_store_register)
20879 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20880 register names to match the XML descriptions.
20881 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20882 restart register instead of $0.
20884 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20885 Markus Deuling <deuling@de.ibm.com>
20887 * remote-utils.c (decode_xfer_write): New function.
20888 * server.h (decode_xfer_write): Add prototype.
20889 * server.c (handle_query): Add PACKET_LEN argument. Support
20890 qXfer:spu:read and qXfer:spu:write packets.
20891 (main): Pass packet_len to handle_query.
20892 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20893 * target.h (target_ops): Add qxfer_spu.
20895 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20897 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20898 accessing non-seekable spufs files.
20900 2007-05-16 Markus Deuling <deuling@de.ibm.com>
20902 * server.c (handle_query): Add reply for qC packet.
20904 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20905 Leo Zayas <lerele@champenstudios@com>
20907 * server.h (check_remote_input_interrupt_request): New function.
20908 * remote_utils.c (INVALID_DESCRIPTOR): New define.
20909 (remote_desc): Initialize with INVALID_DESCRIPTOR.
20910 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
20911 (check_remote_input_interrupt_request): New function.
20912 * server.h (check_remote_input_interrupt_request): Declare.
20913 * win32-low.c (winapi_DebugBreakProcess,
20914 winapi_GenerateConsoleCtrlEvent): New typedefs.
20915 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
20917 (win32_wait): Check for remote interrupt request
20918 with check_remote_input_interrupt_request.
20919 (win32_request_interrupt): New function.
20920 (win32_target_op): Set request_interrupt to win32_request_interrupt.
20922 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20924 * win32-low.c (debug_registers_changed,
20925 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
20926 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
20927 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
20928 (thread_rec): Get context using the low target.
20929 (child_add_thread): Call thread_added on the low target,
20930 which does the same thing.
20932 (do_initial_child_stuff): Remove debug registers references.
20933 Set context using the low target. Resume threads after
20934 setting the contexts.
20935 (child_continue): Remove dead variable. Remove debug
20936 registers references.
20937 (child_fetch_inferior_registers): Go through the low target.
20938 (do_child_store_inferior_registers): Remove.
20939 (child_store_inferior_registers): Go through the low target.
20940 (win32_resume): Remove debug registers references.
20941 Set context using the low target.
20942 (handle_exception): Change return type to void. Don't record
20943 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
20944 first chance exception.
20945 (get_child_debug_event): Change return type to void. Remove
20946 goto loop. Always return after waiting for debug event.
20947 (win32_wait): Convert to switch statement. Handle spurious
20950 * win32-i386-low.c (debug_registers_changed,
20951 debug_registers_used): New.
20952 (initial_stuff): Rename to ...
20953 (i386_initial_stuff): ... this. Clear debug registers
20955 (store_debug_registers): Delete.
20956 (i386_get_thread_context): New.
20957 (load_debug_registers): Delete.
20958 (i386_set_thread_context): New.
20959 (i386_thread_added): New.
20960 (single_step): Rename to ...
20961 (i386_single_step): ... this.
20962 (do_fetch_inferior_registers): Rename to ...
20963 (i386_fetch_inferior_register): ... this.
20964 (i386_store_inferior_register): New.
20965 (the_low_target): Adapt to new interface.
20967 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
20968 (arm_get_thread_context): New.
20969 (arm_set_thread_context): New.
20971 (do_fetch_inferior_registers): Rename to ...
20972 (arm_fetch_inferior_register): ... this.
20973 (arm_store_inferior_register): New.
20974 (arm_wince_breakpoint): Reimplement as unsigned long.
20975 (arm_wince_breakpoint_len): Define.
20976 (the_low_target): Adapt to new interface.
20978 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
20979 load_debug_registers. Add get_thread_context, set_thread_context,
20980 thread_added and store_inferior_register. Rename
20981 fetch_inferior_registers to fetch_inferior_register.
20982 (regptr): Remove declaration.
20984 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20986 * linux-low.c (linux_detach): Change return type to int. Return 0.
20987 * spu-low.c (spu_detach): Likewise.
20989 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
20991 * target.h (target_ops): Change return type of detach to int.
20993 (join_inferior): New.
20994 * server.c (main): Don't skip detach support on mingw32.
20995 If the inferior doesn't support detaching return error.
20996 Call join_inferior instead of using waitpid.
20997 * linux-low.c (linux_join): New.
20998 (linux_target_op): Add linux_join.
20999 * spu-low.c (spu_join): New.
21000 (spu_target_ops): Add spu_join.
21001 * win32-low.c (win32_detach): Adapt to new interface.
21002 Reopen current_process_handle before detaching. Issue a child
21003 resume before detaching.
21005 (win32_target_op): Add win32_join.
21007 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21009 * win32-low.c (win32-attach): Fix return value.
21010 * target.h (target_ops): Describe ATTACH return values.
21012 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21014 * win32-low.c (GETPROCADDRESS): Define.
21015 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21016 (winapi_DebugSetProcessKillOnExit): Likewise.
21017 (win32_create_inferior): Force usage of ansi CreateProcessA.
21018 (win32_attach): Use GETPROCADDRESS.
21019 (win32_detach): Likewise.
21021 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21023 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21025 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21027 * win32-low.c: Commit leftover changes from 2007-03-29.
21029 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21031 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21032 fields short instead of int. Add explicit padding.
21033 (i387_cache_to_fsave): Remove unnecessary casts.
21034 (i387_fsave_to_cache): Doc fix.
21035 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21037 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21039 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21040 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21042 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21044 * configure.srv (arm*-*-mingw32ce*): Move near the other
21047 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21049 * configure.ac: Add errno checking.
21050 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21051 sys/file.h and malloc.h.
21052 (AC_CHECK_DECLS): Add perror.
21053 (srv_mingwce): Handle.
21054 * configure.srv (i[34567]86-*-cygwin*): Add
21055 win32-i386-low.o to srv_tgtobj.
21056 (i[34567]86-*-mingw*): Likewise.
21057 (arm*-*-mingw32ce*): Add case.
21058 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21059 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21060 [__MINGW32CE__] (strerror): New function.
21061 [__MINGW32CE__] (errno): Define to GetLastError.
21062 [__MINGW32CE__] (COUNTOF): New macro.
21063 (remote_open): Remove extra close call.
21064 * mem-break.c (delete_breakpoint_at): New function.
21065 * mem-break.h (delete_breakpoint_at): Declare.
21066 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21067 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21068 [USE_WIN32API] (read, write): Add char* casts.
21069 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21070 * server.h: Include wincecompat.h on Windows CE.
21071 [HAVE_ERRNO_H]: Check.
21072 (perror): Declare if not declared.
21073 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21074 (perror_with_name): Remove errno declaration.
21075 * wincecompat.h: New.
21076 * wincecompat.c: New.
21077 * win32-low.h: New.
21078 * win32-arm-low.c: New.
21079 * win32-i386-low.c: New.
21080 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21081 (OUTMSG2): Make it safe.
21083 (COUNTOF): New macro.
21084 (NUM_REGS): Get it from the low target.
21085 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21086 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21087 (thread_rec): Let low target handle debug registers.
21088 (child_add_thread): Likewise.
21089 (child_init_thread_list): Likewise.
21090 (continue_one_thread): Likewise.
21092 (do_child_fetch_inferior_registers): Move to ...
21093 * win32-i386-low.c: ... here, and rename to ...
21094 (do_fetch_inferior_registers): ... this.
21095 * win32-low.c (child_fetch_inferior_registers):
21096 Go through the low target.
21097 (do_child_store_inferior_registers): Use regptr.
21098 (strwinerror): New function.
21099 (win32_create_inferior): Handle Windows CE.
21100 Use strwinerror instead of strerror on Windows error
21101 codes. Add program to the error output.
21102 Don't close the main thread handle on Windows CE.
21103 (win32_attach): Use coredll.dll on Windows CE.
21104 (win32_kill): Close current process and current
21106 (win32_detach): Use coredll.dll on Windows CE.
21107 (win32_resume): Let low target handle debug registers, and
21109 (handle_exception): Add/Remove initial breakpoint. Avoid
21110 non-existant WSTOPSIG on Windows CE.
21111 (win32_read_inferior_memory): Cast to remove warning.
21112 (win32_arch_string): Go through the low target.
21113 (initialize_low): Call set_breakpoint_data with the low
21114 target's breakpoint.
21115 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21116 FOP_REGNUM, mappings): Move to ...
21117 * win32-i386-low.c: ... here.
21118 * win32-low.c (win32_thread_info): Move to ...
21119 * win32-low.h: ... here.
21120 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21121 win32-arm-low.c and wincecompat.c.
21122 (all:): Add $EXEEXT.
21123 (install-only:): Likewise.
21124 (gdbserver:): Likewise.
21125 (gdbreplay:): Likewise.
21126 * config.in: Regenerate.
21127 * configure: Regenerate.
21129 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21131 * win32-low.c: Rename typedef thread_info to
21132 win32_thread_info throughout.
21134 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21136 * win32-i386-low.c: Rename to ...
21137 * win32-low.c: ... this.
21138 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21139 * Makefile.in: Likewise.
21141 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21143 * remote-utils.c (monitor_output): Constify msg parameter.
21144 * server.h (monitor_output): Likewise.
21145 * win32-i386-low.c (handle_output_debug_string): New.
21146 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21147 handle_output_debug_string.
21148 (get_child_debug_event): Likewise.
21150 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21152 * server.c (main): Correct strtoul check.
21154 2007-03-27 Jon Ringle <jon@ringle.org>
21156 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21158 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21160 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21162 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21164 * terminal.h: Check HAVE_SGTTY_H.
21166 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21168 * remote-utils.c (remote_open): Print out the assigned port number.
21170 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21172 * remote-utils.c (monitor_output): New function.
21173 * server.c (debug_threads): Define here.
21174 (monitor_show_help): New function.
21175 (handle_query): Handle qRcmd.
21176 (main): Do not handle 'd' packet.
21177 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21178 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21181 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21183 * Makefile.in (EXEEXT): New.
21184 (clean): Use $(EXEEXT).
21186 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21188 * target.h (target_ops): Rename send_signal to request_interrupt,
21189 and remove enum target_signal parameter.
21190 * linux-low.c (linux_request_interrupt): Rename from
21191 linux_send_signal, and always send SIGINT.
21192 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21193 and always send SIGINT.
21194 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21196 (input_interrupt): Likewise.
21198 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21200 * server.c (get_features_xml): Check if target implemented
21202 * win32-i386-low.c (win32_arch_string): New.
21203 (win32_target_ops): Add win32_arch_string as arch_string member.
21205 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21207 * spu-low.c (spu_arch_string): New.
21208 (spu_target_ops): Add spu_arch_string.
21210 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21212 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21213 * configure.ac: Do not check for terminal.h.
21214 * configure, config.in: Regenerated.
21216 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21218 * Makefile.in (OBS): Add $(XML_BUILTIN).
21219 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21221 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21222 (arm-with-iwmmxt.c): New.
21223 * config.in, configure: Regenerate.
21224 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21225 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21226 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21227 (arm*-*-linux*): Add iWMMXt and regset support.
21228 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21229 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21230 (arm_store_wmmxregset, target_regsets): New.
21231 * server.c (get_features_xml): Take annex argument. Check builtin
21233 (handle_query): Handle multiple annexes.
21235 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21237 * remote-utils.c [USE_WIN32API] (read, write): Define.
21238 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21241 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21243 * linux-i386-low.c (the_low_target): Set arch_string.
21244 * linux-x86-64-low.c (the_low_target): Likewise.
21245 * linux-low.c (linux_arch_string): New.
21246 (linux_target_ops): Add it.
21247 * linux-low.h (struct linux_target_ops): Add arch_string.
21248 * server.c (write_qxfer_response): Use const void * for DATA.
21249 (get_features_xml): New.
21250 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21251 * target.h (struct target_ops): Add arch_string method.
21253 2007-01-03 Denis Pilat <denis.pilat@st.com>
21254 Daniel Jacobowitz <dan@codesourcery.com>
21256 * linux-low.c (linux_kill): Handle being called with no threads.
21257 * win32-i386-low.c (win32_kill): Likewise.
21258 (get_child_debug_event): Clear current_process_handle.
21260 2006-12-30 Denis PILAT <denis.pilat@st.com>
21261 Daniel Jacobowitz <dan@codesourcery.com>
21263 * remote-utils.c (remote_open): Check the type of specified
21264 serial port devices before opening them.
21265 * server.c (main): Kill the inferior if an error occurs during
21266 the first remote_open.
21268 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21270 * README: Update supported targets.
21272 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21274 * Makefile.in (clean): Remove reg-mips64.c.
21275 (reg-mips64.c, reg-mips64.o): New rules.
21276 * configure.srv: Handle mips64. Include regset support for mips.
21277 * linux-mips-low.c (union mips_register): New.
21278 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21279 (mips_breakpoint, mips_breakpoint_at): Use int.
21280 (mips_collect_register, mips_supply_register)
21281 (mips_collect_register_32bit, mips_supply_register_32bit)
21282 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21283 (mips_store_fpregset, target_regsets): New.
21284 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21286 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21288 * configure.srv: Add target "spu*-*-*".
21289 * Makefile.in (clean): Remove reg-spu.c.
21290 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21291 * spu-low.c: New file.
21293 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21295 * configure.ac: Correct td_thr_tls_get_addr test.
21296 * configure: Regenerated.
21298 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21300 * linux-low.c (linux_wait_for_event): Reformat. Use the
21301 pass_signals array.
21302 * remote-utils.c (decode_address_to_semicolon): New.
21303 * server.c (pass_signals, handle_general_set): New.
21304 (handle_query): Mention QPassSignals for qSupported.
21305 (main): Call handle_general_set.
21306 * server.h (pass_signals, decode_address_to_semicolon): New.
21308 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21310 * server.c (handle_query): Correct error handling for read_auxv.
21312 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21314 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21315 and srv_linux_thread_db to yes.
21316 * linux-s390-low.c (s390_fill_gregset): New function.
21317 (target_regsets): Define data structure.
21319 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21321 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21322 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21323 * config.in, configure: Regenerated.
21324 * inferiors.c (gdb_id_to_thread): New function.
21325 (gdb_id_to_thread_id): Use it.
21326 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21327 * linux-low.h (struct process_info): Add th member.
21328 (thread_db_get_tls_address): New prototype.
21329 * remote-utils.c (decode_address): Make non-static.
21330 * server.c (handle_query): Handle qGetTLSAddr.
21331 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21332 * target.h (struct target_ops): Add get_tls_address.
21333 * thread-db.c (maybe_attach_thread): Save the thread handle.
21334 (thread_db_get_tls_address): New.
21336 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21338 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21339 (linux_resume_one_process): Take a siginfo_t *. Update all
21340 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21341 (struct pending_signals): Add a siginfo_t.
21342 (linux_wait_for_process): Always set last_status.
21343 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21344 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21345 * linux-low.h (struct process_info): Add last_status.
21347 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21349 * remote-utils.c (try_rle): New function.
21350 (putpkt_binary): Use it.
21352 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21354 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21355 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21356 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21357 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21358 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21361 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21363 * server.c (terminal_fd): New variable.
21364 (old_foreground_pgrp): Likewise.
21365 (restore_old_foreground_pgrp): New function.
21366 (start_inferior): Record the terminal file descriptor in terminal_fd
21367 and its original foreground group in old_foreground_pgrp. Register
21368 restore_old_foreground_pgrp with atexit().
21370 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21372 * server.c (handle_query): Correct qPart to qXfer.
21374 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21376 * configure.ac: Check for more headers which are missing on
21377 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21378 * configure.srv: Add Cygwin and mingw32.
21379 * remote-utils.c: Don't include headers unconditionally which
21380 are missing on mingw32. Include <winsock.h> for mingw32.
21381 (remote_open): Adjust for mingw32 support. Flush
21382 standard error after writing to it.
21383 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21384 (unblock_async_io, enable_async_io, disable_async_io)
21385 (readchar, getpkt): Update for Winsock support.
21386 (prepare_resume_reply): Expect a protocol signal number.
21387 * server.c: Disable <sys/wait.h> on mingw32.
21388 (start_inferior): Adjust for mingw32 support. Flush
21389 standard error after writing to it.
21390 (attach_inferior): Likewise. Use protocol signal
21392 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21394 * win32-i386-low.c: New file.
21395 * Makefile.in (XM_CLIBS): Set.
21396 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21397 (win32-i386-low.o): New dependency rule.
21398 * linux-low.c (linux_wait): Use target signal numbers.
21399 * target.h (struct target_ops): Doc fix.
21400 * server.h (target_signal_to_name): New prototype.
21401 * gdbreplay.c: Don't include headers unconditionally which
21402 are missing on mingw32. Include <winsock.h> for mingw32.
21403 (remote_close, remote_open): Adjust for Winsock support.
21404 * configure, config.in: Regenerated.
21406 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21408 * server.c (decode_xfer_read, write_qxfer_response): New.
21409 (handle_query): Take a packet length argument. Handle
21410 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21411 the qSupported response.
21412 (main): Update call to handle_query.
21414 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21416 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21417 (putpkt_binary): Renamed from putpkt and adjusted for binary
21419 (putpkt): New wrapper for putpkt_binary.
21420 (readchar): Don't mask off the high bit.
21421 (decode_X_packet): New function.
21422 * server.c (main): Call putpkt_binary if a handler sets the packet
21423 length. Save the length of the incoming packet. Handle 'X'.
21424 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21426 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21428 * server.c (handle_query): Handle qSupported.
21430 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21432 * remote-utils.c (all_symbols_looked_up): New variable.
21433 (look_up_one_symbol): Check it.
21434 * server.h (look_up_one_symbol): New declaration.
21435 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21437 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21439 * Makefile.in (linux-arm-low.o): Update dependencies.
21440 * linux-arm-low.c: Include "gdb_proc_service.h".
21441 (PTRACE_GET_THREAD_AREA): Define.
21442 (ps_get_thread_area): New function.
21444 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21446 * configure.srv (m68k*-*-uclinux*): New target.
21447 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21448 (linux_resume_one_process): Remove extraneous cast.
21449 (linux_read_offsets): New.
21450 (linux_target_op): Add linux_read_offsets on mmuless systems.
21451 * server.c (handle_query): Add qOffsets logic.
21452 * target.h (struct target_ops): Add read_offsets.
21454 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21456 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21457 (PTRACE_GET_THREAD_AREA): Define.
21458 (ps_get_thread_area): New function.
21459 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21460 (linux-x86-64-low.o): Update.
21462 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21464 * configure.ac: Remove checks for prfpregset_t.
21465 * gdb_proc_service.h: New file.
21466 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21467 new "gdb_proc_service.h".
21468 * proc-service.c: Likewise.
21469 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21470 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21471 * Makefile.in (gdb_proc_service_h): Updated.
21472 * configure, config.in: Regenerated.
21474 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21476 * remote-utils.c (prepare_resume_reply): Move declaration
21477 of gdb_id_from_wait to the top of the block.
21479 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21481 * linux-low.c (regsets_store_inferior_registers): Read the regset
21482 from the target before filling it.
21484 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21486 * server.c (attach_inferior): Return SIGTRAP for a successful
21489 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21491 * Makefile.in (OBS): Add version.o.
21492 (STAGESTUFF): Delete.
21493 (version.o): Add dependencies.
21494 (version.c): Replace rule.
21495 (clean): Remove version.c.
21496 * server.c (gdbserver_version): New.
21497 (gdbserver_usage): Use printf.
21498 (main): Handle --version and --help.
21499 * server.h (version, host_name): Add declarations.
21501 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21513 * linux-x86-64-low.c:
21515 * linux-s390-low.c:
21516 * linux-ppc64-low.c:
21518 * linux-mips-low.c:
21519 * linux-m68k-low.c:
21520 * linux-m32r-low.c:
21523 * linux-ia64-low.c:
21524 * linux-i386-low.c:
21525 * linux-crisv32-low.c:
21537 * gdbserver.1: Add (C) after Copyright. Update the FSF
21540 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21542 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21543 (arm_breakpoint_at): Recognize both breakpoints.
21544 (the_low_target): Use the correct breakpoint instruction.
21546 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21548 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21549 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21550 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21551 (the_low_target): Update.
21553 2005-10-25 Andreas Schwab <schwab@suse.de>
21555 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21557 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21558 (ia64_num_regs): Reduce to 462.
21560 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21562 * acinclude.m4: Correct quoting.
21563 * aclocal.m4: Regenerated.
21565 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21566 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21567 (thread_db_init): Call thread_db_err_str.
21568 * configure.ac: Check for TD_VERSION.
21569 * config.in, configure: Regenerated.
21571 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21573 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21575 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21577 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21578 is not available. Define HAVE_PTRACE_GETREGS if it is.
21579 * config.in, configure: Regenerated.
21580 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21581 * linux-i386-low.c, linux-m68k-low.c: Update to use
21582 HAVE_PTRACE_GETREGS.
21583 * linux-low.c (regsets_fetch_inferior_registers)
21584 (regsets_store_inferior_registers): Only return 0 if we processed
21586 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21587 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21589 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21591 * inferiors.c (struct thread_info): Add gdb_id.
21592 (add_thread): Add gdb_id argument.
21593 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21594 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21595 calls to add_thread.
21596 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21597 * server.c (handle_query): Use thread_to_gdb_id.
21598 (handle_v_cont, main): Use gdb_id_to_thread_id.
21599 * server.h (add_thread): Update prototype.
21600 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21603 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21605 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21606 left-padded registers.
21607 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21608 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21610 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21612 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21613 * configure: Regenerate.
21614 * config.in: Regenerate.
21615 * server.h (NEED_DECLARATION_STRERROR):
21616 Replace with !HAVE_DECL_STRERROR.
21618 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21620 * linux-low.c (linux_wait, linux_send_signal): Don't test
21621 an unsigned long variable for > 0 if it could be MAX_ULONG.
21622 * server.c (myresume): Likewise.
21623 * target.c (set_desired_inferior): Likewise.
21625 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21627 * configure.ac: Simplify and improve check for socklen_t.
21628 * configure, config.in: Regenerate.
21630 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21632 * acconfig.h: Remove.
21633 * configure.ac: Add a test for socklen_t. Use three-argument
21634 AC_DEFINE throughout.
21635 * config.in: Regenerated using autoheader 2.59.
21636 * configure: Regenerated.
21638 * gdbreplay.c (socklen_t): Provide a default.
21639 (remote_open): Use socklen_t.
21640 * remote-utils.c (socklen_t): Provide a default.
21641 (remote_open): Use socklen_t.
21642 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21645 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21647 * linux-low.c (linux_read_memory, linux_write_memory)
21648 (linux_read_auxv): Likewise.
21649 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21650 (check_mem_write): Likewise.
21651 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21653 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21654 (registers_from_string, register_data): Likewise.
21655 * server.c (handle_query, main): Likewise.
21656 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21657 (decode_M_packet): Likewise.
21658 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21659 * target.h (struct target_ops): Update read_memory, write_memory,
21661 (read_inferior_memory, write_inferior_memory): Update.
21662 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21663 to unsigned char *.
21664 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21665 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21666 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21667 linux-s390-low.c, linux-sh-low.c: Update for changes in
21668 read_inferior_memory and the_low_target->breakpoint.
21670 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21672 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21673 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21674 * configure.srv: Add powerpc64-*-linux*.
21675 * linux-ppc64-low.c: New file.
21677 2005-05-23 Orjan Friberg <orjanf@axis.com>
21679 * linux-cris-low.c: New file with support for CRIS.
21680 * linux-crisv32-low.c: Ditto for CRISv32.
21681 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21682 (clean): Add reg-cris.c and reg-crisv32.c.
21683 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21684 reg-crisv32.o, and reg-crisv32.c to make rules.
21685 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21686 recognized targets.
21688 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21690 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21691 of sizeof (PTRACE_XFER_TYPE).
21692 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21694 2005-05-12 Orjan Friberg <orjanf@axis.com>
21696 * target.h (struct target_ops): Add insert_watchpoint,
21697 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21698 pointers for hardware watchpoint support.
21699 * linux-low.h (struct linux_target_ops): Ditto.
21700 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21701 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21702 to linux_target_ops.
21703 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21705 * server.c (main): Recognize 'Z' and 'z' packets.
21707 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21709 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21710 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21711 (the_low_target): Add new members.
21713 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21715 * proc-service.c (ps_lgetregs): Search all_processes instead of
21718 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21720 * server.c (start_inferior): Change return type to int.
21721 (attach_inferior): Change sigptr to int *.
21722 (handle_v_cont, handle_v_requests): Change signal to int *.
21723 (main): Change signal to int.
21725 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21727 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21728 * configure.srv: Add m32r*-*-linux*.
21729 * linux-m32r-low.c: New file.
21731 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21733 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21735 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21737 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21738 Take unsigned long arguments for PIDs.
21739 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21740 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21741 (wait_for_sigstop, linux_resume_one_process)
21742 (regsets_fetch_inferior_registers, linux_send_signal)
21743 (linux_read_auxv): Likewise. Update the types of variables holding
21744 PIDs. Update format string specifiers.
21745 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21746 * remote-utils.c (prepare_resume_reply): Likewise.
21747 * server.c (cont_thread, general_thread, step_thread)
21748 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21750 (handle_query): Update format specifiers.
21751 (handle_v_cont, main): Use strtoul for thread IDs.
21752 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21753 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21754 (general_thread, step_thread, thread_from_wait)
21755 (old_thread_from_wait): Update.
21756 * target.h (struct thread_resume): Use unsigned long for THREAD.
21757 (struct target_ops): Use unsigned long for arguments to attach and
21760 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21762 * acinclude.m4: Include bfd/bfd.m4 directly.
21763 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21764 <agriffis@toolchain.org>.
21765 * aclocal.m4, configure: Regenerated.
21767 2005-01-07 Andrew Cagney <cagney@gnu.org>
21769 * configure.ac: Rename configure.in, require autoconf 2.59.
21770 * configure: Re-generate.
21772 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21774 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21775 LIBS when finished.
21776 * aclocal.m4: Regenerated.
21777 * configure: Regenerated.
21779 2004-11-21 Andreas Schwab <schwab@suse.de>
21781 * linux-m68k-low.c (m68k_num_gregs): Define.
21782 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21783 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21784 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21785 (m68k_breakpoint_at): New. Add to the_low_target.
21787 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21788 srv_linux_thread_db to yes.
21790 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21792 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21793 (ARCH_SET_FS): Likewise.
21794 (ARCH_GET_FS): Likewise.
21795 (ARCH_GET_GS): Likewise.
21797 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21799 * linux-i386-low.c (ps_get_thread_area): New.
21800 * linux-x86-64-low.c (ps_get_thread_area): New.
21801 * linux-low.c: Include <sys/syscall.h>.
21802 (linux_kill_one_process): Don't kill the first thread here.
21803 (linux_kill): Kill the first thread here.
21804 (kill_lwp): New function.
21805 (send_sigstop, linux_send_signal): Use it.
21806 * proc-service.c: Clean up #ifdefs.
21807 (fpregset_info): Delete.
21808 (ps_lgetregs): Update and enable implementation.
21809 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21811 * remote-utils.c (struct sym_cache, symbol_cache): New.
21812 (input_interrupt): Print a clearer message.
21813 (async_io_enabled): New variable.
21814 (enable_async_io, disable_async_io): Use it. Update comments.
21815 (look_up_one_symbol): Use the symbol cache.
21816 * thread-db.c (thread_db_look_up_symbols): New function.
21817 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21819 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21821 * configure.in: Test for -rdynamic.
21822 * configure: Regenerated.
21823 * Makefile (INTERNAL_LDFLAGS): New.
21824 (gdbserver, gdbreplay): Use it.
21826 2004-09-02 Andrew Cagney <cagney@gnu.org>
21828 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21830 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21832 * linux-low.c (linux_wait): Clear all_processes list also.
21834 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21836 * linux-low.c: Include <errno.h>. Remove extern declaration of
21839 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21841 * gdbreplay.c, server.h, utils.c: Update copyright years.
21843 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21845 * server.c (main): Print child status or termination signal from
21846 variable 'signal', not 'sig'.
21848 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21850 * linux-low.c (linux_read_memory): Change return type to
21851 int. Check for and return error from ptrace().
21852 * target.c (read_inferior_memory): Change return type to int. Pass
21853 back return status from the_target->read_memory().
21854 * target.h (struct target_ops): Adapt *read_memory() prototype.
21856 (read_inferior_memory): Adapt prototype.
21857 * server.c (main): Return an error packet if
21858 read_inferior_memory() returns an error.
21860 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21862 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21863 Unify with other clean targets.
21865 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21867 * server.c (handle_v_cont): Call set_desired_inferior.
21869 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21871 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21873 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21875 * linux-low.c (linux_wait): Unblock async I/O.
21876 (linux_resume): Block and enable async I/O.
21877 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21878 * server.h (block_async_io, unblock_async_io): Add prototypes.
21880 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21882 * remote-utils.c (remote_open): Print a status notice after
21883 opening a TCP port.
21884 * server.c (attach_inferior): Print a status notice after
21887 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21889 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21891 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21893 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21895 * server.c, target.h: Update copyright years.
21897 2004-02-25 Roland McGrath <roland@redhat.com>
21899 * target.h (struct target_ops): New member `read_auxv'.
21900 * server.c (handle_query): Handle qPart:auxv:read: query using that.
21901 * linux-low.c (linux_read_auxv): New function.
21902 (linux_target_ops): Initialize `read_auxv' member to that.
21904 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21906 Committed by Jim Blandy <jimb@redhat.com>.
21908 * linux-s390-low.c (s390_num_regs): Update.
21909 (s390_regmap): Remove control registers. Use __s390x__ predefine
21910 instead of GPR_SIZE to distiguish s390 and s390x targets.
21912 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
21914 * linux-low.c: Update copyright year.
21915 (check_removed_breakpoint): Clear pending_is_breakpoint.
21916 (linux_set_resume_request, linux_queue_one_thread)
21917 (resume_status_pending_p): New functions.
21918 (linux_continue_one_thread): Use process->resume.
21919 (linux_resume): Only resume threads if there are no pending events.
21920 * linux-low.h (struct process_info): Add resume request
21923 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
21925 * regcache.c (new_register_cache): Clear the allocated register
21926 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
21928 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
21930 * linux-low.c (linux_resume): Take a struct thread_resume *
21932 (linux_wait): Update call.
21933 (resume_ptr): New static variable.
21934 (linux_continue_one_thread): Renamed from
21935 linux_continue_one_process. Use resume_ptr.
21936 (linux_resume): Use linux_continue_one_thread.
21937 * server.c (handle_v_cont, handle_v_requests): New functions.
21938 (myresume): New function.
21939 (main): Handle 'v' case.
21940 * target.h (struct thread_resume): New type.
21941 (struct target_ops): Change argument of "resume" to struct
21943 (myresume): Delete macro.
21945 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21947 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
21948 (uninstall): Support DESTDIR.
21950 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
21952 * configure.srv: Add xscale*linux copy of arm*linux entry.
21954 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
21956 * linux-arm-low.c (arm_reinsert_addr): New function.
21957 (the_low_target): Add arm_reinsert_addr.
21959 2003-07-08 Mark Kettenis <kettenis@gnu.org>
21961 * mem-break.c: Remove whitespace at end of file.
21963 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21965 * configure.in: Check whether we need to prototype strerror.
21966 * server.h: Optionally prototype strerror.
21967 * gdbreplay.c (perror_with_name): Use strerror.
21968 * linux-low.c (linux_attach_lwp): Use strerror.
21969 * utils.c (perror_with_name): Use strerror.
21970 * config.in, configure: Regenerated.
21972 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
21974 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
21975 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
21977 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
21979 * Makefile.in (SFILES): Update.
21980 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
21981 low-sun3.c: Remove files.
21983 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
21985 * linux-low.c: Move comment to linux_thread_alive where it belonged.
21986 (linux_detach_one_process, linux_detach): New functions.
21987 (linux_target_ops): Add linux_detach.
21988 * server.c (main): Handle 'D' packet.
21989 * target.h (struct target_ops): Add "detach" member.
21990 (detach_inferior): Define.
21992 2003-06-13 Mark Kettenis <kettenis@gnu.org>
21994 From Kelley Cook <kelleycook@wideopenwest.com>:
21995 * configure.srv: Accept i[34567]86 variants.
21997 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
21999 * linux-low.c (linux_wait_for_event): Correct comment typos.
22000 (linux_resume_one_process): Call check_removed_breakpoint.
22001 (linux_send_signal): New function.
22002 (linux_target_ops): Add linux_send_signal.
22003 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22005 * target.h (struct target_ops): Add send_signal.
22007 2003-05-29 Jim Blandy <jimb@redhat.com>
22009 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22010 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22011 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22012 away part of the register's value.
22014 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22016 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22017 (linux_wait_for_event, linux_init_signals): Likewise.
22019 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22021 * configure.in: Check for stdlib.h.
22022 * configure: Regenerated.
22023 * config.in: Regenerated.
22025 2003-01-04 Andreas Schwab <schwab@suse.de>
22027 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22029 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22031 * Makefile.in: Remove obsolete code.
22033 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22035 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22036 defined(PT_FPR0_HI).
22038 2002-11-17 Stuart Hughes <seh@zee2.com>
22040 * linux-arm-low.c (arm_num_regs): Increase.
22041 (arm_regmap): Include status register.
22043 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22045 * linux-low.c (register_addr): Remove incorrect -1 check.
22047 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22049 * linux-low.c (linux_create_inferior): Call setpgid. Return
22051 (unstopped_p, linux_signal_pid): Remove.
22052 (linux_target_ops): Remove linux_signal_pid.
22053 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22054 global instead of target method.
22055 * target.h (struct target_ops): Remove signal_pid. Update comment
22056 for create_inferior.
22057 * server.c (signal_pid): New variable.
22058 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22059 gdbserver. Set the child to be the foreground process group.
22060 (attach_inferior): Set signal_pid.
22062 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22064 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22066 2002-08-20 Jim Blandy <jimb@redhat.com>
22068 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22071 2002-08-01 Andrew Cagney <cagney@redhat.com>
22073 * Makefile.in: Make chill references obsolete.
22075 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22077 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22078 * configure: Regenerate.
22079 * config.in: Regenerate.
22081 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22083 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22084 (perror_with_name, remote_close, remote_open, expect, play): Static.
22086 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22088 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22089 byte offsets instead of an array of indexes.
22090 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22092 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22094 * regcache.c: Add comment.
22096 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22098 * thread-db.c: New file.
22099 * proc-service.c: New file.
22100 * acinclude.m4: New file.
22101 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22102 proc-service.o, and thread-db.o.
22103 (linux-low.o): Add USE_THREAD_DB.
22104 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22105 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22106 * aclocal.m4: Regenerated.
22107 * config.in: Regenerated.
22108 * configure: Regenerated.
22109 * configure.in: Check for proc_service.h, sys/procfs.h,
22110 thread_db.h, and linux/elf.h headrs.
22111 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22112 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22113 Check for -lthread_db and thread support.
22114 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22115 PowerPC, and SuperH.
22116 * i387-fp.c: Constify arguments.
22117 * i387-fp.h: Likewise.
22118 * inferiors.c: (struct thread_info): Renamed from
22119 `struct inferior_info'. Remove PID member. Use generic inferior
22120 list header. All uses updated.
22121 (inferiors, signal_pid): Removed.
22122 (all_threads): New variable.
22123 (get_thread): Define.
22124 (add_inferior_to_list): New function.
22125 (for_each_inferior): New function.
22126 (change_inferior_id): New function.
22127 (add_inferior): Removed.
22128 (remove_inferior): New function.
22129 (add_thread): New function.
22130 (free_one_thread): New function.
22131 (remove_thread): New function.
22132 (clear_inferiors): Use for_each_inferior and free_one_thread.
22133 (find_inferior): New function.
22134 (find_inferior_id): New function.
22135 (inferior_target_data): Update argument type.
22136 (set_inferior_target_data): Likewise.
22137 (inferior_regcache_data): Likewise.
22138 (set_inferior_regcache_data): Likewise.
22139 * linux-low.c (linux_bp_reinsert): Remove.
22140 (all_processes, stopping_threads, using_thrads)
22141 (struct pending_signals, debug_threads, pid_of): New.
22142 (inferior_pid): Replace with macro.
22143 (struct inferior_linux_data): Remove.
22144 (get_stop_pc, add_process): New functions.
22145 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22146 Use add_process and add_thread.
22147 (linux_attach_lwp): New function, based on old linux_attach. Use
22148 add_process and add_thread. Set stop_expected for new threads.
22149 (linux_attach): New function.
22150 (linux_kill_one_process): New function.
22151 (linux_kill): Kill all LWPs.
22152 (linux_thread_alive): Use find_inferior_id.
22153 (check_removed_breakpoints, status_pending_p): New functions.
22154 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22155 Update. Use WNOHANG. Wait for cloned processes also. Update process
22156 struct for the found process.
22157 (linux_wait_for_event): New function.
22158 (linux_wait): Use it. Support LWPs.
22159 (send_sigstop, wait_for_sigstop, stop_all_processes)
22160 (linux_resume_one_process, linux_continue_one_process): New functions.
22161 (linux_resume): Support LWPs.
22162 (REGISTER_RAW_SIZE): Remove.
22163 (fetch_register): Use register_size instead. Call supply_register.
22164 (usr_store_inferior_registers): Likewise. Call collect_register.
22165 Fix recursive case.
22166 (regsets_fetch_inferior_registers): Improve error message.
22167 (regsets_store_inferior_registers): Add debugging.
22168 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22169 (unstopped_p, linux_signal_pid): New functions.
22170 (linux_target_ops): Add linux_signal_pid.
22171 (linux_init_signals): New function.
22172 (initialize_low): Call it. Initialize using_threads.
22173 * regcache.c (inferior_regcache_data): Add valid
22175 (get_regcache): Fetch registers lazily. Add fetch argument
22176 and update all callers.
22177 (regcache_invalidate_one, regcache_invalidate): New
22179 (new_register_cache): Renamed from create_register_cache.
22180 Return the new regcache.
22181 (free_register_cache): Change argument to a void *.
22182 (registers_to_string, registers_from_string): Call get_regcache
22183 with fetch flag set.
22184 (register_data): Make static. Pass fetch flag to get_regcache.
22185 (supply_register): Call get_regcache with fetch flag clear.
22186 (collect_register): Call get_regcache with fetch flag set.
22187 (collect_register_as_string): New function.
22188 * regcache.h: Update.
22189 * remote-utils.c (putpkt): Flush after debug output and use
22191 Handle input interrupts while waiting for an ACK.
22192 (input_interrupt): Use signal_pid method.
22193 (getpkt): Flush after debug output and use stderr.
22194 (outreg): Use collect_register_as_string.
22195 (new_thread_notify, dead_thread_notify): New functions.
22196 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22197 and general_thread.
22198 (look_up_one_symbol): Flush after debug output.
22199 * server.c (step_thread, server_waiting): New variables.
22200 (start_inferior): Don't use signal_pid. Update call to mywait.
22201 (attach_inferior): Update call to mywait.
22202 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22203 (main): Don't fetch/store registers explicitly. Use
22204 set_desired_inferior. Support proposed ``Hs'' packet. Update
22206 * server.h: Update.
22207 (struct inferior_list, struct_inferior_list_entry): New.
22208 * target.c (set_desired_inferior): New.
22209 (write_inferior_memory): Constify.
22210 (mywait): New function.
22211 * target.h: Update.
22212 (struct target_ops): New signal_pid method.
22213 (mywait): Removed macro, added prototype.
22215 * linux-low.h (regset_func): Removed.
22216 (regset_fill_func, regset_store_func): New.
22217 (enum regset_type): New.
22218 (struct regset_info): Add type field. Use new operation types.
22219 (struct linux_target_ops): stop_pc renamed to get_pc.
22220 Add decr_pc_after_break and breakpoint_at.
22221 (get_process, get_thread_proess, get_process_thread)
22222 (strut process_info, all_processes, linux_attach_lwp)
22223 (thread_db_init): New.
22225 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22226 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22227 (the_low_target): Add new members.
22228 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22229 (i386_store_fpxregset): Constify.
22230 (target_regsets): Add new kind identifier.
22231 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22232 (i386_set_pc): Add debugging.
22233 (i386_breakpoint_at): New function.
22234 (the_low_target): Add new members.
22235 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22236 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22237 (mips_breakpoint_at): New.
22238 (the_low_target): Add new members.
22239 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22240 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22241 (the_low_target): Add new members.
22242 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22243 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22244 (the_low_target): Add new members.
22245 * linux-x86-64-low.c (target_regsets): Add new kind
22248 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22250 From Martin Pool <mbp@samba.org>:
22251 * server.c (gdbserver_usage): New function.
22254 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22256 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22257 stop_at -> stop_pc.
22259 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22261 * Makefile.in: Remove obsolete code.
22263 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22265 * linux-low.c (regsets_fetch_inferior_registers),
22266 (regsets_store_inferior_registers): Removed cast to int from
22268 * regcache.h: Added declaration of struct inferior_info.
22270 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22272 * inferiors.c (struct inferior_info): Add regcache_data.
22273 (add_inferior): Call create_register_cache.
22274 (clear_inferiors): Call free_register_cache.
22275 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22276 * regcache.c (struct inferior_regcache_data): New.
22277 (registers): Remove.
22278 (get_regcache): New function.
22279 (create_register_cache, free_register_cache): New functions.
22280 (set_register_cache): Don't initialize the register cache here.
22281 (registers_to_string, registers_from_string, register_data): Call
22283 * regcache.h: Add prototypes.
22284 * server.h: Likewise.
22286 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22288 * mem-break.c: New file.
22289 * mem-break.h: New file.
22290 * Makefile.in: Add mem-break.o rule; update server.h
22292 * inferiors.c (struct inferior_info): Add target_data
22294 (clear_inferiors): Free target_data member if set.
22295 (inferior_target_data, set_inferior_target_data): New functions.
22296 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22297 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22298 * linux-low.c (linux_bp_reinsert): New variable.
22299 (struct inferior_linux_data): New.
22300 (linux_create_inferior): Use set_inferior_target_data.
22301 (linux_attach): Likewise. Call add_inferior.
22302 (linux_wait_for_one_inferior): New function.
22303 (linux_wait): Call it.
22304 (linux_write_memory): Add const.
22305 (initialize_low): Call set_breakpoint_data.
22306 * linux-low.h (struct linux_target_ops): Add breakpoint
22308 * server.c (attach_inferior): Remove extra add_inferior
22310 * server.h: Include mem-break.h. Update inferior.c
22312 * target.c (read_inferior_memory)
22313 (write_inferior_memory): New functions.
22314 * target.h (read_inferior_memory)
22315 (write_inferior_memory): Change macros to prototypes.
22316 (struct target_ops): Update comments. Add const to write_memory
22319 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22321 * linux-low.c (usr_store_inferior_registers): Support
22322 registers which are allowed to fail to store.
22323 * linux-low.h (linux_target_ops): Likewise.
22324 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22325 (ppc_cannot_store_register): FPSCR may not be storable.
22327 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22329 * server.h: Include <string.h> if HAVE_STRING_H.
22330 * ChangeLog: Correct paths in last ChangeLog entry.
22332 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22334 * linux-low.h: Remove obsolete prototypes.
22335 (struct linux_target_ops): New.
22336 (extern the_low_target): New.
22337 * linux-low.c (num_regs, regmap): Remove declarations.
22338 (register_addr): Use the_low_target explicitly.
22339 (fetch_register): Likewise.
22340 (usr_fetch_inferior_registers): Likewise.
22341 (usr_store_inferior_registers): Likewise.
22342 * linux-arm-low.c (num_regs): Remove.
22343 (arm_num_regs): Define.
22344 (arm_regmap): Renamed from regmap, made static.
22345 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22347 (arm_cannot_store_register): Renamed from cannot_store_register,
22349 (the_low_target): New.
22350 * linux-i386-low.c (num_regs): Remove.
22351 (i386_num_regs): Define.
22352 (i386_regmap): Renamed from regmap, made static.
22353 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22355 (i386_cannot_store_register): Renamed from cannot_store_register,
22357 (the_low_target): New.
22358 * linux-ia64-low.c (num_regs): Remove.
22359 (ia64_num_regs): Define.
22360 (ia64_regmap): Renamed from regmap, made static.
22361 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22363 (ia64_cannot_store_register): Renamed from cannot_store_register,
22365 (the_low_target): New.
22366 * linux-m68k-low.c (num_regs): Remove.
22367 (m68k_num_regs): Define.
22368 (m68k_regmap): Renamed from regmap, made static.
22369 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22371 (m68k_cannot_store_register): Renamed from cannot_store_register,
22373 (the_low_target): New.
22374 * linux-mips-low.c (num_regs): Remove.
22375 (mips_num_regs): Define.
22376 (mips_regmap): Renamed from regmap, made static.
22377 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22379 (mips_cannot_store_register): Renamed from cannot_store_register,
22381 (the_low_target): New.
22382 * linux-ppc-low.c (num_regs): Remove.
22383 (ppc_num_regs): Define.
22384 (ppc_regmap): Renamed from regmap, made static.
22385 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22387 (ppc_cannot_store_register): Renamed from cannot_store_register,
22389 (the_low_target): New.
22390 * linux-s390-low.c (num_regs): Remove.
22391 (s390_num_regs): Define.
22392 (s390_regmap): Renamed from regmap, made static.
22393 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22395 (s390_cannot_store_register): Renamed from cannot_store_register,
22397 (the_low_target): New.
22398 * linux-sh-low.c (num_regs): Remove.
22399 (sh_num_regs): Define.
22400 (sh_regmap): Renamed from regmap, made static.
22401 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22403 (sh_cannot_store_register): Renamed from cannot_store_register,
22405 (the_low_target): New.
22406 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22407 (the_low_target): New.
22409 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22411 * Makefile.in: Add stamp-h target.
22412 * configure.in: Create stamp-h.
22413 * configure: Regenerated.
22415 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22417 * inferiors.c: New file.
22418 * target.c: New file.
22419 * target.h: New file.
22420 * Makefile.in: Add target.o and inferiors.o. Update
22422 * linux-low.c (inferior_pid): New static variable,
22423 moved from server.c.
22424 (linux_create_inferior): Renamed from create_inferior.
22425 Call add_inferior. Return 0 on success instead of a PID.
22426 (linux_attach): Renamed from myattach.
22427 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22428 (linux_thread_alive): Renamed from mythread_alive.
22429 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22431 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22432 (regsets_store_inferior_registers): Correct error message.
22433 Add missing ``return 0''.
22434 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22435 (linux_store_registers): Renamed from store_inferior_registers.
22436 (linux_read_memory): Renamed from read_inferior_memory.
22437 (linux_write_memory): Renamed from write_inferior_memory.
22438 (linux_target_ops): New structure.
22439 (initialize_low): Call set_target_ops ().
22440 * remote-utils.c (unhexify): New function.
22441 (hexify): New function.
22442 (input_interrupt): Send signals to ``signal_pid''.
22443 * server.c (inferior_pid): Remove.
22444 (start_inferior): Update create_inferior call.
22445 (attach_inferior): Call add_inferior.
22446 (handle_query): New function.
22447 (main): Call handle_query for `q' packets.
22448 * server.h: Include "target.h". Remove obsolete prototypes.
22449 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22451 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22453 * Makefile.in: Add WARN_CFLAGS. Update configury
22455 * configure.in: Check for <string.h>
22456 * configure: Regenerate.
22457 * config.in: Regenerate.
22458 * gdbreplay.c: Include needed system headers.
22459 (remote_open): Remove strchr prototype.
22460 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22461 * regcache.c (supply_register): Change buf argument to const void *.
22462 (supply_register_by_name): Likewise.
22463 (collect_register): Change buf argument to void *.
22464 (collect_register_by_name): Likewise.
22465 * regcache.h: Add missing prototypes.
22466 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22467 * server.c (handle_query): New function.
22468 (attached): New static variable, moved out of main.
22469 (main): Quiet longjmp clobber warnings.
22470 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22471 * utils.c (error): Remove NORETURN.