1 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3 * server.cc (gdbserver_version): Update copyright year.
4 * gdbreplay.cc (gdbreplay_version): Likewise.
6 2020-12-16 Luis Machado <luis.machado@linaro.org>
8 * linux-aarch64-low.cc (address_significant): New function.
9 (aarch64_target::low_stopped_data_address): Handle the TBI.
11 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
13 * Makefile.in (IPA_LIB): Include libiberty library.
15 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
17 * server.cc (gdbserver_usage): Add missing option to usage text.
18 (gdbserver_show_disableable): Likewise.
20 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
22 * ax.cc: Fix indentation.
23 * dll.cc: Fix indentation.
24 * inferiors.h: Fix indentation.
25 * linux-low.cc: Fix indentation.
26 * linux-nios2-low.cc: Fix indentation.
27 * linux-ppc-ipa.cc: Fix indentation.
28 * linux-ppc-low.cc: Fix indentation.
29 * linux-x86-low.cc: Fix indentation.
30 * linux-xtensa-low.cc: Fix indentation.
31 * regcache.cc: Fix indentation.
32 * server.cc: Fix indentation.
33 * tracepoint.cc: Fix indentation.
35 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
37 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
39 * configure: Re-generate.
41 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
43 * configure: Re-generate.
45 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
47 * configure: Re-generate.
49 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
51 * configure: Re-generate.
53 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
55 * configure: Re-generate.
57 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
59 * configure.ac: Modernize.
60 * configure: Re-generate.
62 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
64 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
66 * configure: Re-generate.
68 2020-10-26 Pedro Alves <pedro@palves.net>
70 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
71 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
74 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
76 * acinclude.m4: Update ptrace.m4 path.
78 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
80 * config.in: Re-generate.
81 * configure: Re-generate.
83 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
85 * server.cc (handle_general_set): Don't use sprintf with
86 argument overlapping buffer.
88 2020-10-20 Tom Tromey <tromey@adacore.com>
91 * inferiors.cc (remove_thread): Clear current_thread before
94 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
96 * netbsd-low.cc (netbsd_tdesc): Remove.
97 (netbsd_add_process): Likewise.
98 (netbsd_process_target::create_inferior): Update.
100 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
102 * linux-arc-low.cc (arc_linux_read_description): Release the
103 unique_ptr returned from arc_create_target_description.
105 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
107 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
108 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
110 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
112 * linux-low.cc (linux_process_target::handle_extended_wait):
113 Release the unique_ptr returned from allocate_target_description.
114 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
115 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
116 (tdesc_i386_linux_no_xml): Change type.
117 (x86_linux_read_description): Borrow pointer from unique_ptr
119 (x86_target::get_ipa_tdesc_idx): Likewise.
120 (initialize_low_arch): Likewise.
121 * tdesc.cc (allocate_target_description): Update return type.
123 2020-10-07 Tom Tromey <tromey@adacore.com>
125 * server.cc (handle_search_memory): Remove dead code.
127 2020-10-07 Tom Tromey <tromey@adacore.com>
129 * server.cc (handle_search_memory_1): Remove.
130 (handle_search_memory): Use simple_search_memory.
132 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
134 * Makefile.in (COMPILE): Add CXXFLAGS.
135 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
136 (gdbserver$(EXEEXT)): Add CXXFLAGS.
137 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
138 ($(IPA_LIB)): Add CXXFLAGS.
139 (IPAGENT_COMPILE): Add CXXFLAGS.
141 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
143 * configure.srv: Support ARC architecture.
144 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
145 * linux-arc-low.cc: New file.
147 2020-10-07 Kamil Rytarowski <n54@gmx.com>
149 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
150 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
151 (netbsd_process_target::qxfer_libraries_svr4): Update.
153 2020-10-07 Kamil Rytarowski <n54@gmx.com>
155 * netbsd-low.cc: Fix whitespace formatting.
156 * netbsd-amd64-low.cc: Likewise.
158 2020-10-07 Kamil Rytarowski <n54@gmx.com>
160 * netbsd-low.cc (netbsd_process_target::read_memory)
161 (netbsd_process_target::write_memory): Update.
163 2020-10-07 Kamil Rytarowski <n54@gmx.com>
165 * netbsd-aarch64-low.cc: Add.
166 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
167 * configure.srv: Add aarch64*-*-netbsd*.
169 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
171 * regcache.cc (register_data): Remove unused "fetch" argument.
173 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
175 * server.cc (handle_monitor_command): Handle "set
177 (captured_main): Handle "--debug-event-loop".
178 (monitor_show_help): Mention new setting.
179 (gdbserver_usage): Mention new flag.
181 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
183 * linux-low.cc (linux_process_target::async): Pass name to
185 * remote-utils.cc (handle_accept_event): Likewise.
186 (remote_open): Likewise.
188 2020-10-01 Kamil Rytarowski <n54@gmx.com>
190 * netbsd-i386-low.cc: Add.
191 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
192 * configure.srv: Add i[34567]86-*-netbsd*.
194 2020-10-01 Kamil Rytarowski <n54@gmx.com>
196 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
197 (netbsd_target_regsets): Now const.
198 (the_low_target): Remove.
199 (class netbsd_amd64_target, the_netbsd_amd64_target)
200 (the_netbsd_target): Add.
201 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
203 (netbsd_process_target::fetch_registers)
204 (netbsd_process_target::store_registers, initialize_low): Update.
205 (the_netbsd_target): Remove.
206 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
207 (the_low_target, netbsd_tdesc): Remove.
208 (netbsd_process_target::get_regs_info)
209 (netbsd_process_target::low_arch_setup): Add.
211 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
213 * win32-low.cc: Remove local wow64_process variable.
214 * win32-low.h: Remove local wow64_process variable.
216 2020-09-18 Tom Tromey <tromey@adacore.com>
218 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
219 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
220 (netbsd_process_target::wait): Change type of target_options.
221 * win32-low.h (class win32_process_target) <wait>: Update.
222 * win32-low.cc (win32_process_target::wait): Update.
223 * target.h (class process_stratum_target) <wait>: Update.
225 * target.cc (mywait, target_wait): Change type of "options".
226 * linux-low.h (class linux_process_target) <wait, wait_1>:
228 * linux-low.cc (linux_process_target::wait)
229 (linux_process_target::wait_1): Update.
231 2020-09-15 Tom Tromey <tromey@adacore.com>
233 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
234 (xmltarget_amd64_linux_no_xml): Now arrays.
236 2020-09-14 Tom Tromey <tromey@adacore.com>
238 * tracepoint.cc (eval_result_names): Now const.
239 * ax.cc (gdb_agent_op_names): Now const.
241 2020-09-10 Kamil Rytarowski <n54@gmx.com>
243 * netbsd-low.cc: Add.
244 * netbsd-low.h: Likewise.
245 * netbsd-amd64-low.cc: Likewise.
246 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
247 "netbsd-amd64-low.cc".
248 * configure.srv: Add x86_64-*-netbsd*.
250 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
252 * server.cc (captured_main): Accept multiple `--selftest=`
253 options. Pass all `--selftest=` arguments to run_tests.
255 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
257 * configure, config.in: Regenerate.
259 2020-07-26 Eli Zaretskii <eliz@gnu.org>
261 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
262 When checking whether socklen_t type is defined, use ws2tcpip.h if
263 it is available and sys/socket.h isn't.
264 * configure: Regenerate.
265 * config.in: Regenerate.
267 2020-07-22 Pedro Alves <pedro@palves.net>
269 * inferiors.cc (switch_to_process): New, moved here from
270 thread-db.cc, and made extern.
271 * inferiors.h (switch_to_process): Declare.
272 * server.cc: Include "gdbsupport/scoped_restore.h".
273 (handle_qxfer_threads_proper): Now returns bool. Prepare to
274 access memory around target calls.
275 (handle_qxfer_threads): Handle errors.
276 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
278 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
280 * linux-low.cc (stopped_pids): Make static.
282 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
284 * tdesc.cc (allocate_target_description): Add header comment.
285 (target_desc_deleter::operator()): New function.
286 * tdesc.h (struct target_desc): Declare as final.
288 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
290 * server.cc (handle_query): Use std::vector of
291 std::string for `qsupported` vector. Use separate
293 * target.h (class process_stratum_target) <process_qsupported>:
294 Change parameters to array_view of const char *.
295 (target_process_qsupported): Remove `count` parameter.
296 * target.cc (process_stratum_target::process_qsupported): Change
297 parameters to array_view of const char *.
298 * linux-x86-low.cc (class x86_target) <process_qsupported>:
301 2020-06-29 Tom de Vries <tdevries@suse.de>
303 * ax.h: Include gdbsupport/debug_agent.h.
305 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
307 * tdesc.cc (struct tdesc_compatible_info): New struct.
308 (tdesc_compatible_info_list): New function.
309 (tdesc_compatible_info_arch_name): New function.
311 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
313 Use std::list to stop pending signal instead of manually-created
315 * linux-low.h: Include <list>.
316 (struct pending_signal): Move here from linux-low.cc.
317 (struct lwp_info) <pending_signals>
318 <pending_signals_to_report>: Update the type.
319 * linux-low.cc (struct pending_signals): Remove.
320 (linux_process_target::delete_lwp)
321 (linux_process_target::add_lwp)
322 (enqueue_one_deferred_signal)
323 (dequeue_one_deferred_signal)
324 (enqueue_pending_signal)
325 (linux_process_target::resume_one_lwp_throw)
326 (linux_process_target::thread_needs_step_over)
327 (linux_process_target::resume_one_thread)
328 (linux_process_target::proceed_one_lwp): Update the use of pending
331 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
333 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
336 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
338 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
339 * configure.srv: Remove mingw32ce cases.
340 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
341 * win32-low.h (to_back_slashes): Remove.
342 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
344 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
346 * Makefile.in (SFILES): linux-tile-low.cc.
347 * configure.srv: Remove tilegx case.
348 * linux-tile-low.cc: Remove.
350 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
352 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
353 * configure.srv: Remove m32r case.
354 * linux-m32r-low.cc: Remove.
356 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
358 * Makefile.in (SFILES): Remove linux-cris-low.c.
359 * configure.srv: Remove cris cases.
360 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
362 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
364 * Makefile.in (SFILES): Remove linux-bfin-low.c.
365 * configure.srv: Remove bfin case.
366 * linux-bfin-low.cc: Remove.
367 * linux-low.cc: Remove BFIN-conditional code.
369 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
371 * configure: Re-generate.
372 * configure.ac: Remove srv_qnx test.
373 * configure.srv: Remove nto case.
374 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
375 * remote-utils.c: Remove __QNX__-guarded code.
377 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
379 * configure: Re-generate.
380 * configure.ac: Remove srv_lynxos test.
381 * configure.srv: Remove lynxos cases.
382 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
385 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
387 * README: Fix a few outdated or incoherent things.
389 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
391 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
392 (win32_clear_inferiors): Use open_process_used.
393 (get_child_debug_event): Likewise.
395 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
398 * linux-low.cc (linux_process_target::create_inferior),
399 lynx-low.cc (lynx_process_target::create_inferior),
400 win32-low.cc (win32_process_target::create_inferior): Use
401 construct_inferior_arguments instead of stringify_argv
402 to get string representation which properly escapes
404 * server.cc (handle_v_run): Just pass empty program arg
405 as such, since any further processing is now handled via
406 construct_inferior_arguments.
408 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
410 * nto-low.cc (nto_process_target::create_inferior): Pass
411 argv to spawnp function as char **.
413 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
415 * server.cc (captured_main), (handle_v_run): No longer
416 insert extra NULL element to args vector.
418 2020-05-23 Pedro Alves <palves@redhat.com>
420 * gdb-safe-ctype.h: New.
422 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
424 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
425 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
426 (ia64_target::low_breakpoint_at): Ditto.
428 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
430 * win32-i386-low.cc (i386_supports_z_point_type): Handle
431 Z_PACKET_HW_BP z_type.
432 (i386_insert_point): Handle raw_bkpt_type type.
433 (i386_remove_point): Likewise.
435 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
437 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
439 * win32-arm-low.cc (arm_num_regs): New function.
440 (struct win32_target_ops): Use arm_num_regs.
441 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
443 (i386_get_thread_context): Likewise.
444 (i386_prepare_to_resume): Likewise.
445 (i386_thread_added): Likewise.
446 (i386_single_step): Likewise.
447 (i386_fetch_inferior_register): Likewise.
448 (i386_store_inferior_register): Likewise.
449 (i386_arch_setup): Likewise.
450 (i386_win32_num_regs): New function.
451 (struct win32_target_ops): Use i386_win32_num_regs.
452 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
454 (win32_require_context): Likewise.
455 (child_add_thread): Likewise.
456 (do_initial_child_stuff): Likewise.
457 (continue_one_thread): Likewise.
458 (win32_process_target::resume): Likewise.
459 (load_psapi): Likewise.
460 (win32_add_all_dlls): Likewise.
461 (maybe_adjust_pc): Likewise.
462 (win32_process_target::qxfer_siginfo): Likewise.
463 (initialize_low): Likewise.
464 * win32-low.h (struct win32_target_ops): Change num_regs to
467 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
469 * configure.ac: Remove check for fs_base/gs_base in
471 * configure: Re-generate.
472 * config.in: Re-generate.
473 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
474 x86_store_gregset): Adjust.
476 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
478 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
481 2020-04-16 Tom Tromey <tromey@adacore.com>
483 * win32-low.cc (windows_nat::handle_access_violation): New
486 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
488 * win32-low.cc (get_child_debug_event): Fix format string warning.
490 2020-04-13 Tom Tromey <tom@tromey.com>
492 * server.h (gdb_fildes_t): Remove typedef.
493 * remote-utils.c (remote_desc, list_desc): Now int.
494 (INVALID_DESCRIPTOR): Remove.
495 (gdb_connected, remote_close)
496 (check_remote_input_interrupt_request): Update.
497 * utils.h (pfildes): Don't declare.
498 * utils.c (pfildes): Remove.
500 2020-04-13 Tom Tromey <tom@tromey.com>
502 * server.h (handle_serial_event, handle_target_event): Update.
503 * server.c: Don't call initialize_event_loop.
504 (keep_processing_events): New global.
505 (handle_serial_event): Return void. Set keep_processing_events.
506 (handle_target_event): Return void.
507 (start_event_loop): Move from event-loop.c. Rewrite.
508 * remote-utils.c (handle_accept_event): Return void.
509 (reset_readchar): Use delete_timer.
510 (process_remaining): Return void.
511 (reschedule): Use create_timer.
512 * event-loop.h: Remove.
513 * event-loop.cc: Remove.
514 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
516 2020-04-13 Tom Tromey <tom@tromey.com>
518 * server.c (invoke_async_signal_handlers)
519 (check_async_event_handlers, flush_streams, gdb_select): New
522 2020-04-13 Tom Tromey <tom@tromey.com>
524 * configure: Rebuild.
525 * config.in: Rebuild.
527 2020-04-08 Tom Tromey <tromey@adacore.com>
530 * win32-low.c (child_continue): Call matching_pending_stop.
531 (get_child_debug_event): Call fetch_pending_stop. Push pending
534 2020-04-08 Tom Tromey <tromey@adacore.com>
536 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
537 (win32_process_target::supports_stopped_by_sw_breakpoint):
539 * win32-low.c (win32_supports_z_point_type): Always handle
541 (win32_insert_point): Call insert_memory_breakpoint when needed.
542 (win32_remove_point): Call remove_memory_breakpoint when needed.
543 (win32_process_target::stopped_by_sw_breakpoint)
544 (win32_process_target::supports_stopped_by_sw_breakpoint): New
546 (win32_target_ops): Update.
547 (maybe_adjust_pc): New function.
548 (win32_wait): Call maybe_adjust_pc.
550 2020-04-08 Tom Tromey <tromey@adacore.com>
552 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
554 * win32-i386-low.c (the_low_target): Update.
555 * win32-arm-low.c (the_low_target): Update.
557 2020-04-08 Tom Tromey <tromey@adacore.com>
559 * win32-low.h (win32_process_target::read_pc)
560 (win32_process_target::write_pc): Declare.
561 * win32-low.c (win32_process_target::read_pc)
562 (win32_process_target::write_pc): New methods.
563 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
565 (the_low_target): Update.
566 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
568 (the_low_target): Update.
570 2020-04-08 Tom Tromey <tromey@adacore.com>
572 * win32-low.c (win32_kill, get_child_debug_event): Use
573 wait_for_debug_event.
575 2020-04-08 Tom Tromey <tromey@adacore.com>
577 * win32-low.c (child_continue): Call continue_last_debug_event.
579 2020-04-08 Tom Tromey <tromey@adacore.com>
581 * win32-low.c (handle_exception): Remove.
582 (windows_nat::handle_ms_vc_exception): New function.
583 (get_child_debug_event): Add "continue_status" parameter.
585 (win32_wait): Update.
587 2020-04-08 Tom Tromey <tromey@adacore.com>
589 * win32-low.c (windows_nat::handle_load_dll): Rename from
590 handle_load_dll. No longer static.
591 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
594 2020-04-08 Tom Tromey <tromey@adacore.com>
596 * win32-low.c (handle_output_debug_string): Add parameter. Change
598 (win32_kill, get_child_debug_event): Update.
600 2020-04-08 Tom Tromey <tromey@adacore.com>
602 * win32-low.c (current_process_handle, current_process_id)
603 (main_thread_id, last_sig, current_event, siginfo_er): Move to
606 2020-04-08 Tom Tromey <tromey@adacore.com>
608 * win32-low.c (get_image_name): Remove.
609 (handle_load_dll): Update.
611 2020-04-08 Tom Tromey <tromey@adacore.com>
613 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
614 No longer static. Change parameters.
615 (child_add_thread, child_fetch_inferior_registers)
616 (child_store_inferior_registers, win32_resume)
617 (win32_get_tib_address): Update.
619 2020-04-08 Tom Tromey <tromey@adacore.com>
621 * win32-low.h (struct win32_target_ops): Use qualified names where
623 * win32-i386-low.c: Add "using namespace".
624 * win32-low.c: Add "using namespace".
625 * win32-arm-low.c: Add "using namespace".
627 2020-04-08 Tom Tromey <tromey@adacore.com>
629 * win32-low.c (delete_thread_info): Don't call CloseHandle.
631 2020-04-08 Tom Tromey <tromey@adacore.com>
633 * win32-low.c (win32_require_context, suspend_one_thread): Use
634 windows_thread_info::suspend.
635 (continue_one_thread): Use windows_thread_info::resume.
636 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
638 2020-04-08 Tom Tromey <tromey@adacore.com>
640 * win32-i386-low.c (update_debug_registers)
641 (i386_prepare_to_resume, i386_thread_added): Update.
643 2020-04-08 Tom Tromey <tromey@adacore.com>
645 * win32-low.c (child_add_thread): Use new.
646 (delete_thread_info): Use delete.
648 2020-04-08 Tom Tromey <tromey@adacore.com>
650 * win32-low.h (struct windows_thread_info): Remove.
652 2020-04-08 Tom Tromey <tromey@adacore.com>
654 * win32-low.h (struct windows_thread_info): Rename from
655 win32_thread_info. Remove typedef.
656 (struct win32_target_ops, win32_require_context): Update.
657 * win32-low.c (win32_get_thread_context)
658 (win32_set_thread_context, win32_prepare_to_resume)
659 (win32_require_context, thread_rec, child_add_thread)
660 (delete_thread_info, continue_one_thread)
661 (child_fetch_inferior_registers, child_store_inferior_registers)
662 (win32_resume, suspend_one_thread, win32_get_tib_address):
664 * win32-i386-low.c (update_debug_registers)
665 (win32_get_current_dr, i386_get_thread_context)
666 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
667 (i386_fetch_inferior_register, i386_store_inferior_register):
669 * win32-arm-low.c (arm_get_thread_context)
670 (arm_fetch_inferior_register, arm_store_inferior_register):
673 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
675 * linux-low.h (struct linux_target_ops): Remove.
676 (the_low_target): Remove.
677 * linux-x86-low.cc (the_low_target): Remove.
678 * linux-aarch64-low.cc (the_low_target): Ditto.
679 * linux-arm-low.cc (the_low_target): Ditto.
680 * linux-bfin-low.cc (the_low_target): Ditto.
681 * linux-cris-low.cc (the_low_target): Ditto.
682 * linux-crisv32-low.cc (the_low_target): Ditto.
683 * linux-ia64-low.cc (the_low_target): Ditto.
684 * linux-m32r-low.cc (the_low_target): Ditto.
685 * linux-m68k-low.cc (the_low_target): Ditto.
686 * linux-mips-low.cc (the_low_target): Ditto.
687 * linux-nios2-low.cc (the_low_target): Ditto.
688 * linux-ppc-low.cc (the_low_target): Ditto.
689 * linux-riscv-low.cc (the_low_target): Ditto.
690 * linux-s390-low.cc (the_low_target): Ditto.
691 * linux-sh-low.cc (the_low_target): Ditto.
692 * linux-sparc-low.cc (the_low_target): Ditto.
693 * linux-tic6x-low.cc (the_low_target): Ditto.
694 * linux-tile-low.cc (the_low_target): Ditto.
695 * linux-xtensa-low.cc (the_low_target): Ditto.
697 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
699 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
700 linux target define the op by overriding the declaration in
701 process_stratum_target.
703 * linux-low.h (struct linux_target_ops): Remove the op.
704 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
705 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
706 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
707 (x86_get_ipa_tdesc_idx): Turn into...
708 (x86_target::get_ipa_tdesc_idx): ...this.
709 (the_low_target): Remove the op field.
710 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
711 (ppc_get_ipa_tdesc_idx): Turn into...
712 (ppc_target::get_ipa_tdesc_idx): ...this.
713 (the_low_target): Remove the op field.
714 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
715 (s390_get_ipa_tdesc_idx): Turn into...
716 (s390_target::get_ipa_tdesc_idx): ...this.
717 (the_low_target): Remove the op field.
719 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
721 Turn the 'get_syscall_trapinfo' linux target op into a method
722 of process_stratum_target.
724 * linux-low.h (struct linux_target_ops): Remove the op.
725 (class linux_process_target) <get_syscall_trapinfo>
726 <gdb_catch_this_syscall>
727 <low_supports_catch_syscall>
728 <low_get_syscall_trapinfo>: Declare.
729 * linux-low.cc (get_syscall_trapinfo): Turn into...
730 (linux_process_target::get_syscall_trapinfo): ...this.
731 (linux_process_target::low_get_syscall_trapinfo): Define.
732 (gdb_catch_this_syscall_p): Turn into...
733 (linux_process_target::gdb_catch_this_syscall): ...this.
734 (linux_process_target::low_supports_catch_syscall): Define.
736 Update the callers below.
738 (linux_process_target::wait_1)
739 (linux_process_target::supports_catch_syscall)
741 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
742 <low_get_syscall_trapinfo>: Declare.
743 (x86_target::low_supports_catch_syscall): Define.
744 (x86_get_syscall_trapinfo): Turn into...
745 (x86_target::low_get_syscall_trapinfo): ...this.
746 (the_low_target): Remove the op field.
747 * linux-aarch64-low.cc (class aarch64_target)
748 <low_supports_catch_syscall>
749 <low_get_syscall_trapinfo>: Declare.
750 (aarch64_target::low_supports_catch_syscall): Define.
751 (aarch64_get_syscall_trapinfo): Turn into...
752 (aarch64_target::low_get_syscall_trapinfo): ...this.
753 (the_low_target): Remove the op field.
754 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
755 <low_get_syscall_trapinfo>: Declare.
756 (arm_target::low_supports_catch_syscall): Define.
757 (arm_get_syscall_trapinfo): Turn into...
758 (arm_target::low_get_syscall_trapinfo): ...this.
759 (the_low_target): Remove the op field.
760 * linux-ppc-low.cc (the_low_target): Remove the op field.
761 * linux-s390-low.cc (the_low_target): Remove the op field.
763 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
765 Remove the 'supports_hardware_single_step' linux target op and
766 override the process_stratum_target's op definition in
767 linux_process_target to return true.
769 * linux-low.h (struct linux_target_ops): Remove the op.
770 (class linux_process_target) <finish_step_over>
771 <maybe_hw_step>: Declare.
772 * linux-low.cc (can_hardware_single_step): Remove.
773 (maybe_hw_step): Turn into...
774 (linux_process_target::maybe_hw_step): ...this.
775 (finish_step_over): Turn into...
776 (linux_process_target::finish_step_over): ...this.
777 (linux_process_target::supports_hardware_single_step): Update
780 Update the callers below.
782 (linux_process_target::single_step)
783 (linux_process_target::resume_one_lwp_throw)
785 * linux-arm-low.cc (class arm_target)
786 <supports_hardware_single_step>: Declare.
787 (arm_supports_hardware_single_step): Turn into...
788 (arm_target::supports_hardware_single_step): ...this.
789 (the_low_target): Remove the op field.
790 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
791 (the_low_target): Remove the op field.
792 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
794 (the_low_target): Remove the op field.
795 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
796 (the_low_target): Remove the op field.
797 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
798 (the_low_target): Remove the op field.
799 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
800 (the_low_target): Remove the op field.
801 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
802 (the_low_target): Remove the op field.
803 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
804 (the_low_target): Remove the op field.
805 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
806 (the_low_target): Remove the op field.
807 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
808 (the_low_target): Remove the op field.
809 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
810 (the_low_target): Remove the op field.
811 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
812 (the_low_target): Remove the op field.
813 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
815 (the_low_target): Remove the op field.
817 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
819 Turn the 'supports_range_stepping' linux target op into a method
820 of linux_process_target.
822 * linux-low.h (struct linux_target_ops): Remove the op.
823 (class linux_process_target) <low_supports_range_stepping>: Declare.
824 * linux-low.cc (linux_process_target::low_supports_range_stepping):
826 (linux_process_target::supports_range_stepping): Update the call
828 * linux-x86-low.cc (class x86_target)
829 <low_supports_range_stepping>: Declare.
830 (x86_supports_range_stepping): Turn into...
831 (x86_target::low_supports_range_stepping): ...this.
832 (the_low_target): Remove the op field.
833 * linux-aarch64-low.cc (class aarch64_target)
834 <low_supports_range_stepping>: Declare.
835 (aarch64_supports_range_stepping): Turn into...
836 (aarch64_target::low_supports_range_stepping): ...this.
837 (the_low_target): Remove the op field.
838 * linux-arm-low.cc (the_low_target): Remove the op field.
839 * linux-bfin-low.cc (the_low_target): Ditto.
840 * linux-crisv32-low.cc (the_low_target): Ditto.
841 * linux-m32r-low.cc (the_low_target): Ditto.
842 * linux-m68k-low.cc (the_low_target): Ditto.
843 * linux-ppc-low.cc (the_low_target): Ditto.
844 * linux-s390-low.cc (the_low_target): Ditto.
845 * linux-sh-low.cc (the_low_target): Ditto.
846 * linux-tic6x-low.cc (the_low_target): Ditto.
847 * linux-tile-low.cc (the_low_target): Ditto.
848 * linux-xtensa-low.cc (the_low_target): Ditto.
850 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
852 Remove the 'emit_ops' linux target ops and let the concrete
853 linux target define the op by overriding the declaration of
854 process_stratum_target.
856 * linux-low.h (struct linux_target_ops): Remove the op.
857 (class linux_process_target) <emit_ops>: Remove.
858 * linux-low.cc (linux_process_target::emit_ops): Remove.
859 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
860 (x86_emit_ops): Turn into...
861 (x86_target::emit_ops): ...this.
862 (the_low_target): Remove the op field.
863 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
864 (aarch64_emit_ops): Turn into...
865 (aarch64_target::emit_ops): ...this.
866 (the_low_target): Remove the op field.
867 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
868 (ppc_emit_ops): Turn into...
869 (ppc_target::emit_ops): ...this.
870 (the_low_target): Remove the op field.
871 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
872 (s390_emit_ops): Turn into...
873 (s390_target::emit_ops): ...this.
874 (the_low_target): Remove the op field.
875 * linux-arm-low.cc (the_low_target): Remove the op field.
876 * linux-bfin-low.cc (the_low_target): Ditto.
877 * linux-crisv32-low.cc (the_low_target): Ditto.
878 * linux-m32r-low.cc (the_low_target): Ditto.
879 * linux-m68k-low.cc (the_low_target): Ditto.
880 * linux-sh-low.cc (the_low_target): Ditto.
881 * linux-tic6x-low.cc (the_low_target): Ditto.
882 * linux-tile-low.cc (the_low_target): Ditto.
883 * linux-xtensa-low.cc (the_low_target): Ditto.
885 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
887 Remove the 'install_fast_tracepoint_jump_pad' and
888 'get_min_fast_tracepoint_insn_len' linux target ops to let the
889 concrete linux target define the ops by overriding the declarations
890 of process_stratum_target.
892 * linux-low.h (struct linux_target_ops): Remove the ops.
893 (class linux_process_target) <supports_fast_tracepoints>
894 <install_fast_tracepoint_jump_pad>
895 <get_min_fast_tracepoint_insn_len>: Remove.
896 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
897 (linux_process_target::install_fast_tracepoint_jump_pad)
898 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
899 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
900 <install_fast_tracepoint_jump_pad>
901 <get_min_fast_tracepoint_insn_len>: Declare.
902 (x86_target::supports_fast_tracepoints): Define.
903 (x86_install_fast_tracepoint_jump_pad): Turn into...
904 (x86_target::install_fast_tracepoint_jump_pad): ...this.
905 (x86_get_min_fast_tracepoint_insn_len): Turn into...
906 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
907 (the_low_target): Remove the op fields.
908 * linux-aarch64-low.cc (class aarch64_target)
909 <supports_fast_tracepoints>
910 <install_fast_tracepoint_jump_pad>
911 <get_min_fast_tracepoint_insn_len>: Declare.
912 (aarch64_target::supports_fast_tracepoints): Define.
913 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
914 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
915 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
916 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
917 (the_low_target): Remove the op fields.
918 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
919 <install_fast_tracepoint_jump_pad>
920 <get_min_fast_tracepoint_insn_len>: Declare.
921 (ppc_target::supports_fast_tracepoints): Define.
922 (ppc_install_fast_tracepoint_jump_pad): Turn into...
923 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
924 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
925 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
926 (the_low_target): Remove the op fields.
927 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
928 <install_fast_tracepoint_jump_pad>
929 <get_min_fast_tracepoint_insn_len>: Declare.
930 (s390_target::supports_fast_tracepoints): Define.
931 (s390_install_fast_tracepoint_jump_pad): Turn into...
932 (s390_target::install_fast_tracepoint_jump_pad): ...this.
933 (s390_get_min_fast_tracepoint_insn_len): Turn into...
934 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
935 (the_low_target): Remove the op fields.
936 * linux-arm-low.cc (the_low_target): Remove the op fields.
937 * linux-bfin-low.cc (the_low_target): Ditto.
938 * linux-crisv32-low.cc (the_low_target): Ditto.
939 * linux-m32r-low.cc (the_low_target): Ditto.
940 * linux-m68k-low.cc (the_low_target): Ditto.
941 * linux-sh-low.cc (the_low_target): Ditto.
942 * linux-tic6x-low.cc (the_low_target): Ditto.
943 * linux-tile-low.cc (the_low_target): Ditto.
944 * linux-xtensa-low.cc (the_low_target): Ditto.
946 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
948 Turn the 'get_thread_area' linux target op into a method of
949 process_stratum_target.
951 * linux-low.h (struct linux_target_ops): Remove the op.
952 (class linux_process_target) <stuck_in_jump_pad>
953 <linux_fast_tracepoint_collecting>
954 <low_get_thread_area>: Declare.
955 * linux-low.cc (supports_fast_tracepoints): Remove.
956 (linux_fast_tracepoint_collecting): Turn into...
957 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
958 (linux_process_target::low_get_thread_area): Define.
959 (stuck_in_jump_pad_callback): Turn into...
960 (linux_process_target::stuck_in_jump_pad): ...this.
962 Update the caller below.
964 (linux_process_target::stabilize_threads)
966 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
968 (x86_get_thread_area): Turn into...
969 (x86_target::low_get_thread_area): ...this.
970 (the_low_target): Remove the op field.
971 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
973 (aarch64_get_thread_area): Turn into...
974 (aarch64_target::low_get_thread_area): ...this.
975 (the_low_target): Remove the op field.
976 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
978 (ppc_get_thread_area): Turn into...
979 (ppc_target::low_get_thread_area): ...this.
980 (the_low_target): Remove the op field.
981 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
983 (s390_get_thread_area): Turn into...
984 (s390_target::low_get_thread_area): ...this.
985 (the_low_target): Remove the op field.
986 * linux-arm-low.cc (the_low_target): Remove the op field.
987 * linux-bfin-low.cc (the_low_target): Ditto.
988 * linux-crisv32-low.cc (the_low_target): Ditto.
989 * linux-m32r-low.cc (the_low_target): Ditto.
990 * linux-m68k-low.cc (the_low_target): Ditto.
991 * linux-sh-low.cc (the_low_target): Ditto.
992 * linux-tic6x-low.cc (the_low_target): Ditto.
993 * linux-tile-low.cc (the_low_target): Ditto.
994 * linux-xtensa-low.cc (the_low_target): Ditto.
996 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
998 Remote the 'supports_tracepoints' linux target op and let the
999 concrete linux target define it by overriding the op declared in
1000 process_stratum_target.
1002 * linux-low.h (struct linux_target_ops): Remove the op.
1003 (class linux_process_target) <supports_tracepoints>: Remove.
1004 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1005 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1007 (x86_supports_tracepoints): Turn into...
1008 (x86_target::supports_tracepoints): ...this.
1009 (the_low_target): Remove the op field.
1010 * linux-aarch64-low.cc (class aarch64_target)
1011 <supports_tracepoints>: Declare.
1012 (aarch64_supports_tracepoints): Turn into...
1013 (aarch64_target::supports_tracepoints): ...this.
1014 (the_low_target): Remove the op field.
1015 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1017 (ppc_supports_tracepoints): Turn into...
1018 (ppc_target::supports_tracepoints): ...this.
1019 (the_low_target): Remove the op field.
1020 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1022 (s390_supports_tracepoints): Turn into...
1023 (s390_target::supports_tracepoints): ...this.
1024 (the_low_target): Remove the op field.
1025 * linux-arm-low.cc (the_low_target): Remove the op field.
1026 * linux-bfin-low.cc (the_low_target): Ditto.
1027 * linux-crisv32-low.cc (the_low_target): Ditto.
1028 * linux-m32r-low.cc (the_low_target): Ditto.
1029 * linux-m68k-low.cc (the_low_target): Ditto.
1030 * linux-sh-low.cc (the_low_target): Ditto.
1031 * linux-tic6x-low.cc (the_low_target): Ditto.
1032 * linux-tile-low.cc (the_low_target): Ditto.
1033 * linux-xtensa-low.cc (the_low_target): Ditto.
1035 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1037 Remove the 'process_qsupported' linux target op and let a concrete
1038 linux target define the op by overriding the op declaration in
1039 process_stratum_target.
1041 * linux-low.h (struct linux_target_ops): Remove the op.
1042 (class linux_process_target) <process_qsupported>: Remove.
1043 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1044 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1045 (x86_linux_process_qsupported): Turn into...
1046 (x86_target::process_qsupported): ...this.
1047 (the_low_target): Remove the op field.
1048 * linux-aarch64-low.cc (the_low_target): Remove the op
1050 * linux-arm-low.cc (the_low_target): Ditto.
1051 * linux-bfin-low.cc (the_low_target): Ditto.
1052 * linux-crisv32-low.cc (the_low_target): Ditto.
1053 * linux-m32r-low.cc (the_low_target): Ditto.
1054 * linux-m68k-low.cc (the_low_target): Ditto.
1055 * linux-ppc-low.cc (the_low_target): Ditto.
1056 * linux-s390-low.cc (the_low_target): Ditto.
1057 * linux-sh-low.cc (the_low_target): Ditto.
1058 * linux-tic6x-low.cc (the_low_target): Ditto.
1059 * linux-tile-low.cc (the_low_target): Ditto.
1060 * linux-xtensa-low.cc (the_low_target): Ditto.
1062 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1064 Turn the 'prepare_to_resume' linux target op into a method of
1065 linux_process_target.
1067 * linux-low.h (struct linux_target_ops): Remove the op.
1068 (class linux_process_target) <low_prepare_to_resume>: Declare.
1069 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1072 Update the callers below:
1074 (linux_process_target::resume_one_lwp_throw)
1075 (linux_process_target::low_prepare_to_resume)
1077 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1079 (x86_target::low_prepare_to_resume): Define.
1080 (the_low_target): Remove the op field.
1081 * linux-aarch64-low.cc (class aarch64_target)
1082 <low_prepare_to_resume>: Declare.
1083 (aarch64_target::low_prepare_to_resume): Define.
1084 (the_low_target): Remove the op field.
1085 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1087 (arm_prepare_to_resume): Turn into...
1088 (arm_target::low_prepare_to_resume): ...this.
1089 (the_low_target): Remove the op field.
1090 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1092 (mips_linux_prepare_to_resume): Turn into...
1093 (mips_target::low_prepare_to_resume): ...this.
1094 (the_low_target): Remove the op field.
1095 * linux-bfin-low.cc (the_low_target): Remove the op field.
1096 * linux-crisv32-low.cc (the_low_target): Ditto.
1097 * linux-m32r-low.cc (the_low_target): Ditto.
1098 * linux-m68k-low.cc (the_low_target): Ditto.
1099 * linux-ppc-low.cc (the_low_target): Ditto.
1100 * linux-s390-low.cc (the_low_target): Ditto.
1101 * linux-sh-low.cc (the_low_target): Ditto.
1102 * linux-tic6x-low.cc (the_low_target): Ditto.
1103 * linux-tile-low.cc (the_low_target): Ditto.
1104 * linux-xtensa-low.cc (the_low_target): Ditto.
1106 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1108 Turn the 'new_process', 'delete_process', 'new_thread',
1109 'delete_thread', and 'new_fork' linux target ops into methods
1110 of linux_process_target.
1112 * linux-low.h (struct linux_target_ops): Remove the ops.
1113 (class linux_process_target) <add_linux_process>
1118 <check_zombie_leaders>
1121 <low_delete_process>
1124 <low_new_fork>: Declare.
1125 * linux-low.cc (delete_lwp): Turn into...
1126 (linux_process_target::delete_lwp): ...this.
1127 (linux_process_target::low_delete_thread): Define.
1128 (linux_add_process): Turn into...
1129 (linux_process_target::add_linux_process): ...this.
1130 (linux_process_target::low_new_process): Define.
1131 (linux_process_target::low_delete_process): Define.
1132 (linux_process_target::low_new_fork): Define.
1133 (add_lwp): Turn into...
1134 (linux_process_target::add_lwp): ...this.
1135 (linux_process_target::low_new_thread): Define.
1136 (linux_attach_lwp): Turn into...
1137 (linux_process_target::attach_lwp): ...this.
1138 (linux_detach_one_lwp): Turn into...
1139 (linux_process_target::detach_one_lwp): ...this.
1140 (linux_detach_lwp_callback): Remove and inline...
1141 (linux_process_target::detach): ...here.
1142 (check_zombie_leaders): Turn into...
1143 (linux_process_target::check_zombie_leaders): ...this.
1144 (filter_exit_event): Turn into...
1145 (linux_process_target::filter_exit_event): ...this.
1147 Update the callers below.
1149 (linux_process_target::handle_extended_wait)
1150 (linux_process_target::create_inferior)
1151 (attach_proc_task_lwp_callback)
1152 (linux_process_target::attach)
1153 (linux_process_target::detach)
1154 (linux_process_target::mourn)
1155 * thread-db.cc (attach_thread)
1157 * linux-x86-low.cc (class x86_target) <low_new_process>
1158 <low_delete_process>
1161 <low_new_fork>: Declare.
1162 (x86_linux_new_process): Turn into...
1163 (x86_target::low_new_process): ...this.
1164 (x86_linux_delete_process): Turn into...
1165 (x86_target::low_delete_process): ...this.
1166 (x86_target::low_new_thread): Define.
1167 (x86_target::low_delete_thread): Define.
1168 (x86_linux_new_fork): Turn into...
1169 (x86_target::low_new_fork): ...this.
1170 (the_low_target): Remove the op fields.
1171 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1172 <low_delete_process>
1175 <low_new_fork>: Declare.
1176 (aarch64_linux_new_process): Turn into...
1177 (aarch64_target::low_new_process): ...this.
1178 (aarch64_linux_delete_process): Turn into...
1179 (aarch64_target::low_delete_process): ...this.
1180 (aarch64_target::low_new_thread): Define.
1181 (aarch64_target::low_delete_thread): Define.
1182 (aarch64_linux_new_fork): Turn into...
1183 (aarch64_target::low_new_fork): ...this.
1184 (the_low_target): Remove the op fields.
1185 * linux-arm-low.cc (class arm_target) <low_new_process>
1186 <low_delete_process>
1189 <low_new_fork>: Declare.
1190 (arm_new_process): Turn into...
1191 (arm_target::low_new_process): ...this.
1192 (arm_delete_process): Turn into...
1193 (arm_target::low_delete_process): ...this.
1194 (arm_new_thread): Turn into...
1195 (arm_target::low_new_thread): ...this.
1196 (arm_delete_thread): Turn into...
1197 (arm_target::low_delete_thread): ...this.
1198 (arm_new_fork): Turn into...
1199 (arm_target::low_new_fork): ...this.
1200 (the_low_target): Remove the op fields.
1201 * linux-mips-low.cc (class mips_target) <low_new_process>
1202 <low_delete_process>
1205 <low_new_fork>: Declare.
1206 (mips_linux_new_process): Turn into...
1207 (mips_target::low_new_process): ...this.
1208 (mips_linux_delete_process): Turn into...
1209 (mips_target::low_delete_process): ...this.
1210 (mips_linux_new_thread): Turn into...
1211 (mips_target::low_new_thread): ...this.
1212 (mips_linux_delete_thread): Turn into...
1213 (mips_target::low_delete_thread): ...this.
1214 (mips_linux_new_fork): Turn into...
1215 (mips_target::low_new_fork): ...this.
1216 (the_low_target): Remove the op fields.
1217 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1218 * linux-crisv32-low.cc (the_low_target): Ditto.
1219 * linux-m32r-low.cc (the_low_target): Ditto.
1220 * linux-m68k-low.cc (the_low_target): Ditto.
1221 * linux-ppc-low.cc (the_low_target): Ditto.
1222 * linux-s390-low.cc (the_low_target): Ditto.
1223 * linux-sh-low.cc (the_low_target): Ditto.
1224 * linux-tic6x-low.cc (the_low_target): Ditto.
1225 * linux-tile-low.cc (the_low_target): Ditto.
1226 * linux-xtensa-low.cc (the_low_target): Ditto.
1228 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1230 Turn the 'siginfo_fixup' linux target op into a method of
1231 linux_process_target.
1233 * linux-low.h (struct linux_target_ops): Remove the op.
1234 (class linux_process_target) <siginfo_fixup>
1235 <low_siginfo_fixup>: Declare.
1236 * linux-low.cc (siginfo_fixup): Turn into...
1237 (linux_process_target::siginfo_fixup): ...this.
1238 (linux_process_target::low_siginfo_fixup): Define.
1239 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1240 (x86_siginfo_fixup): Turn into...
1241 (x86_target::low_siginfo_fixup): ...this.
1242 (the_low_target): Remove the op field.
1243 * linux-aarch64-low.cc (class aarch64_target):
1244 <low_siginfo_fixup>: Declare.
1245 (aarch64_linux_siginfo_fixup): Turn into...
1246 (aarch64_target::low_siginfo_fixup): ...this.
1247 (the_low_target): Remove the op field.
1248 * linux-arm-low.cc (the_low_target): Remove the op field.
1249 * linux-bfin-low.cc (the_low_target): Ditto.
1250 * linux-crisv32-low.cc (the_low_target): Ditto.
1251 * linux-m32r-low.cc (the_low_target): Ditto.
1252 * linux-m68k-low.cc (the_low_target): Ditto.
1253 * linux-mips-low.cc (the_low_target): Ditto.
1254 * linux-ppc-low.cc (the_low_target): Ditto.
1255 * linux-s390-low.cc (the_low_target): Ditto.
1256 * linux-sh-low.cc (the_low_target): Ditto.
1257 * linux-tic6x-low.cc (the_low_target): Ditto.
1258 * linux-tile-low.cc (the_low_target): Ditto.
1259 * linux-xtensa-low.cc (the_low_target): Ditto.
1261 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1263 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1264 linux target ops into methods of linux_process_target.
1266 * linux-low.h (struct linux_target_ops): Remove the ops.
1267 (class linux_process_target) <low_collect_ptrace_register>
1268 <low_store_ptrace_register>: Declare.
1269 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1270 (linux_process_target::low_supply_ptrace_register): Define.
1272 Update the callers below.
1274 (linux_process_target::fetch_register)
1275 (linux_process_target::store_register)
1277 * linux-x86-low.cc (the_low_target): Remove the op fields.
1278 * linux-aarch64-low.cc (the_low_target): Ditto.
1279 * linux-arm-low.cc (the_low_target): Ditto.
1280 * linux-bfin-low.cc (the_low_target): Ditto.
1281 * linux-crisv32-low.cc (the_low_target): Ditto.
1282 * linux-m32r-low.cc (the_low_target): Ditto.
1283 * linux-m68k-low.cc (the_low_target): Ditto.
1284 * linux-sh-low.cc (the_low_target): Ditto.
1285 * linux-sparc-low.cc (the_low_target): Ditto.
1286 * linux-tic6x-low.cc (the_low_target): Ditto.
1287 * linux-tile-low.cc (the_low_target): Ditto.
1288 * linux-xtensa-low.cc (the_low_target): Ditto.
1289 * linux-mips-low.cc (class mips_target)
1290 <low_collect_ptrace_register>
1291 <low_supply_ptrace_register>: Declare.
1292 (mips_collect_ptrace_register): Turn into ...
1293 (mips_target::low_collect_ptrace_register): ...this.
1294 (mips_supply_ptrace_register): Turn into...
1295 (mips_target::low_supply_ptrace_register): ...this.
1296 (the_low_target): Remove the op fields.
1297 * linux-ppc-low.cc (class ppc_target)
1298 <low_collect_ptrace_register>
1299 <low_supply_ptrace_register>: Declare.
1300 (ppc_collect_ptrace_register): Turn into ...
1301 (ppc_target::low_collect_ptrace_register): ...this.
1302 (ppc_supply_ptrace_register): Turn into ...
1303 (ppc_target::low_supply_ptrace_register): ...this.
1304 (ppc_fill_gregset): Update for the calls to
1305 low_collect_ptrace_register.
1306 (the_low_target): Remove the op fields.
1307 * linux-s390-low.cc (class s390_target)
1308 <low_collect_ptrace_register>
1309 <low_supply_ptrace_register>: Declare.
1310 (s390_collect_ptrace_register): Turn into ...
1311 (s390_target::low_collect_ptrace_register): ...this.
1312 (s390_supply_ptrace_register): Turn into ...
1313 (s390_target::low_supply_ptrace_register): ...this.
1314 (s390_fill_gregset): Update for the calls to
1315 low_collect_ptrace_register.
1316 (the_low_target): Remove the op fields.
1318 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1320 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1321 target ops into methods of linux_process_target.
1323 * linux-low.h (struct linux_target_ops): Remove the ops.
1324 (class linux_process_target) <check_stopped_by_watchpoint>
1325 <low_stopped_by_watchpoint>
1326 <low_stopped_data_address>: Declare.
1327 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1328 (linux_process_target::check_stopped_by_watchpoint): ...this.
1329 (linux_process_target::low_stopped_by_watchpoint): Define.
1330 (linux_process_target::low_stopped_data_address): Define.
1331 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1332 <low_stopped_data_address>: Declare.
1333 (x86_stopped_by_watchpoint): Turn into...
1334 (x86_target::low_stopped_by_watchpoint): ...this.
1335 (x86_stopped_data_address): Turn into...
1336 (x86_target::low_stopped_data_address): ...this.
1337 (the_low_target): Remove the op fields.
1338 * linux-aarch64-low.cc (class aarch64_target)
1339 <low_stopped_by_watchpoint>
1340 <low_stopped_data_address>: Declare.
1341 (aarch64_stopped_by_watchpoint): Turn into...
1342 (aarch64_target::low_stopped_by_watchpoint): ...this.
1343 (aarch64_stopped_data_address): Turn into...
1344 (aarch64_target::low_stopped_data_address): ...this.
1345 (the_low_target): Remove the op fields.
1346 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1347 <low_stopped_data_address>: Declare.
1348 (arm_stopped_by_watchpoint): Turn into...
1349 (arm_target::low_stopped_by_watchpoint): ...this.
1350 (arm_stopped_data_address): Turn into...
1351 (arm_target::low_stopped_data_address): ...this.
1352 (the_low_target): Remove the op fields.
1353 * linux-crisv32-low.cc (class crisv32_target)
1354 <low_stopped_by_watchpoint>
1355 <low_stopped_data_address>: Declare.
1356 (cris_stopped_by_watchpoint): Turn into...
1357 (crisv32_target::low_stopped_by_watchpoint): ...this.
1358 (cris_stopped_data_address): Turn into...
1359 (crisv32_target::low_stopped_data_address): ...this.
1360 (the_low_target): Remove the op fields.
1361 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1362 <low_stopped_data_address>: Declare.
1363 (mips_stopped_by_watchpoint): Turn into...
1364 (mips_target::low_stopped_by_watchpoint): ...this.
1365 (mips_stopped_data_address): Turn into...
1366 (mips_target::low_stopped_data_address): ...this.
1367 (the_low_target): Remove the op fields.
1368 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1369 * linux-m32r-low.cc (the_low_target): Ditto.
1370 * linux-m68k-low.cc (the_low_target): Ditto.
1371 * linux-ppc-low.cc (the_low_target): Ditto.
1372 * linux-s390-low.cc (the_low_target): Ditto.
1373 * linux-sh-low.cc (the_low_target): Ditto.
1374 * linux-sparc-low.cc (the_low_target): Ditto.
1375 * linux-tic6x-low.cc (the_low_target): Ditto.
1376 * linux-tile-low.cc (the_low_target): Ditto.
1377 * linux-xtensa-low.cc (the_low_target): Ditto.
1379 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1381 Turn the 'insert_point' and 'remove_point' linux target ops into
1382 methods of linux_process_target.
1384 * linux-low.h (struct linux_target_ops): Remove the ops.
1385 (class linux_process_target) <low_insert_point>
1386 <low_remove_point>: Declare.
1387 * linux-low.cc (linux_process_target::low_insert_point)
1388 (linux_process_target::low_remove_point): Define.
1389 (linux_process_target::insert_point)
1390 (linux_process_target::remove_point): Update for calls to
1391 low_insert_point and low_remove_point.
1392 * linux-x86-low.cc (class x86_target) <low_insert_point>
1393 <low_remove_point>: Declare.
1394 (x86_insert_point): Turn into...
1395 (x86_target::low_insert_point): ...this.
1396 (x86_remove_point): Turn into...
1397 (x86_target::low_remove_point): ...this.
1398 (the_low_target): Remove the op fields.
1399 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1400 <low_remove_point>: Declare.
1401 (aarch64_insert_point): Turn into...
1402 (aarch64_target::low_insert_point): ...this.
1403 (aarch64_remove_point): Turn into...
1404 (aarch64_target::low_remove_point): ...this.
1405 (the_low_target): Remove the op fields.
1406 * linux-arm-low.cc (class arm_target) <low_insert_point>
1407 <low_remove_point>: Declare.
1408 (arm_insert_point): Turn into...
1409 (arm_target::low_insert_point): ...this.
1410 (arm_remove_point): Turn into...
1411 (arm_target::low_remove_point): ...this.
1412 (the_low_target): Remove the op fields.
1413 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1414 <low_remove_point>: Declare.
1415 (crisv32_insert_point): Turn into...
1416 (crisv32_target::low_insert_point): ...this.
1417 (crisv32_remove_point): Turn into...
1418 (crisv32_target::low_remove_point): ...this.
1419 (the_low_target): Remove the op fields.
1420 * linux-mips-low.cc (class mips_target) <low_insert_point>
1421 <low_remove_point>: Declare.
1422 (mips_insert_point): Turn into...
1423 (mips_target::low_insert_point): ...this.
1424 (mips_remove_point): Turn into...
1425 (mips_target::low_remove_point): ...this.
1426 (the_low_target): Remove the op fields.
1427 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1428 <low_remove_point>: Declare.
1429 (ppc_insert_point): Turn into...
1430 (ppc_target::low_insert_point): ...this.
1431 (ppc_remove_point): Turn into...
1432 (ppc_target::low_remove_point): ...this.
1433 (the_low_target): Remove the op fields.
1434 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1435 * linux-m32r-low.cc (the_low_target): Ditto.
1436 * linux-m68k-low.cc (the_low_target): Ditto.
1437 * linux-s390-low.cc (the_low_target): Ditto.
1438 * linux-sh-low.cc (the_low_target): Ditto.
1439 * linux-sparc-low.cc (the_low_target): Ditto.
1440 * linux-tic6x-low.cc (the_low_target): Ditto.
1441 * linux-tile-low.cc (the_low_target): Ditto.
1442 * linux-xtensa-low.cc (the_low_target): Ditto.
1444 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1446 Remove the 'supports_z_point_type' linux target op and let the
1447 concrete linux target define it by overriding the op declared in
1448 process_stratum_target.
1450 * linux-low.cc (linux_process_target::supports_z_point_type):
1452 * linux-low.h (struct linux_target_ops): Remove the op.
1453 (class linux_process_target) <supports_z_point_type>: Remove.
1454 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1456 (x86_supports_z_point_type): Turn into...
1457 (x86_target::supports_z_point_type): ...this.
1458 (the_low_target): Remove the op field.
1459 * linux-aarch64-low.cc (class aarch64_target)
1460 <supports_z_point_type>: Declare.
1461 (aarch64_supports_z_point_type): Turn into...
1462 (aarch64_target::supports_z_point_type): ...this.
1463 (the_low_target): Remove the op field.
1464 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1466 (arm_supports_z_point_type): Turn into...
1467 (arm_target::supports_z_point_type): ...this.
1468 (the_low_target): Remove the op field.
1469 * linux-crisv32-low.cc (class crisv32_target)
1470 <supports_z_point_type>: Declare.
1471 (cris_supports_z_point_type): Turn into...
1472 (crisv32_target::supports_z_point_type): ...this.
1473 (the_low_target): Remove the op field.
1474 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1476 (mips_supports_z_point_type): Turn into...
1477 (mips_target::supports_z_point_type): ...this.
1478 (the_low_target): Remove the op field.
1479 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1481 (ppc_supports_z_point_type): Turn into...
1482 (ppc_target::supports_z_point_type): ...this.
1483 (the_low_target): Remove the op field.
1484 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1486 (s390_supports_z_point_type): Turn into...
1487 (s390_target::supports_z_point_type): ...this.
1488 (the_low_target): Remove the op field.
1489 * linux-bfin-low.cc (the_low_target): Remove the op field.
1490 * linux-m32r-low.cc (the_low_target): Ditto.
1491 * linux-m68k-low.cc (the_low_target): Ditto.
1492 * linux-sh-low.cc (the_low_target): Ditto.
1493 * linux-sparc-low.cc (the_low_target): Ditto.
1494 * linux-tic6x-low.cc (the_low_target): Ditto.
1495 * linux-tile-low.cc (the_low_target): Ditto.
1496 * linux-xtensa-low.cc (the_low_target): Ditto.
1498 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1500 Turn the 'breakpoint_at' linux target op into a method of
1501 linux_process_target.
1503 * linux-low.h (struct linux_target_ops): Remove the op.
1504 (class linux_process_target) <low_breakpoint_at>: Declare.
1506 Update the callers below:
1508 * linux-low.cc (linux_process_target::save_stop_reason)
1509 (linux_process_target::thread_still_has_status_pending)
1510 (linux_process_target::wait_1)
1512 * linux-x86-low.cc (class x86_target)
1513 <low_breakpoint_at>: Declare.
1514 (x86_breakpoint_at): Turn into...
1515 (x86_target::low_breakpoint_at): ...this.
1516 (the_low_target): Remove the op field.
1517 * linux-aarch64-low.cc (class aarch64_target)
1518 <low_breakpoint_at>: Declare.
1519 (aarch64_breakpoint_at): Turn into...
1520 (aarch64_target::low_breakpoint_at): ...this.
1521 (the_low_target): Remove the op field.
1522 * linux-arm-low.cc (class arm_target)
1523 <low_breakpoint_at>: Declare.
1524 (arm_target::low_breakpoint_at): Define.
1525 (the_low_target): Remove the op field.
1526 * linux-bfin-low.cc (class bfin_target)
1527 <low_breakpoint_at>: Declare.
1528 (bfin_breakpoint_at): Turn into...
1529 (bfin_target::low_breakpoint_at): ...this.
1530 (the_low_target): Remove the op field.
1531 * linux-cris-low.cc (class cris_target)
1532 <low_breakpoint_at>: Declare.
1533 (cris_breakpoint_at): Turn into...
1534 (cris_target::low_breakpoint_at): ...this.
1535 (the_low_target): Remove the op field.
1536 * linux-crisv32-low.cc (class crisv32_target)
1537 <low_breakpoint_at>: Declare.
1538 (crisv32_breakpoint_at): Turn into...
1539 (crisv32_target::low_breakpoint_at): ...this.
1540 (the_low_target): Remove the op field.
1541 * linux-ia64-low.cc (class ia64_target)
1542 <low_breakpoint_at>: Declare.
1543 (ia64_target::low_breakpoint_at): Define.
1544 * linux-m32r-low.cc (class m32r_target)
1545 <low_breakpoint_at>: Declare.
1546 (m32r_breakpoint_at): Turn into...
1547 (m32r_target::low_breakpoint_at): ...this.
1548 (the_low_target): Remove the op field.
1549 * linux-m68k-low.cc (class m68k_target)
1550 <low_breakpoint_at>: Declare.
1551 (m68k_breakpoint_at): Turn into...
1552 (m68k_target::low_breakpoint_at): ...this.
1553 (the_low_target): Remove the op field.
1554 * linux-mips-low.cc (class mips_target)
1555 <low_breakpoint_at>: Declare.
1556 (mips_breakpoint_at): Turn into...
1557 (mips_target::low_breakpoint_at): ...this.
1558 (the_low_target): Remove the op field.
1559 * linux-nios2-low.cc (class nios2_target)
1560 <low_breakpoint_at>: Declare.
1561 (nios2_breakpoint_at): Turn into...
1562 (nios2_target::low_breakpoint_at): ...this.
1563 (the_low_target): Remove the op field.
1564 * linux-ppc-low.cc (class ppc_target)
1565 <low_breakpoint_at>: Declare.
1566 (ppc_breakpoint_at): Turn into...
1567 (ppc_target::low_breakpoint_at): ...this.
1568 (the_low_target): Remove the op field.
1569 * linux-riscv-low.cc (class riscv_target)
1570 <low_breakpoint_at>: Declare.
1571 (riscv_breakpoint_at): Turn into...
1572 (riscv_target::low_breakpoint_at): ...this.
1573 (the_low_target): Remove the op field.
1574 * linux-s390-low.cc (class s390_target)
1575 <low_breakpoint_at>: Declare.
1576 (s390_breakpoint_at): Turn into...
1577 (s390_target::low_breakpoint_at): ...this.
1578 (the_low_target): Remove the op field.
1579 * linux-sh-low.cc (class sh_target)
1580 <low_breakpoint_at>: Declare.
1581 (sh_breakpoint_at): Turn into...
1582 (sh_target::low_breakpoint_at): ...this.
1583 (the_low_target): Remove the op field.
1584 * linux-sparc-low.cc (class sparc_target)
1585 <low_breakpoint_at>: Declare.
1586 (sparc_breakpoint_at): Turn into...
1587 (sparc_target::low_breakpoint_at): ...this.
1588 (the_low_target): Remove the op field.
1589 * linux-tic6x-low.cc (class tic6x_target)
1590 <low_breakpoint_at>: Declare.
1591 (tic6x_breakpoint_at): Turn into...
1592 (tic6x_target::low_breakpoint_at): ...this.
1593 (the_low_target): Remove the op field.
1594 * linux-tile-low.cc (class tile_target)
1595 <low_breakpoint_at>: Declare.
1596 (tile_breakpoint_at): Turn into...
1597 (tile_target::low_breakpoint_at): ...this.
1598 (the_low_target): Remove the op field.
1599 * linux-xtensa-low.cc (class xtensa_target)
1600 <low_breakpoint_at>: Declare.
1601 (xtensa_breakpoint_at): Turn into...
1602 (xtensa_target::low_breakpoint_at): ...this.
1603 (the_low_target): Remove the op field.
1605 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1607 Turn the 'decr_pc_after_break' linux_target_ops field into
1608 a method of linux_process_target.
1610 * linux-low.h (struct linux_target_ops)
1611 <decr_pc_after_break>: Remove.
1612 (class linux_process_target) <low_decr_pc_after_break>: New method
1614 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1615 New method implementation.
1617 Update the users below.
1619 (linux_process_target::save_stop_reason)
1620 (linux_process_target::wait_1)
1621 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1623 (x86_target::low_decr_pc_after_break): New method implementation.
1624 (the_low_target): Remove the field.
1625 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1627 (bfin_target::low_decr_pc_after_break): New method implementation.
1628 (the_low_target): Remove the field.
1629 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1631 (m68k_target::low_decr_pc_after_break): New method implementation.
1632 (the_low_target): Remove the field.
1633 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1635 (s390_target::low_decr_pc_after_break): New method implementation.
1636 (the_low_target): Remove the field.
1637 * linux-aarch64-low.cc (the_low_target): Remove the field.
1638 * linux-arm-low.cc (the_low_target): Remove the field.
1639 * linux-cris-low.cc (the_low_target): Remove the field.
1640 * linux-crisv32-low.cc (the_low_target): Remove the field.
1641 * linux-m32r-low.cc (the_low_target): Remove the field.
1642 * linux-mips-low.cc (the_low_target): Remove the field.
1643 * linux-nios2-low.cc (the_low_target): Remove the field.
1644 * linux-ppc-low.cc (the_low_target): Remove the field.
1645 * linux-riscv-low.cc (the_low_target): Remove the field.
1646 * linux-sh-low.cc (the_low_target): Remove the field.
1647 * linux-sparc-low.cc (the_low_target): Remove the field.
1648 * linux-tic6x-low.cc (the_low_target): Remove the field.
1649 * linux-tile-low.cc (the_low_target): Remove the field.
1650 * linux-xtensa-low.cc (the_low_target): Remove the field.
1652 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1654 Remove the 'supports_software_single_step' linux target op and let
1655 the concrete linux target define it by overriding the op in
1656 process_stratum_target.
1657 Turn the 'get_next_pcs' linux target op into a method of
1658 linux_process_target.
1660 * linux-low.h (struct linux_target_ops): Remove the ops.
1661 (class linux_process_target) <supports_software_single_step>:
1663 <low_get_next_pcs>: Declare.
1664 * linux-low.cc (can_software_single_step): Remove.
1665 (linux_process_target::low_get_next_pcs): Define.
1666 (linux_process_target::supports_software_single_step): Remove.
1668 Update the callers below.
1670 (linux_process_target::handle_extended_wait)
1671 (linux_process_target::wait_1)
1672 (linux_process_target::install_software_single_step_breakpoints)
1673 (linux_process_target::single_step)
1674 (linux_process_target::thread_needs_step_over)
1675 (linux_process_target::proceed_one_lwp)
1676 (linux_process_target::supports_range_stepping)
1678 * linux-x86-low.cc (the_low_target): Remove the op field.
1679 * linux-aarch64-low.cc (the_low_target): Ditto.
1680 * linux-bfin-low.cc (the_low_target): Ditto.
1681 * linux-cris-low.cc (the_low_target): Ditto.
1682 * linux-crisv32-low.cc (the_low_target): Ditto.
1683 * linux-m32r-low.cc (the_low_target): Ditto.
1684 * linux-m68k-low.cc (the_low_target): Ditto.
1685 * linux-mips-low.cc (the_low_target): Ditto.
1686 * linux-nios2-low.cc (the_low_target): Ditto.
1687 * linux-ppc-low.cc (the_low_target): Ditto.
1688 * linux-riscv-low.cc (the_low_target): Ditto.
1689 * linux-s390-low.cc (the_low_target): Ditto.
1690 * linux-sh-low.cc (the_low_target): Ditto.
1691 * linux-sparc-low.cc (the_low_target): Ditto.
1692 * linux-tic6x-low.cc (the_low_target): Ditto.
1693 * linux-tile-low.cc (the_low_target): Ditto.
1694 * linux-xtensa-low.cc (the_low_target): Ditto.
1695 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1696 <supports_software_single_step>: Declare.
1697 (arm_target::supports_software_single_step): Define.
1698 (arm_gdbserver_get_next_pcs): Turn into...
1699 (arm_target::low_get_next_pcs): ...this.
1700 (the_low_target): Remove the op field.
1702 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1704 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1705 the concrete linux target define it by overriding the op
1706 in process_stratum_target.
1708 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1710 * linux-low.h (struct linux_target_ops): Remove the op.
1711 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1712 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1714 (x86_sw_breakpoint_from_kind): Turn into...
1715 (x86_target::sw_breakpoint_from_kind): ...this.
1716 (the_low_target): Remove the op field.
1717 * linux-aarch64-low.cc (class aarch64_target)
1718 <sw_breakpoint_from_kind>: Declare.
1719 (aarch64_sw_breakpoint_from_kind): Turn into...
1720 (aarch64_target::sw_breakpoint_from_kind): ...this.
1721 (the_low_target): Remove the op field.
1722 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1724 (arm_target::sw_breakpoint_from_kind): Define.
1725 (the_low_target): Remove the op field.
1726 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1728 (bfin_sw_breakpoint_from_kind): Turn into...
1729 (bfin_target::sw_breakpoint_from_kind): ...this.
1730 (the_low_target): Remove the op field.
1731 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1733 (cris_sw_breakpoint_from_kind): Turn into...
1734 (cris_target::sw_breakpoint_from_kind): ...this.
1735 (the_low_target): Remove the op field.
1736 * linux-crisv32-low.cc (class crisv32_target)
1737 <sw_breakpoint_from_kind>: Declare.
1738 (cris_sw_breakpoint_from_kind): Turn into...
1739 (crisv32_target::sw_breakpoint_from_kind): ...this.
1740 (the_low_target): Remove the op field.
1741 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1743 (ia64_target::sw_breakpoint_from_kind): Define.
1744 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1746 (m32r_sw_breakpoint_from_kind): Turn into...
1747 (m32r_target::sw_breakpoint_from_kind): ...this.
1748 (the_low_target): Remove the op field.
1749 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1751 (m68k_sw_breakpoint_from_kind): Turn into...
1752 (m68k_target::sw_breakpoint_from_kind): ...this.
1753 (the_low_target): Remove the op field.
1754 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1756 (mips_sw_breakpoint_from_kind): Turn into...
1757 (mips_target::sw_breakpoint_from_kind): ...this.
1758 (the_low_target): Remove the op field.
1759 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1761 (nios2_sw_breakpoint_from_kind): Turn into...
1762 (nios2_target::sw_breakpoint_from_kind): ...this.
1763 (the_low_target): Remove the op field.
1764 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1766 (ppc_sw_breakpoint_from_kind): Turn into...
1767 (ppc_target::sw_breakpoint_from_kind): ...this.
1768 (the_low_target): Remove the op field.
1769 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1771 (riscv_sw_breakpoint_from_kind): Turn into...
1772 (riscv_target::sw_breakpoint_from_kind): ...this.
1773 (the_low_target): Remove the op field.
1774 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1776 (s390_sw_breakpoint_from_kind): Turn into...
1777 (s390_target::sw_breakpoint_from_kind): ...this.
1778 (the_low_target): Remove the op field.
1779 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1781 (sh_sw_breakpoint_from_kind): Turn into...
1782 (sh_target::sw_breakpoint_from_kind): ...this.
1783 (the_low_target): Remove the op field.
1784 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1786 (sparc_sw_breakpoint_from_kind): Turn into...
1787 (sparc_target::sw_breakpoint_from_kind): ...this.
1788 (the_low_target): Remove the op field.
1789 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1791 (tic6x_sw_breakpoint_from_kind): Turn into...
1792 (tic6x_target::sw_breakpoint_from_kind): ...this.
1793 (the_low_target): Remove the op field.
1794 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1796 (tile_sw_breakpoint_from_kind): Turn into...
1797 (tile_target::sw_breakpoint_from_kind): ...this.
1798 (the_low_target): Remove the op field.
1799 * linux-xtensa-low.cc (class xtensa_target)
1800 <sw_breakpoint_from_kind>: Declare.
1801 (xtensa_sw_breakpoint_from_kind): Turn into...
1802 (xtensa_target::sw_breakpoint_from_kind): ...this.
1803 (the_low_target): Remove the op field.
1805 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1807 Remove the 'breakpoint_kind_from_pc' and
1808 'breakpoint_kind_from_current_state' linux target ops, and let the
1809 concrete linux target define them by overriding the ops of
1810 process_stratum_target.
1812 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1814 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1815 * linux-low.h (struct linux_target_ops): Remove ops.
1816 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1817 <breakpoint_kind_from_current_state>: Remove.
1818 * linux-x86-low.cc (the_low_target): Remove the op fields.
1819 * linux-bfin-low.cc (the_low_target): Ditto.
1820 * linux-cris-low.cc (the_low_target): Ditto.
1821 * linux-crisv32-low.cc (the_low_target): Ditto.
1822 * linux-m32r-low.cc (the_low_target): Ditto.
1823 * linux-m68k-low.cc (the_low_target): Ditto.
1824 * linux-mips-low.cc (the_low_target): Ditto.
1825 * linux-nios2-low.cc (the_low_target): Ditto.
1826 * linux-ppc-low.cc (the_low_target): Ditto.
1827 * linux-s390-low.cc (the_low_target): Ditto.
1828 * linux-sh-low.cc (the_low_target): Ditto.
1829 * linux-sparc-low.cc (the_low_target): Ditto.
1830 * linux-tic6x-low.cc (the_low_target): Ditto.
1831 * linux-tile-low.cc (the_low_target): Ditto.
1832 * linux-xtensa-low.cc (the_low_target): Ditto.
1833 * linux-aarch64-low.cc (class aarch64_target)
1834 <breakpoint_kind_from_pc>
1835 <breakpoint_kind_from_current_state>: Declare.
1836 (aarch64_breakpoint_kind_from_pc): Turn into...
1837 (aarch64_target::breakpoint_kind_from_pc): ...this.
1838 (aarch64_breakpoint_kind_from_current_state): Turn into...
1839 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1840 (the_low_target): Remove the op fields.
1841 * linux-arm-low.cc (class arm_target):
1842 <breakpoint_kind_from_pc>
1843 <breakpoint_kind_from_current_state>: Declare.
1844 (arm_target::breakpoint_kind_from_pc): Define.
1845 (arm_target::breakpoint_kind_from_current_state): Define.
1846 (the_low_target): Remove the op fields.
1847 * linux-riscv-low.cc (class riscv_target):
1848 <breakpoint_kind_from_pc>: Declare.
1849 (riscv_breakpoint_kind_from_pc): Turn into...
1850 (riscv_target::breakpoint_kind_from_pc): ...this.
1851 (the_low_target): Remove the op fields.
1853 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1855 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1856 of linux_process_target.
1858 * linux-low.h (struct linux_target_ops): Remove the ops.
1859 (class linux_process_target) <low_supports_breakpoints>
1861 <low_set_pc>: Declare.
1862 * linux-low.cc (supports_breakpoints): Turn into...
1863 (linux_process_target::low_supports_breakpoints): ...this.
1864 (linux_process_target::low_get_pc): Define.
1865 (linux_process_target::low_set_pc): Define.
1867 Update the callers below.
1869 (linux_process_target::get_pc)
1870 (linux_process_target::save_stop_reason)
1871 (linux_process_target::maybe_move_out_of_jump_pad)
1872 (linux_process_target::wait_1)
1873 (linux_process_target::resume_one_lwp_throw)
1874 (linux_process_target::resume)
1875 (linux_process_target::proceed_all_lwps)
1876 (linux_process_target::read_pc)
1877 (linux_process_target::write_pc)
1879 * linux-x86-low.cc (class linux_process_target)
1880 <low_supports_breakpoints>
1882 <low_set_pc>: Declare.
1883 (x86_target::low_supports_breakpoints): Define.
1884 (x86_get_pc): Turn into...
1885 (x86_target::low_get_pc): ...this.
1886 (x86_set_pc): Turn into...
1887 (x86_target::low_set_pc): ...this.
1888 (the_low_target): Remove the op fields.
1889 * linux-arm-low.cc (class arm_target)
1890 <low_supports_breakpoints>
1892 <low_set_pc>: Declare.
1893 (arm_target::low_supports_breakpoints)
1894 (arm_target::low_get_pc)
1895 (arm_target::low_set_pc): Define.
1896 (the_low_target): Remove the op fields.
1897 * linux-bfin-low.cc (class bfin_target)
1898 <low_supports_breakpoints>
1900 <low_set_pc>: Declare.
1901 (bfin_target::low_supports_breakpoints)
1902 (bfin_target::low_get_pc)
1903 (bfin_target::low_set_pc): Define.
1904 (the_low_target): Remove the op fields.
1905 * linux-cris-low.cc (class cris_target)
1906 <low_supports_breakpoints>
1908 <low_set_pc>: Declare.
1909 (cris_target::low_supports_breakpoints)
1910 (cris_target::low_get_pc)
1911 (cris_target::low_set_pc): Define.
1912 (the_low_target): Remove the op fields.
1913 * linux-crisv32-low.cc (class crisv32_target)
1914 <low_supports_breakpoints>
1916 <low_set_pc>: Declare.
1917 (crisv32_target::low_supports_breakpoints)
1918 (crisv32_target::low_get_pc)
1919 (crisv32_target::low_set_pc): Define.
1920 (the_low_target): Remove the op fields.
1921 * linux-m32r-low.cc (class m32r_target)
1922 <low_supports_breakpoints>
1924 <low_set_pc>: Declare.
1925 (m32r_target::low_supports_breakpoints)
1926 (m32r_target::low_get_pc)
1927 (m32r_target::low_set_pc): Define.
1928 (the_low_target): Remove the op fields.
1929 * linux-m68k-low.cc (class m68k_target)
1930 <low_supports_breakpoints>
1932 <low_set_pc>: Declare.
1933 (m68k_target::low_supports_breakpoints)
1934 (m68k_target::low_get_pc)
1935 (m68k_target::low_set_pc): Define.
1936 (the_low_target): Remove the op fields.
1937 * linux-nios2-low.cc (class nios2_target)
1938 <low_supports_breakpoints>
1940 <low_set_pc>: Declare.
1941 (nios2_target::low_supports_breakpoints)
1942 (nios2_target::low_get_pc)
1943 (nios2_target::low_set_pc): Define.
1944 (the_low_target): Remove the op fields.
1945 * linux-sh-low.cc (class sh_target)
1946 <low_supports_breakpoints>
1948 <low_set_pc>: Declare.
1949 (sh_target::low_supports_breakpoints)
1950 (sh_target::low_get_pc)
1951 (sh_target::low_set_pc): Define.
1952 (the_low_target): Remove the op fields.
1953 * linux-xtensa-low.cc (class xtensa_target)
1954 <low_supports_breakpoints>
1956 <low_set_pc>: Declare.
1957 (xtensa_target::low_supports_breakpoints)
1958 (xtensa_target::low_get_pc)
1959 (xtensa_target::low_set_pc): Define.
1960 (the_low_target): Remove the op fields.
1961 * linux-sparc-low.cc (class sparc_target)
1962 <low_supports_breakpoints>
1963 <low_get_pc>: Declare.
1964 (sparc_target::low_supports_breakpoints)
1965 (sparc_target::low_get_pc): Define.
1966 (the_low_target): Remove the op fields.
1967 * linux-tile-low.cc (class tile_target)
1968 <low_supports_breakpoints>
1970 <low_set_pc>: Declare.
1971 (tile_target::low_supports_breakpoints)
1972 (tile_target::low_get_pc)
1973 (tile_target::low_set_pc): Define.
1974 (the_low_target): Remove the op fields.
1975 * linux-aarch64-low.cc (class aarch64_target)
1976 <low_supports_breakpoints>
1978 <low_set_pc>: Declare.
1979 (aarch64_target::low_supports_breakpoints): Define.
1980 (aarch64_get_pc): Turn into...
1981 (aarch64_target::low_get_pc): ...this.
1982 (aarch64_set_pc): Turn into...
1983 (aarch64_target::low_set_pc): ...this.
1984 (the_low_target): Remove the op fields.
1985 * linux-mips-low.cc (class mips_target)
1986 <low_supports_breakpoints>
1988 <low_set_pc>: Declare.
1989 (mips_target::low_supports_breakpoints): Define.
1990 (mips_get_pc): Turn into...
1991 (mips_target::low_get_pc): ...this.
1992 (mips_set_pc): Turn into...
1993 (mips_target::low_set_pc): ...this.
1994 (the_low_target): Remove the op fields.
1995 * linux-ppc-low.cc (class ppc_target)
1996 <low_supports_breakpoints>
1998 <low_set_pc>: Declare.
1999 (ppc_target::low_supports_breakpoints): Define.
2000 (ppc_get_pc): Turn into...
2001 (ppc_target::low_get_pc): ...this.
2002 (ppc_set_pc): Turn into...
2003 (ppc_target::low_set_pc): ...this.
2004 (the_low_target): Remove the op fields.
2005 * linux-riscv-low.cc (class riscv_target)
2006 <low_supports_breakpoints>
2008 <low_set_pc>: Declare.
2009 (riscv_target::low_supports_breakpoints): Define.
2010 (riscv_get_pc): Turn into...
2011 (riscv_target::low_get_pc): ...this.
2012 (riscv_set_pc): Turn into...
2013 (riscv_target::low_set_pc): ...this.
2014 (the_low_target): Remove the op fields.
2015 * linux-s390-low.cc (class s390_target)
2016 <low_supports_breakpoints>
2018 <low_set_pc>: Declare.
2019 (s390_target::low_supports_breakpoints): Define.
2020 (s390_get_pc): Turn into...
2021 (s390_target::low_get_pc): ...this.
2022 (s390_set_pc): Turn into...
2023 (s390_target::low_set_pc): ...this.
2024 (the_low_target): Remove the op fields.
2025 * linux-tic6x-low.cc (class tic6x_target)
2026 <low_supports_breakpoints>
2028 <low_set_pc>: Declare.
2029 (tic6x_target::low_supports_breakpoints): Define.
2030 (tic6x_get_pc): Turn into...
2031 (tic6x_target::low_get_pc): ...this.
2032 (tic6x_set_pc): Turn into...
2033 (tic6x_target::low_set_pc): ...this.
2034 (the_low_target): Remove the op fields.
2036 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2038 Turn some more static methods in linux-low into private methods
2039 of linux_process_target.
2041 * linux-low.cc (get_pc): Turn into...
2042 (linux_process_target::get_pc): ...this.
2043 (save_stop_reason): Turn into...
2044 (linux_process_target::save_stop_reason): ...this.
2045 (thread_still_has_status_pending_p): Turn into...
2046 (linux_process_target::thread_still_has_status_pending): ...this.
2047 (status_pending_p_callback): Turn into...
2048 (linux_process_target::status_pending_p_callback): ...this.
2049 (resume_stopped_resumed_lwps): Turn into...
2050 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2051 (install_software_single_step_breakpoints): Turn into...
2052 (linux_process_target::install_software_single_step_breakpoints):
2054 (single_step): Turn into...
2055 (linux_process_target::single_step): ...this.
2056 (linux_resume_one_lwp_throw): Turn into...
2057 (linux_process_target::resume_one_lwp_throw): ...this.
2058 (linux_resume_one_lwp): Turn into...
2059 (linux_process_target::resume_one_lwp): ...this.
2060 (resume_status_pending_p): Turn into...
2061 (linux_process_target::resume_status_pending): ...this.
2062 (need_step_over_p): Turn into...
2063 (linux_process_target::thread_needs_step_over): ...this.
2064 (linux_resume_one_thread): Turn into...
2065 (linux_process_target::resume_one_thread): ...this.
2066 (proceed_one_lwp): Turn into...
2067 (linux_process_target::proceed_one_lwp): ...this.
2068 (unsuspend_and_proceed_one_lwp): Turn into...
2069 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2071 Update the calls/references to the above functions below.
2073 (linux_process_target::handle_extended_wait)
2074 (linux_process_target::filter_event)
2075 (linux_process_target::wait_for_event_filtered)
2076 (linux_process_target::wait_1)
2077 (linux_process_target::move_out_of_jump_pad)
2078 (linux_process_target::start_step_over)
2079 (linux_process_target::resume)
2080 (linux_process_target::proceed_all_lwps)
2081 (regsets_store_inferior_registers)
2082 (linux_process_target::store_register)
2084 * linux-low.h (class linux_process_target)
2087 <thread_still_has_status_pending>
2088 <status_pending_p_callback>
2089 <resume_stopped_resumed_lwps>
2090 <install_software_single_step_breakpoints>
2092 <resume_one_lwp_throw>
2094 <resume_status_pending>
2095 <thread_needs_step_over>
2098 <unsuspend_and_proceed_one_lwp>: Declare.
2100 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2102 Turn the 'fetch_register' linux target op into a method of
2103 linux_process_target.
2105 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2106 (class linux_process_target) <low_fetch_register>: Declare.
2107 * linux-x86-low.cc (the_low_target)
2108 * linux-aarch64-low.cc (the_low_target)
2109 * linux-arm-low.cc (the_low_target)
2110 * linux-bfin-low.cc (the_low_target)
2111 * linux-cris-low.cc (the_low_target)
2112 * linux-crisv32-low.cc (the_low_target)
2113 * linux-m32r-low.cc (the_low_target)
2114 * linux-m68k-low.cc (the_low_target)
2115 * linux-nios2-low.cc (the_low_target)
2116 * linux-ppc-low.cc (the_low_target)
2117 * linux-s390-low.cc (the_low_target)
2118 * linux-sh-low.cc (the_low_target)
2119 * linux-sparc-low.cc (the_low_target)
2120 * linux-tic6x-low.cc (the_low_target)
2121 * linux-tile-low.cc (the_low_target)
2122 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2123 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2125 (ia64_fetch_register): Turn into...
2126 (ia64_target::low_fetch_register): ...this.
2127 (the_low_target): Remove the op field.
2128 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2130 (mips_fetch_register): Turn into...
2131 (mips_target::low_fetch_register): ...this.
2132 (the_low_target): Remove the op field.
2133 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2135 (riscv_fetch_register): Turn into...
2136 (riscv_target::low_fetch_register): ...this.
2137 (the_low_target): Remove the op field.
2139 Update the callers below.
2141 * linux-low.cc (linux_process_target::fetch_registers)
2142 (linux_process_target::low_fetch_register)
2144 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2146 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2147 linux target ops into methods of linux_process_target.
2149 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2150 (class linux_process_target) <fetch_register>
2152 <usr_fetch_inferior_registers>
2153 <usr_store_inferior_registers>
2154 <low_cannot_fetch_register>
2155 <low_cannot_fetch_register> Declare.
2156 * linux-low.cc (fetch_register): Turn into...
2157 (linux_process_target::fetch_register): ...this.
2158 (store_register): Turn into ...
2159 (linux_process_target::store_register): ...this.
2160 (usr_fetch_inferior_registers): Turn into...
2161 (linux_process_target::usr_fetch_inferior_registers): ...this.
2162 (usr_store_inferior_registers): Turn into...
2163 (linux_process_target::usr_store_inferior_registers): ...this.
2164 * linux-x86-low.cc (class x86_target)
2165 <low_cannot_fetch_register>
2166 <low_cannot_store_register>: Declare.
2167 (x86_cannot_store_register): Turn into...
2168 (x86_target::low_cannot_store_register): ...this.
2169 (x86_cannot_fetch_register): Turn into...
2170 (x86_target::low_cannot_fetch_register): ...this.
2171 (the_low_target): Remove the target op fields.
2172 * linux-aarch64-low.cc (class aarch64_target)
2173 <low_cannot_fetch_register>
2174 <low_cannot_store_register>: Declare.
2175 (aarch64_target::low_cannot_fetch_register)
2176 (aarch64_target::low_cannot_store_register): Define.
2177 (the_low_target): Remove the op fields.
2178 * linux-arm-low.cc (class arm_target)
2179 <low_cannot_fetch_register>
2180 <low_cannot_store_register>: Declare.
2181 (arm_cannot_fetch_register): Turn into...
2182 (arm_target::low_cannot_fetch_register): ...this.
2183 (arm_cannot_store_register): Turn into...
2184 (arm_target::low_cannot_store_register): ...this.
2185 (the_low_target): Remove the op fields.
2186 * linux-bfin-low.cc (class bfin_target)
2187 <low_cannot_fetch_register>
2188 <low_cannot_store_register>: Declare.
2189 (bfin_cannot_fetch_register): Turn into...
2190 (bfin_target::low_cannot_fetch_register): ...this.
2191 (bfin_cannot_store_register): Turn into...
2192 (bfin_target::low_cannot_store_register): ...this.
2193 (the_low_target): Remove the op fields.
2194 * linux-cris-low.cc (class cris_target)
2195 <low_cannot_fetch_register>
2196 <low_cannot_store_register>: Declare.
2197 (cris_cannot_fetch_register): Turn into...
2198 (cris_target::low_cannot_fetch_register): ...this.
2199 (cris_cannot_store_register): Turn into...
2200 (cris_target::low_cannot_store_register): ...this.
2201 (the_low_target): Remove the op fields.
2202 * linux-crisv32-low.cc (class crisv32_target)
2203 <low_cannot_fetch_register>
2204 <low_cannot_store_register>: Declare.
2205 (crisv32_target::low_cannot_fetch_register)
2206 (crisv32_target::low_cannot_store_register): Define.
2207 (the_low_target): Remove the op fields.
2208 * linux-ia64-low.cc (class ia64_target)
2209 <low_cannot_fetch_register>
2210 <low_cannot_store_register>: Declare.
2211 (ia64_cannot_fetch_register): Turn into...
2212 (ia64_target::low_cannot_fetch_register): ...this.
2213 (ia64_cannot_store_register): Turn into...
2214 (ia64_target::low_cannot_store_register): ...this.
2215 (the_low_target): Remove the op fields.
2216 * linux-m32r-low.cc (class m32r_target)
2217 <low_cannot_fetch_register>
2218 <low_cannot_store_register>: Declare.
2219 (m32r_cannot_fetch_register): Turn into...
2220 (m32r_target::low_cannot_fetch_register): ...this.
2221 (m32r_cannot_store_register): Turn into...
2222 (m32r_target::low_cannot_store_register): ...this.
2223 (the_low_target): Remove the op fields.
2224 * linux-m68k-low.cc (class m68k_target)
2225 <low_cannot_fetch_register>
2226 <low_cannot_store_register>: Declare.
2227 (m68k_cannot_fetch_register): Turn into...
2228 (m68k_target::low_cannot_fetch_register): ...this.
2229 (m68k_cannot_store_register): Turn into...
2230 (m68k_target::low_cannot_store_register): ...this.
2231 (the_low_target): Remove the op fields.
2232 * linux-mips-low.cc (class mips_target)
2233 <low_cannot_fetch_register>
2234 <low_cannot_store_register>: Declare.
2235 (mips_cannot_fetch_register): Turn into...
2236 (mips_target::low_cannot_fetch_register): ...this.
2237 (mips_cannot_store_register): Turn into...
2238 (mips_target::low_cannot_store_register): ...this.
2239 (get_usrregs_info): Inline at the call sites in
2240 low_cannot_fetch_register and low_cannot_store_register,
2242 (the_low_target): Remove the op fields.
2243 * linux-nios2-low.cc (class nios2_target)
2244 <low_cannot_fetch_register>
2245 <low_cannot_store_register>: Declare.
2246 (nios2_cannot_fetch_register): Turn into...
2247 (nios2_target::low_cannot_fetch_register): ...this.
2248 (nios2_cannot_store_register): Turn into...
2249 (nios2_target::low_cannot_store_register): ...this.
2250 (the_low_target): Remove the op fields.
2251 * linux-ppc-low.cc (class ppc_target)
2252 <low_cannot_fetch_register>
2253 <low_cannot_store_register>: Declare.
2254 (ppc_cannot_fetch_register): Turn into...
2255 (ppc_target::low_cannot_fetch_register): ...this.
2256 (ppc_cannot_store_register): Turn into...
2257 (ppc_target::low_cannot_store_register): ...this.
2258 (the_low_target): Remove the op fields.
2259 * linux-riscv-low.cc (class riscv_target)
2260 <low_cannot_fetch_register>
2261 <low_cannot_store_register>: Declare.
2262 (riscv_target::low_cannot_fetch_register)
2263 (riscv_target::low_cannot_store_register): Define.
2264 (the_low_target): Remove the op fields.
2265 * linux-s390-low.cc (class s390_target)
2266 <low_cannot_fetch_register>
2267 <low_cannot_store_register>: Declare.
2268 (s390_cannot_fetch_register): Turn into...
2269 (s390_target::low_cannot_fetch_register): ...this.
2270 (s390_cannot_store_register): Turn into...
2271 (s390_target::low_cannot_store_register): ...this.
2272 (the_low_target): Remove the op fields.
2273 * linux-sh-low.cc (class sh_target)
2274 <low_cannot_fetch_register>
2275 <low_cannot_store_register>: Declare.
2276 (sh_cannot_fetch_register): Turn into...
2277 (sh_target::low_cannot_fetch_register): ...this.
2278 (sh_cannot_store_register): Turn into...
2279 (sh_target::low_cannot_store_register): ...this.
2280 (the_low_target): Remove the op fields.
2281 * linux-sparc-low.cc (class sparc_target)
2282 <low_cannot_fetch_register>
2283 <low_cannot_store_register>: Declare.
2284 (sparc_cannot_fetch_register): Turn into...
2285 (sparc_target::low_cannot_fetch_register): ...this.
2286 (sparc_cannot_store_register): Turn into...
2287 (sparc_target::low_cannot_store_register): ...this.
2288 (the_low_target): Remove the op fields.
2289 * linux-tic6x-low.cc (class tic6x_target)
2290 <low_cannot_fetch_register>
2291 <low_cannot_store_register>: Declare.
2292 (tic6x_cannot_fetch_register): Turn into...
2293 (tic6x_target::low_cannot_fetch_register): ...this.
2294 (tic6x_cannot_store_register): Turn into...
2295 (tic6x_target::low_cannot_store_register): ...this.
2296 (the_low_target): Remove the op fields.
2297 * linux-tile-low.cc (class tile_target)
2298 <low_cannot_fetch_register>
2299 <low_cannot_store_register>: Declare.
2300 (tile_cannot_fetch_register): Turn into...
2301 (tile_target::low_cannot_fetch_register): ...this.
2302 (tile_cannot_store_register): Turn into...
2303 (tile_target::low_cannot_store_register): ...this.
2304 (the_low_target): Remove the op fields.
2305 * linux-xtensa-low.cc (class xtensa_target)
2306 <low_cannot_fetch_register>
2307 <low_cannot_store_register>: Declare.
2308 (xtensa_target::low_cannot_fetch_register)
2309 (xtensa_target::low_cannot_store_register): Define.
2310 (the_low_target): Remove the op fields.
2312 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2314 Turn the 'regs_info' linux target op into a method of
2315 linux_process_target.
2317 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2318 (class linux_process_target) <get_regs_info>: Define.
2320 Update the callers below.
2322 * linux-low.cc (linux_process_target::fetch_registers)
2323 (linux_process_target::store_registers)
2324 * proc-service.cc (gregset_info)
2326 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2327 (x86_linux_regs_info): Turn into ...
2328 (x86_target::get_regs_info): ...this.
2329 (the_low_target): Remove the op field.
2330 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2332 (aarch64_regs_info): Turn into ...
2333 (aarch64_target::get_regs_info): ...this.
2334 (the_low_target): Remove the op field.
2335 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2336 (arm_regs_info): Turn into ...
2337 (arm_target::get_regs_info): ...this.
2338 (the_low_target): Remove the op field.
2339 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2340 (bfin_regs_info): Turn into ...
2341 (bfin_target::get_regs_info): ...this.
2342 (the_low_target): Remove the op field.
2343 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2344 (cris_regs_info): Turn into ...
2345 (cris_target::get_regs_info): ...this.
2346 (the_low_target): Remove the op field.
2347 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2349 (crisv32_regs_info): Turn into ...
2350 (crisv32_target::get_regs_info): ...this.
2351 (the_low_target): Remove the op field.
2352 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2353 (ia64_regs_info): Turn into ...
2354 (ia64_target::get_regs_info): ...this.
2355 (the_low_target): Remove the op field.
2356 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2357 (m32r_regs_info): Turn into ...
2358 (m32r_target::get_regs_info): ...this.
2359 (the_low_target): Remove the op field.
2360 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2361 (m68k_regs_info): Turn into ...
2362 (m68k_target::get_regs_info): ...this.
2363 (the_low_target): Remove the op field.
2364 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2365 (mips_regs_info): Turn into ...
2366 (mips_target::get_regs_info): ...this.
2367 (the_low_target): Remove the op field.
2368 (get_usrregs_info): Update the call to the op.
2369 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2370 (nios2_regs_info): Turn into ...
2371 (nios2_target::get_regs_info): ...this.
2372 (the_low_target): Remove the op field.
2373 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2374 (ppc_regs_info): Turn into ...
2375 (ppc_target::get_regs_info): ...this.
2376 (the_low_target): Remove the op field.
2377 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2378 (riscv_regs_info): Turn into ...
2379 (riscv_target::get_regs_info): ...this.
2380 (the_low_target): Remove the op field.
2381 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2382 (s390_regs_info): Turn into ...
2383 (s390_target::get_regs_info): ...this.
2384 (the_low_target): Remove the op field.
2385 (s390_collect_ptrace_register)
2386 (s390_supply_ptrace_register)
2387 (s390_fill_gregset): Update the call to the op.
2388 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2389 (sh_regs_info): Turn into ...
2390 (sh_target::get_regs_info): ...this.
2391 (the_low_target): Remove the op field.
2392 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2393 (sparc_regs_info): Turn into ...
2394 (sparc_target::get_regs_info): ...this.
2395 (the_low_target): Remove the op field.
2396 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2397 (tic6x_regs_info): Turn into ...
2398 (tic6x_target::get_regs_info): ...this.
2399 (the_low_target): Remove the op field.
2400 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2401 (tile_regs_info): Turn into ...
2402 (tile_target::get_regs_info): ...this.
2403 (the_low_target): Remove the op field.
2404 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2406 (xtensa_regs_info): Turn into ...
2407 (xtensa_target::get_regs_info): ...this.
2408 (the_low_target): Remove the op field.
2410 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2412 Turn the 'arch_setup' linux target op into a method of
2413 linux_process_target.
2415 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2416 (class linux_process_target) <arch_setup_thread>
2417 <low_arch_setup>: New declarations.
2418 * linux-low.cc (linux_arch_setup): Delete.
2419 (linux_arch_setup_thread): Turn into...
2420 (linux_process_target::arch_setup_thread): ... this.
2422 Update the callers below.
2424 (linux_process_target::handle_extended_wait)
2425 (linux_process_target::post_create_inferior)
2426 (linux_process_target::filter_event)
2428 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2430 (x86_linux_update_xmltarget): Turn into...
2431 (x86_target::update_xmltarget): ...this.
2432 (x86_linux_process_qsupported): Update the call to
2433 x86_linux_update_xmltarget.
2434 (x86_arch_setup): Turn into ...
2435 (x86_target::low_arch_setup): ...this.
2436 (the_low_target): Remove the op field.
2437 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2439 (aarch64_arch_setup): Turn into ...
2440 (aarch64_target::low_arch_setup): ...this.
2441 (the_low_target): Remove the op field.
2442 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2444 (arm_arch_setup): Turn into ...
2445 (arm_target::low_arch_setup): ...this.
2446 (the_low_target): Remove the op field.
2447 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2449 (bfin_arch_setup): Turn into ...
2450 (bfin_target::low_arch_setup): ...this.
2451 (the_low_target): Remove the op field.
2452 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2454 (cris_arch_setup): Turn into ...
2455 (cris_target::low_arch_setup): ...this.
2456 (the_low_target): Remove the op field.
2457 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2459 (crisv32_arch_setup): Turn into ...
2460 (crisv32_target::low_arch_setup): ...this.
2461 (the_low_target): Remove the op field.
2462 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2464 (ia64_arch_setup): Turn into ...
2465 (ia64_target::low_arch_setup): ...this.
2466 (the_low_target): Remove the op field.
2467 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2469 (m32r_arch_setup): Turn into ...
2470 (m32r_target::low_arch_setup): ...this.
2471 (the_low_target): Remove the op field.
2472 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2474 (m68k_arch_setup): Turn into ...
2475 (m68k_target::low_arch_setup): ...this.
2476 (the_low_target): Remove the op field.
2477 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2479 (mips_arch_setup): Turn into ...
2480 (mips_target::low_arch_setup): ...this.
2481 (the_low_target): Remove the op field.
2482 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2484 (nios2_arch_setup): Turn into ...
2485 (nios2_target::low_arch_setup): ...this.
2486 (the_low_target): Remove the op field.
2487 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2489 (ppc_arch_setup): Turn into ...
2490 (ppc_target::low_arch_setup): ...this.
2491 (the_low_target): Remove the op field.
2492 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2494 (riscv_arch_setup): Turn into ...
2495 (riscv_target::low_arch_setup): ...this.
2496 (the_low_target): Remove the op field.
2497 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2499 (s390_arch_setup): Turn into ...
2500 (s390_target::low_arch_setup): ...this.
2501 (the_low_target): Remove the op field.
2502 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2504 (sh_arch_setup): Turn into ...
2505 (sh_target::low_arch_setup): ...this.
2506 (the_low_target): Remove the op field.
2507 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2509 (sparc_arch_setup): Turn into ...
2510 (sparc_target::low_arch_setup): ...this.
2511 (the_low_target): Remove the op field.
2512 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2514 (tic6x_arch_setup): Turn into ...
2515 (tic6x_target::low_arch_setup): ...this.
2516 (the_low_target): Remove the op field.
2517 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2519 (tile_arch_setup): Turn into ...
2520 (tile_target::low_arch_setup): ...this.
2521 (the_low_target): Remove the op field.
2522 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2524 (xtensa_arch_setup): Turn into ...
2525 (xtensa_target::low_arch_setup): ...this.
2526 (the_low_target): Remove the op field.
2528 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2530 * linux-low.h (the_linux_target): New extern declaration.
2531 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2533 (the_linux_target): Remove.
2534 * linux-x86-low.cc (class x86_target): New class.
2535 (the_x86_target): New static object.
2536 (the_linux_target): Define as pointer to the_x86_target.
2537 * linux-aarch64-low.cc (class aarch64_target): New class.
2538 (the_aarch64_target): New static object.
2539 (the_linux_target): Define as pointer to the_aarch64_target.
2540 * linux-arm-low.cc (class arm_target): New class.
2541 (the_arm_target): New static object.
2542 (the_linux_target): Define as pointer to the_arm_target.
2543 * linux-bfin-low.cc (class bfin_target): New class.
2544 (the_bfin_target): New static object.
2545 (the_linux_target): Define as pointer to the_bfin_target.
2546 * linux-cris-low.cc (class cris_target): New class.
2547 (the_cris_target): New static object.
2548 (the_linux_target): Define as pointer to the_cris_target.
2549 * linux-crisv32-low.cc (class crisv32_target): New class.
2550 (the_crisv32_target): New static object.
2551 (the_linux_target): Define as pointer to the_crisv32_target.
2552 * linux-ia64-low.cc (class ia64_target): New class.
2553 (the_ia64_target): New static object.
2554 (the_linux_target): Define as pointer to the_ia64_target.
2555 * linux-m32r-low.cc (class m32r_target): New class.
2556 (the_m32r_target): New static object.
2557 (the_linux_target): Define as pointer to the_m32r_target.
2558 * linux-m68k-low.cc (class m68k_target): New class.
2559 (the_m68k_target): New static object.
2560 (the_linux_target): Define as pointer to the_m68k_target.
2561 * linux-mips-low.cc (class mips_target): New class.
2562 (the_mips_target): New static object.
2563 (the_linux_target): Define as pointer to the_mips_target.
2564 * linux-nios2-low.cc (class nios2_target): New class.
2565 (the_nios2_target): New static object.
2566 (the_linux_target): Define as pointer to the_nios2_target.
2567 * linux-ppc-low.cc (class ppc_target): New class.
2568 (the_ppc_target): New static object.
2569 (the_linux_target): Define as pointer to the_ppc_target.
2570 * linux-riscv-low.cc (class riscv_target): New class.
2571 (the_riscv_target): New static object.
2572 (the_linux_target): Define as pointer to the_riscv_target.
2573 * linux-s390-low.cc (class s390_target): New class.
2574 (the_s390_target): New static object.
2575 (the_linux_target): Define as pointer to the_s390_target.
2576 * linux-sh-low.cc (class sh_target): New class.
2577 (the_sh_target): New static object.
2578 (the_linux_target): Define as pointer to the_sh_target.
2579 * linux-sparc-low.cc (class sparc_target): New class.
2580 (the_sparc_target): New static object.
2581 (the_linux_target): Define as pointer to the_sparc_target.
2582 * linux-tic6x-low.cc (class tic6x_target): New class.
2583 (the_tic6x_target): New static object.
2584 (the_linux_target): Define as pointer to the_tic6x_target.
2585 * linux-tile-low.cc (class tile_target): New class.
2586 (the_tile_target): New static object.
2587 (the_linux_target): Define as pointer to the_tile_target.
2588 * linux-xtensa-low.cc (class xtensa_target): New class.
2589 (the_xtensa_target): New static object.
2590 (the_linux_target): Define as pointer to the_xtensa_target.
2592 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2594 Turn some static functions in linux-low.cc into private methods of
2595 linux_process_target.
2597 * linux-low.cc (handle_extended_wait): Turn into ...
2598 (linux_process_target::handle_extended_wait): ...this. Call
2599 'mourn' on 'this' object instead of 'the_target'.
2600 (maybe_move_out_of_jump_pad): Turn into...
2601 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2602 (linux_low_filter_event): Turn into...
2603 (linux_process_target::filter_event): ...this.
2604 (linux_wait_for_event_filtered): Turn into...
2605 (linux_process_target::wait_for_event_filtered): ...this.
2606 (linux_wait_for_event): Turn into...
2607 (linux_process_target::wait_for_event): ...this.
2608 (linux_wait_1): Turn into...
2609 (linux_process_target::wait_1): ...this.
2610 (wait_for_sigstop): Turn into...
2611 (linux_process_target::wait_for_sigstop): ...this.
2612 (move_out_of_jump_pad_callback): Turn into...
2613 (linux_process_target::move_out_of_jump_pad): ...this.
2614 (stop_all_lwps): Turn into...
2615 (linux_process_target::stop_all_lwps): ...this.
2616 (start_step_over): Turn into...
2617 (linux_process_target::start_step_over): ...this.
2618 (complete_ongoing_step_over): Turn into...
2619 (linux_process_target::complete_ongoing_step_over): ...this.
2620 (proceed_all_lwps): Turn into...
2621 (linux_process_target::proceed_all_lwps): ...this.
2622 (unstop_all_lwps): Turn into...
2623 (linux_process_target::unstop_all_lwps): ...this.
2625 * linux-low.h (class linux_process_target)
2626 <handle_extended_wait>
2627 <maybe_move_out_of_jump_pad>
2629 <wait_for_event_filtered>
2633 <move_out_of_jump_pad>
2636 <complete_ongoing_step_over>
2638 <unstop_all_lwps>: Declare.
2640 Update the callers below.
2642 * linux-low.cc (linux_process_target::attach): Update.
2643 (linux_process_target::stabilize_threads): Ditto.
2644 (linux_process_target::wait): Ditto.
2646 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2648 * linux-low.h (struct linux_target_ops): Update the comment for
2649 'cannot_store_register' to return 0 or 1.
2650 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2653 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2655 * config.in: Re-generate.
2656 * configure: Re-generate.
2658 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2660 * regcache.cc (find_register_by_number): Update.
2661 * tdesc.cc (init_target_desc): Likewise.
2662 * tdesc.h (target_desc::reg_defs): Likewise.
2664 2020-03-12 Tom Tromey <tom@tromey.com>
2666 * configure: Rebuild.
2667 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2668 (WIN32APILIBS): New subst.
2669 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2671 (gdbsupport/%.o): Remove target.
2672 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2673 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2674 (WIN32APILIBS): New variable.
2675 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2676 (gdbreplay$(EXEEXT)): Likewise.
2678 2020-03-12 Tom Tromey <tom@tromey.com>
2680 * config.in, configure: Rebuild.
2681 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2682 * acinclude.m4: Include gettext-sister.m4.
2683 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2685 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2686 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2688 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2690 * acinclude.m4: Update path to selftest.m4.
2692 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2694 * configure.ac: Don't source bfd/development.sh, move
2695 GDB_AC_COMMON higher.
2696 * configure: Re-generate.
2698 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2700 * configure: Re-generate.
2702 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2704 * configure: Re-generate.
2706 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2708 * .dir-locals.el: New file.
2710 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2712 * .gitattributes: New file.
2714 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2716 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2717 reply into an S reply.
2718 * server.cc (disable_packet_T): New global.
2719 (captured_main): Set new global when appropriate.
2720 * server.h (disable_packet_T): Declare.
2722 2020-02-21 Tom Tromey <tom@tromey.com>
2724 * Makefile.in (mostlyclean): New target.
2726 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2728 * target.h (struct process_stratum_target): Remove.
2729 (class process_target): Rename to ...
2730 (class process_stratum_target): ... this.
2731 * linux-low.h (class linux_process_target): Derive from
2732 'process_stratum_target'.
2733 * linux-low.cc (linux_target_ops): Remove.
2734 (initialize_low): Set the_target to the singleton instance of
2735 linux_process_target.
2736 * lynx-low.h (class lynx_process_target): Derive from
2737 'process_stratum_target'.
2738 * lynx-low.cc (lynx_target_ops): Remove.
2739 (initialize_low): Set the_target to the singleton instance of
2740 lynx_process_target.
2741 * nto-low.h (class nto_process_target): Derive from
2742 'process_stratum_target'.
2743 * nto-low.cc (nto_target_ops): Remove.
2744 (initialize_low): Set the_target to the singleton instance of
2746 * win32-low.h (class win32_process_target): Derive from
2747 'process_stratum_target'.
2748 * win32-low.cc (win32_target_ops): Remove.
2749 (initialize_low): Set the_target to the singleton instance of
2750 win32_process_target.
2752 Replace 'the_target->pt' with 'the_target' in the uses below.
2754 * hostio.cc (hostio_error)
2759 * linux-aarch32-low.cc (arm_breakpoint_at)
2760 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2761 * linux-arm-low.cc (arm_sigreturn_next_pc)
2763 (arm_get_syscall_trapinfo)
2764 * linux-cris-low.cc (cris_breakpoint_at)
2765 * linux-crisv32-low.cc (cris_breakpoint_at)
2766 * linux-low.cc (handle_extended_wait)
2769 (linux_process_target::breakpoint_kind_from_pc)
2771 * linux-m32r-low.cc (m32r_breakpoint_at)
2772 * linux-mips-low.cc (mips_breakpoint_at)
2773 * linux-nios2-low.cc (nios2_breakpoint_at)
2774 * linux-ppc-low.cc (ppc_breakpoint_at)
2775 * linux-s390-low.cc (s390_get_hwcap)
2776 * linux-sh-low.cc (sh_breakpoint_at)
2777 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2778 (sparc_store_gregset_from_stack)
2779 (sparc_breakpoint_at)
2780 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2781 * linux-tile-low.cc (tile_breakpoint_at)
2782 * linux-x86-low.cc (x86_breakpoint_at)
2783 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2784 * mem-break.cc (bp_size)
2786 (insert_memory_breakpoint)
2787 (set_raw_breakpoint_at)
2788 (delete_raw_breakpoint)
2790 (uninsert_raw_breakpoint)
2791 (reinsert_raw_breakpoint)
2792 (validate_inserted_breakpoint)
2793 * regcache.cc (regcache_read_pc)
2795 * remote-utils.cc (putpkt_binary_1)
2798 (prepare_resume_reply)
2799 * server.cc (handle_general_set)
2802 (handle_qxfer_exec_file)
2803 (handle_qxfer_libraries_svr4)
2804 (handle_qxfer_osdata)
2805 (handle_qxfer_siginfo)
2806 (handle_qxfer_fdpic)
2810 (queue_stop_reply_callback)
2812 * target.cc (prepare_to_access_memory)
2813 (done_accessing_memory)
2814 (read_inferior_memory)
2815 (target_write_memory)
2816 (target_stop_and_wait)
2818 (target_mourn_inferior)
2819 (target_continue_no_signal)
2821 (target_supports_multi_process)
2824 (target_create_inferior)
2825 (target_post_create_inferior)
2827 (target_supports_fork_events)
2828 (target_supports_vfork_events)
2829 (target_supports_exec_events)
2830 (target_handle_new_gdb_connection)
2833 (fetch_inferior_registers)
2834 (store_inferior_registers)
2836 (target_supports_non_stop)
2838 (target_process_qsupported)
2839 (target_supports_catch_syscall)
2840 (target_get_ipa_tdesc_idx)
2841 (target_supports_tracepoints)
2842 (target_supports_fast_tracepoints)
2843 (target_get_min_fast_tracepoint_insn_len)
2844 (target_thread_stopped)
2846 (target_unpause_all)
2847 (target_stabilize_threads)
2848 (target_install_fast_tracepoint_jump_pad)
2850 (target_supports_disable_randomization)
2851 (target_supports_agent)
2852 (target_enable_btrace)
2853 (target_disable_btrace)
2854 (target_read_btrace)
2855 (target_read_btrace_conf)
2856 (target_supports_range_stepping)
2857 (target_supports_stopped_by_sw_breakpoint)
2858 (target_stopped_by_sw_breakpoint)
2859 (target_supports_stopped_by_hw_breakpoint)
2860 (target_supports_hardware_single_step)
2861 (target_stopped_by_hw_breakpoint)
2862 (target_breakpoint_kind_from_pc)
2863 (target_breakpoint_kind_from_current_state)
2864 (target_supports_software_single_step)
2865 (target_core_of_thread)
2866 (target_thread_name)
2867 (target_thread_handle)
2868 * win32-low.cc (do_initial_child_stuff)
2870 Rename target op default definitions listed below.
2872 * target.cc (process_target::post_create_inferior): Rename as ...
2873 (process_stratum_target::post_create_inferior): ... this.
2874 (process_target::prepare_to_access_memory): Rename as ...
2875 (process_stratum_target::prepare_to_access_memory): ... this.
2876 (process_target::done_accessing_memory): Rename as ...
2877 (process_stratum_target::done_accessing_memory): ... this.
2878 (process_target::look_up_symbols): Rename as ...
2879 (process_stratum_target::look_up_symbols): ... this.
2880 (process_target::supports_read_auxv): Rename as ...
2881 (process_stratum_target::supports_read_auxv): ... this.
2882 (process_target::read_auxv): Rename as ...
2883 (process_stratum_target::read_auxv): ... this.
2884 (process_target::supports_z_point_type): Rename as ...
2885 (process_stratum_target::supports_z_point_type): ... this.
2886 (process_target::insert_point): Rename as ...
2887 (process_stratum_target::insert_point): ... this.
2888 (process_target::remove_point): Rename as ...
2889 (process_stratum_target::remove_point): ... this.
2890 (process_target::stopped_by_sw_breakpoint): Rename as ...
2891 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
2892 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
2893 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
2894 (process_target::stopped_by_hw_breakpoint): Rename as ...
2895 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
2896 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
2897 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
2898 (process_target::supports_hardware_single_step): Rename as ...
2899 (process_stratum_target::supports_hardware_single_step): ... this.
2900 (process_target::stopped_by_watchpoint): Rename as ...
2901 (process_stratum_target::stopped_by_watchpoint): ... this.
2902 (process_target::stopped_data_address): Rename as ...
2903 (process_stratum_target::stopped_data_address): ... this.
2904 (process_target::supports_read_offsets): Rename as ...
2905 (process_stratum_target::supports_read_offsets): ... this.
2906 (process_target::read_offsets): Rename as ...
2907 (process_stratum_target::read_offsets): ... this.
2908 (process_target::supports_get_tls_address): Rename as ...
2909 (process_stratum_target::supports_get_tls_address): ... this.
2910 (process_target::get_tls_address): Rename as ...
2911 (process_stratum_target::get_tls_address): ... this.
2912 (process_target::hostio_last_error): Rename as ...
2913 (process_stratum_target::hostio_last_error): ... this.
2914 (process_target::supports_qxfer_osdata): Rename as ...
2915 (process_stratum_target::supports_qxfer_osdata): ... this.
2916 (process_target::qxfer_osdata): Rename as ...
2917 (process_stratum_target::qxfer_osdata): ... this.
2918 (process_target::supports_qxfer_siginfo): Rename as ...
2919 (process_stratum_target::supports_qxfer_siginfo): ... this.
2920 (process_target::qxfer_siginfo): Rename as ...
2921 (process_stratum_target::qxfer_siginfo): ... this.
2922 (process_target::supports_non_stop): Rename as ...
2923 (process_stratum_target::supports_non_stop): ... this.
2924 (process_target::async): Rename as ...
2925 (process_stratum_target::async): ... this.
2926 (process_target::start_non_stop): Rename as ...
2927 (process_stratum_target::start_non_stop): ... this.
2928 (process_target::supports_multi_process): Rename as ...
2929 (process_stratum_target::supports_multi_process): ... this.
2930 (process_target::supports_fork_events): Rename as ...
2931 (process_stratum_target::supports_fork_events): ... this.
2932 (process_target::supports_vfork_events): Rename as ...
2933 (process_stratum_target::supports_vfork_events): ... this.
2934 (process_target::supports_exec_events): Rename as ...
2935 (process_stratum_target::supports_exec_events): ... this.
2936 (process_target::handle_new_gdb_connection): Rename as ...
2937 (process_stratum_target::handle_new_gdb_connection): ... this.
2938 (process_target::handle_monitor_command): Rename as ...
2939 (process_stratum_target::handle_monitor_command): ... this.
2940 (process_target::core_of_thread): Rename as ...
2941 (process_stratum_target::core_of_thread): ... this.
2942 (process_target::supports_read_loadmap): Rename as ...
2943 (process_stratum_target::supports_read_loadmap): ... this.
2944 (process_target::read_loadmap): Rename as ...
2945 (process_stratum_target::read_loadmap): ... this.
2946 (process_target::process_qsupported): Rename as ...
2947 (process_stratum_target::process_qsupported): ... this.
2948 (process_target::supports_tracepoints): Rename as ...
2949 (process_stratum_target::supports_tracepoints): ... this.
2950 (process_target::read_pc): Rename as ...
2951 (process_stratum_target::read_pc): ... this.
2952 (process_target::write_pc): Rename as ...
2953 (process_stratum_target::write_pc): ... this.
2954 (process_target::supports_thread_stopped): Rename as ...
2955 (process_stratum_target::supports_thread_stopped): ... this.
2956 (process_target::thread_stopped): Rename as ...
2957 (process_stratum_target::thread_stopped): ... this.
2958 (process_target::supports_get_tib_address): Rename as ...
2959 (process_stratum_target::supports_get_tib_address): ... this.
2960 (process_target::get_tib_address): Rename as ...
2961 (process_stratum_target::get_tib_address): ... this.
2962 (process_target::pause_all): Rename as ...
2963 (process_stratum_target::pause_all): ... this.
2964 (process_target::unpause_all): Rename as ...
2965 (process_stratum_target::unpause_all): ... this.
2966 (process_target::stabilize_threads): Rename as ...
2967 (process_stratum_target::stabilize_threads): ... this.
2968 (process_target::supports_fast_tracepoints): Rename as ...
2969 (process_stratum_target::supports_fast_tracepoints): ... this.
2970 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
2971 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
2972 (process_target::emit_ops): Rename as ...
2973 (process_stratum_target::emit_ops): ... this.
2974 (process_target::supports_disable_randomization): Rename as ...
2975 (process_stratum_target::supports_disable_randomization): ... this.
2976 (process_target::supports_qxfer_libraries_svr4): Rename as ...
2977 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
2978 (process_target::qxfer_libraries_svr4): Rename as ...
2979 (process_stratum_target::qxfer_libraries_svr4): ... this.
2980 (process_target::supports_agent): Rename as ...
2981 (process_stratum_target::supports_agent): ... this.
2982 (process_target::enable_btrace): Rename as ...
2983 (process_stratum_target::enable_btrace): ... this.
2984 (process_target::disable_btrace): Rename as ...
2985 (process_stratum_target::disable_btrace): ... this.
2986 (process_target::read_btrace): Rename as ...
2987 (process_stratum_target::read_btrace): ... this.
2988 (process_target::read_btrace_conf): Rename as ...
2989 (process_stratum_target::read_btrace_conf): ... this.
2990 (process_target::supports_range_stepping): Rename as ...
2991 (process_stratum_target::supports_range_stepping): ... this.
2992 (process_target::supports_pid_to_exec_file): Rename as ...
2993 (process_stratum_target::supports_pid_to_exec_file): ... this.
2994 (process_target::pid_to_exec_file): Rename as ...
2995 (process_stratum_target::pid_to_exec_file): ... this.
2996 (process_target::supports_multifs): Rename as ...
2997 (process_stratum_target::supports_multifs): ... this.
2998 (process_target::multifs_open): Rename as ...
2999 (process_stratum_target::multifs_open): ... this.
3000 (process_target::multifs_unlink): Rename as ...
3001 (process_stratum_target::multifs_unlink): ... this.
3002 (process_target::multifs_readlink): Rename as ...
3003 (process_stratum_target::multifs_readlink): ... this.
3004 (process_target::breakpoint_kind_from_pc): Rename as ...
3005 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3006 (process_target::breakpoint_kind_from_current_state): Rename as ...
3007 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3008 (process_target::thread_name): Rename as ...
3009 (process_stratum_target::thread_name): ... this.
3010 (process_target::thread_handle): Rename as ...
3011 (process_stratum_target::thread_handle): ... this.
3012 (process_target::supports_software_single_step): Rename as ...
3013 (process_stratum_target::supports_software_single_step): ... this.
3014 (process_target::supports_catch_syscall): Rename as ...
3015 (process_stratum_target::supports_catch_syscall): ... this.
3016 (process_target::get_ipa_tdesc_idx): Rename as ...
3017 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3019 2020-02-20 Pedro Alves <palves@redhat.com>
3021 * target.cc (set_target_ops): Simply copy the given target pointer
3022 instead of creating a copy of the pointed object.
3024 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3026 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3029 * target.h (struct process_stratum_target): Remove the target op.
3030 (class process_target): Add the target op.
3031 (target_get_ipa_tdesc_idx): Update the macro.
3032 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3034 Update the derived classes and callers below.
3036 * linux-low.cc (linux_target_ops): Update.
3037 (linux_get_ipa_tdesc_idx): Turn into ...
3038 (linux_process_target::get_ipa_tdesc_idx): ... this.
3039 * linux-low.h (class linux_process_target): Update.
3040 * lynx-low.cc (lynx_target_ops): Update.
3041 * nto-low.cc (nto_target_ops): Update.
3042 * win32-low.cc (win32_target_ops): Update.
3044 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3046 Turn process_stratum_target's supports_catch_syscall op into a
3047 method of process_target.
3049 * target.h (struct process_stratum_target): Remove the target op.
3050 (class process_target): Add the target op.
3051 (target_supports_catch_syscall): Update the macro.
3052 * target.cc (process_target::supports_catch_syscall): Define.
3054 Update the derived classes and callers below.
3056 * linux-low.cc (linux_target_ops): Update.
3057 (linux_supports_catch_syscall): Turn into ...
3058 (linux_process_target::supports_catch_syscall): ... this.
3059 * linux-low.h (class linux_process_target): Update.
3060 * lynx-low.cc (lynx_target_ops): Update.
3061 * nto-low.cc (nto_target_ops): Update.
3062 * win32-low.cc (win32_target_ops): Update.
3064 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3066 Turn process_stratum_target's supports_software_single_step op
3067 into a method of process_target.
3069 * target.h (struct process_stratum_target): Remove the target op.
3070 (class process_target): Add the target op.
3071 (target_supports_software_single_step): Update the macro.
3072 * target.cc (process_target::supports_software_single_step): Define.
3074 Update the derived classes and callers below.
3076 * linux-low.cc (linux_target_ops): Update.
3077 (linux_supports_software_single_step): Turn into ...
3078 (linux_process_target::supports_software_single_step): ... this.
3079 * linux-low.h (class linux_process_target): Update.
3080 * lynx-low.cc (lynx_target_ops): Update.
3081 * nto-low.cc (nto_target_ops): Update.
3082 * win32-low.cc (win32_target_ops): Update.
3084 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3086 Turn process_stratum_target's thread_name and thread_handle ops
3087 into methods of process_target.
3089 * target.h (struct process_stratum_target): Remove the target ops.
3090 (class process_target): Add the target ops.
3091 (target_thread_name): Update the macro.
3092 (target_thread_handle): Update the macro.
3093 * target.cc (process_target::thread_name): Define.
3094 (process_target::thread_handle): Define.
3096 Update the derived classes and callers below.
3098 * linux-low.cc (linux_target_ops): Update.
3099 (linux_process_target::thread_name): Define.
3100 (linux_process_target::thread_handle): Define.
3101 * linux-low.h (class linux_process_target): Update.
3102 * lynx-low.cc (lynx_target_ops): Update.
3103 * nto-low.cc (nto_target_ops): Update.
3104 * win32-low.cc (win32_target_ops): Update.
3106 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3108 Turn process_stratum_target's breakpoint_kind_from_pc,
3109 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3110 ops into methods of process_target.
3112 * target.h (struct process_stratum_target): Remove the target op.
3113 (class process_target): Add the target op.
3114 (target_breakpoint_kind_from_pc): Update the macro.
3115 (target_breakpoint_kind_from_current_state): Update the macro.
3116 (default_breakpoint_kind_from_pc): Remove declaration.
3117 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3118 (process_target::breakpoint_kind_from_pc): ... this.
3119 (process_target::breakpoint_kind_from_current_state): Define.
3121 Update the derived classes and callers below.
3123 * mem-break.cc (bp_size): Update.
3124 (bp_opcode): Update.
3125 * linux-low.cc (linux_target_ops): Update.
3126 (linux_wait_1): Update.
3127 (linux_breakpoint_kind_from_pc): Turn into ...
3128 (linux_process_target::breakpoint_kind_from_pc): ... this.
3129 (linux_sw_breakpoint_from_kind): Turn into ...
3130 (linux_process_target::sw_breakpoint_from_kind): ... this.
3131 (linux_breakpoint_kind_from_current_state): Turn into ...
3132 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3133 * linux-low.h (class linux_process_target): Update.
3134 * lynx-low.cc (lynx_target_ops): Update.
3135 (lynx_process_target::sw_breakpoint_from_kind): Define.
3136 * lynx-low.h (class lynx_process_target): Update.
3137 * nto-low.cc (nto_target_ops): Update.
3138 (nto_sw_breakpoint_from_kind): Turn into ...
3139 (nto_process_target::sw_breakpoint_from_kind): ... this.
3140 * nto-low.h (class nto_process_target): Update.
3141 * win32-low.cc (win32_target_ops): Update.
3142 (win32_sw_breakpoint_from_kind): Turn into ...
3143 (win32_process_target::sw_breakpoint_from_kind): ... this.
3144 * win32-low.h (class win32_process_target): Update.
3146 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3148 Turn process_stratum_target's multifs_open, multifs_readlink,
3149 multifs_unlink ops into methods of process_target.
3151 * target.h (struct process_stratum_target): Remove the target ops.
3152 (class process_target): Add the target ops. Also add
3154 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3156 (process_target::supports_multifs): Define.
3157 (process_target::multifs_open): Define.
3158 (process_target::multifs_readlink): Define.
3159 (process_target::multifs_unlink): Define.
3161 Update the derived classes and callers below.
3163 * hostio.cc (handle_setfs): Update.
3164 (handle_open): Update.
3165 (handle_unlink): Update.
3166 (handle_readlink): Update.
3167 * linux-low.cc (linux_target_ops): Update.
3168 (linux_process_target::supports_multifs): Define.
3169 (linux_process_target::multifs_open): Define.
3170 (linux_process_target::multifs_readlink): Define.
3171 (linux_process_target::multifs_unlink): Define.
3172 * linux-low.h (class linux_process_target): Update.
3173 * lynx-low.cc (lynx_target_ops): Update.
3174 * nto-low.cc (nto_target_ops): Update.
3175 * win32-low.cc (win32_target_ops): Update.
3177 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3179 Turn process_stratum_target's pid_to_exec_file op into a method
3182 * target.h (struct process_stratum_target): Remove the target op.
3183 (class process_target): Add the target op. Also add
3184 'supports_pid_to_exec_file'.
3185 * target.cc (process_target::pid_to_exec_file): Define.
3186 (process_target::supports_pid_to_exec_file): Define.
3188 Update the derived classes and callers below.
3190 * server.cc (handle_qxfer_exec_file): Update.
3191 (handle_query): Update.
3192 * linux-low.cc (linux_target_ops): Update.
3193 (linux_process_target::supports_pid_to_exec_file): Define.
3194 (linux_process_target::pid_to_exec_file): Define.
3195 * linux-low.h (class linux_process_target): Update.
3196 * lynx-low.cc (lynx_target_ops): Update.
3197 * nto-low.cc (nto_target_ops): Update.
3198 * win32-low.cc (win32_target_ops): Update.
3200 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3202 Turn process_stratum_target's supports_range_stepping op into a
3203 method of process_target.
3205 * target.h (struct process_stratum_target): Remove the target op.
3206 (class process_target): Add the target op.
3207 (target_supports_range_stepping): Update the macro.
3208 * target.cc (process_target::supports_range_stepping): Define.
3210 Update the derived classes and callers below.
3212 * linux-low.cc (linux_target_ops): Update.
3213 (linux_supports_range_stepping): Turn into ...
3214 (linux_process_target::supports_range_stepping): ... this.
3215 * linux-low.h (class linux_process_target): Update.
3216 * lynx-low.cc (lynx_target_ops): Update.
3217 * nto-low.cc (nto_target_ops): Update.
3218 * win32-low.cc (win32_target_ops): Update.
3220 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3222 Turn process_stratum_target's btrace-related ops (enable_btrace,
3223 disable_btrace, read_btrace, read_btrace_conf) into methods of
3226 * target.h (struct process_stratum_target): Remove the target ops.
3227 (class process_target): Add the target ops.
3228 (target_enable_btrace): Update.
3229 (target_disable_btrace): Update.
3230 (target_read_btrace): Update.
3231 (target_read_btrace_conf): Update.
3232 * target.cc (process_target::enable_btrace): Define.
3233 (process_target::disable_btrace): Define.
3234 (process_target::read_btrace): Define.
3235 (process_target::read_btrace_conf): Define.
3237 Update the derived classes and callers below.
3239 * linux-low.cc (linux_target_ops): Update.
3240 (linux_process_target:enable_btrace): Define as a wrapper around
3241 linux_enable_btrace.
3242 (linux_low_disable_btrace): Turn into ...
3243 (linux_process_target::disable_btrace): ... this.
3244 (linux_low_read_btrace): Turn into ...
3245 (linux_process_target::read_btrace): ... this.
3246 (linux_low_btrace_conf): Turn into ...
3247 (linux_process_target::read_btrace_conf): ... this.
3248 * linux-low.h (class linux_process_target): Update.
3249 * lynx-low.cc (lynx_target_ops): Update.
3250 * nto-low.cc (nto_target_ops): Update.
3251 * win32-low.cc (win32_target_ops): Update.
3253 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3255 Turn process_stratum_target's supports_agent op into a method of
3258 * target.h (struct process_stratum_target): Remove the target op.
3259 (class process_target): Add the target op.
3260 (target_supports_agent): Update the macro.
3261 * target.cc (process_target::supports_agent): Define.
3263 Update the derived classes and callers below.
3265 * linux-low.cc (linux_target_ops): Update.
3266 (linux_supports_agent): Turn into ...
3267 (linux_process_target::supports_agent): ... this.
3268 * linux-low.h (class linux_process_target): Update.
3269 * lynx-low.cc (lynx_target_ops): Update.
3270 * nto-low.cc (nto_target_ops): Update.
3271 * win32-low.cc (win32_target_ops): Update.
3273 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3275 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3276 method of process_target.
3278 * target.h (struct process_stratum_target): Remove the target op.
3279 (class process_target): Add the target op. Also add
3280 'supports_qxfer_libraries_svr4'.
3281 * target.cc (process_target::qxfer_libraries_svr4): Define.
3282 (process_target::supports_qxfer_libraries_svr4): Define.
3284 Update the derived classes and callers below.
3286 * server.cc (handle_qxfer_libraries_svr4): Update.
3287 (handle_query): Update.
3288 * linux-low.cc (linux_target_ops): Update.
3289 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3290 (linux_qxfer_libraries_svr4): Turn into ...
3291 (linux_process_target::qxfer_libraries_svr4): ... this.
3292 * linux-low.h (class linux_process_target): Update.
3293 * lynx-low.cc (lynx_target_ops): Update.
3294 * nto-low.cc (nto_target_ops): Update.
3295 * win32-low.cc (win32_target_ops): Update.
3297 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3299 Turn process_stratum_target's supports_disable_randomization op
3300 into a method of process_target.
3302 * target.h (struct process_stratum_target): Remove the target op.
3303 (class process_target): Add the target op.
3304 (target_supports_disable_randomization): Update the macro.
3305 * target.cc (process_target::supports_disable_randomization): Define.
3307 Update the derived classes and callers below.
3309 * linux-low.cc (linux_target_ops): Update.
3310 (linux_supports_disable_randomization): Turn into ...
3311 (linux_process_target::supports_disable_randomization): ... this.
3312 * linux-low.h (class linux_process_target): Update.
3313 * lynx-low.cc (lynx_target_ops): Update.
3314 * nto-low.cc (nto_target_ops): Update.
3315 * win32-low.cc (win32_target_ops): Update.
3317 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3319 Turn process_stratum_target's emit_ops op into a method of
3322 * target.h (struct process_stratum_target): Remove the target op.
3323 (class process_target): Add the target op.
3324 (target_emit_ops): Update the macro.
3325 * target.cc (process_target::emit_ops): Define.
3327 Update the derived classes and callers below.
3329 * linux-low.cc (linux_target_ops): Update.
3330 (linux_emit_ops): Turn into ...
3331 (linux_process_target::emit_ops): ... this.
3332 * linux-low.h (class linux_process_target): Update.
3333 * lynx-low.cc (lynx_target_ops): Update.
3334 * nto-low.cc (nto_target_ops): Update.
3335 * win32-low.cc (win32_target_ops): Update.
3337 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3339 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3340 and get_min_fast_tracepoint_insn_len ops into methods of
3343 * target.h (struct process_stratum_target): Remove the target ops.
3344 (class process_target): Add the target ops. Also add
3345 'supports_fast_tracepoints'.
3346 (target_supports_fast_tracepoints): Update the macro.
3347 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3348 (install_fast_tracepoint_jump_pad): Update and rename the macro
3350 (target_install_fast_tracepoint_jump_pad): ... this.
3351 * target.cc (process_target::supports_fast_tracepoints): Define.
3352 (process_target::install_fast_tracepoint_jump_pad): Define.
3353 (process_target::get_min_fast_tracepoint_insn_len): Define.
3355 Update the derived classes and callers below.
3357 * tracepoint.cc (install_fast_tracepoint): Update.
3358 * linux-low.cc (linux_target_ops): Update.
3359 (linux_process_target::supports_fast_tracepoints): Define.
3360 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3361 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3362 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3363 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3364 * linux-low.h (class linux_process_target): Update.
3365 * lynx-low.cc (lynx_target_ops): Update.
3366 * nto-low.cc (nto_target_ops): Update.
3367 * win32-low.cc (win32_target_ops): Update.
3369 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3371 Turn process_stratum_target's stabilize_threads op into a
3372 method of process_target.
3374 * target.h (struct process_stratum_target): Remove the target op.
3375 (class process_target): Add the target op.
3376 (target_stabilize_threads): Update the macro.
3377 * target.cc (process_target::stabilize_threads): Define.
3379 Update the derived classes and callers below.
3381 * server.cc (handle_status): Update.
3382 * tracepoint.cc (cmd_qtdp): Update.
3383 (cmd_qtstart): Update.
3384 * linux-low.cc (linux_target_ops): Update.
3385 (linux_stabilize_threads): Turn into ...
3386 (linux_process_target::stabilize_threads): ... this.
3387 (linux_wait_1): Update.
3388 * linux-low.h (class linux_process_target): Update.
3389 * lynx-low.cc (lynx_target_ops): Update.
3390 * nto-low.cc (nto_target_ops): Update.
3391 * win32-low.cc (win32_target_ops): Update.
3393 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3395 Turn process_stratum_target's pause_all and unpause_all ops
3396 into methods of process_target.
3398 * target.h (struct process_stratum_target): Remove the target ops.
3399 (class process_target): Add the target ops.
3400 (pause_all): Update the macro and rename to...
3401 (target_pause_all): ... this.
3402 (unpause_all): Update the macro and rename to...
3403 (target_unpause_all): ... this.
3404 * target.cc (process_target::pause_all): Define.
3405 (process_target::unpause_all): Define.
3407 Update the derived classes and callers below.
3409 * server.cc (handle_status): Update.
3410 * tracepoint.cc (clear_installed_tracepoints): Update.
3412 (cmd_qtstart): Update.
3413 (stop_tracing): Update.
3414 (cmd_qtstatus): Update.
3415 (upload_fast_traceframes): Update.
3416 (run_inferior_command): Update.
3417 * linux-low.cc (linux_target_ops): Update.
3418 (linux_pause_all): Turn into ...
3419 (linux_process_target::pause_all): ... this.
3420 (linux_unpause_all): Turn into ...
3421 (linux_process_target::unpause_all): ... this.
3422 (linux_process_target::prepare_to_access_memory): Update.
3423 (linux_process_target::done_accessing_memory): Update.
3424 * linux-low.h (class linux_process_target): Update.
3425 * lynx-low.cc (lynx_target_ops): Update.
3426 * nto-low.cc (nto_target_ops): Update.
3427 * win32-low.cc (win32_target_ops): Update.
3429 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3431 Turn process_stratum_target's get_tib_address op into a method of
3434 * target.h (struct process_stratum_target): Remove the target op.
3435 (class process_target): Add the target op. Also add
3436 'supports_get_tib_address'.
3437 * target.cc (process_target::get_tib_address): Define.
3438 (process_target::supports_get_tib_address): Define.
3440 Update the derived classes and callers below.
3442 * server.cc (handle_query): Update.
3443 * linux-low.cc (win32_target_ops): Update.
3444 * lynx-low.cc (lynx_target_ops): Update.
3445 * nto-low.cc (nto_target_ops): Update.
3446 * win32-low.cc (win32_target_ops): Update.
3447 (win32_process_target::supports_get_tib_address): Define.
3448 (win32_get_tib_address): Turn into ...
3449 (win32_process_target::get_tib_address): ... this.
3450 * win32-low.h (class win32_process_target): Update.
3452 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3454 Turn process_stratum_target's thread_stopped op into a method of
3457 * target.h (struct process_stratum_target): Remove the target op.
3458 (class process_target): Add the target op. Also add
3459 'supports_thread_stopped'.
3460 (target_thread_stopped): Update the macro.
3461 * target.cc (process_target::thread_stopped): Define.
3462 (process_target::supports_thread_stopped): Define.
3463 (prepare_to_access_memory): Update.
3465 Update the derived classes and callers below.
3467 * server.cc (queue_stop_reply_callback): Update.
3468 * linux-low.cc (linux_target_ops): Update.
3469 (linux_process_target::supports_thread_stopped): Define.
3470 (linux_thread_stopped): Turn into ...
3471 (linux_process_target::thread_stopped): ... this.
3472 * linux-low.h (class linux_process_target): Update.
3473 * lynx-low.cc (lynx_target_ops): Update.
3474 * nto-low.cc (nto_target_ops): Update.
3475 * win32-low.cc (win32_target_ops): Update.
3477 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3479 Turn process_stratum_target's read_pc and write_pc ops into
3480 methods of process_target.
3482 * target.h (struct process_stratum_target): Remove the target ops.
3483 (class process_target): Add the target ops.
3484 * target.cc (process_target::read_pc): Define.
3485 (process_target::write_pc): Define.
3487 Update the derived classes and callers below.
3489 * regcache.cc (regcache_read_pc): Update.
3490 (regcache_write_pc): Update.
3491 * linux-low.cc (linux_target_ops): Update.
3492 (linux_read_pc): Turn into ...
3493 (linux_process_target::read_pc): ... this.
3494 (linux_write_pc): Turn into ...
3495 (linux_process_target::write_pc): ... this.
3496 * linux-low.h (class linux_process_target): Update.
3497 * lynx-low.cc (lynx_target_ops): Update.
3498 * nto-low.cc (nto_target_ops): Update.
3499 * win32-low.cc (win32_target_ops): Update.
3501 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3503 Turn process_stratum_target's supports_tracepoints op into a
3504 method of process_target.
3506 * target.h (struct process_stratum_target): Remove the target op.
3507 (class process_target): Add the target op.
3508 (target_supports_tracepoints): Update the macro.
3509 * target.cc (process_target::supports_tracepoints): Define.
3511 Update the derived classes and callers below.
3513 * linux-low.cc (linux_target_ops): Update.
3514 (linux_supports_tracepoints): Turn into ...
3515 (linux_process_target::supports_tracepoints): ... this.
3516 * linux-low.h (class linux_process_target): Update.
3517 * lynx-low.cc (lynx_target_ops): Update.
3518 * nto-low.cc (nto_target_ops): Update.
3519 * win32-low.cc (win32_target_ops): Update.
3521 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3523 Turn process_stratum_target's process_qsupported op into a method
3526 * target.h (struct process_stratum_target): Remove the target op.
3527 (class process_target): Add the target op.
3528 (target_process_qsupported): Update the macro.
3529 * target.cc (process_target::process_qsupported): Define.
3531 Update the derived classes and callers below.
3533 * linux-low.cc (linux_target_ops): Update.
3534 (linux_process_qsupported): Turn into ...
3535 (linux_process_target::process_qsupported): ... this.
3536 * linux-low.h (class linux_process_target): Update.
3537 * lynx-low.cc (lynx_target_ops): Update.
3538 * nto-low.cc (nto_target_ops): Update.
3539 * win32-low.cc (win32_target_ops): Update.
3541 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3543 Turn process_stratum_target's read_loadmap op into a method of
3546 * target.h (struct process_stratum_target): Remove the target op.
3547 (class process_target): Add the target op. Also add
3548 'supports_read_loadmap'.
3549 * target.cc (process_target::read_loadmap): Define.
3550 (process_target::supports_read_loadmap): Define.
3552 Update the derived classes and callers below.
3554 * server.cc (handle_qxfer_fdpic): Update.
3555 (handle_query): Update.
3556 * linux-low.cc (linux_target_ops): Update.
3557 (linux_process_target::supports_read_loadmap): Define.
3558 (linux_read_loadmap): Turn into ...
3559 (linux_process_target::read_loadmap): ... this.
3560 * linux-low.h (class linux_process_target): Update.
3561 * lynx-low.cc (lynx_target_ops): Update.
3562 * nto-low.cc (nto_target_ops): Update.
3563 * win32-low.cc (win32_target_ops): Update.
3565 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3567 Turn process_stratum_target's core_of_thread op into a method of
3570 * target.h (struct process_stratum_target): Remove the target op.
3571 (class process_target): Add the target op.
3572 (target_core_of_thread): Update the macro.
3573 * target.cc (process_target::core_of_thread): Define.
3575 Update the derived classes and callers below.
3577 * linux-low.cc (linux_target_ops): Update.
3578 (linux_process_target::core_of_thread): Define.
3579 * linux-low.h (class linux_process_target): Update.
3580 * lynx-low.cc (lynx_target_ops): Update.
3581 * nto-low.cc (nto_target_ops): Update.
3582 * win32-low.cc (win32_target_ops): Update.
3584 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3586 Turn process_stratum_target's handle_monitor_command op into a
3587 method of process_target.
3589 * target.h (struct process_stratum_target): Remove the target op.
3590 (class process_target): Add the target op.
3591 (target_handle_monitor_command): Update the macro.
3592 * target.cc (process_target::handle_monitor_command): Define.
3594 Update the derived classes and callers below.
3596 * server.cc (handle_query): Update.
3597 * linux-low.cc (linux_target_ops): Update.
3598 (linux_process_target::handle_monitor_command): Define.
3599 * linux-low.h (class linux_process_target): Update.
3600 * lynx-low.cc (lynx_target_ops): Update.
3601 * nto-low.cc (nto_target_ops): Update.
3602 * win32-low.cc (win32_target_ops): Update.
3604 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3606 Turn process_stratum_target's handle_new_gdb_connection op into a
3607 method of process_target.
3609 * target.h (struct process_stratum_target): Remove the target op.
3610 (class process_target): Add the target op.
3611 (target_handle_new_gdb_connection): Update the macro.
3612 * target.cc (process_target::handle_new_gdb_connection): Define.
3614 Update the derived classes and callers below.
3616 * linux-low.cc (linux_target_ops): Update.
3617 (linux_handle_new_gdb_connection): Turn into ...
3618 (linux_process_target::handle_new_gdb_connection): ... this.
3619 * linux-low.h (class linux_process_target): Update.
3620 * lynx-low.cc (lynx_target_ops): Update.
3621 * nto-low.cc (nto_target_ops): Update.
3622 * win32-low.cc (win32_target_ops): Update.
3624 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3626 Turn process_stratum_target's supports_fork_events,
3627 supports_vfork_events, and supports_exec_events ops into methods
3630 * target.h (struct process_stratum_target): Remove the target ops.
3631 (class process_target): Add the target ops.
3632 (target_supports_fork_events): Update the macro.
3633 (target_supports_vfork_events): Update the macro.
3634 (target_supports_exec_events): Update the macro.
3635 * target.cc (process_target::supports_fork_events): Define.
3636 (process_target::supports_vfork_events): Define.
3637 (process_target::supports_exec_events): Define.
3639 Update the derived classes and callers below.
3641 * linux-low.cc (linux_target_ops): Update.
3642 (linux_supports_fork_events): Turn into ...
3643 (linux_process_target::supports_fork_events): ... this.
3644 (linux_supports_vfork_events): Turn into ...
3645 (linux_process_target::supports_vfork_events): ... this.
3646 (linux_supports_exec_events): Turn into ...
3647 (linux_process_target::supports_exec_events): ... this.
3648 * linux-low.h (class linux_process_target): Update.
3649 * lynx-low.cc (lynx_target_ops): Update.
3650 * nto-low.cc (nto_target_ops): Update.
3651 * win32-low.cc (win32_target_ops): Update.
3653 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3655 Turn process_stratum_target's supports_multi_process op into a
3656 method of process_target.
3658 * target.h (struct process_stratum_target): Remove the target op.
3659 (class process_target): Add the target op.
3660 * target.cc (process_target::supports_multi_process): Define.
3661 (target_supports_multi_process): Update.
3663 Update the derived classes and callers below.
3665 * linux-low.cc (linux_target_ops): Update.
3666 (linux_supports_multi_process): Turn into ...
3667 (linux_process_target::supports_multi_process): ... this.
3668 * linux-low.h (class linux_process_target): Update.
3669 * lynx-low.cc (lynx_target_ops): Update.
3670 * nto-low.cc (nto_target_ops): Update.
3671 * win32-low.cc (win32_target_ops): Update.
3673 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3675 Turn process_stratum_target's supports_non_stop, async, and
3676 start_non_stop ops into methods of process_target.
3678 * target.h (struct process_stratum_target): Remove the target ops.
3679 (class process_target): Add the target ops.
3680 (target_supports_non_stop): Update the macro.
3681 (target_async): Update the macro.
3682 (start_non_stop): Remove declaration.
3683 * target.cc (process_target::supports_non_stop): Define.
3684 (process_target::async): Define.
3685 (process_target::start_non_stop): Define.
3686 (start_non_stop): Remove.
3688 Update the derived classes and callers below.
3690 * server.cc (handle_qxfer_siginfo): Update.
3691 (handle_query): Update.
3692 * linux-low.cc (linux_target_ops): Update.
3693 (linux_supports_non_stop): Turn into ...
3694 (linux_process_target::supports_non_stop): ... this.
3695 (linux_async): Turn into ...
3696 (linux_process_target::async): ... this.
3697 (linux_start_non_stop): Turn into ...
3698 (linux_process_target::start_non_stop): ... this.
3699 * linux-low.h (class linux_process_target): Update.
3700 * lynx-low.cc (lynx_target_ops): Update.
3701 * nto-low.cc (nto_target_ops): Update.
3702 (nto_supports_non_stop): Remove; rely on the default behavior
3704 * win32-low.cc (win32_target_ops): Update.
3706 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3708 Turn process_stratum_target's qxfer_siginfo op into a method of
3711 * target.h (struct process_stratum_target): Remove the target op.
3712 (class process_target): Add the target op. Also add
3713 'supports_qxfer_siginfo'.
3714 * target.cc (process_target::qxfer_siginfo): Define.
3715 (process_target::supports_qxfer_siginfo): Define.
3717 Update the derived classes and callers below.
3719 * server.cc (handle_qxfer_siginfo): Update.
3720 (handle_query): Update.
3721 * linux-low.cc (linux_target_ops): Update.
3722 (linux_process_target::supports_qxfer_siginfo): Define.
3723 (linux_xfer_siginfo): Turn into ...
3724 (linux_process_target::qxfer_siginfo): ... this.
3725 * linux-low.h (class linux_process_target): Update.
3726 * lynx-low.cc (lynx_target_ops): Update.
3727 * nto-low.cc (nto_target_ops): Update.
3728 * win32-low.cc (win32_target_ops): Update.
3730 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3732 Turn process_stratum_target's qxfer_osdata op into a method of
3735 * target.h (struct process_stratum_target): Remove the target op.
3736 (class process_target): Add the target op. Also add
3737 'supports_qxfer_osdata'.
3738 * target.cc (process_target::qxfer_osdata): Define.
3739 (process_target::supports_qxfer_osdata): Define.
3741 Update the derived classes and callers below.
3743 * server.cc (handle_qxfer_osdata): Update.
3744 (handle_query): Update.
3745 * linux-low.cc (linux_target_ops): Update.
3746 (linux_process_target::supports_qxfer_osdata): Define.
3747 (linux_qxfer_osdata): Turn into ...
3748 (linux_process_target::qxfer_osdata): ... this.
3749 * linux-low.h (class linux_process_target): Update.
3750 * lynx-low.cc (lynx_target_ops): Update.
3751 * nto-low.cc (nto_target_ops): Update.
3752 * win32-low.cc (win32_target_ops): Update.
3754 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3756 Turn process_stratum_target's hostio_last_error op into a
3757 method of process_target.
3759 * target.h (struct process_stratum_target): Remove the target op.
3760 (class process_target): Add the target op.
3761 * target.cc: Add "hostio.h" to includes.
3762 (process_target::hostio_last_error): Define.
3764 Update the derived classes and callers below.
3766 * hostio.cc (hostio_error): Update.
3767 * linux-low.cc: Remove "hostio.h" from includes.
3768 (linux_target_ops): Update.
3769 * lynx-low.cc (lynx_target_ops): Update.
3770 * nto-low.cc (nto_target_ops): Update.
3771 * win32-low.h (class win32_process_target): Update.
3772 * win32-low.cc (win32_target_ops): Update.
3773 (wince_hostio_last_error): Turn into ...
3774 (win32_process_target::hostio_last_error): ... this.
3776 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3778 Turn process_stratum_target's get_tls_address op into a method of
3781 * target.h (struct process_stratum_target): Remove the target op.
3782 (class process_target): Add the target op. Also add
3783 'supports_get_tls_address'.
3784 * target.cc (process_target::get_tls_address): Define.
3785 (process_target::supports_get_tls_address): Define.
3787 Update the derived classes and callers below.
3789 * server.cc (handle_query): Update.
3790 * linux-low.cc (linux_target_ops): Update.
3791 (linux_process_target::supports_get_tls_address): Define.
3792 (linux_process_target::get_tls_address): Define.
3793 * linux-low.h (class linux_process_target): Update.
3794 * lynx-low.cc (lynx_target_ops): Update.
3795 * nto-low.cc (nto_target_ops): Update.
3796 * win32-low.cc (win32_target_ops): Update.
3798 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3800 Turn process_stratum_target's read_offsets op into a method of
3803 * target.h (struct process_stratum_target): Remove the target op.
3804 (class process_target): Add the target op. Also add
3805 'supports_read_offsets'.
3806 * target.cc (process_target::read_offsets): Define.
3807 (process_target::supports_read_offsets): Define.
3809 Update the derived classes and callers below.
3811 * server.cc (handle_query): Update.
3812 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3813 (linux_target_ops): Update.
3814 (linux_process_target::supports_read_offsets): Define.
3815 (linux_read_offsets): Turn into ...
3816 (linux_process_target::read_offsets): ... this.
3817 * linux-low.h (class linux_process_target): Update.
3818 * lynx-low.cc (lynx_target_ops): Update.
3819 * nto-low.cc (nto_target_ops): Update.
3820 * win32-low.cc (win32_target_ops): Update.
3822 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3824 Turn process_stratum_target's stopped_by_watchpoint and
3825 stopped_data_address ops into methods of process_target.
3827 * target.h (struct process_stratum_target): Remove the target ops.
3828 (class process_target): Add the target ops.
3829 * target.cc (process_target::stopped_by_watchpoint): Define.
3830 (process_target::stopped_data_address): Define.
3832 Update the derived classes and callers below.
3834 * remote-utils.cc (prepare_resume_reply): Update.
3835 * linux-low.cc (linux_target_ops): Update.
3836 (linux_stopped_by_watchpoint): Turn into ...
3837 (linux_process_target::stopped_by_watchpoint): ... this.
3838 (linux_stopped_data_address): Turn into ...
3839 (linux_process_target::stopped_data_address): ... this.
3840 * linux-low.h (class linux_process_target): Update.
3841 * lynx-low.cc (lynx_target_ops): Update.
3842 * nto-low.cc (nto_target_ops): Update.
3843 (nto_stopped_by_watchpoint): Turn into ...
3844 (nto_process_target::stopped_by_watchpoint): ... this.
3845 (nto_stopped_data_address): Turn into ...
3846 (nto_process_target::stopped_data_address): ... this.
3847 * nto-low.h (class nto_process_target): Update.
3848 * win32-low.cc (win32_target_ops): Update.
3849 (win32_stopped_by_watchpoint): Turn into ...
3850 (win32_process_target::stopped_by_watchpoint): ... this.
3851 (win32_stopped_data_address): Turn into ...
3852 (win32_process_target::stopped_data_address): ... this.
3853 * win32-low.h (class win32_process_target): Update.
3855 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3857 Turn process_stratum_target's supports_hardware_single_step op into
3858 a method of process_target.
3860 * target.h (struct process_stratum_target): Remove the target op.
3861 (class process_target): Add the target op.
3862 (target_supports_hardware_single_step): Update the macro.
3863 (target_can_do_hardware_single_step): Remove declaration.
3864 * target.cc (process_target::supports_hardware_single_step): Define.
3865 (target_can_do_hardware_single_step): Remove.
3867 Update the derived classes and callers below.
3869 * linux-low.h (class linux_process_target): Update.
3870 * linux-low.cc (linux_target_ops): Update.
3871 (linux_supports_hardware_single_step): Turn into ...
3872 (linux_process_target::supports_hardware_single_step): ... this.
3873 * lynx-low.h (class lynx_process_target): Update.
3874 * lynx-low.cc (lynx_target_ops): Update.
3875 (lynx_process_target::supports_hardware_single_step): Define.
3876 * nto-low.h (class nto_process_target): Update.
3877 * nto-low.cc (nto_target_ops): Update.
3878 (nto_process_target::supports_hardware_single_step): Define.
3879 * win32-low.h (class win32_process_target): Update.
3880 * win32-low.cc (win32_target_ops): Update.
3881 (win32_process_target::supports_hardware_single_step): Define.
3883 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3885 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
3886 ops into methods of process_target.
3888 * target.h (struct process_stratum_target): Remove the target ops.
3889 (class process_target): Add the target ops.
3890 (target_stopped_by_hw_breakpoint): Update the macro.
3891 (target_supports_stopped_by_hw_breakpoint): Update the macro.
3892 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
3893 (process_target::supports_stopped_by_hw_breakpoint): Define.
3895 Update the derived classes and callers below.
3897 * linux-low.cc (linux_target_ops): Update.
3898 (linux_stopped_by_hw_breakpoint): Turn into ...
3899 (linux_process_target::stopped_by_hw_breakpoint): ... this.
3900 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
3901 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
3902 * linux-low.h (class linux_process_target): Update.
3903 * lynx-low.cc (lynx_target_ops): Update.
3904 * nto-low.cc (nto_target_ops): Update.
3905 * win32-low.cc (win32_target_ops): Update.
3907 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3909 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
3910 ops into methods of process_target.
3912 * target.h (struct process_stratum_target): Remove the target ops.
3913 (class process_target): Add the target ops.
3914 (target_stopped_by_sw_breakpoint): Update the macro.
3915 (target_supports_stopped_by_sw_breakpoint): Update the macro.
3916 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
3917 (process_target::supports_stopped_by_sw_breakpoint): Define.
3919 Update the derived classes and callers below.
3921 * linux-low.cc (linux_target_ops): Update.
3922 (linux_stopped_by_sw_breakpoint): Turn into ...
3923 (linux_process_target::stopped_by_sw_breakpoint): ... this.
3924 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
3925 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
3926 * linux-low.h (class linux_process_target): Update.
3927 * lynx-low.cc (lynx_target_ops): Update.
3928 * nto-low.cc (nto_target_ops): Update.
3929 * win32-low.cc (win32_target_ops): Update.
3931 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3933 Turn process_stratum_target's insert_point and remove_point ops
3934 into methods of process_target.
3936 * target.h (struct process_stratum_target): Remove the target ops.
3937 (class process_target): Add the target ops.
3938 * target.cc (process_target::insert_point): Define.
3939 (process_target::remove_point): Define.
3941 Update the derived classes and callers below.
3943 * mem-break.cc (set_raw_breakpoint_at): Update.
3944 (delete_raw_breakpoint): Update.
3945 (uninsert_raw_breakpoint): Update.
3946 (reinsert_raw_breakpoint): Update.
3947 * linux-low.cc (linux_target_ops): Update.
3948 (linux_insert_point): Turn into ...
3949 (linux_process_target::insert_point): ... this.
3950 (linux_remove_point): Turn into ...
3951 (linux_process_target::remove_point): ... this.
3952 * linux-low.h (class linux_process_target): Update.
3953 * lynx-low.cc (lynx_target_ops): Update.
3954 * nto-low.cc (nto_target_ops): Update.
3955 (nto_insert_point): Turn into ...
3956 (nto_process_target::insert_point): ... this.
3957 (nto_remove_point): Turn into ...
3958 (nto_process_target::remove_point): ... this.
3959 * nto-low.h (class nto_process_target): Update.
3960 * win32-low.cc (win32_target_ops): Update.
3961 (win32_insert_point): Turn into ...
3962 (win32_process_target::insert_point): ... this.
3963 (win32_remove_point): Turn into ...
3964 (win32_process_target::remove_point): ... this.
3965 * win32-low.h (class win32_process_target): Update.
3967 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3969 Turn process_stratum_target's supports_z_point_type op into a
3970 method of process_target.
3972 * target.h (struct process_stratum_target): Remove the target op.
3973 (class process_target): Add the target op.
3974 * target.cc (process_target::supports_z_point_type): Define.
3976 Update the derived classes and callers below.
3978 * mem-break.cc (z_type_supported): Update.
3979 * linux-low.cc (linux_target_ops): Update.
3980 (linux_supports_z_point_type): Turn into ...
3981 (linux_process_target::supports_z_point_type): ... this.
3982 * linux-low.h (class linux_process_target): Update.
3983 * lynx-low.cc (lynx_target_ops): Update.
3984 * nto-low.cc (nto_target_ops): Update.
3985 (nto_supports_z_point_type): Turn into ...
3986 (nto_process_target::supports_z_point_type): ... this.
3987 * nto-low.h (class nto_process_target): Update.
3988 * win32-low.cc (win32_target_ops): Update.
3989 (win32_supports_z_point_type): Turn into ...
3990 (win32_process_target::supports_z_point_type): ... this.
3991 * win32-low.h (class win32_process_target): Update.
3993 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3995 Turn process_stratum_target's read_auxv op into a method of
3998 * target.h (class process_stratum_target): Remove the target op.
3999 (struct process_target): Add the target op. Also add
4000 'supports_read_auxv'.
4001 * target.cc (process_target::read_auxv): Define.
4002 (process_target::supports_read_auxv): Define.
4004 Update the derived classes and callers below.
4006 * server.cc (handle_qxfer_auxv): Update.
4007 (handle_query): Update.
4008 * linux-low.cc (linux_target_ops): Update.
4009 (linux_process_target::supports_read_auxv): Define.
4010 (linux_read_auxv): Turn into ...
4011 (linux_process_target::read_auxv): ... this.
4012 * linux-low.h (class linux_process_target): Update.
4013 * lynx-low.cc (lynx_target_ops): Update.
4014 * nto-low.cc (nto_target_ops): Update.
4015 (nto_process_target::supports_read_auxv): Define.
4016 (nto_read_auxv): Turn into ...
4017 (nto_process_target::read_auxv): ... this.
4018 * nto-low.h (class nto_process_target): Update.
4019 * win32-low.cc (win32_target_ops): Update.
4021 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4023 Turn process_stratum_target's request_interrupt op into a method of
4026 * target.h (struct process_stratum_target): Remove the target op.
4027 (class process_target): Add the target op.
4029 Update the derived classes and callers below.
4031 * remote-utils.cc (putpkt_binary_1): Update.
4032 (input_interrupt): Update.
4034 * server.cc (handle_v_requests): Update.
4035 * linux-low.cc (linux_target_ops): Update.
4036 (linux_request_interrupt): Turn into ...
4037 (linux_process_target::request_interrupt): ... this.
4038 * linux-low.h (class linux_process_target): Update.
4039 * lynx-low.cc (lynx_target_ops): Update.
4040 (lynx_request_interrupt): Turn into ...
4041 (lynx_process_target::request_interrupt): ... this.
4042 * lynx-low.h (class lynx_process_target): Update.
4043 * nto-low.cc (nto_target_ops): Update.
4044 (nto_request_interrupt): Turn into ...
4045 (nto_process_target::request_interrupt): ... this.
4046 * nto-low.h (class nto_process_target): Update.
4047 * win32-low.cc (win32_target_ops): Update.
4048 (win32_request_interrupt): Turn into ...
4049 (win32_process_target::request_interrupt): ... this.
4050 * win32-low.h (class win32_process_target): Update.
4052 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4054 Turn process_stratum_target's look_up_symbols op into a method of
4057 * target.h (struct process_stratum_target): Remove the target op.
4058 (class process_target): Add the target op.
4059 * target.cc (process_target::look_up_symbols): Define.
4061 Update the derived classes and callers below.
4063 * server.cc (handle_query): Update.
4064 * linux-low.cc (linux_target_ops): Update.
4065 (linux_look_up_symbols): Turn into ...
4066 (linux_process_target::look_up_symbols): ... this.
4067 * linux-low.h (class linux_process_target): Update.
4068 * lynx-low.cc (lynx_target_ops): Update.
4069 * nto-low.cc (nto_target_ops): Update.
4070 * win32-low.cc (win32_target_ops): Update.
4072 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4074 Turn process_stratum_target's read_memory and write_memory
4075 ops into methods of process_target.
4077 * target.h (struct process_stratum_target): Remove the target ops.
4078 (class process_target): Add the target ops.
4080 Update the derived classes and callers below.
4082 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4083 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4084 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4085 (arm_get_syscall_trapinfo): Update.
4086 * linux-cris-low.cc (cris_breakpoint_at): Update.
4087 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4088 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4089 * linux-mips-low.cc (mips_breakpoint_at): Update.
4090 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4091 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4092 * linux-sh-low.cc (sh_breakpoint_at): Update.
4093 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4094 (sparc_store_gregset_from_stack): Update.
4095 (sparc_breakpoint_at): Update.
4096 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4097 * linux-tile-low.cc (tile_breakpoint_at): Update.
4098 * linux-x86-low.cc (x86_breakpoint_at): Update.
4099 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4100 * mem-brea.cc (insert_memory_breakpoint): Update.
4101 (validate_inserted_breakpoint): Update.
4102 * target.cc (read_inferior_memory): Update.
4103 (target_write_memory): Update.
4104 * linux-low.cc (linux_target_ops): Update.
4105 (linux_read_memory): Make a wrapper around the read_memory target
4107 (linux_process_target::read_memory): Rename from linux_read_memory.
4108 (linux_write_memory): Turn into ...
4109 (linux_process_target::write_memory): ... this.
4110 * linux-low.h (class linux_process_target): Update.
4111 * lynx-low.cc (lynx_target_ops): Update.
4112 (lynx_read_memory): Turn into ...
4113 (lynx_process_target::read_memory): ... this.
4114 (lynx_write_memory): Turn into ...
4115 (lynx_process_target::write_memory): ... this.
4116 * lynx-low.h (class lynx_process_target): Update.
4117 * nto-low.cc (nto_target_ops): Update.
4118 (nto_read_memory): Turn into ...
4119 (nto_process_target::read_memory): ... this.
4120 (nto_write_memory): Turn into ...
4121 (nto_process_target::write_memory): ... this.
4122 * nto-low.h (class nto_process_target): Update.
4123 * win32-low.cc (win32_target_ops): Update.
4124 (win32_read_inferior_memory): Turn into ...
4125 (win32_process_target::read_memory): ... this.
4126 (win32_write_inferior_memory): Turn into ...
4127 (win32_process_target::write_memory): ... this.
4128 * win32-low.h (class win32_process_target): Update.
4130 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4132 Turn process_stratum_target's prepare_to_access_memory and
4133 done_accessing_memory ops into methods of process_target.
4135 * target.h (struct process_stratum_target): Remove the target ops.
4136 (class process_target): Add the target ops.
4137 * target.cc (process_target::prepare_to_access_memory): Define.
4138 (process_target::done_accessing_memory): Define.
4139 (prepare_to_access_memory): Update.
4140 (done_accessing_memory): Update.
4142 Update the derived classes and callers below.
4144 * linux-low.cc (linux_target_ops): Update.
4145 (linux_prepare_to_access_memory): Turn into ...
4146 (linux_process_target::prepare_to_access_memory): ... this.
4147 (linux_done_accessing_memory): Turn into ...
4148 (linux_process_target::done_accessing_memory): ... this.
4149 * linux-low.h (class linux_process_target): Update.
4150 * lynx-low.cc (lynx_target_ops): Update.
4151 * nto-low.cc (nto_target_ops): Update.
4152 * win32-low.cc (win32_target_ops): Update.
4154 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4156 Turn process_stratum_target's fetch_registers and store_registers
4157 ops into methods of process_target.
4159 * target.h (struct process_stratum_target): Remove the target ops.
4160 (class process_target): Add the target ops.
4161 (fetch_inferior_registers): Update the macro.
4162 (store_inferior_registers): Update the macro.
4164 Update the derived classes and callers below.
4166 * linux-low.cc (linux_target_ops): Update.
4167 (linux_fetch_registers): Turn into ...
4168 (linux_process_target::fetch_registers): ... this.
4169 (linux_store_registers): Turn into ...
4170 (linux_process_target::store_registers): ... this.
4171 * linux-low.h (class linux_process_target): Update.
4172 * lynx-low.cc (lynx_target_ops): Update.
4173 (lynx_fetch_registers): Turn into ...
4174 (lynx_process_target::fetch_registers): ... this.
4175 (lynx_store_registers): Turn into ...
4176 (lynx_process_target::store_registers): ... this.
4177 * lynx-low.h (class lynx_process_target): Update.
4178 * nto-low.cc (nto_target_ops): Update.
4179 (nto_fetch_registers): Turn into ...
4180 (nto_process_target::fetch_registers): ... this.
4181 (nto_store_registers): Turn into ...
4182 (nto_process_target::store_registers): ... this.
4183 * nto-low.h (class nto_process_target): Update.
4184 * win32-low.cc (win32_target_ops): Update.
4185 (win32_fetch_inferior_registers): Turn into ...
4186 (win32_process_target::fetch_registers): ... this.
4187 (win32_store_inferior_registers): Turn into ...
4188 (win32_process_target::store_registers): ... this.
4189 * win32-low.h (class win32_process_target): Update.
4191 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4193 Turn process_stratum_target's wait op into a method of
4196 * target.h (struct process_stratum_target): Remove the target op.
4197 (class process_target): Add the target op.
4199 Update the derived classes and callers below.
4201 * target.cc (target_wait): Update.
4202 * linux-low.cc (linux_target_ops): Update.
4203 (linux_wait): Turn into ...
4204 (linux_process_target::wait): ... this.
4205 * linux-low.h (class linux_process_target): Update.
4206 * lynx-low.cc (lynx_target_ops): Update.
4207 (lynx_wait): Turn into ...
4208 (lynx_process_target::wait): ... this.
4209 * lynx-low.h (class lynx_process_target): Update.
4210 * nto-low.cc (nto_target_ops): Update.
4211 (nto_wait): Turn into ...
4212 (nto_process_target::wait): ... this.
4213 * nto-low.h (class nto_process_target): Update.
4214 * win32-low.cc (win32_target_ops): Update.
4215 (win32_wait): Turn into ...
4216 (win32_process_target::wait): ... this.
4217 (do_initial_child_stuff): Update.
4218 * win32-low.h (class win32_process_target): Update.
4220 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4222 Turn process_stratum_target's resume op into a method of
4225 * target.h (struct process_stratum_target): Remove the target op.
4226 (class process_target): Add the target op.
4228 Update the derived classes and callers below.
4230 * server.cc (resume): Update.
4231 * target.cc (target_stop_and_wait): Update.
4232 (target_continue_no_signal): Update.
4233 (target_continue): Update.
4234 * linux-low.cc (linux_target_ops): Update.
4235 (linux_resume): Turn into ...
4236 (linux_process_target::resume): ... this.
4237 * linux-low.h (class linux_process_target): Update.
4238 * lynx-low.cc (lynx_target_ops): Update.
4239 (lynx_resume): Turn into ...
4240 (lynx_process_target::resume): ... this.
4241 * lynx-low.h (class lynx_process_target): Update.
4242 * nto-low.cc (nto_target_ops): Update.
4243 (nto_resume): Turn into ...
4244 (nto_process_target::resume): ... this.
4245 * nto-low.h (class nto_process_target): Update.
4246 * win32-low.cc (win32_target_ops): Update.
4247 (win32_resume): Turn into ...
4248 (win32_process_target::resume): ... this.
4249 (win32_process_target::detach): Update.
4250 (do_initial_child_stuff): Update.
4251 * win32-low.h (class win32_process_target): Update.
4253 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4255 Turn process_stratum_target's thread_alive op into a method of
4258 * target.h (struct process_stratum_target): Remove the target op.
4259 (class process_target): Add the target op.
4260 (mythread_alive): Update the macro.
4262 Update the derived classes and callers below.
4264 * linux-low.cc (linux_target_ops): Update.
4265 (linux_thread_alive): Turn into ...
4266 (linux_process_target::thread_alive): ... this.
4267 (wait_for_sigstop): Update.
4268 * linux-low.h (class linux_process_target): Update.
4269 * lynx-low.cc (lynx_target_ops): Update.
4270 (lynx_thread_alive): Turn into ...
4271 (lynx_process_target::thread_alive): ... this.
4272 * lynx-low.h (class lynx_process_target): Update.
4273 * nto-low.cc (nto_target_ops): Update.
4274 (nto_thread_alive): Turn into ...
4275 (nto_process_target::thread_alive): ... this.
4276 * nto-low.h (class nto_process_target): Update.
4277 * win32-low.cc (win32_target_ops): Update.
4278 (win32_thread_alive): Turn into ...
4279 (win32_process_target::thread_alive): ... this.
4280 * win32-low.h (class win32_process_target): Update.
4282 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4284 Turn process_stratum_target's join op into a method of
4287 * target.h (struct process_stratum_target): Remove the target op.
4288 (class process_target): Add the target op.
4289 (join_inferior): Update the macro.
4291 Update the derived classes and callers below.
4293 * linux-low.cc (linux_target_ops): Update.
4294 (linux_join): Turn into ...
4295 (linux_process_target::join): ... this.
4296 * linux-low.h (class linux_process_target): Update.
4297 * lynx-low.cc (lynx_target_ops): Update.
4298 (lynx_join): Turn into ...
4299 (lynx_process_target::join): ... this.
4300 * lynx-low.h (class lynx_process_target): Update.
4301 * nto-low.cc (nto_target_ops): Update.
4302 (nto_process_target::join): Define.
4303 * nto-low.h (class nto_process_target): Update.
4304 * win32-low.cc (win32_target_ops): Update.
4305 (win32_join): Turn into ...
4306 (win32_process_target::join): ... this.
4307 * win32-low.h (class win32_process_target): Update.
4309 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4311 Turn process_stratum_target's mourn op into a method of
4314 * target.h (struct process_stratum_target): Remove the target op.
4315 (class process_target): Add the target op.
4317 Update the derived classes and callers below.
4319 * target.cc (target_mourn_inferior): Update.
4320 * linux-low.cc (linux_target_ops): Update.
4321 (linux_mourn): Turn into ...
4322 (linux_process_target::mourn): ... this.
4323 (handle_extended_wait): Update.
4324 (linux_process_target::kill): Update.
4325 (linux_process_target::detach): Update.
4326 * linux-low.h (class linux_process_target): Update.
4327 * lynx-low.cc (lynx_target_ops): Update.
4328 (lynx_mourn): Turn into ...
4329 (lynx_process_target::mourn): ... this.
4330 * lynx-low.h (class lynx_process_target): Update.
4331 * nto-low.cc (nto_target_ops): Update.
4332 (nto_mourn): Turn into ...
4333 (nto_process_target::mourn): ... this.
4334 * nto-low.h (class nto_process_target): Update.
4335 * win32-low.cc (win32_target_ops): Update.
4336 (win32_mourn): Turn into ...
4337 (win32_process_target::mourn): ... this.
4338 * win32-low.h (class win32_process_target): Update.
4340 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4342 Turn process_stratum_target's detach op into a method of
4345 * target.h (struct process_stratum_target): Remove the target op.
4346 (class process_target): Add the target op.
4347 (detach_inferior): Update the macro.
4349 Update the derived classes and callers below.
4351 * linux-low.cc (linux_target_ops): Update.
4352 (linux_detach): Turn into ...
4353 (linux_process_target::detach): ... this.
4354 * linux-low.h (class linux_process_target): Update.
4355 * lynx-low.cc (lynx_target_ops): Update.
4356 (lynx_detach): Turn into ...
4357 (lynx_process_target::detach): ... this.
4358 * lynx-low.h (class lynx_process_target): Update.
4359 * nto-low.cc (nto_target_ops): Update.
4360 (nto_detach): Turn into ...
4361 (nto_process_target::detach): ... this.
4362 * nto-low.h (class nto_process_target): Update.
4363 * win32-low.cc (win32_target_ops): Update.
4364 (win32_detach): Turn into ...
4365 (win32_process_target::detach): ... this.
4366 * win32-low.h (class win32_process_target): Update.
4368 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4370 Turn process_stratum_target's kill op into a method of
4373 * target.h (struct process_stratum_target): Remove the target op.
4374 (class process_target): Add the target op.
4376 Update the derived classes and callers below.
4378 * target.cc (kill_inferior): Update.
4379 * linux-low.cc (linux_target_ops): Update.
4380 (linux_kill): Turn into ...
4381 (linux_process_target::kill): ... this.
4382 * linux-low.h (class linux_process_target): Update.
4383 * lynx-low.cc (lynx_target_ops): Update.
4384 (lynx_kill): Turn into ...
4385 (lynx_process_target::kill): ... this.
4386 * lynx-low.h (class lynx_process_target): Update.
4387 * nto-low.cc (nto_target_ops): Update.
4388 (nto_kill): Turn into ...
4389 (nto_process_target::kill): ... this.
4390 * nto-low.h (class nto_process_target): Update.
4391 * win32-low.cc (win32_target_ops): Update.
4392 (win32_kill): Turn into ...
4393 (win32_process_target::kill): ... this.
4394 * win32-low.h (class win32_process_target): Update.
4396 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4398 Turn process_stratum_target's attach op into a method of
4401 * target.h (struct process_stratum_target): Remove the target op.
4402 (class process_target): Add the target op.
4403 (myattach): Update the macro.
4405 Update the derived classes and callers below.
4407 * linux-low.cc (linux_target_ops): Update.
4408 (linux_attach): Turn into ...
4409 (linux_process_target::attach): ... this.
4410 * linux-low.h (class linux_process_target): Update.
4411 * lynx-low.cc (lynx_target_ops): Update.
4412 (lynx_attach): Turn into ...
4413 (lynx_process_target::attach): ... this.
4414 * lynx-low.h (class lynx_process_target): Update.
4415 * nto-low.cc (nto_target_ops): Update.
4416 (nto_attach): Turn into ...
4417 (nto_process_target::attach): ... this.
4418 * nto-low.h (class nto_process_target): Update.
4419 * win32-low.cc (win32_target_ops): Update.
4420 (win32_attach): Turn into ...
4421 (win32_process_target::attach): ... this.
4422 * win32-low.h (class win32_process_target): Update.
4424 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4426 Turn process_stratum_target's post_create_inferior op into a method
4429 * target.h (struct process_stratum_target): Remove the target op.
4430 (class process_target): Add the target op.
4431 (target_post_create_inferior): Update the macro.
4432 * target.cc (process_target::post_create_inferior): Define.
4434 Update the derived classes and callers below.
4436 * linux-low.cc (linux_target_ops): Update.
4437 (linux_post_create_inferior): Turn into ...
4438 (linux_process_target::post_create_inferior): ... this.
4439 * linux-low.h (class linux_process_target): Update.
4440 * lynx-low.cc (lynx_target_ops): Update.
4441 * nto-low.cc (nto_target_ops): Update.
4442 * win32-low.cc (win32_target_ops): Update.
4444 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4446 Turn process_stratum_target's create_inferior op into a method of
4449 * target.h (struct process_stratum_target): Remove the target op.
4450 (class process_target): Add the target op.
4451 (create_inferior): Rename the macro to ...
4452 (target_create_inferior): ... this.
4454 Update the derived classes and callers below.
4456 * server.cc (handle_v_run): Update.
4457 (captured_main): Update.
4458 (process_serial_event): Update.
4459 * linux-low.cc (linux_target_ops): Update.
4460 (linux_create_inferior): Turn into ...
4461 (linux_process_target::create_inferior): ... this.
4462 * linux-low.h (class linux_process_target): Update.
4463 * lynx-low.cc (lynx_target_ops): Update.
4464 (lynx_create_inferior): Turn into ...
4465 (lynx_process_target::create_inferior): ... this.
4466 * lynx-low.h (class lynx_process_target): Update.
4467 * nto-low.cc (nto_target_ops): Update.
4468 (nto_create_inferior): Turn into ...
4469 (nto_process_target::create_inferior): ... this.
4470 * nto-low.h (class nto_process_target): Update.
4471 * win32-low.cc (win32_target_ops): Update.
4472 (win32_create_inferior): Turn into ...
4473 (win32_process_target::create_inferior): ... this.
4474 * win32-low.h (class win32_process_target): Update.
4476 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4478 * target.h (class process_target): New class definition.
4479 (struct process_stratum_target) <pt>: New field with type
4481 * linux-low.h (class linux_process_target): Define as a derived
4482 class of 'process_target'.
4483 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4485 * lynx-low.h (class lynx_process_target): Define as a derived
4486 class of 'process_target'.
4487 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4489 * nto-low.h (class nto_process_target): Define as a derived
4490 class of 'process_target'.
4491 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4493 * win32-low.h (class win32_process_target): Define as a derived
4494 class of 'process_target'.
4495 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4498 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4500 * configure: Regenerate.
4502 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4503 Andrew Burgess <andrew.burgess@embecosm.com>
4505 * linux-riscv-low.cc: New file.
4506 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4507 and nat/riscv-linux-tdesc.c.
4508 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4509 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4512 2020-02-14 Tom Tromey <tom@tromey.com>
4514 * acinclude.m4: Don't include acx_configure_dir.m4.
4515 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4516 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4517 (all, install-only, uninstall, clean-info, clean)
4518 (maintainer-clean): Don't recurse.
4519 (subdir_do, all-lib): Remove.
4520 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4522 (generated_files): Update.
4523 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4524 * configure: Rebuild.
4525 * configure.ac: Don't configure gnulib or libiberty.
4528 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4530 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4531 preparing the command line for CreateProcess.
4532 (win32_create_inferior): Reflect the program name in debugging
4533 output that shows the process and its command line.
4535 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4537 * Makefile.in: Rename source files from .c to .cc.
4538 * %.c: Rename to %.cc.
4539 * configure.ac: Rename server.c to server.cc.
4540 * configure: Re-generate.
4542 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4544 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4546 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4548 * win32-low.c (win32_create_inferior): Set signal_pid.
4550 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4551 Pedro Alves <palves@redhat.com>
4553 Skip building gdbserver in a cross-configuration.
4554 * configure.srv: Set $gdbserver_host depending on whether $target
4555 is $host. Use $gdbserver_host instead of $host.
4557 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4559 * configure: Re-generate.
4561 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4563 * configure: Re-generate.
4565 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4567 * acinclude.m4: Update warning.m4 path.
4569 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4571 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4572 (handle_exception): Set siginfo_er.
4573 (win32_xfer_siginfo): New function.
4575 2020-02-07 Tom Tromey <tom@tromey.com>
4576 Pedro Alves <palves@redhat.com>
4578 * README: Update build documentation.
4579 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4581 * configure.ac: Update paths.
4582 * configure: Rebuild.
4583 * acinclude.m4: Update paths.
4584 * Makefile.in: Update include paths.
4585 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4586 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4587 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4588 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4589 (%-generated.c): Update paths.
4590 * Move entire directory from ../gdb/gdbserver.
4592 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4594 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4596 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4598 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4599 assignment instead of srv_linux_obj.
4601 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4603 * server.c (handle_qxfer_libraries): Write segment-address with
4606 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4608 * Makefile.in (install-strip): New target.
4609 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4610 * aclocal.m4: Regenerate.
4611 * configure: Regenerate.
4612 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4614 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4616 * Makefile.in (SFILES): Adjust paths to point to real files.
4617 (OBS): Move waitstatus.o to target/waitstatus.o.
4618 (TAGS): Transform paths appropriately.
4620 (nat/%.o): ... this pattern rule.
4622 (target/%.o): ... this pattern rule.
4623 * configure.srv: Adjust paths throughout to include nat/ prefix
4624 with the revant files.
4625 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4626 * configure: Regenerate.
4628 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4630 * Makefile.in (TAGS): Remove config files from the recipe.
4632 2020-01-14 Tom Tromey <tom@tromey.com>
4634 * configure: Rebuild.
4635 * configure.ac: Remove any checks that were added to common.m4.
4636 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4639 2020-01-14 Tom Tromey <tom@tromey.com>
4641 * server.h: Include config.h.
4642 * gdbreplay.c: Include config.h.
4643 * configure: Rebuild.
4644 * configure.ac: Don't source common.host.
4645 * acinclude.m4: Update path.
4646 * Makefile.in (INCSUPPORT): New variable.
4647 (INCLUDE_CFLAGS): Add INCSUPPORT.
4648 (SFILES): Update paths.
4649 (version-generated.c): Update path to create-version.sh.
4650 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4652 2020-01-14 Tom Tromey <tom@tromey.com>
4654 * configure.ac (LIBS): Use WIN32APILIBS.
4655 (USE_WIN32API): Don't define.
4656 * configure: Rebuild.
4658 2020-01-14 Tom Tromey <tom@tromey.com>
4660 * configure: Rebuild.
4662 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4664 * Makefile.in (%-generated.c): Remove rule for files from
4667 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4669 * configure: Re-generate.
4671 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4673 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4675 * tracepoint.c (stop_tracing, flush_trace_buffer,
4676 about_to_request_buffer_space, get_trace_state_variable_value,
4677 set_trace_state_variable_value, gdb_collect): Add declaration.
4679 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4681 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4682 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4683 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4684 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4685 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4688 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4690 * inferiors.c: Include gdbsupport/common-inferior.h.
4692 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4694 * hostio-errno.c: Include hostio.h.
4696 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4698 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4701 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4703 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4704 * linux-arm-tdesc.h: Include arch/arm.h.
4706 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4708 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4710 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4712 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4713 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4715 2020-01-10 Pedro Alves <palves@redhat.com>
4717 * fork-child.c (post_fork_inferior): Pass target down to
4719 * inferiors.c (switch_to_thread): Add process_stratum_target
4721 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4722 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4723 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4724 * remote-utils.c (prepare_resume_reply): Pass the target to
4726 * target.c (the_target): Now a process_stratum_target.
4727 (done_accessing_memory): Pass the target to switch_to_thread.
4728 (set_target_ops): Ajust to use process_stratum_target.
4729 * target.h (struct target_ops): Rename to ...
4730 (struct process_stratum_target): ... this.
4731 (the_target, set_target_ops): Adjust.
4732 (prepare_to_access_memory): Adjust comment.
4733 * win32-low.c (child_xfer_memory): Adjust to use
4734 process_stratum_target.
4735 (win32_target_ops): Now a process_stratum_target.
4737 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4738 Pedro Alves <palves@redhat.com>
4740 * win32-low.c (get_child_debug_event): Extract the fatal exception
4741 from the exit status and convert to the equivalent Posix signal
4743 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4744 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4746 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4748 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4750 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4752 * server.c (gdbserver_version): Change copyright year to 2020.
4753 * gdbreplay.c (gdbreplay_version): Likewise.
4755 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4757 * configure: Regenerate.
4758 * configure.ac: Quote variable arguments of test.
4760 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4762 * Makefile.in: Fix build with GNU Make 3.81
4764 2019-12-16 Tom Tromey <tromey@adacore.com>
4766 * server.c (get_exec_file): Constify result.
4768 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4770 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4771 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4772 * config.in: Regenerate.
4773 * configure: Regenerate.
4774 * configure.ac: Don't check for strerror.
4775 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4776 Call safe_strerror instead of strerror.
4777 * server.h (strerror): Remove this now-unnecessary declaration.
4778 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4780 (gdb_agent_helper_thread): Likewise.
4781 * utils.c (perror_with_name): Likewise.
4783 2019-11-26 Tom Tromey <tom@tromey.com>
4785 * configure, config.in: Rebuild.
4787 2019-11-26 Tom Tromey <tom@tromey.com>
4789 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4790 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4792 * configure, config.in: Rebuild.
4794 2019-11-26 Tom Tromey <tom@tromey.com>
4796 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4797 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4798 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4799 * acinclude.m4: Include ax_pthread.m4.
4800 * config.in, configure: Rebuild.
4802 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4804 * debug.c (debug_set_output): Call safe_strerror instead of
4806 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4807 (linux_kill_one_lwp): Likewise.
4808 (linux_detach_one_lwp): Likewise.
4809 (linux_wait_for_event_filtered): Likewise.
4810 (store_register): Likewise.
4811 * lynx-low.c (lynx_attach): Likewise.
4812 * mem-break.c (insert_memory_breakpoint): Likewise.
4813 (remove_memory_breakpoint): Likewise.
4814 (delete_fast_tracepoint_jump): Likewise.
4815 (set_fast_tracepoint_jump): Likewise.
4816 (uninsert_fast_tracepoint_jumps_at): Likewise.
4817 (reinsert_fast_tracepoint_jumps_at): Likewise.
4818 * nto-low.c (nto_xfer_memory): Likewise.
4819 (nto_resume): Likewise.
4821 2019-11-20 Luis Machado <luis.machado@linaro.org>
4823 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4824 instead of register count.
4825 * tdesc.c (tdesc_contains_feature): New function.
4826 * tdesc.h (tdesc_contains_feature): New prototype.
4828 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4830 * Makefile.in: Add safe-strerror.c.
4831 * configure: Regenerate.
4832 * configure.ac: Don't source common.host.
4834 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4836 * config.in: Regenerate.
4837 * configure: Regenerate.
4839 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4841 * ax.c (ax_printf): Handle size_t_arg.
4843 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4845 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4846 * mi/mi-main.c (output_cores): Likewise.
4847 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4848 (linux_xfer_osdata_modules): Likewise.
4849 * remote.c (register_remote_support_xml): Likewise.
4850 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4851 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4853 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4855 * configure: Regenerate.
4856 * configure.ac: Remove check for strerror_r.
4858 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4860 * config.in: Regenerate.
4861 * configure: Regenerate.
4862 * configure.ac: Also check for strerror_r.
4864 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4866 * ax.h (debug_agent): Remove duplicate declaration.
4868 2019-10-26 Tom de Vries <tdevries@suse.de>
4870 * linux-aarch64-low.c: Fix typos in comments.
4871 * linux-arm-low.c: Same.
4872 * linux-low.c: Same.
4873 * linux-ppc-low.c: Same.
4874 * proc-service.c: Same.
4877 * tracepoint.c: Same.
4878 * win32-low.c: Same.
4880 2019-10-25 Tom Tromey <tromey@adacore.com>
4882 * utils.c (xstrdup): Remove.
4884 2019-10-23 Tom Tromey <tom@tromey.com>
4886 * configure, config.in: Rebuild.
4888 2019-10-23 Tom Tromey <tom@tromey.com>
4890 * configure: Rebuild.
4891 * acinclude.m4: Use m4_include, not sinclude.
4893 2019-10-17 Tom Tromey <tromey@adacore.com>
4895 * configure: Rebuild.
4896 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
4897 in AC_CONFIG_FILES invocation.
4898 * Makefile.in (stamp-h, Makefile): Use new-style config.status
4901 2019-10-16 Christian Biesinger <cbiesinger@google.com>
4903 * server.c: Include xml-builtin.h.
4904 (get_xml_features): Don't declare xml_builtins here.
4906 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4908 * Makefile.in: Remove references to vec-ipa.o.
4910 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
4912 * Makefile.in: Remove references to vec.c.
4914 2019-10-02 Christian Biesinger <cbiesinger@google.com>
4916 * server.c (server_waiting): Change to bool.
4917 (extended_protocol): Likewise.
4918 (response_needed): Likewise.
4919 (exit_requested): Likewise.
4920 (run_once): Likewise.
4921 (report_no_resumed): Likewise.
4922 (non_stop): Likewise.
4923 (disable_packet_vCont): Likewise.
4924 (disable_packet_Tthread): Likewise.
4925 (disable_packet_qC): Likewise.
4926 (disable_packet_qfThreadInfo): Likewise.
4927 (handle_general_set): Update.
4928 (handle_detach): Update.
4929 (handle_monitor_command): Update.
4930 (handle_query): Update.
4931 (captured_main): Update.
4932 (process_serial_event): Update.
4933 * server.h (server_waiting): Change to bool.
4934 (disable_packet_vCont): Likewise.
4935 (disable_packet_Tthread): Likewise.
4936 (disable_packet_qC): Likewise.
4937 (disable_packet_qfThreadInfo): Likewise.
4938 (run_once): Likewise.
4939 (non_stop): Likewise.
4940 * target.c (target_stop_and_wait): Update.
4942 2019-10-02 Tom Tromey <tromey@adacore.com>
4944 * Makefile.in (SFILES): Add common-inferior.c.
4945 (OBS): Add common-inferior.o.
4946 * server.c (startup_with_shell): Don't define.
4948 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
4950 * linux-low.c (linux_low_read_btrace): Update for change to
4953 2019-09-20 Christian Biesinger <cbiesinger@google.com>
4955 * debug.c (debug_threads): Remove comment in favor of the header.
4956 * debug.h (using_threads): Add declaration.
4957 (debug_threads): Add comment.
4958 * linux-aarch64-low.c: Include debug.h and remove declaration of
4960 * nto-low.c: Likewise.
4961 * remote-utils.c: Likewise.
4962 * thread-db.c: Likewise.
4964 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
4966 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
4967 and powerpc-cell64l-ipa.o.
4968 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
4969 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
4970 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
4973 * spu-low.c: Remove file.
4975 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
4976 (parse_spufs_run): Remove.
4977 (ppc_get_pc): Remove Cell/B.E. support.
4978 (ppc_set_pc): Likewise.
4979 (ppc_breakpoint_at): Likewise.
4980 (ppc_arch_setup): Likewise.
4981 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
4982 tdesc_powerpc_cell32l.
4983 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
4984 or init_registers_powerpc_cell32l.
4985 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
4986 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
4987 or init_registers_powerpc_cell32l.
4988 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
4989 (init_registers_powerpc_cell32l): Remove prototype.
4990 (init_registers_powerpc_cell64l): Likewise.
4992 * target.h (struct target_ops): Remove qxfer_spu member.
4993 * server.c (handle_qxfer_spu): Remove.
4994 (qxfer_packets): Remove entry for "spu".
4995 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
4996 * linux-low.c (SPUFS_MAGIC): Remove.
4997 (spu_enumerate_spu_ids): Remove.
4998 (linux_qxfer_spu): Remove.
4999 (linux_target_ops): Remove qxfer_spu member.
5000 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5001 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5002 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5004 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5006 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5007 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5008 * config.in: Regenerate.
5009 * configure: Regenerate.
5011 2019-08-15 Tom Tromey <tromey@adacore.com>
5013 * target.c (target_write_memory): Use gdb::byte_vector.
5015 2019-08-15 Tom Tromey <tromey@adacore.com>
5017 * tracepoint.c (write_inferior_data_pointer)
5018 (write_inferior_integer, write_inferior_int8)
5019 (write_inferior_uinteger, m_tracepoint_action_download)
5020 (r_tracepoint_action_download, x_tracepoint_action_download)
5021 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5022 (download_agent_expr, download_tracepoint_1)
5023 (download_trace_state_variables, upload_fast_traceframes): Update.
5024 * server.c (gdb_write_memory): Update.
5025 * remote-utils.c (relocate_instruction): Update.
5026 * proc-service.c (ps_pdwrite): Update.
5027 * mem-break.c (remove_memory_breakpoint)
5028 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5029 (uninsert_fast_tracepoint_jumps_at)
5030 (reinsert_fast_tracepoint_jumps_at): Update.
5031 * linux-x86-low.c (append_insns)
5032 (i386_install_fast_tracepoint_jump_pad)
5033 (amd64_write_goto_address, i386_write_goto_address): Update.
5034 * linux-s390-low.c (append_insns, s390_write_goto_address):
5036 * linux-ppc-low.c (ppc_relocate_instruction)
5037 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5038 (ppc_write_goto_address): Update.
5039 * linux-aarch64-low.c (append_insns): Update.
5040 * target.h (struct target_ops): Update.
5041 (write_inferior_memory): Don't declare.
5042 * target.c (target_write_memory): Rename from
5043 write_inferior_memory. Remove old target_write_memory.
5045 2019-08-15 Tom Tromey <tromey@adacore.com>
5047 * target.c (write_inferior_memory): Use std::vector.
5049 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5052 * configure.ac: Drop enable-libmcheck support.
5053 * configure, config.in: Rebuild.
5054 * acinclude.m4: Don't include it.
5056 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5058 * configure.srv: Remove Arm xml files.
5060 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5062 * configure.srv: Add new files. Remove xml generated files.
5063 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5065 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5066 * linux-aarch32-tdesc.c: New file.
5067 * linux-aarch32-tdesc.h: New file.
5068 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5069 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5070 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5071 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5072 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5073 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5074 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5075 (arm_read_description): Call arm_linux_read_description.
5076 (initialize_low_arch): Don't init registers.
5077 * linux-arm-tdesc.c: New file.
5078 * linux-arm-tdesc.h: New file.
5080 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5082 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5083 Move counter inside for.
5084 (arm_read_description): Check ptrace earlier.
5085 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5087 2019-07-09 Tom Tromey <tom@tromey.com>
5089 * configure: Rebuild.
5090 * configure.ac: Change common to gdbsupport.
5091 * acinclude.m4: Change common to gdbsupport.
5092 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5093 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5094 common to gdbsupport.
5095 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5096 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5097 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5098 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5099 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5100 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5101 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5102 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5103 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5104 common to gdbsupport.
5106 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5108 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5110 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5112 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5114 * configure.srv: Remove legacy xml.
5115 * linux-aarch64-low.c (initialize_low_arch): Remove
5116 initialize_low_tdesc call.
5117 * linux-aarch64-tdesc-selftest.c: Remove file.
5118 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5119 * linux-x86-low.c (initialize_low_arch): Remove
5120 initialize_low_tdesc call.
5121 * linux-x86-tdesc-selftest.c: Remove file.
5122 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5124 2019-06-20 Tom de Vries <tdevries@suse.de>
5126 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5127 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5129 2019-06-19 Tom de Vries <tdevries@suse.de>
5131 * debug.h (debug_write): Change return type to ssize_t.
5132 * debug.c (debug_write): Same.
5134 2019-06-14 Tom Tromey <tom@tromey.com>
5136 * configure.ac: Use new path to gnulib.
5137 * configure: Rebuild.
5138 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5141 2019-06-11 Tom Tromey <tom@tromey.com>
5143 * Makefile.in (SFILES): Add alloc.c.
5145 (IPA_OBJS): Add alloc-ipa.o.
5146 (alloc-ipa.o): New target.
5147 (%.o: ../%.c): New pattern rule.
5149 2019-06-10 Tom Tromey <tromey@adacore.com>
5151 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5152 end warning with a newline.
5153 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5155 * thread-db.c (attach_thread): Don't end warning with a newline.
5156 (thread_db_notice_clone): Likewise.
5157 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5159 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5160 end warning with a newline.
5162 2019-06-04 Pedro Alves <palves@redhat.com>
5164 * server.c (captured_main): Use make_unique_xstrdup.
5166 2019-06-02 Tom Tromey <tom@tromey.com>
5168 * gdbreplay.c (fromhex): Remove.
5169 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5171 2019-05-29 Tom Tromey <tromey@adacore.com>
5173 * configure: Rebuild.
5175 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5177 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5178 sign extension code on 32-bit builds.
5180 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5183 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5185 2019-04-19 Tom Tromey <tom@tromey.com>
5187 * server.c (struct vstop_notif): Derive from notif_event.
5189 (queue_stop_reply): Update.
5190 (remove_all_on_match_ptid): Change type. Rewrite.
5191 (discard_queued_stop_replies): Rewrite.
5192 (in_queued_stop_replies_ptid): Change type.
5193 (in_queued_stop_replies): Rewrite.
5194 (notif_stop): Update.
5195 (queue_stop_reply_callback): Update.
5196 (captured_main): Don't call initialize_notif.
5197 (push_stop_notification): Update.
5198 * notif.c (notif_write_event, handle_notif_ack)
5199 (notif_event_enque, notif_push): Update.
5200 (notif_event_xfree, initialize_notif): Remove.
5201 * notif.h (struct notif_event): Include <list>, not
5203 (struct notif_server) <queue>: Now a std::list.
5204 (notif_event_p): Remove typedef.
5205 (initialize_notif): Don't declare.
5206 (struct notif_event): Add virtual destructor.
5208 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5210 * ax.c (ax_vdebug): Call debug_printf.
5211 * debug.c (debug_write): New function.
5212 * debug.h (debug_write): New declaration.
5213 * linux-low.c (sigchld_handler): Call debug_write.
5215 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5217 * debug.c (debug_set_output): New function.
5218 (debug_vprintf): Send output to debug_file.
5219 (debug_flush): Likewise.
5220 * debug.h (debug_set_output): New declaration.
5221 * server.c (handle_monitor_command): Add debug-file option.
5222 (captured_main): Likewise.
5224 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5226 * debug.c (remote_debug): Add definition.
5227 * debug.h (remote_debug): Add declaration.
5228 * hostio.c (remote_debug): Remove declaration.
5229 * remote-utils.c (struct ui_file): Likewise.
5230 (remote_debug): Likewise.
5231 * remote-utils.h (remote_debug): Likewise,
5232 * server.c (remote_debug): Remove definition.
5234 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5236 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5237 when using a 64-bit gdbserver.
5239 2019-04-09 Tom Tromey <tromey@adacore.com>
5241 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5243 2019-04-08 Tom Tromey <tom@tromey.com>
5245 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5247 (linux_resume_one_lwp): Likewise.
5249 2019-04-08 Tom Tromey <tom@tromey.com>
5251 * gdbreplay.c: Update.
5252 * linux-low.c: Update.
5255 2019-04-08 Tom Tromey <tom@tromey.com>
5257 * server.c: Use C++ exception handling.
5258 * linux-low.c: Use C++ exception handling.
5259 * gdbreplay.c: Use C++ exception handling.
5261 2019-04-08 Tom Tromey <tom@tromey.com>
5263 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5264 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5265 (captured_main, main): Update.
5266 * gdbreplay.c (main): Update.
5268 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5270 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5271 value in argument pointer, return 1 if the entry is found and 0
5272 otherwise. Move comment.
5273 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5274 * linux-low.h (linux_get_auxv): Declare.
5275 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5277 2019-04-05 Tom Tromey <tromey@adacore.com>
5279 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5282 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5284 * linux-low.c (AT_HWCAP2): Add define if not already included.
5286 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5288 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5289 (aarch64_arch_setup): Call linux_get_hwcap.
5290 * linux-arm-low.c (arm_get_hwcap): Remove function.
5291 (arm_read_description): Call linux_get_hwcap.
5292 * linux-low.c (linux_get_auxv): New function.
5293 (linux_get_hwcap): Likewise.
5294 (linux_get_hwcap2): Likewise.
5295 * linux-low.h (linux_get_hwcap): New declaration.
5296 (linux_get_hwcap2): Likewise.
5297 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5298 (ppc_arch_setup): Call linux_get_hwcap.
5299 * linux-s390-low.c (s390_get_hwcap): Remove function.
5300 (s390_arch_setup): Call linux_get_hwcap.
5302 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5303 Jiong Wang <jiong.wang@arm.com>
5305 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5306 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5308 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5310 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5311 Jiong Wang <jiong.wang@arm.com>
5313 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5314 (aarch64_get_hwcap): New function.
5315 (aarch64_arch_setup): Read APIA hwcap.
5317 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5318 Jiong Wang <jiong.wang@arm.com>
5320 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5321 (initialize_low_tracepoint): Likewise.
5322 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5323 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5324 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5325 (aarch64_linux_read_description): Likewise.
5326 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5328 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5330 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5331 i386_create_target_description for 'segments' parameter.
5332 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5333 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5334 * win32-i386-low.c (i386_arch_setup): Likewise.
5336 2019-03-12 Tom Tromey <tromey@adacore.com>
5338 * linux-low.c (iterate_over_lwps): Update.
5340 2019-03-06 Tom Tromey <tom@tromey.com>
5342 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5343 (captured_main): Use SCOPE_EXIT.
5345 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5347 * configure.srv: Use '$enable_unittest' instead of '$development'
5348 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5351 2019-02-27 Tom Tromey <tromey@adacore.com>
5353 * gdbreplay.c (logchar): Handle \r\n.
5355 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5357 * linux-low.c (linux_attach): Add process before lwp.
5358 * server.c (attach_inferior): Check if already attached.
5360 2019-02-07 Tom Tromey <tom@tromey.com>
5362 * x86-tdesc.h: Rename include guard.
5363 * x86-low.h: Add include guard.
5364 * wincecompat.h: Rename include guard.
5365 * win32-low.h: Add include guard.
5366 * utils.h: Rename include guard.
5367 * tracepoint.h: Rename include guard.
5368 * tdesc.h: Rename include guard.
5369 * target.h: Rename include guard.
5370 * server.h: Rename include guard.
5371 * remote-utils.h: Rename include guard.
5372 * regcache.h: Rename include guard.
5373 * nto-low.h: Rename include guard.
5374 * notif.h: Add include guard.
5375 * mem-break.h: Rename include guard.
5376 * lynx-low.h: Add include guard.
5377 * linux-x86-tdesc.h: Add include guard.
5378 * linux-s390-tdesc.h: Add include guard.
5379 * linux-ppc-tdesc-init.h: Add include guard.
5380 * linux-low.h: Add include guard.
5381 * linux-aarch64-tdesc.h: Add include guard.
5382 * linux-aarch32-low.h: Add include guard.
5383 * inferiors.h: Rename include guard.
5384 * i387-fp.h: Rename include guard.
5385 * hostio.h: Rename include guard.
5386 * gdbthread.h: Rename include guard.
5387 * gdb_proc_service.h: Rename include guard.
5388 * event-loop.h: Rename include guard.
5389 * dll.h: Rename include guard.
5390 * debug.h: Rename include guard.
5391 * ax.h: Rename include guard.
5393 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5396 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5397 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5399 2019-01-25 Tom Tromey <tom@tromey.com>
5401 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5403 2019-01-25 Tom Tromey <tom@tromey.com>
5405 * win32-low.c: Fix common/ includes.
5406 * win32-i386-low.c: Fix common/ includes.
5407 * tracepoint.c: Fix common/ includes.
5408 * thread-db.c: Fix common/ includes.
5409 * target.h: Fix common/ includes.
5410 * symbol.c: Fix common/ includes.
5411 * spu-low.c: Fix common/ includes.
5412 * server.h: Fix common/ includes.
5413 * server.c: Fix common/ includes.
5414 * remote-utils.c: Fix common/ includes.
5415 * regcache.h: Fix common/ includes.
5416 * regcache.c: Fix common/ includes.
5417 * nto-x86-low.c: Fix common/ includes.
5418 * notif.h: Fix common/ includes.
5419 * mem-break.h: Fix common/ includes.
5420 * lynx-low.c: Fix common/ includes.
5421 * lynx-i386-low.c: Fix common/ includes.
5422 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5423 * linux-x86-low.c: Fix common/ includes.
5424 * linux-low.c: Fix common/ includes.
5425 * inferiors.h: Fix common/ includes.
5426 * i387-fp.c: Fix common/ includes.
5427 * hostio.c: Fix common/ includes.
5428 * hostio-errno.c: Fix common/ includes.
5429 * gdbthread.h: Fix common/ includes.
5430 * gdbreplay.c: Fix common/ includes.
5431 * fork-child.c: Fix common/ includes.
5432 * event-loop.c: Fix common/ includes.
5434 (enum gdb_agent_op): Fix common/ includes.
5436 2019-01-21 Tom Tromey <tom@tromey.com>
5438 * tracepoint.c: Fix includes.
5439 * remote-utils.c: Fix includes.
5440 * linux-x86-low.c: Fix includes.
5442 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5444 * gdbreplay.c (gdbreplay_version): Update copyright year in
5446 * server.c (gdbserver_version): Likewise.
5448 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5450 * linux-low.c (add_lwp): Switch ordering.
5452 2018-11-29 Tom Tromey <tom@tromey.com>
5454 * win32-low.c (win32_join): Take pid, not process.
5455 * target.h (struct target_ops) <join>: Change argument type.
5456 (join_inferior): Change argument name.
5457 * spu-low.c (spu_join): Take pid, not process.
5458 * server.c (handle_detach): Preserve pid before destroying
5460 * lynx-low.c (lynx_join): Take pid, not process.
5461 * linux-low.c (linux_join): Take pid, not process.
5463 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5465 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5466 (aarch64_cannot_fetch_register): Likewise.
5467 (struct linux_target_ops): Update references.
5469 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5471 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5473 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5475 * configure.srv (ipa_ppc_linux_regobj): Add
5476 powerpc-isa207-htm-vsx32l-ipa.o and
5477 powerpc-isa207-htm-vsx64l-ipa.o.
5478 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5479 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5480 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5481 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5482 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5483 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5484 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5485 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5486 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5487 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5488 (init_registers_powerpc_isa207_htm_vsx32l)
5489 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5490 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5491 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5492 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5493 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5494 (ppc_store_tm_ctarregset): New functions.
5495 (ppc_regsets): Add entries for HTM regsets.
5496 (ppc_arch_setup): Set htm in features struct when needed. Set
5497 sizes for the HTM regsets.
5498 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5499 (initialize_low_arch): Call
5500 init_registers_powerpc_isa207_htm_vsx32l and
5501 init_registers_powerpc_isa207_htm_vsx64l.
5502 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5503 PPC_TDESC_ISA207_HTM_VSX.
5504 (initialize_low_tracepoint): Call
5505 init_registers_powerpc_isa207_htm_vsx32l and
5506 init_registers_powerpc_isa207_htm_vsx64l.
5508 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5510 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5511 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5512 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5513 (ppc_store_pmuregset): New functions.
5514 (ppc_regsets): Add entries for ebb and pmu regsets.
5515 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5516 pmu regsets are available. Set sizes for these regsets.
5518 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5520 * configure.srv (ipa_ppc_linux_regobj): Add
5521 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5522 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5523 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5524 rs6000/powerpc-isa207-vsx32l.xml, and
5525 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5526 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5527 <PPC_TDESC_ISA207_VSX>: New enum value.
5528 (init_registers_powerpc_isa207_vsx32l): Declare.
5529 (init_registers_powerpc_isa207_vsx64l): Declare.
5530 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5531 (ppc_store_tarregset): New function.
5532 (ppc_regsets): Add entry for the TAR regset.
5533 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5534 size for the TAR regsets.
5535 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5536 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5537 and init_registers_powerpc_isa207_vsx64l.
5538 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5539 (initialize_low_tracepoint): Call
5540 init_registers_powerpc_isa207_vsx32l and
5541 init_registers_powerpc_isa207_vsx64l.
5543 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5544 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5546 * configure.srv (ipa_ppc_linux_regobj): Add
5547 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5548 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5549 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5550 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5551 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5552 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5553 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5554 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5555 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5556 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5557 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5558 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5559 (ppc_hwcap): Add comment.
5560 (ppc_hwcap2): New global.
5561 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5562 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5563 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5564 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5565 when needed. Set sizes for the the DSCR and PPR regsets.
5566 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5567 (initialize_low_arch): Call
5568 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5569 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5570 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5571 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5572 (initialize_low_tracepoint): Call
5573 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5574 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5576 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5578 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5580 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5581 Simon Marchi <simark@simark.ca>
5583 * acinclude.m4: Include "../selftest.m4".
5584 * configure: Regenerate.
5585 * configure.ac: Use "GDB_AC_SELFTEST".
5586 * configure.srv: Use "$enable_unittests" instead of
5587 "$development" when checking whether unit tests have been
5589 * server.c (captured_main): Update message informing that
5590 selftests have been disabled.
5592 2018-10-04 Tom Tromey <tom@tromey.com>
5594 * configure: Rebuild.
5596 2018-10-04 Tom Tromey <tom@tromey.com>
5598 * server.c (handle_status): Rename inner "thread".
5599 (process_serial_event): Declare "res" in 'm' case.
5600 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5601 (iterate_over_lwps): Rename inner "thread".
5602 (linux_qxfer_libraries_svr4): Rename inner "len".
5603 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5605 2018-10-01 Gary Benson <gbenson@redhat.com>
5607 * gdb_proc_service.h: Moved common code to
5608 common/gdb_proc_service.h.
5610 2018-10-01 Gary Benson <gbenson@redhat.com>
5612 * gdb_proc_service.h: Synchronize comments and whitespace with
5613 GDB's version of this file.
5615 2018-09-25 Tom Tromey <tom@tromey.com>
5617 * configure: Rebuild.
5618 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5620 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5622 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5623 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5624 ($(IPA_LIB)): Sort IPA_OBJS.
5626 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5628 * Makefile.in: Remove references to $(ADD_DEPS).
5630 2018-09-16 Tom Tromey <tom@tromey.com>
5632 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5634 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5637 2018-09-05 Tom Tromey <tom@tromey.com>
5639 * configure: Rebuild.
5641 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5644 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5646 2018-08-27 Tom Tromey <tom@tromey.com>
5649 * configure: Rebuild.
5651 2018-08-27 Tom Tromey <tom@tromey.com>
5653 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5654 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5655 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5656 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5657 (s390x_emit_stack_adjust): Add casts to unsigned char.
5659 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5663 * server.h (struct client_state) <disable_randomization>:
5666 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5668 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5670 (mips_supply_ptrace_register): Likewise.
5672 2018-07-22 Tom Tromey <tom@tromey.com>
5674 * configure: Rebuild.
5676 2018-07-22 Tom Tromey <tom@tromey.com>
5678 * win32-low.c (win32_create_inferior): Remove unused variables.
5679 * gdbreplay.c (remote_open): Remove unused variable.
5680 * remote-utils.c (remote_prepare): Remove unused variable.
5681 * x86-tdesc.h (X86_TDESC_H): Define.
5682 (amd64_expedite_regs): Define conditionally.
5683 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5684 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5685 * remote-utils.c (readchar): Remove unused variable.
5687 2018-07-13 Pedro Alves <palves@redhat.com>
5689 * linux-low.c (linux_kill): Change parameter to process_info
5690 pointer instead of pid. Adjust.
5691 * lynx-low.c (lynx_kill): Likewise.
5692 * nto-low.c (nto_kill): Likewise.
5693 * spu-low.c (spu_kill): Likewise.
5694 * win32-low.c (win32_kill): Likewise.
5695 * server.c (handle_v_kill, kill_inferior_callback)
5696 (detach_or_kill_for_exit): Adjust.
5697 * target.c (kill_inferior): Change parameter to process_info
5698 pointer instead of pid. Adjust.
5699 * target.h (struct target_ops) <kill>: Change parameter to
5700 process_info pointer instead of pid. Adjust all implementations
5702 (kill_inferior): Likewise.
5704 2018-07-13 Pedro Alves <palves@redhat.com>
5706 * linux-low.c (linux_detach, linux_join): Change parameter to
5707 process_info pointer instead of pid. Adjust.
5708 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5709 * nto-low.c (nto_detach): Likewise.
5710 * spu-low.c (spu_detach, spu_join): Likewise.
5711 * win32-low.c (win32_detach, win32_join): Likewise.
5712 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5713 * target.h (struct target_ops) <detach, join>: Change parameter to
5714 process_info pointer instead of pid. Adjust all implementations
5716 (detach_inferior, join_inferior): Rename 'pid' parameter to
5719 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5720 Jan Kratochvil <jan.kratochvil@redhat.com>
5721 Paul Fertser <fercerpav@gmail.com>
5722 Tsutomu Seki <sekiriki@gmail.com>
5724 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5725 (OBS): Add 'common/netstuff.o'.
5726 (GDBREPLAY_OBS): Likewise.
5727 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5728 (remote_open): Implement support for IPv6
5730 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5732 (handle_accept_event): Accept connections from IPv6 sources.
5733 (remote_prepare): Handle IPv6-style hostnames; implement
5734 support for IPv6 connections.
5735 (remote_open): Implement support for printing connections from
5738 2018-07-11 Pedro Alves <palves@redhat.com>
5741 * mem-break.c (any_persistent_commands): Add process_info
5742 parameter and use it instead of relying on the current process.
5743 Change return type to bool.
5744 * mem-break.h (any_persistent_commands): Add process_info
5745 parameter and change return type to bool.
5746 * server.c (handle_detach): Remove require_running_or_return call.
5747 Look up the process_info for the process we're about to detach.
5748 If not found, return back error to GDB. Adjust
5749 any_persistent_commands call to pass down a process pointer.
5751 2018-07-11 Pedro Alves <palves@redhat.com>
5753 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5754 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5755 instead of collect_register_by_name.
5756 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5757 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5759 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5760 Pedro Alves <palves@redhat.com>
5762 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5764 2018-07-03 Tom Tromey <tom@tromey.com>
5766 * linux-low.c: Update.
5767 * lynx-low.c: Update.
5768 * mem-break.c: Update.
5769 * nto-low.c: Update.
5770 * remote-utils.c: Update.
5772 * spu-low.c: Update.
5774 * win32-low.c: Update.
5776 2018-07-03 Tom Tromey <tom@tromey.com>
5780 2018-07-03 Tom Tromey <tom@tromey.com>
5782 * linux-low.c: Update.
5784 2018-07-03 Tom Tromey <tom@tromey.com>
5788 2018-07-03 Tom Tromey <tom@tromey.com>
5790 * linux-low.c: Update.
5791 * linux-mips-low.c: Update.
5792 * lynx-low.c: Update.
5793 * nto-low.c: Update.
5794 * remote-utils.c: Update.
5796 * spu-low.c: Update.
5798 * thread-db.c: Update.
5800 2018-07-03 Tom Tromey <tom@tromey.com>
5802 * linux-low.c: Update.
5803 * linux-mips-low.c: Update.
5804 * lynx-low.c: Update.
5805 * mem-break.c: Update.
5806 * nto-low.c: Update.
5807 * remote-utils.c: Update.
5809 * spu-low.c: Update.
5811 * tracepoint.c: Update.
5813 2018-07-03 Tom Tromey <tom@tromey.com>
5815 * linux-low.c: Update.
5816 * linux-ppc-low.c: Update.
5817 * linux-x86-low.c: Update.
5818 * proc-service.c: Update.
5820 * spu-low.c: Update.
5821 * thread-db.c: Update.
5822 * win32-low.c: Update.
5824 2018-07-03 Tom Tromey <tom@tromey.com>
5826 * linux-low.c: Update.
5827 * lynx-low.c: Update.
5828 * nto-low.c: Update.
5829 * remote-utils.c: Update.
5830 * spu-low.c: Update.
5831 * thread-db.c: Update.
5832 * win32-low.c: Update.
5834 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5836 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5837 parameter in call to 'amd64_create_target_description'.
5839 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5841 * x86-tdesc.h: Remove executable permission flag.
5843 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5845 * configure.ac: Remove AC_PREREQ, add missing quoting.
5846 * configure: Re-generate.
5847 * config.in: Re-generate.
5848 * aclocal.m4: Re-generate.
5850 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5852 * tracepoint.h (current_traceframe): Remove declaration.
5854 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5856 * linux-aarch64-low.c (is_sve_tdesc): New function.
5857 (aarch64_sve_regs_copy_to_regcache): Likewise.
5858 (aarch64_sve_regs_copy_from_regcache): Likewise.
5859 (aarch64_regs_info): Add SVE checks.
5860 (initialize_low_arch): Initialize SVE.
5862 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5864 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5866 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5868 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5869 (initialize_low_tracepoint): Likewise
5870 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5871 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5873 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5875 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5877 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5879 * server.h (PBUFSIZ): Increase size
5881 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5883 * regcache.c (regcache::raw_compare): New function.
5884 * regcache.h (regcache::raw_compare): New declaration.
5886 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5888 * regcache.c (new_register_cache): Use new.
5889 (free_register_cache): Use delete.
5890 (register_data): Use const.
5891 (supply_register): Move body inside regcache.
5892 (regcache::raw_supply): New override function.
5893 (collect_register): Move body inside regcache.
5894 (regcache::raw_collect): New override function.
5895 (regcache::get_register_status): New override function.
5896 * regcache.h (struct regcache): Inherit from reg_buffer_common.
5898 2018-06-09 Tom Tromey <tom@tromey.com>
5900 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
5902 (event_queue): Use std::queue.
5903 (gdb_event_xfree): Remove.
5904 (initialize_event_loop, process_event, wait_for_event): Update.
5906 2018-06-08 Stan Cox <scox@redhat.com>
5908 * win32-low.c (win32_create_inferior): last_ptid and last_status
5909 moved to client_state.
5911 2018-06-08 Pedro Alves <palves@redhat.com>
5913 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
5914 common/common-exceptions.o, common/common-utils.o,
5915 common/errors.o, common/print-utils.o and utils.o.
5916 * gdbreplay.c: Include "common-defs.h" instead of the two
5917 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
5918 string.h or alloca.h.
5919 (perror_with_name): Delete.
5920 (remote_open): Use xstrdup instead of strdup.
5921 (main): Rename to ...
5922 (captured_main): ... this.
5925 2018-06-08 Tom Tromey <tom@tromey.com>
5927 * linux-low.c (linux_low_read_btrace): Update.
5929 2018-06-04 Stan Cox <scox@redhat.com>
5931 * server.h (struct client_state): New.
5932 * server.c (cont_thread, general_thread, multi_process)
5933 (report_fork_events, report_vfork_events, report_exec_events)
5934 (report_thread_events, swbreak_feature, hwbreak_feature)
5935 (vCont_supported, disable_randomization, pass_signals)
5936 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
5937 Moved to client_state.
5938 * remote-utils.c (remote_debug, noack_mode)
5939 (transport_is_reliable): Moved to client_state.
5940 * tracepoint.c (current_traceframe): Moved to client_state.
5943 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
5944 linux-low.c, remote-utils.h, target.c: Use client_state.
5946 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5948 * configure.srv: Add new c/h file.
5950 2018-05-31 Alan Hayward <alan.hayward@arm.com>
5952 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
5955 2018-05-25 Maciej W. Rozycki <macro@mips.com>
5957 * gdb.arch/mips-fpregset-core.exp: New test.
5958 * gdb.arch/mips-fpregset-core.c: New test source.
5960 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
5963 * hostio.c (require_int): Do not report overflow for integers
5964 between 0xfffffff and 0x7fffffff.
5966 2018-05-22 Maciej W. Rozycki <macro@mips.com>
5968 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
5969 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
5970 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
5972 (the_low_target): Wire them.
5974 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5976 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
5977 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
5978 mode. Call collect_register_by_name with vscr using
5979 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
5980 (ppc_store_vrregset): Add and set vscr_offset variable as in
5981 ppc_fill_vrregset. Call supply_register_by_name with vscr using
5984 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5986 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
5987 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
5988 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
5990 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
5992 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
5993 (ppc_store_vsxregset): Likewise.
5994 (ppc_fill_vrregset): Likewise.
5995 (ppc_store_vrregset): Likewise.
5996 (ppc_fill_evrregset): Likewise.
5997 (ppc_store_evrregset): Likewise.
5998 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
5999 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6002 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6004 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6005 wordsize of the inferior. Call ppc_linux_target_wordsize.
6007 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6009 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6010 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6011 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6012 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6013 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6014 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6015 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6016 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6017 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6018 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6019 (tdesc_powerpc_e500l): Remove.
6020 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6021 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6022 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6023 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6025 (ppc_arch_setup): Remove target description matching code. Fill a
6026 ppc_linux_features struct and call ppc_linux_match_description
6029 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6031 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6032 width of the requested register exceeds the width of the
6034 (mips_cannot_store_register): Likewise.
6036 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6038 * linux-mips-low.c (mips_fetch_register): New function. Update
6040 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6041 (the_low_target): Wire `mips_fetch_register'.
6043 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6045 * lynx-i386-low.c (LYNXOS_178): New macro.
6046 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6047 the layout on LynxOS-178.
6048 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6049 handle floating point registers that are not supported by
6052 2018-05-10 Tom Tromey <tom@tromey.com>
6054 * configure: Rebuild.
6056 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6059 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6060 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6061 Use it to set the expedite_regs field in the given tdesc.
6062 * x86-tdesc.h: New file.
6063 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6064 Adjust following the addition of the new expedite_regs parameter
6065 to init_target_desc.
6066 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6067 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6068 (i386_linux_read_description, amd64_linux_read_description):
6069 Adjust following the addition of the new expedite_regs parameter
6070 to init_target_desc.
6071 * lynx-i386-low.c: #include "x86-tdesc.h".
6072 (lynx_i386_arch_setup): Adjust following the addition of the new
6073 expedite_regs parameter to init_target_desc.
6074 * nto-x86-low.c: #include "x86-tdesc.h".
6075 (nto_x86_arch_setup): Adjust following the addition of the new
6076 expedite_regs parameter to init_target_desc.
6077 * win32-i386-low.c: #include "x86-tdesc.h".
6078 (i386_arch_setup): Adjust following the addition of the new
6079 expedite_regs parameter to init_target_desc.
6081 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6084 * win32-low.c (win32_create_inferior): Add call to my_wait
6085 setting last_status global.
6087 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6090 * win32-low.c (create_process): Only call gdb_tilde_expand if
6091 inferior_cwd is not NULL.
6093 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6095 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6096 registers to the cache if their values have changed.
6097 (i387_xsave_to_cache): Provide default values for x87 control
6098 registers when these features are available, but disabled.
6099 * regcache.c (supply_register_by_name_zeroed): New function.
6100 * regcache.h (supply_register_by_name_zeroed): Declare new
6103 2018-05-07 Tom Tromey <tom@tromey.com>
6105 * configure: Rebuild.
6107 2018-05-04 Tom Tromey <tom@tromey.com>
6109 * configure: Rebuild.
6111 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6112 Pedro Alves <palves@redhat.com>
6114 * linux-aarch64-low.c (aarch64_stopped_data_address):
6117 2018-04-27 Tom Tromey <tom@tromey.com>
6119 * configure: Rebuild.
6121 2018-04-23 Tom Tromey <tom@tromey.com>
6123 * configure: Rebuild.
6125 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6127 * Makefile.in (depcomp): Add "..".
6128 (all_deps_files): New and use it.
6130 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6132 * configure.srv (aarch64*-*-linux*): Don't include xml.
6133 (i[34567]86-*-cygwin*): Likewise.
6134 (i[34567]86-*-linux*): Likewise.
6135 (i[34567]86-*-lynxos*): Likewise.
6136 (i[34567]86-*-mingw32ce*): Likewise.
6137 (i[34567]86-*-mingw*): Likewise.
6138 (i[34567]86-*-nto*): Likewise.
6139 (tic6x-*-uclinux): Likewise.
6140 (x86_64-*-linux*): Likewise.
6141 (x86_64-*-mingw*): Likewise.
6142 (x86_64-*-cygwin*): Likewise.
6144 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6146 * tdesc.c: Remove xml parameter.
6148 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6150 * server.c (get_features_xml): Remove cast.
6151 * tdesc.c (void target_desc::accept): Fill in function.
6152 (tdesc_get_features_xml): Remove old xml creation.
6153 (print_xml_feature::visit_pre): Add xml vistor.
6154 * tdesc.h (struct target_desc): Make xmltarget mutable.
6155 (tdesc_get_features_xml): Remove declaration.
6157 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6159 * tdesc.c (tdesc_architecture_name): Add new function.
6160 (tdesc_osabi_name): Likewise.
6161 (tdesc_get_features_xml): Use new functions.
6163 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6165 * tdesc.c (tdesc_create_flags): Remove.
6166 (tdesc_add_flag): Likewise.
6167 (tdesc_named_type): Likewise.
6168 (tdesc_create_union): Likewise.
6169 (tdesc_create_struct): Likewise.
6170 (tdesc_create_vector): Likewise.
6171 (tdesc_add_bitfield): Likewise.
6172 (tdesc_add_field): Likewise.
6173 (tdesc_set_struct_size): Likewise.
6175 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6177 * tdesc.c (~target_desc): Remove implictly deleted items.
6178 (init_target_desc): Iterate all features.
6179 (tdesc_get_features_xml): Use vector.
6180 (tdesc_create_feature): Create feature.
6181 * tdesc.h (tdesc_feature) Remove
6182 (target_desc): Add features.
6184 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6186 * Makefile.in: Add common/tdesc.c
6187 * tdesc.c (init_target_desc): init all reg_defs from register
6189 (tdesc_create_reg): Create tdesc_reg.
6190 * tdesc.h (tdesc_feature): Add register vector.
6192 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6194 * tdesc.h (struct target_desc) <features>: Change type to
6195 std::vector<std::string>.
6196 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6198 (tdesc_get_features_xml): Likewise.
6199 (tdesc_create_feature): Likewise.
6201 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6203 * regcache.c (find_register_by_number): Return a ref.
6204 (find_regno): Use references.
6205 (register_size): Likewise.
6206 (register_data): Likewise.
6207 * tdesc.c (target_desc::~target_desc): Remove free calls.
6208 (target_desc::operator==): Use std::vector compare.
6209 (init_target_desc): Use reference.
6210 (tdesc_create_reg): Use reg constructors.
6211 * tdesc.h (struct target_desc): Replace pointer with object.
6213 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6215 * regcache.c (find_register_by_number): Make static.
6216 (find_regno): Use find_register_by_number
6217 * regcache.h (struct reg): Remove declaration.
6219 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6221 * tdesc.c (target_desc::~target_desc): Move to here.
6222 (target_desc::operator==): Likewise.
6223 * tdesc.h (target_desc::~target_desc): Move from here.
6224 (target_desc::operator==): Likewise.
6226 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6228 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6230 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6232 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6234 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6235 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6236 and init_registers_s390_gs_linux64.
6238 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6240 * linux-s390-low.c (s390_fill_gs): Remove function.
6241 (s390_fill_gsbc): Remove function.
6242 (s390_regsets): Set fill functions for the guarded storage regsets
6245 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6247 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6248 the word size. Add comment.
6249 (s390_get_wordsize): New function.
6250 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6251 pswm with it. Instead, use s390_get_wordsize to determine the
6252 word size first and derive the correct tdesc from that directly.
6254 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6256 * Makefile.in: Include silent-rules.mk.
6257 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6258 (COMPILE): Add ECHO_CXX.
6259 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6260 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6261 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6262 (version-generated.c): Add ECHO_GEN.
6263 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6264 (IPAGENT_COMPILE): Add ECHO_CXX.
6265 (%-generated.c): Add ECHO_REGDAT.
6267 2018-03-14 Tom Tromey <tom@tromey.com>
6270 * ax.c (ax_printf): Special case for NULL.
6272 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6274 * linux-low.c (linux_qxfer_libraries_svr4): Use
6275 xml_escape_text_append.
6277 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6279 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6281 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6283 * server.c (handle_general_set): Remove unnecessary xstrdup.
6285 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6287 * server.c (parse_debug_format_options): Adjust to
6288 delim_string_to_char_ptr_vec changes.
6289 * thread-db.c (thread_db_load_search): Adjust to
6290 dirnames_to_char_ptr_vec changes.
6292 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6294 * target.h (target_enable_btrace, target_disable_btrace)
6295 (target_read_btrace, target_read_btrace_conf): Turn macro into
6296 inline function. Throw error if target method is not defined.
6297 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6298 check for btrace target method. Be prepared to handle exceptions
6299 from btrace target methods.
6301 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6303 * server.c (captured_main): Change order of error message printed
6304 when the current working directory cannot be found.
6306 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6308 * server.c: Include "filenames.h" and "pathstuff.h".
6309 (program_name): Delete variable.
6310 (program_path): New anonymous class.
6311 (get_exec_wrapper): Use "program_path" instead of
6313 (handle_v_run): Likewise.
6314 (captured_main): Likewise.
6315 (process_serial_event): Likewise.
6317 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6319 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6320 (OBJS): Add "pathstuff.o".
6321 * server.c (current_directory): New global variable.
6322 (captured_main): Initialize "current_directory".
6324 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6326 * tdesc.c: Use common/tdesc.h.
6327 * tdesc.h: Likewise.
6329 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6330 Simon Marchi <simon.marchi@ericsson.com>
6332 * Makefile.in: Switch order of make rules.
6334 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6336 * Makefile.in: Add common directory in build.
6337 * configure.ac: Add common reference.
6338 * configure: Regenerate.
6340 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6342 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6343 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6344 * spu-low.c (spu_target_ops): Likewise.
6345 * win32-low.c (win32_target_ops): Likewise.
6346 * server.c (supported_btrace_packets): Report packets unconditionally.
6347 * target.h (target_ops) <supports_btrace>: Remove.
6348 (target_supports_btrace): Remove.
6350 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6352 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6353 (handle_btrace_disable): Change return type to void. Use exceptions
6355 (handle_btrace_general_set): Catch exception and copy message to
6358 2018-02-08 Tom Tromey <tom@tromey.com>
6360 * linux-low.c (install_software_single_step_breakpoints): Use
6361 make_scoped_restore.
6362 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6363 (do_restore_current_thread_cleanup): Remove.
6364 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6367 2018-02-08 Tom Tromey <tom@tromey.com>
6369 * mem-break.c (set_raw_breakpoint_at): Use
6370 gdb::unique_xmalloc_ptr.
6372 2018-01-30 Pedro Alves <palves@redhat.com>
6375 * target.c (target_terminal::terminal_state): Rename to ...
6376 (target_terminal::m_terminal_state): ... this.
6378 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6380 * linux-low.c (handle_extended_wait): Surround call to
6381 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6383 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6385 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6386 linux_ptrace_attach_fail_reason_string now returning an
6388 (linux_attach): Likewise.
6389 * thread-db.c (attach_thread): Likewise.
6391 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6394 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6395 checking for fs_base/gs_base fields in struct user_regs_struct.
6396 * configure: Regenerate.
6398 2018-01-16 Yao Qi <yao.qi@linaro.org>
6401 * linux-low.c (fetch_register): Call supply_register instead of
6404 2018-01-08 Yao Qi <yao.qi@linaro.org>
6405 Simon Marchi <simon.marchi@ericsson.com>
6407 * Makefile.in (OBS): Remove selftest.o.
6408 * configure.ac: Set srv_selftest_objs if $development is true.
6409 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6410 * configure: Re-generated.
6411 * server.c (captured_main): Wrap variable selftest_filter with
6414 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6416 * server.c (parse_debug_format_options): Return std::string.
6417 (handle_monitor_command, captured_main): Adjust.
6419 2018-01-05 Pedro Alves <palves@redhat.com>
6422 * server.c (captured_main): Pass quiet=false to
6423 save_original_signals_state.
6425 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6427 * gdbreplay.c (gdbreplay_version): Update copyright year in
6429 * server.c (gdbserver_version): Likewise.
6431 2017-12-08 Tom Tromey <tom@tromey.com>
6433 * ax.c (ax_printf): Update.
6435 2017-12-07 Yao Qi <yao.qi@linaro.org>
6437 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6438 aarch64_linux_read_description.
6439 * linux-amd64-ipa.c (idx2mask): New array.
6440 (get_ipa_tdesc): Move idx2mask out.
6441 (initialize_low_tracepoint): Initialize target descriptions.
6442 * linux-i386-ipa.c (idx2mask): New array.
6443 (get_ipa_tdesc): Move idx2mask out.
6444 (initialize_low_tracepoint): Initialize target descriptions.
6446 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6448 * tdesc.c (struct tdesc_type): Change return type.
6449 (tdesc_add_flag): Change parameter type.
6450 (tdesc_add_bitfield): Likewise.
6451 (tdesc_add_field): Likewise.
6452 (tdesc_set_struct_size): Likewise.
6454 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6456 * regcache.c (registers_to_string): Remove unused variable.
6458 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6460 * inferiors.c (for_each_inferior_with_data): Remove.
6461 * inferiors.h (for_each_inferior_with_data): Remove.
6462 * server.c (handle_qxfer_threads_worker): Change parameter type.
6463 (handle_qxfer_threads_proper): Use for_each_thread.
6465 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6467 * inferiors.c (for_each_inferior): Remove.
6468 (clear_inferiors): Use for_each_thread.
6469 * inferiors.h (for_each_inferior): Remove.
6470 * linux-low.c (linux_wait_for_event_filtered): Use
6472 (linux_stabilize_threads): Likewise.
6473 * regcache.c (regcache_release): Likewise.
6474 * server.c (gdb_wants_all_threads_stopped): Likewise.
6475 (clear_pending_status_callback): Remove.
6476 (handle_status): Use for_each_thread.
6477 (captured_main): Likewise.
6478 * win32-low.c (child_init_thread_list): Likewise.
6479 (win32_clear_inferiors): Likewise.
6480 (fake_breakpoint_event): Likewise.
6482 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6484 * inferiors.h (find_inferior): Remove.
6485 * inferiors.c (find_inferior): Remove.
6487 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6489 * linux-low.c (resume_status_pending_p): Update comment.
6490 (need_step_over_p): Update comment.
6492 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6494 * linux-low.c (proceed_one_lwp): Return void, change parameter
6496 (unsuspend_and_proceed_one_lwp): Likewise.
6497 (proceed_all_lwps): Use for_each_thread.
6498 (unstop_all_lwps): Likewise.
6500 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6502 * linux-low.c (linux_resume_one_thread): Return void, take
6504 (linux_resume): Use for_each_thread.
6506 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6508 * linux-low.c (send_sigstop_callback): Return void, change
6509 parameter type. Rename to...
6510 (send_sigstop): ... this.
6511 (suspend_and_send_sigstop_callback): Return void, change parameter
6513 (suspend_and_send_sigstop): ... this.
6514 (stop_all_lwps): Use for_each_thread.
6516 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6518 * linux-low.c (lwp_running): Return bool, remove unused
6520 (linux_stabilize_threads): Use find_thread.
6522 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6524 * linux-low.c (select_singlestep_lwp_callback): Remove.
6525 (count_events_callback): Remove.
6526 (select_event_lwp_callback): Remove.
6527 (select_event_lwp): Use find_thread/for_each_thread.
6529 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6531 * linux-low.c (not_stopped_callback): Return bool, take filter
6533 (linux_wait_for_event_filtered): Use find_thread.
6534 (linux_wait_1): Likewise.
6536 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6538 * linux-low.c (same_lwp): Remove.
6539 (find_lwp_pid): Use find_thread.
6541 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6543 * linux-low.c (delete_lwp_callback): Remove.
6544 (linux_mourn): Use for_each_thread.
6546 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6548 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6549 args parameter, don't check for pid.
6550 (linux_detach): Use for_each_thread.
6552 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6554 * linux-low.c (struct counter): Remove.
6555 (second_thread_of_pid_p): Remove.
6556 (last_thread_of_process_p): Use find_thread.
6558 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6560 * inferiors.c (find_inferior_in_random): Remove.
6561 * inferiors.h (find_inferior_in_random): Remove.
6562 * linux-low.c (status_pending_p_callback): Return bool, accept
6563 parameter ptid directly.
6564 (linux_wait_for_event_filtered): Use find_thread_in_random.
6565 (linux_wait_1): Likewise.
6567 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6569 * inferiors.c (find_inferior_id): Remove.
6570 (find_thread_ptid): Move implemention from find_inferior_id to
6572 * inferiors.h (find_inferior_id): Remove.
6573 * server.c (handle_status): Use find_thread_ptid.
6574 (process_serial_event): Likewise.
6575 * thread-db.c (find_one_thread): Likewise.
6576 (thread_db_thread_handle): Likewise.
6577 * win32-low.c (thread_rec): Likewise.
6578 (child_delete_thread): Likewise.
6579 (win32_thread_alive): Likewise.
6580 (get_child_debug_event): Likewise.
6582 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6584 * linux-mips-low.c (update_watch_registers_callback): Return
6585 void, remove pid_p parameter, don't check for pid.
6586 (mips_insert_point, mips_remove_point): Use for_each_thread.
6588 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6590 * lynx.low (lynx_delete_thread_callback): Remove.
6591 (lynx_mourn): Use for_each_thread.
6593 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6595 * regcache.c (regcache_invalidate_one): Remove.
6596 (regcache_invalidate_pid): use for_each_thread.
6598 2017-11-26 Tom Tromey <tom@tromey.com>
6600 * linux-low.c (linux_create_inferior): Update.
6602 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6604 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6606 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6608 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6609 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6610 * linux-aarch64-tdesc-selftest.c: New file.
6611 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6613 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6615 * configure.srv: Add new file.
6616 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6617 * linux-aarch64-tdesc-selftest.c: New file.
6618 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6620 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6622 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6623 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6624 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6626 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6628 * configure.srv: Add new files.
6629 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6630 aarch64_linux_read_description.
6631 * linux-aarch64-low.c (aarch64_linux_read_description):
6632 Merge with aarch64_arch_setup.
6633 (aarch64_arch_setup): Call aarch64_linux_read_description.
6634 * linux-aarch64-tdesc.c: New file.
6635 * linux-aarch64-tdesc.h: New file.
6637 2017-11-24 Yao Qi <yao.qi@linaro.org>
6639 * configure.srv: Set $srv_regobj for tic6x-linux.
6640 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6641 (tic6x_read_description): Move some code to tic6x_arch_setup.
6642 (tic6x_tdesc_test): New function.
6643 (initialize_low_arch): Call selftests::register_test.
6645 2017-11-22 Yao Qi <yao.qi@linaro.org>
6647 * remote-utils.c (prepare_resume_reply): Use memcpy.
6649 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6651 * linux-low.c (kill_one_lwp_callback): Return void, take
6652 argument directly, don't filter on pid.
6653 (linux_kill): Use for_each_thread.
6655 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6657 * linux-low.c (need_step_over_p): Return bool, remove dummy
6659 (linux_resume, proceed_all_lwps): Use find_thread.
6661 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6663 * linux-low.c (resume_status_pending_p): Return bool, remove
6665 (linux_resume): Use find_thread.
6667 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6669 * linux-low.c (struct thread_resume_array): Remove.
6670 (linux_set_resume_request): Return void, take arguments
6672 (linux_resume): Use for_each_thread.
6674 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6676 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6677 return bool, remove data argument.
6678 (linux_stabilize_threads): Use find_thread.
6680 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6682 * linux-low.c (unsuspend_one_lwp): Remove.
6683 (unsuspend_all_lwps): Use for_each_thread, inline code from
6686 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6688 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6689 * linux-low.c (struct iterate_over_lwps_args): Remove.
6690 (iterate_over_lwps_filter): Remove.
6691 (iterate_over_lwps): Use find_thread.
6693 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6695 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6696 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6697 code from reset_lwp_ptrace_options_callback.
6699 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6701 * linux-arm-low.c (struct update_registers_data): Remove.
6702 (update_registers_callback): Return void, take arguments
6703 directly, don't check thread's pid.
6704 (arm_insert_point, arm_remove_point): Use for_each_thread.
6706 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6708 * win32-low.c (continue_one_thread): Return void, take argument
6710 (child_continue): Use for_each_thread.
6712 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6714 * win32-i386-low.c (update_debug_registers_callback): Rename
6716 (update_debug_registers): ... this, return void, remove pid_p arg.
6717 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6719 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6721 * inferiors.h (struct process_info): Add constructor, initialize
6723 <syscalls_to_catch>: Change type to std::vector<int>.
6724 * inferiors.c (add_process): Allocate process_info with new.
6725 (remove_process): Free process_info with delete.
6726 * linux-low.c (handle_extended_wait): Adjust.
6727 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6728 * server.c (handle_general_set): Adjust.
6730 2017-11-16 Pedro Alves <palves@redhat.com>
6732 * remote-utils.c (remote_close): Block SIGIO signals instead of
6733 uninstalling the SIGIO handler.
6735 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6737 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6739 2017-11-16 Yao Qi <yao.qi@linaro.org>
6741 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6742 (tic6x_store_gregset): Likewise.
6743 (tic6x_usrregs_info): Move it up.
6745 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6747 * Makefile.in: Update arch rules.
6748 * configure.srv: Explicitly mark arch/ files.
6750 2017-11-13 Andreas Schwab <schwab@suse.de>
6752 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6754 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6756 2017-11-06 Pedro Alves <palves@redhat.com>
6758 * config.in, configure: Regenerate.
6760 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6762 * target.c (struct thread_search): Remove.
6763 (thread_search_callback): Remove.
6764 (prepare_to_access_memory): Use for_each_thread instead of
6765 find_inferior. Inline code from thread_search_callback.
6767 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6769 * server.c (struct visit_actioned_threads_data): Remove.
6770 (visit_actioned_threads): Change prototype to take arguments
6772 (resume): Use find_thread instead of find_inferior.
6774 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6776 * server.c (queue_stop_reply_callback): Change prototype, return
6778 (find_status_pending_thread_callback): Remove.
6779 (handle_status): Replace find_inferior with find_thread and
6782 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6784 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6786 (aarch64_store_gregset): Likewise.
6787 (aarch64_fill_fpregset): Likewise.
6788 (aarch64_store_fpregset): Likewise.
6790 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6792 * gdbthread.h (find_thread, for_each_thread): New functions.
6793 * inferiors.c (thread_of_pid): Remove.
6794 (find_any_thread_of_pid): Use find_thread.
6795 * linux-low.c (num_lwps): Use for_each_thread.
6797 2017-10-17 Yao Qi <yao.qi@linaro.org>
6799 * Makefile.in: Remove one rule.
6800 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6802 2017-10-17 Yao Qi <yao.qi@linaro.org>
6804 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6805 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6807 2017-10-17 Yao Qi <yao.qi@linaro.org>
6809 * configure.srv: Rename arm.o with arch/arm.o.
6811 2017-10-17 Yao Qi <yao.qi@linaro.org>
6813 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6814 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6815 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6816 (arch-i386.o, arch-amd64.o): Remove rules.
6817 (arch/%.o): New rule.
6818 Update POSTCOMPILE and COMPILE.pre.
6819 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6820 * configure: Re-generated.
6821 * configure.srv: Replace arch-i386.o with arch/i386.o.
6822 Replace arch-amd64.o with arch/amd64.o.
6824 2017-10-16 Yao Qi <yao.qi@linaro.org>
6826 * configure: Regenerated.
6828 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6830 * inferiors.h: (struct inferior_list): Remove.
6831 (struct inferior_list_entry); Remove.
6832 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6833 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6834 get_first_inferior): Remove.
6835 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6836 find_inferior_id, find_inferior_in_random): Change signature.
6837 * inferiors.c (all_threads): Change type to
6838 std::list<thread_info *>.
6839 (get_thread): Remove macro.
6840 (find_inferior, find_inferior_id): Change signature, implement
6842 (find_inferior_in_random): Change signature, implement using
6843 find_thread_in_random.
6844 (for_each_inferior, for_each_inferior_with_data): Change
6845 signature, implement using for_each_thread.
6846 (add_inferior_to_list, remove_inferior): Remove.
6847 (add_thread, get_first_thread, thread_of_pid,
6848 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6849 (get_first_inferior, one_inferior_p, clear_inferior_list):
6851 (clear_inferiors, get_thread_process): Update.
6852 * gdbthread.h: Include <list>.
6853 (struct thread_info) <entry>: Remove field.
6855 (all_threads): Change type to std::list<thread_info *>.
6856 (get_first_inferior): Add doc.
6857 (find_thread, for_each_thread, find_thread_in_random): New
6859 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6860 * linux-arm-low.c (update_registers_callback): Update.
6861 * linux-low.c (second_thread_of_pid_p): Update.
6862 (kill_one_lwp_callback, linux_detach_lwp_callback,
6863 delete_lwp_callback, status_pending_p_callback, same_lwp,
6864 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6865 iterate_over_lwps, not_stopped_callback,
6866 resume_stopped_resumed_lwps, count_events_callback,
6867 select_singlestep_lwp_callback, select_event_lwp_callback,
6868 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6869 suspend_and_send_sigstop_callback, wait_for_sigstop,
6870 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6871 lwp_running, linux_set_resume_request, resume_status_pending_p,
6872 need_step_over_p, start_step_over, linux_resume_one_thread,
6873 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6874 reset_lwp_ptrace_options_callback): Update.
6875 * linux-mips-low.c (update_watch_registers_callback): Update.
6876 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6878 (free_register_cache_thread_one): Remove.
6879 (regcache_release): Update.
6880 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
6881 handle_qxfer_threads_worker): Update.
6882 (handle_query): Update, use list iterator.
6883 (visit_actioned_threads, handle_pending_status,
6884 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
6885 clear_pending_status_callback, set_pending_status_callback,
6886 find_status_pending_thread_callback, handle_status,
6887 process_serial_event): Update.
6888 * target.c (thread_search_callback): Update.
6889 * thread-db.c (thread_db_get_tls_address): Update.
6890 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
6892 * win32-i386-low.c (update_debug_registers_callback): Update.
6893 * win32-low.c (delete_thread_info, child_delete_thread,
6894 continue_one_thread, suspend_one_thread,
6895 get_child_debug_event): Adjust.
6897 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6899 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
6900 * inferiors.h: Include <list>.
6901 (struct process_info) <entry>: Remove field.
6903 (pid_of): Change macro to function.
6904 (ptid_of, lwpid_of): Remove macro.
6905 (all_processes): Change type to std::list<process_info *>.
6906 (ALL_PROCESSES): Remove macro.
6907 (for_each_process, find_process): New function.
6908 * inferiors.c (all_processes): Change type to
6909 std::list<process_info *>.
6910 (find_thread_process): Adjust.
6911 (add_process): Likewise.
6912 (remove_process): Likewise.
6913 (find_process_pid): Likewise.
6914 (get_first_process): Likewise.
6915 (started_inferior_callback): Remove.
6916 (have_started_inferiors_p): Adjust.
6917 (attached_inferior_callback): Remove.
6918 (have_attached_inferiors_p): Adjust.
6919 * linux-low.c (check_zombie_leaders): Likewise.
6920 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
6921 (x86_linux_update_xmltarget): Adjust.
6922 * server.c (handle_query): Likewise.
6923 (gdb_reattached_process): Remove.
6924 (handle_status): Adjust.
6925 (kill_inferior_callback): Likewise.
6926 (detach_or_kill_inferior): Remove.
6927 (print_started_pid): Likewise.
6928 (print_attached_pid): Likewise.
6929 (detach_or_kill_for_exit): Update.
6930 (process_serial_event): Likewise.
6931 * linux-arm-low.c (arm_new_fork): Likewise.
6933 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6935 * dll.h: Include <list>.
6936 (struct dll_info): Add constructor.
6937 <entry>: Remove field.
6938 (all_dlls): Change type to std::list<dll_info>.
6939 * dll.c: Include <algorithm>.
6940 (get_dll): Remove macro.
6941 (all_dlls): Change type to std::list<dll_info *>.
6942 (free_one_dll): Remove.
6943 (match_dll): Likewise.
6944 (loaded_dll): Adjust.
6945 (unloaded_dll): Adjust to all_dlls type change, use
6946 std::find_if. Inline code from match_dll.
6947 (clear_dlls): Adjust to all_dlls type change.
6948 * server.c (emit_dll_description): Remove.
6949 (handle_qxfer_libraries): Adjust to all_dlls type change,
6950 integrate emit_dll_description's functionality.
6952 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6954 * linux-low.h (struct linux_target_ops) <delete_process>: New
6956 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
6957 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
6958 (struct linux_target_ops): Add delete_process callback.
6959 * linux-arm-low.c (arm_delete_process): New.
6960 (struct linux_target_ops): Add delete_process callback.
6961 * linux-bfin-low.c (struct linux_target_ops): Likewise.
6962 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
6963 * linux-m32r-low.c (struct linux_target_ops): Likewise.
6964 * linux-mips-low.c (mips_linux_delete_process): New.
6965 (struct linux_target_ops): Add delete_process callback.
6966 * linux-ppc-low.c (struct linux_target_ops): Likewise.
6967 * linux-s390-low.c (struct linux_target_ops): Likewise.
6968 * linux-sh-low.c (struct linux_target_ops): Likewise.
6969 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
6970 * linux-tile-low.c (struct linux_target_ops): Likewise.
6971 * linux-x86-low.c (x86_linux_delete_process): New.
6972 (struct linux_target_ops): Add delete_process callback.
6973 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
6975 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
6977 * linux-aarch64-low.c (the_low_target): Add thread delete
6979 * linux-arm-low.c (arm_delete_thread): New function.
6980 (the_low_target): Add thread delete callback.
6981 * linux-bfin-low.c (the_low_target): Likewise.
6982 * linux-crisv32-low.c (the_low_target): Likewise.
6983 * linux-low.c (delete_lwp): Invoke delete_thread callback if
6985 * linux-low.h (struct linux_target_ops) <delete_thread>: New
6987 * linux-m32r-low.c (the_low_target): Add thread delete callback.
6988 * linux-mips-low.c (mips_linux_delete_thread): New function.
6989 (the_low_target): Add thread delete callback.
6990 * linux-ppc-low.c (the_low_target): Likewise.
6991 * linux-s390-low.c (the_low_target): Likewise.
6992 * linux-sh-low.c (the_low_target): Likewise.
6993 * linux-tic6x-low.c (the_low_target): Likewise.
6994 * linux-tile-low.c (the_low_target): Likewise.
6995 * linux-x86-low.c (the_low_target): Likewise.
6996 * linux-xtensa-low.c (the_low_target): Likewise.
6998 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7000 * win32-low.c: Include "common-inferior.h".
7002 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7004 * inferiors.c (set_inferior_cwd): New function.
7005 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7006 (handle_query): Inform that QSetWorkingDir is supported.
7007 * win32-low.c (create_process): Pass the inferior's cwd to
7010 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7012 * inferiors.c (current_inferior_cwd): New global variable.
7013 (get_inferior_cwd): New function.
7014 * inferiors.h (struct process_info) <cwd>: New field.
7016 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7018 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7019 (OBS): Add gdb_tilde_expand.o.
7021 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7023 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7024 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7026 2017-09-29 Pedro Alves <palves@redhat.com>
7028 * ax.c (gdb_parse_agent_expr): Constify.
7029 * ax.h (gdb_parse_agent_expr): Constify.
7030 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7032 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7033 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7034 * remote-utils.h (read_ptid): Constify.
7035 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7036 (process_point_options, process_serial_event): Constify.
7037 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7038 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7039 (cmd_qtbuffer): Constify.
7041 2017-09-29 Pedro Alves <palves@redhat.com>
7043 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7046 2017-09-29 Pedro Alves <palves@redhat.com>
7048 * linux-low.c (handle_extended_wait): Pass parent thread instead
7049 of process to thread_db_notice_clone.
7050 * linux-low.h (thread_db_notice_clone): Replace parent process
7051 parameter with parent thread parameter.
7052 * thread-db.c (find_one_thread): Add comment.
7053 (thread_db_notice_clone): Replace parent process parameter with
7054 parent thread parameter. Temporarily switch to the parent thread.
7056 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7058 * gdbthread.h: Include "common-gdbthread.h".
7059 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7060 "if" when validating the ptid.
7061 * remote-utils.c: Include "gdbthread.h".
7062 (prepare_resume_reply): Use "switch_to_thread".
7063 * target.c (done_accessing_memory): Likewise.
7065 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7067 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7068 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7069 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7070 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7071 s390x-gs-linux64-ipa.o to ipa_obj.
7072 * linux-s390-low.c (HWCAP_S390_GS): New define.
7073 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7075 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7076 (s390_arch_setup): Check for guarded-storage support and choose
7078 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7079 init_registers_s390x_gs_linux64.
7080 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7082 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7083 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7085 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7087 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7089 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7091 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7092 (thread_db_thread_handle): Declare.
7093 * linux-low.c (linux_target_ops): Initialize thread_handle.
7094 * server.c (handle_qxfer_threads_worker): Add support for
7096 * target.h (struct target_ops): Add new function pointer,
7098 (target_thread_handle): Define.
7099 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7101 (thread_db_thread_handle): New function.
7103 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7105 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7106 * linux-low.h (thread_db_notice_clone): Declare.
7107 * thread-db.c (thread_db_notice_clone): New function.
7109 2017-09-21 Pedro Alves <palves@redhat.com>
7111 * server.c (gdb_read_memory, handle_status, process_serial_event)
7112 (handle_serial_event, handle_target_event): Adjust to
7113 set_desired_thread prototype change.
7114 * target.c (set_desired_thread): Remove 'use_general' parameter
7116 * target.h (set_desired_thread): Remove 'use_general' parameter.
7118 2017-09-20 Tom Tromey <tom@tromey.com>
7120 * target.c (target_terminal::terminal_state): Define.
7121 (target_terminal::init): Rename from target_terminal_init.
7122 (target_terminal::inferior): Rename from
7123 target_terminal_inferior.
7124 (target_terminal::ours): Rename from target_terminal_ours.
7125 (target_terminal::ours_for_output, target_terminal::info): New.
7127 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7129 * server.c (accumulate_file_name_length): Remove.
7130 (emit_dll_description): Adjust to std::string change.
7131 (handle_qxfer_libraries): Use std::string to hold document.
7133 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7135 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7136 return type of xml_escape_text.
7137 * server.c (emit_dll_description): Likewise.
7139 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7141 * server.c (captured_main): Accept argument for --selftest.
7142 Update run_tests call.
7143 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7144 when registering selftests.
7146 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7148 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7149 instead of "VEC" for "target_desc.reg_defs".
7150 (regcache_cpy): Likewise.
7151 (registers_to_string): Likewise.
7152 (registers_from_string): Likewise.
7153 (find_regno): Likewise.
7154 (supply_regblock): Likewise.
7155 (regcache_raw_read_unsigned): Likewise.
7156 * tdesc.c (init_target_desc): Likewise.
7157 (tdesc_create_reg): Likewise.
7158 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7159 (struct target_desc) <reg_defs>: Convert to "std::vector".
7160 (target_desc): Do not initialize "reg_defs".
7161 (~target_desc): Update code to use "std::vector" instead of "VEC"
7162 for "target_desc.reg_defs".
7163 (operator==): Likewise.
7165 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7167 * inferiors.h (thread_to_gdb_id): Remove.
7168 * inferiors.c (thread_to_gdb_id): Remove.
7169 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7170 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7171 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7173 * nto-low.c (nto_fetch_registers, nto_store_registers,
7174 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7176 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7178 * inferiors.h (gdb_id_to_thread_id): Remove.
7179 * inferiors.c (gdb_id_to_thread_id): Remove.
7180 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7181 removal. Move pid declaration closer to where it's used.
7183 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7185 * server.c (handle_detach): New function.
7186 (process_serial_event): Move code out, call handle_detach.
7188 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7190 * server.c (require_running): Rename to ...
7191 (require_running_or_return): ... this ...
7192 (require_running_or_break): ... and this.
7193 (handle_query, process_serial_event): Adjust.
7195 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7197 * linux-low.c (linux_set_resume_request): Remove unused
7200 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7202 * server.c (first_thread_of): Remove.
7203 (process_serial_event): Replace usage of first_thread_of with
7204 find_any_thread_of_pid.
7205 * tracepoint.c (same_process_p): Remove.
7206 (gdb_agent_about_to_close): Replace usage of same_process_p with
7207 find_any_thread_of_pid.
7208 * linux-x86-low.c (same_process_callback): Remove.
7209 (x86_arch_setup_process_callback): Replace usage of
7210 same_process_callback with find_any_thread_of_pid.
7211 * thread-db.c (any_thread_of): Remove.
7212 (switch_to_process): Replace usage of any_thread_of with
7213 find_any_thread_of_pid.
7214 * inferiors.c (thread_pid_matches_callback): Remove.
7215 (find_thread_process): Adjust to use find_any_thread_of_pid.
7217 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7219 * regcache.c (get_thread_regcache): Guard calls to "memset"
7222 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7224 * linux-low.c (handle_extended_wait): Use
7225 "allocate_target_description" instead of "XNEW".
7226 * linux-x86-low.c (initialize_low_arch): Likewise.
7228 2017-09-05 Yao Qi <yao.qi@linaro.org>
7230 * configure.srv (srv_i386_regobj): Remove.
7231 (srv_amd64_regobj): Remove.
7232 (srv_regobj): Set it to "" for x86 non-linux targets.
7233 * linux-x86-tdesc.c (i386_linux_read_description):
7234 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7235 (init_registers_i386): Remove the declaration.
7236 (tdesc_i386): Remove the declaration.
7237 (lynx_i386_arch_setup): Call i386_create_target_description.
7238 * nto-x86-low.c: Likewise.
7239 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7240 [!__x86_64__]: include arch/i386.h.
7241 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7243 2017-09-05 Yao Qi <yao.qi@linaro.org>
7245 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7246 i386/amd64-XXX-linux from it.
7248 2017-09-05 Yao Qi <yao.qi@linaro.org>
7250 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7252 (ipa_amd64_linux_regobj): Remove.
7253 (ipa_x32_linux_regobj): Remove.
7255 2017-09-05 Yao Qi <yao.qi@linaro.org>
7257 * Makefile.in (arch-amd64.o): New rule.
7258 * configure.srv: Append arch-amd64.o.
7259 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7260 (get_ipa_tdesc): Call amd64_linux_read_description.
7261 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7262 and init_registers_amd64_XXX.
7263 * linux-x86-low.c (x86_linux_read_description): Call
7264 amd64_linux_read_description.
7265 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7266 (initialize_low_arch): Don't call init_registers_x32_XXX and
7267 init_registers_amd64_XXX.
7268 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7269 and tdesc_amd64_XXX.
7270 [__x86_64__] (amd64_tdesc_test): New function.
7271 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7272 and init_registers_amd64_XXX.
7273 * linux-x86-tdesc.c: Include arch/amd64.h.
7274 (xcr0_to_tdesc_idx): New function.
7275 (i386_linux_read_description): New function.
7276 (amd64_get_ipa_tdesc_idx): New function.
7277 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7278 (amd64_get_ipa_tdesc): Declare.
7280 2017-09-05 Yao Qi <yao.qi@linaro.org>
7282 * configure.srv (srv_i386_linux_xmlfiles): Remove
7283 i386/i386-XXX-linux.xml from it.
7285 2017-09-05 Yao Qi <yao.qi@linaro.org>
7287 * configure.srv: Set srv_i386_linux_regobj empty if $development
7289 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7290 initialize_low_tdesc.
7291 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7292 with #if initialize_low_tdesc.
7293 * linux-x86-tdesc-selftest.c: New file.
7294 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7296 2017-09-05 Yao Qi <yao.qi@linaro.org>
7298 * Makefile.in (arch-i386.o): New rule.
7299 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7300 (x86_64-*-linux*): Likewise.
7301 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7302 include arch/i386.h.
7303 (i386_linux_read_description): Remove code and call
7304 i386_create_target_description.
7305 * tdesc.c (allocate_target_description): New function.
7306 * tdesc.h (set_tdesc_architecture): Remove declaration.
7307 (set_tdesc_osabi): Likewise.
7309 2017-09-05 Yao Qi <yao.qi@linaro.org>
7311 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7312 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7313 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7315 * server.c (get_features_xml): Call tdesc_get_features_xml.
7316 * tdesc.c (set_tdesc_architecture): New function.
7317 (set_tdesc_osabi): New function.
7318 (tdesc_get_features_xml): New function.
7319 (tdesc_create_feature): Add an argument.
7320 * tdesc.h (struct target_desc) <features>: New field.
7321 <arch, osabi>: New field.
7322 (~target_desc): xfree features, arch, and osabi.
7323 (target_desc::oerator==): Don't compare .xmltarget.
7324 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7325 (set_tdesc_osabi): Likewise.
7326 (tdesc_get_features_xml): Likewise.
7328 2017-09-05 Yao Qi <yao.qi@linaro.org>
7330 * linux-x86-tdesc.c: Include selftest.h.
7331 (i386_tdesc_test): New function.
7332 (initialize_low_tdesc): Call selftests::register_test.
7333 * tdesc.h: Include regdef.h.
7334 (target_desc): Override operator == and !=.
7336 2017-09-05 Yao Qi <yao.qi@linaro.org>
7338 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7339 (ipa_obj): Likewise.
7340 * linux-i386-ipa.c: Include common/x86-xstate.h
7341 (get_ipa_tdesc): Call i386_linux_read_description.
7342 (initialize_low_tracepoint): Don't call init_registers_XXX
7343 functions, call initialize_low_tdesc instead.
7344 * linux-x86-low.c (x86_linux_read_description): Call
7345 i386_linux_read_description.
7346 (initialize_low_arch): Don't call init_registers_i386_XXX
7347 functions, call initialize_low_tdesc.
7348 * linux-x86-tdesc.c: New file.
7349 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7350 (i386_get_ipa_tdesc_idx): Declare.
7351 (i386_get_ipa_tdesc): Declare.
7352 (initialize_low_tdesc): Declare.
7354 2017-09-05 Yao Qi <yao.qi@linaro.org>
7356 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7359 2017-09-05 Yao Qi <yao.qi@linaro.org>
7361 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7362 * regcache.c (get_thread_regcache): Use VEC_length.
7363 (init_register_cache): Likewise.
7364 (regcache_cpy): Likewise.
7365 (registers_to_string): Iterate reg_defs via VEC_iterate.
7366 (find_regno): Likewise.
7367 (find_register_by_number): Use VEC_index.
7368 (register_size): Call find_register_by_number.
7369 (register_data): Call find_register_by_number.
7370 (supply_regblock): Use VEC_length.
7371 (regcache_raw_read_unsigned): Likewise.
7372 * tdesc.c (init_target_desc): Iterate reg_defs via
7374 (default_description): Update initializer.
7375 (copy_target_description): Don't update field num_registers.
7376 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7377 <num_registers>: Remove.
7379 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7381 * Makefile.in (.SECONDARY): Define target.
7383 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7385 * linux-low.c (linux_wait_1): Adjust.
7386 * server.c (queue_stop_reply_callback): Adjust.
7388 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7390 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7391 QEnvironmentUnset and QEnvironmentReset packets.
7392 (handle_query): Inform remote that QEnvironmentHexEncoded,
7393 QEnvironmentUnset and QEnvironmentReset are supported.
7395 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7397 * inferiors.h (inferior_target_data): Rename to ...
7398 (thread_target_data): ... this.
7399 (inferior_regcache_data): Rename to ...
7400 (thread_regcache_data): ... this.
7401 (set_inferior_regcache_data): Rename to ...
7402 (set_thread_regcache_data): ... this.
7403 * inferiors.c (inferior_target_data): Rename to ...
7404 (thread_target_data): ... this.
7405 (inferior_regcache_data): Rename to ...
7406 (thread_regcache_data): ... this.
7407 (set_inferior_regcache_data): Rename to ...
7408 (set_thread_regcache_data): ... this.
7409 (free_one_thread): Update.
7410 * linux-low.h (get_thread_lwp): Update.
7411 * regcache.c (get_thread_regcache): Update.
7412 (regcache_invalidate_thread): Update.
7413 (free_register_cache_thread): Update.
7414 * win32-i386-low.c (update_debug_registers_callback): Update.
7415 (win32_get_current_dr): Update.
7416 * win32-low.c (thread_rec): Update.
7417 (delete_thread_info): Update.
7418 (continue_one_thread): Update.
7419 (suspend_one_thread): Update.
7421 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7423 * inferiors.c (set_inferior_target_data): Remove.
7424 * inferiors.h (set_inferior_target_data): Remove.
7426 2017-08-18 Yao Qi <yao.qi@linaro.org>
7428 * Makefile.in (OBS): Add selftest.o.
7429 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7430 * configure, config.in: Re-generated.
7431 * server.c: Include common/sefltest.h.
7432 (captured_main): Handle option --selftest.
7434 2017-08-09 Yao Qi <yao.qi@linaro.org>
7436 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7437 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7438 i386-avx-mpx.o and i386-mmx.o.
7439 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7440 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7441 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7442 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7443 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7444 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7445 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7446 i386/amd64-avx-mpx.xml.
7448 2017-08-09 Yao Qi <yao.qi@linaro.org>
7450 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7451 and x32-avx-avx512.o.
7452 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7453 i386/x32-avx-avx512.xml.
7455 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7457 * tracepoint.h (enum class fast_tpoint_collect_result): New
7459 (fast_tracepoint_collecting): Change return type to
7460 fast_tpoint_collect_result.
7461 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7462 * linux-low.h: Include tracepoint.h.
7463 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7464 fast_tpoint_collect_result.
7465 * linux-low.c (handle_tracepoints): Adjust.
7466 (linux_fast_tracepoint_collecting): Change return type to
7467 fast_tpoint_collect_result.
7468 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7469 linux_wait_1, stuck_in_jump_pad_callback,
7470 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7471 proceed_one_lwp): Adjust to type change.
7473 2017-07-10 Yao Qi <yao.qi@linaro.org>
7475 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7477 2017-06-29 Yao Qi <yao.qi@linaro.org>
7479 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7481 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7483 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7485 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7487 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7489 * linux-low.c (linux_create_inferior): Adjust code to access the
7490 environment information via 'gdb_environ' class.
7491 * lynx-low.c (lynx_create_inferior): Likewise.
7492 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7493 (get_environ): Return a pointer to 'our_environ'.
7494 (captured_main): Initialize 'our_environ'.
7495 * server.h (get_environ): Adjust prototype.
7496 * spu-low.c (spu_create_inferior): Adjust code to access the
7497 environment information via 'gdb_environ' class.
7499 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7501 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7502 usage of "register" keyword.
7504 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7506 * configure: Re-generate.
7508 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7510 * configure: Re-generate.
7512 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7514 * Makefile.in (COMPILE.pre): Add "-x c++".
7516 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7518 * fork-child.c: Conditionally include <signal.h>.
7520 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7522 * server.c (handle_general_set): Handle new packet
7523 "QStartupWithShell".
7524 (handle_query): Add "QStartupWithShell" to the list of supported
7526 (gdbserver_usage): Add help text explaining the
7527 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7529 (captured_main): Recognize and act upon the presence of the new
7532 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7533 Pedro Alves <palves@redhat.com>
7535 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7536 * configure: Regenerate.
7537 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7539 (i[34567]86-*-lynxos*): Likewise.
7540 (spu*-*-*): Likewise.
7541 * fork-child.c: New file.
7542 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7544 (linux_ptrace_fun): New function.
7545 (linux_create_inferior): Adjust function prototype to reflect
7546 change on "target.h". Adjust function code to use
7548 (linux_request_interrupt): Delete "signal_pid".
7549 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7550 (lynx_ptrace_fun): New function.
7551 (lynx_create_inferior): Adjust function prototype to reflect
7552 change on "target.h". Adjust function code to use
7554 * nto-low.c (nto_create_inferior): Adjust function prototype and
7555 code to reflect change on "target.h". Update comments.
7556 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7557 "common-terminal.h" and "environ.h".
7558 (terminal_fd): Moved to fork-child.c.
7559 (old_foreground_pgrp): Likewise.
7560 (restore_old_foreground_pgrp): Likewise.
7561 (last_status): Make it global.
7562 (last_ptid): Likewise.
7563 (our_environ): New variable.
7564 (startup_with_shell): Likewise.
7565 (program_name): Likewise.
7566 (program_argv): Rename to...
7567 (program_args): ...this.
7568 (wrapper_argv): New variable.
7569 (start_inferior): Delete function.
7570 (get_exec_wrapper): New function.
7571 (get_exec_file): Likewise.
7572 (get_environ): Likewise.
7573 (prefork_hook): Likewise.
7574 (post_fork_inferior): Likewise.
7575 (postfork_hook): Likewise.
7576 (postfork_child_hook): Likewise.
7577 (handle_v_run): Update code to deal with arguments coming from the
7578 remote host. Update calls from "start_inferior" to
7580 (captured_main): Likewise. Initialize environment variable. Call
7582 * server.h (post_fork_inferior): New prototype.
7583 (get_environ): Likewise.
7584 (last_status): Declare.
7585 (last_ptid): Likewise.
7586 (signal_pid): Likewise.
7587 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7588 (spu_ptrace_fun): New function.
7589 (spu_create_inferior): Adjust function prototype to reflect change
7590 on "target.h". Adjust function code to use "fork_inferior".
7591 * target.c (target_terminal_init): New function.
7592 (target_terminal_inferior): Likewise.
7593 (target_terminal_ours): Likewise.
7594 * target.h: Include <vector>.
7595 (struct target_ops) <create_inferior>: Update prototype.
7596 (create_inferior): Update macro.
7597 * utils.c (gdb_flush_out_err): New function.
7598 * win32-low.c (win32_create_inferior): Adjust function prototype
7599 and code to reflect change on "target.h".
7601 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7603 * inferiors.c (switch_to_thread): New function.
7605 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7607 * Makefile.in (SFILE): Add "common/job-control.c".
7608 (OBS): Add "job-control.o".
7610 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7612 * Makefile: Remove "@host_makefile_frag@".
7614 2017-05-05 Pedro Alves <palves@redhat.com>
7616 * configure: Regenerate.
7618 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7620 * configure: Regenerate.
7622 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7624 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7625 software_single_step change of return type to
7626 std::vector<CORE_ADDR>.
7627 * linux-low.c (install_software_single_step_breakpoints):
7629 * linux-low.h (install_software_single_step_breakpoints):
7632 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7634 * remote-utils.c: Include "gdb_termios.h" instead of
7636 * terminal.h: Delete file.
7638 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7640 * server.c: Include <vector>.
7641 <program_argv, wrapper_argv>: Convert to std::vector.
7642 (start_inferior): Rewrite function to use C++.
7643 (handle_v_run): Likewise. Update code that calculates the argv
7644 based on the vRun packet; use C++.
7645 (captured_main): Likewise.
7647 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7649 * server.c (handle_v_cont): Initialize thread_resume::thread
7652 2017-04-05 Pedro Alves <palves@redhat.com>
7654 * configure: Regenerate.
7656 2017-04-05 Pedro Alves <palves@redhat.com>
7658 * gdbreplay.c (sync_error): Constify.
7659 * linux-x86-low.c (push_opcode): Constify.
7661 2017-04-05 Pedro Alves <palves@redhat.com>
7663 * win32-low.c (get_child_debug_event)
7664 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7665 Report TARGET_WAITKIND_SPURIOUS instead.
7667 2017-04-05 Pedro Alves <palves@redhat.com>
7669 * remote-utils.c (remote_prepare, remote_open): Constify.
7670 * remote-utils.h (remote_prepare, remote_open): Constify.
7671 * server.c (captured_main): Constify 'port' handling.
7673 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7675 * Makefile.in (clean): Clear .deps.
7677 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7679 * .gitignore: Remove generated files, replace with wildcard.
7680 * (clean): Replace removal of generated files with wildcard.
7681 (version.c): Replace with...
7682 (version-generated.c): ...this.
7683 (xml-builtin.c): Replace with...
7684 (xml-builtin-generated.c): ...this.
7685 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7686 (%.c: *regformats*): Replace with...
7687 (%-generated.c: *regformats*): ...this.
7689 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7691 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7692 (xtensa_fill_gregset): Call collect_register_by_name for
7694 (xtensa_store_gregset): Call supply_register_by_name for
7697 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7699 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7700 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7701 (xtensa_store_gregset): Call supply_register for all registers in
7702 a0_regnum..a0_regnum + C0_NREGS range.
7704 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7706 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7707 (ax-ipa.o: ax.c): Remove.
7708 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7709 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7710 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7711 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7712 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7714 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7716 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7717 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7718 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7719 (errors-ipa.o: ../common/errors.c): Remove.
7720 (format-ipa.o: ../common/format.c): Remove.
7721 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7723 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7725 * Makefile.in (%-ipa.o: %.c): New rule.
7726 (tracepoint-ipa.o: tracepoint.c): Remove.
7727 (utils-ipa.o: utils.c): Remove.
7728 (remote-utils-ipa.o: remote-utils.c): Remove.
7729 (regcache-ipa.o: regcache.c): Remove.
7730 (i386-linux-ipa.o: i386-linux.c): Remove.
7731 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7732 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7733 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7734 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7735 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7736 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7737 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7738 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7739 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7740 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7741 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7742 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7743 (aarch64-ipa.o: aarch64.c): Remove.
7744 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7745 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7746 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7747 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7748 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7749 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7750 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7751 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7752 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7753 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7754 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7755 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7756 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7757 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7758 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7759 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7760 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7761 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7762 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7763 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7764 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7765 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7766 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7767 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7768 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7769 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7770 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7771 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7772 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7773 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7774 (tdesc-ipa.o: tdesc.c): Remove.
7775 (x32-linux-ipa.o: x32-linux.c): Remove.
7776 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7777 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7779 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7781 * Makefile.in (%.o: ../arch/%.c): New rule.
7782 (arm.o: ../arch/arm.c): Remove.
7783 (arm-linux.o: ../arch/arm-linux.c): Remove.
7784 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7785 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7787 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7789 * Makefile.in (%.o: ../nat/%.c): New rule.
7790 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7791 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7792 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7793 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7794 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7795 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7796 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7797 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7798 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7799 (linux-personality.o: ../nat/linux-personality.c): Remove.
7800 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7801 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7802 (x86-linux.o: ../nat/x86-linux.c): Remove.
7803 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7804 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7806 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7808 * Makefile.in (%.o: ../common/%.c): New rule.
7809 (signals.o: ../common/signals.c): Remove.
7810 (print-utils.o: ../common/print-utils.c): Remove.
7811 (rsp-low.o: ../common/rsp-low.c): Remove.
7812 (common-utils.o: ../common/common-utils.c): Remove.
7813 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7814 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7815 (vec.o: ../common/vec.c): Remove.
7816 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7817 (xml-utils.o: ../common/xml-utils.c): Remove.
7818 (ptid.o: ../common/ptid.c): Remove.
7819 (buffer.o: ../common/buffer.c): Remove.
7820 (format.o: ../common/format.c): Remove.
7821 (filestuff.o: ../common/filestuff.c): Remove.
7822 (agent.o: ../common/agent.c): Remove.
7823 (errors.o: ../common/errors.c): Remove.
7824 (environ.o: ../common/environ.c): Remove.
7825 (common-debug.o: ../common/common-debug.c): Remove.
7826 (cleanups.o: ../common/cleanups.c): Remove.
7827 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7828 (fileio.o: ../common/fileio.c): Remove.
7829 (common-regcache.o: ../common/common-regcache.c): Remove.
7830 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7831 (new-op.o: ../common/new-op.c): Remove.
7832 (btrace-common.o: ../common/btrace-common.c): Remove.
7834 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7836 * Makefile.in (%.o: ../target/%.c): New rule.
7837 (waitstatus.o: ../target/waitstatus.c): Remove.
7839 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7842 (%.c: ../regformats/%.dat,
7843 (%.c: ../regformats/arm/%.dat,
7844 (%.c: ../regformats/i386/%.dat,
7845 (%.c: ../regformats/rs6000/%.dat): New rules.
7846 (aarch64.c): Remove.
7847 (reg-arm.c): Remove.
7848 (arm-with-iwmmxt.c): Remove.
7849 (arm-with-vfpv2.c): Remove.
7850 (arm-with-vfpv3.c): Remove.
7851 (arm-with-neon.c): Remove.
7852 (reg-bfin.c): Remove.
7853 (reg-cris.c): Remove.
7854 (reg-crisv32.c): Remove.
7856 (i386-linux.c): Remove.
7857 (i386-avx.c): Remove.
7858 (i386-avx-linux.c): Remove.
7859 (i386-avx-avx512.c): Remove.
7860 (i386-avx-avx512-linux.c): Remove.
7861 (i386-mpx.c): Remove.
7862 (i386-mpx-linux.c): Remove.
7863 (i386-avx-mpx-avx512-pku.c): Remove.
7864 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7865 (i386-avx-mpx.c): Remove.
7866 (i386-avx-mpx-linux.c): Remove.
7867 (i386-mmx.c): Remove.
7868 (i386-mmx-linux.c): Remove.
7869 (reg-ia64.c): Remove.
7870 (reg-m32r.c): Remove.
7871 (reg-m68k.c): Remove.
7873 (mips-linux.c): Remove.
7874 (mips-dsp-linux.c): Remove.
7875 (mips64-linux.c): Remove.
7876 (mips64-dsp-linux.c): Remove.
7877 (nios2-linux.c): Remove.
7878 (powerpc-32.c): Remove.
7879 (powerpc-32l.c): Remove.
7880 (powerpc-altivec32l.c): Remove.
7881 (powerpc-cell32l.c): Remove.
7882 (powerpc-vsx32l.c): Remove.
7883 (powerpc-isa205-32l.c): Remove.
7884 (powerpc-isa205-altivec32l.c): Remove.
7885 (powerpc-isa205-vsx32l.c): Remove.
7886 (powerpc-e500l.c): Remove.
7887 (powerpc-64l.c): Remove.
7888 (powerpc-altivec64l.c): Remove.
7889 (powerpc-cell64l.c): Remove.
7890 (powerpc-vsx64l.c): Remove.
7891 (powerpc-isa205-64l.c): Remove.
7892 (powerpc-isa205-altivec64l.c): Remove.
7893 (powerpc-isa205-vsx64l.c): Remove.
7894 (s390-linux32.c): Remove.
7895 (s390-linux32v1.c): Remove.
7896 (s390-linux32v2.c): Remove.
7897 (s390-linux64.c): Remove.
7898 (s390-linux64v1.c): Remove.
7899 (s390-linux64v2.c): Remove.
7900 (s390-te-linux64.c): Remove.
7901 (s390-vx-linux64.c): Remove.
7902 (s390-tevx-linux64.c): Remove.
7903 (s390x-linux64.c): Remove.
7904 (s390x-linux64v1.c): Remove.
7905 (s390x-linux64v2.c): Remove.
7906 (s390x-te-linux64.c): Remove.
7907 (s390x-vx-linux64.c): Remove.
7908 (s390x-tevx-linux64.c): Remove.
7909 (tic6x-c64xp-linux.c): Remove.
7910 (tic6x-c64x-linux.c): Remove.
7911 (tic6x-c62x-linux.c): Remove.
7913 (reg-sparc64.c): Remove.
7914 (reg-spu.c): Remove.
7916 (amd64-linux.c): Remove.
7917 (amd64-avx.c): Remove.
7918 (amd64-avx-linux.c): Remove.
7919 (amd64-avx-avx512.c): Remove.
7920 (amd64-avx-avx512-linux.c): Remove.
7921 (amd64-mpx.c): Remove.
7922 (amd64-mpx-linux.c): Remove.
7923 (amd64-avx-mpx-avx512-pku.c): Remove.
7924 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
7925 (amd64-avx-mpx.c): Remove.
7926 (amd64-avx-mpx-linux.c): Remove.
7928 (x32-linux.c): Remove.
7929 (x32-avx.c): Remove.
7930 (x32-avx-linux.c): Remove.
7931 (x32-avx-avx512.c): Remove.
7932 (x32-avx-avx512-linux.c): Remove.
7933 (reg-xtensa.c): Remove.
7934 (reg-tilegx.c): Remove.
7935 (reg-tilegx32.c): Remove.
7937 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
7939 * Makefile.in (SFILES): Add "common/environ.c".
7940 (OBJS): Add "common/environ.h".
7942 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
7944 * configure.ac: Check if the fs_base and gs_base members of
7945 `struct user_regs_struct' exist.
7946 * config.in: Regenerated.
7947 * configure: Likewise.
7949 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
7951 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
7953 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
7954 (get_next_pcs_syscall_next_pc): Likewise.
7956 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
7958 * win32-i386-low.c: Fix incorrect reference to a couple source files.
7959 * nto-x86-low.c: Likewise.
7961 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
7963 * Makefile.in: Include disable-implicit-rules.mk.
7965 2016-11-23 Pedro Alves <palves@redhat.com>
7967 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
7968 (debug_vprintf): Use std::chrono::steady_clock instead of
7969 gettimeofday. Use '.' instead of ':'.
7970 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
7971 (get_timestamp): Use std::chrono::steady_clock instead of
7974 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7976 * Makefile.in: Fix whitespace formatting.
7978 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
7980 * Makefile.in (SFILES, OBS): Flatten list and order
7983 2016-11-23 Pedro Alves <palves@redhat.com>
7985 * event-loop.c (handle_file_event): Use warning.
7986 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
7987 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7990 2016-11-23 Pedro Alves <palves@redhat.com>
7992 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
7994 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
7995 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
7996 debug_printf and debug_flush for debug output.
7997 * server.c (handle_general_set): Likewise.
7998 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8001 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8003 * Makefile.in (.c.o): Replace rule with ...
8004 (%.o: %.c): ... this one.
8006 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8008 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8009 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8011 * configure.ac: Remove checks for the make program.
8012 * configure: Re-generate.
8014 2016-10-28 Pedro Alves <palves@redhat.com>
8016 * Makefile.in (CXX_DIALECT): Get from configure.
8017 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8018 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8019 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8020 * config.in: Regenerate.
8021 * configure: Regenerate.
8023 2016-10-27 Yao Qi <yao.qi@linaro.org>
8025 * linux-low.c (linux_supports_range_stepping): Return true if
8026 can_software_single_step return true.
8028 2016-10-27 Yao Qi <yao.qi@linaro.org>
8030 * inferiors.c (find_inferior_in_random): New function.
8031 * inferiors.h (find_inferior_in_random): Declare.
8032 * linux-low.c (linux_wait_for_event_filtered): Call
8033 find_inferior_in_random instead of find_inferior.
8035 2016-10-27 Yao Qi <yao.qi@linaro.org>
8037 * linux-low.c (linux_wait_1): If single-step breakpoints are
8038 inserted, remove them.
8040 2016-10-26 Pedro Alves <palves@redhat.com>
8042 * linux-low.c (handle_extended_wait): Link parent/child fork
8044 (linux_wait_1): Unlink them.
8045 (linux_set_resume_request): Ignore resume requests for
8046 already-resumed and unhandled fork child threads.
8047 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8048 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8050 (handle_v_requests) <vCont>: Don't call require_running.
8051 * server.h (in_queued_stop_replies): New declaration.
8053 2016-10-24 Yao Qi <yao.qi@linaro.org>
8056 * linux-aarch64-low.c (append_insns): Cast the return value to
8059 2016-10-10 Yao Qi <yao.qi@linaro.org>
8061 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8063 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8065 * target.c (target_supports_multi_process): New function, moved
8067 * target.h (target_supports_multi_process): ... here. Remove
8070 2016-10-05 Tom Tromey <tom@tromey.com>
8073 * tracepoint.c (handle_tracepoint_bkpts): Check
8074 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8076 2016-10-05 Yao Qi <yao.qi@linaro.org>
8078 * configure.srv: Update the path of arm-*.xml files.
8080 2016-10-05 Terry Guo <terry.guo@arm.com>
8081 Yao Qi <yao.qi@linaro.org>
8083 * Makefile.in: Adjust the path of rules.
8084 * configure.srv: Update the path of xml files.
8085 * regformats/arm-with-iwmmxt.dat: Regenerated.
8086 * regformats/arm-with-neon.dat: Likewise.
8087 * regformats/arm-with-vfpv2.dat: Likewise.
8088 * regformats/arm-with-vfpv3.dat Likewise.
8090 2016-09-30 Yao Qi <yao.qi@linaro.org>
8093 * target.c (target_stop_and_wait): Don't call
8094 target_continue_no_signal, use resume_stop instead.
8096 2016-09-26 Yao Qi <yao.qi@linaro.org>
8098 * linux-low.c (linux_wait_1): Call debug_exit.
8100 2016-09-23 Pedro Alves <palves@redhat.com>
8102 * Makefile.in (SFILES): Add common/new-op.c.
8103 (OBS): Add common/new-op.o.
8104 (new-op.o): New rule.
8106 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8108 * .gitinore: Ignore more files.
8110 2016-09-21 Yao Qi <yao.qi@linaro.org>
8112 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8115 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8117 * server.c (start_inferior): Call target_mourn_inferior instead of
8118 mourn_inferior; pass ptid_t argument to it.
8120 (handle_target_event): Likewise.
8121 * target.c (target_mourn_inferior): New function.
8122 * target.h (mourn_inferior): Delete macro.
8124 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8126 * linux-low.c (lwp_is_stepping): New function.
8128 2016-09-06 Carl Love <cel@us.ibm.com>
8130 * server.c (start_inferior): Fixed comment, requested comment change
8131 didn't get updated correctly. Removed reference to ptrace () call as
8132 it is only true on Linux systems.
8134 2016-09-06 Carl Love <cel@us.ibm.com>
8136 * server.c (start_inferior): Do not call
8137 function target_post_create_inferior () if the
8138 inferior process has already exited.
8140 2016-09-05 Pedro Alves <palves@redhat.com>
8142 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8143 (COMPILE.pre, CC_LD): Use CXX directly.
8144 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8145 * acinclude.m4: Don't include build-with-cxx.m4.
8146 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8147 * configure: Regenerate.
8149 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8152 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8153 call writing data to own_buf.
8155 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8157 * target.c (mywait): Call target_wait instead of
8159 (target_wait): New function.
8161 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8163 * server.c (start_inferior): New variable 'ptid'. Replace calls
8164 to the_target->resume by target_continue{,_no_signal}, depending
8166 * target.c (target_stop_and_wait): Call target_continue_no_signal
8167 instead of the_target->resume.
8168 (target_continue): New function.
8170 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8172 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8174 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8177 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8179 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8180 * linux-arm-low.c (ps_get_thread_area): Likewise.
8181 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8182 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8183 * linux-mips-low.c (ps_get_thread_area): Likewise.
8184 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8185 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8186 * linux-x86-low.c (ps_get_thread_area): Likewise.
8187 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8189 2016-08-19 Pedro Alves <palves@redhat.com>
8191 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8193 2016-08-19 Pedro Alves <palves@redhat.com>
8195 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8196 comment. Use memcpy instead of casting through unsigned long.
8198 2016-08-19 Pedro Alves <palves@redhat.com>
8200 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8201 allocating around 0x80000000.
8203 2016-08-19 Pedro Alves <palves@redhat.com>
8206 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8207 (x32-avx512-linux-ipa.o): New rules.
8208 * configure.ac (x86_64-*-linux*): New x32 check.
8209 * configure.srv (ipa_x32_linux_regobj): New.
8210 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8211 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8213 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8215 * configure: Regenerate.
8217 2016-08-09 Pedro Alves <palves@redhat.com>
8220 * Makefile.in (OBS): Add signals-state-save-restore.o.
8221 (signals-state-save-restore.o): New rule.
8222 * config.in: Regenerate.
8223 * configure: Regenerate.
8224 * linux-low.c: Include "signals-state-save-restore.h".
8225 (linux_create_inferior): Call
8226 restore_original_signals_state.
8227 * server.c: Include "dispositions-save-restore.h".
8228 (captured_main): Call save_original_signals_state.
8230 2016-08-05 Pedro Alves <palves@redhat.com>
8232 * configure: Regenerate.
8234 2016-08-04 Yao Qi <yao.qi@linaro.org>
8236 * linux-low.c (regsets_fetch_inferior_registers): Check
8237 errno is ESRCH or not.
8239 2016-08-02 Yao Qi <yao.qi@linaro.org>
8241 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8242 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8243 (thread_db_load_search): Update.
8244 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8245 td_ta_set_event and td_ta_event_getmsg.
8247 2016-07-26 Pedro Alves <palves@redhat.com>
8250 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8251 of unsigned long for 64-bit registers and use uint32_t instead of
8252 unsigned int for 32-bit registers.
8254 2016-07-26 Pedro Alves <palves@redhat.com>
8256 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8259 2016-07-21 Tom Tromey <tom@tromey.com>
8261 * configure: Rebuild.
8263 2016-07-21 Yao Qi <yao.qi@linaro.org>
8265 * mem-break.c (find_gdb_breakpoint): Cast bp to
8266 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8268 2016-07-21 Yao Qi <yao.qi@linaro.org>
8270 * server.c (handle_v_requests): Support s and S actions
8271 if target_supports_software_single_step return true.
8273 2016-07-21 Yao Qi <yao.qi@linaro.org>
8275 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8276 is resume_step, call maybe_hw_step.
8277 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8279 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8281 (proceed_one_lwp): If resume request is resume_step, install
8282 reinsert breakpoints and call maybe_hw_step.
8284 2016-07-21 Yao Qi <yao.qi@linaro.org>
8286 * linux-low.c (proceed_one_lwp): Declare.
8287 (linux_resume_one_thread): Remove local variable 'step'.
8288 Lift code enqueue signal. Call proceed_one_lwp instead of
8289 linux_resume_one_lwp.
8291 2016-07-21 Yao Qi <yao.qi@linaro.org>
8293 * linux-low.c (linux_resume_one_thread): Call
8294 enqueue_pending_signal.
8296 2016-07-21 Yao Qi <yao.qi@linaro.org>
8298 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8299 * inferiors.c (do_restore_current_thread_cleanup): New function.
8300 (make_cleanup_restore_current_thread): Likewise.
8301 * linux-low.c (install_software_single_step_breakpoints): Call
8302 make_cleanup_restore_current_thread. Switch current_thread to
8305 2016-07-21 Yao Qi <yao.qi@linaro.org>
8307 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8308 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8309 (clone_one_breakpoint): Likewise.
8310 (delete_reinsert_breakpoints): Change parameter to thread.
8312 (has_reinsert_breakpoints): Likewise.
8313 (uninsert_reinsert_breakpoints): Likewise.
8314 (reinsert_reinsert_breakpoints): Likewise.
8315 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8316 (delete_reinsert_breakpoints): Likewise.
8317 (reinsert_reinsert_breakpoints): Likewise.
8318 (uninsert_reinsert_breakpoints): Likewise.
8319 (has_reinsert_breakpoints): Likewise.
8321 2016-07-21 Yao Qi <yao.qi@linaro.org>
8323 * inferiors.c (get_thread_process): Make parameter const.
8324 * inferiors.h (get_thread_process): Update declaration.
8325 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8326 Add new parameters child_thread and parent_thread. Callers
8328 * mem-break.h (clone_all_breakpoints): Update declaration.
8330 2016-07-21 Yao Qi <yao.qi@linaro.org>
8332 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8333 <command_list, handler>: Remove.
8334 (struct gdb_breakpoint): New.
8335 (struct other_breakpoint): New.
8336 (struct reinsert_breakpoint): New.
8337 (is_gdb_breakpoint): New function.
8338 (any_persistent_commands): Update command_list if
8339 is_gdb_breakpoint returns true.
8340 (set_breakpoint): Create breakpoints according to their types.
8341 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8342 (set_gdb_breakpoint_1): Likewise.
8343 (set_gdb_breakpoint): Likewise.
8344 (clear_breakpoint_conditions): Change parameter type to
8345 'struct gdb_breakpoint *'.
8346 (clear_breakpoint_commands): Likewise.
8347 (clear_breakpoint_conditions_and_commands): Likewise.
8348 (add_condition_to_breakpoint): Likewise.
8349 (add_breakpoint_condition): Likewise.
8350 (add_commands_to_breakpoint): Likewise.
8351 (check_breakpoints): Check other_breakpoint.
8352 (clone_one_breakpoint): Clone breakpopint according to its type.
8353 * mem-break.h (struct gdb_breakpoint): Declare.
8354 (set_gdb_breakpoint): Update declaration.
8355 (clear_breakpoint_conditions_and_commands): Likewise.
8356 (add_breakpoint_condition): Likewise.
8357 (add_breakpoint_commands): Likewise.
8358 * server.c (process_point_options): Change parameter type to
8359 'struct gdb_breakpoint *'.
8361 2016-07-21 Yao Qi <yao.qi@linaro.org>
8363 * mem-break.c (set_breakpoint_at): Rename it to ...
8364 (set_breakpoint_type_at): ... it.
8365 (set_breakpoint_at): Call set_breakpoint_type_at.
8366 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8367 * mem-break.h (set_breakpoint_at): Update comments.
8369 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8371 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8373 (nios2_store_gregset): Likewise.
8375 2016-07-01 Pedro Alves <palves@redhat.com>
8376 Antoine Tremblay <antoine.tremblay@ericsson.com>
8378 * linux-low.c: Change interface to take the target lwp_info
8379 pointer directly and return void. Handle detaching from a zombie
8381 (linux_detach_lwp_callback): New function.
8382 (linux_detach): Detach from the leader thread after detaching from
8385 2016-06-28 Yao Qi <yao.qi@linaro.org>
8387 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8388 for variable new_offset.
8389 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8390 (aarch64_ftrace_insn_reloc_cb): Likewise.
8391 (aarch64_ftrace_insn_reloc_tb): Likewise.
8392 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8393 PRIx64 instead of PRIx32.
8395 2016-06-28 Yao Qi <yao.qi@linaro.org>
8397 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8398 (the_low_target): Install arm_get_syscall_trapinfo.
8400 2016-06-28 Yao Qi <yao.qi@linaro.org>
8402 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8404 (the_low_target): Install aarch64_get_syscall_trapinfo.
8406 2016-06-28 Yao Qi <yao.qi@linaro.org>
8408 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8410 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8411 Remove parameter sysno.
8412 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8415 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8417 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8418 (s390_emit_ne_goto): Likewise.
8419 (s390_emit_lt_goto): Likewise.
8420 (s390_emit_le_goto): Likewise.
8421 (s390_emit_gt_goto): Likewise.
8422 (s390_emit_ge_goto): Likewise.
8423 (s390x_emit_eq_goto): Likewise.
8424 (s390x_emit_ne_goto): Likewise.
8425 (s390x_emit_lt_goto): Likewise.
8426 (s390x_emit_le_goto): Likewise.
8427 (s390x_emit_gt_goto): Likewise.
8428 (s390x_emit_ge_goto): Likewise.
8429 (s390_emit_ops_impl): Mark variable static.
8430 (s390x_emit_ops): Likewise.
8432 2016-06-17 Yao Qi <yao.qi@linaro.org>
8434 * linux-low.c (handle_extended_wait): Call
8435 uninsert_reinsert_breakpoints for the parent process. Remove
8436 reinsert breakpoints from the child process. Reinsert them to
8437 the parent process when vfork is done.
8438 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8439 (reinsert_reinsert_breakpoints): New function.
8440 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8441 (reinsert_reinsert_breakpoints): Declare.
8443 2016-06-17 Yao Qi <yao.qi@linaro.org>
8445 * linux-low.c (handle_extended_wait): If the parent is doing
8446 step-over, remove the reinsert breakpoints from the forked child.
8448 2016-06-17 Yao Qi <yao.qi@linaro.org>
8450 * linux-low.c (unsuspend_all_lwps): Declare.
8451 (linux_low_filter_event): If thread exited, call finish_step_over.
8452 If step-over is finished, unsuspend other threads.
8454 2016-06-17 Yao Qi <yao.qi@linaro.org>
8456 * linux-low.c (linux_resume_one_lwp_throw): Assert
8457 has_reinsert_breakpoints returns false.
8458 * mem-break.c (delete_disabled_breakpoints): Assert
8459 bp type isn't reinsert_breakpoint.
8461 2016-06-17 Yao Qi <yao.qi@linaro.org>
8463 * linux-low.c (maybe_hw_step): New function.
8464 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8465 (finish_step_over): Switch current_thread to lwp temporarily,
8466 and assert has_reinsert_breakpoints returns true.
8467 (proceed_one_lwp): Call maybe_hw_step.
8468 * mem-break.c (has_reinsert_breakpoints): New function.
8469 * mem-break.h (has_reinsert_breakpoints): Declare.
8471 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8473 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8475 2016-05-17 Yao Qi <yao.qi@linaro.org>
8477 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8478 instead of find_inferior.
8480 2016-05-05 Yao Qi <yao.qi@linaro.org>
8482 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8483 Initialize res to zero.
8485 2016-05-05 Yao Qi <yao.qi@linaro.org>
8487 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8490 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8492 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8493 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8494 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8496 2016-04-28 Par Olsson <par.olsson@windriver.com>
8497 Simon Marchi <simon.marchi@ericsson.com>
8499 * tracepoint.c (write_inferior_int8): New function.
8500 (cmd_qtenable_disable): Write enable flag using
8501 write_inferior_int8.
8503 2016-04-25 Yao Qi <yao.qi@linaro.org>
8505 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8506 (need_step_over_p): Return zero if the LWP has pending signals
8507 can be delivered on software single step target.
8509 2016-04-25 Yao Qi <yao.qi@linaro.org>
8511 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8512 return instead of error.
8514 2016-04-22 Yao Qi <yao.qi@linaro.org>
8516 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8519 2016-04-22 Yao Qi <yao.qi@linaro.org>
8521 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8522 signal when stepping over breakpoint with software single
8525 2016-04-21 Pedro Alves <palves@redhat.com>
8527 * linux-s390-low.c (s390_collect_ptrace_register)
8528 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8530 (s390_check_regset): Use void * instead of gdb_byte *.
8532 2016-04-20 Pedro Alves <palves@redhat.com>
8534 * configure: Renegerate.
8536 2016-04-20 Yao Qi <yao.qi@linaro.org>
8538 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8539 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8541 (arm_store_gregset): Likewise.
8543 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8545 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8546 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8547 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8548 (amd64-avx-mpx-linux.c): New rules.
8549 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8550 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8551 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8552 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8553 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8554 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8555 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8556 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8557 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8558 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8559 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8560 * linux-x86-low.c (x86_linux_read_description): Add case for
8561 X86_XSTATE_AVX_MPX_MASK.
8562 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8563 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8564 init_registers_i386_avx_mpx_linux.
8565 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8566 (initialize_low_tracepoint): Call
8567 init_registers_i386_avx_mpx_linux.
8568 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8569 (initialize_low_tracepoint): Call
8570 init_registers_amd64_avx_mpx_linux.
8571 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8572 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8573 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8576 2016-04-18 Pedro Alves <palves@redhat.com>
8578 * configure: Regenerate.
8580 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8582 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8583 (aarch64_emit_sub): Likewise.
8585 2016-04-12 Pedro Alves <palves@redhat.com>
8587 * utils.c (prepare_to_throw_exception): Delete.
8589 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8591 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8593 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8595 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8597 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8599 * linux-aarch64-ipa.c: Add <elf.h> include.
8600 * linux-ppc-ipa.c: Add <elf.h> include.
8601 * linux-s390-ipa.c: Add <elf.h> include.
8603 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8605 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8606 (get_raw_reg_ptr): Likewise.
8607 (get_trace_state_variable_value_ptr): Likewise.
8608 (set_trace_state_variable_value_ptr): Likewise.
8609 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8612 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8613 Marcin Kościelnicki <koriakin@0x04.net>
8616 * linux-ppc-low.c (emit_insns): New function.
8617 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8618 (ppc_emit_prologue): New function.
8619 (ppc_emit_epilogue): New function.
8620 (ppc_emit_add): New function.
8621 (ppc_emit_sub): New function.
8622 (ppc_emit_mul): New function.
8623 (ppc_emit_lsh): New function.
8624 (ppc_emit_rsh_signed): New function.
8625 (ppc_emit_rsh_unsigned): New function.
8626 (ppc_emit_ext): New function.
8627 (ppc_emit_zero_ext): New function.
8628 (ppc_emit_log_not): New function.
8629 (ppc_emit_bit_and): New function.
8630 (ppc_emit_bit_or): New function.
8631 (ppc_emit_bit_xor): New function.
8632 (ppc_emit_bit_not): New function.
8633 (ppc_emit_equal): New function.
8634 (ppc_emit_less_signed): New function.
8635 (ppc_emit_less_unsigned): New function.
8636 (ppc_emit_ref): New function.
8637 (ppc_emit_const): New function.
8638 (ppc_emit_reg): New function.
8639 (ppc_emit_pop): New function.
8640 (ppc_emit_stack_flush): New function.
8641 (ppc_emit_swap): New function.
8642 (ppc_emit_stack_adjust): New function.
8643 (ppc_emit_call): New function.
8644 (ppc_emit_int_call_1): New function.
8645 (ppc_emit_void_call_2): New function.
8646 (ppc_emit_if_goto): New function.
8647 (ppc_emit_goto): New function.
8648 (ppc_emit_eq_goto): New function.
8649 (ppc_emit_ne_goto): New function.
8650 (ppc_emit_lt_goto): New function.
8651 (ppc_emit_le_goto): New function.
8652 (ppc_emit_gt_goto): New function.
8653 (ppc_emit_ge_goto): New function.
8654 (ppc_write_goto_address): New function.
8655 (ppc_emit_ops_impl): New static variable.
8656 (ppc64v1_emit_prologue): New function.
8657 (ppc64v2_emit_prologue): New function.
8658 (ppc64_emit_epilogue): New function.
8659 (ppc64_emit_add): New function.
8660 (ppc64_emit_sub): New function.
8661 (ppc64_emit_mul): New function.
8662 (ppc64_emit_lsh): New function.
8663 (ppc64_emit_rsh_signed): New function.
8664 (ppc64_emit_rsh_unsigned): New function.
8665 (ppc64_emit_ext): New function.
8666 (ppc64_emit_zero_ext): New function.
8667 (ppc64_emit_log_not): New function.
8668 (ppc64_emit_bit_and): New function.
8669 (ppc64_emit_bit_or): New function.
8670 (ppc64_emit_bit_xor): New function.
8671 (ppc64_emit_bit_not): New function.
8672 (ppc64_emit_equal): New function.
8673 (ppc64_emit_less_signed): New function.
8674 (ppc64_emit_less_unsigned): New function.
8675 (ppc64_emit_ref): New function.
8676 (ppc64_emit_const): New function.
8677 (ppc64v1_emit_reg): New function.
8678 (ppc64v2_emit_reg): New function.
8679 (ppc64_emit_pop): New function.
8680 (ppc64_emit_stack_flush): New function.
8681 (ppc64_emit_swap): New function.
8682 (ppc64v1_emit_call): New function.
8683 (ppc64v2_emit_call): New function.
8684 (ppc64v1_emit_int_call_1): New function.
8685 (ppc64v2_emit_int_call_1): New function.
8686 (ppc64v1_emit_void_call_2): New function.
8687 (ppc64v2_emit_void_call_2): New function.
8688 (ppc64_emit_if_goto): New function.
8689 (ppc64_emit_eq_goto): New function.
8690 (ppc64_emit_ne_goto): New function.
8691 (ppc64_emit_lt_goto): New function.
8692 (ppc64_emit_le_goto): New function.
8693 (ppc64_emit_gt_goto): New function.
8694 (ppc64_emit_ge_goto): New function.
8695 (ppc64v1_emit_ops_impl): New static variable.
8696 (ppc64v2_emit_ops_impl): New static variable.
8697 (ppc_emit_ops): New function.
8698 (linux_low_target): Wire in ppc_emit_ops.
8700 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8701 Marcin Kościelnicki <koriakin@0x04.net>
8704 * Makefile.in: Add powerpc-*-ipa.o
8705 * configure.srv: Add ipa_obj for powerpc*-linux.
8706 * linux-ppc-ipa.c: New file.
8707 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8709 (PPC_FIELD): New macro.
8710 (PPC_SEXT): New macro.
8711 (PPC_OP6): New macro.
8712 (PPC_BO): New macro.
8713 (PPC_LI): New macro.
8714 (PPC_BD): New macro.
8715 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8716 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8717 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8718 (ppc_get_thread_area): New function.
8719 (is_elfv2_inferior): New function.
8720 (gen_ds_form): New function.
8721 (GEN_STD): New macro.
8722 (GEN_STDU): New macro.
8723 (GEN_LD): New macro.
8724 (GEN_LDU): New macro.
8725 (gen_d_form): New function.
8726 (GEN_ADDI): New macro.
8727 (GEN_ADDIS): New macro.
8728 (GEN_LI): New macro.
8729 (GEN_LIS): New macro.
8730 (GEN_ORI): New macro.
8731 (GEN_ORIS): New macro.
8732 (GEN_LWZ): New macro.
8733 (GEN_STW): New macro.
8734 (GEN_STWU): New macro.
8735 (gen_xfx_form): New function.
8736 (GEN_MFSPR): New macro.
8737 (GEN_MTSPR): New macro.
8738 (GEN_MFCR): New macro.
8739 (GEN_MTCR): New macro.
8740 (GEN_SYNC): New macro.
8741 (GEN_LWSYNC): New macro.
8742 (gen_x_form): New function.
8743 (GEN_OR): New macro.
8744 (GEN_MR): New macro.
8745 (GEN_LWARX): New macro.
8746 (GEN_STWCX): New macro.
8747 (GEN_CMPW): New macro.
8748 (gen_md_form): New function.
8749 (GEN_RLDICL): New macro.
8750 (GEN_RLDICR): New macro.
8751 (gen_i_form): New function.
8753 (GEN_BL): New macro.
8754 (gen_b_form): New function.
8755 (GEN_BNE): New macro.
8756 (GEN_LOAD): New macro.
8757 (GEN_STORE): New macro.
8758 (gen_limm): New function.
8759 (gen_atomic_xchg): New function.
8760 (gen_call): New function.
8761 (ppc_relocate_instruction): New function.
8762 (ppc_install_fast_tracepoint_jump_pad): New function.
8763 (ppc_get_min_fast_tracepoint_insn_len): New function.
8764 (ppc_get_ipa_tdesc_idx): New function.
8765 (the_low_target): Wire in the new functions.
8766 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8768 * linux-ppc-tdesc.h: New file.
8770 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8772 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8773 (alloc_jump_pad_buffer): New function.
8774 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8775 (alloc_jump_pad_buffer): New function.
8776 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8777 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8778 (alloc_jump_pad_buffer): New function.
8779 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8780 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8781 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8782 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8784 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8786 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8787 * linux-amd64-ipa.c: Likewise.
8788 * linux-i386-ipa.c: Likewise.
8789 * linux-s390-ipa.c: Likewise.
8790 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8791 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8792 set_trace_state_variable_value_ptr.
8793 (struct ipa_sym_addresses): Likewise.
8794 (symbol_list): Likewise.
8795 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8796 accessing gdb_collect directly.
8797 (gdb_collect_ptr_type): New typedef.
8798 (get_raw_reg_ptr_type): New typedef.
8799 (get_trace_state_variable_value_ptr_type): New typedef.
8800 (set_trace_state_variable_value_ptr_type): New typedef.
8801 (gdb_collect_ptr): New global.
8802 (get_raw_reg_ptr): New global.
8803 (get_trace_state_variable_value_ptr): New global.
8804 (set_trace_state_variable_value_ptr): New global.
8805 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8806 accessing get_raw_reg directly.
8807 (get_get_tsv_func_addr): Likewise for
8808 get_trace_state_variable_value_ptr.
8809 (get_set_tsv_func_addr): Likewise for
8810 set_trace_state_variable_value_ptr.
8811 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8813 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8815 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8817 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8819 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8821 (relocate_instruction): Remove own_buf.
8822 * server.c (own_buf): Make global.
8823 (handle_v_requests): Make global.
8824 * server.h (own_buf): New declaration.
8825 (handle_v_requests): New prototype.
8827 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8830 * linux-s390-low.c (add_insns): New function.
8831 (s390_emit_prologue): New function.
8832 (s390_emit_epilogue): New function.
8833 (s390_emit_add): New function.
8834 (s390_emit_sub): New function.
8835 (s390_emit_mul): New function.
8836 (s390_emit_lsh): New function.
8837 (s390_emit_rsh_signed): New function.
8838 (s390_emit_rsh_unsigned): New function.
8839 (s390_emit_ext): New function.
8840 (s390_emit_log_not): New function.
8841 (s390_emit_bit_and): New function.
8842 (s390_emit_bit_or): New function.
8843 (s390_emit_bit_xor): New function.
8844 (s390_emit_bit_not): New function.
8845 (s390_emit_equal): New function.
8846 (s390_emit_less_signed): New function.
8847 (s390_emit_less_unsigned): New function.
8848 (s390_emit_ref): New function.
8849 (s390_emit_if_goto): New function.
8850 (s390_emit_goto): New function.
8851 (s390_write_goto_address): New function.
8852 (s390_emit_litpool): New function.
8853 (s390_emit_const): New function.
8854 (s390_emit_call): New function.
8855 (s390_emit_reg): New function.
8856 (s390_emit_pop): New function.
8857 (s390_emit_stack_flush): New function.
8858 (s390_emit_zero_ext): New function.
8859 (s390_emit_swap): New function.
8860 (s390_emit_stack_adjust): New function.
8861 (s390_emit_set_r2): New function.
8862 (s390_emit_int_call_1): New function.
8863 (s390_emit_void_call_2): New function.
8864 (s390_emit_eq_goto): New function.
8865 (s390_emit_ne_goto): New function.
8866 (s390_emit_lt_goto): New function.
8867 (s390_emit_le_goto): New function.
8868 (s390_emit_gt_goto): New function.
8869 (s390_emit_ge_goto): New function.
8870 (s390x_emit_prologue): New function.
8871 (s390x_emit_epilogue): New function.
8872 (s390x_emit_add): New function.
8873 (s390x_emit_sub): New function.
8874 (s390x_emit_mul): New function.
8875 (s390x_emit_lsh): New function.
8876 (s390x_emit_rsh_signed): New function.
8877 (s390x_emit_rsh_unsigned): New function.
8878 (s390x_emit_ext): New function.
8879 (s390x_emit_log_not): New function.
8880 (s390x_emit_bit_and): New function.
8881 (s390x_emit_bit_or): New function.
8882 (s390x_emit_bit_xor): New function.
8883 (s390x_emit_bit_not): New function.
8884 (s390x_emit_equal): New function.
8885 (s390x_emit_less_signed): New function.
8886 (s390x_emit_less_unsigned): New function.
8887 (s390x_emit_ref): New function.
8888 (s390x_emit_if_goto): New function.
8889 (s390x_emit_const): New function.
8890 (s390x_emit_call): New function.
8891 (s390x_emit_reg): New function.
8892 (s390x_emit_pop): New function.
8893 (s390x_emit_stack_flush): New function.
8894 (s390x_emit_zero_ext): New function.
8895 (s390x_emit_swap): New function.
8896 (s390x_emit_stack_adjust): New function.
8897 (s390x_emit_int_call_1): New function.
8898 (s390x_emit_void_call_2): New function.
8899 (s390x_emit_eq_goto): New function.
8900 (s390x_emit_ne_goto): New function.
8901 (s390x_emit_lt_goto): New function.
8902 (s390x_emit_le_goto): New function.
8903 (s390x_emit_gt_goto): New function.
8904 (s390x_emit_ge_goto): New function.
8905 (s390_emit_ops): New function.
8906 (struct linux_target_ops): Fill in emit_ops hook.
8908 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8911 * Makefile.in: Add s390 IPA files.
8912 * configure.srv: Build IPA for s390.
8913 * linux-s390-ipa.c: New file.
8914 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
8915 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
8916 (tdesc_s390_linux32): Likewise.
8917 (init_registers_s390_linux32v1): Likewise.
8918 (tdesc_s390_linux32v1): Likewise.
8919 (init_registers_s390_linux32v2): Likewise.
8920 (tdesc_s390_linux32v2): Likewise.
8921 (init_registers_s390_linux64): Likewise.
8922 (tdesc_s390_linux64): Likewise.
8923 (init_registers_s390_linux64v1): Likewise.
8924 (tdesc_s390_linux64v1): Likewise.
8925 (init_registers_s390_linux64v2): Likewise.
8926 (tdesc_s390_linux64v2): Likewise.
8927 (init_registers_s390_te_linux64): Likewise.
8928 (tdesc_s390_te_linux64): Likewise.
8929 (init_registers_s390_vx_linux64): Likewise.
8930 (tdesc_s390_vx_linux64): Likewise.
8931 (init_registers_s390_tevx_linux64): Likewise.
8932 (tdesc_s390_tevx_linux64): Likewise.
8933 (init_registers_s390x_linux64): Likewise.
8934 (tdesc_s390x_linux64): Likewise.
8935 (init_registers_s390x_linux64v1): Likewise.
8936 (tdesc_s390x_linux64v1): Likewise.
8937 (init_registers_s390x_linux64v2): Likewise.
8938 (tdesc_s390x_linux64v2): Likewise.
8939 (init_registers_s390x_te_linux64): Likewise.
8940 (tdesc_s390x_te_linux64): Likewise.
8941 (init_registers_s390x_vx_linux64): Likewise.
8942 (tdesc_s390x_vx_linux64): Likewise.
8943 (init_registers_s390x_tevx_linux64): Likewise.
8944 (tdesc_s390x_tevx_linux64): Likewise.
8945 (have_hwcap_s390_vx): New static variable.
8946 (s390_arch_setup): Fill have_hwcap_s390_vx.
8947 (s390_get_thread_area): New function.
8948 (s390_ft_entry_gpr_esa): New const.
8949 (s390_ft_entry_gpr_zarch): New const.
8950 (s390_ft_entry_misc): New const.
8951 (s390_ft_entry_fr): New const.
8952 (s390_ft_entry_vr): New const.
8953 (s390_ft_main_31): New const.
8954 (s390_ft_main_64): New const.
8955 (s390_ft_exit_fr): New const.
8956 (s390_ft_exit_vr): New const.
8957 (s390_ft_exit_misc): New const.
8958 (s390_ft_exit_gpr_esa): New const.
8959 (s390_ft_exit_gpr_zarch): New const.
8960 (append_insns): New function.
8961 (s390_relocate_instruction): New function.
8962 (s390_install_fast_tracepoint_jump_pad): New function.
8963 (s390_get_min_fast_tracepoint_insn_len): New function.
8964 (s390_get_ipa_tdesc_idx): New function.
8965 (struct linux_target_ops): Wire in the above functions.
8966 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
8967 * linux-s390-tdesc.h: New file.
8969 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8971 * linux-s390-low.c (s390_supports_tracepoints): New function.
8972 (struct linux_target_ops): Fill supports_tracepoints hook.
8974 2016-03-18 Yao Qi <yao.qi@linaro.org>
8976 * linux-low.c (lwp_signal_can_be_delivered): New function.
8977 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
8979 2016-03-18 Yao Qi <yao.qi@linaro.org>
8981 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
8982 0 if signal is enqueued. Remove 'signal' from one debugging
8983 message. Move one debugging message to some lines below.
8984 Remove code setting 'signal' to 0.
8986 2016-03-18 Yao Qi <yao.qi@linaro.org>
8988 * linux-low.c (linux_low_filter_event): Remove redundant
8989 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
8991 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
8993 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
8994 (struct linux_target_ops): Wire in the above.
8996 2016-03-03 Yao Qi <yao.qi@linaro.org>
8998 * linux-low.c: Update comments to start_step_over.
9000 2016-03-03 Yao Qi <yao.qi@linaro.org>
9003 * linux-low.c (handle_extended_wait): Set child suspended
9004 if event_lwp->bp_reinsert isn't zero.
9006 2016-03-02 Yao Qi <yao.qi@linaro.org>
9008 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9009 enqueue_pending_signal.
9011 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9013 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9016 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9018 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9019 (s390_regmap_3264) [!__s390x__]: New global.
9020 (s390_collect_ptrace_register): Skip map entries containing -1.
9021 (s390_supply_ptrace_register): Ditto.
9022 (s390_fill_gprs_high): New function.
9023 (s390_store_gprs_high): New function.
9024 (s390_regsets): Add NT_S390_HIGH_GPRS.
9025 (s390_get_hwcap): Enable on 31-bit.
9026 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9027 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9028 Detect NT_S390_HIGH_GPRS.
9029 (s390_usrregs_info_3264): Enable on 31-bit.
9030 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9031 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9033 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9036 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9037 * configure.srv: Ditto.
9038 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9039 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9040 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9041 (init_registers_amd64_linux): Remove prototype.
9042 (tdesc_amd64_linux): Remove declaration.
9043 (get_ipa_tdesc): New function.
9044 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9045 initialize remaining tdescs.
9046 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9047 (init_registers_i386_linux): Remove prototype.
9048 (tdesc_i386_linux): Remove declaration.
9049 (get_ipa_tdesc): New function.
9050 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9051 initialize remaining tdescs.
9052 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9053 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9054 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9055 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9056 (x86_get_ipa_tdesc_idx): New function.
9057 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9058 * linux-x86-tdesc.h: New file.
9059 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9060 (target_get_ipa_tdesc_idx): New macro.
9061 * tracepoint.c (ipa_tdesc_idx): New macro.
9062 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9063 (symbol_list): Add ipa_tdesc_idx.
9064 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9065 (ipa_tdesc): Remove.
9066 (ipa_tdesc_idx): New variable.
9067 (get_context_regcache): Use get_ipa_tdesc.
9068 (gdb_collect): Ditto.
9070 * tracepoint.h (get_ipa_tdesc): New prototype.
9071 (ipa_tdesc): Remove.
9073 2016-02-24 Pedro Alves <palves@redhat.com>
9075 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9076 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9077 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9078 Factor out common code between the USE_SIGTRAP_SIGINFO and
9079 !USE_SIGTRAP_SIGINFO blocks.
9080 (linux_low_filter_event): Call save_stop_reason instead of
9081 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9083 (linux_wait_1): Update comments.
9085 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9087 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9088 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9089 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9090 ppc_insert_point, ppc_remove_point.
9092 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9094 * linux-s390-low.c (s390_supports_z_point_type): New function.
9095 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9097 2016-02-16 Yao Qi <yao.qi@linaro.org>
9099 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9100 PC. Get pc from regcache_read_pc.
9102 2016-02-12 Yao Qi <yao.qi@linaro.org>
9104 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9105 or linux_get_pc_32bit.
9106 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9108 2016-02-12 Yao Qi <yao.qi@linaro.org>
9110 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9111 arm_linux_get_next_pcs_fixup.
9113 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9115 * tracepoint.c (x_tracepoint_action_download): Change
9116 write_inferior_data_ptr to write_inferior_data_pointer.
9117 (cmd_qtstart): Likewise.
9118 (write_inferior_data_ptr): Remove.
9119 (download_agent_expr): Change write_inferior_data_ptr to
9120 write_inferior_data_pointer.
9121 (download_tracepoint_1): Likewise.
9122 (download_tracepoint): Likewise.
9123 (download_trace_state_variables): Likewise.
9125 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9126 Marcin Kościelnicki <koriakin@0x04.net>
9128 * tracepoint.c (struct tracepoint_action_ops): Remove.
9129 (struct tracepoint_action): Remove ops.
9130 (m_tracepoint_action_download, r_tracepoint_action_download)
9131 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9132 size and offset accordingly.
9133 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9134 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9135 (tracepoint_action_send, tracepoint_action_download): New functions.
9136 Helpers for trace action handlers.
9137 (add_tracepoint_action): Remove setup actions ops.
9138 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9140 2016-02-10 Yao Qi <yao.qi@linaro.org>
9142 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9144 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9146 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9148 * configure: Regenerate.
9150 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9152 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9153 void * to gdb_byte *.
9154 * linux-low.c (siginfo_fixup): Likewise.
9155 (linux_xfer_siginfo): Likewise.
9156 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9158 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9160 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9162 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9164 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9166 * linux-x86-low.c [__x86_64__]: Include
9167 "nat/amd64-linux-siginfo.h".
9168 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9169 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9170 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9171 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9172 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9173 (cpt_si_fd, si_timerid, si_overrun): Move from
9174 nat/amd64-linux-siginfo.c.
9175 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9177 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9179 * server.c (skip_to_semicolon): Remove.
9180 (process_point_options): Use strchrnul instead of
9183 2016-01-26 Yao Qi <yao.qi@linaro.org>
9185 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9186 * linux-low.c (install_software_single_step_breakpoints): Don't
9187 call regcache_read_pc.
9188 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9191 2016-01-26 Yao Qi <yao.qi@linaro.org>
9193 * linux-low.c (install_software_single_step_breakpoints): Call
9194 regcache_read_pc instead of get_pc.
9196 2016-01-26 Yao Qi <yao.qi@linaro.org>
9198 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9199 (unblock_async_io): Rename to ...
9200 (block_unblock_async_io): ... it. New function.
9201 (enable_async_io): Don't install SIGIO handler. Unblock it
9203 (disable_async_io): Don't ignore SIGIO. Block it instead.
9204 (initialize_async_io): Install SIGIO handler. Don't call
9207 2016-01-26 Yao Qi <yao.qi@linaro.org>
9209 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9210 first character is '\003', call *the_target->request_interrupt.
9212 2016-01-25 Yao Qi <yao.qi@linaro.org>
9214 * remote-utils.c (new_thread_notify): Remove.
9215 (dead_thread_notify): Likewise.
9216 * remote-utils.h (new_thread_notify): Remove declaration.
9217 (dead_thread_notify): Likewise.
9219 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9221 * gdb.trace/pending.exp: Fix expected message on continue.
9223 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9225 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9226 it works properly on big-endian machines where sizeof (CORE_ADDR)
9229 2016-01-21 Pedro Alves <palves@redhat.com>
9231 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9232 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9233 * configure: Regenerate.
9235 2016-01-21 Yao Qi <yao.qi@linaro.org>
9237 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9238 is_thumb and set it according to CPSR saved on the stack.
9239 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9240 arm_sigreturn_next_pc.
9242 2016-01-18 Yao Qi <yao.qi@linaro.org>
9244 * linux-low.c (linux_set_pc_64bit): New function.
9245 (linux_get_pc_64bit): New function.
9246 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9248 * linux-sparc-low.c (debug_threads): Remove declaration.
9249 (sparc_get_pc): Remove.
9250 (the_low_target): Use linux_get_pc_64bit instead of
9252 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9253 (the_low_target): Use linux_get_pc_64bit and
9256 2016-01-18 Yao Qi <yao.qi@linaro.org>
9258 * linux-arm-low.c (debug_threads): Remove declaration.
9259 (arm_get_pc, arm_set_pc): Remove.
9260 (the_low_target): Use linux_get_pc_32bit and
9262 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9263 (the_low_target): Use linux_get_pc_32bit and
9265 * linux-cris-low.c (debug_threads): Remove declaration.
9266 (cris_get_pc, cris_set_pc,): Remove.
9267 (the_low_target): Use linux_get_pc_32bit and
9269 * linux-crisv32-low.c (debug_threads): Remove declaration.
9270 (cris_get_pc, cris_set_pc): Remove.
9271 (the_low_target): Use linux_get_pc_32bit and
9273 * linux-low.c: Include inttypes.h.
9274 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9275 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9276 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9277 (the_low_target): Use linux_get_pc_32bit and
9279 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9280 (the_low_target): Use linux_get_pc_32bit and
9282 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9283 (the_low_target): Use linux_get_pc_32bit and
9285 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9286 (the_low_target): Use linux_get_pc_32bit and
9288 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9289 (the_low_target): Use linux_get_pc_32bit and
9292 2016-01-18 Gary Benson <gbenson@redhat.com>
9294 * configure.ac (AC_FUNC_FORK): New check.
9295 * config.in: Regenerate.
9296 * configure: Likewise.
9298 2016-01-14 Yao Qi <yao.qi@linaro.org>
9300 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9301 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9302 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9303 arm_get_next_pcs_ctor.
9305 2016-01-12 Josh Stone <jistone@redhat.com>
9306 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9308 * inferiors.h: Include "gdb_vecs.h".
9309 (struct process_info): Add syscalls_to_catch.
9310 * inferiors.c (remove_process): Free syscalls_to_catch.
9311 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9312 syscall_return stops.
9313 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9314 * server.c (handle_general_set): Handle QCatchSyscalls.
9315 (handle_query): Report support for QCatchSyscalls.
9316 * target.h (struct target_ops): Add supports_catch_syscall.
9317 (target_supports_catch_syscall): New macro.
9318 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9319 (struct lwp_info): Add syscall_state.
9320 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9321 Maintain syscall_state and syscalls_to_catch across exec.
9322 (get_syscall_trapinfo): New function, proxy to the_low_target.
9323 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9324 (linux_low_filter_event): Toggle syscall_state entry/return for
9325 syscall traps, and set it ignored for all others.
9326 (gdb_catching_syscalls_p): New function.
9327 (gdb_catch_this_syscall_p): New function.
9328 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9329 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9330 (linux_supports_catch_syscall): New function.
9331 (linux_target_ops): Install it.
9332 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9333 (the_low_target): Install it.
9335 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9337 * acinclude.m4: Include new ../warning.m4 file.
9338 * configure: Regenerated.
9339 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9341 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9343 * ax.c (is_goto_target): Mark static.
9344 * linux-low.c (register_addr): Likewise.
9345 (linux_fetch_registers, linux_store_registers): Likewise.
9346 * mem-break.c (any_persistent_commands): Fix old prototype.
9347 (add_commands_to_breakpoint): Mark static.
9348 * regcache.c (find_register_by_name): Delete unused func.
9349 * remote-utils.c (hex_or_minus_one): Mark static.
9350 * server.c (monitor_show_help): Mark static.
9351 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9352 handle_v_requests): Likewise.
9354 2016-01-12 Pedro Alves <palves@redhat.com>
9356 Remove use of the registered trademark symbol throughout.
9358 2016-01-08 Yao Qi <yao.qi@linaro.org>
9360 * remote-utils.c (getpkt): If c is '\003', call target hook
9363 2016-01-06 Yao Qi <yao.qi@linaro.org>
9365 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9366 linux-aarch32-low.c.
9367 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9368 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9369 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9370 (thumb2_breakpoint): Declare.
9371 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9372 linux-aarch32-low.h.
9373 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9374 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9375 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9377 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9379 * gdbreplay.c (gdbreplay_version): Change copyright year in
9381 * server.c (gdbserver_version): Likewise.
9383 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9385 * server.c (crc32_table): Delete.
9386 (crc32): Use libiberty's xcrc32 function.
9388 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9390 * lynx-low.c (lynx_delete_thread_callback): New function.
9391 (lynx_mourn): Properly delete our process and all of its
9392 threads. Remove call to clear_inferiors.
9394 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9396 * target.c (thread_search_callback): Add check that
9397 the thread_stopped target callback is not NULL before
9400 2015-12-21 Yao Qi <yao.qi@linaro.org>
9402 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9405 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9407 * server.c (handle_query): Call target_supports_software_single_step.
9409 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9411 * linux-low.c (single_step): New function.
9412 (linux_resume_one_lwp_throw): Call single_step.
9413 (start_step_over): Likewise.
9415 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9417 * Makefile.in (SFILES): Append arch/arm-linux.c,
9418 arch/arm-get-next-pcs.c.
9419 (arm-linux.o): New rule.
9420 (arm-get-next-pcs.o): New rule.
9421 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9423 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9424 to linux-aarch32-low.c.
9425 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9426 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9427 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9428 (thumb2_breakpoint_len): Likewise.
9429 (arm_is_thumb_mode): Make non-static.
9430 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9431 from linux-aarch32-low.c.
9432 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9433 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9434 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9435 (thumb2_breakpoint_len): Likewise.
9436 (arm_is_thumb_mode): New declaration.
9437 * linux-arm-low.c: Include arch/arm-linux.h
9438 aarch/arm-get-next-pcs.h, sys/syscall.h.
9439 (get_next_pcs_ops): New struct.
9440 (get_next_pcs_addr_bits_remove): New function.
9441 (get_next_pcs_is_thumb): New function.
9442 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9443 (arm_sigreturn_next_pc): Likewise.
9444 (get_next_pcs_syscall_next_pc): Likewise.
9445 (arm_gdbserver_get_next_pcs): Likewise.
9446 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9448 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9449 * server.h: Include gdb_vecs.h.
9451 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9453 * Makefile.in (SFILES): Append common/common-regcache.c.
9454 (OBS): Append common-regcache.o.
9455 (common-regcache.o): New rule.
9456 * regcache.c (init_register_cache): Initialize cache to
9458 (regcache_raw_read_unsigned): New function.
9459 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9460 register_status enum.
9462 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9464 * linux-aarch64-low.c (the_low_targets): Rename
9465 breakpoint_reinsert_addr to get_next_pcs.
9466 * linux-arm-low.c (the_low_targets): Likewise.
9467 * linux-bfin-low.c (the_low_targets): Likewise.
9468 * linux-cris-low.c (the_low_targets): Likewise.
9469 * linux-crisv32-low.c (the_low_targets): Likewise.
9470 * linux-low.c (can_software_single_step): Likewise.
9471 (install_software_single_step_breakpoints): New function.
9472 (start_step_over): Use install_software_single_step_breakpoints.
9473 * linux-low.h: New CORE_ADDR vector.
9474 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9476 * linux-mips-low.c (the_low_targets): Likewise.
9477 * linux-nios2-low.c (the_low_targets): Likewise.
9478 * linux-sparc-low.c (the_low_targets): Likewise.
9480 2015-12-17 Pedro Alves <palves@redhat.com>
9482 * linux-low.c (linux_kill_one_lwp): Remove references to
9484 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9486 (linux_init_signals): Delete.
9487 (initialize_low): Adjust.
9488 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9490 2015-12-16 Pedro Alves <palves@redhat.com>
9492 * configure.ac (compiler warning flags): When testing a
9493 -Wno-foo option, check whether -Wfoo works instead.
9494 * configure: Regenerate.
9496 2015-12-11 Don Breazeal <donb@codesourcery.com>
9498 * server.c (process_serial_event): Don't exit from gdbserver
9499 in remote mode if there are still active inferiors.
9501 2015-12-11 Yao Qi <yao.qi@linaro.org>
9503 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9504 arm_breakpoint_at if the process is 32-bit.
9506 2015-12-11 Yao Qi <yao.qi@linaro.org>
9508 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9511 2015-12-07 Yao Qi <yao.qi@linaro.org>
9513 * configure.srv: Append arm.o to srv_tgtobj for
9514 aarch64*-*-linux* target.
9515 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9516 from linux-arm-low.c.
9517 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9518 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9519 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9520 (thumb2_breakpoint_len): Likewise.
9521 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9522 (arm_breakpoint_kinds): Likewise.
9523 (arm_breakpoint_kind_from_pc): Likewise.
9524 (arm_sw_breakpoint_from_kind): Likewise.
9525 (arm_breakpoint_kind_from_current_state): Likewise.
9526 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9527 (arm_sw_breakpoint_from_kind): Declare.
9528 (arm_breakpoint_kind_from_current_state): Declare.
9529 (arm_breakpoint_at): Declare.
9530 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9531 arm_sw_breakpoint_from_kind if process is 32-bit.
9532 (aarch64_breakpoint_kind_from_pc): New function.
9533 (aarch64_breakpoint_kind_from_current_state): New function.
9534 (the_low_target): Initialize fields breakpoint_kind_from_pc
9535 and breakpoint_kind_from_current_state.
9536 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9537 linux-aarch32-low.c.
9538 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9539 (arm_breakpoint, arm_breakpoint_len): Likewise.
9540 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9541 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9542 (arm_is_thumb_mode): Likewise.
9543 (arm_breakpoint_at): Likewise.
9544 (arm_breakpoint_kind_from_pc): Likewise.
9545 (arm_sw_breakpoint_from_kind): Likewise.
9546 (arm_breakpoint_kind_from_current_state): Likewise.
9549 2015-08-04 Yao Qi <yao.qi@linaro.org>
9551 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9552 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9553 * server.c (extended_protocol): Remove "static".
9554 * server.h (extended_protocol): Declare it.
9556 2015-12-04 Josh Stone <jistone@redhat.com>
9558 * target.h (struct target_ops) <arch_setup>: Rename to ...
9559 (struct target_ops) <post_create_inferior>: ... this.
9560 (target_arch_setup): Rename to ...
9561 (target_post_create_inferior): ... this, calling post_create_inferior.
9562 * server.c (start_inferior): Update target_arch_setup calls to
9563 target_post_create_inferior.
9564 * linux-low.c (linux_low_ptrace_options): Forward declare.
9565 (linux_arch_setup): Update its comment for general use.
9566 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9567 (struct linux_target_ops): Use linux_post_create_inferior.
9568 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9569 to post_create_inferior.
9570 * nto-low.c (struct nto_target_ops): Likewise.
9571 * spu-low.c (struct spu_target_ops): Likewise.
9572 * win32-low.c (struct win32_target_ops): Likewise.
9574 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9576 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9578 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9580 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9581 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9582 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9583 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9584 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9585 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9586 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9587 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9588 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9589 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9590 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9591 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9593 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9595 * linux-low.c (linux_look_up_symbols): Don't call
9596 linux_supports_traceclone.
9597 * linux-low.h (thread_db_init): Remove use_events argument.
9598 * thread-db.c (thread_db_use_event): Remove global variable.
9599 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9600 (struct thread_db) <td_create_bp>: Remove field.
9601 (thread_db_create_event): Remove function.
9602 (thread_db_enable_reporting): Likewise.
9603 (find_one_thread): Don't check for thread_db_use_events.
9604 (attach_thread): Likewise.
9605 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9606 (try_thread_db_load_1): Don't check for thread_db_use_events.
9607 (thread_db_init): Remove use_events argument and thread events
9609 (remove_thread_event_breakpoints): Remove function.
9610 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9612 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9614 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9616 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9617 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9618 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9619 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9620 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9622 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9624 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9625 * linux-low.c (can_hardware_single_step): Use
9626 supports_hardware_single_step.
9627 (can_software_single_step): New function.
9628 (start_step_over): Call can_software_single_step.
9629 (linux_supports_hardware_single_step): New function.
9630 (struct target_ops) <supports_software_single_step>: Initialize.
9631 * linux-low.h (struct linux_target_ops)
9632 <supports_hardware_single_step>: Initialize.
9633 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9634 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9635 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9636 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9637 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9638 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9639 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9640 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9641 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9642 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9644 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9645 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9647 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9648 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9649 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9651 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9652 * target.h (struct target_ops): <supports_software_single_step>:
9654 (target_supports_software_single_step): New macro.
9656 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9658 * linux-low.c (linux_wait_1): Fix pc advance condition.
9659 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9660 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9662 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9664 * linux-arm-low.c (arm_is_thumb_mode): New function.
9665 (arm_breakpoint_at): Use arm_is_thumb_mode.
9666 (arm_breakpoint_kind_from_current_state): New function.
9667 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9669 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9670 (linux_breakpoint_kind_from_current_state): New function.
9671 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9672 * linux-low.h (struct linux_target_ops)
9673 <breakpoint_kind_from_current_state>: New field.
9674 * target.h (struct target_ops): Likewise.
9675 (target_breakpoint_kind_from_current_state): New macro.
9677 2015-11-30 Pedro Alves <palves@redhat.com>
9679 * linux-low.c (linux_resume): Wake up the event loop before
9682 2015-11-30 Pedro Alves <palves@redhat.com>
9684 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9686 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9688 * target.c (struct thread_search): New structure.
9689 (thread_search_callback): New function.
9690 (prev_general_thread): New global.
9691 (prepare_to_access_memory, done_accessing_memory): New functions.
9692 * target.h (prepare_to_access_memory, done_accessing_memory):
9693 Replace macros with function declarations.
9695 2015-11-30 Pedro Alves <palves@redhat.com>
9698 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9699 report TARGET_WAITKIND_NO_RESUMED.
9700 * remote-utils.c (prepare_resume_reply): Handle
9701 TARGET_WAITKIND_NO_RESUMED.
9702 * server.c (report_no_resumed): New global.
9703 (handle_query) <qSupported>: Handle "no-resumed+". Report
9704 "no-resumed+" support.
9705 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9706 return error if the client doesn't support no-resumed events.
9707 (push_stop_notification): New function.
9708 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9709 events if the client supports them.
9711 2015-11-30 Pedro Alves <palves@redhat.com>
9713 * linux-low.c (thread_still_has_status_pending_p): Don't check
9715 (lwp_resumed): New function.
9716 (status_pending_p_callback): Return early if the LWP is not
9717 supposed to be resumed.
9719 2015-11-30 Pedro Alves <palves@redhat.com>
9721 * linux-low.c (handle_extended_wait): Assert that the LWP's
9722 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9723 thread create events, leave the new child's status pending.
9724 (linux_low_filter_event): If GDB wants to hear about thread exit
9725 events, leave the LWP marked dead and don't delete it.
9726 (linux_wait_for_event_filtered): Don't check for thread exit.
9727 (filter_exit_event): New function.
9728 (linux_wait_1): Use it, when returning an exit event.
9729 (linux_resume_one_lwp_throw): Assert that the LWP's
9730 waitstatus is TARGET_WAITKIND_IGNORE.
9731 * remote-utils.c (prepare_resume_reply): Handle
9732 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9733 * server.c (report_thread_events): New global.
9734 (handle_general_set): Handle QThreadEvents.
9735 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9736 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9737 TARGET_WAITKIND_THREAD_EXITED.
9738 * server.h (report_thread_events): Declare.
9740 2015-11-30 Pedro Alves <palves@redhat.com>
9742 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9743 the thread's last_resume_kind was resume_stop.
9745 2015-11-30 Pedro Alves <palves@redhat.com>
9747 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9750 2015-11-30 Pedro Alves <palves@redhat.com>
9752 * server.c (handle_v_requests): Handle vCtrlC.
9754 2015-11-30 Pedro Alves <palves@redhat.com>
9756 * gdbthread.h (find_any_thread_of_pid): Declare.
9757 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9759 * server.c (handle_query): If current_thread is NULL, look for
9760 another thread of the selected process.
9762 2015-11-26 Daniel Colascione <dancol@dancol.org>
9763 Simon Marchi <simon.marchi@ericsson.com>
9765 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9766 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9768 * target.h (struct target_ops) <thread_name>: New field.
9769 (target_thread_name): New macro.
9771 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9773 * regcache.h (regcache_invalidate_pid): Add declaration.
9774 * regcache.c (regcache_invalidate_pid): New function, extracted
9775 from regcache_invalidate.
9776 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9777 Add trivial documentation comment.
9778 * lynx-low.c: Use regcache_invalidate_pid instead of
9779 regcache_invalidate.
9781 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9783 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9784 and Elf64_auxv_t if the target is Android.
9786 2015-11-22 Doug Evans <xdje42@gmail.com>
9788 * target.h: #include <sys/types.h>.
9790 2015-11-19 Pedro Alves <palves@redhat.com>
9792 * linux-low.c (linux_process_qsupported): Change prototype.
9794 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9796 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9797 and adjust to loop over all features.
9798 * server.c (handle_query) <qSupported>: Adjust to call
9799 target_process_qsupported once, passing it a vector of unprocessed
9801 * target.h (struct target_ops) <process_qsupported>: Change
9803 (target_process_qsupported): Adjust.
9805 2015-11-19 Pedro Alves <palves@redhat.com>
9807 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9809 * configure: Regenerate.
9811 2015-11-19 Pedro Alves <palves@redhat.com>
9813 * configure: Regenerate.
9815 2015-11-19 Yao Qi <yao.qi@linaro.org>
9817 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9820 2015-11-19 Yao Qi <yao.qi@linaro.org>
9822 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9823 (struct aarch64_operand): Move enum out.
9825 2015-11-19 Yao Qi <yao.qi@linaro.org>
9827 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9828 struct user_fpsimd_state *.
9829 (aarch64_store_fpregset): Likewise.
9831 2015-11-19 Yao Qi <yao.qi@linaro.org>
9833 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9834 struct user_pt_regs *.
9835 (aarch64_store_gregset): Likewise.
9837 2015-11-18 Pedro Alves <palves@redhat.com>
9839 * Makefile.in (all_object_files): Add $IPA_OBJS.
9841 2015-11-17 Pedro Alves <palves@redhat.com>
9843 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9844 GDB_SIGNAL_0 and gdb_signal_to_string.
9846 2015-11-17 Pedro Alves <palves@redhat.com>
9848 * win32-low.c (handle_output_debug_string): Remove parameter.
9849 (win32_kill): Remove our_status local and adjust call to
9850 handle_output_debug_string.
9851 (get_child_debug_event): Adjust call to
9852 handle_output_debug_string.
9854 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9856 * linux-mips-low.c (mips_fill_gregset): Add cast.
9857 (mips_store_gregset): Likewise.
9858 (mips_fill_fpregset): Likewise.
9859 (mips_store_fpregset): Likewise.
9861 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9863 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9866 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9868 * linux-mips-low.c (mips_linux_new_thread): Change type of
9869 watch_type to enum target_hw_bp_type.
9871 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9873 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9874 Change return type to arm_hwbp_type.
9876 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9878 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9879 (arm_store_gregset): Likewise.
9880 * linux-arm-low.c (arm_get_hwcap): Likewise.
9881 (arm_read_description): Likewise.
9883 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9885 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
9887 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9889 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
9890 (ppc_fill_vsxregset): Likewise.
9891 (ppc_store_vsxregset): Likewise.
9892 (ppc_fill_vrregset): Likewise.
9893 (ppc_store_vrregset): Likewise.
9894 (ppc_fill_evrregset): Likewise.
9895 (ppc_store_evrregset): Likewise.
9897 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9899 * linux-ppc-low.c (ppc_usrregs_info): Remove
9900 forward-declaration.
9901 (ppc_arch_setup): Move lower in file.
9903 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
9905 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
9906 (ps_pdwrite): Likewise.
9908 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
9910 * linux-arm-low.c (arm_new_thread): Move pointer dereference
9911 to after assert checks.
9913 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
9915 * proc-service.c (ps_pdread): Add/adjust casts.
9916 (ps_pdwrite): Add/adjust casts.
9918 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9920 * server.c (handle_search_memory_1): Cast return value of
9923 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
9925 * server.c (write_qxfer_response): Change type of data to
9928 2015-10-29 Pedro Alves <palves@redhat.com>
9930 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
9932 2015-10-29 Pedro Alves <palves@redhat.com>
9934 * tracepoint.c (clear_installed_tracepoints): Add casts.
9936 2015-10-29 Pedro Alves <palves@redhat.com>
9938 * server.c (handle_v_cont, process_serial_event): Add enum
9939 gdb_signal casts to signal parsing code.
9941 2015-10-29 Pedro Alves <palves@redhat.com>
9943 * linux-low.h (NULL_REGSET): Define.
9944 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9945 * linux-arm-low.c (arm_regsets): Likewise.
9946 * linux-crisv32-low.c (cris_regsets): Likewise.
9947 * linux-m68k-low.c (m68k_regsets): Likewise.
9948 * linux-mips-low.c (mips_regsets): Likewise.
9949 * linux-nios2-low.c (nios2_regsets): Likewise.
9950 * linux-ppc-low.c (ppc_regsets): Likewise.
9951 * linux-s390-low.c (s390_regsets): Likewise.
9952 * linux-sh-low.c (sh_regsets): Likewise.
9953 * linux-sparc-low.c (sparc_regsets): Likewise.
9954 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9955 * linux-tile-low.c (tile_regsets): Likewise.
9956 * linux-x86-low.c (x86_regsets): Likewise.
9957 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9959 2015-10-29 Pedro Alves <palves@redhat.com>
9961 * linux-low.h (NULL_REGSET): Define.
9962 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
9963 * linux-arm-low.c (arm_regsets): Likewise.
9964 * linux-crisv32-low.c (cris_regsets): Likewise.
9965 * linux-m68k-low.c (m68k_regsets): Likewise.
9966 * linux-mips-low.c (mips_regsets): Likewise.
9967 * linux-nios2-low.c (nios2_regsets): Likewise.
9968 * linux-ppc-low.c (ppc_regsets): Likewise.
9969 * linux-s390-low.c (s390_regsets): Likewise.
9970 * linux-sh-low.c (sh_regsets): Likewise.
9971 * linux-sparc-low.c (sparc_regsets): Likewise.
9972 * linux-tic6x-low.c (tic6x_regsets): Likewise.
9973 * linux-tile-low.c (tile_regsets): Likewise.
9974 * linux-x86-low.c (x86_regsets): Likewise.
9975 * linux-xtensa-low.c (xtensa_regsets): Likewise.
9977 2015-10-26 Doug Evans <dje@google.com>
9979 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
9981 2015-10-26 Doug Evans <dje@google.com>
9983 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
9985 2015-10-26 Doug Evans <dje@google.com>
9987 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
9989 (attach_thread, find_new_threads_callback): Ditto.
9991 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9993 * mem-break.h (set_breakpoint_data): Remove.
9995 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
9997 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
9998 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
9999 (initialize_low): Remove set_breakpoint_data call.
10000 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10001 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10002 (initialize_low): Remove set_breakpoint_data call.
10003 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10004 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10005 (initialize_low): Remove set_breakpoint_data call.
10007 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10009 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10010 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10011 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10012 * target.h (target_breakpoint_kind_from_pc): New macro.
10014 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10016 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10017 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10018 the default breakpoint kind.
10020 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10022 * linux-arm-low.c (arm_supports_z_point_type): Add software
10023 breakpoint support.
10025 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10027 * linux-arm-low.c: Refactor breakpoint definitions.
10028 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10029 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10031 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10033 * Makefile.in: Add arm.c/o.
10034 * configure.srv: Likewise.
10035 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10036 (arm_breakpoint_kind_from_pc): New function.
10037 (arm_sw_breakpoint_from_kind): Return proper kind.
10038 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10040 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10042 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10044 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10045 (struct raw_breakpoint) <size>: Remove.
10046 (struct raw_breakpoint) <kind>: Add.
10047 (bp_size): New function.
10048 (bp_opcode): Likewise.
10049 (find_raw_breakpoint_at): Adjust for kind.
10050 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10051 (remove_memory_breakpoint): Adjust for kind call bp_size.
10052 (set_raw_breakpoint_at): Adjust for kind.
10053 (set_breakpoint): Likewise.
10054 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10055 (delete_raw_breakpoint): Adjust for kind.
10056 (delete_breakpoint): Likewise.
10057 (find_gdb_breakpoint): Likewise.
10058 (set_gdb_breakpoint_1): Likewise.
10059 (set_gdb_breakpoint): Likewise.
10060 (delete_gdb_breakpoint_1): Likewise.
10061 (delete_gdb_breakpoint): Likewise.
10062 (uninsert_raw_breakpoint): Likewise.
10063 (reinsert_raw_breakpoint): Likewise.
10064 (set_breakpoint_data): Remove.
10065 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10066 (check_mem_read): Adjust for kind call bp_size.
10067 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10068 (clone_one_breakpoint): Adjust for kind.
10069 * mem-break.h (set_gdb_breakpoint): Likewise.
10070 (delete_gdb_breakpoint): Likewise.
10071 * server.c (process_serial_event): Likewise.
10073 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10075 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10076 (struct linux_target_ops) <breakpoint>: Remove.
10077 (struct linux_target_ops) <breakpoint_len>: Remove.
10078 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10079 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10080 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10081 (arm_sw_breakpoint_from_kind): New function.
10082 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10083 (struct linux_target_ops) <breakpoint>: Remove.
10084 (struct linux_target_ops) <breakpoint_len>: Remove.
10085 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10086 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10087 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10088 (struct linux_target_ops) <breakpoint>: Remove.
10089 (struct linux_target_ops) <breakpoint_len>: Remove.
10090 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10091 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10092 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10093 (struct linux_target_ops) <breakpoint>: Remove.
10094 (struct linux_target_ops) <breakpoint_len>: Remove.
10095 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10096 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10097 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10098 and sw_breakpoint_from_kind to increment the pc.
10099 (linux_breakpoint_kind_from_pc): New function.
10100 (linux_sw_breakpoint_from_kind): New function.
10101 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10102 (initialize_low): Call breakpoint_kind_from_pc and
10103 sw_breakpoint_from_kind to replace breakpoint_data/len.
10104 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10106 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10107 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10108 (struct linux_target_ops) <breakpoint>: Remove.
10109 (struct linux_target_ops) <breakpoint_len>: Remove.
10110 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10111 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10112 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10113 (struct linux_target_ops) <breakpoint>: Remove.
10114 (struct linux_target_ops) <breakpoint_len>: Remove.
10115 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10116 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10117 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10118 (struct linux_target_ops) <breakpoint>: Remove.
10119 (struct linux_target_ops) <breakpoint_len>: Remove.
10120 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10121 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10122 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10123 (struct linux_target_ops) <breakpoint>: Remove.
10124 (struct linux_target_ops) <breakpoint_len>: Remove.
10125 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10126 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10127 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10128 (struct linux_target_ops) <breakpoint>: Remove.
10129 (struct linux_target_ops) <breakpoint_len>: Remove.
10130 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10131 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10132 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10133 (struct linux_target_ops) <breakpoint>: Remove.
10134 (struct linux_target_ops) <breakpoint_len>: Remove.
10135 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10136 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10137 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10138 (struct linux_target_ops) <breakpoint>: Remove.
10139 (struct linux_target_ops) <breakpoint_len>: Remove.
10140 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10141 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10142 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10143 (struct linux_target_ops) <breakpoint>: Remove.
10144 (struct linux_target_ops) <breakpoint_len>: Remove.
10145 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10146 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10147 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10148 (struct linux_target_ops) <breakpoint>: Remove.
10149 (struct linux_target_ops) <breakpoint_len>: Remove.
10150 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10151 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10152 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10153 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10154 (struct linux_target_ops) <breakpoint>: Remove.
10155 (struct linux_target_ops) <breakpoint_len>: Remove.
10156 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10157 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10158 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10159 (struct linux_target_ops) <breakpoint>: Remove.
10160 (struct linux_target_ops) <breakpoint_len>: Remove.
10161 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10162 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10164 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10166 * linux-cris-low.c (cris_get_pc): Remove void arg.
10168 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10170 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10173 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10175 * inferiors.c (thread_pid_matches_callback): New function.
10176 (find_thread_process): New function.
10177 (remove_thread): Reset current_thread.
10178 (remove_process): Assert threads have been removed first.
10180 2015-10-15 Yao Qi <yao.qi@linaro.org>
10182 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10184 (aarch64_remove_point): Likewise.
10185 * regcache.c (regcache_register_size): New function.
10187 2015-10-12 Yao Qi <yao.qi@linaro.org>
10189 * linux-aarch64-low.c: Update all callers as emit_load_store
10190 is renamed to aarch64_emit_load_store.
10192 2015-10-12 Yao Qi <yao.qi@linaro.org>
10194 * linux-aarch64-low.c: Update all callers of function renaming
10195 from emit_insn to aarch64_emit_insn.
10197 2015-10-12 Yao Qi <yao.qi@linaro.org>
10199 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10200 arch/aarch64-insn.h.
10201 (struct aarch64_memory_operand): Likewise.
10202 (ENCODE): Likewise.
10203 (emit_insn): Move to arch/aarch64-insn.c.
10204 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10205 (emit_load_store): Move to arch/aarch64-insn.c.
10206 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10207 (can_encode_int32): Remove.
10209 2015-10-12 Yao Qi <yao.qi@linaro.org>
10211 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10212 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10213 (aarch64_relocate_instruction): Likewise.
10214 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10215 (struct aarch64_insn_visitor): Likewise.
10217 2015-10-12 Yao Qi <yao.qi@linaro.org>
10219 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10220 (struct aarch64_insn_visitor): New.
10221 (struct aarch64_insn_relocation_data): New.
10222 (aarch64_ftrace_insn_reloc_b): New function.
10223 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10224 (aarch64_ftrace_insn_reloc_cb): Likewise.
10225 (aarch64_ftrace_insn_reloc_tb): Likewise.
10226 (aarch64_ftrace_insn_reloc_adr): Likewise.
10227 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10228 (aarch64_ftrace_insn_reloc_others): Likewise.
10230 (aarch64_relocate_instruction): Use visitor.
10232 2015-10-12 Yao Qi <yao.qi@linaro.org>
10234 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10235 int. Add argument buf.
10236 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10237 aarch64_relocate_instruction.
10239 2015-10-12 Yao Qi <yao.qi@linaro.org>
10241 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10242 argument insn. Remove local variable insn. Don't call
10243 target_read_uint32.
10244 (aarch64_install_fast_tracepoint_jump_pad): Call
10245 target_read_uint32.
10247 2015-09-30 Yao Qi <yao.qi@linaro.org>
10249 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10250 (emit_load_store_pair): Likewise.
10252 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10254 * dll.c (match_dll): Add cast(s).
10255 (unloaded_dll): Likewise.
10256 * linux-low.c (second_thread_of_pid_p): Likewise.
10257 (delete_lwp_callback): Likewise.
10258 (count_events_callback): Likewise.
10259 (select_event_lwp_callback): Likewise.
10260 (linux_set_resume_request): Likewise.
10261 * server.c (accumulate_file_name_length): Likewise.
10262 (emit_dll_description): Likewise.
10263 (handle_qxfer_threads_worker): Likewise.
10264 (visit_actioned_threads): Likewise.
10265 * thread-db.c (any_thread_of): Likewise.
10266 * tracepoint.c (same_process_p): Likewise.
10267 (match_blocktype): Likewise.
10268 (build_traceframe_info_xml): Likewise.
10270 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10272 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10274 (gdb_unparse_agent_expr): Likewise.
10275 * hostio.c (require_data): Likewise.
10276 (handle_pread): Likewise.
10277 * linux-low.c (disable_regset): Likewise.
10278 (fetch_register): Likewise.
10279 (store_register): Likewise.
10280 (get_dynamic): Likewise.
10281 (linux_qxfer_libraries_svr4): Likewise.
10282 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10283 (set_fast_tracepoint_jump): Likewise.
10284 (uninsert_fast_tracepoint_jumps_at): Likewise.
10285 (reinsert_fast_tracepoint_jumps_at): Likewise.
10286 (validate_inserted_breakpoint): Likewise.
10287 (clone_agent_expr): Likewise.
10288 * regcache.c (init_register_cache): Likewise.
10289 * remote-utils.c (putpkt_binary_1): Likewise.
10290 (decode_M_packet): Likewise.
10291 (decode_X_packet): Likewise.
10292 (look_up_one_symbol): Likewise.
10293 (relocate_instruction): Likewise.
10294 (monitor_output): Likewise.
10295 * server.c (handle_search_memory): Likewise.
10296 (handle_qxfer_exec_file): Likewise.
10297 (handle_qxfer_libraries): Likewise.
10298 (handle_qxfer): Likewise.
10299 (handle_query): Likewise.
10300 (handle_v_cont): Likewise.
10301 (handle_v_run): Likewise.
10302 (captured_main): Likewise.
10303 * target.c (write_inferior_memory): Likewise.
10304 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10305 * tracepoint.c (init_trace_buffer): Likewise.
10306 (add_tracepoint_action): Likewise.
10307 (add_traceframe): Likewise.
10308 (add_traceframe_block): Likewise.
10309 (cmd_qtdpsrc): Likewise.
10310 (cmd_qtdv): Likewise.
10311 (cmd_qtstatus): Likewise.
10312 (response_source): Likewise.
10313 (response_tsv): Likewise.
10314 (cmd_qtnotes): Likewise.
10315 (gdb_collect): Likewise.
10316 (initialize_tracepoint): Likewise.
10318 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10320 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10321 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10322 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10324 (enum aarch64_condition_codes): New enum.
10325 (w0): New static global.
10328 (struct aarch64_memory_operand) <type>: New
10329 MEMORY_OPERAND_POSTINDEX type.
10330 (postindex_memory_operand): New helper function.
10331 (emit_ret): New function.
10332 (emit_load_store_pair): New function, factored out of emit_stp
10333 with support for MEMORY_OPERAND_POSTINDEX.
10334 (emit_stp): Rewrite using emit_load_store_pair.
10335 (emit_ldp): New function.
10336 (emit_load_store): Likewise.
10337 (emit_ldr): Mention post-index instruction in comment.
10338 (emit_ldrh): New function.
10339 (emit_ldrb): New function.
10340 (emit_ldrsw): Mention post-index instruction in comment.
10341 (emit_str): Likewise.
10342 (emit_subs): New function.
10343 (emit_cmp): Likewise.
10344 (emit_and): Likewise.
10345 (emit_orr): Likewise.
10346 (emit_orn): Likewise.
10347 (emit_eor): Likewise.
10348 (emit_mvn): Likewise.
10349 (emit_lslv): Likewise.
10350 (emit_lsrv): Likewise.
10351 (emit_asrv): Likewise.
10352 (emit_mul): Likewise.
10353 (emit_sbfm): Likewise.
10354 (emit_sbfx): Likewise.
10355 (emit_ubfm): Likewise.
10356 (emit_ubfx): Likewise.
10357 (emit_csinc): Likewise.
10358 (emit_cset): Likewise.
10359 (emit_nop): Likewise.
10360 (emit_ops_insns): New helper function.
10361 (emit_pop): Likewise.
10362 (emit_push): Likewise.
10363 (aarch64_emit_prologue): New function.
10364 (aarch64_emit_epilogue): Likewise.
10365 (aarch64_emit_add): Likewise.
10366 (aarch64_emit_sub): Likewise.
10367 (aarch64_emit_mul): Likewise.
10368 (aarch64_emit_lsh): Likewise.
10369 (aarch64_emit_rsh_signed): Likewise.
10370 (aarch64_emit_rsh_unsigned): Likewise.
10371 (aarch64_emit_ext): Likewise.
10372 (aarch64_emit_log_not): Likewise.
10373 (aarch64_emit_bit_and): Likewise.
10374 (aarch64_emit_bit_or): Likewise.
10375 (aarch64_emit_bit_xor): Likewise.
10376 (aarch64_emit_bit_not): Likewise.
10377 (aarch64_emit_equal): Likewise.
10378 (aarch64_emit_less_signed): Likewise.
10379 (aarch64_emit_less_unsigned): Likewise.
10380 (aarch64_emit_ref): Likewise.
10381 (aarch64_emit_if_goto): Likewise.
10382 (aarch64_emit_goto): Likewise.
10383 (aarch64_write_goto_address): Likewise.
10384 (aarch64_emit_const): Likewise.
10385 (aarch64_emit_call): Likewise.
10386 (aarch64_emit_reg): Likewise.
10387 (aarch64_emit_pop): Likewise.
10388 (aarch64_emit_stack_flush): Likewise.
10389 (aarch64_emit_zero_ext): Likewise.
10390 (aarch64_emit_swap): Likewise.
10391 (aarch64_emit_stack_adjust): Likewise.
10392 (aarch64_emit_int_call_1): Likewise.
10393 (aarch64_emit_void_call_2): Likewise.
10394 (aarch64_emit_eq_goto): Likewise.
10395 (aarch64_emit_ne_goto): Likewise.
10396 (aarch64_emit_lt_goto): Likewise.
10397 (aarch64_emit_le_goto): Likewise.
10398 (aarch64_emit_gt_goto): Likewise.
10399 (aarch64_emit_ge_got): Likewise.
10400 (aarch64_emit_ops_impl): New static global variable.
10401 (aarch64_emit_ops): New target function, return
10402 &aarch64_emit_ops_impl.
10403 (struct linux_target_ops): Install it.
10405 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10407 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10408 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10410 * linux-aarch64-ipa.c: New file.
10411 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10413 (aarch64_get_thread_area): New target method.
10414 (extract_signed_bitfield): New helper function.
10415 (aarch64_decode_ldr_literal): New function.
10416 (enum aarch64_opcodes): New enum.
10417 (struct aarch64_register): New struct.
10418 (struct aarch64_operand): New struct.
10419 (x0): New static global.
10428 (aarch64_register): New helper function.
10429 (register_operand): Likewise.
10430 (immediate_operand): Likewise.
10431 (struct aarch64_memory_operand): New struct.
10432 (offset_memory_operand): New helper function.
10433 (preindex_memory_operand): Likewise.
10434 (enum aarch64_system_control_registers): New enum.
10435 (ENCODE): New macro.
10436 (emit_insn): New helper function.
10437 (emit_b): New function.
10438 (emit_bcond): Likewise.
10439 (emit_cb): Likewise.
10440 (emit_tb): Likewise.
10441 (emit_blr): Likewise.
10442 (emit_stp): Likewise.
10443 (emit_ldp_q_offset): Likewise.
10444 (emit_stp_q_offset): Likewise.
10445 (emit_load_store): Likewise.
10446 (emit_ldr): Likewise.
10447 (emit_ldrsw): Likewise.
10448 (emit_str): Likewise.
10449 (emit_ldaxr): Likewise.
10450 (emit_stxr): Likewise.
10451 (emit_stlr): Likewise.
10452 (emit_data_processing_reg): Likewise.
10453 (emit_data_processing): Likewise.
10454 (emit_add): Likewise.
10455 (emit_sub): Likewise.
10456 (emit_mov): Likewise.
10457 (emit_movk): Likewise.
10458 (emit_mov_addr): Likewise.
10459 (emit_mrs): Likewise.
10460 (emit_msr): Likewise.
10461 (emit_sevl): Likewise.
10462 (emit_wfe): Likewise.
10463 (append_insns): Likewise.
10464 (can_encode_int32_in): New helper function.
10465 (aarch64_relocate_instruction): New function.
10466 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10467 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10468 (struct linux_target_ops): Install aarch64_get_thread_area,
10469 aarch64_install_fast_tracepoint_jump_pad and
10470 aarch64_get_min_fast_tracepoint_insn_len.
10472 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10474 * Makefile.in (aarch64-insn.o): New rule.
10475 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10477 2015-09-21 Yao Qi <yao.qi@linaro.org>
10479 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10481 2015-09-21 Yao Qi <yao.qi@linaro.org>
10483 * tracepoint.c (max_jump_pad_size): Remove.
10485 2015-09-18 Yao Qi <yao.qi@linaro.org>
10487 * linux-aarch64-low.c: Don't include sys/uio.h.
10488 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10490 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10492 * tracepoint.c (eval_result_type): Change prototype.
10493 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10495 2015-09-15 Pedro Alves <palves@redhat.com>
10497 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10498 Check whether to report exec events instead of checking whether
10499 multiprocess is enabled.
10501 2015-09-15 Pedro Alves <palves@redhat.com>
10504 * remote-utils.c (prepare_resume_reply): Merge
10505 TARGET_WAITKIND_VFORK_DONE switch case with the
10506 TARGET_WAITKIND_FORKED case.
10508 2015-09-15 Yao Qi <yao.qi@linaro.org>
10510 * server.c (handle_query): Check string comparison using
10511 "else if" instead of "if".
10513 2015-09-15 Yao Qi <yao.qi@linaro.org>
10515 * server.c (vCont_supported): New global variable.
10516 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10517 matches. Append ";vContSupported+" to own_buf.
10518 (handle_v_requests): Append ";s;S" to own_buf if target supports
10519 hardware single step or vCont_supported is false.
10520 (capture_main): Set vCont_supported to zero.
10522 2015-09-15 Yao Qi <yao.qi@linaro.org>
10524 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10526 (linux_supports_hardware_single_step): ... New function.
10527 (linux_target_ops): Update.
10528 * lynx-low.c (lynx_target_ops): Set field
10529 supports_hardware_single_step to target_can_do_hardware_single_step.
10530 * nto-low.c (nto_target_ops): Likewise.
10531 * spu-low.c (spu_target_ops): Likewise.
10532 * win32-low.c (win32_target_ops): Likewise.
10533 * target.c (target_can_do_hardware_single_step): New function.
10534 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10535 Remove. <supports_hardware_single_step>: New field.
10536 (target_supports_conditional_breakpoints): Remove.
10537 (target_supports_hardware_single_step): New macro.
10538 (target_can_do_hardware_single_step): Declare.
10539 * server.c (handle_query): Use target_supports_hardware_single_step
10540 instead of target_supports_conditional_breakpoints.
10542 2015-09-15 Yao Qi <yao.qi@linaro.org>
10544 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10546 (struct linux_target_ops the_low_target): Install
10547 aarch64_linux_siginfo_fixup.
10549 2015-09-11 Don Breazeal <donb@codesourcery.com>
10550 Luis Machado <lgustavo@codesourcery.com>
10552 * linux-low.c (linux_mourn): Static declaration.
10553 (linux_arch_setup): Move in front of
10554 handle_extended_wait.
10555 (linux_arch_setup_thread): New function.
10556 (handle_extended_wait): Handle exec events. Call
10557 linux_arch_setup_thread. Make event_lwp argument a
10558 pointer-to-a-pointer.
10559 (check_zombie_leaders): Do not check stopped threads.
10560 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10561 (linux_low_filter_event): Add lwp and thread for exec'ing
10562 non-leader thread if leader thread has been deleted.
10563 Refactor code into linux_arch_setup_thread and call it.
10564 Pass child lwp pointer by reference to handle_extended_wait.
10565 (linux_wait_for_event_filtered): Update comment.
10566 (linux_wait_1): Prevent clobbering exec event status.
10567 (linux_supports_exec_events): New function.
10568 (linux_target_ops) <supports_exec_events>: Initialize new member.
10569 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10571 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10572 * server.c (report_exec_events): New global variable.
10573 (handle_query): Handle qSupported query for exec-events feature.
10574 (captured_main): Initialize report_exec_events.
10575 * server.h (report_exec_events): Declare new global variable.
10576 * target.h (struct target_ops) <supports_exec_events>: New
10578 (target_supports_exec_events): New macro.
10579 * win32-low.c (win32_target_ops) <supports_exec_events>:
10580 Initialize new member.
10582 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10584 * linux-low.c (linux_low_enable_btrace): Remove.
10585 (linux_target_ops): Replace linux_low_enable_btrace with
10586 linux_enable_btrace.
10588 2015-09-03 Yao Qi <yao.qi@linaro.org>
10590 * linux-aarch64-low.c (aarch64_insert_point): Call
10591 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10594 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10596 * linux-low.c (check_stopped_by_breakpoint): Use
10597 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10599 2015-08-27 Pedro Alves <palves@redhat.com>
10601 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10603 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10605 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10606 the XNEW-family equivalent.
10607 (compile_bytecodes): Likewise.
10608 * dll.c (loaded_dll): Likewise.
10609 * event-loop.c (append_callback_event): Likewise.
10610 (create_file_handler): Likewise.
10611 (create_file_event): Likewise.
10612 * hostio.c (handle_open): Likewise.
10613 * inferiors.c (add_thread): Likewise.
10614 (add_process): Likewise.
10615 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10616 * linux-arm-low.c (arm_new_process): Likewise.
10617 (arm_new_thread): Likewise.
10618 * linux-low.c (add_to_pid_list): Likewise.
10619 (linux_add_process): Likewise.
10620 (handle_extended_wait): Likewise.
10621 (add_lwp): Likewise.
10622 (enqueue_one_deferred_signal): Likewise.
10623 (enqueue_pending_signal): Likewise.
10624 (linux_resume_one_lwp_throw): Likewise.
10625 (linux_resume_one_thread): Likewise.
10626 (linux_read_memory): Likewise.
10627 (linux_write_memory): Likewise.
10628 * linux-mips-low.c (mips_linux_new_process): Likewise.
10629 (mips_linux_new_thread): Likewise.
10630 (mips_add_watchpoint): Likewise.
10631 * linux-x86-low.c (initialize_low_arch): Likewise.
10632 * lynx-low.c (lynx_add_process): Likewise.
10633 * mem-break.c (set_raw_breakpoint_at): Likewise.
10634 (set_breakpoint): Likewise.
10635 (add_condition_to_breakpoint): Likewise.
10636 (add_commands_to_breakpoint): Likewise.
10637 (clone_agent_expr): Likewise.
10638 (clone_one_breakpoint): Likewise.
10639 * regcache.c (new_register_cache): Likewise.
10640 * remote-utils.c (look_up_one_symbol): Likewise.
10641 * server.c (queue_stop_reply): Likewise.
10642 (start_inferior): Likewise.
10643 (queue_stop_reply_callback): Likewise.
10644 (handle_target_event): Likewise.
10645 * spu-low.c (fetch_ppc_memory): Likewise.
10646 (store_ppc_memory): Likewise.
10647 * target.c (set_target_ops): Likewise.
10648 * thread-db.c (thread_db_load_search): Likewise.
10649 (try_thread_db_load_1): Likewise.
10650 * tracepoint.c (add_tracepoint): Likewise.
10651 (add_tracepoint_action): Likewise.
10652 (create_trace_state_variable): Likewise.
10653 (cmd_qtdpsrc): Likewise.
10654 (cmd_qtro): Likewise.
10655 (add_while_stepping_state): Likewise.
10656 * win32-low.c (child_add_thread): Likewise.
10657 (get_image_name): Likewise.
10659 2015-08-25 Yao Qi <yao.qi@linaro.org>
10661 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10663 2015-08-25 Yao Qi <yao.qi@linaro.org>
10665 * Makefile.in (aarch64-linux.o): New rule.
10666 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10668 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10669 (aarch64_init_debug_reg_state): Make it extern.
10670 (aarch64_linux_prepare_to_resume): Remove.
10672 2015-08-25 Yao Qi <yao.qi@linaro.org>
10674 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10675 lwp_arch_private_info and ptid_of_lwp.
10677 2015-08-25 Yao Qi <yao.qi@linaro.org>
10679 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10680 Find proc_info by find_process_pid. All callers updated.
10682 2015-08-25 Yao Qi <yao.qi@linaro.org>
10684 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10686 (debug_reg_change_callback): Remove.
10687 (aarch64_notify_debug_reg_change): Remove.
10689 2015-08-25 Yao Qi <yao.qi@linaro.org>
10691 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10692 Call current_lwp_ptid.
10694 2015-08-25 Yao Qi <yao.qi@linaro.org>
10696 * linux-aarch64-low.c (debug_reg_change_callback): Use
10699 2015-08-25 Yao Qi <yao.qi@linaro.org>
10701 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10703 2015-08-25 Yao Qi <yao.qi@linaro.org>
10705 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10707 2015-08-25 Yao Qi <yao.qi@linaro.org>
10709 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10712 2015-08-25 Yao Qi <yao.qi@linaro.org>
10714 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10716 (debug_reg_change_callback): Remove argument entry and add argument
10717 lwp. Remove local variable thread. Don't print thread id in the
10718 debugging output. Don't check whether pid of thread equals to pid.
10719 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10720 iterate_over_lwps instead find_inferior.
10722 2015-08-24 Pedro Alves <palves@redhat.com>
10724 * inferiors.c (get_first_process): New function.
10725 * inferiors.h (get_first_process): New declaration.
10726 * remote-utils.c (read_ptid): Default to the first process in the
10727 list, instead of to the current thread's process.
10729 2015-08-24 Pedro Alves <palves@redhat.com>
10731 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10732 * event-loop.c: Likewise.
10733 * remote-utils.c: Likewise.
10734 * tracepoint.c: Likewise.
10736 2015-08-24 Pedro Alves <palves@redhat.com>
10738 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10741 2015-08-21 Pedro Alves <palves@redhat.com>
10743 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10744 instead of literal 1.
10746 2015-08-21 Pedro Alves <palves@redhat.com>
10748 * tdesc.c (default_description): Explicitly zero-initialize.
10750 2015-08-21 Pedro Alves <palves@redhat.com>
10753 * inferiors.c (remove_thread): Discard any pending stop reply for
10755 * server.c (remove_all_on_match_pid): Rename to ...
10756 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10758 (discard_queued_stop_replies): Change parameter to a ptid. Now
10760 (handle_v_kill, kill_inferior_callback, captured_main)
10761 (process_serial_event): Adjust.
10762 * server.h (discard_queued_stop_replies): Declare.
10764 2015-08-21 Pedro Alves <palves@redhat.com>
10766 * linux-low.c (wait_for_sigstop): Always switch to no thread
10767 selected if the previously current thread dies.
10768 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10769 process instead of the current thread's.
10770 * remote-utils.c (input_interrupt): Don't check if there's no
10772 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10773 current thread to the general thread fails, error out.
10774 (handle_qxfer_auxv, handle_qxfer_libraries)
10775 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10776 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10777 (handle_query): Check if there's a thread selected instead of
10778 checking whether there's any thread in the thread list.
10779 (handle_qxfer_threads, handle_qxfer_btrace)
10780 (handle_qxfer_btrace_conf): Don't error out early if there's no
10781 thread in the thread list.
10782 (handle_v_cont, myresume): Don't set the current thread to the
10784 (process_serial_event) <Hg handling>: Also set thread_id if the
10785 previous general thread is still alive.
10786 (process_serial_event) <g/G handling>: If setting the current
10787 thread to the general thread fails, error out.
10788 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10789 thread's lwp instead of the current thread's.
10790 * target.c (set_desired_thread): If the desired thread was not
10791 found, leave the current thread pointing to NULL. Return an int
10792 (boolean) indicating success.
10793 * target.h (set_desired_thread): Change return type to int.
10795 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10797 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10798 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10800 (ps_get_thread_area): New function.
10802 2015-08-19 Gary Benson <gbenson@redhat.com>
10804 * hostio.c (handle_pread): Do not attempt to read more data
10805 than hostio_reply_with_data can fit in a packet.
10807 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10809 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10811 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10813 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10815 2015-08-06 Pedro Alves <palves@redhat.com>
10817 * tracepoint.c (expr_eval_result): Now an int.
10819 2015-08-06 Pedro Alves <palves@redhat.com>
10821 * gdbthread.h (struct regcache): Forward declare.
10822 (struct thread_info) <regcache_data>: Now a struct regcache
10824 * inferiors.c (inferior_regcache_data)
10825 (set_inferior_regcache_data): Now work with struct regcache
10827 * inferiors.h (struct regcache): Forward declare.
10828 (inferior_regcache_data, set_inferior_regcache_data): Now work
10829 with struct regcache pointers.
10830 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10831 (free_register_cache_thread): Remove struct regcache pointer
10834 2015-08-06 Pedro Alves <palves@redhat.com>
10836 * server.c (captured_main): On error, print the exception message
10837 to stderr, and if run_once is set, throw a quit.
10839 2015-08-06 Pedro Alves <palves@redhat.com>
10841 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10842 the current thread.
10844 2015-08-06 Pedro Alves <palves@redhat.com>
10846 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10847 reading beyond the passed in buffer length.
10849 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10851 * tracepoint.c (symbol_list) <required>: Remove.
10853 2015-08-06 Pedro Alves <palves@redhat.com>
10855 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10856 count if stopping and suspending threads.
10857 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10858 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10859 (linux_detach): Complete an ongoing step-over.
10860 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10862 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10863 (linux_wait_1): If passing a signal to the inferior after
10864 finishing a step-over, unsuspend and re-resume all lwps. If we
10865 see a single-step event but the thread should be continuing, don't
10866 pass the trap to gdb.
10867 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10868 internal_error instead of gdb_assert.
10869 (enqueue_pending_signal): New function.
10870 (check_ptrace_stopped_lwp_gone): Add debug output.
10871 (start_step_over): Use internal_error instead of gdb_assert.
10872 (complete_ongoing_step_over): New function.
10873 (linux_resume_one_thread): Don't resume a suspended thread.
10874 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10877 2015-08-06 Pedro Alves <palves@redhat.com>
10879 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10880 (linux_thread_alive): Use lwp_is_marked_dead.
10881 (extended_event_reported): Delete.
10882 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
10883 instead of extended_event_reported.
10884 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
10886 (lwp_is_marked_dead): New function.
10887 (lwp_running): Use lwp_is_marked_dead.
10888 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
10891 2015-08-06 Pedro Alves <palves@redhat.com>
10893 * linux-low.c (linux_wait_1): Move fork event output out of the
10894 !report_to_gdb check. Pass event_child->waitstatus to
10895 target_waitstatus_to_string instead of ourstatus.
10897 2015-08-04 Yao Qi <yao.qi@linaro.org>
10899 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
10900 if current_thread is 32 bit.
10902 2015-08-04 Yao Qi <yao.qi@linaro.org>
10904 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
10905 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
10906 * server.c (extended_protocol): Remove "static".
10907 * server.h (extended_protocol): Declare it.
10909 2015-08-04 Yao Qi <yao.qi@linaro.org>
10911 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
10912 both aarch64 and aarch32.
10913 (aarch64_set_pc): Likewise.
10915 2015-08-04 Yao Qi <yao.qi@linaro.org>
10917 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
10918 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
10919 arm-with-neon.xml to srv_xmlfiles.
10920 * linux-aarch64-low.c: Include linux-aarch32-low.h.
10921 (is_64bit_tdesc): New function.
10922 (aarch64_linux_read_description): New function.
10923 (aarch64_arch_setup): Call aarch64_linux_read_description.
10924 (regs_info): Rename to regs_info_aarch64.
10925 (aarch64_regs_info): Return right regs_info.
10926 (initialize_low_arch): Call initialize_low_arch_aarch32.
10928 2015-08-04 Yao Qi <yao.qi@linaro.org>
10930 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
10931 * linux-aarch32-low.c: New file.
10932 * linux-aarch32-low.h: New file.
10933 * linux-arm-low.c (arm_fill_gregset): Move it to
10934 linux-aarch32-low.c.
10935 (arm_store_gregset): Likewise.
10936 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
10937 (arm_store_vfpregset): Call arm_store_vfpregset_num.
10938 (arm_arch_setup): Check if PTRACE_GETREGSET works.
10939 (regs_info): Rename to regs_info_arm.
10940 (arm_regs_info): Return regs_info_aarch32 if
10941 have_ptrace_getregset is 1 and target description is
10942 arm_with_neon or arm_with_vfpv3.
10943 (initialize_low_arch): Don't call init_registers_arm_with_neon.
10944 Call initialize_low_arch_aarch32 instead.
10946 2015-08-04 Yao Qi <yao.qi@linaro.org>
10948 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
10949 * linux-low.c: ... here.
10950 * linux-low.h (have_ptrace_getregset): Declare it.
10952 2015-08-04 Pedro Alves <palves@redhat.com>
10954 * thread-db.c (struct thread_db): Use new typedefs.
10955 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
10957 (disable_thread_event_reporting): Cast result of dlsym to
10958 destination function pointer type.
10959 (thread_db_mourn): Use td_ta_delete_ftype.
10961 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
10963 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
10965 (CDX_BREAKPOINT): Define for R2.
10966 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
10967 (the_low_target): Add comments.
10969 2015-07-30 Yao Qi <yao.qi@linaro.org>
10971 * linux-arm-low.c (arm_hwcap): Remove it.
10972 (arm_read_description): New local variable arm_hwcap. Don't
10973 set arm_hwcap to zero.
10975 2015-07-30 Yao Qi <yao.qi@linaro.org>
10977 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
10978 Use regcache->tdesc instead.
10979 (arm_store_wmmxregset): Likewise.
10980 (arm_fill_vfpregset): Likewise.
10981 (arm_store_vfpregset): Likewise.
10983 2015-07-30 Yao Qi <yao.qi@linaro.org>
10985 * linux-arm-low.c: Include arch/arm.h.
10986 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
10987 (arm_store_gregset): Likewise.
10989 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
10991 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
10992 ptrace's 4th parameter.
10994 2015-07-27 Yao Qi <yao.qi@linaro.org>
10996 * configure.srv (case aarch64*-*-linux*): Don't set
10999 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11001 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11003 * linux-arm-low.c: Likewise.
11004 * linux-cris-low.c: Likewise.
11005 * linux-crisv32-low.c: Likewise.
11006 * linux-low.c: Likewise.
11007 * linux-m68k-low.c: Likewise.
11008 * linux-mips-low.c: Likewise.
11009 * linux-nios2-low.c: Likewise.
11010 * linux-s390-low.c: Likewise.
11011 * linux-sparc-low.c: Likewise.
11012 * linux-tic6x-low.c: Likewise.
11013 * linux-tile-low.c: Likewise.
11014 * linux-x86-low.c: Likewise.
11016 2015-07-24 Pedro Alves <palves@redhat.com>
11018 * config.in: Regenerate.
11019 * configure: Regenerate.
11021 2015-07-24 Pedro Alves <palves@redhat.com>
11023 * acinclude.m4: Include ../ptrace.m4.
11024 * configure.ac: Call GDB_AC_PTRACE.
11025 * config.in, configure: Regenerate.
11027 2015-07-24 Yao Qi <yao.qi@linaro.org>
11029 * linux-low.c (linux_create_inferior): Remove setting to
11030 proc->priv->new_inferior.
11031 (linux_attach): Likewise.
11032 (linux_low_filter_event): Likewise.
11033 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11035 2015-07-24 Yao Qi <yao.qi@linaro.org>
11037 * linux-low.c (linux_arch_setup): New function.
11038 (linux_low_filter_event): If proc->tdesc is NULL and
11039 proc->attached is true, call the_low_target.arch_setup.
11040 Otherwise, keep status pending, and return.
11041 (linux_resume_one_lwp_throw): Don't call get_pc if
11042 thread->while_stepping isn't NULL. Don't call
11043 get_thread_regcache if proc->tdesc is NULL.
11044 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11045 (linux_target_ops): Install arch_setup.
11046 * server.c (start_inferior): Call the_target->arch_setup.
11047 * target.h (struct target_ops) <arch_setup>: New field.
11048 (target_arch_setup): New marco.
11049 * lynx-low.c (lynx_target_ops): Update.
11050 * nto-low.c (nto_target_ops): Update.
11051 * spu-low.c (spu_target_ops): Update.
11052 * win32-low.c (win32_target_ops): Update.
11054 2015-07-24 Yao Qi <yao.qi@linaro.org>
11056 * linux-low.c (linux_add_process): Don't set
11057 proc->priv->new_inferior.
11058 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11059 (linux_attach): Likewise.
11061 2015-07-24 Yao Qi <yao.qi@linaro.org>
11063 * server.c (start_inferior): Code refactor.
11065 2015-07-24 Yao Qi <yao.qi@linaro.org>
11067 * server.c (process_serial_event): Set general_thread.
11069 2015-07-21 Yao Qi <yao.qi@linaro.org>
11071 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11072 aarch64_linux_get_debug_reg_capacity.
11074 2015-07-17 Yao Qi <yao.qi@linaro.org>
11076 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11077 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11078 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11079 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11080 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11081 (AARCH64_HWP_ALIGNMENT): Likewise.
11082 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11083 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11084 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11085 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11086 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11087 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11088 (struct aarch64_debug_reg_state): Likewise.
11089 (struct arch_lwp_info): Likewise.
11090 (aarch64_align_watchpoint): Likewise.
11091 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11092 (aarch64_watchpoint_length): Likewise.
11093 (aarch64_point_encode_ctrl_reg): Likewise
11094 (aarch64_point_is_aligned): Likewise.
11095 (aarch64_align_watchpoint): Likewise.
11096 (aarch64_linux_set_debug_regs):
11097 (aarch64_dr_state_insert_one_point): Likewise.
11098 (aarch64_dr_state_remove_one_point): Likewise.
11099 (aarch64_handle_breakpoint): Likewise.
11100 (aarch64_handle_aligned_watchpoint): Likewise.
11101 (aarch64_handle_unaligned_watchpoint): Likewise.
11102 (aarch64_handle_watchpoint): Likewise.
11104 2015-07-17 Yao Qi <yao.qi@linaro.org>
11106 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11107 and don't aarch64_get_debug_reg_state. All callers update.
11108 (aarch64_handle_aligned_watchpoint): Likewise.
11109 (aarch64_handle_unaligned_watchpoint): Likewise.
11110 (aarch64_handle_watchpoint): Likewise.
11111 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11112 (aarch64_remove_point): Likewise.
11114 2015-07-17 Yao Qi <yao.qi@linaro.org>
11116 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11118 (aarch64_handle_unaligned_watchpoint): Likewise.
11120 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11122 Revert the previous 3 commits:
11123 Move gdb_regex* to common/
11124 Move linux_find_memory_regions_full & co.
11125 gdbserver build-id attribute generator
11127 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11128 Jan Kratochvil <jan.kratochvil@redhat.com>
11130 gdbserver build-id attribute generator.
11131 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11132 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11133 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11135 (get_dynamic): Use find_pdhr to traverse program headers.
11136 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11137 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11138 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11139 (get_hex_build_id): New.
11140 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11141 to reply XML document.
11143 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11144 Jan Kratochvil <jan.kratochvil@redhat.com>
11146 * target.c: Include target/target-utils.h and fcntl.h.
11147 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11148 (target_fileio_read_stralloc): New functions.
11150 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11152 * Makefile.in (OBS): Add gdb_regex.o.
11153 (gdb_regex.o): New.
11154 * config.in: Rebuilt.
11155 * configure: Rebuilt.
11157 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11158 Jan Kratochvil <jan.kratochvil@redhat.com>
11160 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11161 * Makefile.in (OBS): Add target-utils.o.
11162 (linux-maps.o, target-utils.o): New.
11163 * configure.srv (srv_linux_obj): Add linux-maps.o.
11165 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11167 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11168 function, return 1.
11169 (the_low_target): Install it.
11171 2015-07-14 Pedro Alves <palves@redhat.com>
11173 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11174 Instead, ignore ECHILD, and throw an error for other errnos.
11176 2015-07-10 Pedro Alves <palves@redhat.com>
11178 * event-loop.c (struct callback_event) <data>: Change type to
11179 gdb_client_data instance instead of gdb_client_data pointer.
11180 (append_callback_event): Adjust.
11182 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11184 * linux-aarch64-low.c: Add comments for each linux_target_ops
11185 method. Remove comments already covered in target_ops and
11186 linux_target_ops definitions.
11187 (the_low_target): Add comments for each unimplemented method.
11189 2015-07-09 Yao Qi <yao.qi@linaro.org>
11191 * linux-aarch64-low.c (aarch64_regmap): Remove.
11192 (aarch64_usrregs_info): Remove.
11193 (regs_info): Set field usrregs to NULL.
11195 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11197 * linux-low.c: Include "rsp-low.h"
11198 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11199 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11200 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11201 (handle_btrace_enable_pt): New.
11202 (handle_btrace_general_set): Support "pt".
11203 (handle_btrace_conf_general_set): Support "pt:size".
11205 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11207 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11210 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11212 * linux-aarch64-low.c: Remove comment about endianness.
11213 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11214 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11217 2015-06-24 Gary Benson <gbenson@redhat.com>
11219 * linux-i386-ipa.c (stdint.h): Do not include.
11220 * lynx-i386-low.c (stdint.h): Likewise.
11221 * lynx-ppc-low.c (stdint.h): Likewise.
11222 * mem-break.c (stdint.h): Likewise.
11223 * thread-db.c (stdint.h): Likewise.
11224 * tracepoint.c (stdint.h): Likewise.
11225 * win32-low.c (stdint.h): Likewise.
11227 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11229 * server.c (write_qxfer_response): Update call to
11230 remote_escape_output.
11232 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11233 Jan Kratochvil <jan.kratochvil@redhat.com>
11235 Merge multiple hex conversions.
11236 * gdbreplay.c (tohex): Rename to 'fromhex'.
11237 (logchar): Use fromhex.
11239 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11241 * server.c (handle_qxfer_libraries): Set `version' attribute for
11244 2015-06-10 Gary Benson <gbenson@redhat.com>
11246 * target.h (struct target_ops) <multifs_open>: New field.
11247 <multifs_unlink>: Likewise.
11248 <multifs_readlink>: Likewise.
11249 * linux-low.c (nat/linux-namespaces.h): New include.
11250 (linux_target_ops): Initialize the_target->multifs_open,
11251 the_target->multifs_unlink and the_target->multifs_readlink.
11252 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11253 * hostio.c (hostio_fs_pid): New static variable.
11254 (hostio_handle_new_gdb_connection): New function.
11255 (handle_setfs): Likewise.
11256 (handle_open): Use the_target->multifs_open as appropriate.
11257 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11258 (handle_readlink): Use the_target->multifs_readlink as
11260 (handle_vFile): Handle vFile:setfs packets.
11261 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11262 after target_handle_new_gdb_connection.
11264 2015-06-10 Gary Benson <gbenson@redhat.com>
11266 * configure.ac (AC_CHECK_FUNCS): Add setns.
11267 * config.in: Regenerate.
11268 * configure: Likewise.
11269 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11270 (linux-namespaces.o): New rule.
11271 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11273 2015-06-09 Gary Benson <gbenson@redhat.com>
11275 * hostio.c (handle_open): Process mode argument with
11276 fileio_to_host_mode.
11278 2015-06-01 Yao Qi <yao.qi@linaro.org>
11280 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11281 * linux-x86-low.c: Likewise.
11283 2015-05-28 Don Breazeal <donb@codesourcery.com>
11285 * linux-low.c (handle_extended_wait): Initialize
11286 thread_info.last_resume_kind for new fork children.
11288 2015-05-15 Pedro Alves <palves@redhat.com>
11290 * target.h (target_handle_new_gdb_connection): Rewrite using if
11291 wrapped in do/while.
11293 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11295 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11296 * configure, config.in: Regenerate.
11297 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11300 2015-05-12 Don Breazeal <donb@codesourcery.com>
11302 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11303 PTRACE_EVENT_VFORK_DONE.
11304 (linux_low_ptrace_options, extended_event_reported): Add vfork
11306 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11307 and "vforkdone" for RSP 'T' Stop Reply Packet.
11308 * server.h (report_vfork_events): Declare
11311 2015-05-12 Don Breazeal <donb@codesourcery.com>
11313 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11314 (the_low_target) <new_fork>: Initialize new member.
11315 * linux-arm-low.c (arm_new_fork): New function.
11316 (the_low_target) <new_fork>: Initialize new member.
11317 * linux-low.c (handle_extended_wait): Call new target function
11319 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11320 * linux-mips-low.c (mips_add_watchpoint): New function
11321 extracted from mips_insert_point.
11322 (the_low_target) <new_fork>: Initialize new member.
11323 (mips_linux_new_fork): New function.
11324 (mips_insert_point): Call mips_add_watchpoint.
11325 * linux-x86-low.c (x86_linux_new_fork): New function.
11326 (the_low_target) <new_fork>: Initialize new member.
11328 2015-05-12 Don Breazeal <donb@codesourcery.com>
11330 * linux-low.c (handle_extended_wait): Implement return value,
11331 rename argument 'event_child' to 'event_lwp', handle
11332 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11333 (linux_low_ptrace_options): New function.
11334 (linux_low_filter_event): Call linux_low_ptrace_options,
11335 use different argument fo linux_enable_event_reporting,
11336 use return value from handle_extended_wait.
11337 (extended_event_reported): New function.
11338 (linux_wait_1): Call extended_event_reported and set
11339 status to report fork events.
11340 (linux_write_memory): Add pid to debug message.
11341 (reset_lwp_ptrace_options_callback): New function.
11342 (linux_handle_new_gdb_connection): New function.
11343 (linux_target_ops): Initialize new structure member.
11344 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11345 * lynx-low.c: Initialize new structure member.
11346 * remote-utils.c (prepare_resume_reply): Implement stop reason
11347 "fork" for "T" stop message.
11348 * server.c (handle_query): Call handle_new_gdb_connection.
11349 * server.h (report_fork_events): Declare global flag.
11350 * target.h (struct target_ops) <handle_new_gdb_connection>:
11352 (target_handle_new_gdb_connection): New macro.
11353 * win32-low.c: Initialize new structure member.
11355 2015-05-12 Don Breazeal <donb@codesourcery.com>
11357 * mem-break.c (APPEND_TO_LIST): Define macro.
11358 (clone_agent_expr): New function.
11359 (clone_one_breakpoint): New function.
11360 (clone_all_breakpoints): New function.
11361 * mem-break.h: Declare new functions.
11363 2015-05-12 Don Breazeal <donb@codesourcery.com>
11365 * linux-low.c (linux_supports_fork_events): New function.
11366 (linux_supports_vfork_events): New function.
11367 (linux_target_ops): Initialize new structure members.
11368 (initialize_low): Call linux_check_ptrace_features.
11369 * lynx-low.c (lynx_target_ops): Initialize new structure
11371 * server.c (report_fork_events, report_vfork_events):
11373 (handle_query): Add new features to qSupported packet and
11375 (captured_main): Initialize new global variables.
11376 * target.h (struct target_ops) <supports_fork_events>:
11378 <supports_vfork_events>: New member.
11379 (target_supports_fork_events): New macro.
11380 (target_supports_vfork_events): New macro.
11381 * win32-low.c (win32_target_ops): Initialize new structure
11384 2015-05-12 Gary Benson <gbenson@redhat.com>
11386 * server.c (handle_qxfer_exec_file): Use current process
11389 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11391 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11392 Remove HAVE_PTRACE_GETREGS conditionals.
11393 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11394 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11396 2015-05-08 Yao Qi <yao.qi@linaro.org>
11398 * linux-low.c (linux_supports_conditional_breakpoints): New
11400 (linux_target_ops): Install new target method.
11401 * lynx-low.c (lynx_target_ops): Install NULL hook for
11402 supports_conditional_breakpoints.
11403 * nto-low.c (nto_target_ops): Likewise.
11404 * spu-low.c (spu_target_ops): Likewise.
11405 * win32-low.c (win32_target_ops): Likewise.
11406 * server.c (handle_query): Check
11407 target_supports_conditional_breakpoints.
11408 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11410 (target_supports_conditional_breakpoints): New macro.
11412 2015-05-06 Pedro Alves <palves@redhat.com>
11415 * server.c (start_inferior): If the process exits, mourn it.
11417 2015-04-21 Gary Benson <gbenson@redhat.com>
11419 * hostio.c (fileio_open_flags_to_host): Factored out to
11420 fileio_to_host_openflags in common/fileio.c. Single use
11423 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11425 * linux-xtensa-low.c (xtensa_fill_gregset)
11426 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11429 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11431 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11432 (regs_info): Replace usrregs pointer with NULL.
11434 2015-04-17 Gary Benson <gbenson@redhat.com>
11436 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11437 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11438 * server.c (handle_qxfer_exec_file): New function.
11439 (qxfer_packets): Add exec-file entry.
11440 (handle_query): Report qXfer:exec-file:read as supported packet.
11442 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11444 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11446 2015-04-09 Gary Benson <gbenson@redhat.com>
11448 * hostio-errno.c (errno_to_fileio_error): Remove function.
11449 Update caller to use remote_fileio_to_fio_error.
11451 2015-04-09 Yao Qi <yao.qi@linaro.org>
11453 * linux-low.c (linux_insert_point): Call
11454 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11455 (linux_remove_point): Call remove_memory_breakpoint if type is
11457 * linux-x86-low.c (x86_insert_point): Don't call
11458 insert_memory_breakpoint.
11459 (x86_remove_point): Don't call remove_memory_breakpoint.
11461 2015-04-01 Pedro Alves <palves@redhat.com>
11462 Cleber Rosa <crosa@redhat.com>
11464 * server.c (gdbserver_usage): Reorganize and extend the usage
11467 2015-03-24 Pedro Alves <palves@redhat.com>
11469 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11470 output. Also dump TRAP_TRACE.
11471 (linux_low_filter_event): In debug output, distinguish a
11472 resume_stop SIGSTOP from a delayed SIGSTOP.
11474 2015-03-24 Gary Benson <gbenson@redhat.com>
11476 * linux-x86-low.c (x86_linux_new_thread): Moved to
11478 (x86_linux_prepare_to_resume): Likewise.
11480 2015-03-24 Gary Benson <gbenson@redhat.com>
11482 * Makefile.in (x86-linux-dregs.o): New rule.
11483 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11484 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11485 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11486 (x86_linux_dr_get): Likewise.
11487 (x86_linux_dr_set): Likewise.
11488 (update_debug_registers_callback): Likewise.
11489 (x86_linux_dr_set_addr): Likewise.
11490 (x86_linux_dr_get_addr): Likewise.
11491 (x86_linux_dr_set_control): Likewise.
11492 (x86_linux_dr_get_control): Likewise.
11493 (x86_linux_dr_get_status): Likewise.
11494 (x86_linux_update_debug_registers): Likewise.
11496 2015-03-24 Gary Benson <gbenson@redhat.com>
11498 * linux-x86-low.c (x86_linux_update_debug_registers):
11499 New function, factored out from...
11500 (x86_linux_prepare_to_resume): ...this.
11502 2015-03-24 Gary Benson <gbenson@redhat.com>
11504 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11505 (x86_linux_dr_set): Likewise.
11506 (update_debug_registers_callback): Likewise.
11507 (x86_linux_dr_set_addr): Likewise.
11508 (x86_linux_dr_get_addr): Likewise.
11509 (x86_linux_dr_set_control): Likewise.
11510 (x86_linux_dr_get_control): Likewise.
11511 (x86_linux_dr_get_status): Likewise.
11512 (x86_linux_prepare_to_resume): Likewise.
11514 2015-03-24 Gary Benson <gbenson@redhat.com>
11516 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11517 Use perror_with_name. Pass string through gettext.
11518 (x86_linux_dr_set): Likewise.
11520 2015-03-24 Gary Benson <gbenson@redhat.com>
11522 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11523 (x86_linux_dr_set_addr): ...this.
11524 (x86_dr_low_get_addr): Rename to...
11525 (x86_linux_dr_get_addr): ...this.
11526 (x86_dr_low_set_control): Rename to...
11527 (x86_linux_dr_set_control): ...this.
11528 (x86_dr_low_get_control): Rename to...
11529 (x86_linux_dr_get_control): ...this.
11530 (x86_dr_low_get_status): Rename to...
11531 (x86_linux_dr_get_status): ...this.
11532 (x86_dr_low): Update with new function names.
11534 2015-03-24 Gary Benson <gbenson@redhat.com>
11536 * Makefile.in (x86-linux.o): New rule.
11537 * configure.srv: Add x86-linux.o to relevant targets.
11538 * linux-low.c (lwp_set_arch_private_info): New function.
11539 (lwp_arch_private_info): Likewise.
11540 * linux-x86-low.c: Include nat/x86-linux.h.
11541 (arch_lwp_info): Removed structure.
11542 (update_debug_registers_callback):
11543 Use lwp_set_debug_registers_changed.
11544 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11545 and lwp_set_debug_registers_changed.
11546 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11548 2015-03-24 Gary Benson <gbenson@redhat.com>
11550 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11551 * linux-arm-low.c (arm_new_thread): Likewise.
11552 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11553 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11554 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11555 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11557 2015-03-24 Gary Benson <gbenson@redhat.com>
11559 * linux-low.c (ptid_of_lwp): New function.
11560 (lwp_is_stopped): Likewise.
11561 (lwp_stop_reason): Likewise.
11562 * linux-x86-low.c (update_debug_registers_callback):
11563 Use lwp_is_stopped.
11564 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11567 2015-03-24 Gary Benson <gbenson@redhat.com>
11569 * linux-low.h (linux_stop_lwp): Remove declaration.
11571 2015-03-24 Gary Benson <gbenson@redhat.com>
11573 * linux-low.h: Include nat/linux-nat.h.
11574 * linux-low.c (iterate_over_lwps_args): New structure.
11575 (iterate_over_lwps_filter): New function.
11576 (iterate_over_lwps): Likewise.
11577 * linux-x86-low.c (update_debug_registers_callback):
11578 Update signature to what iterate_over_lwps expects.
11579 Remove PID check that iterate_over_lwps now performs.
11580 (x86_dr_low_set_addr): Use iterate_over_lwps.
11581 (x86_dr_low_set_control): Likewise.
11583 2015-03-24 Gary Benson <gbenson@redhat.com>
11585 * linux-x86-low.c (x86_debug_reg_state): New function.
11586 (x86_linux_prepare_to_resume): Use the above.
11588 2015-03-24 Gary Benson <gbenson@redhat.com>
11590 * linux-low.c (current_lwp_ptid): New function.
11591 * linux-x86-low.c: Include nat/linux-nat.h.
11592 (x86_dr_low_get_addr): Use current_lwp_ptid.
11593 (x86_dr_low_get_control): Likewise.
11594 (x86_dr_low_get_status): Likewise.
11596 2015-03-20 Pedro Alves <palves@redhat.com>
11598 * tracepoint.c (cmd_qtstatus): Make "str" const.
11600 2015-03-20 Pedro Alves <palves@redhat.com>
11602 * server.c (handle_general_set): Make "req_str" const.
11604 2015-03-19 Pedro Alves <palves@redhat.com>
11606 * linux-low.c (linux_resume_one_lwp): Rename to ...
11607 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11608 instead call perror_with_name.
11609 (check_ptrace_stopped_lwp_gone): New function.
11610 (linux_resume_one_lwp): Reimplement as wrapper around
11611 linux_resume_one_lwp_throw that swallows errors if the LWP is
11614 2015-03-19 Pedro Alves <palves@redhat.com>
11616 * linux-low.c (count_events_callback, select_event_lwp_callback):
11617 No longer check whether the thread has resume_stop as last resume
11620 2015-03-19 Pedro Alves <palves@redhat.com>
11622 * linux-low.c (count_events_callback, select_event_lwp_callback):
11623 Use the lwp's status_pending_p field, not the thread's.
11625 2015-03-19 Pedro Alves <palves@redhat.com>
11627 * linux-low.c (select_event_lwp_callback): Update comments to
11628 no longer mention SIGTRAP.
11630 2015-03-18 Gary Benson <gbenson@redhat.com>
11632 * server.c (handle_query): Do not report vFile:fstat as supported.
11634 2015-03-11 Gary Benson <gbenson@redhat.com>
11636 * hostio.c (sys/types.h): New include.
11637 (sys/stat.h): Likewise.
11638 (common-remote-fileio.h): Likewise.
11639 (handle_fstat): New function.
11640 (handle_vFile): Handle vFile:fstat packets.
11642 2015-03-11 Gary Benson <gbenson@redhat.com>
11644 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11645 struct stat.st_blocks and struct stat.st_blksize.
11646 * configure: Regenerate.
11647 * config.in: Likewise.
11648 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11649 (OBS): Add common-remote-fileio.o.
11650 (common-remote-fileio.o): New rule.
11652 2015-03-09 Pedro Alves <palves@redhat.com>
11654 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11655 'struct sockaddr' pointer in 'accept' call.
11657 2015-03-09 Pedro Alves <palves@redhat.com>
11660 2015-03-07 Pedro Alves <palves@redhat.com>
11661 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11662 or <winsock2.h> here. Instead include "gdb_socket.h".
11663 (remote_open): Use union gdb_sockaddr_u.
11664 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11665 or <winsock2.h> here. Instead include "gdb_socket.h".
11666 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11667 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11669 (init_named_socket, gdb_agent_helper_thread): Use union
11672 2015-03-07 Pedro Alves <palves@redhat.com>
11674 * configure.ac (build_warnings): Move
11675 -Wdeclaration-after-statement to the C-specific set.
11676 * configure: Regenerate.
11678 2015-03-07 Pedro Alves <palves@redhat.com>
11680 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11681 or <winsock2.h> here. Instead include "gdb_socket.h".
11682 (remote_open): Use union gdb_sockaddr_u.
11683 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11684 or <winsock2.h> here. Instead include "gdb_socket.h".
11685 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11686 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11688 (init_named_socket, gdb_agent_helper_thread): Use union
11691 2015-03-07 Pedro Alves <palves@redhat.com>
11693 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11696 2015-03-06 Yao Qi <yao.qi@linaro.org>
11698 * linux-aarch64-low.c (aarch64_insert_point): Use
11699 show_debug_regs as a boolean.
11700 (aarch64_remove_point): Likewise.
11702 2015-03-05 Pedro Alves <palves@redhat.com>
11704 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11705 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11706 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11707 * nto-low.c (nto_target_ops): Likewise.
11708 * spu-low.c (spu_target_ops): Likewise.
11709 * win32-low.c (win32_target_ops): Likewise.
11711 2015-03-04 Pedro Alves <palves@redhat.com>
11713 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11714 Decide whether a breakpoint triggered based on the SIGTRAP's
11716 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11717 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11718 (linux_low_filter_event): Check for breakpoints before checking
11720 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11722 (linux_stopped_by_sw_breakpoint)
11723 (linux_supports_stopped_by_sw_breakpoint)
11724 (linux_stopped_by_hw_breakpoint)
11725 (linux_supports_stopped_by_hw_breakpoint): New functions.
11726 (linux_target_ops): Install new target methods.
11728 2015-03-04 Pedro Alves <palves@redhat.com>
11730 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11731 * server.c (swbreak_feature, hwbreak_feature): New globals.
11732 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11733 (captured_main): Clear swbreak_feature and hwbreak_feature.
11734 * server.h (swbreak_feature, hwbreak_feature): Declare.
11735 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11736 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11737 supports_stopped_by_hw_breakpoint>: New fields.
11738 (target_supports_stopped_by_sw_breakpoint)
11739 (target_stopped_by_sw_breakpoint)
11740 (target_supports_stopped_by_hw_breakpoint)
11741 (target_stopped_by_hw_breakpoint): Declare.
11743 2015-03-04 Pedro Alves <palves@redhat.com>
11745 enum lwp_stop_reason -> enum target_stop_reason
11746 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11747 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11748 (linux_wait_1, stuck_in_jump_pad_callback)
11749 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11750 (linux_stopped_by_watchpoint):
11751 * linux-low.h (enum lwp_stop_reason): Delete.
11752 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11753 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11755 2015-03-04 Yao Qi <yao.qi@linaro.org>
11757 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11759 2015-03-03 Gary Benson <gbenson@redhat.com>
11761 * hostio.c (handle_vFile): Fix prefix lengths.
11763 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11765 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11768 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11770 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11771 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11772 (clean): Add "rm -f" for above C files.
11773 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11774 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11775 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11776 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11777 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11778 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11779 (init_registers_s390x_vx_linux64)
11780 (init_registers_s390x_tevx_linux64)
11781 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11782 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11784 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11785 (s390_store_vxrs_high): New functions.
11786 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11788 (s390_arch_setup): Add logic for selecting one of the new target
11789 descriptions. Activate the new vector regsets if applicable.
11790 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11791 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11792 and init_registers_s390x_tevx_linux64.
11794 2015-03-01 Pedro Alves <palves@redhat.com>
11796 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11799 2015-02-27 Pedro Alves <palves@redhat.com>
11801 * linux-x86-low.c (u_debugreg_offset): New function.
11802 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11804 2015-02-27 Pedro Alves <palves@redhat.com>
11806 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11807 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11808 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11809 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11810 (ps_lsetfpregs, ps_getpid)
11811 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11812 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11813 (ps_lsetxregs, ps_plog): Declare.
11815 2015-02-27 Pedro Alves <palves@redhat.com>
11817 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11818 IP_AGENT_EXPORT_FUNC.
11819 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11820 IP_AGENT_EXPORT_FUNC.
11821 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11822 (IP_AGENT_EXPORT): Delete.
11823 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11824 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11825 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11826 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11827 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11828 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11829 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11830 (traceframe_read_count, traceframe_write_count)
11831 (traceframes_created, trace_state_variables, get_raw_reg)
11832 (get_trace_state_variable_value, set_trace_state_variable_value)
11833 (ust_loaded, helper_thread_id, cmd_buf): Use
11834 IPA_SYM_EXPORTED_NAME.
11835 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11836 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11837 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11838 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11839 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11840 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11841 EXTERN_C_PUSH/EXTERN_C_POP.
11842 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11843 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11844 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11845 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11846 (traceframe_write_count, traceframe_read_count)
11847 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11848 (about_to_request_buffer_space, get_trace_state_variable_value)
11849 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11850 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11851 EXTERN_C_PUSH/EXTERN_C_POP.
11852 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11853 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11854 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11855 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11856 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11857 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11858 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11859 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11861 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11862 (IP_AGENT_EXPORT_VAR_DECL): Define.
11863 (tracing): Declare.
11864 (gdb_agent_get_raw_reg): Declare.
11866 2015-02-27 Tom Tromey <tromey@redhat.com>
11867 Pedro Alves <palves@redhat.com>
11869 Rename symbols whose names are reserved C++ keywords throughout.
11871 2015-02-27 Pedro Alves <palves@redhat.com>
11873 * Makefile.in (COMPILER): New, get it from autoconf.
11874 (CXX): Get from autoconf instead.
11875 (COMPILE.pre): Use COMPILER.
11876 (CC-LD): Rename to ...
11877 (CC_LD): ... this. Use COMPILER.
11878 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11879 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11880 * acinclude.m4: Include build-with-cxx.m4.
11881 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11882 Disable -Werror by default if building in C++ mode.
11883 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11884 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
11885 the C++ compiler. Save/restore CXXFLAGS too.
11886 * configure: Regenerate.
11888 2015-02-27 Pedro Alves <palves@redhat.com>
11890 * acinclude.m4: Include libiberty.m4.
11891 * configure.ac: Call libiberty_INIT.
11892 * config.in, configure: Regenerate.
11894 2015-02-26 Pedro Alves <palves@redhat.com>
11896 * linux-low.c (linux_wait_1): When incrementing the PC past a
11897 program breakpoint always use the_low_target.breakpoint_len as
11898 increment, rather than the maximum between that and
11899 the_low_target.decr_pc_after_break.
11901 2015-02-23 Pedro Alves <palves@redhat.com>
11903 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
11904 thread was doing a step-over; always adjust the PC if
11905 we stepped over a permanent breakpoint.
11906 (linux_wait_1): If we stepped over breakpoint that was on top of a
11907 permanent breakpoint, manually advance the PC past it.
11909 2015-02-23 Pedro Alves <palves@redhat.com>
11911 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
11913 (x86_fill_gregset, x86_store_gregset): Use it when handling
11916 2015-02-20 Pedro Alves <palves@redhat.com>
11918 * thread-db.c: Include "nat/linux-procfs.h".
11919 (thread_db_init): Skip listing new threads if the kernel supports
11920 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
11922 2015-02-20 Pedro Alves <palves@redhat.com>
11924 * linux-low.c (status_pending_p_callback): Use ptid_match.
11926 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11928 PR breakpoints/16812
11929 * linux-low.c (wstatus_maybe_breakpoint): Remove.
11930 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
11931 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
11933 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11935 PR breakpoints/15956
11936 * tracepoint.c (cmd_qtinit): Add check for current_thread.
11938 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11940 * linux-low.c (linux_low_btrace_conf): Print size.
11941 * server.c (handle_btrace_conf_general_set): New.
11942 (hanle_general_set): Call handle_btrace_conf_general_set.
11943 (handle_query): Report Qbtrace-conf:bts:size as supported.
11945 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11947 * linux-low.c (linux_low_enable_btrace): Update parameters.
11948 (linux_low_btrace_conf): New.
11949 (linux_target_ops)<to_btrace_conf>: Initialize.
11950 * server.c (current_btrace_conf): New.
11951 (handle_btrace_enable): Rename to ...
11952 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
11953 to target_enable_btrace. Update comment. Update users.
11954 (handle_qxfer_btrace_conf): New.
11955 (qxfer_packets): Add btrace-conf entry.
11956 (handle_query): Report qXfer:btrace-conf:read as supported packet.
11957 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
11958 (target_ops)<read_btrace_conf>: New.
11959 (target_enable_btrace): Update parameters.
11960 (target_read_btrace_conf): New.
11962 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11964 * server.c (handle_btrace_general_set): Remove call to
11965 target_supports_btrace.
11966 (supported_btrace_packets): New.
11967 (handle_query): Call supported_btrace_packets.
11968 * target.h: include btrace-common.h.
11969 (btrace_target_info): Removed.
11970 (supports_btrace, target_supports_btrace): Update parameters.
11972 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11974 * Makefile.in (SFILES): Add common/btrace-common.c.
11975 (OBS): Add common/btrace-common.o.
11976 (btrace-common.o): Add build rules.
11977 * linux-low: Include btrace-common.h.
11978 (linux_low_read_btrace): Use struct btrace_data. Call
11979 btrace_data_init and btrace_data_fini.
11981 2015-02-06 Pedro Alves <palves@redhat.com>
11983 * thread-db.c (find_new_threads_callback): Add debug output.
11985 2015-02-04 Pedro Alves <palves@redhat.com>
11987 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
11988 (resume_stopped_resumed_lwps): New function.
11989 (linux_wait_for_event_filtered): Use it.
11991 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11993 * Makefile.in (SFILES): Add linux-personality.c.
11994 (linux-personality.o): New rule.
11995 * configure.srv (srv_linux_obj): Add linux-personality.o to the
11996 list of objects to be built.
11997 * linux-low.c: Include nat/linux-personality.h.
11998 (linux_create_inferior): Remove code to disable address space
11999 randomization (moved to ../nat/linux-personality.c). Create
12000 cleanup to disable address space randomization.
12002 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12004 * Makefile.in (posix-strerror.o): New rule.
12005 (mingw-strerror.o): Likewise.
12006 * configure: Regenerated.
12007 * configure.ac: Source file ../common/common.host. Initialize new
12008 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12010 2015-01-14 Yao Qi <yao@codesourcery.com>
12012 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12013 (ppc-linux.o): New rule.
12014 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12015 * configure.ac: AC_CHECK_FUNCS(getauxval).
12016 * config.in: Re-generated.
12017 * configure: Re-generated.
12018 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12019 ppc64_64bit_inferior_p
12021 2015-01-14 Yao Qi <yao@codesourcery.com>
12023 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12024 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12025 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12026 (PT_ORIG_R3, PT_TRAP): Likewise.
12027 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12028 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12029 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12031 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12033 * i387-fp.c (i387_cache_to_xsave): In look over
12034 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12035 zmmh_low_space field by use of zmmh_high_space.
12037 2015-01-09 Pedro Alves <palves@redhat.com>
12039 * linux-low.c (step_over_bkpt): Move higher up in the file.
12040 (handle_extended_wait): Don't store the stop_pc here.
12041 (get_stop_pc): Adjust comments and rename to ...
12042 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12043 stopped for a software breakpoint or hardware breakpoint.
12044 (thread_still_has_status_pending_p): New function.
12045 (status_pending_p_callback): Use
12046 thread_still_has_status_pending_p. If the event is no longer
12047 interesting, resume the LWP.
12048 (handle_tracepoints): Add assert.
12049 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12050 (wstatus_maybe_breakpoint): New function.
12051 (cancel_breakpoint): Delete function.
12052 (check_stopped_by_watchpoint): New function, factored out from
12053 linux_low_filter_event.
12054 (lp_status_maybe_breakpoint): Delete function.
12055 (linux_low_filter_event): Remove filter_ptid argument.
12056 Leave thread group exits pending here. Store the LWP's stop PC.
12057 Always leave events pending.
12058 (linux_wait_for_event_filtered): Pull all events out of the
12059 kernel, and leave them all pending.
12060 (count_events_callback, select_event_lwp_callback): Consider all
12062 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12063 (select_event_lwp): Only give preference to the stepping LWP in
12064 all-stop mode. Adjust comments.
12065 (ignore_event): New function.
12066 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12067 references to cancel_breakpoints. Adjust to renames. Also give
12068 equal priority to all LWPs that have had events in non-stop mode.
12069 If reporting a software breakpoint event, unadjust the LWP's PC.
12070 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12071 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12073 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12074 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12075 (linux_stopped_by_watchpoint): Adjust.
12076 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12077 * linux-low.h (enum lwp_stop_reason): New.
12078 (struct lwp_info) <stop_pc>: Adjust comment.
12079 <stopped_by_watchpoint>: Delete field.
12080 <stop_reason>: New field.
12081 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12082 * mem-break.c (software_breakpoint_inserted_here)
12083 (hardware_breakpoint_inserted_here): New function.
12084 * mem-break.h (software_breakpoint_inserted_here)
12085 (hardware_breakpoint_inserted_here): Declare.
12086 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12087 (cancel_breakpoints): Delete.
12088 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12089 (upload_fast_traceframes): Remove references to
12090 cancel_breakpoints.
12092 2015-01-09 Pedro Alves <palves@redhat.com>
12094 * thread-db.c (find_new_threads_callback): Ignore thread if the
12095 kernel thread ID is -1.
12097 2015-01-09 Pedro Alves <palves@redhat.com>
12099 * linux-low.c (linux_attach_fail_reason_string): Move to
12100 nat/linux-ptrace.c, and rename.
12101 (linux_attach_lwp): Update comment.
12102 (attach_proc_task_lwp_callback): New function.
12103 (linux_attach): Adjust to rename and use
12104 linux_proc_attach_tgid_threads.
12105 (linux_attach_fail_reason_string): Delete declaration.
12107 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12109 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12110 * server.c (gdbserver_version): Likewise.
12112 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12114 * remote-utils.c: Include ctype.h.
12115 (input_interrupt): Explicitly handle the case when the char
12116 received is the NUL byte. Improve the printing of non-ASCII
12119 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12121 * linux-low.c (linux_low_filter_event): Update call to
12122 linux_enable_event_reporting following the addition of
12123 a new parameter to that function.
12125 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12128 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12129 (AARCH64_FPCR_REGNO): Likewise.
12130 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12131 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12132 (aarch64_store_fpregset): Likewise.
12134 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12136 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12137 Remove FIXME comment about assumption about N.
12139 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12141 * configure.ac: If large-file support is disabled in GDBserver,
12142 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12143 * configure: Regenerate.
12145 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12147 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12148 warning upon ENODATA from ptrace.
12149 * linux-s390-low.c (s390_store_tdb): New.
12150 (s390_regsets): Add regset for NT_S390_TDB.
12152 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12154 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12155 without a fill_function.
12156 * linux-s390-low.c (s390_fill_last_break): Remove.
12157 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12158 (s390_arch_setup): Use regset's size instead of fill_function for
12159 loop end condition.
12161 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12163 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12164 the regset's store function when ptrace returned an error.
12165 * regcache.c (get_thread_regcache): Invalidate register cache
12166 before fetching inferior's registers.
12168 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12170 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12171 while-loop as for-loop.
12172 (regsets_store_inferior_registers): Likewise.
12174 2014-11-28 Yao Qi <yao@codesourcery.com>
12176 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12177 * config.in, configure: Re-generate.
12178 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12181 2014-11-21 Yao Qi <yao@codesourcery.com>
12183 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12184 (AC_CHECK_HEADERS): Remove malloc.h.
12185 * configure: Re-generated.
12186 * config.in: Re-generated.
12187 * server.h: Don't include alloca.h and malloc.h.
12188 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12189 Don't include malloc.h.
12191 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12193 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12194 corresponding ERRNO check in same block.
12196 2014-11-12 Pedro Alves <palves@redhat.com>
12198 * server.c (cont_thread): Update comment.
12199 (start_inferior, attach_inferior): No longer clear cont_thread.
12200 (handle_v_cont): No longer set cont_thread.
12201 (captured_main): Clear cont_thread each time a GDB connects.
12203 2014-11-12 Pedro Alves <palves@redhat.com>
12205 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12206 thread, and don't resume all threads if the Hc thread has exited.
12208 2014-11-12 Pedro Alves <palves@redhat.com>
12210 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12211 the process group instead of to a specific LWP.
12213 2014-10-15 Pedro Alves <palves@redhat.com>
12216 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12218 (arm_set_thread_context): Delete.
12219 (the_low_target): Adjust.
12220 * win32-i386-low.c (debug_registers_changed)
12221 (debug_registers_used): Delete.
12222 (update_debug_registers_callback): New function.
12223 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12224 needing to update their debug registers.
12225 (win32_get_current_dr): New function.
12226 (x86_dr_low_get_addr, x86_dr_low_get_control)
12227 (x86_dr_low_get_status): Fetch the debug register from the thread
12229 (i386_initial_stuff): Adjust.
12230 (i386_get_thread_context): Remove current_event parameter. Don't
12231 clear debug_registers_changed nor copy DR values to
12233 (i386_set_thread_context): Delete.
12234 (i386_prepare_to_resume): New function.
12235 (i386_thread_added): Mark the thread as needing to update irs
12237 (the_low_target): Remove i386_set_thread_context and install
12238 i386_prepare_to_resume.
12239 * win32-low.c (win32_get_thread_context): Adjust.
12240 (win32_set_thread_context): Use SetThreadContext
12242 (win32_prepare_to_resume): New function.
12243 (win32_require_context): New function, factored out from ...
12244 (thread_rec): ... this.
12245 (continue_one_thread): Call win32_prepare_to_resume on each thread
12246 we're about to continue.
12247 (win32_resume): Call win32_prepare_to_resume on the event thread.
12248 * win32-low.h (struct win32_thread_info)
12249 <debug_registers_changed>: New field.
12250 (struct win32_target_ops): Change prototype of set_thread_context,
12251 delete set_thread_context and add prepare_to_resume.
12252 (win32_require_context): New declaration.
12254 2014-10-08 Gary Benson <gbenson@redhat.com>
12256 * server.h: Do not include common-exceptions.h.
12258 2014-10-08 Gary Benson <gbenson@redhat.com>
12260 * server.h: Do not include cleanups.h.
12262 2014-09-30 James Hogan <james.hogan@imgtec.com>
12264 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12265 mips64-dsp-linux.c.
12267 2014-09-23 Yao Qi <yao@codesourcery.com>
12269 * linux-low.c (lp_status_maybe_breakpoint): New function.
12270 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12271 (count_events_callback): Likewise.
12272 (select_event_lwp_callback): Likewise.
12273 (cancel_breakpoints_callback): Likewise.
12275 2014-09-19 Don Breazeal <donb@codesourcery.com>
12277 * linux-low.c (handle_extended_wait): Call
12278 linux_ptrace_get_extended_event.
12279 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12280 linux_is_extended_waitstatus.
12282 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12284 * Makefile.in (CPPFLAGS): Define.
12285 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12286 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12288 2014-09-16 Gary Benson <gbenson@redhat.com>
12290 * inferiors.h (current_inferior): Renamed as...
12291 (current_thread): New variable. All uses updated.
12292 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12293 (maybe_move_out_of_jump_pad): Likewise.
12294 (cancel_breakpoint): Likewise.
12295 (linux_low_filter_event): Likewise.
12296 (wait_for_sigstop): Likewise.
12297 (linux_resume_one_lwp): Likewise.
12298 (need_step_over_p): Likewise.
12299 (start_step_over): Likewise.
12300 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12301 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12302 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12303 and save_inferior as saved_thread.
12304 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12306 (regcache_invalidate_thread): Likewise.
12307 * remote-utils.c (prepare_resume_reply): Likewise.
12308 * thread-db.c (thread_db_get_tls_address): Likewise.
12309 (disable_thread_event_reporting): Likewise.
12310 (remove_thread_event_breakpoints): Likewise.
12311 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12313 * target.h (set_desired_inferior): Renamed as...
12314 (set_desired_thread): New declaration. All uses updated.
12315 * server.c (myresume): Updated comment to reference thread instead
12317 (handle_serial_event): Likewise.
12318 (handle_target_event): Likewise.
12320 2014-09-12 Tom Tromey <tromey@redhat.com>
12321 Gary Benson <gbenson@redhat.com>
12323 * regcache.h: Include common-regcache.h.
12324 (regcache_read_pc): Don't declare.
12325 * regcache.c (get_thread_regcache_for_ptid): New function.
12327 2014-09-11 Tom Tromey <tromey@redhat.com>
12328 Gary Benson <gbenson@redhat.com>
12330 * symbol.c: New file.
12331 * Makefile.in (SFILES): Add symbol.c.
12332 (OBS): Add symbol.o.
12334 2014-09-11 Gary Benson <gbenson@redhat.com>
12336 * target.c (target_stop_ptid, target_continue_ptid): New
12339 2014-09-11 Tom Tromey <tromey@redhat.com>
12340 Gary Benson <gbenson@redhat.com>
12342 * target.h: Include target/target.h.
12343 * target.c (target_read_memory, target_read_uint32)
12344 (target_write_memory): New functions.
12346 2014-09-11 Gary Benson <gbenson@redhat.com>
12348 * server.h (debug_hw_points): Don't declare.
12349 * server.c (debug_hw_points): Don't define. Replace all uses
12350 with show_debug_regs.
12351 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12352 all uses with show_debug_regs.
12354 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12356 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12357 endianness into account.
12358 (ppc_supply_ptrace_register): Likewise.
12360 2014-09-03 James Hogan <james.hogan@imgtec.com>
12362 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12363 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12365 2014-09-03 Gary Benson <gbenson@redhat.com>
12367 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12368 ALL_DEBUG_ADDRESS_REGISTERS.
12370 2014-09-02 Gary Benson <gbenson@redhat.com>
12372 * i386-low.h: Renamed as...
12373 * x86-low.h: New file. All type, function and variable name
12374 prefixes changed from "i386_" to "x86_". All references updated.
12375 * i386-low.c: Renamed as...
12376 * x86-low.c: New file. All type, function and variable name
12377 prefixes changed from "i386_" to "x86_". All references updated.
12379 2014-09-02 Gary Benson <gbenson@redhat.com>
12381 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12382 (x86_linux_new_thread): Likewise.
12384 2014-08-29 Gary Benson <gbenson@redhat.com>
12386 * server.h (setjmp.h): Do not include.
12387 (toplevel): Do not declare.
12388 (common-exceptions.h): Include.
12389 (cleanups.h): Likewise.
12390 * server.c (toplevel): Do not define.
12391 (exit_code): New static global.
12392 (detach_or_kill_for_exit_cleanup): New function.
12393 (main): New function. Original main renamed to...
12394 (captured_main): New function.
12395 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12397 2014-08-29 Gary Benson <gbenson@redhat.com>
12399 * Makefile.in (SFILES): Add common/common-exceptions.c.
12400 (OBS): Add common-exceptions.o.
12401 (common-exceptions.o): New rule.
12402 * utils.c (prepare_to_throw_exception): New function.
12404 2014-08-29 Gary Benson <gbenson@redhat.com>
12406 * config.in: Regenerate.
12407 * configure: Likewise.
12409 2014-08-29 Gary Benson <gbenson@redhat.com>
12411 * Makefile.in (SFILES): Add common/cleanups.c.
12413 (cleanups.o): New rule.
12415 2014-08-29 Gary Benson <gbenson@redhat.com>
12417 * utils.c (internal_vwarning): New function.
12419 2014-08-28 Gary Benson <gbenson@redhat.com>
12421 * utils.h (fatal): Remove declaration.
12422 * utils.c (fatal): Remove function.
12424 2014-08-28 Gary Benson <gbenson@redhat.com>
12426 * tracepoint.c (gdb_agent_init): Replace fatal with
12428 (initialize_tracepoint): Likewise.
12430 2014-08-28 Gary Benson <gbenson@redhat.com>
12432 * remote-utils.c (remote_prepare): Replace fatal with error.
12434 2014-08-28 Gary Benson <gbenson@redhat.com>
12436 * linux-low.c (linux_async): Replace fatal with warning.
12437 Tidy up and return.
12438 (linux_start_non_stop): Return -1 if linux_async failed.
12440 2014-08-28 Gary Benson <gbenson@redhat.com>
12442 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12444 (i386_dr_low_get_addr): Remove vague comment.
12445 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12448 2014-08-28 Gary Benson <gbenson@redhat.com>
12450 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12451 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12453 (linux_resume_one_lwp): Likewise.
12454 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12456 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12457 with internal_error.
12458 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12459 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12460 (find_register_by_name): Replace fatal with internal_error.
12461 (find_regno): Likewise.
12462 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12463 * thread-db.c (thread_db_create_event): Likewise.
12464 (thread_db_load_search): Likewise.
12465 (try_thread_db_load_1): Likewise.
12466 * tracepoint.c (get_jump_space_head): Replace fatal with
12468 (claim_trampoline_space): Likewise.
12469 (have_fast_tracepoint_trampoline_buffer): Likewise.
12470 (cmd_qtstart): Likewise.
12471 (stop_tracing): Likewise.
12472 (fast_tracepoint_collecting): Likewise.
12473 (target_malloc): Likewise.
12474 (download_tracepoint): Likewise.
12475 (download_trace_state_variables): Replace check with gdb_assert.
12476 (upload_fast_traceframes): Replace fatal with internal_error.
12478 2014-08-19 Tom Tromey <tromey@redhat.com>
12479 Gary Benson <gbenson@redhat.com>
12481 * Makefile.in (SFILES): Add common/common-debug.c.
12482 (OBS): Add common-debug.o.
12483 (common-debug.o): New rule.
12484 * debug.h (debug_printf): Don't declare.
12485 * debug.c (debug_printf): Renamed and rewritten as...
12486 (debug_vprintf): New function.
12488 2014-08-19 Gary Benson <gbenson@redhat.com>
12490 * utils.h: Do not include print-utils.h.
12492 2014-08-19 Tom Tromey <tromey@redhat.com>
12493 Gary Benson <gbenson@redhat.com>
12495 * server.h: Add static assertion.
12496 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12498 2014-08-19 Tom Tromey <tromey@redhat.com>
12499 Gary Benson <gbenson@redhat.com>
12501 * Makefile.in (SFILES): Add common/errors.c.
12502 (OBS): Add errors.o.
12503 (IPA_OBS): Add errors-ipa.o.
12504 (errors.o): New rule.
12505 (errors-ipa.o): Likewise.
12506 * utils.h (perror_with_name, error, warning): Don't declare.
12507 * utils.c (warning): Renamed and rewritten as...
12508 (vwarning): New function.
12509 (error): Renamed and rewritten as...
12510 (verror): New function.
12511 (internal_error): Renamed and rewritten as...
12512 (internal_verror): New function.
12514 2014-08-07 Gary Benson <gbenson@redhat.com>
12516 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12517 * configure: Regenerate.
12518 * config.in: Likewise.
12519 * server.h: Do not include errno.h.
12520 * event-loop.c: Likewise.
12521 * hostio-errno.c: Likewise.
12522 * linux-low.c: Likewise.
12523 * remote-utils.c: Likewise.
12524 * spu-low.c: Likewise.
12525 * utils.c: Likewise.
12526 * gdbreplay.c: Unconditionally include errno.h.
12528 2014-08-07 Gary Benson <gbenson@redhat.com>
12530 * server.h: Do not include string.h.
12531 * event-loop.c: Likewise.
12532 * linux-low.c: Likewise.
12533 * regcache.c: Likewise.
12534 * remote-utils.c: Likewise.
12535 * spu-low.c: Likewise.
12536 * utils.c: Likewise.
12538 2014-08-07 Gary Benson <gbenson@redhat.com>
12540 * server.h: Do not include gdb_assert.h.
12542 2014-08-07 Gary Benson <gbenson@redhat.com>
12544 * server.h: Do not include common-utils.h.
12546 2014-08-07 Gary Benson <gbenson@redhat.com>
12548 * server.h: Do not include ptid.h.
12549 * notif.h: Likewise.
12551 2014-08-07 Gary Benson <gbenson@redhat.com>
12553 * server.h: Do not include gdb_locale.h.
12555 2014-08-07 Gary Benson <gbenson@redhat.com>
12557 * server.h: Do not include gdb/signals.h.
12558 * win32-low.c: Likewise.
12560 2014-08-07 Gary Benson <gbenson@redhat.com>
12562 * server.h: Do not include pathmax.h.
12564 2014-08-07 Gary Benson <gbenson@redhat.com>
12566 * server.h: Do not include libiberty.h.
12567 * linux-bfin-low.c: Likewise.
12569 2014-08-07 Gary Benson <gbenson@redhat.com>
12571 * server.h: Do not include ansidecl.h.
12573 2014-08-07 Gary Benson <gbenson@redhat.com>
12575 * linux-x86-low.c: Do not include stddef.h.
12576 * lynx-ppc-low.c: Likewise.
12577 * tracepoint.c: Likewise.
12579 2014-08-07 Gary Benson <gbenson@redhat.com>
12581 * server.h: Do not include stdarg.h.
12582 * nto-low.c: Likewise.
12584 2014-08-07 Gary Benson <gbenson@redhat.com>
12586 * server.h: Do not include stdlib.h.
12587 * inferiors.c: Likewise.
12588 * linux-low.c: Likewise.
12589 * regcache.c: Likewise.
12590 * spu-low.c: Likewise.
12591 * tracepoint.c: Likewise.
12592 * utils.c: Likewise.
12594 2014-08-07 Gary Benson <gbenson@redhat.com>
12596 * server.h: Do not include stdio.h.
12597 * linux-low.c: Likewise.
12598 * remote-utils.c: Likewise.
12599 * spu-low.c: Likewise.
12600 * utils.c: Likewise.
12601 * wincecompat.c: Likewise.
12603 2014-08-06 Gary Benson <gbenson@redhat.com>
12605 * regcache.c (init_register_cache): Move conditionals inside if.
12607 2014-08-06 Gary Benson <gbenson@redhat.com>
12609 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12611 2014-07-31 Gary Benson <gbenson@redhat.com>
12613 * ax.h: Do not include server.h.
12614 * gdbthread.h: Likewise.
12615 * lynx-low.h: Likewise.
12616 * notif.h: Likewise.
12618 2014-07-30 Gary Benson <gbenson@redhat.com>
12620 * server.h: Include common-defs.h.
12621 Do not include config.h or build-gnulib-gdbserver/config.h.
12623 2014-07-30 Gary Benson <gbenson@redhat.com>
12625 * hostio-errno.c: Move server.h to top of includes list.
12626 * inferiors.c: Likewise.
12627 * linux-x86-low.c: Likewise.
12628 * notif.c: Include server.h.
12630 2014-07-24 Tom Tromey <tromey@redhat.com>
12631 Gary Benson <gbenson@redhat.com>
12633 * server.h (CORE_ADDR): Now unsigned.
12635 2014-07-16 Pedro Alves <palves@redhat.com>
12637 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12639 2014-07-15 Pedro Alves <palves@redhat.com>
12641 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12644 2014-07-11 Pedro Alves <palves@redhat.com>
12646 * linux-low.c (kill_wait_lwp): New function, based on
12647 kill_one_lwp_callback, but use my_waitpid directly.
12648 (kill_one_lwp_callback, linux_kill): Use it.
12650 2014-06-23 Pedro Alves <palves@redhat.com>
12652 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12653 before setting DR0..DR3.
12655 2014-06-20 Gary Benson <gbenson@redhat.com>
12657 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12658 * configure: Regenerated.
12659 * config.in: Likewise.
12661 2014-06-20 Gary Benson <gbenson@redhat.com>
12663 * Makefile.in (SFILES): Update locations for files moved
12664 from common to nat.
12665 (object file files): Reordered.
12667 2014-06-20 Gary Benson <gbenson@redhat.com>
12669 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12670 (i386_dr_low_set_addr): Likewise.
12671 (i386_dr_low_get_addr): Likewise.
12672 (i386_dr_low_can_set_control): Likewise.
12673 (i386_dr_low_set_control): Likewise.
12674 (i386_dr_low_get_control): Likewise.
12675 (i386_dr_low_get_status): Likewise.
12676 (i386_get_debug_register_length): Likewise.
12677 * linux-x86-low.c (i386_dr_low_set_addr):
12678 Changed signature. Made static.
12679 (i386_dr_low_get_addr): Likewise.
12680 (i386_dr_low_set_control): Likewise.
12681 (i386_dr_low_get_control): Likewise.
12682 (i386_dr_low_get_status): Likewise.
12683 (i386_dr_low): New global variable.
12684 * win32-i386-low.c (i386_dr_low_set_addr):
12685 Changed signature. Made static.
12686 (i386_dr_low_get_addr): Likewise.
12687 (i386_dr_low_set_control): Likewise.
12688 (i386_dr_low_get_control): Likewise.
12689 (i386_dr_low_get_status): Likewise.
12690 (i386_dr_low): New global variable.
12692 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12694 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12695 * Makefile.in (AR, AR_FLAGS): Define.
12696 * configure: Regenerate.
12698 2014-06-19 Gary Benson <gbenson@redhat.com>
12700 * Makefile.in (i386-dregs.o): New rule.
12701 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12702 * i386-low.c (target.h): Remove include.
12703 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12704 (DR_CONTROL_SHIFT): Likewise.
12705 (DR_CONTROL_SIZE): Likewise.
12706 (DR_RW_EXECUTE): Likewise.
12707 (DR_RW_WRITE): Likewise.
12708 (DR_RW_READ): Likewise.
12709 (DR_RW_IORW): Likewise.
12710 (DR_LEN_1): Likewise.
12711 (DR_LEN_2): Likewise.
12712 (DR_LEN_4): Likewise.
12713 (DR_LEN_8): Likewise.
12714 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12715 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12716 (DR_ENABLE_SIZE): Likewise.
12717 (DR_LOCAL_SLOWDOWN): Likewise.
12718 (DR_GLOBAL_SLOWDOWN): Likewise.
12719 (DR_CONTROL_RESERVED): Likewise.
12720 (I386_DR_CONTROL_MASK): Likewise.
12721 (I386_DR_VACANT): Likewise.
12722 (I386_DR_LOCAL_ENABLE): Likewise.
12723 (I386_DR_GLOBAL_ENABLE): Likewise.
12724 (I386_DR_DISABLE): Likewise.
12725 (I386_DR_SET_RW_LEN): Likewise.
12726 (I386_DR_GET_RW_LEN): Likewise.
12727 (I386_DR_WATCH_HIT): Likewise.
12728 (i386_wp_op_t): Likewise.
12729 (i386_show_dr): Likewise.
12730 (i386_length_and_rw_bits): Likewise.
12731 (i386_insert_aligned_watchpoint): Likewise.
12732 (i386_remove_aligned_watchpoint): Likewise.
12733 (i386_handle_nonaligned_watchpoint): Likewise.
12734 i386_update_inferior_debug_regs(): Likewise.
12735 (i386_dr_insert_watchpoint): Likewise.
12736 (i386_dr_remove_watchpoint): Likewise.
12737 (i386_dr_region_ok_for_watchpoint): Likewise.
12738 (i386_dr_stopped_data_address): Likewise.
12739 (i386_dr_stopped_by_watchpoint): Likewise.
12741 2014-06-19 Gary Benson <gbenson@redhat.com>
12743 * i386-low.c (i386_dr_show): Renamed to
12744 i386_show_dr and made static. All uses updated.
12745 (i386_dr_length_and_rw_bits): Renamed to
12746 i386_length_and_rw_bits and made static.
12748 (i386_dr_insert_aligned_watchpoint): Renamed to
12749 i386_insert_aligned_watchpoint and made static.
12751 (i386_dr_remove_aligned_watchpoint): Renamed to
12752 i386_remove_aligned_watchpoint and made static.
12754 (i386_dr_update_inferior_debug_regs): Renamed to
12755 i386_update_inferior_debug_regs and made static.
12758 2014-06-18 Gary Benson <gbenson@redhat.com>
12760 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12761 (i386_dr_low_can_set_control): Likewise.
12762 (i386_get_debug_register_length): Likewise.
12763 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12764 (i386_dr_low_can_set_control): Likewise.
12765 (i386_get_debug_register_length): Likewise.
12767 2014-06-17 Gary Benson <gbenson@redhat.com>
12769 * i386-low.h (i386-dregs.h): New include.
12770 (DR_FIRSTADDR): Now in i386-dregs.h.
12771 (DR_LASTADDR): Likewise.
12772 (DR_NADDR): Likewise.
12773 (DR_STATUS): Likewise.
12774 (DR_CONTROL): Likewise.
12775 (i386_debug_reg_state): Likewise.
12776 (i386_dr_insert_watchpoint): Likewise.
12777 (i386_dr_remove_watchpoint): Likewise.
12778 (i386_dr_region_ok_for_watchpoint): Likewise.
12779 (i386_dr_stopped_data_address): Likewise.
12780 (i386_dr_stopped_by_watchpoint): Likewise.
12781 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12783 2014-06-18 Gary Benson <gbenson@redhat.com>
12785 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12786 i386_dr_insert_watchpoint.
12787 (i386_low_remove_watchpoint): Renamed to
12788 i386_dr_remove_watchpoint.
12789 (i386_low_region_ok_for_watchpoint): Renamed to
12790 i386_dr_region_ok_for_watchpoint.
12791 (i386_low_stopped_data_address): Renamed to
12792 i386_dr_stopped_data_address.
12793 (i386_low_stopped_by_watchpoint): Renamed to
12794 i386_dr_stopped_by_watchpoint.
12795 * i386-low.c (i386_show_dr): Renamed to
12796 i386_dr_show and made nonstatic. All uses updated.
12797 (i386_length_and_rw_bits): Renamed to
12798 i386_dr_length_and_rw_bits and made nonstatic.
12800 (i386_insert_aligned_watchpoint): Renamed to
12801 i386_dr_insert_aligned_watchpoint and made nonstatic.
12803 (i386_remove_aligned_watchpoint): Renamed to
12804 i386_dr_remove_aligned_watchpoint and made nonstatic.
12806 (i386_update_inferior_debug_regs): Renamed to
12807 i386_dr_update_inferior_debug_regs and made nonstatic.
12809 (i386_low_insert_watchpoint): Renamed to
12810 i386_dr_insert_watchpoint. All uses updated.
12811 (i386_low_remove_watchpoint): Renamed to
12812 i386_dr_remove_watchpoint. All uses updated.
12813 (i386_low_region_ok_for_watchpoint): Renamed to
12814 i386_dr_region_ok_for_watchpoint. All uses updated.
12815 (i386_low_stopped_data_address): Renamed to
12816 i386_dr_stopped_data_address. All uses updated.
12817 (i386_low_stopped_by_watchpoint): Renamed to
12818 i386_dr_stopped_by_watchpoint. All uses updated.
12820 2014-06-18 Gary Benson <gbenson@redhat.com>
12822 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12823 (i386_dr_low_can_set_control): Likewise.
12824 (i386_insert_aligned_watchpoint): New check.
12826 2014-06-18 Gary Benson <gbenson@redhat.com>
12828 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12831 2014-06-18 Gary Benson <gbenson@redhat.com>
12833 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12834 instead of fatal and error.
12835 (i386_handle_nonaligned_watchpoint): Likewise.
12837 2014-06-18 Gary Benson <gbenson@redhat.com>
12839 * i386-low.c (i386_get_debug_register_length): New macro.
12840 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12841 (i386_show_dr): Use debug_printf instead of fprintf. Use
12842 phex to format values.
12844 2014-06-18 Gary Benson <gbenson@redhat.com>
12846 * i386-low.h: Comment changes.
12847 * i386-low.c: Likewise.
12849 2014-06-18 Gary Benson <gbenson@redhat.com>
12851 * i386-low.c: Whitespace changes.
12853 2014-06-12 Tom Tromey <tromey@redhat.com>
12855 * utils.c (freeargv): Remove.
12857 2014-06-12 Tom Tromey <tromey@redhat.com>
12859 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12860 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12861 (parse_debug_format_options): Likewise.
12862 (gdbserver_usage): Likewise.
12863 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12864 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12865 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12867 ($(LIBGNU)): Depend on libiberty.
12868 (all-lib): Recurse into all subdirs.
12869 (install-only): Invoke "install" target in subdirs.
12870 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12872 * configure: Rebuild.
12873 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12874 for vasprintf, vsnprintf, or gettimeofday.
12875 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12878 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12880 * development.sh: Delete.
12881 * Makefile.in (config.status): Adjust dependency on development.sh.
12882 * configure.ac: Adjust development.sh source call.
12883 * configure: Regenerate.
12885 2014-06-02 Pedro Alves <palves@redhat.com>
12887 * ax.c (gdb_free_agent_expr): New function.
12888 * ax.h (gdb_free_agent_expr): New declaration.
12889 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
12891 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
12893 (clear_breakpoint_conditions_and_commands): New function.
12894 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
12895 (clear_breakpoint_conditions_and_commands): New declaration.
12897 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12899 * linux-aarch64-low.c (asm/ptrace.h): Include.
12901 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
12903 Fix TLS access for -static -pthread.
12904 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
12905 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
12906 (thread_db_load_search, try_thread_db_load_1): Initialize it.
12908 2014-05-20 Pedro Alves <palves@redhat.com>
12910 * linux-aarch64-low.c (aarch64_insert_point)
12911 (aarch64_remove_point): No longer check whether the type is
12912 supported here. Adjust to new interface.
12913 (the_low_target): Install aarch64_supports_z_point_type as
12914 supports_z_point_type method.
12915 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
12916 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
12917 instead of a Z packet char. Adjust.
12918 (arm_supports_z_point_type): New function.
12919 (arm_insert_point, arm_remove_point): Adjust to new interface.
12920 (the_low_target): Install arm_supports_z_point_type.
12921 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
12922 (cris_insert_point, cris_remove_point): Adjust to new interface.
12923 Don't check whether the type is supported here.
12924 (the_low_target): Install cris_supports_z_point_type.
12925 * linux-low.c (linux_supports_z_point_type): New function.
12926 (linux_insert_point, linux_remove_point): Adjust to new interface.
12927 * linux-low.h (struct linux_target_ops) <insert_point,
12928 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
12929 raw_breakpoint pointer parameter.
12930 <supports_z_point_type>: New method.
12931 * linux-mips-low.c (mips_supports_z_point_type): New function.
12932 (mips_insert_point, mips_remove_point): Adjust to new interface.
12933 Use mips_supports_z_point_type.
12934 (the_low_target): Install mips_supports_z_point_type.
12935 * linux-ppc-low.c (the_low_target): Install NULL as
12936 supports_z_point_type method.
12937 * linux-s390-low.c (the_low_target): Install NULL as
12938 supports_z_point_type method.
12939 * linux-sparc-low.c (the_low_target): Install NULL as
12940 supports_z_point_type method.
12941 * linux-x86-low.c (x86_supports_z_point_type): New function.
12942 (x86_insert_point): Adjust to new insert_point interface. Use
12943 insert_memory_breakpoint. Adjust to new
12944 i386_low_insert_watchpoint interface.
12945 (x86_remove_point): Adjust to remove_point interface. Use
12946 remove_memory_breakpoint. Adjust to new
12947 i386_low_remove_watchpoint interface.
12948 (the_low_target): Install x86_supports_z_point_type.
12949 * lynx-low.c (lynx_target_ops): Install NULL as
12950 supports_z_point_type callback.
12951 * nto-low.c (nto_supports_z_point_type): New.
12952 (nto_insert_point, nto_remove_point): Adjust to new interface.
12953 (nto_target_ops): Install nto_supports_z_point_type.
12954 * mem-break.c: Adjust intro comment.
12955 (struct raw_breakpoint) <raw_type, size>: New fields.
12956 <inserted>: Update comment.
12957 <shlib_disabled>: Delete field.
12958 (enum bkpt_type) <gdb_breakpoint>: Delete value.
12959 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
12960 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
12961 (raw_bkpt_type_to_target_hw_bp_type): New function.
12962 (find_enabled_raw_code_breakpoint_at): New function.
12963 (find_raw_breakpoint_at): New type and size parameters. Use them.
12964 (insert_memory_breakpoint): New function, based off
12965 set_raw_breakpoint_at.
12966 (remove_memory_breakpoint): New function.
12967 (set_raw_breakpoint_at): Reimplement.
12968 (set_breakpoint): New, based on set_breakpoint_at.
12969 (set_breakpoint_at): Reimplement.
12970 (delete_raw_breakpoint): Go through the_target->remove_point
12971 instead of assuming memory breakpoints.
12972 (find_gdb_breakpoint_at): Delete.
12973 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
12974 (find_gdb_breakpoint): New function.
12975 (set_gdb_breakpoint_at): Delete.
12976 (z_type_supported): New function.
12977 (set_gdb_breakpoint_1): New function, loosely based off
12978 set_gdb_breakpoint_at.
12979 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
12980 (delete_gdb_breakpoint_at): Delete.
12981 (delete_gdb_breakpoint_1): New function, loosely based off
12982 delete_gdb_breakpoint_at.
12983 (delete_gdb_breakpoint): New function.
12984 (clear_gdb_breakpoint_conditions): Rename to ...
12985 (clear_breakpoint_conditions): ... this. Don't handle a NULL
12987 (add_condition_to_breakpoint): Make static.
12988 (add_breakpoint_condition): Take a struct breakpoint pointer
12989 instead of an address. Adjust.
12990 (gdb_condition_true_at_breakpoint): Rename to ...
12991 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
12993 (gdb_condition_true_at_breakpoint): Reimplement.
12994 (add_breakpoint_commands): Take a struct breakpoint pointer
12995 instead of an address. Adjust.
12996 (gdb_no_commands_at_breakpoint): Rename to ...
12997 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
12998 parameter. Return true if no breakpoint was found. Change debug
13000 (gdb_no_commands_at_breakpoint): Reimplement.
13001 (run_breakpoint_commands): Rename to ...
13002 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13003 and change return type to boolean.
13004 (run_breakpoint_commands): New function.
13005 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13006 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13007 breakpoint. Go through the_target->remove_point instead of
13008 assuming memory breakpoint.
13009 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13010 software and hardware breakpoints.
13011 (reinsert_raw_breakpoint): Go through the_target->insert_point
13012 instead of assuming memory breakpoint.
13013 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13014 software and hardware breakpoints.
13015 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13016 Check both software and hardware breakpoints.
13017 (validate_inserted_breakpoint): Assert the breakpoint is a
13018 software breakpoint. Set the inserted flag to -1 instead of
13019 setting shlib_disabled.
13020 (delete_disabled_breakpoints): Adjust.
13021 (validate_breakpoints): Only validate software breakpoints.
13022 Adjust to inserted flag change.
13023 (check_mem_read, check_mem_write): Skip breakpoint types other
13024 than software breakpoints. Adjust to inserted flag change.
13025 * mem-break.h (enum raw_bkpt_type): New enum.
13026 (raw_breakpoint, struct process_info): Forward declare.
13027 (Z_packet_to_target_hw_bp_type): Delete declaration.
13028 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13029 (set_gdb_breakpoint, delete_gdb_breakpoint)
13030 (clear_breakpoint_conditions): New declarations.
13031 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13032 (breakpoint_inserted_here): Update comment.
13033 (add_breakpoint_condition, add_breakpoint_commands): Replace
13034 address parameter with a breakpoint pointer parameter.
13035 (gdb_breakpoint_here): Update comment.
13036 (delete_gdb_breakpoint_at): Delete.
13037 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13038 * server.c (process_point_options): Take a struct breakpoint
13039 pointer instead of an address. Adjust.
13040 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13041 delete_gdb_breakpoint.
13042 * spu-low.c (spu_target_ops): Install NULL as
13043 supports_z_point_type method.
13044 * target.h: Include mem-break.h.
13045 (struct target_ops) <prepare_to_access_memory>: Update comment.
13046 <supports_z_point_type>: New field.
13047 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13048 instead of a char. Also take a raw breakpoint pointer.
13049 * win32-arm-low.c (the_low_target): Install NULL as
13050 supports_z_point_type.
13051 * win32-i386-low.c (i386_supports_z_point_type): New function.
13052 (i386_insert_point, i386_remove_point): Adjust to new interface.
13053 (the_low_target): Install i386_supports_z_point_type.
13054 * win32-low.c (win32_supports_z_point_type): New function.
13055 (win32_insert_point, win32_remove_point): Adjust to new interface.
13056 (win32_target_ops): Install win32_supports_z_point_type.
13057 * win32-low.h (struct win32_target_ops):
13058 <supports_z_point_type>: New method.
13059 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13060 instead of a char. Also take a raw breakpoint pointer.
13062 2014-05-20 Pedro Alves <palves@redhat.com>
13064 * mem-break.h: Include break-common.h.
13065 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13066 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13067 (Z_packet_to_target_hw_bp_type): New declaration.
13068 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13069 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13070 (Z_PACKET_ACCESS_WP): Delete macros.
13071 (Z_packet_to_hw_type): Delete function.
13072 * i386-low.h: Don't include break-common.h here.
13073 (Z_packet_to_hw_type): Delete declaration.
13074 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13075 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13076 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13077 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13078 * linux-aarch64-low.c: Don't include break-common.h here.
13079 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13080 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13081 (Z_packet_to_target_hw_bp_type): Delete function.
13082 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13084 (mips_insert_point, mips_remove_point): Use
13085 Z_packet_to_target_hw_bp_type.
13087 2014-05-20 Pedro Alves <palves@redhat.com>
13089 * linux-aarch64-low.c: Include break-common.h.
13090 (enum target_point_type): Delete.
13091 (Z_packet_to_point_type): Rename to ...
13092 (Z_packet_to_target_hw_bp_type): ... this, and return a
13093 target_hw_bp_type instead.
13094 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13095 instead of an enum target_point_type.
13096 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13098 (aarch64_dr_state_insert_one_point)
13099 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13100 (aarch64_handle_aligned_watchpoint)
13101 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13102 Take an enum target_hw_bp_type instead of an enum
13104 (aarch64_supports_z_point_type): New function.
13105 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13106 use Z_packet_to_target_hw_bp_type.
13108 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13110 * configure.ac: Only use -Werror by default when DEVELOPMENT
13112 * configure: Regenerate.
13114 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13116 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13117 * linux-x86-low.c (X86_64_USER_REGS): New.
13118 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13120 2014-04-28 Yao Qi <yao@codesourcery.com>
13122 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13125 2014-04-25 Pedro Alves <palves@redhat.com>
13128 * linux-low.c (linux_attach_fail_reason_string): New function.
13129 (linux_attach_lwp): Delete.
13130 (linux_attach_lwp_1): Rename to ...
13131 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13132 argument. Remove "initial" parameter. Return int instead of
13133 void. Don't error or warn here.
13134 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13135 failure to attach to the tgid. Call warning when failing to
13137 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13138 argument. Remove "initial" parameter. Return int instead of
13139 void. Don't error or warn here.
13140 (linux_attach_fail_reason_string): New declaration.
13141 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13142 interface change. Use linux_attach_fail_reason_string.
13144 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13145 Walfred Tedeschi <walfred.tedeschi@intel.com>
13147 * Makefile.in: Added rules to handle new files
13148 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13149 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13150 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13151 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13152 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13153 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13154 x32-avx512-linux.o.
13155 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13156 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13157 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13158 i386/x32-avx512.xml.
13159 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13160 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13161 i386/x32-avx512-linux.xml.
13162 * i387-fp.c (num_avx512_k_registers): New constant for number
13164 (num_avx512_zmmh_low_registers): New constant for number of
13165 lower ZMM registers (0-15).
13166 (num_avx512_zmmh_high_registers): New constant for number of
13167 higher ZMM registers (16-31).
13168 (num_avx512_ymmh_registers): New contant for number of higher
13169 YMM registers (ymm16-31 added by avx521 on x86_64).
13170 (num_avx512_xmm_registers): New constant for number of higher
13171 XMM registers (xmm16-31 added by AVX512 on x86_64).
13172 (struct i387_xsave): Add space for AVX512 registers.
13173 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13174 Add code to handle AVX512 registers.
13175 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13176 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13177 prototypei from generated file.
13178 (tdesc_amd64_avx512_linux): Likewise.
13179 (init_registers_x32_avx512_linux): Likewise.
13180 (tdesc_x32_avx512_linux): Likewise.
13181 (init_registers_i386_avx512_linux): Likewise.
13182 (tdesc_i386_avx512_linux): Likewise.
13183 (x86_64_regmap): Add AVX512 registers.
13184 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13186 (initialize_low_arch): Add code to initialize AVX512 registers.
13188 2014-04-23 Pedro Alves <palves@redhat.com>
13190 * mem-break.c (find_gdb_breakpoint_at): Make static.
13191 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13193 2014-04-23 Pedro Alves <palves@redhat.com>
13195 * i386-low.c: Don't include break-common.h here.
13196 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13197 prototype to take target_hw_bp_type as argument instead of a Z
13199 * i386-low.h: Include break-common.h here.
13200 (Z_packet_to_hw_type): Declare.
13201 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13203 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13204 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13205 (x86_remove_point): Convert the packet number to a
13206 target_hw_bp_type before calling i386_low_remove_watchpoint.
13207 * win32-i386-low.c (i386_insert_point): Convert the packet number
13208 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13209 (i386_remove_point): Convert the packet number to a
13210 target_hw_bp_type before calling i386_low_remove_watchpoint.
13212 2014-04-23 Pedro Alves <palves@redhat.com>
13214 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13216 2014-04-10 Pedro Alves <palves@redhat.com>
13218 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13219 Check if the condition or command is NULL before checking if the
13220 breakpoint is known. On success, return true.
13221 * mem-break.h (add_breakpoint_condition): Document return.
13222 (add_breakpoint_commands): Add describing comment.
13223 * server.c (skip_to_semicolon): New function.
13224 (process_point_options): Use it.
13226 2014-04-09 Pedro Alves <palves@redhat.com>
13228 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13231 2014-02-27 Pedro Alves <palves@redhat.com>
13234 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13236 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13238 (last_thread_of_process_p): Take a PID argument instead of a
13240 (linux_wait_for_lwp): Delete.
13241 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13243 (linux_low_filter_event): New function, party factored out from
13244 linux_wait_for_event.
13245 (linux_wait_for_event): Rename to ...
13246 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13247 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13248 sigsuspend. Check for zombie leaders.
13249 (linux_wait_for_event): Reimplement as wrapper around
13250 linux_wait_for_event_filtered.
13251 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13252 a normal or signal exit is seen, it's the whole process exiting.
13253 (wait_for_sigstop): No longer a for_each_inferior callback.
13254 Rewrite on top of linux_wait_for_event_filtered.
13255 (stop_all_lwps): Call wait_for_sigstop directly.
13256 * server.c (resume, handle_target_event): Handle
13257 TARGET_WAITKIND_NO_RESUMED.
13259 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13261 * win32-low.c (psapi_get_dll_name,
13262 * win32_CreateToolhelp32Snapshot): Delete.
13263 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13264 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13266 (handle_load_dll): Add function description.
13267 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13269 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13271 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13273 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13274 base address when calling win32_add_one_solib.
13275 (handle_load_dll): Delete local variable load_addr.
13276 Remove 0x1000 offset applied to DLL base address when calling
13277 win32_add_one_solib.
13278 (handle_unload_dll): Add comment.
13280 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13282 * win32-low.c (win32_add_all_dlls): Renames
13283 win32_ensure_ntdll_loaded. Rewrite function documentation.
13284 Adjust implementation to always load all DLLs.
13285 Add 0x1000 offset to DLL base address when calling
13286 win32_add_one_solib.
13287 (child_initialization_done): New static global.
13288 (do_initial_child_stuff): Set child_initialization_done to
13289 zero during child initialization, and 1 after. Replace call
13290 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13292 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13293 (handle_unload_dll): Add function documentation.
13294 (get_child_debug_event): Ignore load and unload DLL events
13295 during child initialization.
13297 2014-02-20 Doug Evans <dje@google.com>
13299 Remove global all_lwps.
13300 * inferiors.h (ptid_of): Move here from linux-low.h.
13301 (pid_of, lwpid_of): Ditto.
13302 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13303 parameter is a struct thread_info * now.
13304 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13305 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13306 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13308 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13309 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13310 * linux-arm-low.c (update_registers_callback): Update, "entry"
13311 parameter is a struct thread_info * now.
13312 Fetch lwpid from current_inferior directly.
13313 (arm_insert_point): Pass &all_threads to find_inferior instead of
13315 (arm_remove_point): Ditto.
13316 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13317 (arm_prepare_to_resume): Fetch pid from thread.
13318 (arm_read_description): Fetch lwpid from current_inferior directly.
13319 * linux-low.c (all_lwps): Delete.
13320 (delete_lwp): Delete call to remove_inferior.
13321 (handle_extended_wait): Fetch lwpid from thread.
13322 (add_lwp): Don't set lwp->entry.id. Remove call to
13323 add_inferior_to_list.
13324 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13325 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13326 (kill_one_lwp_callback): Ditto.
13327 (linux_kill): Don't dereference NULL pointer.
13328 Fetch ptid,lwpid from thread.
13329 (get_detach_signal): Fetch ptid from thread.
13330 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13331 Simplify call to regcache_invalidate_thread.
13332 (delete_lwp_callback): Update, "entry" parameter is a
13333 struct thread_info * now. Fetch pid from thread.
13334 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13335 (status_pending_p_callback): Update, "entry" parameter is a
13336 struct thread_info * now. Fetch ptid from thread.
13337 (find_lwp_pid): Update, "entry" parameter is a
13338 struct thread_info * now.
13339 (linux_wait_for_lwp): Fetch pid from thread.
13340 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13341 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13342 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13343 (dequeue_one_deferred_signal): Ditto.
13344 (cancel_breakpoint): Fetch ptid from current_inferior.
13345 (linux_wait_for_event): Pass &all_threads to find_inferior,
13346 not &all_lwps. Fetch ptid, lwpid from thread.
13347 (count_events_callback): Update, "entry" parameter is a
13348 struct thread_info * now.
13349 (select_singlestep_lwp_callback): Ditto.
13350 (select_event_lwp_callback): Ditto.
13351 (cancel_breakpoints_callback): Ditto.
13352 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13354 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13355 (unsuspend_one_lwp): Update, "entry" parameter is a
13356 struct thread_info * now.
13357 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13359 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13360 Fetch lwpid from thread, not lwp.
13361 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13362 Pass &all_threads to find_inferior, not &all_lwps.
13363 (send_sigstop): Fetch lwpid from thread, not lwp.
13364 (send_sigstop_callback): Update, "entry" parameter is a
13365 struct thread_info * now.
13366 (suspend_and_send_sigstop_callback): Ditto.
13367 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13368 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13369 struct thread_info * now.
13370 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13372 (lwp_running): Update, "entry" parameter is a
13373 struct thread_info * now.
13374 (stop_all_lwps): Fetch ptid from thread.
13375 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13376 (linux_resume_one_lwp): Fetch lwpid from thread.
13377 (linux_set_resume_request): Update, "entry" parameter is a
13378 struct thread_info * now. Fetch pid, lwpid from thread.
13379 (resume_status_pending_p): Update, "entry" parameter is a
13380 struct thread_info * now.
13381 (need_step_over_p): Ditto. Fetch lwpid from thread.
13382 (start_step_over): Fetch lwpid from thread.
13383 (linux_resume_one_thread): Update, "entry" parameter is a
13384 struct thread_info * now. Fetch lwpid from thread.
13385 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13386 (proceed_one_lwp): Update, "entry" parameter is a
13387 struct thread_info * now. Fetch lwpid from thread.
13388 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13389 struct thread_info * now.
13390 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13391 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13392 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13394 (regsets_store_inferior_registers): Ditto.
13395 (fetch_register, store_register): Ditto.
13396 (linux_read_memory, linux_write_memory): Ditto.
13397 (linux_request_interrupt): Ditto.
13398 (linux_read_auxv): Ditto.
13399 (linux_xfer_siginfo): Ditto.
13400 (linux_qxfer_spu): Ditto.
13401 (linux_qxfer_libraries_svr4): Ditto.
13402 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13403 moved to inferiors.h.
13405 (get_thread_lwp): Update.
13406 (struct lwp_info): Delete member "entry". Simplify comment for
13408 (all_lwps): Delete.
13409 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13410 current_inferior directly.
13411 (update_watch_registers_callback): Update, "entry" parameter is a
13412 struct thread_info * now. Fetch pid from thread.
13413 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13414 (mips_insert_point): Fetch lwpid from current_inferior.
13415 Pass &all_threads to find_inferior, not &all_lwps.
13416 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13417 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13419 (mips_stopped_data_address): Ditto.
13420 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13422 * linux-tile-low.c (tile_arch_setup): Ditto.
13423 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13424 (update_debug_registers_callback): Update, "entry" parameter is a
13425 struct thread_info * now. Fetch pid from thread.
13426 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13427 Pass &all_threads to find_inferior, not &all_lwps.
13428 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13429 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13430 Pass &all_threads to find_inferior, not &all_lwps.
13431 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13432 (i386_dr_low_get_status): Ditto.
13433 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13434 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13435 (x86_linux_read_description): Ditto.
13436 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13438 2014-02-20 Doug Evans <dje@google.com>
13440 * inferiors.c (get_first_inferior): Fix buglet.
13442 2014-02-19 Doug Evans <dje@google.com>
13444 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13445 * inferiors.c (add_thread): Change result type to struct thread_info *.
13446 All callers updated.
13447 (add_lwp): Call add_thread here instead of in callers.
13448 All callers updated.
13449 * linux-low.h (get_lwp_thread): Rewrite.
13450 (struct lwp_info): New member "thread".
13452 2014-02-19 Doug Evans <dje@google.com>
13454 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13455 All callers updated.
13457 2014-02-19 Doug Evans <dje@google.com>
13459 * inferiors.c (add_thread): Fix whitespace.
13461 2014-02-19 Doug Evans <dje@google.com>
13463 * dll.c (clear_dlls): Replace accessing list implemention details
13465 * gdbthread.h (get_first_thread): Declare.
13466 * inferiors.c (for_each_inferior_with_data): New function.
13467 (get_first_thread): New function.
13468 (find_thread_ptid): Simplify.
13469 (get_first_inferior): New function.
13470 (clear_list): Delete.
13471 (one_inferior_p): New function.
13472 (clear_inferior_list): New function.
13473 (clear_inferiors): Update.
13474 * inferiors.h (for_each_inferior_with_data): Declare.
13475 (clear_inferior_list): Declare.
13476 (one_inferior_p): Declare.
13477 (get_first_inferior): Declare.
13478 * linux-low.c (linux_wait_for_event): Replace accessing list
13479 implemention details with API function.
13480 * server.c (target_running): Ditto.
13481 (accumulate_file_name_length): New function.
13482 (emit_dll_description): New function.
13483 (handle_qxfer_libraries): Replace accessing list implemention
13484 details with API function.
13485 (handle_qxfer_threads_worker): New function.
13486 (handle_qxfer_threads_proper): Replace accessing list implemention
13487 details with API function.
13488 (handle_query): Ditto.
13489 (visit_actioned_threads_callback_ftype): New typedef.
13490 (visit_actioned_threads_data): New struct.
13491 (visit_actioned_threads): Rewrite to be find_inferior callback.
13492 (resume): Call find_inferior.
13493 (handle_status): Replace accessing list implemention
13494 details with API function.
13495 (process_serial_event): Replace accessing list implemention details
13497 * target.c (set_desired_inferior): Replace accessing list implemention
13498 details with API function.
13499 * tracepoint.c (same_process_p): New function.
13500 (gdb_agent_about_to_close): Replace accessing list implemention
13501 details with API function.
13502 * win32-low.c (child_delete_thread): Replace accessing list
13503 implemention details with API function.
13504 (match_dll_by_basename): New function.
13505 (dll_is_loaded_by_basename): New function.
13506 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13507 details call to dll_is_loaded_by_basename.
13509 2014-02-19 Doug Evans <dje@google.com>
13511 * dll.h (struct dll_info): Add comment.
13512 * gdbthread.h (struct thread_info): Add comment.
13513 (current_ptid): Simplify.
13514 * inferiors.c (add_process): Update.
13515 (remove_process): Update.
13516 * inferiors.h (struct process_info): Rename member "head" to "entry".
13517 * linux-low.c (delete_lwp): Update.
13519 (last_thread_of_process_p): Update.
13520 (kill_one_lwp_callback, linux_kill): Update.
13521 (status_pending_p_callback): Update.
13522 (wait_for_sigstop): Update. Simplify read of ptid.
13523 (start_step_over): Update.
13524 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13525 (get_lwp_thread): Update.
13526 (struct lwp_info): Rename member "head" to "entry".
13527 * regcache.h (inferior_list_entry): Delete.
13528 * server.c (kill_inferior_callback): Update.
13529 (detach_or_kill_inferior_callback): Update.
13530 (print_started_pid): Update.
13531 (print_attached_pid): Update.
13532 (process_serial_event): Simplify read of ptid.
13533 * thread-db.c (thread_db_create_event): Update.
13534 (thread_db_get_tls_address): Update.
13535 * win32-low.c (current_inferior_ptid): Simplify.
13537 2014-02-19 Tom Tromey <tromey@redhat.com>
13539 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13541 (target_supports_btrace): Update.
13543 2014-02-14 Yao Qi <yao@codesourcery.com>
13545 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13546 (rsp-low-ipa.o): New target.
13548 2014-02-12 Tom Tromey <tromey@redhat.com>
13550 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13551 convert_ascii_to_int.
13552 * regcache.c (registers_to_string): Likewise.
13553 * remote-utils.c (decode_M_packet): Likewise.
13554 * server.c (process_serial_event): Likewise.
13556 2014-02-12 Tom Tromey <tromey@redhat.com>
13558 * server.c (handle_query, handle_v_run): Use hex2bin, not
13560 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13562 2014-02-12 Tom Tromey <tromey@redhat.com>
13564 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13565 convert_int_to_ascii.
13566 * regcache.c (registers_to_string, collect_register_as_string):
13568 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13570 * server.c (process_serial_event): Likewise.
13571 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13572 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13574 2014-02-12 Tom Tromey <tromey@redhat.com>
13576 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13577 bin2hex, not hexify.
13578 * tracepoint.c (cmd_qtstatus): Likewise.
13580 2014-02-12 Tom Tromey <tromey@redhat.com>
13582 * remote-utils.c (monitor_output): Pass explicit length to
13585 2014-02-12 Tom Tromey <tromey@redhat.com>
13587 * tracepoint.c: Include rsp-low.h.
13588 * server.c: Include rsp-low.h.
13589 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13590 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13592 * remote-utils.c: Include rsp-low.h.
13593 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13594 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13595 (convert_int_to_ascii, convert_ascii_to_int): Move to
13597 * regcache.c: Include rsp-low.h.
13598 * ax.c: Include rsp-low.h.
13599 * Makefile.in (SFILES): Add common/rsp-low.c.
13600 (OBS): Add rsp-low.o.
13601 (rsp-low.o): New target.
13603 2014-02-12 Tom Tromey <tromey@redhat.com>
13605 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13606 Include print-utils.h.
13607 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13608 (plongest, thirty_two, phex_nz): Remove.
13609 * Makefile.in (SFILES): Add common/print-utils.c.
13610 (OBS): Add print-utils.o.
13611 (print-utils-ipa.o): New target.
13612 (print-utils.o): New target.
13613 (IPA_OBJS): Add print-utils-ipa.o.
13615 2014-02-06 Tom Tromey <tromey@redhat.com>
13617 * Makefile.in (SFILES): Fix indentation.
13619 2014-02-05 Doug Evans <dje@google.com>
13621 * linux-low.c (linux_wait_for_event): Improve comment.
13622 (linux_wait_1): Keep current_inferior in sync with event_child.
13624 2014-01-22 Doug Evans <dje@google.com>
13626 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13628 2014-01-22 Doug Evans <dje@google.com>
13630 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13631 * configure: Regenerate.
13632 * config.in: Regenerate.
13633 * Makefile.in (SFILES): Add debug.c.
13634 (OBS): Add debug.o.
13635 * debug.c: New file.
13636 * debug.h: New file.
13637 * linux-aarch64-low.c (*): Update all debugging printfs to use
13638 debug_printf instead of fprintf.
13639 * linux-arm-low.c (*): Ditto.
13640 * linux-cris-low.c (*): Ditto.
13641 * linux-crisv32-low.c (*): Ditto.
13642 * linux-m32r-low.c (*): Ditto.
13643 * linux-sparc-low.c (*): Ditto.
13644 * linux-x86.c (*): Ditto.
13645 * linux-low.c (*): Ditto.
13646 (linux_wait_1): Add calls to debug_enter, debug_exit.
13647 (linux_wait): Remove redundant debugging printf.
13648 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13649 (linux_resume, unstop_all_lwps): Ditto.
13650 * mem-break.c (*): Update all debugging printfs to use
13651 debug_printf instead of fprintf.
13652 * remote-utils.c (*): Ditto.
13653 * thread-db.c (*): Ditto.
13654 * server.c #include <ctype.h>, "gdb_vecs.h".
13655 (debug_threads): Moved to debug.c.
13656 (*): Update all debugging printfs to use debug_printf instead of
13658 (start_inferior): Replace call to fflush with call to debug_flush.
13659 (monitor_show_help): Mention set debug-format.
13660 (parse_debug_format_options): New function.
13661 (handle_monitor_command): Handle "monitor set debug-format".
13662 (gdbserver_usage): Mention --debug-format.
13663 (main): Parse --debug-format.
13664 * server.h (debug_threads): Declaration moved to debug.h.
13665 #include "debug.h".
13666 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13667 trace_debug_1 that uses debug_printf.
13668 (tracepoint_look_up_symbols): Update all debugging printfs to use
13669 debug_printf instead of fprintf.
13671 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13673 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13676 2014-01-17 Pedro Alves <palves@redhat.com>
13679 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13680 defined after including gdb_proc_service.h.
13682 2014-01-16 Doug Evans <dje@google.com>
13684 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13685 (match_dll): Use it.
13687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13689 * target.h (target_ops) <read_btrace>: Change parameters and
13690 return type to allow error reporting.
13691 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13692 trace reading errors on.
13693 * linux-low.c (linux_low_read_btrace): Pass trace reading
13695 (linux_low_disable_btrace): New.
13697 2014-01-15 Doug Evans <dje@google.com>
13699 * inferiors.c (thread_id_to_gdb_id): Delete.
13700 * inferiors.h (thread_id_to_gdb_id): Delete.
13702 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13704 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13705 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13708 2014-01-08 Pedro Alves <palves@redhat.com>
13710 * server.c (handle_status): Don't discard previous queued stop
13711 replies or thread's pending status here.
13712 (main) <disconnection>: Do it here instead.
13714 2014-01-08 Pedro Alves <palves@redhat.com>
13716 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13717 * server.c (visit_actioned_threads, handle_pending_status): New
13719 (handle_v_cont): Factor out parts to ...
13720 (resume): ... this new function. If in all-stop, and a thread
13721 being resumed has a pending status, report it without actually
13723 (myresume): Adjust to use the new 'resume' function.
13724 (clear_pending_status_callback, set_pending_status_callback)
13725 (find_status_pending_thread_callback): New functions.
13726 (handle_status): Handle the case of multiple threads having
13727 interesting statuses to report. Report threads' real last signal
13728 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13729 with an interesting thread to report the status for, instead of
13730 always reporting the status of the first thread.
13732 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13734 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13735 * gdbreplay.c (gdbreplay_version): Likewise.
13737 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13739 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13740 iov.iov_len with the real length in use.
13742 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13744 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13745 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13746 for all targets that use win32-low.c.
13747 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13748 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13750 2013-12-13 Pedro Alves <palves@redhat.com>
13752 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13753 if equal to TARGET_WAITKIND_LOADED.
13754 * win32-low.c (cached_status): New static global.
13755 (win32_wait): Add declaration.
13756 (do_initial_child_stuff): Flush all initial pending debug events
13757 up to the initial breakpoint.
13758 (win32_wait): If CACHED_STATUS was set, return that instead
13759 of doing a real wait. Remove the code resuming the execution
13760 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13761 during the initial phase. Also remove the code changing
13762 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13763 TARGET_WAITKIND_STOPPED.
13765 2013-12-11 Yao Qi <yao@codesourcery.com>
13767 * notif.c (handle_notif_ack): Return 0 if no notification
13770 2013-11-20 Doug Evans <dje@google.com>
13772 * linux-low.c (linux_set_resume_request): Fix comment.
13774 2013-11-20 Doug Evans <dje@google.com>
13776 * linux-low.c (resume_status_pending_p): Tweak comment.
13778 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13780 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13781 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13782 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13783 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13784 (srv_amd64_regobj): Add amd64-mpx.o.
13785 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13786 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13787 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13788 * i387-fp.c (num_pl_bnd_register) Added constant.
13789 (num_pl_bnd_cfg_registers) Added constant.
13790 (struct i387_xsave) Added reserved area and MPX fields.
13791 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13792 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13794 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13795 (init_registers_amd64_mpx_linux): Declare new function.
13796 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13797 (x86_64_regmap): Add MPX registers.
13798 (x86_linux_read_description): Add MPX case.
13799 (initialize_low_arch): Initialize MPX targets.
13801 2013-11-18 Tom Tromey <tromey@redhat.com>
13803 * configure: Rebuild.
13804 * configure.ac: Don't check for stdlib.h.
13805 * gdbreplay.c: Unconditionally include stdlib.h.
13807 2013-11-18 Tom Tromey <tromey@redhat.com>
13809 * config.in: Rebuild.
13810 * configure: Rebuild.
13811 * configure.ac: Don't use AC_HEADER_DIRENT.
13813 2013-11-18 Tom Tromey <tromey@redhat.com>
13815 * server.h: Don't check HAVE_STRING_H.
13816 * gdbreplay.c: Don't check HAVE_STRING_H.
13817 * configure: Rebuild.
13819 2013-11-18 Tom Tromey <tromey@redhat.com>
13821 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13824 2013-11-08 Tom Tromey <tromey@redhat.com>
13826 * configure, config.in: Rebuild.
13827 * configure.ac: Remove unused configury.
13829 2013-11-08 Tom Tromey <tromey@redhat.com>
13831 * acinclude.m4: Include common.m4, codeset.m4.
13832 * configure, config.in: Rebuild.
13833 * configure.ac: Use GDB_AC_COMMON.
13835 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13837 * linux-s390-low.c (HWCAP_S390_TE): New define.
13838 (s390_arch_setup): Consider the TE field in the HWCAP for
13839 determining 'have_regset_tdb'.
13841 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13844 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13847 2013-10-02 Pedro Alves <palves@redhat.com>
13849 * server.c (process_serial_event): Don't output "GDBserver
13850 exiting" if GDB is connected through stdio.
13851 * target.c (mywait): Likewise, be silent if GDB is connected
13854 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13856 * lynx-low.c (lynx_add_threads_after_attach): New function.
13857 (lynx_attach): Remove call to add_thread. Add call to
13858 lynx_add_threads_after_attach instead.
13860 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13862 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13863 * config.in, configure: Regenerated.
13865 2013-09-18 Yao Qi <yao@codesourcery.com>
13868 * server.c (start_inferior): Clear 'resume_info'.
13870 2013-09-16 Jiong Wang <jiwang@tilera.com>
13872 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13875 2013-09-16 Jiong Wang <jiwang@tilera.com>
13877 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13878 linux-tile-low.o to srv_tgtobj.
13880 2013-09-16 Will Newton <will.newton@linaro.org>
13882 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
13885 2013-09-06 Pedro Alves <palves@redhat.com>
13887 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
13888 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
13889 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
13890 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
13891 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
13892 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
13894 2013-09-06 Pedro Alves <palves@redhat.com>
13896 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
13897 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
13899 2013-09-06 Pedro Alves <palves@redhat.com>
13901 * linux-amd64-ipa.c: Include tracepoint.h.
13902 * linux-i386-ipa.c: Include tracepoint.h.
13904 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13906 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
13907 (ps_get_thread_area): New function.
13909 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
13911 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
13912 (initialize_low_arch): Call init_registers_crisv32 rather than
13913 init_register_crisv32.
13915 2013-09-05 Pedro Alves <palves@redhat.com>
13917 * server.h (handle_vFile, hostio_last_error_from_errno): Move
13919 * hostio.h: ... this new file.
13920 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
13921 win32-low.c: Include hostio.h.
13923 2013-09-05 Pedro Alves <palves@redhat.com>
13925 * server.h (gdb_client_data, handler_func, callback_handler_func)
13926 (delete_file_handler, add_file_handler, append_callback_event)
13927 (delete_callback_event, start_event_loop, initialize_event_loop):
13928 Move to event-loop.h and include it.
13929 * event-loop.h: New file.
13931 2013-09-05 Pedro Alves <palves@redhat.com>
13933 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
13934 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
13935 (loaded_dll, unloaded_dll): Move to ...
13936 * dll.h: ... this new file.
13937 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
13939 2013-09-05 Pedro Alves <palves@redhat.com>
13941 * server.h (current_process, get_thread_process, all_processes)
13942 (add_inferior_to_list, for_each_inferior, current_inferior)
13943 (remove_inferior, add_process, remove_process, find_process_pid)
13944 (have_started_inferiors_p, have_attached_inferiors_p)
13945 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
13946 (clear_inferiors, find_inferior, find_inferior_id)
13947 (inferior_target_data, set_inferior_target_data)
13948 (inferior_regcache_data, set_inferior_regcache_data): Move to
13949 inferiors.h, and include it.
13950 * inferiors.h: New file.
13952 2013-09-05 Pedro Alves <palves@redhat.com>
13954 * server.h (struct emit_ops, current_insn_ptr, emit_error):
13958 2013-09-05 Pedro Alves <palves@redhat.com>
13960 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
13962 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
13963 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
13964 (handle_tracepoint_general_set, handle_tracepoint_query)
13965 (tracepoint_finished_step, tracepoint_was_hit)
13966 (release_while_stepping_state_list, current_traceframe)
13967 (in_readonly_region, traceframe_read_mem)
13968 (fetch_traceframe_registers, traceframe_read_sdata)
13969 (traceframe_read_info, struct fast_tpoint_collect_status)
13970 (fast_tracepoint_collecting, force_unlock_trace_buffer)
13971 (handle_tracepoit_bkpts, initialize_low_tracepoint)
13972 (supply_fast_tracepoint_registers)
13973 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
13974 (ipa_tdesc, claim_trampoline_space)
13975 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
13976 (agent_mem_read, agent_get_trace_state_variable_value)
13977 (agent_set_trace_state_variable_value, agent_tsv_read)
13978 (agent_mem_read_string, get_raw_reg_func_addr)
13979 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
13980 * tracepoint.h: ... this new file.
13982 2013-09-05 Pedro Alves <palves@redhat.com>
13984 * server.h (perror_with_name, error, fatal, warning, paddress)
13985 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
13987 * utils.h: New file.
13989 2013-09-05 Pedro Alves <palves@redhat.com>
13991 * server.h (remote_debug, noack_mode, transport_is_reliable)
13992 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
13993 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
13994 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
13995 (write_enn, initialize_async_io, enable_async_io)
13996 (disable_async_io, check_remote_input_interrupt_request)
13997 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
13998 (dead_thread_notify, prepare_resume_reply)
13999 (decode_address_to_semicolon, decode_address, decode_m_packet)
14000 (decode_M_packet, decode_X_packet, decode_xfer_write)
14001 (decode_search_memory_packet, unhexify, hexify)
14002 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14003 (look_up_one_symbol, relocate_instruction)
14004 (monitor_output): Move to remote-utils.h, and include it.
14005 * remote-utils.h: New file.
14007 2013-09-05 Pedro Alves <palves@redhat.com>
14009 * server.h (_): Delete.
14011 2013-09-02 Pedro Alves <palves@redhat.com>
14013 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14014 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14016 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14018 2013-09-02 Pierre Muller <muller@sourceware.org>
14020 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14021 or WriteProcessMemory complete successfully and handle
14022 ERROR_PARTIAL_COPY error.
14024 2013-09-02 Pedro Alves <palves@redhat.com>
14026 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14027 error instead of EIO.
14029 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14032 * linux-low.c: Include filestuff.h.
14033 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14034 * lynx-low.c: Include filestuff.h.
14035 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14036 * server.c: Include filestuff.h.
14037 (main): Call notice_open_fds.
14038 * spu-low.c: Include filestuff.h.
14039 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14041 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14043 * Makefile.in: Explain why ../target and ../nat are not
14044 listed as include file search paths.
14045 (linux-waitpid.o): New object file rule.
14046 * configure.srv (srv_native_linux_obj): New variable.
14047 Replace all occurrences of linux native object files with
14048 $srv_native_linux_obj.
14049 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14050 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14051 (linux_enable_event_reporting): Remove declaration.
14052 (my_waitpid): Moved to common/linux-waitpid.c.
14053 (linux_wait_for_event): Pass ptid when calling
14054 linux_enable_event_reporting.
14055 (linux_supports_tracefork_flag): Remove.
14056 (linux_enable_event_reporting): Likewise.
14057 (linux_tracefork_grandchild): Remove.
14058 (STACK_SIZE): Moved to common/linux-ptrace.c.
14059 (linux_tracefork_child): Remove.
14060 (linux_test_for_tracefork): Remove.
14061 (linux_look_up_symbols): Call linux_supports_traceclone.
14062 (initialize_low): Remove call to linux_test_for_tracefork.
14063 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14064 common/linux-ptrace.h.
14065 (PTRACE_TYPE_ARG4): Likewise.
14066 Include linux-ptrace.h.
14068 2013-08-21 Pedro Alves <palves@redhat.com>
14070 * config.in: Renegerate.
14072 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14074 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14075 (SFILES): Remove $(srcdir)/common/target-common.c and
14076 add $(srcdir)/target/waitstatus.c.
14077 (OBS): Remove target-common.o and add waitstatus.o.
14078 (server_h): Remove $(srcdir)/../common/target-common.h and
14079 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14080 and $(srcdir)/../target/waitstatus.h.
14081 (target-common.o): Remove.
14082 (waitstatus.o): New target object file.
14083 * target.h: Do not include target-common.h and
14084 include target/resume.h, target/wait.h and
14085 target/waitstatus.h.
14087 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14089 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14090 to PTRACE_TYPE_ARG3.
14091 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14092 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14094 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14095 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14097 2013-07-27 Jie Zhang <jie@codesourcery.com>
14098 Daniel Jacobowitz <dan@codesourcery.com>
14099 Yao Qi <yao@codesourcery.com>
14101 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14102 (mips-linux-watch.o): New rule.
14103 (mips_linux_watch_h): New variable.
14104 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14106 * linux-mips-low.c: Include mips-linux-watch.h.
14107 (struct arch_process_info, struct arch_lwp_info): New.
14108 (update_watch_registers_callback): New function.
14109 (mips_linux_new_process, mips_linux_new_thread) New functions.
14110 (mips_linux_prepare_to_resume, mips_insert_point): New
14112 (mips_remove_point, mips_stopped_by_watchpoint): New
14114 (rsp_bp_type_to_target_hw_bp_type): New function.
14115 (mips_stopped_data_address): New function.
14116 (the_low_target): Add watchpoint support functions.
14118 2013-07-27 Yao Qi <yao@codesourcery.com>
14120 * i386-low.c: Include break-common.h.
14121 (enum target_hw_bp_type): Remove.
14123 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14125 * Makefile.in (SFILES): /common/target-common.c.
14126 (OBS): Add target-common.o.
14127 (server_h): Add $(srcdir)/../common/target-common.h.
14128 (target-common.o): New target.
14129 * server.c (queue_stop_reply_callback): Free
14130 status string after use.
14131 * target.c (target_waitstatus_to_string): Remove.
14132 * target.h: Include target-common.h.
14133 (resume_kind): Likewise.
14134 (target_waitkind): Likewise.
14135 (target_waitstatus): Likewise.
14136 (TARGET_WNOHANG): Likewise.
14138 2013-07-04 Yao Qi <yao@codesourcery.com>
14140 * Makefile.in (host_alias): Use @host_noncanonical@.
14141 (target_alias): Use @target_noncanonical@.
14142 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14143 ACX_NONCANONICAL_HOST.
14144 * configure: Regenerated.
14147 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14149 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14150 * configure: Rebuild.
14151 * Makefile.in (version_host, version_target): Get from configure.
14152 (version.c): Use $(version_host) and $(version_target).
14154 2013-07-03 Pedro Alves <palves@redhat.com>
14156 * Makefile.in (config.status): Depend on development.sh.
14157 * acinclude.m4: Include libmcheck.m4.
14158 * configure: Regenerate.
14160 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14162 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14163 attribute inside the parentheses.
14164 (winapi_DebugSetProcessKillOnExit): Ditto.
14165 (winapi_DebugBreakProcess): Ditto.
14166 (winapi_GenerateConsoleCtrlEvent): Ditto.
14168 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14170 * notif.h (notif_event): Add a dummy member to avoid compiler
14173 2013-07-01 Pedro Alves <palves@redhat.com>
14175 * hostio.c (HOSTIO_PATH_MAX): Define.
14176 (require_filename, handle_open, handle_unlink, handle_readlink):
14179 2013-07-01 Pedro Alves <palves@redhat.com>
14181 * server.h: Include "pathmax.h".
14182 * linux-low.c: Don't include sys/param.h.
14183 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14185 * win32-low.c: Don't include sys/param.h.
14186 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14188 2013-07-01 Pedro Alves <palves@redhat.com>
14190 * event-loop.c: Don't check HAVE_UNISTD_H before including
14192 * gdbreplay.c: Likewise.
14193 * remote-utils.c: Likewise.
14194 * server.c: Likewise.
14195 * configure.ac: Don't check for unistd.h.
14196 * configure: Regenerate.
14198 2013-06-28 Tom Tromey <tromey@redhat.com>
14200 * Makefile.in (version.c): Use version.in, not
14203 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14205 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14206 * configure: Rebuild.
14207 * Makefile.in (version_host, version_target): Get from configure.
14208 (version.c): Use $(version_host) and $(version_target).
14210 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14212 Fix trace-status to output user name without trailing colon.
14213 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14215 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14217 Fix trace-status to output proper start-time and stop-time.
14218 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14219 output start time and stop time in hex as gdb expects.
14221 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14223 * tracepoint.c (build_traceframe_info_xml): Output trace state
14224 variables present in the trace buffer.
14226 2013-06-24 Tom Tromey <tromey@redhat.com>
14228 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14230 (version.o): Remove.
14231 * gdbreplay.c: Include version.h.
14232 (version, host_name): Don't declare.
14233 * server.h: Include version.h.
14234 (version, host_name): Don't declare.
14236 2013-06-12 Pedro Alves <palves@redhat.com>
14238 * linux-x86-low.c (linux_is_elf64): Delete global.
14239 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14240 with local linux_pid_exe_is_elf_64_file use.
14242 2013-06-11 Pedro Alves <palves@redhat.com>
14244 * linux-low.c (regset_disabled, disable_regset): New functions.
14245 (regsets_fetch_inferior_registers)
14246 (regsets_store_inferior_registers): Use them.
14247 (initialize_regsets_info); Don't allocate the disabled_regsets
14249 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14252 2013-06-11 Pedro Alves <palves@redhat.com>
14254 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14257 2013-06-11 Pedro Alves <palves@redhat.com>
14259 * linux-x86-low.c (initialize_low_arch): Call
14260 init_registers_x32_avx_linux.
14262 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14264 Fix compatibility with Android Bionic.
14265 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14268 2013-06-07 Pedro Alves <palves@redhat.com>
14271 * Makefile.in (OBS): Add tdesc.o.
14272 (IPA_OBJS): Add tdesc-ipa.o.
14273 (tdesc-ipa.o): New rule.
14274 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14276 * linux-low.c (new_inferior): Delete.
14277 (disabled_regsets, num_regsets): Delete.
14278 (linux_add_process): Adjust to set the new per-process
14280 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14281 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14282 was a stop. When calling arch_setup, switch the current inferior
14283 to the thread that got an event.
14284 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14285 (regsets_fetch_inferior_registers)
14286 (regsets_store_inferior_registers): New regsets_info parameter.
14288 (linux_register_in_regsets): New regs_info parameter. Adjust to
14290 (register_addr, fetch_register, store_register): New usrregs_info
14291 parameter. Adjust to use it.
14292 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14293 parameter regs_info. Adjust to use it.
14294 (linux_fetch_registers): Get the current inferior's regs_info, and
14296 (linux_store_registers): Ditto.
14297 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14298 (initialize_low): Don't initialize the target_regsets here. Call
14299 initialize_low_arch.
14300 * linux-low.h (target_regsets): Delete declaration.
14301 (struct regsets_info): New.
14302 (struct usrregs_info): New.
14303 (struct regs_info): New.
14304 (struct process_info_private) <new_inferior>: New field.
14305 (struct linux_target_ops): Delete the num_regs, regmap, and
14306 regset_bitmap fields. New field regs_info.
14307 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14308 * i387-fp.c (num_xmm_registers): Delete.
14309 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14310 calls to new interface.
14311 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14312 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14313 Infer the number of xmm registers from the regcache's target
14315 * i387-fp.h (num_xmm_registers): Delete.
14316 * inferiors.c (add_thread): Don't install the thread's regcache
14318 * proc-service.c (gregset_info): Fetch the current inferior's
14319 regs_info. Adjust to use it.
14320 * regcache.c: Include tdesc.h.
14321 (register_bytes, reg_defs, num_registers)
14322 (gdbserver_expedite_regs): Delete.
14323 (get_thread_regcache): If the thread doesn't have a regcache yet,
14324 create one, instead of aborting gdbserver.
14325 (regcache_invalidate_one): Rename to ...
14326 (regcache_invalidate_thread): ... this.
14327 (regcache_invalidate_one): New.
14328 (regcache_invalidate): Only invalidate registers of the current
14330 (init_register_cache): Add target_desc parameter, and use it.
14331 (new_register_cache): Ditto. Assert the target description has a
14332 non zero registers_size.
14333 (regcache_cpy): Add assertions. Adjust.
14334 (realloc_register_cache, set_register_cache): Delete.
14335 (registers_to_string, registers_from_string): Adjust.
14336 (find_register_by_name, find_regno, find_register_by_number)
14337 (register_cache_size): Add target_desc parameter, and use it.
14338 (free_register_cache_thread, free_register_cache_thread_one)
14339 (regcache_release, register_cache_size): New.
14340 (register_size): Add target_desc parameter, and use it.
14341 (register_data, supply_register, supply_register_zeroed)
14342 (supply_regblock, supply_register_by_name, collect_register)
14343 (collect_register_as_string, collect_register_by_name): Adjust.
14344 * regcache.h (struct target_desc): Forward declare.
14345 (struct regcache) <tdesc>: New field.
14346 (init_register_cache, new_register_cache): Add target_desc
14348 (regcache_invalidate_thread): Declare.
14349 (regcache_invalidate_one): Delete declaration.
14350 (regcache_release): Declare.
14351 (find_register_by_number, register_cache_size, register_size)
14352 (find_regno): Add target_desc parameter.
14353 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14355 * remote-utils.c: Include tdesc.h.
14356 (outreg, prepare_resume_reply): Adjust.
14357 * server.c: Include tdesc.h.
14358 (gdbserver_xmltarget): Delete declaration.
14359 (get_features_xml, process_serial_event): Adjust.
14360 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14362 (struct process_info) <tdesc>: New field.
14363 (ipa_tdesc): Declare.
14364 * tdesc.c: New file.
14365 * tdesc.h: New file.
14366 * tracepoint.c: Include tdesc.h.
14367 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14368 (get_context_regcache): Adjust to pass ipa_tdesc down.
14369 (do_action_at_tracepoint): Adjust to get the register cache size
14370 from the context regcache's description.
14371 (traceframe_walk_blocks): Adjust to get the register cache size
14372 from the current trace frame's description.
14373 (traceframe_get_pc): Adjust to get current trace frame's
14374 description and pass it down.
14375 (gdb_collect): Adjust to get the register cache size from the
14377 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14378 (gdbserver_xmltarget): Delete.
14379 (initialize_low_tracepoint): Set the ipa's target description.
14380 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14381 (initialize_low_tracepoint): Set the ipa's target description.
14382 * linux-x86-low.c: Include tdesc.h.
14383 [__x86_64__] (is_64bit_tdesc): New.
14384 (ps_get_thread_area, x86_get_thread_area): Use it.
14385 (i386_cannot_store_register): Rename to ...
14386 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14387 (i386_cannot_fetch_register): Rename to ...
14388 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14389 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14391 (target_regsets): Rename to ...
14392 (x86_regsets): ... this.
14393 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14395 (x86_siginfo_fixup): Use is_64bit_tdesc.
14396 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14397 (tdesc_x32_avx_linux, tdesc_x32_linux)
14398 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14400 (x86_linux_update_xmltarget): Delete.
14401 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14402 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14403 (AMD64_LINUX_USER64_CS): New.
14404 (x86_linux_read_description): New, based on
14405 x86_linux_update_xmltarget.
14406 (same_process_callback): New.
14407 (x86_arch_setup_process_callback): New.
14408 (x86_linux_update_xmltarget): New.
14409 (x86_regsets_info): New.
14410 (amd64_linux_regs_info): New.
14411 (i386_linux_usrregs_info): New.
14412 (i386_linux_regs_info): New.
14413 (x86_linux_regs_info): New.
14414 (x86_arch_setup): Reimplement.
14415 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14416 (x86_emit_ops): Ditto.
14417 (the_low_target): Adjust. Install x86_linux_regs_info,
14418 x86_cannot_fetch_register, and x86_cannot_store_register.
14419 (initialize_low_arch): New.
14420 * linux-ia64-low.c (tdesc_ia64): Declare.
14421 (ia64_fetch_register): Adjust.
14422 (ia64_usrregs_info, regs_info): New globals.
14423 (ia64_regs_info): New function.
14424 (the_low_target): Adjust.
14425 (initialize_low_arch): New function.
14426 * linux-sparc-low.c (tdesc_sparc64): Declare.
14427 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14429 (sparc_arch_setup): New function.
14430 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14431 (the_low_target): Adjust.
14432 (initialize_low_arch): New function.
14433 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14434 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14435 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14436 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14437 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14438 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14439 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14440 (tdesc_powerpc_isa205_vsx64l): Declare.
14441 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14442 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14443 (ppc_set_pc, ppc_get_hwcap): Adjust.
14444 (ppc_usrregs_info): Forward declare.
14445 (!__powerpc64__) ppc_regmap_adjusted: New global.
14446 (ppc_arch_setup): Adjust to the current process'es target
14448 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14449 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14450 (ppc_store_evrregset): Adjust.
14451 (target_regsets): Rename to ...
14452 (ppc_regsets): ... this, and make static.
14453 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14454 (ppc_regs_info): New function.
14455 (the_low_target): Adjust.
14456 (initialize_low_arch): New function.
14457 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14458 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14459 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14460 (tdesc_s390x_linux64v2): Declare.
14461 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14462 (s390_fill_gregset, s390_store_last_break): Adjust.
14463 (target_regsets): Rename to ...
14464 (s390_regsets): ... this, and make static.
14465 (s390_get_pc, s390_set_pc): Adjust.
14466 (s390_get_hwcap): New target_desc parameter, and use it.
14467 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14468 (s390_arch_setup): Adjust to set the current process'es target
14469 description. Don't adjust the regmap.
14470 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14471 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14472 (regs_info_3264): New globals.
14473 (s390_regs_info): New function.
14474 (the_low_target): Adjust.
14475 (initialize_low_arch): New function.
14476 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14477 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14478 [__mips64] (init_registers_mips_linux)
14479 (init_registers_mips_dsp_linux): Delete defines.
14480 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14481 (have_dsp): New global.
14482 (mips_read_description): New, based on mips_arch_setup.
14483 (mips_arch_setup): Reimplement.
14484 (get_usrregs_info): New function.
14485 (mips_cannot_fetch_register, mips_cannot_store_register)
14486 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14487 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14488 (target_regsets): Rename to ...
14489 (mips_regsets): ... this, and make static.
14490 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14491 (dsp_regs_info, regs_info): New globals.
14492 (mips_regs_info): New function.
14493 (the_low_target): Adjust.
14494 (initialize_low_arch): New function.
14495 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14496 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14498 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14499 (arm_read_description): New, with bits factored from
14501 (arm_arch_setup): Reimplement.
14502 (target_regsets): Rename to ...
14503 (arm_regsets): ... this, and make static.
14504 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14505 (arm_regs_info): New function.
14506 (the_low_target): Adjust.
14507 (initialize_low_arch): New function.
14508 * linux-m68k-low.c (tdesc_m68k): Declare.
14509 (target_regsets): Rename to ...
14510 (m68k_regsets): ... this, and make static.
14511 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14512 (m68k_regs_info): New function.
14513 (m68k_arch_setup): New function.
14514 (the_low_target): Adjust.
14515 (initialize_low_arch): New function.
14516 * linux-sh-low.c (tdesc_sharch): Declare.
14517 (target_regsets): Rename to ...
14518 (sh_regsets): ... this, and make static.
14519 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14520 (sh_regs_info, sh_arch_setup): New functions.
14521 (the_low_target): Adjust.
14522 (initialize_low_arch): New function.
14523 * linux-bfin-low.c (tdesc_bfin): Declare.
14524 (bfin_arch_setup): New function.
14525 (bfin_usrregs_info, regs_info): New globals.
14526 (bfin_regs_info): New function.
14527 (the_low_target): Adjust.
14528 (initialize_low_arch): New function.
14529 * linux-cris-low.c (tdesc_cris): Declare.
14530 (cris_arch_setup): New function.
14531 (cris_usrregs_info, regs_info): New globals.
14532 (cris_regs_info): New function.
14533 (the_low_target): Adjust.
14534 (initialize_low_arch): New function.
14535 * linux-cris-low.c (tdesc_crisv32): Declare.
14536 (cris_arch_setup): New function.
14537 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14538 (cris_regs_info): New function.
14539 (the_low_target): Adjust.
14540 (initialize_low_arch): New function.
14541 * linux-m32r-low.c (tdesc_m32r): Declare.
14542 (m32r_arch_setup): New function.
14543 (m32r_usrregs_info, regs_info): New globals.
14544 (m32r_regs_info): Adjust.
14545 (initialize_low_arch): New function.
14546 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14547 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14548 (tic6x_usrregs_info): Forward declare.
14549 (tic6x_read_description): New function, based on ...
14550 (tic6x_arch_setup): ... this. Reimplement.
14551 (target_regsets): Rename to ...
14552 (tic6x_regsets): ... this, and make static.
14553 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14554 (tic6x_regs_info): New function.
14555 (the_low_target): Adjust.
14556 (initialize_low_arch): New function.
14557 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14558 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14559 (target_regsets): Rename to ...
14560 (xtensa_regsets): ... this, and make static.
14561 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14563 (xtensa_arch_setup, xtensa_regs_info): New functions.
14564 (the_low_target): Adjust.
14565 (initialize_low_arch): New function.
14566 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14567 (nios2_arch_setup): Set the current process'es tdesc.
14568 (target_regsets): Rename to ...
14569 (nios2_regsets): ... this.
14570 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14571 (nios2_regs_info): New function.
14572 (the_low_target): Adjust.
14573 (initialize_low_arch): New function.
14574 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14575 (aarch64_arch_setup): Set the current process'es tdesc.
14576 (target_regsets): Rename to ...
14577 (aarch64_regsets): ... this.
14578 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14579 (aarch64_regs_info): New function.
14580 (the_low_target): Adjust.
14581 (initialize_low_arch): New function.
14582 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14584 (target_regsets): Rename to ...
14585 (tile_regsets): ... this.
14586 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14587 (tile_regs_info): New function.
14588 (tile_arch_setup): Set the current process'es tdesc.
14589 (the_low_target): Adjust.
14590 (initialize_low_arch): New function.
14591 * spu-low.c (tdesc_spu): Declare.
14592 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14593 * win32-arm-low.c (tdesc_arm): Declare.
14594 (arm_arch_setup): New function.
14595 (the_low_target): Install arm_arch_setup instead of
14596 init_registers_arm.
14597 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14598 (init_windows_x86): Rename to ...
14599 (i386_arch_setup): ... this. Set `win32_tdesc'.
14600 (the_low_target): Adjust.
14601 * win32-low.c (win32_tdesc): New global.
14602 (child_add_thread): Don't create the thread cache here.
14603 (do_initial_child_stuff): Set the new process'es tdesc.
14604 * win32-low.h (struct target_desc): Forward declare.
14605 (win32_tdesc): Declare.
14606 * lynx-i386-low.c (tdesc_i386): Declare global.
14607 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14608 * lynx-low.c (lynx_tdesc): New global.
14609 (lynx_add_process): Set the new process'es tdesc.
14610 * lynx-low.h (struct target_desc): Forward declare.
14611 (lynx_tdesc): Declare global.
14612 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14613 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14614 * nto-low.c (nto_tdesc): New global.
14615 (do_attach): Set the new process'es tdesc.
14616 * nto-low.h (struct target_desc): Forward declare.
14617 (nto_tdesc): Declare.
14618 * nto-x86-low.c (tdesc_i386): Declare.
14619 (nto_x86_arch_setup): Set `nto_tdesc'.
14621 2013-06-04 Gary Benson <gbenson@redhat.com>
14623 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14624 to qSupported response when appropriate.
14625 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14626 with nonzero-length annex.
14627 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14628 arguments supplied in annex.
14630 2013-05-31 Doug Evans <dje@google.com>
14633 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14634 64 bits in 64-cross-32 environment.
14636 2013-05-28 Pedro Alves <palves@redhat.com>
14638 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14639 (aarch64-without-fpu.c): Delete rule.
14640 * configure.srv (aarch64*-*-linux*): Remove references to
14641 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14642 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14645 2013-05-24 Pedro Alves <palves@redhat.com>
14647 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14648 instead of strchr/decode_address. Error if the range isn't split
14649 with a ','. Don't assume there's be a ':' in the action.
14651 2013-05-23 Yao Qi <yao@codesourcery.com>
14652 Pedro Alves <palves@redhat.com>
14654 * linux-low.c (lwp_in_step_range): New function.
14655 (linux_wait_1): If the thread was range stepping and stopped
14656 outside the stepping range, report the stop to GDB. Otherwise,
14657 continue stepping. Add range stepping debug output.
14658 (linux_set_resume_request): Copy the step range from the resume
14659 request to the lwp.
14660 (linux_supports_range_stepping): New.
14661 (linux_target_ops) <supports_range_stepping>: Set to
14662 linux_supports_range_stepping.
14663 * linux-low.h (struct linux_target_ops)
14664 <supports_range_stepping>: New field.
14665 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14666 * linux-x86-low.c (x86_supports_range_stepping): New.
14667 (the_low_target) <supports_range_stepping>: Set to
14668 x86_supports_range_stepping.
14669 * server.c (handle_v_cont): Handle 'r' action.
14670 (handle_v_requests): Append ";r" if the target supports range
14672 * target.h (struct thread_resume) <step_range_start,
14673 step_range_end>: New fields.
14674 (struct target_ops) <supports_range_stepping>:
14676 (target_supports_range_stepping): New macro.
14678 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14680 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14681 confusion in comment.
14683 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14685 * lynx-low.c (struct process_info_private): New type.
14686 (lynx_add_process): New function.
14687 (lynx_create_inferior, lynx_attach): Replace calls to
14688 add_process by calls to lynx_add_process.
14689 (lynx_resume): If PTID is null, then try using
14690 current_process()->private->last_wait_event_ptid.
14692 (lynx_clear_inferiors): Delete. The contents of that function
14693 has been inlined in lynx_mourn;
14694 (lynx_wait_1): Save the ptid in the process's private data.
14695 (lynx_mourn): Free the process' private data. Replace call
14696 to lynx_clear_inferiors by call to clear_inferiors.
14698 2013-05-17 Yao Qi <yao@codesourcery.com>
14700 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14703 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14705 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14706 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14707 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14708 PT_TEXT_END_ADDR guards. Update comments.
14709 (linux_target_op) <read_offsets>: Conditionally define to
14710 linux_read_offsets if the target is UCLIBC and if it defines
14711 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14713 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14714 Andrew Jenner <andrew@codesourcery.com>
14716 * Makefile.in (SFILES): Add linux-nios2-low.c.
14717 (clean): Add action to delete nios2-linux.c.
14718 (nios2-linux.c): New rule.
14719 * configure.srv: Add nios2*-*-linux*.
14720 * linux-nios2-low.c: New.
14722 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14724 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14726 2013-04-25 Hui Zhu <hui@codesourcery.com>
14729 * ax.c (ax_printf): Add fflush.
14731 2013-04-22 Tom Tromey <tromey@redhat.com>
14733 * Makefile.in (SFILES): Add filestuff.c.
14734 (OBS): Add filestuff.o.
14735 (filestuff.o): New target.
14736 * config.in, configure: Rebuild.
14737 * configure.ac: Check for fdwalk, pipe2.
14739 2013-04-17 Pedro Alves <palves@redhat.com>
14741 * configure.ac (USE_THREAD_DB): Delete variable.
14742 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14743 Don't AC_SUBST USE_THREAD_DB.
14744 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14745 * config.in, configure: Regenerate.
14747 2013-04-16 Pedro Alves <palves@redhat.com>
14749 * linux-low.h (struct lwp_info) <thread_known>: Move under
14750 the USE_THREAD_DB #ifdef.
14752 2013-04-16 Pedro Alves <palves@redhat.com>
14754 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14755 (linux-low.o): Delete rule.
14756 * linux-low.h: Always include "gdb_thread_db.h" instead of
14757 conditionally including thread_db.h.
14758 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14761 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14763 * Makefile.in (install-only): Fix make install regression.
14765 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14767 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14768 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14770 * gdbserver.1: Remove.
14772 2013-03-22 Pedro Alves <palves@redhat.com>
14774 * linux-low.c (handle_extended_wait): Don't call
14775 linux_enable_event_reporting.
14777 2013-03-15 Tony Theodore <tonyt@logyst.com>
14780 * Makefile.in (SHELL): Use @SHELL@.
14782 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14784 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14787 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14789 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14790 Remove extraneous NULL element.
14792 2013-03-13 Yao Qi <yao@codesourcery.com>
14794 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14795 'V' block in trace frame.
14797 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14799 * target.h (struct target_ops): Add btrace ops.
14800 (target_supports_btrace): New macro.
14801 (target_enable_btrace): New macro.
14802 (target_disable_btrace): New macro.
14803 (target_read_btrace): New macro.
14804 * gdbthread.h (struct thread_info): Add btrace field.
14805 * server.c: Include btrace-common.h.
14806 (handle_btrace_general_set): New function.
14807 (handle_btrace_enable): New function.
14808 (handle_btrace_disable): New function.
14809 (handle_general_set): Call handle_btrace_general_set.
14810 (handle_qxfer_btrace): New function.
14811 (struct qxfer qxfer_packets[]): Add btrace entry.
14812 * inferiors.c (remove_thread): Disable btrace.
14813 * linux-low: Include linux-btrace.h.
14814 (linux_low_enable_btrace): New function.
14815 (linux_low_read_btrace): New function.
14816 (linux_target_ops): Add btrace ops.
14817 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14818 Add srv_linux_btrace=yes.
14819 (x86_64-*-linux*): Add linux-btrace.o.
14820 Add srv_linux_btrace=yes.
14821 * configure.ac: Define HAVE_LINUX_BTRACE.
14822 * config.in: Regenerated.
14823 * configure: Regenerated.
14825 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14827 * server.c (handle_qxfer): Preserve error message if -3 is
14829 (qxfer): Document the -3 return value.
14831 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14833 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14834 (linux_btrace_h): New variable.
14835 (linux-btrace.o): New rule.
14837 2013-03-08 Stan Shebs <stan@codesourcery.com>
14838 Hafiz Abid Qadeer <abidh@codesourcery.com>
14840 * tracepoint.c (trace_buffer_size): New global.
14841 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14842 (init_trace_buffer): Change to one-argument function. Allocate
14843 trace buffer memory.
14844 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14845 handle QTBuffer:size packet.
14846 (cmd_bigqtbuffer_size): New function.
14847 (initialize_tracepoint): Call init_trace_buffer with
14848 DEFAULT_TRACE_BUFFER_SIZE.
14849 * server.c (handle_query): Add QTBuffer:size in the
14852 2013-03-07 Yao Qi <yao@codesourcery.com>
14854 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14855 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14857 (cmd_qtsp): Adjust condition. Do post increment.
14858 Set cur_action and cur_step_action back to 0.
14860 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14863 * linux-low.c (linux_write_memory): Return early success if LEN is
14866 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14868 * configure.srv: Add x86_64-*-cygwin* as target.
14870 2013-02-28 Tom Tromey <tromey@redhat.com>
14872 * configure.ac: Invoke AC_SYS_LARGEFILE.
14873 * configure, config.in: Rebuild.
14875 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14877 * win32-low.c: Throughout, fix format strings and casts of
14878 printf-like functions to avoid type related warnings on all
14880 (get_child_debug_event): Print dwDebugEventCode as hex since
14881 that's how it's usually documented.
14883 2013-02-28 Yao Qi <yao@codesourcery.com>
14885 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
14888 2013-02-27 Jiong Wang <jiwang@tilera.com>
14890 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
14891 (reg-tilegx32.c): New rule.
14892 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
14893 * linux-tile-low.c (tile_arch_setup): New function. Invoke
14894 different register info initializer according to elf class.
14895 (init_registers_tilgx32): New function. The tilegx32 register info
14897 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
14898 (tile_store_gregset): Likewise.
14900 2013-02-27 Yao Qi <yao@codesourcery.com>
14902 * server.c (process_point_options): Print debug message when
14903 debug_threads is true.
14905 2013-02-26 Yao Qi <yao@codesourcery.com>
14907 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
14909 2013-02-19 Pedro Alves <palves@redhat.com>
14910 Kai Tietz <ktietz@redhat.com>
14914 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
14915 instead of strtoul to extract address from packet.
14916 (process_serial_event) <'z'>: Likewise.
14918 2013-02-18 Yao Qi <yao@codesourcery.com>
14920 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
14922 2013-02-14 Pedro Alves <palves@redhat.com>
14926 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
14927 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
14929 2013-02-14 Pedro Alves <palves@redhat.com>
14931 * tracepoint.c (cmd_qtdpsrc): Use savestring.
14933 2013-02-14 Pedro Alves <palves@redhat.com>
14935 * tracepoint.c (save_string): Delete.
14936 (add_tracepoint_action): Use savestring instead of save_string.
14938 2013-02-12 Pedro Alves <palves@redhat.com>
14940 * linux-xtensa-low.c: Ditto.
14941 * xtensa-xtregs.c: Ditto.
14943 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
14945 * thread-db.c (thread_db_get_tls_address): NULL pointer check
14948 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14950 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
14951 aarch64_num_wp_regs and aarch64_num_bp_regs to
14952 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
14954 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
14956 * linux-aarch64-low.c (ps_get_thread_area): Replace
14957 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
14959 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
14960 Marcus Shawcroft <marcus.shawcroft@arm.com>
14961 Nigel Stephens <nigel.stephens@arm.com>
14962 Yufeng Zhang <yufeng.zhang@arm.com>
14964 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
14965 (aarch64.c, aarch64-without-fpu.c): New targets.
14966 * configure.srv (aarch64*-*-linux*): New.
14967 * linux-aarch64-low.c: New file.
14969 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
14971 * linux-low.c (handle_extended_wait, linux_create_inferior)
14972 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
14973 (dequeue_one_deferred_signal, linux_resume_one_thread)
14974 (fetch_register, linux_write_memory, linux_enable_event_reporting)
14975 (linux_tracefork_grandchild, linux_test_for_tracefork)
14976 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
14977 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
14978 where the argument is 0.
14980 2013-01-25 Yao Qi <yao@codesourcery.com>
14982 * event-loop.c: Include "queue.h".
14983 (gdb_event_p): New typedef.
14984 (struct gdb_event) <next_event>: Remove.
14985 (event_queue): Change to QUEUE(gdb_event_p).
14986 (async_queue_event): Remove.
14987 (gdb_event_xfree): New.
14988 (initialize_event_loop): New.
14989 (process_event): Use API from QUEUE.
14990 (wait_for_event): Likewise.
14991 * server.c (main): Call initialize_event_loop.
14992 * server.h (initialize_event_loop): Declare.
14994 2013-01-18 Yao Qi <yao@codesourcery.com>
14996 * ax.h (struct eval_agent_expr_context): New.
14997 (gdb_eval_agent_expr): Update declaration.
14998 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
14999 TFRAME. Add new argument CTX.
15000 * server.h (struct eval_agent_expr_context): Declare.
15001 (agent_mem_read, agent_tsv_read): Update declaration.
15002 (agent_mem_read_string): Likewise.
15003 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15004 (add_traceframe_block): Add new argument TPOINT.
15005 Increase TPOINT->traceframe_usage.
15006 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15007 eval_tracepoint_agent_expr.
15008 (condition_true_at_tracepoint): Likewise.
15009 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15010 (agent_mem_read_string, agent_tsv_read): Likewise.
15012 2013-01-16 Yao Qi <yao@codesourcery.com>
15014 * linux-low.c (linux_resume_one_lwp): Don't check
15015 'lwp->bp_reinsert != 0'.
15017 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15018 Pedro Alves <palves@redhat.com>
15020 * lynx-low.c (ptrace_request_to_str): Define a temporary
15021 macro and use it to simplify this function's implementation.
15023 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15025 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15028 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15030 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15032 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15034 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15036 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15038 * lynx-low.c (lynx_resume): Use the resume_info parameter
15039 to determine the ptid for the lynx_ptrace call, unless
15040 it is equal to minus_one_ptid, in which case we use the
15041 ptid of the current_inferior.
15042 (lynx_wait_1): After having received a thread create/exit
15043 event, resume the inferior's execution using the signaling
15044 thread's ptid, rather than the old ptid.
15046 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15048 * lynx-low.c (lynx_resume): Delete variable ret.
15050 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15052 * gdbreplay.c (gdbreplay_version): Update copyright year.
15053 * server.c (gdbserver_version): Likewise.
15055 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15057 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15060 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15062 * lynx-low.c (ptrace_request_to_str): Add handling for
15063 PTRACE_GETTRACESIG.
15065 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15067 * lynx-low.c (lynx_attach): Delete variable new_process.
15069 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15071 * lynx-low.c (lynx_create_inferior): Delete variable
15074 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15076 * lynx-low.c (ptrace_request_to_str): Do not handle
15077 PTRACE_GETTHREADLIST if this macro does not exist.
15079 2012-12-15 Yao Qi <yao@codesourcery.com>
15081 * Makefile.in (OBS): Add notif.o.
15082 * notif.c, notif.h: New.
15083 * server.c: Include "notif.h".
15084 (struct vstop_notif) <next>: Remove.
15086 (queue_stop_reply): Update.
15087 (push_event, send_next_stop_reply): Remove.
15088 (discard_queued_stop_replies): Update.
15089 (notif_stop): New variable.
15090 (handle_v_stopped): Remove.
15091 (handle_v_requests): Don't call handle_v_stopped. Call
15092 handle_ack_notif instead.
15093 (queue_stop_reply_callback): Call notif_event_enque instead
15094 of queue_stop_reply.
15095 (handle_status): Don't call send_next_stop_reply, call
15096 notif_write_event instead.
15097 (kill_inferior_callback): Likewise.
15098 (detach_or_kill_inferior_callback): Likewise.
15099 (main): Call initialize_notif.
15100 (process_serial_event): Call QUEUE_is_empty.
15101 (handle_target_event): Call notif_push instead of push event.
15102 * server.h (push_event): Remove declaration.
15104 2012-12-10 Tom Tromey <tromey@redhat.com>
15106 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15107 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15110 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15111 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15112 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15113 (amd64-linux-ipa.o, ax.o): Rewrite.
15114 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15115 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15116 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15117 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15118 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15119 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15120 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15121 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15122 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15123 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15124 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15125 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15126 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15127 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15128 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15129 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15130 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15131 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15132 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15133 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15134 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15135 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15136 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15137 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15138 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15139 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15140 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15141 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15142 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15143 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15144 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15145 (reg-tilegx.o): Remove.
15146 (all_object_files): New macro.
15147 Include .deps files.
15148 * aclocal.m4, configure: Rebuild.
15149 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15150 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15151 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15153 2012-12-05 Tom Tromey <tromey@redhat.com>
15156 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15158 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15160 * configure.ac: Check for linux/perf_event.h.
15161 * config.in: Regenerated.
15162 * configure: Regenerated.
15164 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15166 * hostio.c (handle_readlink): Decrease buffer size
15167 parameter passed to readlink by one byte.
15169 2012-11-26 Yao Qi <yao@codesourcery.com>
15171 * configure.ac (build_warnings): Append '-Wempty-body'.
15172 * configure: Regenerated.
15173 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15176 2012-11-15 Pierre Muller <muller@sourceware.org>
15178 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15179 * config.in: Regenerate.
15180 * configure: Regenerate.
15181 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15182 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15183 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15184 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15186 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15187 instead of <sys/wait.h> header.
15188 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15190 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15192 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15193 (various make rules): Remove -DGDBSERVER
15195 2012-11-09 Yao Qi <yao@codesourcery.com>
15197 * spu-low.c (current_ptid): Move it to ..
15198 * gdbthread.h: ... here. New.
15199 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15200 * server.c (myresume, process_serial_event): Likewise.
15201 * thread-db.c (thread_db_find_new_threads): Likewise.
15202 * tracepoint.c (run_inferior_command): Likewise.
15204 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15206 * server.c (handle_search_memory_1): Include access length in
15209 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15211 * linux-crisv32-low.c: Fix compile errors.
15213 2012-09-04 Yao Qi <yao@codesourcery.com>
15215 * tracepoint.c (cmd_qtsv): Adjust debug message.
15216 Don't check CUR_TPOINT.
15218 2012-08-28 Yao Qi <yao@codesourcery.com>
15220 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15221 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15222 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15223 Remove declarations of xmalloc, xreallloc, xstrdup and
15225 * Makefile.in (libiberty_h): New.
15226 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15227 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15229 2012-08-23 Yao Qi <yao@codesourcery.com>
15231 * server.h: Remove declaration of 'xsnprintf'.
15233 2012-08-22 Keith Seitz <keiths@redhat.com>
15235 * server.h: Include build-gnulib-gbserver/config.h.
15236 * gdbreplay.c: Likewise.
15238 2012-08-08 Doug Evans <dje@google.com>
15240 * Makefile.in (SFILES): Add gdb_vecs.c.
15241 (OBS): Add gdb_vecs.o.
15242 (gdb_vecs_h, host_defs_h): New variables.
15243 (thread-db.o): Add $(gdb_vecs_h) dependency.
15244 (gdb_vecs.o): New rule.
15245 * thread-db.c: #include "gdb_vecs.h".
15246 (thread_db_load_search): Use a vector to iterate over path elements.
15247 Handle text appearing after "$pdir".
15249 * configure.ac: Add check for strstr.
15250 * config.in: Regenerate.
15251 * configure: Regenerate.
15253 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15255 * hostio.c (handle_pread): If pread fails, fall back to attempting
15257 (handle_pwrite): Likewise for pwrite.
15259 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15261 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15262 between unsupported TYPE and unimplementable ADDR/LEN combination.
15263 (arm_insert_point): Act on new return value.
15265 2012-07-31 Pedro Alves <palves@redhat.com>
15267 * server.c (process_point_options): Only skip tokens if we find
15268 one that is unrecognized. Don't treat 'X' specially while
15269 skipping unrecognized tokens.
15271 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15273 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15274 to 4-byte-align HW breakpoint addresses for Thumb.
15276 2012-07-27 Yao Qi <yao@codesourcery.com>
15280 * server.h: Declare gdb_agent_about_to_close.
15281 * target.c (kill_inferior): Include "agent.h".
15282 New. Send command 'kill'.
15283 * target.h (kill_inferior): Removed macro.
15284 * tracepoint.c (gdb_agent_about_to_close): New.
15285 (gdb_agent_helper_thread): Handle command 'close'.
15286 Wait endlessly until the inferior stops.
15287 Install gdb_agent_remove_socket to atexit hook.
15288 (agent_socket_name): New static variable.
15289 (gdb_agent_socket_init): Replace local variable 'name' with
15290 'agent_socket_name'.
15291 (gdb_agent_remove_socket): New.
15293 2012-07-27 Yao Qi <yao@codesourcery.com>
15295 * server.c (process_point_options): Stop at 'X' when parsing.
15297 2012-07-19 Michael Eager <eager@eagercon.com>
15299 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15301 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15302 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15303 hardware breakpoint.
15305 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15307 * gdbserver/linux-low.c (initialize_low): Call
15308 linux_ptrace_init_warnings.
15310 2012-07-02 Doug Evans <dje@google.com>
15312 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15315 2012-07-02 Stan Shebs <stan@codesourcery.com>
15317 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15318 (ax.o): Add it to build rule.
15320 (OBS): Add format.o.
15321 (IPA_OBS): Add format.o.
15322 * server.c (handle_query): Claim support for breakpoint commands.
15323 (process_point_options): Add command case.
15324 (process_serial_event): Leave running if there are printfs in
15326 * mem-break.h (any_persistent_commands): Declare.
15327 (add_breakpoint_commands): Declare.
15328 (gdb_no_commands_at_breakpoint): Declare.
15329 (run_breakpoint_commands): Declare.
15330 * mem-break.c (struct point_command_list): New struct.
15331 (struct breakpoint): New field command_list.
15332 (any_persistent_commands): New function.
15333 (add_commands_to_breakpoint): New function.
15334 (add_breakpoint_commands): New function.
15335 (gdb_no_commands_at_breakpoint): New function.
15336 (run_breakpoint_commands): New function.
15337 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15339 * ax.c: Include format.h.
15340 (ax_printf): New function.
15341 (gdb_eval_agent_expr): Add printf opcode.
15343 2012-06-13 Yao Qi <yao@codesourcery.com>
15345 * server.c (start_inferior): Remove duplicated writes to fields
15346 'last_resume_kind' and 'last_status' of 'current_inferior'.
15348 2012-06-12 Yao Qi <yao@codesourcery.com>
15349 Pedro Alves <palves@redhat.com>
15351 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15353 * server.c (handle_v_cont): Extend comment.
15355 2012-06-11 Yao Qi <yao@codesourcery.com>
15357 * linux-low.c (linux_attach): Add 'static'.
15359 2012-06-06 Yao Qi <yao@codesourcery.com>
15361 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15363 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15365 Fix gcc -flto compilation warning.
15366 * server.c (main): Make variable multi_mode and attach volatile.
15368 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15370 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15371 if the platform doesn't know about it.
15373 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15375 * Makefile.in (SFILES): Add linux-tile-low.c.
15376 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15377 * configure.srv: Handle tilegx-*-linux*.
15378 * linux-tile-low.c: New file.
15380 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15382 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15384 2012-05-24 Pedro Alves <palves@redhat.com>
15388 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15390 2012-05-24 Pedro Alves <palves@redhat.com>
15394 Replace target_signal with gdb_signal throughout.
15396 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15398 * linux-low.c (linux_store_registers): Avoid the copying sequence
15399 when no data has been retrieved by ptrace.
15401 2012-05-22 Will Deacon <will.deacon@arm.com>
15403 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15404 Include asm/ptrace.h.
15405 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15408 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15410 * linux-low.c (linux_store_registers): Don't re-retrieve data
15411 with ptrace that has already been obtained from /proc. Always
15412 copy any data retrieved with ptrace to the buffer supplied.
15414 2012-05-11 Yao Qi <yao@codesourcery.com>
15415 Pedro Alves <palves@redhat.com>
15417 * linux-low.c (enum stopping_threads_kind): New.
15418 (stopping_threads): Change type to `enum stopping_threads_kind'.
15419 (handle_extended_wait): If stopping and suspending threads, leave
15420 the new_lwp suspended too.
15421 (linux_wait_for_event): Adjust.
15422 (stop_all_lwps): Set `stopping_threads' to
15423 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15424 whether we're suspending threads or just stopping them. Assert no
15427 2012-04-29 Yao Qi <yao@codesourcery.com>
15429 * server.h: Move some code to ...
15430 * gdbthread.h: ... here. New.
15431 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15432 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15433 (nto-low.o, win32-low.o): Likewise.
15434 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15435 * regcache.c, remote-utils.c, server.c: Likewise.
15436 * target.c, tracepoint.c, win32-low.c: Likewise.
15438 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15440 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15441 (PTRACE_ARG4_TYPE): Likewise.
15442 (PTRACE_XFER_TYPE): Likewise.
15443 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15444 ptrace to PTRACE_ARG3_TYPE.
15445 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15446 (PTRACE_ARG4_TYPE): Likewise.
15447 (PTRACE_XFER_TYPE): Likewise.
15448 (linux_detach_one_lwp): Cast fourth argument of
15449 ptrace to long then PTRACE_ARG4_TYPE.
15450 (regsets_fetch_inferior_registers): Cast third argument of
15451 ptrace to long then PTRACE_ARG3_TYPE.
15452 (regsets_store_inferior_registers): Likewise.
15454 2012-04-20 Pedro Alves <palves@redhat.com>
15456 * configure: Regenerate.
15458 2012-04-19 Pedro Alves <palves@redhat.com>
15460 * Makefile.in (GNULIB_BUILDDIR): New.
15461 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15462 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15463 (all, install-only, uninstall, clean-info, all-lib, clean): No
15464 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15465 (maintainer-clean realclean distclean): Use subdir_do.
15467 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15468 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15469 * acinclude.m4: Include acx_configure_dir.m4.
15470 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15471 calls. Call AC_PROG_RANLIB. Configure gnulib using
15474 (GNULIB_STDINT_H): Adjust.
15475 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15476 * gdbreplay.c: Include build-gnulib/config.h.
15477 * server.h: Likewise.
15478 * aclocal.m4: Regenerate.
15479 * config.in: Regenerate.
15480 * configure: Regenerate.
15482 2012-04-19 Pedro Alves <palves@redhat.com>
15484 * Makefile.in (LIBGNU, INCGNU): Adjust.
15485 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15486 (all, install-only, uninstall, clean-info, all-lib, clean)
15487 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15488 * configure.ac: Adjust AC_OUTPUT output.
15489 * aclocal.m4: Regenerate.
15490 * configure: Regenerate.
15492 2012-04-19 Pedro Alves <palves@redhat.com>
15494 * Makefile.in (generated_files): New.
15495 (server_h): Remove the explicit dependency on config.h, and depend
15496 on $generated_files.
15498 2012-04-19 Pedro Alves <palves@redhat.com>
15500 * Makefile.in (INCGNU): Add -Ignulib.
15502 2012-04-19 Pedro Alves <palves@redhat.com>
15504 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15505 (INCGNU): ... this, and spell out -I here.
15506 (GNULIB_LIB): Rename to ...
15507 (LIBGNU): ... this.
15508 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15510 2012-04-19 Pedro Alves <palves@redhat.com>
15512 * config.in: Regenerate.
15514 2012-04-19 Pedro Alves <palves@redhat.com>
15516 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15517 * server.h (memmem): Remove declaration.
15518 * config.in: Regenerate.
15519 * configure: Regenerate.
15521 2012-04-19 Yao Qi <yao@codesourcery.com>
15523 * Makefile.in (SFILES): Add common/vec.c.
15527 2012-04-19 Yao Qi <yao@codesourcery.com>
15529 * remote-utils.c (prepare_resume_reply): Replace with macro
15530 target_core_of_thread.
15531 * server.c (handle_qxfer_threads_proper): Likewise.
15532 * target.h (traget_core_of_thread): New macro.
15534 2012-04-18 Pedro Alves <palves@redhat.com>
15536 * aclocal.m4: Regenerate.
15537 * configure: Regenerate.
15539 2012-04-16 Yao Qi <yao@codesourcery.com>
15541 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15542 duplicated on address.
15544 2012-04-16 Yao Qi <yao@codesourcery.com>
15546 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15547 (struct tracepoint_action_ops) <send>: New field.
15548 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15549 (agent_expr_send, x_tracepoint_action_send): New.
15550 (l_tracepoint_action_send): New.
15551 (cmd_qtdp): Download and install tracepoint
15552 according to `use_agent'.
15553 (run_inferior_command): Add one more parameter `len'.
15555 (tracepoint_send_agent): New.
15556 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15558 2012-04-16 Yao Qi <yao@codesourcery.com>
15560 * tracepoint.c (download_tracepoints): Moved to ...
15561 (cmd_qtstart): ... here.
15563 2012-04-14 Yao Qi <yao@codesourcery.com>
15565 * tracepoint.c: Include inttypes.h.
15566 (struct collect_memory_action): Use sized types.
15567 (struct tracepoint): Likewise.
15568 (cmd_qtdp, stop_tracing): Update print specifiers.
15569 (cmd_qtp, response_tracepoint): Likewise.
15570 (collect_data_at_tracepoint): Likewise.
15571 (collect_data_at_step): Likewise.
15573 2012-04-14 Yao Qi <yao@codesourcery.com>
15575 Import gnulib module inttypes.
15576 * aclocal.m4, config.in, configure: Regenerated.
15578 2012-04-14 Yao Qi <yao@codesourcery.com>
15580 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15581 Makefile and config.status at last.
15583 2012-04-13 Yao Qi <yao@codesourcery.com>
15585 * tracepoint.c: Include stdint.h unconditionally.
15587 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15589 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15590 on BFD_HAVE_SYS_PROCFS_TYPE.
15591 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15592 * configure: Regenerate.
15593 * config.in: Likewise.
15595 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15597 * Makefile.in (clean): Also remove x32.c x32-linux.c
15598 x32-avx.c x32-avx-linux.c.
15599 (x32.o): New target.
15601 (x32-linux.o): Likewise.
15602 (x32-linux.c): Likewise.
15603 (x32-avx.o): Likewise.
15604 (x32-avx.c): Likewise.
15605 (x32-avx-linux.o): Likewise.
15606 (x32-avx-linux.c): Likewise.
15608 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15609 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15610 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15611 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15612 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15613 i386/x32-avx-linux.xml.
15615 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15616 (init_registers_x32_avx_linux): Likwise.
15617 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15618 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15620 2012-04-13 Pedro Alves <palves@redhat.com>
15622 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15623 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15624 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15625 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15628 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15630 * linux-x86-low.c (compat_x32_clock_t): New.
15631 (compat_x32_siginfo_t): Likewise.
15632 (compat_x32_siginfo_from_siginfo): Likewise.
15633 (siginfo_from_compat_x32_siginfo): Likewise.
15634 (linux_is_elf64): Likewise.
15635 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15636 and siginfo_from_compat_x32_siginfo for x32.
15637 (x86_arch_setup): Set linux_is_elf64.
15639 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15642 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15644 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15645 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15646 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15647 compatible with process.
15649 2012-04-12 Yao Qi <yao@codesourcery.com>
15651 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15652 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15653 (install-only, install-info, clean): Handle sub dir gnulib.
15654 (all-lib, am--refresh): New targets.
15655 (memmem.o): Remove target.
15656 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15657 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15658 (AC_REPLACE_FUNCS): Remove memmem.
15659 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15660 (AC_OUTPUT): Generate Makefile in gnulib/.
15661 * aclocal.m4, config.in, configure: Regenerated.
15663 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15665 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15667 2012-04-05 Pedro Alves <palves@redhat.com>
15669 -Werror=strict-aliasing
15671 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15674 2012-04-04 Pedro Alves <palves@redhat.com>
15676 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15677 (sparc_store_gregset_from_stack, sparc_store_gregset)
15678 (sparc_breakpoint_at): Fix formatting.
15680 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15682 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15684 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15685 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15686 * config.in: Regenerate.
15687 * configure: Likewise.
15689 2012-03-29 Pedro Alves <palves@redhat.com>
15691 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15692 Correct ptrace arguments.
15694 2012-03-28 Pedro Alves <palves@redhat.com>
15696 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15697 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15698 (IA64_FR1_REGNUM): New defines.
15699 (ia64_fetch_register): New.
15700 (the_low_target): Install it.
15701 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15703 * linux-low.c (linux_fetch_registers): Try the
15704 the_low_target.fetch_register hook first.
15706 * linux-arm-low.c (the_low_target): Adjust.
15707 * linux-bfin-low.c (the_low_target): Adjust.
15708 * linux-cris-low.c (the_low_target): Adjust.
15709 * linux-crisv32-low.c (the_low_target): Adjust.
15710 * linux-m32r-low.c (the_low_target): Adjust.
15711 * linux-m68k-low.c (the_low_target): Adjust.
15712 * linux-mips-low.c (the_low_target): Adjust.
15713 * linux-ppc-low.c (the_low_target): Adjust.
15714 * linux-s390-low.c (the_low_target): Adjust.
15715 * linux-sh-low.c (the_low_target): Adjust.
15716 * linux-sparc-low.c (the_low_target): Adjust.
15717 * linux-tic6x-low.c (the_low_target): Adjust.
15718 * linux-x86-low.c (the_low_target): Adjust.
15719 * linux-xtensa-low.c (the_low_target): Adjust.
15721 2012-03-26 Pedro Alves <palves@redhat.com>
15723 * server.c (handle_qxfer_libraries): Don't bail early if
15724 the_target->qxfer_libraries_svr4 is not NULL.
15726 2012-03-26 Pedro Alves <palves@redhat.com>
15728 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15730 2012-03-23 Pedro Alves <palves@redhat.com>
15732 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15733 "library-list-svr4" element's start tag when the the DSO list is
15736 2012-03-23 Pedro Alves <palves@redhat.com>
15738 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15739 a variable whose type size is the same as the inferior's pointer
15742 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15744 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15746 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15747 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15748 * linux-low.h: Include <signal.h>.
15749 (struct siginfo): Remove forward declaration.
15750 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15753 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15755 * .gitignore: Ignore more files.
15757 2012-03-19 Pedro Alves <palves@redhat.com>
15758 Jan Kratochvil <jan.kratochvil@redhat.com>
15760 * server.c (cont_thread, general_thread): Add describing comments.
15761 (start_inferior): Clear `cont_thread'.
15762 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15765 2012-03-15 Yao Qi <yao@codesourcery.com>
15767 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15769 (cmd_qtdp): ... here.
15771 2012-03-15 Yao Qi <yao@codesourcery.com>
15773 * tracepoint.c (struct tracepoint_action_ops): New.
15774 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15775 (m_tracepoint_action_download): New.
15776 (r_tracepoint_action_download): New.
15777 (x_tracepoint_action_download): New.
15778 (l_tracepoint_action_download): New.
15779 (add_tracepoint_action): Install `action->ops' according type.
15780 (download_tracepoint_1): Move code `download' function pointer
15781 of various tracepoint_action_ops.
15783 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15785 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15786 linux_ptrace_attach_warnings.
15788 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15790 * Makefile.in (linux-ptrace.o): New.
15791 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15792 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15793 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15794 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15795 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15797 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15799 2012-03-08 Yao Qi <yao@codesourcery.com>
15800 Pedro Alves <palves@redhat.com>
15802 Fix PR server/13392.
15803 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15804 offset of JMP insn.
15805 * tracepoint.c (remove_tracepoint): New.
15806 (cmd_qtdp): Call remove_tracepoint when failed to install.
15808 2012-03-07 Pedro Alves <palves@redhat.com>
15810 * linux-low.c (get_detach_signal): New.
15811 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15812 Pass on pending signals to PTRACE_DETACH. Check the result of the
15814 * server.c (program_signals, program_signals_p): New.
15815 (handle_general_set): Handle QProgramSignals.
15816 * server.h (program_signals, program_signals_p): Declare.
15818 2012-03-05 Pedro Alves <palves@redhat.com>
15819 Jan Kratochvil <jan.kratochvil@redhat.com>
15821 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15824 2012-03-03 Yao Qi <yao@codesourcery.com>
15826 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15827 agent_look_up_symbols.
15829 2012-03-03 Yao Qi <yao@codesourcery.com>
15831 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15832 (linux-x86-low.o): Likewise.
15833 * server.h: Remove in_process_agent_loaded.
15834 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15838 2012-03-03 Yao Qi <yao@codesourcery.com>
15840 * tracepoint.c (gdb_agent_capability): New global.
15841 (in_process_agent_loaded_ust): Renamed to
15842 `in_process_agent_supports_ust'.
15844 (in_process_agent_supports_ust): Call agent_capability_check.
15845 (clear_installed_tracepoints): Assert that agent supports
15848 2012-03-03 Yao Qi <yao@codesourcery.com>
15850 * linux-low.c (linux_supports_agent): New.
15851 (linux_target_ops): Initialize field `supports_agent' with
15852 linux_supports_agent.
15853 * target.h (struct target_ops) <supports_agent>: New.
15854 (target_supports_agent): New macro.
15855 * server.c (handle_general_set): Handle packet 'QAgent'.
15856 (handle_query): Send `QAgent+'.
15857 * Makefile.in (server.o): Depends on agent.h.
15859 2012-03-03 Yao Qi <yao@codesourcery.com>
15861 * Makefile.in (OBS): Add agent.o.
15862 Add new rule for agent.o.
15863 Track dependence of tracepoint.c on agent.h.
15864 * tracepoint.c (run_inferior_command_1):
15865 (run_inferior_command): Call agent_run_command.
15866 (gdb_ust_connect_sync_socket): Deleted. Move it to
15868 (resume_thread, stop_thread): Likewise.
15869 (gdb_ust_socket_init): Renamed to ...
15870 (gdb_agent_socket_init): ... New.
15871 (gdb_ust_thread): Renamed to ...
15872 (gdb_agent_helper_thread): ... New.
15873 (gdb_ust_init): Move some code to ...
15874 (gdb_agent_init): ... here. New.
15875 [HAVE_UST]: Call gdb_ust_init.
15876 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15877 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15878 * config.in, configure: Regenerated.
15880 2012-03-02 Pedro Alves <palves@redhat.com>
15882 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
15883 * linux-low.c (struct simple_pid_list): New.
15884 (stopped_pids): New a struct simple_pid_list pointer.
15885 (add_to_pid_list, pull_pid_from_list): New.
15886 (handle_extended_wait): Don't assume the first signal new children
15887 report is SIGSTOP. Adjust call to pull_pid_from_list.
15888 (linux_wait_for_lwp): Adjust.
15890 2012-03-02 Yao Qi <yao@codesourcery.com>
15892 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
15895 2012-03-02 Yao Qi <yao@codesourcery.com>
15897 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
15898 `stop_pc' and `tpoint'. Update caller.
15900 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
15902 * linux-low.h (linux_target_ops): Add regset_bitmap member.
15903 * linux-low.c (use_linux_regsets): New macro.
15904 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
15905 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
15906 (linux_register_in_regsets): New function.
15907 (usr_fetch_inferior_registers): Skip registers covered by
15909 (usr_store_inferior_registers): Likewise.
15910 (usr_fetch_inferior_registers): New macro.
15911 (usr_store_inferior_registers): Likewise.
15912 (linux_fetch_registers): Handle mixed regset/non-regset targets.
15913 (linux_store_registers): Likewise.
15914 * linux-mips-low.c (init_registers_mips_dsp_linux): New
15916 (init_registers_mips64_dsp_linux): Likewise.
15917 (init_registers_mips_linux): New macro.
15918 (init_registers_mips_dsp_linux): Likewise.
15919 (mips_dsp_num_regs): Likewise.
15920 (DSP_BASE, DSP_CONTROL): New fallback macros.
15921 (mips_base_regs): New macro.
15922 (mips_regmap): Use it. Fix the size.
15923 (mips_dsp_regmap): New variable.
15924 (mips_dsp_regset_bitmap): Likewise.
15925 (mips_arch_setup): New function.
15926 (mips_cannot_fetch_register): Use the_low_target.regmap rather
15928 (mips_cannot_store_register): Likewise.
15929 (the_low_target): Update .arch_setup, .num_regs and .regmap
15930 initializers. Add .regset_bitmap initializer.
15931 * linux-arm-low.c (the_low_target): Add .regset_bitmap
15933 * linux-bfin-low.c (the_low_target): Likewise.
15934 * linux-cris-low.c (the_low_target): Likewise.
15935 * linux-crisv32-low.c (the_low_target): Likewise.
15936 * linux-ia64-low.c (the_low_target): Likewise.
15937 * linux-m32r-low.c (the_low_target): Likewise.
15938 * linux-m68k-low.c (the_low_target): Likewise.
15939 * linux-ppc-low.c (the_low_target): Likewise.
15940 * linux-s390-low.c (the_low_target): Likewise.
15941 * linux-sh-low.c (the_low_target): Likewise.
15942 * linux-sparc-low.c (the_low_target): Likewise.
15943 * linux-tic6x-low.c (the_low_target): Likewise.
15944 * linux-x86-low.c (the_low_target): Likewise.
15945 * linux-xtensa-low.c (the_low_target): Likewise.
15946 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
15947 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
15948 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
15950 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
15951 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
15953 2012-02-29 Yao Qi <yao@codesourcery.com>
15954 Pedro Alves <palves@redhat.com>
15956 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
15957 `step_over_finished' is true.
15959 2012-02-27 Pedro Alves <palves@redhat.com>
15961 * linux-low.c (pid_is_stopped): Delete, moved to common/.
15962 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
15964 2012-02-27 Pedro Alves <palves@redhat.com>
15967 * linux-low.c (pid_is_stopped): New.
15968 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
15970 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
15972 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
15975 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
15977 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
15979 2012-02-24 Luis Machado <lgustavo@codesourcery>
15981 * server.c (handle_query): Advertise support for target-side
15982 breakpoint condition evaluation.
15983 (process_point_options): New function.
15984 (process_serial_event): When inserting a breakpoint, check for
15985 a target-side condition that should be evaluated.
15987 * mem-break.c: Include regcache.h and ax.h.
15988 (point_cond_list_t): New data structure.
15989 (breakpoint) <cond_list>: New field.
15990 (find_gdb_breakpoint_at): Make non-static.
15991 (delete_gdb_breakpoint_at): Clear any target-side
15993 (clear_gdb_breakpoint_conditions): New function.
15994 (add_condition_to_breakpoint): Likewise.
15995 (add_breakpoint_condition): Likewise.
15996 (gdb_condition_true_at_breakpoint): Likewise.
15997 (gdb_breakpoint_here): Return result directly instead
15998 of going through a local variable.
16000 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16001 (clear_gdb_breakpoint_conditions): Likewise.
16002 (add_breakpoint_condition): Likewise.
16003 (gdb_condition_true_at_breakpoint): Likewise.
16005 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16006 (need_step_over_p): Take target-side breakpoint condition into
16009 2012-02-24 Luis Machado <lgustavo@codesourcery>
16011 * server.h: Include tracepoint.h.
16012 (agent_mem_read, agent_get_trace_state_variable_value,
16013 agent_set_trace_state_variable_value,
16014 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16015 get_set_tsv_func_addr): New prototypes.
16017 * ax.h: New include file.
16018 * ax.c: New source file.
16020 * tracepoint.c: Include ax.h.
16021 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16022 agent_expr, eval_result_type): Move to ax.h.
16023 (parse_agent_expr): Rename to ...
16024 (gdb_parse_agent_expr): ... this, make it non-static and move
16026 (unparse_agent_expr) Rename to ...
16027 (gdb_unparse_agent_expr): ... this, make it non-static and move
16029 (eval_agent_expr): Rename to ...
16030 (eval_tracepoint_agent_expr): ... this.
16031 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16032 forward declarations.
16033 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16034 (agent_get_trace_state_variable_value): New function.
16035 (agent_set_trace_state_variable_value): New function.
16036 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16037 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16038 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16039 (condition_true_at_tracepoint): Likewise.
16040 (parse_agent_expr): Rename to ...
16041 (gdb_parse_agent_expr): ... this and move to ax.c.
16042 (unparse_agent_expr): Rename to ...
16043 (gdb_unparse_agent_expr): ... this and move to ax.c.
16044 (gdb_agent_op_name): Move to ax.c.
16045 (eval_agent_expr): Rename to ...
16046 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16048 (eval_tracepoint_agent_expr): New function.
16049 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16051 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16053 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16054 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16055 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16056 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16057 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16058 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16059 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16060 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16061 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16062 (compile_bytecodes): Remove forward declaration.
16063 (is_goto_target): Move to ax.c.
16064 (compile_bytecodes): Move to ax.c and call
16065 agent_get_trace_state_variable_value (...) and
16066 agent_set_trace_state_variable_value (...).
16068 * Makefile.in: Update ax.c and IPA dependencies.
16070 2012-02-24 Pedro Alves <palves@redhat.com>
16072 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16073 (cmd_bigqtbuffer_circular): ... this. Only handle
16074 'QTBuffer:circular:'.
16075 (handle_tracepoint_general_set): Adjust.
16077 2012-02-16 Yao Qi <yao@codesourcery.com>
16079 * inferiors.c: Move code to ...
16080 * dll.c: .... here. New.
16081 * server.h: Declare clear_dlls.
16082 * Makefile.in (SFILES): Add dll.c.
16086 2012-02-11 Yao Qi <yao@codesourcery.com>
16088 * server.c: (handle_monitor_command): Add a new parameter
16090 (handle_query): Update caller.
16092 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16094 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16095 * configure, config.in: Regenerate.
16096 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16099 2012-02-02 Pedro Alves <palves@redhat.com>
16101 Try SIGKILL first, then PTRACE_KILL.
16102 * linux-low.c (linux_kill_one_lwp): New.
16103 (linux_kill_one_lwp): Rename to ...
16104 (kill_one_lwp_callback): ... this. Use the new
16105 linux_kill_one_lwp.
16107 2012-02-02 Pedro Alves <palves@redhat.com>
16109 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16112 2012-01-27 Pedro Alves <palves@redhat.com>
16114 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16115 (elf_64_file_p): Make static.
16116 (linux_pid_exe_is_elf_64_file): New.
16117 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16118 Delete declarations.
16119 (linux_pid_exe_is_elf_64_file): Declare.
16120 * linux-x86-low.c (x86_arch_setup): Use
16121 linux_pid_exe_is_elf_64_file.
16123 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16125 * linux-low.c (linux_wait_for_event_1): Rename to ...
16126 (linux_wait_for_event): ... here and merge it with former
16127 linux_wait_for_event - new variable wait_ptid, use it.
16128 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16130 2012-01-23 Pedro Alves <palves@redhat.com>
16132 * server.c (main): Avoid yet another case of infinite loop while
16133 detaching/killing after a longjmp.
16135 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16138 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16140 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16142 * hostio.c (handle_readlink): New function.
16143 (handle_vFile): Call it to handle "vFile:readlink" packets.
16145 2012-01-20 Pedro Alves <palves@redhat.com>
16146 Ulrich Weigand <ulrich.weigand@linaro.org>
16148 * server.c (handle_v_requests): Only support vAttach and vRun to
16149 start multiple processes when in extended protocol mode.
16151 2012-01-17 Pedro Alves <palves@redhat.com>
16153 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16154 memalign plus mprotect to allocate the scratch buffer.
16156 2012-01-13 Pedro Alves <palves@redhat.com>
16158 * server.c (attach_inferior): Clear `cont_thread'.
16160 2012-01-13 Pedro Alves <palves@redhat.com>
16162 * server.c (main): Avoid infinite loop while detaching/killing
16165 2012-01-09 Doug Evans <dje@google.com>
16167 * server.c (start_inferior): Set last_ptid in --wrapper case.
16169 2012-01-06 Yao Qi <yao@codesourcery.com>
16171 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16173 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16175 2012-01-04 Yao Qi <yao@codesourcery.com>
16177 * tracepoint.c (cmd_qtdp): Print debug message
16178 for static tracepoint.
16180 2012-01-04 Yao Qi <yao@codesourcery.com>
16182 * tracepoint.c (trace_vdebug): Differentiate debug message
16183 between gdbserver and IPA.
16185 2012-01-03 Yao Qi <yao@codesourcery.com>
16187 * tracepoint.c (tracepoint_was_hit): Don't collect for
16190 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16192 * terminal.h: Reformat copyright header.
16194 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16196 * server.c (gdbserver_version): Update copyright year.
16197 * gdbreplay.c (gdbreplay_version): Likewise.
16199 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16201 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16204 2011-12-18 Hui Zhu <teawater@gmail.com>
16205 * linux-low.c (linux_create_inferior): Save return value to ret.
16207 2011-12-18 Hui Zhu <teawater@gmail.com>
16209 * linux-low.c (linux_create_inferior): Save return value to ret.
16211 2011-12-16 Doug Evans <dje@google.com>
16213 * linux-low.c (linux_create_inferior): If stdio connection,
16214 redirect stdin from /dev/null, stdout to stderr.
16215 * remote-utils.c (remote_is_stdio): New static global.
16216 (remote_connection_is_stdio): New function.
16217 (remote_prepare): Handle stdio connection.
16218 (remote_open): Ditto.
16219 (remote_close): Don't close stdin for stdio connections.
16220 (read_prim,write_prim): New functions. Replace all calls to
16221 read/write to these.
16222 * server.c (main): Watch for "-" argument. Move call to
16223 remote_prepare before start_inferior.
16224 * server.h (STDIO_CONNECTION_NAME): New macro.
16225 (remote_connection_is_stdio): Declare.
16227 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16228 in debugging output.
16230 2011-12-15 Yao Qi <yao@codesourcery.com>
16232 * tracepoint.c: Include sys/syscall.h.
16233 (gdb_ust_thread): Remove preprocessor conditional.
16235 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16237 * linux-low.c (linux_detach_one_lwp): Call
16238 the_low_target.prepare_to_resume before detaching.
16240 2011-12-14 Yao Qi <yao@codesourcery.com>
16242 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16245 2011-12-14 Yao Qi <yao@codesourcery.com>
16247 * i386-low.c (i386_low_stopped_data_address): Initialize local
16248 variable `control'.
16250 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16254 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16255 DR_CONTROL unless necessary. Extend comments.
16256 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16257 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16259 2011-12-13 Yao Qi <yao@codesourcery.com>
16261 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16263 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16265 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16267 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16268 Print new debug message for such case.
16270 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16272 Fix overlapping memcpy.
16273 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16274 the read_inferior_memory transfer.
16275 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16276 write_inferior_memory transfer.
16277 (set_fast_tracepoint_jump): New variable buf. Use it for the
16278 read_inferior_memory and write_inferior_memory transfers.
16279 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16280 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16281 Use it for the write_inferior_memory transfer.
16282 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16285 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16287 * linux-low.c (fetch_register, store_register): Make code
16288 consistent, fix formatting.
16290 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16292 * linux-low.c (usr_store_inferior_registers): Factor out code
16293 to handle individual registers into...
16294 (store_register): ... this new function.
16296 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16298 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16299 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16300 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16301 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16302 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16303 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16304 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16305 (srv_xmlfiles): Add new XML files.
16307 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16309 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16310 (init_registers_s390_linux32v1): Add prototype.
16311 (init_registers_s390_linux32v2): Likewise.
16312 (init_registers_s390_linux64v1): Likewise.
16313 (init_registers_s390_linux64v2): Likewise.
16314 (init_registers_s390x_linux64v1): Likewise.
16315 (init_registers_s390x_linux64v2): Likewise.
16316 (s390_num_regs): Increment to 52.
16317 (s390_regmap): Add orig_r2 register.
16318 (s390_num_regs_3264): Increment to 68.
16319 (s390_regmap_3264): Add orig_r2 register.
16320 (s390_collect_ptrace_register): Handle orig_r2 register.
16321 (s390_supply_ptrace_register): Likewise.
16322 (s390_fill_last_break): New function.
16323 (s390_store_last_break): Likewise.
16324 (s390_fill_system_call): New function.
16325 (s390_store_system_call): Likewise.
16326 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16328 (s390_check_regset): New function.
16329 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16330 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16331 Update target_regsets for available register sets.
16333 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16334 Jan Kratochvil <jan.kratochvil@redhat.com>
16336 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16337 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16339 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16340 * linux-low.h (struct process_info_private): New member r_debug.
16341 * server.c (handle_qxfer_libraries): Call
16342 the_target->qxfer_libraries_svr4.
16343 (handle_qxfer_libraries_svr4): New function.
16344 (qxfer_packets): New entry "libraries-svr4".
16345 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16346 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16347 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16348 PACKET_qXfer_libraries_svr4.
16350 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16352 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16353 PSW address/mask between 8-byte and 16-byte formats.
16354 (s390_supply_ptrace_register): Likewise.
16355 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16356 basic addressing mode bit.
16358 2011-11-24 Stan Shebs <stan@codesourcery.com>
16360 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16362 2011-11-17 Stan Shebs <stan@codesourcery.com>
16364 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16365 (tracing_start_time): New global.
16366 (tracing_stop_time): New global.
16367 (tracing_user_name): New global.
16368 (tracing_notes): New global.
16369 (tracing_stop_note): New global.
16370 (cmd_qtstart): Set traceframe_usage, start_time.
16371 (stop_tracing): Set stop_time.
16372 (cmd_qtstatus): Report additional status.
16373 (cmd_qtp): New function.
16374 (handle_tracepoint_query): Call it.
16375 (cmd_qtnotes): New function.
16376 (handle_tracepoint_general_set): Call it.
16377 (get_timestamp): Rename from tsv_get_timestamp.
16379 2011-11-14 Stan Shebs <stan@codesourcery.com>
16380 Kwok Cheung Yeung <kcy@codesourcery.com>
16382 * linux-x86-low.c (small_jump_insn): New.
16383 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16384 trampoline and error message, build a trampoline and issue a small
16385 jump instruction to it.
16386 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16387 trampoline and error message.
16388 (x86_get_min_fast_tracepoint_insn_len): New.
16389 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16390 * linux-low.h (struct linux_target_ops): Add arguments to
16391 install_fast_tracepoint_jump_pad operation, add new operation.
16392 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16394 (linux_get_min_fast_tracepoint_insn_len): New function.
16395 (linux_target_op): Add new operation.
16396 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16397 (gdb_trampoline_buffer_end): Ditto.
16398 (gdb_trampoline_buffer_error): Ditto.
16399 (struct ipa_sym_addresses): Add fields for new IPA variables.
16400 (symbol_list): Add entries for new IPA variables.
16401 (struct tracepoint): Add fields to hold the address range of the
16402 trampoline used by the tracepoint.
16403 (trampoline_buffer_head): New static variable.
16404 (trampoline_buffer_tail): Ditto.
16405 (claim_trampoline_space): New function.
16406 (have_fast_tracepoint_trampoline_buffer): New function.
16407 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16409 (install_fast_tracepoint): Ditto, also add error buffer argument.
16410 (cmd_qtminftpilen): New function.
16411 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16412 (fast_tracepoint_from_trampoline_address): New function.
16413 (fast_tracepoint_collecting): Handle trampoline as part of jump
16415 (set_trampoline_buffer_space): New function.
16416 (initialize_tracepoint): Initialize new IPA variables.
16417 * target.h (struct target_ops): Add arguments to
16418 install_fast_tracepoint_jump_pad operation, add new
16419 get_min_fast_tracepoint_insn_len operation.
16420 (target_get_min_fast_tracepoint_insn_len): New.
16421 (install_fast_tracepoint_jump_pad): Add arguments.
16422 * server.h (IPA_BUFSIZ): Define.
16423 * linux-i386-ipa.c: Include extra header files.
16424 (initialize_fast_tracepoint_trampoline_buffer): New function.
16425 (initialize_low_tracepoint): Call it.
16426 * server.h (set_trampoline_buffer_space): Declare.
16427 (claim_trampoline_space): Ditto.
16428 (have_fast_tracepoint_trampoline_buffer): Ditto.
16430 2011-11-14 Yao Qi <yao@codesourcery.com>
16432 * server.c (handle_query): Handle InstallInTrace for qSupported.
16433 * tracepoint.c (add_tracepoint): Sort list.
16434 (install_tracepoint, download_tracepoint): New.
16435 (cmd_qtdp): Call them to install and download tracepoints.
16436 (sort_tracepoints): Removed.
16437 (cmd_qtstart): Update.
16439 2011-11-14 Yao Qi <yao@codesourcery.com>
16441 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16442 * mem-break.h: Declare.
16443 * tracepoint.c (cmd_qtstart): Move some code to ...
16444 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16446 (download_tracepoints): Move some code to ...
16447 (download_tracepoint_1): ... here. New.
16449 2011-11-08 Yao Qi <yao@codesourcery.com>
16451 * remote-utils.c (relocate_instruction): A comment fix.
16453 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16455 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16456 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16457 dr_status_mirror and dr_control_mirror from debug_reg_state.
16458 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16459 (i386_initial_stuff): Remove use of deleted globals.
16460 (i386_get_thread_context, i386_set_thread_context,
16461 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16462 from debug_reg_state.
16464 2011-11-05 Yao Qi <yao@codesourcery.com>
16466 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16467 address as TPOINT's.
16469 2011-11-02 Stan Shebs <stan@codesourcery.com>
16471 * tracepoint.c (agent_mem_read_string): New function.
16472 (eval_agent_expr): Call it for tracenz.
16473 * server.c (handle_query): Report support for tracenz.
16475 2011-11-02 Yao Qi <yao@codesourcery.com>
16477 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16479 2011-11-02 Yao Qi <yao@codesourcery.com>
16481 * target.h: Fix a typo in comment.
16483 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16485 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16486 clobber the breakpoints' shadows with fast tracepoint jumps.
16487 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16488 * target.c (write_inferior_memory): Also pass MYADDR down to
16491 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16493 * configure.ac: Check support for personality routine.
16494 * configure: Regenerate.
16495 * config.in: Likewise.
16496 * linux-low.c: Include <sys/personality.h>.
16497 Define ADDR_NO_RANDOMIZE if necessary.
16498 (linux_create_inferior): Disable address space randomization when
16499 forking inferior, if requested.
16500 (linux_supports_disable_randomization): New function.
16501 (linux_target_ops): Install it.
16502 * server.h (disable_randomization): Declare.
16503 * server.c (disable_randomization): New global variable.
16504 (handle_general_set): Handle QDisableRandomization.
16505 (handle_query): Likewise for qSupported.
16506 (main): Support --disable-randomization and --no-disable-randomization
16507 command line arguments.
16508 * target.h (struct target_ops): Add supports_disable_randomization.
16509 (target_supports_disable_randomization): New macro.
16511 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16513 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16515 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16516 [!PT_GETDSBT] (target_loadmap): New definition.
16517 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16518 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16519 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16520 and PT_GETDSBT to LINUX_LOADMAP.
16521 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16522 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16524 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16526 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16527 (arm_linux_hwbp_cap): New static variable.
16528 (arm_linux_get_hwbp_cap): Replace by ...
16529 (arm_linux_init_hwbp_cap): ... this new function.
16530 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16531 (arm_linux_get_hw_watchpoint_count): Likewise.
16532 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16533 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16534 (arm_prepare_to_resume): Use perror_with_name instead of error.
16536 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16538 * linux-arm-low.c: Include <signal.h>.
16539 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16540 (struct arm_linux_hwbp_cap): New data type.
16541 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16542 (struct arm_linux_hw_breakpoint): New data type.
16543 (MAX_BPTS, MAX_WPTS): Define.
16544 (struct arch_process_info, struct arch_lwp_info): New data types.
16545 (arm_linux_get_hwbp_cap): New function.
16546 (arm_linux_get_hw_breakpoint_count): Likewise.
16547 (arm_linux_get_hw_watchpoint_count): Likewise.
16548 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16549 (arm_hwbp_control_initialize): Likewise.
16550 (arm_hwbp_control_is_enabled): Likewise.
16551 (arm_hwbp_control_is_initialized): Likewise.
16552 (arm_hwbp_control_disable): Likewise.
16553 (arm_linux_hw_breakpoint_equal): Likewise.
16554 (arm_linux_hw_point_initialize): Likewise.
16555 (struct update_registers_data): New data structure.
16556 (update_registers_callback: New function.
16557 (arm_insert_point): Likewise.
16558 (arm_remove_point): Likewise.
16559 (arm_stopped_by_watchpoint): Likewise.
16560 (arm_stopped_data_address): Likewise.
16561 (arm_new_process): Likewise.
16562 (arm_new_thread): Likewise.
16563 (arm_prepare_to_resume): Likewise.
16564 (the_low_target): Register arm_insert_point, arm_remove_point,
16565 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16566 arm_new_thread, and arm_prepare_to_resume.
16568 2011-09-15 Stan Shebs <stan@codesourcery.com>
16570 * server.h (struct emit_ops): Add compare-goto fields.
16571 * tracepoint.c (gdb_agent_op_sizes): New table.
16572 (emit_eq_goto): New function.
16573 (emit_ne_goto): New function.
16574 (emit_lt_goto): New function.
16575 (emit_le_goto): New function.
16576 (emit_gt_goto): New function.
16577 (emit_ge_goto): New function.
16578 (is_goto_target): New function.
16579 (compile_bytecodes): Recognize special cases of compare-goto
16580 combinations and call specialized emitters for them.
16581 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16582 (amd64_emit_ne_goto): New function.
16583 (amd64_emit_lt_goto): New function.
16584 (amd64_emit_le_goto): New function.
16585 (amd64_emit_gt_goto): New function.
16586 (amd64_emit_ge_goto): New function.
16587 (amd64_emit_ops): Add the new functions.
16588 (i386_emit_eq_goto): New function.
16589 (i386_emit_ne_goto): New function.
16590 (i386_emit_lt_goto): New function.
16591 (i386_emit_le_goto): New function.
16592 (i386_emit_gt_goto): New function.
16593 (i386_emit_ge_goto): New function.
16594 (i386_emit_ops): Add the new functions.
16596 2011-09-08 Stan Shebs <stan@codesourcery.com>
16598 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16599 (i386_emit_epilogue): Restore %ebx.
16601 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16603 * server.c (step_thread): Remove definition.
16604 (process_serial_event): Don't handle Hs.
16605 * server.h (step_thread): Remove declaration.
16606 * target.c (set_desired_inferior): Remove use of step_thread.
16608 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16610 * linux-low.c: Include linux-procfs.h.
16611 (linux_attach_lwp_1): Update comments.
16612 (linux_attach): Scan for existing threads when attaching to a
16613 process that is the tgid.
16614 * Makefile.in: Update dependencies.
16616 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16618 * configure.srv: Add linux-procfs.o dependencies.
16620 2011-08-14 Yao Qi <yao@codesourcery.com>
16622 * target.h (struct target_ops): Fix indent.
16623 * win32-low.c (win32_target_ops): Fix comment.
16625 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16626 Yao Qi <yao@codesourcery.com>
16628 * Makefile.in (clean): Remove tic6x-*.c files.
16629 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16630 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16631 (tic6x-c64xp-linux.c): Likewise.
16632 * configure.srv: Add support for tic6x-*-uclinux.
16633 * linux-tic6x-low.c: New.
16634 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16636 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16637 Yao Qi <yao@codesourcery.com>
16639 * target.h (struct target_ops): Add read_loadmap.
16640 * linux-low.c (struct target_loadseg): New type.
16641 (struct target_loadmap): New type.
16642 (linux_read_loadmap): New function.
16643 (linux_target_ops): Add linux_read_loadmap.
16644 * server.c (handle_query): Support qXfer:fdpic:read packet.
16645 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16648 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16650 * win32-low.c: Include <stdint.h>.
16652 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16654 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16655 to the inferior here.
16656 (i386_remove_aligned_watchpoint): Ditto.
16657 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16658 fit part of the watchpoint in the debug registers.
16659 (i386_update_inferior_debug_regs): New.
16660 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16661 registers, and only update the inferior on success.
16662 (i386_low_remove_watchpoint): Ditto.
16664 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16666 * linux-low.c (compare_ints, unique, list_threads, show_process,
16667 linux_core_of_thread): Delete.
16668 (linux_target_ops): Change linux_core_of_thread to
16669 linux_common_core_of_thread.
16670 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16671 * utils.c (malloc_failure): Change type of argument.
16672 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16673 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16674 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16675 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16676 (IPA_OBJS): Add common-utils-ipa.o.
16677 (ptid_h, linux_osdata_h): New macros.
16678 (server_h): Add common/common-utils.h, common/xml-utils.h,
16679 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16681 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16682 ptid.o, buffer.o): New rules.
16683 (linux-low.o): Add common/linux-osdata.h as a dependency.
16684 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16685 * configure.ac: Add AC_HEADER_DIRENT check.
16686 * config.in: Regenerate.
16687 * configure: Regenerate.
16688 * remote-utils.c (xml_escape_text): Delete.
16689 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16690 buffer_xml_printf): Move to common/buffer.c.
16691 * server.c (main): Remove call to initialize_inferiors.
16692 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16693 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16694 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16695 internal_error, gdb_assert, gdb_assert_fail): Delete.
16696 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16697 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16699 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16700 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16701 initialize_inferiors): Delete.
16703 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16705 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16708 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16710 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16712 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16714 2011-05-26 Yao Qi <yao@codesourcery.com>
16716 * Makefile.in (thread-db.o): Track dependence to
16717 common/gdb_thread_db.h.
16718 * thread-db.c: include gdb_thread_db.h from right place.
16720 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16722 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16723 __FILE__ and __LINE__ to internal_error.
16725 2011-05-13 Doug Evans <dje@google.com>
16727 * thread-db.c (try_thread_db_load_from_sdir): New function.
16728 (try_thread_db_load_from_dir): New function.
16729 (thread_db_load_search): Handle $sdir, ignore $pdir.
16730 Remove trying of system directories if search of
16731 libthread-db-search-path fails, that is now done via $sdir.
16733 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16735 * server.c (handle_query): Add EnableDisableTracepoints to the list
16736 of supported features.
16737 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16739 (cmd_qtenable_disable): New.
16740 (cmd_qtstart): Install tracepoints even if disabled.
16741 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16742 receiving a QTEnable or QTDisable packet.
16743 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16744 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16746 (gdb_probe): Skip data collection if static tracepoint is disabled.
16748 2011-05-10 Doug Evans <dje@google.com>
16750 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16752 2011-05-04 Doug Evans <dje@google.com>
16754 * linux-low.c (linux_join): Skip process lookup.
16755 * spu-low.c (spu_join): Ditto.
16756 * server.c (join_inferiors_callback): Delete.
16757 (process_serial_event): For 'D' packet (detach) call join_inferior
16760 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16762 * README: Don't mention xscale*-*-linux*.
16763 * configure.srv (xscale*-*-linux*): Don't handle target.
16765 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16767 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16769 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16770 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16771 (i386_emit_void_call_2): Likewise.
16773 2011-04-26 Yao Qi <yao@codesourcery.com>
16775 * linux-low.c: Move common macros to linux-ptrace.h.
16776 Include linux-ptrace.h.
16777 * Makefile.in (linux_ptrace_h): New.
16778 (linux-low.o): Depends on linux-ptrace.h.
16780 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16782 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16783 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16784 (remote_prepare): New function with most of the TCP code from ...
16785 (remote_open): ... here. Detect PORT here unconditionally. Move also
16786 setting transport_is_reliable.
16787 * server.c (run_once): New variable.
16788 (gdbserver_usage): Document it.
16789 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16790 the first run if RUN_ONCE.
16791 * server.h (run_once, remote_prepare): New declarations.
16793 2011-04-19 Tom Tromey <tromey@redhat.com>
16795 * win32-low.c (handle_load_dll): Remove duplicate "the".
16797 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16799 Remove support for old Cygwin 1.5 versions.
16800 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16801 function to avoid warning.
16802 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16805 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16807 * gdbserver/server.h (Macro _): Define it if not available.
16809 2011-03-14 Michael Snyder <msnyder@vmware.com>
16811 * hostio.c (handle_close): Remove unnecessary null test.
16813 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16815 * Makefile.in (maintainer-clean realclean distclean): Remove
16816 "make ... subdir_do" command.
16818 2011-03-10 Michael Snyder <msnyder@vmware.com>
16820 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16822 * server.c (handle_v_run): Free alloced buffer on early return.
16824 2011-03-09 Yao Qi <yao@codesourcery.com>
16827 2011-03-04 Yao Qi <yao@codesourcery.com>
16829 * Makefile.in: Remove GNU make feature --directory.
16831 2011-03-05 Yao Qi <yao@codesourcery.com>
16833 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16834 (subdir_do): New make target. Copied from gdb/Makefile.
16835 (maintainer-clean, realclean, distclean, clean): Call corresponding
16836 make targets in common/Makefile.
16838 2011-02-11 Yao Qi <yao@codesourcery.com>
16840 * configure.ac: Call AC_PROG_RANLIB.
16841 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16842 * configure: Regenerate.
16844 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16846 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16848 2011-03-06 Yao Qi <yao@codesourcery.com>
16850 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16852 2011-03-05 Yao Qi <yao@codesourcery.com>
16854 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16855 (subdir_do): New make target. Copied from gdb/Makefile.
16856 (maintainer-clean, realclean, distclean, clean): Call corresponding
16857 make targets in common/Makefile.
16859 2011-03-04 Yao Qi <yao@codesourcery.com>
16861 * Makefile.in: Remove GNU make feature --directory.
16863 2011-03-04 Michael Snyder <msnyder@vmware.com>
16865 * server.c (queue_stop_reply): Call xmalloc not malloc.
16867 2011-03-02 Michael Snyder <msnyder@vmware.com>
16869 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16871 2011-02-28 Michael Snyder <msnyder@vmware.com>
16873 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16874 (cmd_qtframe): Ditto.
16875 (cmd_qtbuffer): Ditto.
16876 (cmd_bigqtbuffer): Ditto.
16878 * utils.c (decimal2str): Initialize 'width' to nine, then
16879 don't mess with it.
16881 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16883 * hostio.c (require_data): Free *data, not data.
16885 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
16887 * hostio.c (require_data): Use free, not xfree.
16889 2011-02-27 Michael Snyder <msnyder@vmware.com>
16891 * server.c (handle_query): Discard unused value.
16893 * hostio.c (require_data): Free malloc memory before returning
16896 2011-02-26 Michael Snyder <msnyder@vmware.com>
16898 * linux-low.c (list_threads): Call closedir for dirent.
16900 2011-02-27 Michael Snyder <msnyder@vmware.com>
16902 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
16903 a case statement falls through.
16905 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
16907 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
16910 2011-02-26 Michael Snyder <msnyder@vmware.com>
16912 * utils.c (decimal2str): Eliminate dead code and dead param.
16913 (pulongest): Drop dead param from call to decimal2str.
16916 2011-02-24 Joel Brobecker <brobecker@adacore.com>
16918 Revert the following patch (not approved yet):
16919 2011-02-21 Hui Zhu <teawater@gmail.com>
16920 * tracepoint.c (tp_printf): New function.
16921 (eval_agent_expr): Handle gdb_agent_op_printf.
16923 2011-02-21 Hui Zhu <teawater@gmail.com>
16925 * tracepoint.c (tp_printf): New function.
16926 (eval_agent_expr): Handle gdb_agent_op_printf.
16928 2011-02-18 Tom Tromey <tromey@redhat.com>
16930 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
16931 (tracepoint.o): Likewise.
16932 * tracepoint.c (enum gdb_agent_op): Use ax.def.
16933 (gdb_agent_op_names): Likewise.
16935 2011-02-18 Tom Tromey <tromey@redhat.com>
16937 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
16938 gdb_agent_op_rot>: New constants.
16939 (gdb_agent_op_names): Add pick and roll.
16940 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
16943 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
16945 * aclocal.m4: Regenerated with aclocal-1.11.1.
16947 2011-02-14 Pedro Alves <pedro@codesourcery.com>
16949 * server.c (handle_qxfer_traceframe_info): New.
16950 (qxfer_packets): Register "traceframe-info".
16951 (handle_query): Report support for qXfer:traceframe-info:read+.
16952 * tracepoint.c (match_blocktype): New.
16953 (traceframe_find_block_type): Rename to ...
16954 (traceframe_walk_blocks): ... this. Add callback filter argument,
16956 (traceframe_find_block_type): New, reimplemented on top of
16957 traceframe_walk_blocks.
16958 (build_traceframe_info_xml): New.
16959 (traceframe_read_info): New.
16960 * server.h (traceframe_read_info): Declare.
16962 2011-02-11 Yao Qi <yao@codesourcery.com>
16964 * configure.ac: Call AC_PROG_RANLIB.
16965 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16966 * configure: Regenerate.
16968 2011-02-07 Pedro Alves <pedro@codesourcery.com>
16970 * server.c (gdb_read_memory): Change return semantics to allow
16972 (handle_search_memory_1): Adjust.
16973 (process_serial_event) <'m' packet>: Handle partial transfers.
16974 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
16976 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16978 * regcache.c (init_register_cache): Initialize
16979 regcache->register_status.
16980 (free_register_cache): Release regcache->register_status.
16981 (regcache_cpy): Copy register_status.
16982 (registers_to_string): Print 'x's for unavailable registers.
16983 (supply_register): Mark the register's status valid or
16984 unavailable, depending on whether a buffer was passed in or not.
16985 (supply_register_zeroed): New.
16986 (supply_regblock): Mark the registers' status valid or
16987 unavailable, depending on whether a buffer was passed in or not.
16988 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
16989 (struct regcache): New `register_status' field.
16990 (supply_register_zeroed): Declare.
16991 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
16992 supply_register_zeroed, rather than passing a NULL buffer to
16994 * tracepoint.c (fetch_traceframe_registers): Update comment.
16996 2011-01-28 Pedro Alves <pedro@codesourcery.com>
16998 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17001 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17003 * server.h (decode_xfer_write): Change prototype.
17004 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17005 and don't extract the annex here.
17006 * server.c (decode_xfer_read): Remove `annex' parameter,
17007 and don't extract the annex here.
17008 (decode_xfer): New.
17009 (struct qxfer): New.
17010 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17011 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17012 (handle_qxfer_statictrace): New functions, abstracted out from
17013 handle_query, and made to use the struct qxfer interface.
17014 (handle_threads_qxfer_proper): Rename to ...
17015 (handle_qxfer_threads_proper): ... this.
17016 (handle_threads_qxfer): Rename to ...
17017 (handle_qxfer_threads): ... this. Adjust.
17018 (qxfer_packets): New array.
17019 (handle_qxfer): New function.
17020 (handle_query): Use handle_qxfer.
17022 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17024 * gdbreplay.c: Shorten lines of >= 80 columns.
17025 * linux-low.c: Ditto.
17026 * linux-ppc-low.c: Ditto.
17027 * linux-s390-low.c: Ditto.
17028 * linux-sparc-low.c: Ditto.
17029 * linux-x86-low.c: Ditto.
17030 * linux-xtensa-low.c: Ditto.
17031 * mem-break.c: Ditto.
17032 * nto-low.c: Ditto.
17033 * regcache.h: Ditto.
17034 * remote-utils.c: Ditto.
17037 * thread-db.c: Ditto.
17038 * tracepoint.c: Ditto.
17040 * win32-low.h: Ditto.
17042 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17044 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17047 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17049 * server.c (gdbserver_version): Update copyright year in version
17051 * gdbreplay.c (gdbreplay_version): Ditto.
17053 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17055 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17056 * linux-bfin-low.c: New file.
17057 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17058 PT_DATA_ADDR for BFIN targets.
17059 * Makefile.in (SFILES): Add linux-bfin-low.c.
17060 (clean): Remove reg-bfin.c.
17061 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17062 * README: Mention supported Blackfin targets.
17064 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17066 * .gitignore: New file.
17068 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17070 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17072 2010-10-22 Jie Zhang <jie@codesourcery.com>
17074 * Makefile.in: Add FLAGS_TO_PASS variable.
17075 (install): Remove dependency of install-only and recursively
17076 invoke make for install-only.
17078 2010-10-04 Doug Evans <dje@google.com>
17080 * Makefile.in (uninstall): Use $(DESTDIR).
17082 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17086 * linux-x86-low.c (compat_siginfo_from_siginfo)
17087 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17088 si_code is < 0. Check for si_code == SI_TIMER before checking for
17091 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17093 * lynx-i386-low.c: New file.
17094 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17096 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17098 * lynx-low.c (ptrace_request_to_str): Remove handling for
17099 request values that have been removed in LynxOS 5.x.
17101 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17103 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17106 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17108 * configure.ac: Add --enable-inprocess-agent option.
17109 * configure: Rebuilt.
17111 2010-09-06 Yao Qi <yao@codesourcery.com>
17113 * linux-low.c (linux_kill): Remove unused variable.
17114 (linux_stabilize_threads): Likewise.
17115 * server.c (start_inferior): Likewise.
17116 (queue_stop_reply_callback): Likewise.
17117 * tracepoint.c (do_action_at_tracepoint): Likewise.
17119 2010-09-06 Yao Qi <yao@codesourcery.com>
17121 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17124 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17126 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17128 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17130 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17133 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17135 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17136 gdbserver/lynx-ppc-low.c: New files.
17137 * Makefile.in (lynx_low_h): New variable.
17138 (lynx-low.o, lynx-ppc-low.o): New rules.
17139 * configure.ac: On LynxOS, link with -lnetinet.
17140 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17141 * configure: regenerate.
17143 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17145 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17146 * configure.ac: Add check for vasprintf and vsnprintf.
17147 * configure, config.in: Regenerate.
17148 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17150 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17152 * gdbreplay.c: Move include of alloca.h up, next to include of
17154 * server.h: Add include of malloc.h.
17155 * mem-break.c: Remove include of malloc.h.
17156 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17158 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17160 * Makefile.in (memmem.o): Build with -Wno-error.
17162 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17164 * utils.c (xsnprintf): Make non-static.
17165 * server.h: Add xsnprintf declaration.
17166 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17167 replace calls to snprintf by calls to xsnprintf throughout.
17169 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17171 * configure.ac: Add configure check for alloca.
17172 * configure, config.in: Regenerate.
17173 * server.h: Include alloca.h if it exists.
17174 * gdbreplay.c: Include alloca.h if it exists.
17176 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17178 * linux-low.c (__SIGRTMIN): Define if not already defined.
17179 (linux_create_inferior): Check for __ANDROID__ rather than
17181 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17182 are already deferred.
17183 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17184 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17185 stopped and already has a pending signal to report.
17186 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17187 a pending signal to report or is moving out of a jump pad.
17188 (linux_init_signals): Check for __ANDROID__ rather than
17191 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17193 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17194 debug_threads check. Avoid a linear search when not doing debug
17197 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17199 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17200 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17201 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17202 (process_event): Change local fd's type to gdb_fildes_t.
17203 (create_file_handler): Adjust prototype.
17204 (delete_file_handler): Adjust prototype.
17205 (handle_file_event): Adjust prototype. Use pfildes.
17206 (create_file_event): Adjsut prototype.
17207 * remote-utils.c (remote_desc, listen_desc): Change type to
17209 * server.h: New gdb_fildes_t typedef.
17210 [USE_WIN32API]: Include winsock2.h.
17211 (delete_file_handler, add_file_handler): Adjust prototypes.
17212 (pfildes): Declare.
17213 * utils.c (pfildes): New.
17215 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17217 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17218 * configure: Regenerate.
17220 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17222 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17223 (linux_done_accessing_memory): ... this.
17224 (linux_target_ops): Adjust.
17225 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17226 * nto-low.c (nto_target_ops): Adjust comment.
17227 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17228 * spu-low.c (spu_target_ops): Adjust comment.
17229 * target.h (target_ops): Rename unprepare_to_access_memory field
17230 to done_accessing_memory.
17231 (unprepare_to_access_memory): Rename to ...
17232 (done_accessing_memory): ... this.
17234 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17236 * linux-low.c (linux_prepare_to_access_memory): New.
17237 (linux_unprepare_to_access_memory): New.
17238 (linux_target_ops): Install them.
17239 * server.c (read_memory): Rename to ...
17240 (gdb_read_memory): ... this. Use
17241 prepare_to_access_memory/prepare_to_access_memory.
17242 (write_memory): Rename to ...
17243 (gdb_write_memory): ... this. Use
17244 prepare_to_access_memory/prepare_to_access_memory.
17245 (handle_search_memory_1): Adjust.
17246 (process_serial_event): Adjust.
17247 * target.h (struct target_ops): New fields
17248 prepare_to_access_memory and unprepare_to_access_memory.
17249 (prepare_to_access_memory, unprepare_to_access_memory): New.
17250 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17251 prepare_to_access_memory/prepare_to_access_memory.
17252 * nto-low.c (nto_target_ops): Adjust.
17253 * spu-low.c (spu_target_ops): Adjust.
17254 * win32-low.c (win32_target_ops): Adjust.
17256 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17258 * Makefile.in (WARN_CFLAGS): Get it from configure.
17259 (WERROR_CFLAGS): New.
17260 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17261 * configure.ac: Introduce --enable-werror, which adds -Werror to
17262 the compiler command line. Enabled by default. Disable with
17263 --disable-werror. Add -Wdeclaration-after-statement
17264 Wpointer-arith and -Wformat-nonliteral to warning flags.
17265 * configure: Regenerate.
17267 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17269 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17271 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17273 * gdbreplay.c (remote_error): New.
17275 (expect): Use gdbchar. Check for error reading from GDB.
17276 Clarify sync error output.
17277 (play): Check for errors writing to GDB.
17278 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17279 * remote-utils.c (getpkt): Check for errors writing to the remote
17282 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17284 * linux-low.c (linux_wait_1): Move non-debugging code out of
17285 `debug_threads' control.
17287 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17289 * linux-low.c (linux_wait_1): Don't set last_status here.
17290 * server.c (push_event, queue_stop_reply_callback): Assert we're
17291 not pushing a TARGET_WAITKIND_IGNORE event.
17292 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17293 (myresume, handle_target_event): Set the thread's last_resume_kind
17294 and last_status from the target returned status.
17296 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17300 * linux-x86-low.c (update_debug_registers_callback): New.
17301 (i386_dr_low_set_addr): Use it.
17302 (i386_dr_low_get_addr): New.
17303 (i386_dr_low_set_control): Use update_debug_registers_callback.
17304 (i386_dr_low_get_control): New.
17305 (i386_dr_low_get_status): Adjust.
17306 * linux-low.c (linux_stop_lwp): New.
17307 * linux-low.h (linux_stop_lwp): Declare.
17309 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17310 argument instead of a i386_debug_reg_state.
17311 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17312 a i386_debug_reg_state.
17313 (i386_insert_aligned_watchpoint): Adjust.
17314 (i386_remove_aligned_watchpoint): Adjust.
17315 (i386_low_stopped_data_address): Read the debug registers from the
17316 inferior instead of from the mirrors.
17317 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17318 (i386_dr_low_get_addr): Declare.
17319 (i386_dr_low_get_control): Declare.
17320 (i386_dr_low_get_status): Change prototype.
17322 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17323 (i386_dr_low_get_addr): New.
17324 (i386_dr_low_get_control): New.
17325 (i386_dr_low_get_status): Adjust prototype. Return
17327 (i386_initial_stuff): Clear dr_status_mirror and
17329 (i386_get_thread_context): Adjust.
17330 (i386_set_thread_context): Adjust.
17331 (i386_thread_added): Adjust.
17333 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17335 * linux-low.h (linux_thread_area): Delete declaration.
17337 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17339 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17340 after its termination.
17342 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17344 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17345 (gdb_wants_all_stopped): Delete.
17346 (linux_wait_1): Don't call them.
17347 * server.c (handle_v_cont): Tag all threads as want-stopped.
17348 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17349 stopped as "client-wants-stopped".
17351 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17353 * Makefile.in (signals_h): New.
17354 (server_h): Depend on it.
17355 (server.o): Don't depend on $(signals_def).
17356 (signals.o): Depend on $(signals_def).
17358 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17360 * Makefile.in (signals_def): New.
17361 (server_h): Append include/gdb/signals.h and signals_def.
17362 (server.o): Append signals_def.
17364 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17366 * server.c (handle_target_event): Use target_signal_to_host for
17367 resume_info.sig initialization.
17368 * target.h (struct thread_resume) <sig>: New comment.
17370 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17372 * server.c (handle_query): strcpy() the returned string from paddress()
17373 instead of sprintf().
17374 * utils.c (paddress): Return phex_nz().
17376 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17378 * server.c (handle_v_cont): Call mourn_inferior if process
17380 (myresume): Likewise.
17382 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17384 Static tracepoints, and integration with UST.
17386 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17387 * mem-break.c (uninsert_all_breakpoints)
17388 (reinsert_all_breakpoints): New.
17389 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17390 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17391 (gdb_agent_ust_loaded, helper_thread_id)
17392 (gdb_agent_helper_thread_id): New macros.
17393 (struct ipa_sym_addresses): Add addr_ust_loaded,
17394 addr_helper_thread_id, addr_cmd_buf.
17395 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17396 (in_process_agent_loaded_ust): New.
17397 (write_e_ust_not_loaded): New.
17398 (maybe_write_ipa_ust_not_loaded): New.
17399 (struct collect_static_trace_data_action): New.
17400 (enum tracepoint_type) <static_tracepoint>: New.
17401 (struct tracepoint) <handle>: Mention static tracepoints.
17402 (struct static_tracepoint_ctx): New.
17403 (CMD_BUF_SIZE): New.
17404 (add_tracepoint_action): Handle static tracepoint actions.
17405 (unprobe_marker_at): New.
17406 (clear_installed_tracepoints): Handle static tracepoints.
17407 (cmd_qtdp): Handle static tracepoints.
17408 (probe_marker_at): New.
17409 (cmd_qtstart): Handle static tracepoints.
17410 (response_tracepoint): Handle static tracepoints.
17411 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17412 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17413 (get_context_regcache): Handle static tracepoints.
17414 (do_action_at_tracepoint): Handle static tracepoint actions.
17415 (traceframe_find_block_type): Handle static trace data blocks.
17416 (traceframe_read_sdata): New.
17417 (download_tracepoints): Download static tracepoint actions.
17418 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17419 (GDB_PROBE_NAME): New.
17421 (GET_UST_SYM): New.
17424 (ust_marker_to_static_tracepoint): New.
17426 (collect_ust_data_at_tracepoint): New.
17427 (gdb_ust_probe): New.
17428 (UNIX_PATH_MAX, SOCK_DIR): New.
17429 (gdb_ust_connect_sync_socket): New.
17430 (resume_thread, stop_thread): New.
17431 (run_inferior_command): New.
17432 (init_named_socket): New.
17433 (gdb_ust_socket_init): New.
17434 (cstr_to_hexstr): New.
17436 (first_marker, next_marker): New.
17437 (response_ust_marker): New.
17438 (cmd_qtfstm, cmd_qtsstm): New.
17439 (unprobe_marker_at, probe_marker_at): New.
17440 (cmd_qtstmat, gdb_ust_thread): New.
17441 (gdb_ust_init): New.
17442 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17443 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17444 (ST_REGENTRY): New.
17445 (x86_64_st_collect_regmap): New.
17446 (X86_64_NUM_ST_COLLECT_GREGS): New.
17447 (AMD64_RIP_REGNUM): New.
17448 (supply_static_tracepoint_registers): New.
17449 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17450 (ST_REGENTRY): New.
17451 (i386_st_collect_regmap): New.
17452 (i386_NUM_ST_COLLECT_GREGS): New.
17453 (supply_static_tracepoint_registers): New.
17454 * server.c (handle_query): Handle qXfer:statictrace:read.
17455 <qSupported>: Report support for StaticTracepoints, and
17456 qXfer:statictrace:read features.
17457 * server.h (traceframe_read_sdata)
17458 (supply_static_tracepoint_registers): Declare.
17459 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17460 (unpack_varlen_hex): Include in IPA build.
17461 * Makefile.in (ustlibs, ustinc): New.
17462 (IPA_OBJS): Add remote-utils-ipa.o.
17463 ($(IPA_LIB)): Link -ldl and -lpthread.
17465 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17466 * config.in, configure: Regenerate.
17468 2010-06-20 Ian Lance Taylor <iant@google.com>
17469 Pedro Alves <pedro@codesourcery.com>
17471 * linux-x86-low.c (always_true): Delete.
17472 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17473 trying to fool the compiler with always_true.
17475 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17477 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17478 conditions in gdbserver.
17480 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17482 * spu-low.c (spu_read_memory): Wrap around local store limit.
17483 (spu_write_memory): Likewise.
17485 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17487 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17488 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17490 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17492 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17493 uses with LONGEST uses.
17495 2010-06-14 Stan Shebs <stan@codesourcery.com>
17496 Pedro Alves <pedro@codesourcery.com>
17500 * linux-x86-low.c: Include limits.h.
17502 (always_true): New.
17505 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17506 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17507 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17508 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17509 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17510 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17511 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17512 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17513 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17514 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17515 (amd64_emit_void_call_2): New.
17516 (amd64_emit_ops): New.
17517 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17518 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17519 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17520 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17521 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17522 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17523 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17524 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17525 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17526 (i386_emit_stack_adjust, i386_emit_int_call_1)
17527 (i386_emit_void_call_2): New.
17528 (i386_emit_ops): New.
17529 (x86_emit_ops): New.
17530 (the_low_target): Install x86_emit_ops.
17531 * server.h (struct emit_ops): New.
17532 (get_raw_reg_func_addr): Declare.
17533 (current_insn_ptr, emit_error): Declare.
17534 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17535 (set_trace_state_variable_value): New defines.
17536 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17537 addr_get_trace_state_variable_value and
17538 addr_set_trace_state_variable_value.
17539 (symbol_list): New fields for get_raw_reg,
17540 get_trace_state_variable_value and set_trace_state_variable_value.
17541 (condfn): New typedef.
17542 (struct tracepoint): New field `compiled_cond'.
17543 (do_action_at_tracepoint): Clear compiled_cond.
17544 (get_trace_state_variable_value, set_trace_state_variable_value):
17546 (condition_true_at_tracepoint): If there's a compiled condition,
17548 (current_insn_ptr, emit_error): New globals.
17549 (struct bytecode_address): New.
17550 (get_raw_reg_func_addr): New.
17551 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17552 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17553 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17554 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17555 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17556 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17557 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17558 (compile_tracepoint_condition, compile_bytecodes): New.
17559 * target.h (emit_ops): Forward declare.
17560 (struct target_ops): New field emit_ops.
17561 (target_emit_ops): New.
17562 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17563 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17564 * linux-low.c (linux_emit_ops): New.
17565 (linux_target_ops): Install it.
17566 * linux-low.h (struct linux_target_ops): New field emit_ops.
17568 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17570 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17571 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17573 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17574 Stan Shebs <stan@codesourcery.com>
17576 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17577 (all): Depend on $(extra_libraries).
17578 (install-only): Install the IPA.
17579 (IPA_OBJS, IPA_LIB): New.
17580 (clean): Remove the IPA lib.
17581 (IPAGENT_CFLAGS): New.
17582 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17583 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17584 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17585 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17586 * configure.ac: Check for atomic builtins support in the compiler.
17587 (IPA_DEPFILES, extra_libraries): Define.
17588 * configure.srv (ipa_obj): Add description.
17589 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17590 (i[34567]86-*-linux*): Set ipa_obj.
17591 (x86_64-*-linux*): Set ipa_obj.
17592 * linux-low.c (stabilizing_threads): New.
17593 (supports_fast_tracepoints): New.
17594 (linux_detach): Stabilize threads before detaching.
17595 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17596 the lwp is either not stabilizing, or is moving out of a jump pad.
17597 (linux_fast_tracepoint_collecting): New.
17598 (maybe_move_out_of_jump_pad): New.
17599 (enqueue_one_deferred_signal): New.
17600 (dequeue_one_deferred_signal): New.
17601 (linux_wait_for_event_1): If moving out of a jump pad, defer
17602 pending signals to later.
17603 (linux_stabilize_threads): New.
17604 (linux_wait_1): Check if threads need moving out of jump pads, and
17606 (stuck_in_jump_pad_callback): New.
17607 (move_out_of_jump_pad_callback): New.
17608 (lwp_running): New.
17609 (linux_resume_one_lwp): Handle moving out of jump pads.
17610 (linux_set_resume_request): Dequeue deferred signals.
17611 (need_step_over_p): Also step over fast tracepoint jumps.
17612 (start_step_over): Also uninsert fast tracepoint jumps.
17613 (finish_step_over): Also reinsert fast tracepoint jumps.
17614 (linux_install_fast_tracepoint_jump): New.
17615 (linux_target_ops): Install linux_stabilize_threads and
17616 linux_install_fast_tracepoint_jump_pad.
17617 * linux-low.h (linux_target_ops) <get_thread_area,
17618 install_fast_tracepoint_jump_pad>: New fields.
17619 (struct lwp_info) <collecting_fast_tracepoint,
17620 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17621 (linux_get_thread_area): Declare.
17622 * linux-x86-low.c (jump_insn): New.
17623 (x86_get_thread_area): New.
17624 (append_insns): New.
17625 (push_opcode): New.
17626 (amd64_install_fast_tracepoint_jump_pad): New.
17627 (i386_install_fast_tracepoint_jump_pad): New.
17628 (x86_install_fast_tracepoint_jump_pad): New.
17629 (the_low_target): Install x86_get_thread_area and
17630 x86_install_fast_tracepoint_jump_pad.
17631 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17632 (struct fast_tracepoint_jump): New.
17633 (fast_tracepoint_jump_insn): New.
17634 (fast_tracepoint_jump_shadow): New.
17635 (find_fast_tracepoint_jump_at): New.
17636 (fast_tracepoint_jump_here): New.
17637 (delete_fast_tracepoint_jump): New.
17638 (set_fast_tracepoint_jump): New.
17639 (uninsert_fast_tracepoint_jumps_at): New.
17640 (reinsert_fast_tracepoint_jumps_at): New.
17641 (set_breakpoint_at): Use write_inferior_memory.
17642 (uninsert_raw_breakpoint): Use write_inferior_memory.
17643 (check_mem_read): Mask out fast tracepoint jumps.
17644 (check_mem_write): Mask out fast tracepoint jumps.
17645 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17646 (set_fast_tracepoint_jump): Declare.
17647 (delete_fast_tracepoint_jump)
17648 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17649 (reinsert_fast_tracepoint_jumps_at): Declare.
17650 * regcache.c: Don't compile many functions when building the
17651 in-process agent library.
17652 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17653 the register buffer in the heap.
17654 (free_register_cache): If the register buffer isn't owned by the
17655 regcache, don't free it.
17656 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17657 pre-existing register caches.
17658 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17660 (convert_ascii_to_int): : Constify `from' parameter type.
17661 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17662 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17663 the needed buffer in-place.
17664 (relocate_instruction): New.
17665 * server.c (handle_query) <qSymbols>: If the target supports
17666 tracepoints, give it a chance of looking up symbols. Report
17667 support for fast tracepoints.
17668 (handle_status): Stabilize threads.
17669 (process_serial_event): Adjust.
17670 * server.h (struct fast_tracepoint_jump): Forward declare.
17671 (struct process_info) <fast_tracepoint_jumps>: New field.
17672 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17673 (decode_X_packet, decode_M_packet): Adjust.
17674 (relocate_instruction): Declare.
17675 (in_process_agent_loaded): Declare.
17676 (tracepoint_look_up_symbols): Declare.
17677 (struct fast_tpoint_collect_status): Declare.
17678 (fast_tracepoint_collecting): Declare.
17679 (force_unlock_trace_buffer): Declare.
17680 (handle_tracepoint_bkpts): Declare.
17681 (initialize_low_tracepoint)
17682 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17683 * target.h (struct target_ops) <stabilize_threads,
17684 install_fast_tracepoint_jump_pad>: New fields.
17685 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17686 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17687 [HAVE_STDINT_H]: Include stdint.h.
17688 (trace_debug_1): Rename to ...
17689 (trace_vdebug): ... this.
17690 (trace_debug): Rename to ...
17691 (trace_debug_1): ... this. Add `level' parameter.
17692 (trace_debug): New.
17693 (ATTR_USED, ATTR_NOINLINE): New.
17694 (IP_AGENT_EXPORT): New.
17695 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17696 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17697 (about_to_request_buffer_space, trace_buffer_is_full)
17698 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17699 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17700 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17701 (traceframe_write_count, traceframes_created)
17702 (trace_state_variables)
17703 New renaming defines.
17704 (struct ipa_sym_addresses): New.
17705 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17706 (symbol_list): New.
17707 (ipa_sym_addrs): New.
17708 (all_tracepoint_symbols_looked_up): New.
17709 (in_process_agent_loaded): New.
17710 (write_e_ipa_not_loaded): New.
17711 (maybe_write_ipa_not_loaded): New.
17712 (tracepoint_look_up_symbols): New.
17713 (debug_threads) [IN_PROCESS_AGENT]: New.
17714 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17715 (UNKNOWN_SIDE_EFFECTS): New.
17716 (stop_tracing): New.
17717 (flush_trace_buffer): New.
17718 (stop_tracing_bkpt): New.
17719 (flush_trace_buffer_bkpt): New.
17720 (read_inferior_integer): New.
17721 (read_inferior_uinteger): New.
17722 (read_inferior_data_pointer): New.
17723 (write_inferior_data_pointer): New.
17724 (write_inferior_integer): New.
17725 (write_inferior_uinteger): New.
17726 (struct collect_static_trace_data_action): Delete.
17727 (enum tracepoint_type): New.
17728 (struct tracepoint) <type>: New field `type'.
17729 <actions_str, step_actions, step_actions_str>: Only include in
17731 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17732 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17733 (tracepoints): Use IP_AGENT_EXPORT.
17734 (last_tracepoint): Don't include in the IPA.
17735 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17736 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17737 (alloced_trace_state_variables): New.
17738 (trace_state_variables): Use IP_AGENT_EXPORT.
17739 (traceframe_t): Delete unused variable.
17740 (circular_trace_buffer): Don't include in the IPA.
17741 (trace_buffer_start): Delete.
17742 (struct trace_buffer_control): New.
17743 (trace_buffer_free): Delete.
17744 (struct ipa_trace_buffer_control): New.
17745 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17746 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17748 (trace_buffer_ctrl): New.
17749 (TRACE_BUFFER_CTRL_CURR): New.
17750 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17751 Reimplement as macros.
17752 (trace_buffer_wrap): Delete.
17753 (traceframe_write_count, traceframe_read_count)
17754 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17755 (struct tracepoint_hit_ctx) <type>: New field.
17756 (struct fast_tracepoint_ctx): New.
17757 (memory_barrier): New.
17759 (record_tracepoint_error): Update atomically in the IPA.
17760 (clear_inferior_trace_buffer): New.
17761 (about_to_request_buffer_space): New.
17762 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17763 updating the same buffer.
17764 (add_tracepoint): Default the tracepoint's type to trap
17765 tracepoint, and orig_size to -1.
17766 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17767 internal variables.
17768 (create_trace_state_variable): New parameter `gdb'. Handle it.
17769 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17770 (cmd_qtdp): Handle fast tracepoints.
17771 (cmd_qtdv): Adjust.
17772 (max_jump_pad_size): New.
17773 (gdb_jump_pad_head): New.
17774 (get_jump_space_head): New.
17775 (claim_jump_space): New.
17776 (sort_tracepoints): New.
17777 (MAX_JUMP_SIZE): New.
17778 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17780 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17781 support. Upload fast traceframes, and delete internal IPA
17783 (stop_tracing_handler): New.
17784 (flush_trace_buffer_handler): New.
17785 (cmd_qtstop): Upload fast tracepoints.
17786 (response_tracepoint): Handle fast tracepoints.
17787 (tracepoint_finished_step): Upload fast traceframes. Set the
17788 tracepoint hit context's tracepoint type.
17789 (handle_tracepoint_bkpts): New.
17790 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17791 type. Add comment about fast tracepoints.
17792 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17793 non-existing action_str field.
17794 (get_context_regcache): Handle fast tracepoints.
17795 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17797 (fast_tracepoint_from_jump_pad_address): New.
17798 (fast_tracepoint_from_ipa_tpoint_address): New.
17799 (collecting_t): New.
17800 (force_unlock_trace_buffer): New.
17801 (fast_tracepoint_collecting): New.
17803 (gdb_collect): New.
17804 (write_inferior_data_ptr): New.
17805 (target_tp_heap): New.
17806 (target_malloc): New.
17807 (download_agent_expr): New.
17809 (download_tracepoints): New.
17810 (download_trace_state_variables): New.
17811 (upload_fast_traceframes): New.
17812 (IPA_FIRST_TRACEFRAME): New.
17813 (IPA_NEXT_TRACEFRAME_1): New.
17814 (IPA_NEXT_TRACEFRAME): New.
17815 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17816 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17817 (gdb_jump_pad_buffer_end): New.
17818 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17819 (initialize_tracepoint): Adjust.
17820 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17821 buffer. Initialize the low module.
17822 * utils.c (PREFIX, TOOLNAME): New.
17823 (malloc_failure): Use PREFIX.
17824 (error): In the IPA, an error causes an exit.
17825 (fatal, warning): Use PREFIX.
17826 (internal_error): Use TOOLNAME.
17827 (NUMCELLS): Increase to 10.
17828 * configure, config.in: Regenerate.
17830 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17832 * server.c (handle_query) <qSupported>: Do two passes over the
17833 qSupported string to avoid nesting strtok.
17835 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17837 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17839 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17840 -Wl,--dynamic-list.
17841 * configure: Regenerate.
17842 * proc-service.list: New.
17844 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17846 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17849 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17851 * gdbreplay.c (remote_open): Check error return from socket() call by
17852 its equality to -1 not by it being negative.
17853 * remote-utils.c (remote_open): Likewise.
17855 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17857 * config.h: Regenerate.
17859 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17861 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17862 doesn't provide PTRACE_GET_THREAD_AREA.
17864 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17866 * linux-m68k-low.c: Include <asm/ptrace.h>
17867 (ps_get_thread_area): Implement.
17869 2010-05-03 Doug Evans <dje@google.com>
17871 * event-loop.c (struct callback_event): New struct.
17872 (callback_list): New global.
17873 (append_callback_event, delete_callback_event): New functions.
17874 (process_callback): New function.
17875 (start_event_loop): Call it.
17876 * remote-utils.c (NOT_SCHEDULED): Define.
17877 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17878 moved out of readchar.
17879 (readchar): Rewrite. Call reschedule before returning.
17880 (reset_readchar): New function.
17881 (remote_close): Call it.
17882 (process_remaining, reschedule): New functions.
17883 * server.h (callback_handler_func): New typedef.
17884 (append_callback_event, delete_callback_event): Declare.
17886 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17888 * proc-service.c (ps_pglobal_lookup): Use
17889 thread_db_look_up_one_symbol.
17890 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
17891 parameter. Use it instead of all_symbols_looked_up.
17892 * server.h (struct process_info) <all_symbols_looked_up>: Delete
17894 (all_symbols_looked_up): Don't declare.
17895 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
17896 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
17898 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
17899 Set all_symbols_looked_up here.
17900 (thread_db_look_up_one_symbol): New.
17901 (thread_db_get_tls_address): Adjust.
17902 (thread_db_load_search, try_thread_db_load_1): Always allocate the
17903 thread_db object on the heap, and tentatively set it in the
17905 (thread_db_init): Don't set all_symbols_looked_up here.
17906 * linux-low.h (thread_db_look_up_one_symbol): Declare.
17908 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17910 * linux-low.c (linux_kill, linux_detach): Adjust.
17911 (status_pending_p_callback): Remove redundant statement. Check
17912 for !TARGET_WAITIKIND_IGNORE, instead of
17913 TARGET_WAITKIND_STOPPED.
17914 (handle_tracepoints): Make sure LWP is locked. Adjust.
17915 (linux_wait_for_event_1): Adjust.
17916 (linux_cancel_breakpoints): New.
17917 (unsuspend_one_lwp): New.
17918 (unsuspend_all_lwps): New.
17919 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
17920 (send_sigstop_callback): Change return type to int, add new
17921 `except' parameter and handle it.
17922 (suspend_and_send_sigstop_callback): New.
17923 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
17924 pass them down. If SUSPEND, also increment the lwp's suspend
17926 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
17927 (need_step_over_p): Don't consider suspended LWPs.
17928 (start_step_over): Adjust.
17929 (proceed_one_lwp): Change return type to int, add new `except'
17930 parameter and handle it.
17931 (unsuspend_and_proceed_one_lwp): New.
17932 (proceed_all_lwps): Use find_inferior instead of
17934 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
17935 also decrement the suspend count of LWPs. Pass `except' down,
17936 instead of hacking its suspend count.
17937 (linux_pause_all): Add `freeze' parameter. Adjust.
17938 (linux_unpause_all): New.
17939 (linux_target_ops): Install linux_unpause_all.
17940 * server.c (handle_status): Adjust.
17941 * target.h (struct target_ops): New fields `unpause_all' and
17942 `cancel_breakpoints'. Add new parameter to `pause_all'.
17943 (pause_all): Add new `freeze' parameter.
17944 (unpause_all): New.
17945 (cancel_breakpoints): New.
17946 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
17947 cancel breakpoints.
17948 (cmd_qtstart): Pause threads.
17949 (stop_tracing): Pause threads, and cancel breakpoints.
17950 * win32-low.c (win32_target_ops): Adjust.
17952 2010-05-03 Pedro Alves <pedro@codesourcery.com>
17954 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
17955 the inferior right away from here...
17956 (linux_wait_1): ... to here, and adjust to check the thread's
17957 last_resume_kind instead of the lwp's step or stop_expected flags.
17959 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17961 * README: Use consistent `GDB' and `GDBserver' spellings.
17963 2010-05-02 Pedro Alves <pedro@codesourcery.com>
17965 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
17966 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
17967 (linux_detach_one_lwp): Assume the lwp is stopped.
17968 (any_thread_of): Delete.
17969 (linux_detach): Stop all lwps here. Don't blindly delete all
17971 (delete_lwp_callback): New.
17972 (linux_mourn): Delete all lwps of the process that is gone.
17973 (linux_wait_1): Don't delete the last lwp of the process here.
17974 * mem-break.h (mark_breakpoints_out): Declare.
17975 * mem-break.c (mark_breakpoints_out): New.
17976 (free_all_breakpoints): Use it.
17977 * server.c (handle_target_event): If the process is gone, mark
17979 * thread-db.c (struct thread_db) <create_bp>: New field.
17980 (thread_db_enable_reporting): Fix prototype. Store a thread event
17981 breakpoint reference in the thread_db struct.
17982 (thread_db_load_search): Clear the thread_db object.
17983 (try_thread_db_load_1): Ditto.
17984 (switch_to_process): New.
17985 (disable_thread_event_reporting): Use it.
17986 (remove_thread_event_breakpoints): New.
17987 (thread_db_detach, thread_db_mourn): Use it.
17989 2010-05-01 Pedro Alves <pedro@codesourcery.com>
17991 * linux-low.c (linux_enable_event_reporting): New.
17992 (linux_wait_for_event_1, handle_extended_wait): Use it.
17994 2010-04-30 Pedro Alves <pedro@codesourcery.com>
17996 * linux-low.c (linux_kill_one_lwp, linux_kill)
17997 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
17998 (send_sigstop): Take an lwp_info as parameter instead. Queue a
17999 SIGSTOP even if the LWP is stopped.
18000 (send_sigstop_callback): New.
18001 (stop_all_lwps): Use send_sigstop_callback instead.
18002 (linux_resume_one_thread): Adjust.
18003 (proceed_one_lwp): Still proceed an LWP that the client has
18004 requested to stop, if we haven't reported it as stopped yet. Make
18005 sure that LWPs the client want stopped, have a pending SIGSTOP.
18007 2010-04-26 Doug Evans <dje@google.com>
18009 * server.c (handle_general_set): Make static.
18011 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18012 Print received char after testing for error/eof instead of before.
18013 (input_interrupt): Tweak comment.
18015 2010-04-23 Doug Evans <dje@google.com>
18017 * server.c (start_inferior): Print inferior argv if --debug.
18019 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18021 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18022 * nto-x86-low.c: Include server.h
18024 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18026 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18027 be consistent with other sources of this directory.
18028 (init_registers_amd64): Correct name of source file of this function
18031 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18033 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18034 64-bit executables.
18036 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18038 * win32-i386-low.c: Add 64-bit support.
18039 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18040 (init_registers_amd64): Declare.
18041 (mappings): Add 64-bit version of array.
18042 (init_windows_x86): New function.
18043 (the_low_target): Change init_arch field to init_windows_x86.
18045 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18047 * win32-low.c: Adapt to support also 64-bit architecture.
18048 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18049 (get_image_name): Use SIZE_T type for local variable `done'.
18050 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18051 (toolhelp_get_dll_name): Idem.
18052 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18053 Use uintptr_t typecast to avoid warning.
18054 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18055 (handle_exception): Use phex_nz to avoid warning.
18056 (win32_wait): Remove unused local variable `process'.
18058 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18060 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18063 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18065 * configure.ac: Use `ws2_32' library for srv_mingw.
18066 * configure: Regenerate.
18067 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18068 * remote-utils.c: Likewise.
18070 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18072 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18073 if __x86_64__ is defined.
18075 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18077 * configure: Regenerate.
18079 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18081 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18082 * target.h (target_ops): New get_tib_address field.
18083 * win32-low.h (win32_thread_info): Add thread_local_base field.
18084 * win32-low.c (child_add_thread): Add tlb argument.
18085 Set thread_local_base field to TLB.
18086 (get_child_debug_event): Adapt to child_add_thread change.
18087 (win32_get_tib_address): New function.
18088 (win32_target_ops): Set get_tib_address field to
18089 win32_get_tib_address.
18090 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18092 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18094 * linux-low.c (linux_mourn): Also remove the process.
18095 * server.c (handle_target_event): Don't remove the process here.
18096 * nto-low.c (nto_mourn): New.
18097 (nto_target_ops): Install it.
18098 * spu-low.c (spu_mourn): New.
18099 (spu_target_ops): Install it.
18100 * win32-low.c (win32_mourn): New.
18101 (win32_target_ops): Install it.
18103 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18105 * server.h (buffer_xml_printf): Remove redundant `;'.
18107 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18109 * regcache.c (set_register_cache): Invalidate regcaches before
18110 changing the register cache layout.
18111 (regcache_invalidate_one): Allow a NULL regcache.
18112 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18113 regcaches before changing the register cache layout or the target
18116 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18118 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18119 variable warning on Linux/x86-64.
18121 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18123 GDBserver disconnected tracing support.
18125 * linux-low.c (linux_remove_process): Delete.
18126 (add_lwp): Don't set last_resume_kind here.
18127 (linux_kill): Use `mourn'.
18128 (linux_detach): Use `thread_db_detach', and `mourn'.
18129 (linux_mourn): New.
18130 (linux_attach_lwp_1): Adjust comment.
18131 (linux_attach): last_resume_kind moved the thread_info; adjust.
18132 (status_pending_p_callback): Adjust.
18133 (linux_wait_for_event_1): Adjust.
18134 (count_events_callback, select_singlestep_lwp_callback)
18135 (select_event_lwp_callback, cancel_breakpoints_callback)
18136 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18137 (proceed_one_lwp): Adjust.
18138 (linux_async): Add debug output.
18139 (linux_thread_stopped): New.
18140 (linux_pause_all): New.
18141 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18143 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18144 (thread_db_free): Delete declaration.
18145 (thread_db_detach, thread_db_mourn): Declare.
18146 * thread-db.c (thread_db_init): Use thread_db_mourn.
18147 (thread_db_free): Delete, split in two.
18148 (disable_thread_event_reporting): New.
18149 (thread_db_detach): New.
18150 (thread_db_mourn): New.
18152 * server.h (struct thread_info) <last_resume_kind>: New field.
18153 <attached>: Add comment.
18154 <gdb_detached>: New field.
18155 (handler_func): Change return type to int.
18156 (handle_serial_event, handle_target_event): Ditto.
18157 (gdb_connected): Declare.
18159 (disconnected_tracing): Declare.
18160 (stop_tracing): Declare.
18162 * server.c (handle_query) <qSupported>: Report support for
18163 disconnected tracing.
18164 (queue_stop_reply_callback): Account for running threads.
18165 (gdb_wants_thread_stopped): New.
18166 (gdb_wants_all_threads_stopped): New.
18167 (gdb_reattached_process): New.
18168 (handle_status): Clear the `gdb_detached' flag of all processes.
18169 In all-stop, stop all threads.
18170 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18171 (process_serial_event): If the remote connection breaks, or if an
18172 exit was forced with "monitor exit", force an event loop exit.
18173 Handle disconnected tracing on detach.
18174 (handle_serial_event): Adjust.
18175 (handle_target_event): If GDB isn't connected, forward events back
18176 to the inferior, unless the last process exited, in which case,
18177 exit gdbserver. Adjust interface.
18179 * remote-utils.c (remote_open): Don't block in accept. Instead
18180 register an event loop source on the listen socket file
18181 descriptor. Refactor bits into ...
18182 (listen_desc): ... this new global.
18183 (gdb_connected): ... this new function.
18184 (enable_async_notification): ... this new function.
18185 (handle_accept_event): ... this new function.
18186 (remote_close): Clear remote_desc.
18188 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18190 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18192 (mourn_inferior): Define.
18193 (target_process_qsupported): Avoid the dangling else problem.
18194 (thread_stopped): Define.
18195 (pause_all): Define.
18196 (target_waitstatus_to_string): Declare.
18197 * target.c (target_waitstatus_to_string): New.
18199 * tracepoint.c (tracing): Make extern.
18200 (disconnected_tracing): New.
18201 (stop_tracing): Make extern. Handle tracing stops due to GDB
18203 (cmd_qtdisconnected): New.
18204 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18205 (handle_tracepoint_general_set): Handle QTDisconnected.
18207 * event-loop.c (event_handler_func): Change return type to int.
18208 (process_event): Bail out if the event handler wants the event
18210 (handle_file_event): Ditto.
18211 (start_event_loop): Bail out if the event handler wants the event
18214 * nto-low.c (nto_target_ops): Adjust.
18215 * spu-low.c (spu_wait): Don't remove the process here.
18216 (spu_target_ops): Adjust.
18217 * win32-low.c (win32_wait): Don't remove the process here.
18218 (win32_target_ops): Adjust.
18220 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18222 * regcache.c (realloc_register_cache): Invalidate inferior's
18223 regcache before recreating it.
18225 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18227 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18229 2010-04-09 Stan Shebs <stan@codesourcery.com>
18230 Pedro Alves <pedro@codesourcery.com>
18232 * server.h (LONGEST): New.
18233 (struct thread_info) <while_stepping>: New field.
18234 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18236 (initialize_tracepoint, handle_tracepoint_general_set)
18237 (handle_tracepoint_query, tracepoint_finished_step)
18238 (tracepoint_was_hit, release_while_stepping_state_list):
18239 (current_traceframe): Declare.
18240 * server.c (handle_general_set): Handle tracepoint packets.
18241 (read_memory): New.
18242 (write_memory): New.
18243 (handle_search_memory_1): Use read_memory.
18244 (handle_query): Report support for conditional tracepoints, trace
18245 state variables, and tracepoint sources. Handle tracepoint
18247 (main): Initialize the tracepoints module.
18248 (process_serial_event): Handle traceframe reads/writes.
18250 * linux-low.c (handle_tracepoints): New.
18251 (linux_wait_1): Call it.
18252 (linux_resume_one_lwp): Handle while-stepping.
18253 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18254 (linux_target_ops): Install them.
18255 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18257 * linux-x86-low.c (x86_supports_tracepoints): New.
18258 (the_low_target). Install it.
18260 * mem-break.h (delete_breakpoint): Declare.
18261 * mem-break.c (delete_breakpoint): Make external.
18263 * target.h (struct target_ops): Add `supports_tracepoints',
18264 `read_pc', and `write_pc' fields.
18265 (target_supports_tracepoints): Define.
18266 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18269 * regcache.h (struct regcache) <registers_owned>: New field.
18270 (init_register_cache, regcache_cpy): Declare.
18271 (regcache_read_pc, regcache_write_pc): Declare.
18272 (register_cache_size): Declare.
18273 (supply_regblock): Declare.
18274 * regcache.c (init_register_cache): New.
18275 (new_register_cache): Use it.
18276 (regcache_cpy): New.
18277 (register_cache_size): New.
18278 (supply_regblock): New.
18279 (regcache_read_pc, regcache_write_pc): New.
18281 * tracepoint.c: New.
18283 * Makefile.in (OBS): Add tracepoint.o.
18284 (tracepoint.o): New rule.
18286 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18288 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18290 (i386-mmx.c): Likewise.
18291 (i386-mmx-linux.o): Likewise.
18292 (i386-mmx-linux.c): Likewise.
18294 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18295 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18296 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18297 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18299 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18300 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18301 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18303 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18305 * Makefile.in (clean): Updated.
18307 (i386-avx.c): Likewise.
18308 (i386-avx-linux.o): Likewise.
18309 (i386-avx-linux.c): Likewise.
18310 (amd64-avx.o): Likewise.
18311 (amd64-avx.c): Likewise.
18312 (amd64-avx-linux.o): Likewise.
18313 (amd64-avx-linux.c): Likewise.
18315 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18316 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18317 (srv_amd64_regobj): Add amd64-avx.o.
18318 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18319 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18320 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18321 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18322 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18323 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18324 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18326 * i387-fp.c: Include "i386-xstate.h".
18328 (i387_cache_to_xsave): Likewise.
18329 (i387_xsave_to_cache): Likewise.
18330 (x86_xcr0): Likewise.
18332 * i387-fp.h (i387_cache_to_xsave): Likewise.
18333 (i387_xsave_to_cache): Likewise.
18334 (x86_xcr0): Likewise.
18336 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18337 * linux-crisv32-low.c (target_regsets): Likewise.
18338 * linux-m68k-low.c (target_regsets): Likewise.
18339 * linux-mips-low.c (target_regsets): Likewise.
18340 * linux-ppc-low.c (target_regsets): Likewise.
18341 * linux-s390-low.c (target_regsets): Likewise.
18342 * linux-sh-low.c (target_regsets): Likewise.
18343 * linux-sparc-low.c (target_regsets): Likewise.
18344 * linux-xtensa-low.c (target_regsets): Likewise.
18346 * linux-low.c: Include <sys/uio.h>.
18347 (regsets_fetch_inferior_registers): Support nt_type.
18348 (regsets_store_inferior_registers): Likewise.
18349 (linux_process_qsupported): New.
18350 (linux_target_ops): Add linux_process_qsupported.
18352 * linux-low.h (regset_info): Add nt_type.
18353 (linux_target_ops): Add process_qsupported.
18355 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18357 (init_registers_i386_avx_linux): New.
18358 (init_registers_amd64_avx_linux): Likewise.
18359 (xmltarget_i386_linux_no_xml): Likewise.
18360 (xmltarget_amd64_linux_no_xml): Likewise.
18361 (PTRACE_GETREGSET): Likewise.
18362 (PTRACE_SETREGSET): Likewise.
18363 (x86_fill_xstateregset): Likewise.
18364 (x86_store_xstateregset): Likewise.
18365 (use_xml): Likewise.
18366 (x86_linux_update_xmltarget): Likewise.
18367 (x86_linux_process_qsupported): Likewise.
18368 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18369 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18370 init_registers_i386_linux here. Call
18371 x86_linux_update_xmltarget.
18372 (the_low_target): Add x86_linux_process_qsupported.
18374 * server.c (handle_query): Call target_process_qsupported.
18376 * target.h (target_ops): Add process_qsupported.
18377 (target_process_qsupported): New.
18379 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18381 * inferiors.c (add_thread): Set last_status kind to
18382 TARGET_WAITKIND_IGNORE.
18383 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18384 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18385 (linux_wait_1): Move `thread' local definition to block that uses
18386 it. Don't NULL initialize `event_child'.
18387 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18388 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18389 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18391 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18393 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18394 an extended waitstatus, or by a watchpoint.
18395 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18396 thread was stepping or has been stopped by a watchpoint.
18398 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18400 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18401 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18402 of another, then delete the previous, and validate all
18404 (validate_inserted_breakpoint): New.
18405 (delete_disabled_breakpoints): New.
18406 (validate_breakpoints): New.
18407 (check_mem_read): Validate breakpoints before trusting their
18408 shadow. Delete disabled breakpoints.
18409 (check_mem_write): Validate breakpoints before trusting they
18410 should be inserted. Delete disabled breakpoints.
18411 * mem-break.h (validate_breakpoints):
18412 * server.c (handle_query): Validate breakpoints when we see a
18415 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18417 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18418 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18419 if we could tell there's a GDB breakpoint at stop_pc.
18420 (need_step_over_p): Don't do a step over if we find a GDB
18421 breakpoint at the resume PC.
18423 * mem-break.c (struct raw_breakpoint): New.
18424 (enum bkpt_type): New type `gdb_breakpoint'.
18425 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18426 fields. New field `raw'.
18427 (find_raw_breakpoint_at): New.
18428 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18429 breakpoint instead.
18430 (set_breakpoint_at): Adjust.
18431 (delete_raw_breakpoint): New.
18432 (release_breakpoint): New.
18433 (delete_breakpoint): Rename to...
18434 (delete_breakpoint_1): ... this. Add proc parameter. Use
18435 release_breakpoint. Return ENOENT.
18436 (delete_breakpoint): Reimplement.
18437 (find_breakpoint_at): Delete.
18438 (find_gdb_breakpoint_at): New.
18439 (delete_breakpoint_at): Delete.
18440 (set_gdb_breakpoint_at): New.
18441 (delete_gdb_breakpoint_at): New.
18442 (gdb_breakpoint_here): New.
18443 (set_reinsert_breakpoint): Use release_breakpoint.
18444 (uninsert_breakpoint): Rename to ...
18445 (uninsert_raw_breakpoint): ... this.
18446 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18447 (reinsert_raw_breakpoint): Change parameter type to
18449 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18451 (check_breakpoints): Adjust. Use release_breakpoint.
18452 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18453 (breakpoint_inserted_here): Ditto.
18454 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18455 Don't trust the breakpoint's shadow if it is not inserted.
18456 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18457 (delete_all_breakpoints): Adjust.
18458 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18459 use delete_breakpoint_1.
18461 * mem-break.h (breakpoints_supported): Delete declaration.
18462 (set_gdb_breakpoint_at): Declare.
18463 (gdb_breakpoint_here): Declare.
18464 (delete_breakpoint_at): Delete.
18465 (delete_gdb_breakpoint_at): Declare.
18467 * server.h (struct raw_breakpoint): Forward declare.
18468 (struct process_info): New field `raw_breakpoints'.
18470 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18473 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18475 * linux-low.c (status_pending_p_callback): Fix comment.
18476 (linux_wait_for_event_1): Move most of the internal breakpoint
18477 handling from here...
18478 (linux_wait_1): ... to here.
18479 (count_events_callback): New.
18480 (select_singlestep_lwp_callback): New.
18481 (select_event_lwp_callback): New.
18482 (cancel_breakpoints_callback): New.
18483 (select_event_lwp): New.
18484 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18485 priority to all LWPs that have had events that should be reported
18486 to the client. Cancel breakpoints when about to reporting the
18487 event to the client, not while stopping lwps. No longer cancel
18488 finished single-steps here.
18489 (cancel_finished_single_step): Delete.
18490 (cancel_finished_single_steps): Delete.
18492 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18494 * mem-break.c (enum bkpt_type): New.
18495 (struct breakpoint): New field `type'.
18496 (set_breakpoint_at): Change return type to struct breakpoint
18497 pointer. Set type to `other_breakpoint' by default.
18498 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18499 in the breakpoint list.
18500 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18501 (reinsert_breakpoint): Rename to ...
18502 (reinsert_raw_breakpoint): ... this.
18503 (reinsert_breakpoints_at): Adjust.
18504 * mem-break.h (struct breakpoint): Declare.
18505 (set_breakpoint_at): Change return type to struct breakpoint
18508 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18510 * server.c (handle_query): Assign, not compare.
18512 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18514 Teach linux gdbserver to step-over-breakpoints.
18516 * linux-low.c (can_hardware_single_step): New.
18517 (supports_breakpoints): New.
18518 (handle_extended_wait): If stopping threads, read the stop pc of
18519 the new cloned LWP.
18521 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18522 low target doesn't support retrieving the PC.
18523 (add_lwp): Set last_resume_kind to resume_continue.
18524 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18525 (linux_attach): Don't clear stop_expected. Set the lwp's
18526 last_resume_kind to resume_stop.
18527 (linux_detach_one_lwp): Don't check for removed breakpoints.
18528 (check_removed_breakpoint): Delete.
18529 (status_pending_p): Rename to ...
18530 (status_pending_p_callback): ... this. Don't check for removed
18531 breakpoints. Don't consider threads that are stopped from GDB's
18533 (linux_wait_for_lwp): Always read the stop_pc here.
18534 (cancel_breakpoint): New.
18535 (step_over_bkpt): New global.
18536 (linux_wait_for_event_1): Implement stepping over breakpoints.
18537 (gdb_wants_lwp_stopped): New.
18538 (gdb_wants_all_stopped): New.
18539 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18540 single-step traps here. Store the thread's last reported target
18542 (send_sigstop): Don't clear stop_expected. Always set it,
18544 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18545 (cancel_finished_single_step): New.
18546 (cancel_finished_single_steps): New.
18547 (wait_for_sigstop): Don't cancel finished single-step traps here.
18548 (linux_resume_one_lwp): Don't check for removed breakpoints.
18549 Don't set `step' on non-hardware step archs.
18550 (linux_set_resume_request): Ignore resume_stop requests if already
18551 stopping or stopped. Set the lwp's last_resume_kind.
18552 (resume_status_pending_p): Don't check for removed breakpoints.
18553 (need_step_over_p): New.
18554 (start_step_over): New.
18555 (finish_step_over): New.
18556 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18557 requests. Clear the thread's last reported target waitstatus.
18558 Don't use the `suspended' flag. Don't consider pending breakpoints.
18559 (linux_resume): Start a step-over if necessary.
18560 (proceed_one_lwp): New.
18561 (proceed_all_lwps): New.
18562 (unstop_all_lwps): New.
18563 * linux-low.h (struct lwp_info): Rewrite comment for the
18564 `suspended' flag. Add the `stop_pc' field. Delete the
18565 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18566 Add `'last_resume_kind' and `need_step_over' fields.
18567 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18568 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18569 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18570 (set_raw_breakpoint_at): New.
18571 (set_breakpoint_at): Rewrite to use it.
18572 (reinsert_breakpoint_handler): Delete.
18573 (set_reinsert_breakpoint): New.
18574 (reinsert_breakpoint_by_bp): Delete.
18575 (delete_reinsert_breakpoints): New.
18576 (uninsert_breakpoint): Rewrite.
18577 (uninsert_breakpoints_at): New.
18578 (reinsert_breakpoint): Rewrite.
18579 (reinsert_breakpoints_at): New.
18580 (check_breakpoints): Rewrite.
18581 (breakpoint_here): New.
18582 (breakpoint_inserted_here): New.
18583 (check_mem_read): Adjust.
18584 * mem-break.h (breakpoints_supported, breakpoint_here)
18585 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18586 (reinsert_breakpoint_by_bp): Delete declaration.
18587 (delete_reinsert_breakpoints): Declare.
18588 (reinsert_breakpoint): Delete declaration.
18589 (reinsert_breakpoints_at): Declare.
18590 (uninsert_breakpoint): Delete declaration.
18591 (uninsert_breakpoints_at): Declare.
18592 (check_breakpoints): Adjust prototype.
18593 * server.h: Adjust include order.
18594 (struct thread_info): Declare here. Add a `last_status' field.
18596 2010-03-23 Michael Snyder <msnyder@vmware.com>
18598 * server.c (crc32): New function.
18599 (handle_query): Add handling for 'qCRC:' request.
18601 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18603 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18604 lwp had been stopped by a watchpoint.
18606 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18608 * server.h (internal_error): Declare.
18609 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18610 * utils.c (internal_error): New function.
18612 2010-03-15 Andreas Schwab <schwab@redhat.com>
18614 * configure.srv: Fix typo setting srv_regobj.
18616 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18618 * linux-low.c (fetch_register): Avoid passing a non string literal
18620 (usr_store_inferior_registers): Ditto.
18622 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18624 * linux-low.c (linux_write_memory): Bail out early if peeking
18627 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18629 * linux-low.h (struct lwp_info): New fields
18630 `stopped_by_watchpoint' and `stopped_data_address'.
18631 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18632 here, and cache them in the lwp object.
18633 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18635 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18637 (linux_stopped_by_watchpoint): Rewrite.
18638 (linux_stopped_data_address): Rewrite.
18640 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18642 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18643 switching the current inferior, not before.
18645 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18647 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18648 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18649 i386-linux.c and amd64-linux.c.
18650 (reg-i386.o): Removed.
18651 (reg-i386.c): Likewise.
18652 (reg-i386-linux.o): Likewise.
18653 (reg-i386-linux.c): Likewise.
18654 (reg-x86-64.o): Likewise.
18655 (reg-x86-64.c): Likewise.
18656 (reg-x86-64-linux.o): Likewise.
18657 (reg-x86-64-linux.c): Likewise.
18659 (i386.c): Likewise.
18660 (i386-linux.o): Likewise.
18661 (i386-linux.c): Likewise.
18662 (amd64.o): Likewise.
18663 (amd64.c): Likewise.
18664 (amd64-linux.o): Likewise.
18665 (amd64-linux.c): Likewise.
18667 * configure.srv (srv_i386_regobj): New.
18668 (srv_i386_linux_regobj): Likewise.
18669 (srv_amd64_regobj): Likewise.
18670 (srv_amd64_linux_regobj): Likewise.
18671 (srv_i386_32bit_xmlfiles): Likewise.
18672 (srv_i386_64bit_xmlfiles): Likewise.
18673 (srv_i386_xmlfiles): Likewise.
18674 (srv_amd64_xmlfiles): Likewise.
18675 (srv_i386_linux_xmlfiles): Likewise.
18676 (srv_amd64_linux_xmlfiles): Likewise.
18677 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18678 srv_xmlfiles to $srv_i386_xmlfiles.
18679 (i[34567]86-*-mingw32ce*): Likewise.
18680 (i[34567]86-*-mingw*): Likewise.
18681 (i[34567]86-*-nto*): Likewise.
18682 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18683 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18684 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18685 (x86_64-*-linux*): Likewise.
18687 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18688 (init_registers_amd64_linux): New.
18689 (x86_arch_setup): Replace init_registers_x86_64_linux with
18690 init_registers_amd64_linux.
18692 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18694 * configure.ac: Check for libdl. If it is not available link against
18695 static libthread_db.
18696 * configure: Regenerate.
18698 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18702 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18703 handing a read watchpoint.
18704 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18706 2010-02-12 Doug Evans <dje@google.com>
18708 * linux-low.c (linux_supports_tracefork_flag): Document.
18709 (linux_look_up_symbols): Add comment.
18711 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18713 * regcache.c (supply_register): Clear regcache if buf is NULL.
18715 2010-02-02 Nicolas Roche <roche@sourceware.org>
18716 Joel Brobecker <brobecker@adacore.com>
18718 * inferiors.c (find_inferior): Add function documentation.
18719 (unloaded_dll): Handle the case where the unloaded dll has not
18720 been previously registered in the dll list.
18722 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18724 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18725 (thumb2_breakpoint): New.
18726 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18728 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18730 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18731 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18734 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18736 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18738 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18740 * linux-s390-low.c (s390_collect_ptrace_register)
18741 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18743 2010-01-21 Doug Evans <dje@google.com>
18745 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18746 (PTRACE_ARG4_TYPE): New macro.
18747 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18748 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18749 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18750 (usr_store_inferior_registers): Ditto.
18751 (linux_read_memory, linux_write_memory): Ditto.
18752 (linux_test_for_tracefork): Ditto.
18754 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18755 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18757 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18759 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18762 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18764 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18765 prototype to take a regcache. Adjust.
18767 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18769 * regcache.h (struct thread_info): Forward declare.
18770 (struct regcache): New.
18771 (new_register_cache): Adjust prototype.
18772 (get_thread_regcache): Declare.
18773 (free_register_cache): Adjust prototype.
18774 (registers_to_string, registers_from_string): Ditto.
18775 (supply_register, supply_register_by_name, collect_register)
18776 (collect_register_as_string, collect_register_by_name): Ditto.
18777 * regcache.c (struct inferior_regcache_data): Delete.
18778 (get_regcache): Rename to ...
18779 (get_thread_regcache): ... this. Adjust. Switch inferior before
18780 fetching registers.
18781 (regcache_invalidate_one): Adjust.
18782 (regcache_invalidate): Fix prototype.
18783 (new_register_cache): Return the new register cache.
18784 (free_register_cache): Change prototype.
18785 (realloc_register_cache): Adjust.
18786 (registers_to_string): Change prototype to take a regcache. Adjust.
18787 (registers_from_string): Ditto.
18788 (register_data): Ditto.
18789 (supply_register): Ditto.
18790 (supply_register_by_name): Ditto.
18791 (collect_register): Ditto.
18792 (collect_register_as_string): Ditto.
18793 (collect_register_by_name): Ditto.
18794 * server.c (process_serial_event): Adjust.
18795 * linux-low.h (regset_fill_func, regset_store_func): Change
18797 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18799 * linux-low.c (get_stop_pc): Adjust.
18800 (check_removed_breakpoint): Adjust.
18801 (linux_wait_for_event): Adjust.
18802 (linux_resume_one_lwp): Adjust.
18803 (fetch_register): Add regcache parameter. Adjust.
18804 (usr_store_inferior_registers): Ditto.
18805 (regsets_fetch_inferior_registers): Ditto.
18806 (regsets_store_inferior_registers): Ditto.
18807 (linux_fetch_registers, linux_store_registers): Ditto.
18808 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18810 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18812 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18813 prototype to take a regcache.
18814 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18815 * remote-utils.c (convert_ascii_to_int, outreg)
18816 (prepare_resume_reply): Change prototype to take a regcache.
18818 * target.h (struct target_ops) <fetch_registers, store_registers>:
18819 Change prototype to take a regcache.
18820 (fetch_inferior_registers, store_inferior_registers): Change
18821 prototype to take a regcache. Adjust.
18822 * proc-service.c (ps_lgetregs): Adjust.
18823 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18824 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18825 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18826 take a regcache. Adjust.
18827 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18828 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18829 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18830 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18831 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18832 (cris_cannot_fetch_register):
18833 (cris_breakpoint_at): Change prototype to take a regcache.
18835 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18836 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18837 to take a regcache. Adjust.
18838 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18840 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18841 take a regcache. Adjust.
18842 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18843 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18844 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18845 * linux-mips-low.c (mips_get_pc):
18846 (mips_set_pc): Change prototype to take a regcache. Adjust.
18847 (mips_reinsert_addr): Adjust.
18848 (mips_collect_register): Change prototype to take a regcache.
18850 (mips_supply_register):
18851 (mips_collect_register_32bit, mips_supply_register_32bit)
18852 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18853 (mips_store_fpregset): Ditto.
18854 * linux-ppc-low.c (ppc_supply_ptrace_register)
18855 (ppc_supply_ptrace_register): Ditto.
18856 (parse_spufs_run): Adjust.
18857 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18858 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18859 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18860 take a regcache. Adjust.
18861 * linux-s390-low.c (s390_collect_ptrace_register)
18862 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18863 (s390_set_pc): Change prototype to take a regcache. Adjust.
18864 (s390_arch_setup): Adjust.
18865 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18866 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18867 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18868 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18869 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18871 (sparc_breakpoint_at): Adjust.
18872 * linux-xtensa-low.c (xtensa_fill_gregset):
18873 (xtensa_store_gregset):
18874 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18875 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18876 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18877 prototype to take a regcache. Adjust.
18878 * win32-arm-low.c (arm_fetch_inferior_register)
18879 (arm_store_inferior_register): Change prototype to take a
18881 * win32-i386-low.c (i386_fetch_inferior_register)
18882 (i386_store_inferior_register): Change prototype to take a
18884 * win32-low.c (child_fetch_inferior_registers)
18885 (child_store_inferior_registers): Change prototype to take a
18887 (win32_wait): Adjust.
18888 (win32_fetch_inferior_registers): Change prototype to take a
18890 (win32_store_inferior_registers): Adjust.
18891 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
18892 store_inferior_register>: Change prototype to take a regcache.
18894 2010-01-20 Doug Evans <dje@google.com>
18896 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
18898 (linux_wait_for_event1, linux_init_signals): Ditto.
18899 (W_STOPCODE): Provide definition if missing.
18901 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
18903 * linux-low.c (linux_core_of_thread): New.
18904 (compare_ints, show_process, list_threads): New.
18905 (linux_qxfer_osdata): Report threads and cores.
18906 (linux_target_op): Register linux_core_of_thread.
18907 * remote-utils.c (prepare_resume_reply): Report the core.
18908 (buffer_xml_printf): Support %d specifier.
18909 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
18911 (handle_query): Handle qXfer:threads. Announce availability
18913 * target.h (struct target_ops): New field core_of_thread.
18915 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
18917 * Makefile.in (clean): Remove new generated files.
18918 (reg-s390.o, reg-s390.c): Remove rules.
18919 (reg-s390x.o, reg-s390x.c): Likewise.
18920 (s390-linux32.o, s390-linux32.c): Add rules.
18921 (s390-linux64.o, s390-linux64.c): Likewise.
18922 (s390x-linux64.o, s390x-linux64.c): Likewise.
18923 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
18924 * linux-s390-low.c: Include <elf.h>.
18925 (HWCAP_S390_HIGH_GPRS): Define if undefined.
18926 (init_registers_s390): Remove prototype.
18927 (init_registers_s390x): Likewise.
18928 (init_registers_s390_linux32): Add prototype.
18929 (init_registers_s390_linux64): Likewise.
18930 (init_registers_s390x_linux64): Likewise.
18931 (s390_num_regs_3264): New define.
18932 (s390_regmap_3264): New global variable.
18933 (s390_cannot_fetch_register): Remove obsolete check.
18934 (s390_cannot_store_register): Likewise.
18935 (s390_collect_ptrace_register): Handle upper/lower register halves.
18936 (s390_supply_ptrace_register): Likewise.
18937 (s390_fill_gregset): Update to register number changes.
18938 (s390_get_hwcap): New routine.
18939 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
18940 Install appropriate regmap and register set.
18942 2010-01-01 Joel Brobecker <brobecker@adacore.com>
18944 * server.c (gdbserver_version): Update copyright year to 2010.
18945 * gdbreplay.c (gdbreplay_version): Likewise.
18947 2009-12-28 Doug Evans <dje@google.com>
18949 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
18950 elf/external.h. Include <elf.h> instead but only if necessary.
18952 2009-12-28 Pedro Alves <pedro@codesourcery.com>
18954 * linux-low.c (linux_remove_process): Remove `detaching'
18955 parameter. Don't release/detach from thread_db here.
18956 (linux_kill): Release/detach from thread_db here, ...
18957 (linux_detach): ... and here, before actually detaching.
18958 (linux_wait_1): ... and here, when a process exits.
18959 * thread-db.c (any_thread_of): New.
18960 (thread_db_free): Switch the current inferior to a thread of the
18963 2009-12-21 Doug Evans <dje@google.com>
18965 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
18967 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
18968 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
18969 warning ifndef __NR_tkill. Move setting of errno there too.
18970 Delete unnecessary resetting of errno after syscall.
18971 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
18973 * configure.ac: Check for dladdr.
18974 * config.in: Regenerate.
18975 * configure: Regenerate.
18976 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
18977 (try_thread_db_load): Update.
18979 * linux-low.c (my_waitpid): Delete unnecessary prototype.
18981 2009-12-18 Doug Evans <dje@google.com>
18983 * event-loop.c: Include unistd.h if it exists.
18985 * linux-low.c (my_waitpid): Move definition away from being in
18986 between linux_tracefork_child/linux_test_for_tracefork.
18988 * gdb_proc_service.h (psaddr_t): Fix type.
18989 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
18990 signature to match glibc.
18992 2009-12-16 Doug Evans <dje@google.com>
18994 * linux-low.c (linux_read_memory): Fix argument to read.
18996 2009-11-26 Pedro Alves <pedro@codesourcery.com>
18998 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
18999 events, don't leave current_inferior pointing at null.
19001 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19003 * win32-low.c (LOG): Delete.
19004 (OUTMSG): Output to stderr.
19005 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19006 on compile time LOG macro.
19007 (win32_wait): Fix debug output.
19009 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19011 * win32-low.c (win32_add_one_solib): If the dll name is
19012 "ntdll.dll", prepend the system directory to the dll path.
19014 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19016 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19018 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19019 Vladimir Prus <vladimir@codesourcery.com>
19021 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19022 * configure.ac: Check for __mcoldfire__ and set
19023 gdb_cv_m68k_is_coldfire.
19024 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19025 reg-cf.o and reg-m68k.o.
19026 * configure: Regenerated.
19028 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19030 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19031 Pass it to thread_db_free.
19032 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19033 proper `detaching' argument to linux_remove_process.
19034 * linux-low.h (thread_db_free): Add `detaching' parameter.
19035 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19037 (thread_db_free): Add `detaching' parameter. Only
19038 call td_ta_clear_event if detaching from process.
19040 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19042 * thread-db.c (thread_db_free): Fix typo.
19044 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19047 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19049 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19051 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19052 with an i686 compiler.
19053 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19055 * configure: Rebuilt.
19057 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19061 * server.c (handle_search_memory_1): Correct read_addr initialization
19062 in loop for searching subsequent chunks.
19064 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19066 * configure.ac: New --with-libthread-db option.
19067 * thread-db.c: Allow direct dependence on libthread_db.
19068 (thread_db_free): Adjust.
19069 * config.in: Regenerate.
19070 * configure: Likewise.
19072 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19075 * thread-db.c (attach_thread): New function.
19076 (maybe_attach_thread): Return success/failure.
19077 (find_new_threads_callback): Adjust.
19078 (thread_db_find_new_threads): Loop until no new threads.
19080 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19082 * proc-service.c (ps_lgetregs): Formatting.
19084 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19086 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19087 * configure.ac: Adjust.
19088 * linux-low.h (struct process_info_private): Move members to struct
19090 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19091 * linux-low.c (linux_remove_process): Adjust.
19092 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19093 * server.c (handle_query): Move code ...
19094 (handle_monitor_command): ... here. New function.
19095 * target.h (struct target_ops): New member.
19096 * thread-db.c (struct thread_db): New.
19097 (libthread_db_search_path): New variable.
19098 (thread_db_create_event, thread_db_enable_reporting)
19099 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19100 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19101 (try_thread_db_load_1, dladdr_to_soname): New functions.
19102 (try_thread_db_load, thread_db_load_search): New functions.
19103 (thread_db_init): Search for libthread_db.
19104 (thread_db_free): New function.
19105 (thread_db_handle_monitor_command): Likewise.
19106 * config.in: Regenerate.
19107 * configure: Regenerate.
19109 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19111 * spu-low.c (spu_kill): Wait for inferior to terminate.
19112 Call clear_inferiors.
19113 (spu_detach): Call clear_inferiors.
19115 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19117 * aclocal.m4: Regenerate.
19118 * config.in: Likewise.
19119 * configure: Likewise.
19121 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19123 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19124 (parse_spufs_run): New function.
19125 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19126 (ppc_breakpoint_at): Handle SPU breakpoints.
19128 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19130 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19131 (SPUFS_MAGIC): Define.
19132 (spu_enumerate_spu_ids): New function.
19133 (linux_qxfer_spu): New function.
19134 (linux_target_ops): Install linux_qxfer_spu.
19136 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19138 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19139 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19140 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19141 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19142 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19143 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19144 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19145 (init_registers_powerpc_cell32l): Add prototype.
19146 (init_registers_powerpc_cell64l): Likewise.
19147 (ppc_arch_setup): Detect Cell/B.E. architecture.
19149 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19151 * Makefile.in (datarootdir): New variable.
19153 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19155 * linux-low.c (linux_write_memory): Update debugging output.
19156 * Makefile.in (clean): Add new descriptions.
19157 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19158 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19159 * configure.srv: Add new files for arm*-*-linux*.
19160 * linux-arm-low.c: Add new declarations.
19161 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19162 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19163 (HWCAP_VFPv3D16): New.
19164 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19165 instead of __IWMMXT__.
19166 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19167 (arm_arch_setup): New.
19168 (target_regsets): Remove #ifdef. Add VFP regset.
19169 (the_low_target): Use arm_arch_setup.
19171 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19173 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19174 the main thread again.
19176 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19178 Adding Neutrino gdbserver.
19179 * configure: Regenerated.
19180 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19181 * configure.srv (i[34567]86-*-nto*): New target.
19182 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19183 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19184 (nto_comctrl) [__QNX__]: New function.
19185 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19187 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19189 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19192 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19193 Pedro Alves <pedro@codesourcery.com>
19195 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19196 don't support CONTEXT_EXTENDED_REGISTERS.
19197 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19198 (the_low_target): Install them.
19199 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19200 failing with ERROR_PIPE_NOT_CONNECTED.
19202 2009-06-30 Doug Evans <dje@google.com>
19203 Pierre Muller <muller@ics.u-strasbg.fr>
19205 Add h/w watchpoint support to x86-linux, win32-i386.
19206 * Makefile.in (SFILES): Add i386-low.c
19207 (i386_low_h): Define.
19208 (i386-low.o): Add dependencies.
19209 (linux-x86-low.o): Add i386-low.h dependency.
19210 (win32-i386-low.o): Ditto.
19211 * i386-low.c: New file.
19212 * i386-low.h: New file.
19213 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19214 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19215 * linux-low.c (linux_add_process): Initialize arch_private.
19216 (linux_remove_process): Free arch_private.
19217 (add_lwp): Initialize arch_private.
19218 (delete_lwp): Free arch_private.
19219 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19221 * linux-low.h (process_info_private): New member arch_private.
19222 (lwp_info): New member arch_private.
19223 (linux_target_ops): New members new_process, new_thread,
19225 (ptid_of): New macro.
19226 * linux-x86-low.c: Include stddef.h, i386-low.h.
19227 (arch_process_info): New struct.
19228 (arch_lwp_info): New struct.
19229 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19230 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19231 (i386_dr_low_get_status): New function.
19232 (x86_insert_point, x86_remove_point): New functions.
19233 (x86_stopped_by_watchpoint): New function.
19234 (x86_stopped_data_address): New function.
19235 (x86_linux_new_process, x86_linux_new_thread): New functions.
19236 (x86_linux_prepare_to_resume): New function.
19237 (the_low_target): Add entries for insert_point, remove_point,
19238 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19240 * server.c (debug_hw_points): New global.
19241 (monitor_show_help): Document set debug-hw-points.
19242 (handle_query): Process "set debug-hw-points".
19243 * server.h (debug_hw_points): Declare.
19244 (paddress): Declare.
19245 * utils.c (NUMCELLS, CELLSIZE): New macros.
19246 (get_sell, xsnprintf, paddress): New functions.
19247 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19248 remove_point, stopped_by_watchpoint, stopped_data_address.
19249 * win32-i386-low.c: Include i386-low.h.
19250 (debug_reg_state): Replaces dr.
19251 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19252 (i386_dr_low_get_status): New function.
19253 (i386_insert_point, i386_remove_point): New functions.
19254 (i386_stopped_by_watchpoint): New function.
19255 (i386_stopped_data_address): New function.
19256 (i386_initial_stuff): Update.
19257 (get_thread_context,set_thread_context,i386_thread_added): Update.
19258 (the_low_target): Add entries for insert_point,
19259 remove_point, stopped_by_watchpoint, stopped_data_address.
19260 * win32-low.c (win32_insert_watchpoint): New function.
19261 (win32_remove_watchpoint): New function.
19262 (win32_stopped_by_watchpoint): New function.
19263 (win32_stopped_data_address): New function.
19264 (win32_target_ops): Add entries for insert_watchpoint,
19265 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19266 * win32-low.h (win32_target_ops): New members insert_point,
19267 remove_point, stopped_by_watchpoint, stopped_data_address.
19269 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19271 * server.c (process_serial_event): Re-return unsupported, not
19272 error, if the type isn't recognized. Re-allow supporting only
19273 insert or remove packets. Also call require_running for
19274 breakpoints. Add missing break statement to default case. Tidy.
19275 * target.h (struct target_ops): Rename insert_watchpoint to
19276 insert_point, and remove_watchpoint to remove_point.
19278 * linux-low.h (struct linux_target_ops): Likewise.
19279 * linux-low.c (linux_insert_watchpoint): Rename to ...
19280 (linux_insert_point): ... this. Adjust.
19281 (linux_remove_watchpoint): Rename to ...
19282 (linux_remove_point): ... this. Adjust.
19283 (linux_target_ops): Adjust.
19284 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19285 (cris_insert_point): ... this.
19286 (cris_remove_watchpoint): Rename to ...
19287 (cris_remove_point): ... this.
19288 (the_low_target): Adjust.
19290 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19292 * server.c (handle_v_kill): Pass signal_pid to
19293 kill_inferior if multi_process is zero.
19295 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19297 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19298 * target.h (target_ops): Comment for *_watchpoint to make it clear
19299 the functions can get types '0' and '1'.
19301 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19303 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19304 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19305 * regcache.c (get_regcache): Likewise.
19306 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19307 * win32-low.c (child_fetch_inferior_registers): Remove check for
19310 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19311 Pedro Alves <pedro@codesourcery.com>
19313 * target.h (struct target_ops) <supports_multi_process>: New
19315 (target_supports_multi_process): New.
19316 * server.c (handle_query): Even if GDB reports support, only
19317 enable multi-process if the target also supports it. Report
19318 multi-process support only if the target backend supports it.
19319 * linux-low.c (linux_supports_multi_process): New function.
19320 (linux_target_ops): Install it as target_supports_multi_process
19323 2009-05-24 Doug Evans <dje@google.com>
19325 Global renaming of find_thread_pid to find_thread_ptid.
19326 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19327 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19328 All callers updated.
19330 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19331 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19334 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19335 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19336 (linux_resume_one_lwp): Ditto.
19338 2009-05-23 Doug Evans <dje@google.com>
19340 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19341 from struct inferior_list_entry * to struct lwp_info *.
19342 All callers updated.
19344 2009-05-13 Doug Evans <dje@google.com>
19346 * linux-x86-low.c: Don't include assert.h.
19347 (x86_siginfo_fixup): Use fatal, not assert.
19348 (x86_arch_setup): Fix comment.
19350 2009-05-12 Doug Evans <dje@google.com>
19352 Biarch support for i386/amd64 gdbserver.
19353 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19354 Add linux-x86-low.c.
19355 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19356 (linux-x86-low.o): Add.
19357 * linux-x86-64-low.c: Delete.
19358 * linux-i386-low.c: Delete.
19359 * linux-x86-low.c: New file.
19360 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19362 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19364 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19365 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19366 (linux_child_pid_to_exec_file): New function.
19367 (elf_64_header_p, elf_64_file_p): New functions.
19368 (siginfo_fixup): New function.
19369 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19370 give target a chance to convert layout.
19371 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19372 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19374 2009-05-07 Doug Evans <dje@google.com>
19376 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19377 (regsets_store_inferior_registers): Ditto.
19379 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19383 * linux-low.c (must_set_ptrace_flags): Delete.
19384 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19386 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19387 `lwp->must_set_ptrace_flags' instead.
19388 (linux_wait_for_event_1): Set ptrace options here.
19389 (linux_wait_1): ... not here.
19391 2009-04-30 Doug Evans <dje@google.com>
19393 * inferiors.c (started_inferior_callback): New function.
19394 (attached_inferior_callback): New function.
19395 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19396 * server.c (print_started_pid, print_attached_pid): New functions.
19397 (detach_or_kill_for_exit): New function.
19398 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19399 * server.h (have_started_inferiors_p): Declare.
19400 (have_attached_inferiors_p): Declare.
19402 * inferiors.c (remove_process): Fix memory leak, free process.
19403 * linux-low.c (linux_remove_process): New function.
19404 (linux_kill): Call it instead of remove_process.
19405 (linux_detach, linux_wait_1): Ditto.
19407 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19409 * configure.srv: Add x86 Windows CE target.
19411 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19413 * inferiors.c (get_thread_process): Make global.
19414 * server.h (get_thread_process): Add prototype.
19415 * thread-db.c (find_one_thread): Use get_thread_process
19416 instead of current_process.
19417 (thread_db_get_tls_address): Do not crash if called when
19418 thread layer is not yet initialized.
19420 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19422 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19423 * spu-low.c (current_tid): Rename to ...
19424 (current_ptid): ... this.
19425 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19426 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19427 ptid_get_lwp (current_ptid) instead of current_tid.
19428 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19429 instead of current_tid. Use find_process_pid to verify pid
19430 argument is valid. Pass proper argument to remove_process.
19431 (spu_thread_alive): Compare current_ptid instead of current_tid.
19432 (spu_resume): Likewise.
19434 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19436 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19439 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19441 Implement the multiprocess extensions, and add linux multiprocess
19444 * server.h (ULONGEST): Declare.
19445 (struct ptid, ptid_t): New.
19446 (minus_one_ptid, null_ptid): Declare.
19447 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19448 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19449 (struct inferior_list_entry): Change `id' type from unsigned from
19451 (struct sym_cache, struct breakpoint, struct
19452 process_info_private): Forward declare.
19453 (struct process_info): Declare.
19454 (current_process): Declare.
19455 (all_processes): Declare.
19456 (initialize_inferiors): Declare.
19457 (add_thread): Adjust to use ptid_t.
19458 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19459 (add_process, remove_process, find_thread_pid): Declare.
19460 (find_inferior_id): Adjust to use ptid_t.
19461 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19462 (multi_process): Declare.
19463 (push_event): Adjust to use ptid_t.
19464 (read_ptid, write_ptid): Declare.
19465 (prepare_resume_reply): Adjust to use ptid_t.
19466 (clear_symbol_cache): Declare.
19467 * inferiors.c (all_processes): New.
19468 (null_ptid, minus_one_ptid): New.
19469 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19470 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19471 (add_thread): Change unsigned long to ptid. Remove gdb_id
19473 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19474 (gdb_id_to_thread): Rename to ...
19475 (find_thread_pid): ... this. Change unsigned long to ptid.
19476 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19477 (loaded_dll, pull_pid_from_list): Adjust.
19478 (add_process, remove_process, find_process_pid)
19479 (get_thread_process, current_process, initialize_inferiors): New.
19480 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19481 (struct target_waitstatus) <related_pid>: Ditto.
19482 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19483 return type to int.
19484 (struct target_ops) <join>: Add `pid' argument.
19485 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19486 (struct target_ops) <wait>: Add `ptid' field. Change return type
19488 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19489 (mywait): Add `ptid' argument. Change return type to ptid_t.
19490 (target_pid_to_str): Declare.
19491 * target.c (set_desired_inferior): Adjust to use ptids.
19492 (mywait): Add new `ptid' argument. Adjust.
19493 (target_pid_to_str): New.
19494 * mem-break.h (free_all_breakpoints): Declare.
19495 * mem-break.c (breakpoints): Delelete.
19496 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19497 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19498 to use per-process breakpoint list.
19499 (free_all_breakpoints): New.
19500 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19501 (symbol_cache, all_symbols_looked_up): Delete.
19503 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19505 (prepare_resume_reply): Change ptid argument's type from unsigned
19506 long to ptid_t. Adjust. Implement W;process and X;process.
19507 (free_sym_cache, clear_symbol_cache): New.
19508 (look_up_one_symbol): Adjust to per-process symbol cache. *
19509 * server.c (cont_thread, general_thread, step_thread): Change type
19511 (attached): Delete.
19512 (multi_process): New.
19513 (last_ptid): Change type to ptid_t.
19514 (struct vstop_notif) <ptid>: Change type to ptid_t.
19515 (queue_stop_reply, push_event): Change `ptid' argument's type to
19517 (discard_queued_stop_replies): Add `pid' argument.
19518 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19519 changes. Don't reference the `attached' global.
19520 (attach_inferior): Adjust to mywait interface changes.
19521 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19522 features. Handle and report "multiprocess+". Handle
19524 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19526 (handle_v_kill): New.
19527 (handle_v_stopped): Adjust to use target_pid_to_str.
19528 (handle_v_requests): Allow multiple attaches and runs when
19529 multiprocess extensions are in effect. Handle "vKill".
19530 (myresume): Adjust to use ptids.
19531 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19532 (handle_status): Adjust to discard_queued_stop_replies interface
19534 (first_thread_of, kill_inferior_callback)
19535 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19536 (main): Call initialize_inferiors. Adjust to use ptids, killing
19537 and detaching from all inferiors. Handle multiprocess packet
19539 * linux-low.h: Include gdb_proc_service.h.
19540 (struct process_info_private): New.
19541 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19542 <lwpid_of>: Use ptid_get_lwp.
19543 (get_lwp_thread): Adjust.
19544 (struct lwp_info): Add `dead' member.
19545 (find_lwp_pid): Declare.
19546 * linux-low.c (thread_db_active): Delete.
19547 (new_inferior): Adjust comment.
19548 (inferior_pid): Delete.
19549 (linux_add_process): New.
19550 (handle_extended_wait): Adjust.
19551 (add_lwp): Change unsigned long to ptid.
19552 (linux_create_inferior): Add process to processes table. Adjust
19553 to use ptids. Don't set new_inferior here.
19554 (linux_attach_lwp): Rename to ...
19555 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19556 it. Adjust to use ptids.
19557 (linux_attach_lwp): New.
19558 (linux_attach): Add process to processes table. Don't set
19560 (struct counter): New.
19561 (second_thread_of_pid_p, last_thread_of_process_p): New.
19562 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19563 multiple processes.
19564 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19565 processes. Remove process from process table.
19566 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19567 to multiple processes.
19568 (any_thread_of): New.
19569 (linux_detach): Add `pid' argument, and handle it. Remove process
19570 from processes table.
19571 (linux_join): Add `pid' argument. Handle it.
19572 (linux_thread_alive): Change unsighed long argument to ptid_t.
19573 Consider dead lwps as not being alive.
19574 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19575 threads we're not interested in.
19576 (same_lwp, find_lwp_pid): New.
19577 (linux_wait_for_lwp): Change `pid' argument's type from int to
19579 (linux_wait_for_event): Rename to ...
19580 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19581 from int to ptid_t. Adjust.
19582 (linux_wait_for_event): New.
19583 (linux_wait_1): Add `ptid' argument. Change return type to
19584 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19585 that exit from the process table.
19586 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19588 (mark_lwp_dead): New.
19589 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19590 stopping all threads, mark its main lwp as dead.
19591 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19593 (fetch_register, usr_store_inferior_registers)
19594 (regsets_fetch_inferior_registers)
19595 (regsets_store_inferior_registers, linux_read_memory)
19596 (linux_write_memory): Inline `inferior_pid'.
19597 (linux_look_up_symbols): Adjust to use per-process
19598 `thread_db_active'.
19599 (linux_request_interrupt): Adjust to use ptids.
19600 (linux_read_auxv): Inline `inferior_pid'.
19601 (initialize_low): Don't reference thread_db_active.
19602 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19603 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19604 (ps_getpid): Return the pid of the current inferior.
19605 * thread-db.c (proc_handle, thread_agent): Delete.
19606 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19608 (find_one_thread): Change argument type to ptid_t. Adjust to
19610 (maybe_attach_thread): Adjust to per-process data and ptids.
19611 (thread_db_find_new_threads): Ditto.
19612 (thread_db_init): Ditto.
19613 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19614 processes table. Adjust to use ptids.
19615 (spu_kill, spu_detach): Adjust interface. Remove process from
19617 (spu_join, spu_thread_alive): Adjust interface.
19618 (spu_wait): Adjust interface. Remove process from processes
19619 table. Adjust to use ptids.
19620 * win32-low.c (current_inferior_tid): Delete.
19621 (current_inferior_ptid): New.
19622 (debug_event_ptid): New.
19623 (thread_rec): Take a ptid. Adjust.
19624 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19625 (child_delete_thread): Ditto.
19626 (do_initial_child_stuff): Add `attached' argument. Add process to
19628 (child_fetch_inferior_registers, child_store_inferior_registers):
19630 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19631 (win32_attach): Pass 1 to do_initial_child_stuff.
19632 (win32_kill): Adjust interface. Remove process from processes
19634 (win32_detach): Ditto.
19635 (win32_join): Adjust interface.
19636 (win32_thread_alive): Take a ptid.
19637 (win32_resume): Adjust to use ptids.
19638 (get_child_debug_event): Ditto.
19639 (win32_wait): Adjust interface. Remove exiting process from
19642 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19644 Non-stop mode support.
19646 * server.h (non_stop): Declare.
19647 (gdb_client_data, handler_func): Declare.
19648 (delete_file_handler, add_file_handler, start_event_loop):
19650 (handle_serial_event, handle_target_event, push_event)
19651 (putpkt_notif): Declare.
19652 * target.h (enum resume_kind): New.
19653 (struct thread_resume): Replace `step' field by `kind' field.
19654 (TARGET_WNOHANG): Define.
19655 (struct target_ops) <wait>: Add `options' argument.
19656 <supports_non_stop, async, start_non_stop>: New fields.
19657 (target_supports_non_stop, target_async): New.
19658 (start_non_stop): Declare.
19659 (mywait): Add `options' argument.
19660 * target.c (mywait): Add `options' argument. Print child exit
19661 notifications here.
19662 (start_non_stop): New.
19663 * server.c (non_stop, own_buf, mem_buf): New globals.
19664 (struct vstop_notif): New.
19665 (notif_queue): New global.
19666 (queue_stop_reply, push_event, discard_queued_stop_replies)
19667 (send_next_stop_reply): New.
19668 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19670 (attach_inferior): In non-stop mode, don't wait for the target
19672 (handle_general_set): Handle QNonStop.
19673 (handle_query): When handling qC, return the current general
19674 thread, instead of the first thread of the list.
19675 (handle_query): If the backend supports non-stop mode, include
19676 QNonStop+ in the qSupported query response.
19677 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19679 (handle_v_attach, handle_v_run): Handle non-stop mode.
19680 (handle_v_stopped): New.
19681 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19682 (myresume): Adjust to use resume_kind. Handle non-stop.
19683 (queue_stop_reply_callback): New.
19684 (handle_status): Handle non-stop mode.
19685 (main): Clear non_stop flag on reconnection. Use the event-loop.
19686 Refactor serial protocol handling from here ...
19687 (process_serial_event): ... to this new function. When GDB
19688 selects any thread, select one here. In non-stop mode, wait until
19689 GDB acks all pending events before exiting.
19690 (handle_serial_event, handle_target_event): New.
19691 * remote-utils.c (remote_open): Install remote_desc in the event
19693 (remote_close): Remove remote_desc from the event loop.
19694 (putpkt_binary): Rename to...
19695 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19696 (putpkt_binary): New as wrapper around putpkt_binary_1.
19697 (putpkt_notif): New.
19698 (prepare_resume_reply): In non-stop mode, don't change the
19700 * event-loop.c: New.
19701 * Makefile.in (OBJ): Add event-loop.o.
19702 (event-loop.o): New rule.
19704 * linux-low.h (pid_of): Moved here.
19706 (get_lwp_thread): Use lwpid_of.
19707 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19708 * linux-low.c (pid_of): Delete.
19709 (inferior_pid): Use lwpid_of.
19710 (linux_event_pipe): New.
19711 (target_is_async_p): New.
19713 (handle_extended_wait): Use lwpid_of.
19714 (add_lwp): Don't set lwpid field.
19715 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19716 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19717 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19718 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19719 first. Adjust to linux_wait_for_event interface changes. Use
19721 (linux_detach): Don't delete the main lwp here.
19722 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19723 (status_pending_p): Don't consider explicitly suspended lwps.
19724 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19725 pointer. Add OPTIONS argument. Change return type to int. Use
19726 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19727 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19728 pointer. Add status pointer argument. Return a pid instead of a
19729 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19730 changes. In non-stop mode, don't switch to a random thread.
19731 (linux_wait): Rename to...
19732 (linux_wait_1): ... this. Add target_options argument, and handle
19733 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19734 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19735 clean exit and signal exit code. Don't stop all threads in
19736 non-stop mode. In all-stop mode, only stop all threads when
19737 reporting a stop to GDB. Handle explicit thread stop requests.
19738 (async_file_flush, async_file_mark): New.
19740 (send_sigstop): Use lwpid_of.
19741 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19742 interface changes. In non-stop mode, don't switch to a random
19744 (linux_resume_one_lwp): Use lwpid_of.
19745 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19746 (linux_resume_one_thread): ... this. Handle resume_stop. In
19747 non-stop mode, don't look for pending flag in all threads.
19748 (resume_status_pending_p): Don't consider explicitly suspended
19750 (my_waitpid): Reimplement. Emulate __WALL.
19751 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19753 (sigchld_handler, linux_supports_non_stop, linux_async)
19754 (linux_start_non_stop): New.
19755 (linux_target_ops): Register linux_supports_non_stop, linux_async
19756 and linux_start_non_stop.
19757 (initialize_low): Install SIGCHLD handler.
19758 * thread-db.c (thread_db_create_event, find_one_thread)
19759 (thread_db_get_tls_address): Use lwpid_of.
19760 * win32-low.c (win32_detach): Adjust to use resume_kind.
19761 (win32_wait): Add `options' argument.
19762 * spu-low.c (spu_resume): Adjust to use resume_kind.
19763 (spu_wait): Add `options' argument.
19765 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19767 Decouple target code from remote protocol.
19769 * target.h (enum target_waitkind): New.
19770 (struct target_waitstatus): New.
19771 (struct target_ops) <wait>: Return an unsigned long. Take a
19772 target_waitstatus pointer instead of a char pointer.
19773 (mywait): Likewise.
19774 * target.c (mywait): Change prototype to return an unsigned long.
19775 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19776 * server.h (thread_from_wait, old_thread_from_wait): Delete
19778 (prepare_resume_reply): Change prototype to take a
19780 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19781 (last_status, last_ptid): New.
19782 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19783 pid instead of a signal.
19784 (attach_inferior): Remove "status" and "signal" parameters.
19786 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19788 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19789 (handle_v_requests, myresume): Remove "status" and "signal"
19790 parameters. Adjust.
19791 (handle_status): New.
19792 (main): Delete local `status'. Adjust.
19793 * remote-utils.c: Include target.h.
19794 (prepare_resume_reply): Change prototype to take a
19795 target_waitstatus. Adjust.
19797 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19799 * spu-low.c (spu_wait): Adjust.
19800 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19802 (win32_wait): Adjust.
19804 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19806 * target.h (struct thread_resume): Delete leave_stopped member.
19807 (struct target_ops): Add a `n' argument to the `resume' callback.
19808 * server.c (start_inferior): Adjust.
19809 (handle_v_cont, myresume): Adjust.
19810 * linux-low.c (check_removed_breakpoint): Adjust to resume
19811 interface change, and to removed leave_stopped field.
19812 (resume_ptr): Delete.
19813 (struct thread_resume_array): New.
19814 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19815 resume interface change.
19816 (linux_continue_one_thread, linux_queue_one_thread)
19817 (resume_status_pending_p): Check if the resume field is NULL
19818 instead of checking the leave_stopped member.
19819 (linux_resume): Adjust to the target resume interface change.
19820 * spu-low.c (spu_resume): Adjust to the target resume interface
19822 * win32-low.c (win32_detach, win32_resume): Ditto.
19824 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19826 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19828 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19830 (linux_continue_one_thread): Only preserve the stepping flag if
19831 there's a pending breakpoint.
19833 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19835 * server.c (main): After the inferior having exited, call
19836 remote_close before exiting gdbserver.
19838 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19840 Fix size of FPSCR in Power 7 processors.
19841 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19842 (PPC_FEATURE_HAS_DFP): New #define.
19843 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19846 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19848 * server.c (handle_query) Whitespace and formatting.
19850 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19852 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19853 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19854 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19855 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19856 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19857 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19858 Makefile.in, configure.ac: Fix whitespace throughout.
19859 * configure: Regenerate.
19861 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19863 * inferiors.c (find_inferior): Make it safe for the callback
19864 function to delete the currently iterated inferior.
19866 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19868 * Makefile.in (linuw_low_h): Move higher.
19869 (thread-db.o): Depend on $(linux_low_h).
19871 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19873 Rename "process" to "lwp" throughout.
19875 * linux-low.c (all_processes): Rename to...
19876 (all_lwps): ... this.
19877 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19878 (add_process): Rename to ...
19879 (add_lwp): ... this. Adjust.
19880 (linux_create_inferior): Adjust.
19881 (linux_attach_lwp): Adjust.
19882 (linux_attach): Adjust.
19883 (linux_kill_one_process): Rename to ...
19884 (linux_kill_one_lwp): ... this. Adjust.
19885 (linux_kill): Adjust.
19886 (linux_detach_one_process): Rename to ...
19887 (linux_detach_one_lwp): ... this. Adjust.
19888 (linux_detach): Adjust.
19889 (check_removed_breakpoint): Adjust.
19890 (status_pending_p): Adjust.
19891 (linux_wait_for_process): Rename to ...
19892 (linux_wait_for_lwp): ... this. Adjust.
19893 (linux_wait_for_event): Adjust.
19894 (send_sigstop): Adjust.
19895 (wait_for_sigstop): Adjust.
19896 (stop_all_processes): Rename to ...
19897 (stop_all_lwps): ... this.
19898 (linux_resume_one_process): Rename to ...
19899 (linux_resume_one_lwp): ... this. Adjust.
19900 (linux_set_resume_request, linux_continue_one_thread)
19901 (linux_queue_one_thread, resume_status_pending_p)
19902 (usr_store_inferior_registers, regsets_store_inferior_registers)
19903 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19905 * linux-low.h (get_process): Rename to ...
19906 (get_lwp): ... this. Adjust.
19907 (get_thread_process): Rename to ...
19908 (get_thread_lwp): ... this. Adjust.
19909 (get_process_thread): Rename to ...
19910 (get_lwp_thread): ... this. Adjust.
19911 (struct process_info): Rename to ...
19912 (struct lwp_info): ... this.
19913 (all_processes): Rename to ...
19914 (all_lwps): ... this.
19915 * proc-service.c (ps_lgetregs): Adjust.
19916 * thread-db.c (thread_db_create_event, find_one_thread)
19917 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
19919 2009-03-14 Pedro Alves <pedro@codesourcery.com>
19921 * server.c (handle_query): Handle "qAttached".
19923 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
19925 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
19926 GPLv3, update license URL.
19928 2009-03-01 Doug Evans <dje@google.com>
19930 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
19931 (server_h): Add gdb_signals.h.
19932 (signals.o): Update.
19933 * server.h (target_signal_from_host,target_signal_to_host_p)
19934 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
19936 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
19938 * remote-utils.c (getpkt): Also generate remote-debug
19939 information if noack_mode is set.
19941 2009-02-06 Pedro Alves <pedro@codesourcery.com>
19943 * server.c (handle_query): Report qXfer:siginfo:read and
19944 qXfer:siginfo:write as supported and handle them.
19945 * target.h (struct target_ops) <qxfer_siginfo>: New field.
19946 * linux-low.c (linux_xfer_siginfo): New.
19947 (linux_target_ops): Set it.
19949 2009-01-26 Pedro Alves <pedro@codesourcery.com>
19951 * server.c (gdbserver_usage): Mention --remote-debug.
19952 (main): Accept '--remote-debug' switch.
19954 2009-01-18 Doug Evans <dje@google.com>
19956 * regcache.c (new_register_cache): No need to check result of xcalloc.
19957 * server.c (handle_search_memory): Back out calls to xmalloc,
19958 result is checked and error is returned to user upon failure.
19959 (handle_query): Ditto. Add more checks for result of malloc.
19960 (handle_v_cont): Check result of malloc, report error back to
19962 (handle_v_run): Ditto. Call freeargv.
19963 * server.h (freeargv): Declare.
19964 * utils.c (freeargv): New fn.
19966 2009-01-15 Doug Evans <dje@google.com>
19968 * gdbreplay.c (perror_with_name): Make arg const char *.
19969 * server.h (target_signal_to_name): Make return type const char *.
19970 * thread-db.c (thread_db_err_str): Make return type const char *.
19971 * utils.c (perror_with_name): Make arg const char *.
19973 2009-01-14 Pedro Alves <pedro@codesourcery.com>
19975 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
19976 when handling a EXIT_PROCESS_DEBUG_EVENT.
19978 2009-01-06 Joel Brobecker <brobecker@adacore.com>
19980 * gdbreplay.c (gdbreplay_version): Update copyright year.
19981 * server.c (gdbserver_version): Likewise.
19983 2009-01-05 Doug Evans <dje@google.com>
19985 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
19986 (handle_extended_wait): Improve comment.
19988 2008-12-13 Doug Evans <dje@google.com>
19990 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
19991 * server.h (ATTR_MALLOC): New macro.
19992 (xmalloc,xcalloc,xstrdup): Declare.
19993 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
19994 * inferiors.c: Ditto.
19995 * linux-low.c: Ditto.
19996 * mem-break.c: Ditto.
19997 * regcache.c: Ditto.
19998 * remote-utils.c: Ditto.
20001 * win32-low.c: Ditto.
20003 2008-12-12 Doug Evans <dje@google.com>
20005 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20006 in debugging printf.
20008 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20010 2008-12-09 Doug Evans <dje@google.com>
20012 * linux-low.h (struct process_info): Delete member tid, unused.
20013 * thread-db.c (find_one_thread): Update.
20014 (maybe_attach_thread): Update.
20016 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20018 * target.h (struct target_ops): Add qxfer_osdata member.
20019 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20021 (linux_qxfer_osdata): New functions.
20022 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20024 * server.c (handle_query): Handle "qXfer:osdata:read:".
20025 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20026 (buffer_xml_printf): New functions.
20027 * server.h (struct buffer): New.
20028 (buffer_grow_str, buffer_grow_str0): New macros.
20029 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20030 (buffer_xml_printf): Declare.
20032 2008-11-24 Doug Evans <dje@google.com>
20034 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20036 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20038 * server.c (handle_v_run): Always use the supplied argument list.
20040 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20042 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20043 (xtensa_regmap_table): Add entry for scompare1.
20045 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20047 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20048 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20049 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20050 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20051 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20052 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20053 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20054 XML target descriptions.
20055 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20056 when inferior is running on an ISA 2.05 or later processor. Add
20057 special case to return offset for full 64-bit slot of FPSCR when
20060 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20062 * Makefile.in (SFILES, clean): Added sparc64 files.
20063 (reg-sparc64.o, reg-sparc64.c): New.
20064 * configure.srv (sparc*-*-linux*): New configuration.
20065 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20066 syscall arguments for SPARC.
20067 (regsets_store_inferior_registers): Likewise.
20068 * linux-sparc-low.c: New file.
20070 2008-10-21 Doug Evans <dje@google.com>
20072 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20073 (READLINE_DIR,READLINE_DEP): Delete.
20074 (INTERNAL_CFLAGS): Update.
20075 (LINTFLAGS): Update.
20077 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20079 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20080 whole argv from the last run, not just argv[0].
20082 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20084 * regcache.c (new_register_cache): Return NULL if the register
20085 cache size isn't known yet.
20086 (free_register_cache): Avoid dereferencing a NULL regcache.
20088 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20090 * configure.srv: Merge MIPS and MIPS64.
20092 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20094 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20096 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20098 * Makefile.in: Add required vsx dependencies.
20100 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20101 Declare init_registers_powerpc_vsx32l.
20102 Declare init_registers_powerpc_vsx64l.
20103 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20104 (ppc_arch_setup): Check for VSX in hwcap.
20105 (ppc_fill_vsxregset): New function.
20106 (ppc_store_vsxregset): New function.
20107 Add new VSX entry in regset_info target_regsets.
20109 * configure.srv: Add new VSX dependencies.
20111 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20113 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20114 (remote_open): Set or clear transport_is_reliable.
20115 (putpkt_binary): Don't expect acks in noack mode.
20116 (getpkt): Don't send ack/nac in noack mode.
20117 * server.c (handle_general_set): Handle QStartNoAckMode.
20118 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20120 (main): Reset noack_mode on every connection.
20121 * server.h (noack_mode): Declare.
20123 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20125 * Makefile.in (GDBREPLAY_OBS): New variable.
20126 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20128 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20129 Daniel Jacobowitz <dan@codesourcery.com>
20131 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20132 (usr_store_inferior_registers): Likewise.
20133 (regsets_store_inferior_registers): Likewise.
20135 2008-07-31 Rolf Jansen <rj@surtec.com>
20136 Pedro Alves <pedro@codesourcery.com>
20138 * configure.ac: Check for memmem declaration.
20139 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20140 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20141 (disable_packet_qfThreadInfo): Unconditionally compile.
20142 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20143 * configure, config.in: Regenerate.
20145 2008-07-28 Doug Kwan <dougkwan@google.com>
20147 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20148 (linux_write_memory): Remove declaration of errno.
20150 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20152 * linux-low.c (handle_extended_wait): Do not use "status"
20153 variable uninitialized.
20155 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20157 * server.c (handle_v_attach): Inhibit reporting dll changes.
20159 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20161 * remote-utils.c (prepare_resume_reply): If requested, don't
20162 output "thread:TID" in the T stop reply.
20164 * server.c (disable_packet_vCont, disable_packet_Tthread)
20165 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20166 (handle_query): If requested, disable support for qC, qfThreadInfo
20168 (handle_v_requests): If requested, disable support for vCont.
20169 (gdbserver_show_disableable): New.
20170 (main): Handle --disable-packet and --disable-packet=LIST.
20172 * server.h (disable_packet_vCont, disable_packet_Tthread)
20173 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20175 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20177 * server.c (gdbserver_usage): Mention --version.
20179 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20181 * Makefile.in (gdbreplay.o): New rule.
20183 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20185 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20186 message, not gdbserver.
20188 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20189 Nathan Sidwell <nathan@codesourcery.com>
20190 Joseph Myers <joseph@codesourcery.com>
20192 * acinclude.m4: Include ../../config/acx.m4.
20193 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20194 * configure, config.in: Regenerate.
20195 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20196 * server.c (gdbserver_version): Print PKGVERSION.
20197 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20198 (main): Adjust gdbserver_usage calls.
20199 * gdbreplay.c (version, host_name): Add declarations.
20200 (gdbreplay_version, gdbreplay_usage): New.
20201 (main): Accept --version and --help options.
20203 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20205 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20206 (arm_breakpoint_at): Handle Thumb.
20207 (the_low_target): Add comment.
20209 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20211 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20213 2008-05-09 Doug Evans <dje@google.com>
20215 * server.h (decode_search_memory_packet): Declare.
20216 * remote-utils.c (decode_search_memory_packet): New fn.
20217 * server.c (handle_search_memory_1): New fn.
20218 (handle_search_memory): New fn.
20219 (handle_query): Process qSearch:memory packets.
20221 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20223 * regcache.c (registers_length): Remove.
20224 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20225 full register packet.
20226 * regcache.h (registers_length): Remove prototype.
20227 * server.h (PBUFSIZ): Define to 16384.
20229 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20231 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20232 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20233 powerpc-64l.o, and powerpc-altivec64l.o.
20234 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20235 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20236 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20237 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20238 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20241 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20242 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20243 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20244 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20245 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20246 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20247 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20248 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20249 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20250 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20253 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20254 (init_registers_powerpc_32l): ... this new prototype.
20255 (init_registers_powerpc_32): Remove, replace by ...
20256 (init_registers_powerpc_altivec32l): ... this new prototype.
20257 (init_registers_powerpc_e500): Remove, replace by ...
20258 (init_registers_powerpc_e500l): ... this new prototype.
20259 (init_registers_ppc64): Remove, replace by ...
20260 (init_registers_powerpc_64l): ... this new prototype.
20261 (init_registers_powerpc_64): Remove, replace by ...
20262 (init_registers_powerpc_altivec64l): ... this new prototype.
20263 (ppc_num_regs): Set to 73.
20264 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20265 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20266 (ppc_cannot_store_register): Handle orig_r3 and trap.
20267 (ppc_arch_setup): Update init_registers_... calls.
20268 (ppc_fill_gregset): Handle orig_r3 and trap.
20270 * inferiors.c (clear_inferiors): Reset current_inferior.
20272 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20274 * acinclude.m4: Add override.m4.
20275 * configure: Regenerate.
20277 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20279 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20280 initial call to init_register_ppc64.
20282 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20284 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20285 single powerpc*-*-linux* case.
20286 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20288 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20290 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20291 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20293 * linux-ppc-low.c: Include <elf.h>.
20294 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20295 (ppc_hwcap): New global variable.
20296 (ppc_regmap): Remove __SPE__ #ifdef sections.
20297 (ppc_regmap_e500): New global variable.
20298 (ppc_cannot_store_register): Update __SPE__ special case.
20299 (ppc_get_hwcap): New function.
20300 (ppc_arch_setup): Use it to determine whether inferior supports
20301 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20302 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20303 Do not access registers if target does not support AltiVec.
20304 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20305 Do not access registers if target does not support SPE.
20306 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20308 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20310 * linux-low.c (disabled_regsets, num_regsets): New.
20311 (use_regsets_p): Delete.
20312 (linux_wait_for_process): Clear disabled_regsets.
20313 (regsets_fetch_inferior_registers): Check and set it.
20314 (regsets_store_inferior_registers): Likewise.
20315 (linux_fetch_registers, linux_store_registers): Do not use
20317 (initialize_low): Allocate disabled_regsets.
20319 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20321 * Makefile.in (LIBOBJS): New.
20322 (OBS): Use LIBOBJS.
20323 (memmem.o): New rule.
20324 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20325 * configure: Regenerated.
20327 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20329 * server.c (handle_query): Never return "unsupported" for
20330 qXfer:features:read queries.
20332 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20334 * server.c (get_features_xml): Fix inverted condition.
20335 (handle_query): Always support qXfer:feature:read.
20337 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20339 * server.c (wrapper_argv): New.
20340 (start_inferior): Handle wrapper_argv. If set, expect an extra
20342 (gdbserver_usage): Document --wrapper.
20343 (main): Parse --wrapper.
20345 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20347 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20348 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20349 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20350 (ppc_set_pc): Likewise.
20351 (ppc_arch_setup): New function.
20352 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20353 of collect_register.
20354 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20356 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20358 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20359 instead of linux-ppc64-low.o.
20360 * linux-ppc64-low.c: Remove file.
20361 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20362 (linux-ppc64-low.o): Remove rule.
20364 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20365 (init_registers_powerpc_64): Likewise.
20366 (ppc_regmap): Conditionally define depending on __powerpc64__.
20367 (ppc_cannot_store_register): Do not special-case "fpscr" when
20368 compiled on __powerpc64__.
20369 (ppc_collect_ptrace_register): New function.
20370 (ppc_supply_ptrace_register): New function.
20371 (ppc_breakpoint): Change type to "unsigned int".
20372 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20373 (the_low_target): Conditionally provide initializers for the
20374 arch_setup member depending on __powerpc64__. Install
20375 collect_ptrace_register and supply_ptrace_register members.
20377 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20379 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20380 * server.c (gdbserver_xmltarget): Define.
20381 (get_features_xml): Use it to replace "target.xml" and arch_string.
20383 * configure.srv: Remove srv_xmltarget. Add XML files that were
20384 mentioned there to srv_xmlfiles instead. Remove conditional tests
20385 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20386 srv_xmlfiles and srv_regobj to include all possible choices.
20387 * configure.ac (srv_xmltarget): Remove.
20388 (srv_xmlfiles): Do not add "target.xml".
20389 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20390 checks for supplementary target information.
20391 * configure: Regenerate.
20392 * Makefile.in (XML_TARGET): Remove.
20393 (target.xml): Remove rule.
20394 (clean): Do not clean up target.xml.
20395 (.PRECIOUS): Do not mention target.xml.
20397 * target.h (struct target_ops): Remove arch_string member.
20398 * linux-low.c (linux_arch_string): Remove.
20399 (linux_target_ops): Remove arch_string initializer.
20400 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20401 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20402 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20403 * spu-low.c (spu_arch_string): Remove.
20404 (spu_target_ops): Remove arch_string initializer.
20405 * win32-low.c (win32_arch_string): Remove.
20406 (win32_target_ops): Remove arch_string initializer.
20407 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20408 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20409 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20411 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20413 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20414 by collect_ptrace_register and supply_ptrace_register hooks.
20415 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20416 instead of checking for the_low_target.left_pad_xfer.
20417 (usr_store_inferior_registers): Use collect_ptrace_register callback
20418 instead of checking for the_low_target.left_pad_xfer.
20420 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20421 (s390_supply_ptrace_register): Likewise.
20422 (s390_fill_gregset): Call s390_collect_ptrace_register.
20423 (the_low_target): Update.
20425 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20426 (ppc_supply_ptrace_register): Likewise.
20427 (the_low_target): Update.
20429 * linux-i386-low.c (the_low_target): Update.
20430 * linux-x86-64-low.c (the_low_target): Update.
20432 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20434 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20435 reg-s390.o and reg-s390x.o.
20437 * linux-low.c (new_inferior): New global variable.
20438 (linux_create_inferior, linux_attach): Set it.
20439 (linux_wait_for_process): Call the_low_target.arch_setup after the
20440 target has stopped for the first time.
20441 (initialize_low): Do not call the_low_target.arch_setup.
20443 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20444 (s390_set_pc): Likewise.
20445 (s390_arch_setup): New function.
20446 (the_low_target): Use s390_arch_setup as arch_setup routine.
20448 * regcache.c (realloc_register_cache): New function.
20449 (set_register_cache): Call it for each existing regcache.
20451 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20453 * server.h (init_registers): Remove prototype.
20455 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20456 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20457 instead of init_registers ().
20458 * linux-arm-low.c (init_registers_arm): Add prototype.
20459 (init_registers_arm_with_iwmmxt): Likewise.
20460 (the_low_target): Add initializer for arch_setup field.
20461 * linux-cris-low.c (init_registers_cris): Add prototype.
20462 (the_low_target): Add initializer for arch_setup field.
20463 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20464 (the_low_target): Add initializer for arch_setup field.
20465 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20466 (the_low_target): Add initializer for arch_setup field.
20467 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20468 (the_low_target): Add initializer for arch_setup field.
20469 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20470 (the_low_target): Add initializer for arch_setup field.
20471 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20472 (the_low_target): Add initializer for arch_setup field.
20473 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20474 (init_registers_mips64_linux): Likewise.
20475 (the_low_target): Add initializer for arch_setup field.
20476 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20477 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20478 (the_low_target): Add initializer for arch_setup field.
20479 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20480 (init_registers_powerpc_64): Likewise.
20481 (the_low_target): Add initializer for arch_setup field.
20482 * linux-s390-low.c (init_registers_s390): Add prototype.
20483 (init_registers_s390x): Likewise.
20484 (the_low_target): Add initializer for arch_setup field.
20485 * linux-sh-low.c (init_registers_sh): Add prototype.
20486 (the_low_target): Add initializer for arch_setup field.
20487 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20488 (the_low_target): Add initializer for arch_setup field.
20489 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20490 (the_low_target): Add initializer for arch_setup field.
20492 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20493 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20494 instead of init_registers ().
20495 * win32-arm-low.c (init_registers_arm): Add prototype.
20496 (the_low_target): Add initializer for arch_setup field.
20497 * win32-i386-low.c (init_registers_i386): Add prototype.
20498 (the_low_target): Add initializer for arch_setup field.
20500 * spu-low.c (init_registers_spu): Add prototype.
20501 (initialize_low): Call initialie_registers_spu () instead of
20502 initialize_registers ().
20504 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20506 * server.c (handle_v_requests): When handling the vRun and vAttach
20507 packets, if already debugging a process, don't kill it. Return an
20510 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20512 * server.c (handle_query): Correct length check.
20514 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20516 * win32-low.c (do_initial_child_stuff): Add process handle
20517 parameter. Set current_process_handle and current_process_id from the
20518 parameters. Clear globals.
20519 (win32_create_inferior): Don't set current_process_handle and
20520 current_process_id here. Instead pass them on the call to
20521 do_initial_child_stuff.
20522 (win32_attach): Likewise.
20523 (win32_clear_inferiors): New.
20524 (win32_kill): Don't close the current process handle or the
20525 current thread handle here. Instead call win32_clear_inferiors.
20526 (win32_detach): Don't open a new handle to the process. Call
20527 win32_clear_inferiors.
20528 (win32_join): Don't rely on current_process_handle; open a new
20529 handle using the process id.
20530 (win32_wait): Call win32_clear_inferiors when the inferior process
20533 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20535 * server.c (monitor_show_help): Add "exit".
20537 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20539 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20540 (clean): Add reg-xtensa.c.
20541 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20542 * configure.srv (xtensa*-*-linux*) New target.
20543 * linux-xtensa-low.c: New.
20544 * xtensa-xtregs.c: New.
20546 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20548 * hostio.c: Don't include errno.h.
20549 (errno_to_fileio_errno): Move to hostio-errno.
20550 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20551 error number outputting to the target->hostio_last_error callback.
20552 (hostio_packet_error): Use FILEIO_EINVAL directly.
20553 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20554 calls to hostio_error.
20555 * hostio-errno.c: New.
20556 * server.h (hostio_last_error_from_errno): Declare.
20557 * target.h (target_ops): Add hostio_last_error member.
20558 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20559 as hostio_last_error handler.
20560 * spu-low.c (spu_target_ops): Likewise.
20561 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20562 (wince_hostio_last_error): New functions.
20563 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20564 as hostio_last_error handler.
20565 (win32_target_ops) [!_WIN32_WCE]: Register
20566 hostio_last_error_from_errno as hostio_last_error handler.
20567 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20568 (hostio-errno.o): New rule.
20569 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20570 * configure.srv (srv_hostio_err_objs): New variable. Default to
20572 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20573 * configure: Regenerate.
20575 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20577 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20578 (linux_kill, linux_detach): Clean up the process list.
20579 * remote-utils.c (remote_open): Improve port number parsing.
20580 (putpkt_binary, input_interrupt): Only send interrupts if the target
20582 * server.c (extended_protocol): Make static.
20583 (attached): Define earlier.
20584 (exit_requested, response_needed, program_argv): New variables.
20585 (target_running): New.
20586 (start_inferior): Clear attached here.
20587 (attach_inferior): Set attached here.
20588 (require_running): Define.
20589 (handle_query): Use require_running and target_running. Implement
20591 (handle_v_attach, handle_v_run): New.
20592 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20593 (gdbserver_usage): Update.
20594 (main): Redo argument parsing. Handle --debug and --multi. Handle
20595 --attach along with other options or after the port. Save
20596 program_argv. Support no initial program. Resynchronize
20597 communication with GDB after an error. Handle "monitor exit".
20598 Use require_running and target_running. Always allow the extended
20599 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20600 restart in extended mode.
20601 * README: Refer to the GDB manual. Update --attach usage.
20603 2007-12-20 Andreas Schwab <schwab@suse.de>
20605 * linux-low.c (STACK_SIZE): Define.
20606 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20607 (linux_test_for_tracefork): Likewise.
20609 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20611 * linux-low.c (linux_wait_for_event): Update messages. Do not
20612 reinsert auto-delete breakpoints.
20613 * mem-break.c (struct breakpoint): Change return type of handler to
20615 (set_breakpoint_at): Update handler type.
20616 (reinsert_breakpoint_handler): Return 1 instead of calling
20618 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20620 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20621 * mem-break.h (set_breakpoint_at): Update handler type.
20622 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20623 * win32-low.c (auto_delete_breakpoint): New.
20624 (get_child_debug_event): Use it.
20626 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20628 * configure.ac: Check for pread and pwrite.
20629 * hostio.c (handle_pread): Fall back to lseek and read.
20630 (handle_pwrite): Fall back to lseek and write.
20631 * config.in, configure: Regenerated.
20633 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20635 * server.c (myresume): Add own_buf argument.
20636 (main): Update calls.
20638 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20640 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20641 * remote-utils.c (remote_open): Do not call disable_async_io.
20642 (block_async_io): Delete.
20643 (unblock_async_io): Make static.
20644 (initialize_async_io): New.
20645 * server.c (handle_v_cont): Handle async I/O here.
20646 (myresume): Likewise. Move other common resume tasks here...
20647 (main): ... from here. Call initialize_async_io. Disable async
20648 I/O before the main loop.
20649 * server.h (initialize_async_io): Declare.
20650 (block_async_io, unblock_async_io): Delete prototypes.
20651 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20653 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20655 * remote-utils.c (readchar): Allow binary data in received messages.
20657 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20659 * win32-low.c (attaching): New global.
20660 (win32_create_inferior): Clear the `attaching' global.
20661 (win32_attach): Set the `attaching' global.
20662 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20663 attaching. Only set a breakpoint at the entry point if not
20666 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20668 * server.c (main): Don't report dll events on the initial
20669 connection on attaches.
20671 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20673 * server.c (main): Relax numerical bases supported for the pid of
20674 the --attach command line argument.
20676 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20678 * win32-low.c (win32_attach): Call OpenProcess before
20679 DebugActiveProcess, not after. Add last error output to error
20682 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20684 * win32-low.c (win32_get_thread_context)
20685 (win32_set_thread_context): New functions.
20686 (thread_rec): Use win32_get_thread_context.
20687 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20688 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20691 2007-12-03 Leo Zayas
20692 Pedro Alves <pedro_alves@portugalmail.pt>
20694 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20696 (child_add_thread): Minor cleanup.
20697 (child_continue): Resume artificially suspended threads before
20698 calling ContinueDebugEvent.
20699 (suspend_one_thread): New.
20700 (fake_breakpoint_event): New.
20701 (get_child_debug_event): Change return type to int. Check here if
20702 gdb sent an interrupt request. If a soft interrupt was requested,
20703 fake a breakpoint event. Return 0 if there is no event to handle,
20705 (win32_wait): Don't check here if gdb sent an interrupt request.
20706 Ensure there is a valid event to handle.
20707 (win32_request_interrupt): Add soft interruption method as last
20710 2007-12-03 Leo Zayas
20711 Pedro Alves <pedro_alves@portugalmail.pt>
20713 * win32-low.h (win32_thread_info): Add descriptions to the
20714 structure members. Replace `suspend_count' counter by a
20716 * win32-low.c (thread_rec): Update condition of when to get the
20717 context from the inferior. Rely on ContextFlags being set if it
20718 has already been retrieved. Only suspend the inferior thread if
20719 we haven't already. Warn if that fails.
20720 (continue_one_thread): s/suspend_count/suspended/. Only call
20721 ResumeThread once. Warn if that fails.
20723 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20725 * win32-low.c (win32_wait): Don't read from the inferior when it
20726 has already exited.
20728 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20730 * Makefile.in (win32_low_h): New variable.
20731 (win32-low.o): Add dependency on $(win32_low_h).
20732 (win32-arm-low.o, win32-i386-low.o): New rules.
20734 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20736 * hostio.c: Correct copyright year.
20738 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20740 * Makefile.in (OBS): Add hostio.o.
20741 (hostio.o): New rule.
20742 * server.h (handle_vFile): Declare.
20743 * hostio.c: New file.
20744 * server.c (handle_v_requests): Take packet_len and new_packet_len
20745 for binary packets. Call handle_vFile.
20746 (main): Update call to handle_v_requests.
20748 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20750 * linux-low.c: Include <sched.h>.
20752 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20754 * linux-low.c (linux_tracefork_grandchild): New.
20755 (linux_tracefork_child): Use clone.
20756 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20758 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20760 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20762 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20764 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20766 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20768 * inferiors.c (change_inferior_id): Delete.
20769 (add_pid_to_list, pull_pid_from_list): New.
20770 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20771 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20772 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20773 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20774 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20775 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20776 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20777 (using_threads): Always set to 1.
20778 (handle_extended_wait): New.
20779 (add_process): Do not set TID.
20780 (linux_create_inferior): Set must_set_ptrace_flags.
20781 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20782 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20783 (linux_thread_alive): Rename TID argument to LWPID.
20784 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20785 (linux_wait_for_event): Do not use TID or check using_threads. Update
20786 call to dead_thread_notify. Call handle_extended_wait.
20787 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20788 (send_sigstop): Delete sigstop_sent.
20789 (wait_for_sigstop): Avoid TID.
20790 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20791 (linux_test_for_tracefork): New.
20792 (linux_lookup_signals): Use thread_db_active and
20793 linux_supports_tracefork_flag.
20794 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20795 * linux-low.h (get_process_thread): Avoid TID.
20796 (struct process_ifo): Move thread_known and tid to the end. Remove
20798 (linux_attach_lwp, thread_db_init): Update prototypes.
20799 * server.h (change_inferior_id): Delete prototype.
20800 (add_pid_to_list, pull_pid_from_list): New prototypes.
20801 * thread-db.c (thread_db_use_events): New.
20802 (find_first_thread): Rename to...
20803 (find_one_thread): ...this. Update callers and messages. Do not
20804 call fatal. Check thread_db_use_events. Do not call
20805 change_inferior_id or new_thread_notify.
20806 (maybe_attach_thread): Update. Do not call new_thread_notify.
20807 (thread_db_init): Set thread_db_use_events. Check use_events.
20808 * utils.c (fatal, warning): Correct message prefix.
20810 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20812 * Makefile.in (clean): Remove new files.
20813 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20814 (powerpc-64.o, powerpc-64.c): New rules.
20815 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20816 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20818 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20820 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20821 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20822 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20823 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20824 (target_regsets): Add AltiVec and SPE register sets.
20825 * configure.ac: Check for AltiVec and SPE.
20826 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20827 (ppc_fill_vrregset, ppc_store_vrregset): New.
20828 (target_regsets): Add AltiVec register set.
20829 * configure: Regenerated.
20831 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20833 * linux-low.c (O_LARGEFILE): Define.
20834 (linux_read_memory): Use /proc/PID/mem.
20835 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20836 * configure, config.in: Regenerated.
20838 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20840 * linux-low.c (linux_wait_for_event): Do not pass signals while
20843 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20845 * win32-low.c (create_process): New.
20846 (win32_create_inferior): Use create_process instead of
20847 CreateProcess. If create_process failed retry appending an ".exe"
20848 suffix. Store the GetLastError result immediatelly after
20849 create_process calls and use it on the call to error.
20851 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20853 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20855 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20857 * configure.ac: Switch license to GPLv3.
20859 2007-08-01 Michael Snyder <msnyder@access-company.com>
20861 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20863 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20865 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20867 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20868 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20869 CloseToolhelp32Snapshot.
20870 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20871 CloseToolhelp32Snapshot.
20873 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20875 * server.c (main): Check for inferior exit before main loop.
20877 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20879 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20880 instead of on tmp_desc.
20882 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
20883 Daniel Jacobowitz <dan@codesourcery.com>
20885 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
20886 (add_thread): Minor cleanups.
20887 (clear_inferiors): Move lower in the file. Clear the DLL
20889 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
20890 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
20891 (xml_escape_text): New.
20892 * server.c (handle_query): Handle qXfer:libraries:read. Report it
20894 (handle_v_cont): Report errors.
20895 (gdbserver_version): Update.
20896 (main): Correct size of own_buf. Do not report initial DLL events.
20897 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
20898 (unloaded_dll, xml_escape_text): New.
20899 * win32-low.c (enum target_waitkind): Update comments.
20900 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
20901 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
20902 (win32_EnumProcessModules, win32_GetModuleInformation)
20903 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
20904 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
20905 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
20906 (win32_Module32First, win32_Module32Next, load_toolhelp)
20907 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
20908 (get_child_debug_event): Handle DLL events.
20909 (win32_wait): Likewise.
20911 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
20913 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
20914 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
20916 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20918 * win32-low.c (handle_output_debug_string): Ignore event if not
20921 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
20923 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
20925 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
20927 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
20929 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20931 * inferiors.c (change_inferior_id): Add comment.
20932 * linux-low.c (check_removed_breakpoint): Add an early
20933 prototype. Improve debug output.
20934 (linux_attach): Doc update.
20935 (linux_detach_one_process, linux_detach): Clean up before releasing
20937 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
20938 * linux-low.h (struct process_info): Doc improvement.
20939 * mem-break.c (delete_all_breakpoints): New.
20940 * mem-break.h (delete_all_breakpoints): New prototype.
20941 * thread-db.c (find_first_thread): New.
20942 (thread_db_create_event): Call it instead of
20943 thread_db_find_new_threads. Clean up unused variables.
20944 (maybe_attach_thread): Remove first thread handling.
20945 (thread_db_find_new_threads): Use find_first_thread.
20946 (thread_db_get_tls_address): Likewise.
20948 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
20950 * thread-db.c (thread_db_find_new_threads): Add prototype.
20951 (thread_db_create_event): Check for the main thread before adding
20953 (maybe_attach_thread): Only enable event reporting if TID == 0.
20954 (thread_db_get_tls_address): Check for new threads.
20956 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
20958 * linux-low.c (linux_create_inferior): Try execv before execvp.
20959 * spu-low.c (spu_create_inferior): Likewise.
20961 2007-06-13 Mike Frysinger <vapier@gentoo.org>
20963 * linux-low.c (linux_create_inferior): Change execv to execvp.
20964 * spu-low.c (spu_create_inferior): Likewies.
20966 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
20968 * Makefile.in (clean): Clean new files instead of deleted ones.
20969 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
20970 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
20972 * configure.srv: Specify XML files and new regformats for MIPS and
20974 * linux-mips-low.c (mips_num_regs): Set to only used registers.
20975 (mips_regmap): Do not fetch $0. Remove unused registers. Add
20976 an entry for the restart register.
20977 (mips_cannot_fetch_register, mips_cannot_store_register)
20978 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
20979 register names to match the XML descriptions.
20980 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
20981 restart register instead of $0.
20983 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20984 Markus Deuling <deuling@de.ibm.com>
20986 * remote-utils.c (decode_xfer_write): New function.
20987 * server.h (decode_xfer_write): Add prototype.
20988 * server.c (handle_query): Add PACKET_LEN argument. Support
20989 qXfer:spu:read and qXfer:spu:write packets.
20990 (main): Pass packet_len to handle_query.
20991 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
20992 * target.h (target_ops): Add qxfer_spu.
20994 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
20996 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
20997 accessing non-seekable spufs files.
20999 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21001 * server.c (handle_query): Add reply for qC packet.
21003 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21004 Leo Zayas <lerele@champenstudios@com>
21006 * server.h (check_remote_input_interrupt_request): New function.
21007 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21008 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21009 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21010 (check_remote_input_interrupt_request): New function.
21011 * server.h (check_remote_input_interrupt_request): Declare.
21012 * win32-low.c (winapi_DebugBreakProcess,
21013 winapi_GenerateConsoleCtrlEvent): New typedefs.
21014 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21016 (win32_wait): Check for remote interrupt request
21017 with check_remote_input_interrupt_request.
21018 (win32_request_interrupt): New function.
21019 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21021 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21023 * win32-low.c (debug_registers_changed,
21024 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21025 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21026 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21027 (thread_rec): Get context using the low target.
21028 (child_add_thread): Call thread_added on the low target,
21029 which does the same thing.
21031 (do_initial_child_stuff): Remove debug registers references.
21032 Set context using the low target. Resume threads after
21033 setting the contexts.
21034 (child_continue): Remove dead variable. Remove debug
21035 registers references.
21036 (child_fetch_inferior_registers): Go through the low target.
21037 (do_child_store_inferior_registers): Remove.
21038 (child_store_inferior_registers): Go through the low target.
21039 (win32_resume): Remove debug registers references.
21040 Set context using the low target.
21041 (handle_exception): Change return type to void. Don't record
21042 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21043 first chance exception.
21044 (get_child_debug_event): Change return type to void. Remove
21045 goto loop. Always return after waiting for debug event.
21046 (win32_wait): Convert to switch statement. Handle spurious
21049 * win32-i386-low.c (debug_registers_changed,
21050 debug_registers_used): New.
21051 (initial_stuff): Rename to ...
21052 (i386_initial_stuff): ... this. Clear debug registers
21054 (store_debug_registers): Delete.
21055 (i386_get_thread_context): New.
21056 (load_debug_registers): Delete.
21057 (i386_set_thread_context): New.
21058 (i386_thread_added): New.
21059 (single_step): Rename to ...
21060 (i386_single_step): ... this.
21061 (do_fetch_inferior_registers): Rename to ...
21062 (i386_fetch_inferior_register): ... this.
21063 (i386_store_inferior_register): New.
21064 (the_low_target): Adapt to new interface.
21066 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21067 (arm_get_thread_context): New.
21068 (arm_set_thread_context): New.
21070 (do_fetch_inferior_registers): Rename to ...
21071 (arm_fetch_inferior_register): ... this.
21072 (arm_store_inferior_register): New.
21073 (arm_wince_breakpoint): Reimplement as unsigned long.
21074 (arm_wince_breakpoint_len): Define.
21075 (the_low_target): Adapt to new interface.
21077 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21078 load_debug_registers. Add get_thread_context, set_thread_context,
21079 thread_added and store_inferior_register. Rename
21080 fetch_inferior_registers to fetch_inferior_register.
21081 (regptr): Remove declaration.
21083 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21085 * linux-low.c (linux_detach): Change return type to int. Return 0.
21086 * spu-low.c (spu_detach): Likewise.
21088 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21090 * target.h (target_ops): Change return type of detach to int.
21092 (join_inferior): New.
21093 * server.c (main): Don't skip detach support on mingw32.
21094 If the inferior doesn't support detaching return error.
21095 Call join_inferior instead of using waitpid.
21096 * linux-low.c (linux_join): New.
21097 (linux_target_op): Add linux_join.
21098 * spu-low.c (spu_join): New.
21099 (spu_target_ops): Add spu_join.
21100 * win32-low.c (win32_detach): Adapt to new interface.
21101 Reopen current_process_handle before detaching. Issue a child
21102 resume before detaching.
21104 (win32_target_op): Add win32_join.
21106 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21108 * win32-low.c (win32-attach): Fix return value.
21109 * target.h (target_ops): Describe ATTACH return values.
21111 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21113 * win32-low.c (GETPROCADDRESS): Define.
21114 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21115 (winapi_DebugSetProcessKillOnExit): Likewise.
21116 (win32_create_inferior): Force usage of ansi CreateProcessA.
21117 (win32_attach): Use GETPROCADDRESS.
21118 (win32_detach): Likewise.
21120 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21122 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21124 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21126 * win32-low.c: Commit leftover changes from 2007-03-29.
21128 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21130 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21131 fields short instead of int. Add explicit padding.
21132 (i387_cache_to_fsave): Remove unnecessary casts.
21133 (i387_fsave_to_cache): Doc fix.
21134 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21136 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21138 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21139 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21141 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21143 * configure.srv (arm*-*-mingw32ce*): Move near the other
21146 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21148 * configure.ac: Add errno checking.
21149 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21150 sys/file.h and malloc.h.
21151 (AC_CHECK_DECLS): Add perror.
21152 (srv_mingwce): Handle.
21153 * configure.srv (i[34567]86-*-cygwin*): Add
21154 win32-i386-low.o to srv_tgtobj.
21155 (i[34567]86-*-mingw*): Likewise.
21156 (arm*-*-mingw32ce*): Add case.
21157 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21158 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21159 [__MINGW32CE__] (strerror): New function.
21160 [__MINGW32CE__] (errno): Define to GetLastError.
21161 [__MINGW32CE__] (COUNTOF): New macro.
21162 (remote_open): Remove extra close call.
21163 * mem-break.c (delete_breakpoint_at): New function.
21164 * mem-break.h (delete_breakpoint_at): Declare.
21165 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21166 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21167 [USE_WIN32API] (read, write): Add char* casts.
21168 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21169 * server.h: Include wincecompat.h on Windows CE.
21170 [HAVE_ERRNO_H]: Check.
21171 (perror): Declare if not declared.
21172 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21173 (perror_with_name): Remove errno declaration.
21174 * wincecompat.h: New.
21175 * wincecompat.c: New.
21176 * win32-low.h: New.
21177 * win32-arm-low.c: New.
21178 * win32-i386-low.c: New.
21179 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21180 (OUTMSG2): Make it safe.
21182 (COUNTOF): New macro.
21183 (NUM_REGS): Get it from the low target.
21184 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21185 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21186 (thread_rec): Let low target handle debug registers.
21187 (child_add_thread): Likewise.
21188 (child_init_thread_list): Likewise.
21189 (continue_one_thread): Likewise.
21191 (do_child_fetch_inferior_registers): Move to ...
21192 * win32-i386-low.c: ... here, and rename to ...
21193 (do_fetch_inferior_registers): ... this.
21194 * win32-low.c (child_fetch_inferior_registers):
21195 Go through the low target.
21196 (do_child_store_inferior_registers): Use regptr.
21197 (strwinerror): New function.
21198 (win32_create_inferior): Handle Windows CE.
21199 Use strwinerror instead of strerror on Windows error
21200 codes. Add program to the error output.
21201 Don't close the main thread handle on Windows CE.
21202 (win32_attach): Use coredll.dll on Windows CE.
21203 (win32_kill): Close current process and current
21205 (win32_detach): Use coredll.dll on Windows CE.
21206 (win32_resume): Let low target handle debug registers, and
21208 (handle_exception): Add/Remove initial breakpoint. Avoid
21209 non-existant WSTOPSIG on Windows CE.
21210 (win32_read_inferior_memory): Cast to remove warning.
21211 (win32_arch_string): Go through the low target.
21212 (initialize_low): Call set_breakpoint_data with the low
21213 target's breakpoint.
21214 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21215 FOP_REGNUM, mappings): Move to ...
21216 * win32-i386-low.c: ... here.
21217 * win32-low.c (win32_thread_info): Move to ...
21218 * win32-low.h: ... here.
21219 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21220 win32-arm-low.c and wincecompat.c.
21221 (all:): Add $EXEEXT.
21222 (install-only:): Likewise.
21223 (gdbserver:): Likewise.
21224 (gdbreplay:): Likewise.
21225 * config.in: Regenerate.
21226 * configure: Regenerate.
21228 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21230 * win32-low.c: Rename typedef thread_info to
21231 win32_thread_info throughout.
21233 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21235 * win32-i386-low.c: Rename to ...
21236 * win32-low.c: ... this.
21237 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21238 * Makefile.in: Likewise.
21240 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21242 * remote-utils.c (monitor_output): Constify msg parameter.
21243 * server.h (monitor_output): Likewise.
21244 * win32-i386-low.c (handle_output_debug_string): New.
21245 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21246 handle_output_debug_string.
21247 (get_child_debug_event): Likewise.
21249 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21251 * server.c (main): Correct strtoul check.
21253 2007-03-27 Jon Ringle <jon@ringle.org>
21255 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21257 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21259 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21261 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21263 * terminal.h: Check HAVE_SGTTY_H.
21265 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21267 * remote-utils.c (remote_open): Print out the assigned port number.
21269 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21271 * remote-utils.c (monitor_output): New function.
21272 * server.c (debug_threads): Define here.
21273 (monitor_show_help): New function.
21274 (handle_query): Handle qRcmd.
21275 (main): Do not handle 'd' packet.
21276 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21277 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21280 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21282 * Makefile.in (EXEEXT): New.
21283 (clean): Use $(EXEEXT).
21285 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21287 * target.h (target_ops): Rename send_signal to request_interrupt,
21288 and remove enum target_signal parameter.
21289 * linux-low.c (linux_request_interrupt): Rename from
21290 linux_send_signal, and always send SIGINT.
21291 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21292 and always send SIGINT.
21293 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21295 (input_interrupt): Likewise.
21297 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21299 * server.c (get_features_xml): Check if target implemented
21301 * win32-i386-low.c (win32_arch_string): New.
21302 (win32_target_ops): Add win32_arch_string as arch_string member.
21304 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21306 * spu-low.c (spu_arch_string): New.
21307 (spu_target_ops): Add spu_arch_string.
21309 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21311 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21312 * configure.ac: Do not check for terminal.h.
21313 * configure, config.in: Regenerated.
21315 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21317 * Makefile.in (OBS): Add $(XML_BUILTIN).
21318 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21320 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21321 (arm-with-iwmmxt.c): New.
21322 * config.in, configure: Regenerate.
21323 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21324 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21325 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21326 (arm*-*-linux*): Add iWMMXt and regset support.
21327 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21328 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21329 (arm_store_wmmxregset, target_regsets): New.
21330 * server.c (get_features_xml): Take annex argument. Check builtin
21332 (handle_query): Handle multiple annexes.
21334 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21336 * remote-utils.c [USE_WIN32API] (read, write): Define.
21337 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21340 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21342 * linux-i386-low.c (the_low_target): Set arch_string.
21343 * linux-x86-64-low.c (the_low_target): Likewise.
21344 * linux-low.c (linux_arch_string): New.
21345 (linux_target_ops): Add it.
21346 * linux-low.h (struct linux_target_ops): Add arch_string.
21347 * server.c (write_qxfer_response): Use const void * for DATA.
21348 (get_features_xml): New.
21349 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21350 * target.h (struct target_ops): Add arch_string method.
21352 2007-01-03 Denis Pilat <denis.pilat@st.com>
21353 Daniel Jacobowitz <dan@codesourcery.com>
21355 * linux-low.c (linux_kill): Handle being called with no threads.
21356 * win32-i386-low.c (win32_kill): Likewise.
21357 (get_child_debug_event): Clear current_process_handle.
21359 2006-12-30 Denis PILAT <denis.pilat@st.com>
21360 Daniel Jacobowitz <dan@codesourcery.com>
21362 * remote-utils.c (remote_open): Check the type of specified
21363 serial port devices before opening them.
21364 * server.c (main): Kill the inferior if an error occurs during
21365 the first remote_open.
21367 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21369 * README: Update supported targets.
21371 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21373 * Makefile.in (clean): Remove reg-mips64.c.
21374 (reg-mips64.c, reg-mips64.o): New rules.
21375 * configure.srv: Handle mips64. Include regset support for mips.
21376 * linux-mips-low.c (union mips_register): New.
21377 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21378 (mips_breakpoint, mips_breakpoint_at): Use int.
21379 (mips_collect_register, mips_supply_register)
21380 (mips_collect_register_32bit, mips_supply_register_32bit)
21381 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21382 (mips_store_fpregset, target_regsets): New.
21383 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21385 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21387 * configure.srv: Add target "spu*-*-*".
21388 * Makefile.in (clean): Remove reg-spu.c.
21389 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21390 * spu-low.c: New file.
21392 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21394 * configure.ac: Correct td_thr_tls_get_addr test.
21395 * configure: Regenerated.
21397 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21399 * linux-low.c (linux_wait_for_event): Reformat. Use the
21400 pass_signals array.
21401 * remote-utils.c (decode_address_to_semicolon): New.
21402 * server.c (pass_signals, handle_general_set): New.
21403 (handle_query): Mention QPassSignals for qSupported.
21404 (main): Call handle_general_set.
21405 * server.h (pass_signals, decode_address_to_semicolon): New.
21407 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21409 * server.c (handle_query): Correct error handling for read_auxv.
21411 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21413 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21414 and srv_linux_thread_db to yes.
21415 * linux-s390-low.c (s390_fill_gregset): New function.
21416 (target_regsets): Define data structure.
21418 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21420 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21421 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21422 * config.in, configure: Regenerated.
21423 * inferiors.c (gdb_id_to_thread): New function.
21424 (gdb_id_to_thread_id): Use it.
21425 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21426 * linux-low.h (struct process_info): Add th member.
21427 (thread_db_get_tls_address): New prototype.
21428 * remote-utils.c (decode_address): Make non-static.
21429 * server.c (handle_query): Handle qGetTLSAddr.
21430 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21431 * target.h (struct target_ops): Add get_tls_address.
21432 * thread-db.c (maybe_attach_thread): Save the thread handle.
21433 (thread_db_get_tls_address): New.
21435 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21437 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21438 (linux_resume_one_process): Take a siginfo_t *. Update all
21439 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21440 (struct pending_signals): Add a siginfo_t.
21441 (linux_wait_for_process): Always set last_status.
21442 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21443 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21444 * linux-low.h (struct process_info): Add last_status.
21446 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21448 * remote-utils.c (try_rle): New function.
21449 (putpkt_binary): Use it.
21451 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21453 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21454 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21455 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21456 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21457 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21460 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21462 * server.c (terminal_fd): New variable.
21463 (old_foreground_pgrp): Likewise.
21464 (restore_old_foreground_pgrp): New function.
21465 (start_inferior): Record the terminal file descriptor in terminal_fd
21466 and its original foreground group in old_foreground_pgrp. Register
21467 restore_old_foreground_pgrp with atexit().
21469 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21471 * server.c (handle_query): Correct qPart to qXfer.
21473 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21475 * configure.ac: Check for more headers which are missing on
21476 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21477 * configure.srv: Add Cygwin and mingw32.
21478 * remote-utils.c: Don't include headers unconditionally which
21479 are missing on mingw32. Include <winsock.h> for mingw32.
21480 (remote_open): Adjust for mingw32 support. Flush
21481 standard error after writing to it.
21482 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21483 (unblock_async_io, enable_async_io, disable_async_io)
21484 (readchar, getpkt): Update for Winsock support.
21485 (prepare_resume_reply): Expect a protocol signal number.
21486 * server.c: Disable <sys/wait.h> on mingw32.
21487 (start_inferior): Adjust for mingw32 support. Flush
21488 standard error after writing to it.
21489 (attach_inferior): Likewise. Use protocol signal
21491 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21493 * win32-i386-low.c: New file.
21494 * Makefile.in (XM_CLIBS): Set.
21495 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21496 (win32-i386-low.o): New dependency rule.
21497 * linux-low.c (linux_wait): Use target signal numbers.
21498 * target.h (struct target_ops): Doc fix.
21499 * server.h (target_signal_to_name): New prototype.
21500 * gdbreplay.c: Don't include headers unconditionally which
21501 are missing on mingw32. Include <winsock.h> for mingw32.
21502 (remote_close, remote_open): Adjust for Winsock support.
21503 * configure, config.in: Regenerated.
21505 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21507 * server.c (decode_xfer_read, write_qxfer_response): New.
21508 (handle_query): Take a packet length argument. Handle
21509 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21510 the qSupported response.
21511 (main): Update call to handle_query.
21513 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21515 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21516 (putpkt_binary): Renamed from putpkt and adjusted for binary
21518 (putpkt): New wrapper for putpkt_binary.
21519 (readchar): Don't mask off the high bit.
21520 (decode_X_packet): New function.
21521 * server.c (main): Call putpkt_binary if a handler sets the packet
21522 length. Save the length of the incoming packet. Handle 'X'.
21523 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21525 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21527 * server.c (handle_query): Handle qSupported.
21529 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21531 * remote-utils.c (all_symbols_looked_up): New variable.
21532 (look_up_one_symbol): Check it.
21533 * server.h (look_up_one_symbol): New declaration.
21534 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21536 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21538 * Makefile.in (linux-arm-low.o): Update dependencies.
21539 * linux-arm-low.c: Include "gdb_proc_service.h".
21540 (PTRACE_GET_THREAD_AREA): Define.
21541 (ps_get_thread_area): New function.
21543 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21545 * configure.srv (m68k*-*-uclinux*): New target.
21546 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21547 (linux_resume_one_process): Remove extraneous cast.
21548 (linux_read_offsets): New.
21549 (linux_target_op): Add linux_read_offsets on mmuless systems.
21550 * server.c (handle_query): Add qOffsets logic.
21551 * target.h (struct target_ops): Add read_offsets.
21553 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21555 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21556 (PTRACE_GET_THREAD_AREA): Define.
21557 (ps_get_thread_area): New function.
21558 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21559 (linux-x86-64-low.o): Update.
21561 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21563 * configure.ac: Remove checks for prfpregset_t.
21564 * gdb_proc_service.h: New file.
21565 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21566 new "gdb_proc_service.h".
21567 * proc-service.c: Likewise.
21568 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21569 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21570 * Makefile.in (gdb_proc_service_h): Updated.
21571 * configure, config.in: Regenerated.
21573 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21575 * remote-utils.c (prepare_resume_reply): Move declaration
21576 of gdb_id_from_wait to the top of the block.
21578 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21580 * linux-low.c (regsets_store_inferior_registers): Read the regset
21581 from the target before filling it.
21583 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21585 * server.c (attach_inferior): Return SIGTRAP for a successful
21588 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21590 * Makefile.in (OBS): Add version.o.
21591 (STAGESTUFF): Delete.
21592 (version.o): Add dependencies.
21593 (version.c): Replace rule.
21594 (clean): Remove version.c.
21595 * server.c (gdbserver_version): New.
21596 (gdbserver_usage): Use printf.
21597 (main): Handle --version and --help.
21598 * server.h (version, host_name): Add declarations.
21600 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21612 * linux-x86-64-low.c:
21614 * linux-s390-low.c:
21615 * linux-ppc64-low.c:
21617 * linux-mips-low.c:
21618 * linux-m68k-low.c:
21619 * linux-m32r-low.c:
21622 * linux-ia64-low.c:
21623 * linux-i386-low.c:
21624 * linux-crisv32-low.c:
21636 * gdbserver.1: Add (C) after Copyright. Update the FSF
21639 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21641 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21642 (arm_breakpoint_at): Recognize both breakpoints.
21643 (the_low_target): Use the correct breakpoint instruction.
21645 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21647 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21648 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21649 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21650 (the_low_target): Update.
21652 2005-10-25 Andreas Schwab <schwab@suse.de>
21654 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21656 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21657 (ia64_num_regs): Reduce to 462.
21659 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21661 * acinclude.m4: Correct quoting.
21662 * aclocal.m4: Regenerated.
21664 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21665 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21666 (thread_db_init): Call thread_db_err_str.
21667 * configure.ac: Check for TD_VERSION.
21668 * config.in, configure: Regenerated.
21670 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21672 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21674 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21676 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21677 is not available. Define HAVE_PTRACE_GETREGS if it is.
21678 * config.in, configure: Regenerated.
21679 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21680 * linux-i386-low.c, linux-m68k-low.c: Update to use
21681 HAVE_PTRACE_GETREGS.
21682 * linux-low.c (regsets_fetch_inferior_registers)
21683 (regsets_store_inferior_registers): Only return 0 if we processed
21685 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21686 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21688 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21690 * inferiors.c (struct thread_info): Add gdb_id.
21691 (add_thread): Add gdb_id argument.
21692 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21693 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21694 calls to add_thread.
21695 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21696 * server.c (handle_query): Use thread_to_gdb_id.
21697 (handle_v_cont, main): Use gdb_id_to_thread_id.
21698 * server.h (add_thread): Update prototype.
21699 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21702 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21704 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21705 left-padded registers.
21706 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21707 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21709 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21711 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21712 * configure: Regenerate.
21713 * config.in: Regenerate.
21714 * server.h (NEED_DECLARATION_STRERROR):
21715 Replace with !HAVE_DECL_STRERROR.
21717 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21719 * linux-low.c (linux_wait, linux_send_signal): Don't test
21720 an unsigned long variable for > 0 if it could be MAX_ULONG.
21721 * server.c (myresume): Likewise.
21722 * target.c (set_desired_inferior): Likewise.
21724 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21726 * configure.ac: Simplify and improve check for socklen_t.
21727 * configure, config.in: Regenerate.
21729 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21731 * acconfig.h: Remove.
21732 * configure.ac: Add a test for socklen_t. Use three-argument
21733 AC_DEFINE throughout.
21734 * config.in: Regenerated using autoheader 2.59.
21735 * configure: Regenerated.
21737 * gdbreplay.c (socklen_t): Provide a default.
21738 (remote_open): Use socklen_t.
21739 * remote-utils.c (socklen_t): Provide a default.
21740 (remote_open): Use socklen_t.
21741 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21744 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21746 * linux-low.c (linux_read_memory, linux_write_memory)
21747 (linux_read_auxv): Likewise.
21748 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21749 (check_mem_write): Likewise.
21750 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21752 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21753 (registers_from_string, register_data): Likewise.
21754 * server.c (handle_query, main): Likewise.
21755 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21756 (decode_M_packet): Likewise.
21757 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21758 * target.h (struct target_ops): Update read_memory, write_memory,
21760 (read_inferior_memory, write_inferior_memory): Update.
21761 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21762 to unsigned char *.
21763 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21764 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21765 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21766 linux-s390-low.c, linux-sh-low.c: Update for changes in
21767 read_inferior_memory and the_low_target->breakpoint.
21769 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21771 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21772 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21773 * configure.srv: Add powerpc64-*-linux*.
21774 * linux-ppc64-low.c: New file.
21776 2005-05-23 Orjan Friberg <orjanf@axis.com>
21778 * linux-cris-low.c: New file with support for CRIS.
21779 * linux-crisv32-low.c: Ditto for CRISv32.
21780 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21781 (clean): Add reg-cris.c and reg-crisv32.c.
21782 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21783 reg-crisv32.o, and reg-crisv32.c to make rules.
21784 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21785 recognized targets.
21787 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21789 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21790 of sizeof (PTRACE_XFER_TYPE).
21791 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21793 2005-05-12 Orjan Friberg <orjanf@axis.com>
21795 * target.h (struct target_ops): Add insert_watchpoint,
21796 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21797 pointers for hardware watchpoint support.
21798 * linux-low.h (struct linux_target_ops): Ditto.
21799 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21800 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21801 to linux_target_ops.
21802 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21804 * server.c (main): Recognize 'Z' and 'z' packets.
21806 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21808 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21809 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21810 (the_low_target): Add new members.
21812 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21814 * proc-service.c (ps_lgetregs): Search all_processes instead of
21817 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21819 * server.c (start_inferior): Change return type to int.
21820 (attach_inferior): Change sigptr to int *.
21821 (handle_v_cont, handle_v_requests): Change signal to int *.
21822 (main): Change signal to int.
21824 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21826 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21827 * configure.srv: Add m32r*-*-linux*.
21828 * linux-m32r-low.c: New file.
21830 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21832 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21834 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21836 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21837 Take unsigned long arguments for PIDs.
21838 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21839 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21840 (wait_for_sigstop, linux_resume_one_process)
21841 (regsets_fetch_inferior_registers, linux_send_signal)
21842 (linux_read_auxv): Likewise. Update the types of variables holding
21843 PIDs. Update format string specifiers.
21844 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21845 * remote-utils.c (prepare_resume_reply): Likewise.
21846 * server.c (cont_thread, general_thread, step_thread)
21847 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21849 (handle_query): Update format specifiers.
21850 (handle_v_cont, main): Use strtoul for thread IDs.
21851 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21852 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21853 (general_thread, step_thread, thread_from_wait)
21854 (old_thread_from_wait): Update.
21855 * target.h (struct thread_resume): Use unsigned long for THREAD.
21856 (struct target_ops): Use unsigned long for arguments to attach and
21859 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21861 * acinclude.m4: Include bfd/bfd.m4 directly.
21862 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21863 <agriffis@toolchain.org>.
21864 * aclocal.m4, configure: Regenerated.
21866 2005-01-07 Andrew Cagney <cagney@gnu.org>
21868 * configure.ac: Rename configure.in, require autoconf 2.59.
21869 * configure: Re-generate.
21871 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21873 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21874 LIBS when finished.
21875 * aclocal.m4: Regenerated.
21876 * configure: Regenerated.
21878 2004-11-21 Andreas Schwab <schwab@suse.de>
21880 * linux-m68k-low.c (m68k_num_gregs): Define.
21881 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
21882 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
21883 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
21884 (m68k_breakpoint_at): New. Add to the_low_target.
21886 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
21887 srv_linux_thread_db to yes.
21889 2004-10-20 Joel Brobecker <brobecker@gnat.com>
21891 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
21892 (ARCH_SET_FS): Likewise.
21893 (ARCH_GET_FS): Likewise.
21894 (ARCH_GET_GS): Likewise.
21896 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21898 * linux-i386-low.c (ps_get_thread_area): New.
21899 * linux-x86-64-low.c (ps_get_thread_area): New.
21900 * linux-low.c: Include <sys/syscall.h>.
21901 (linux_kill_one_process): Don't kill the first thread here.
21902 (linux_kill): Kill the first thread here.
21903 (kill_lwp): New function.
21904 (send_sigstop, linux_send_signal): Use it.
21905 * proc-service.c: Clean up #ifdefs.
21906 (fpregset_info): Delete.
21907 (ps_lgetregs): Update and enable implementation.
21908 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
21910 * remote-utils.c (struct sym_cache, symbol_cache): New.
21911 (input_interrupt): Print a clearer message.
21912 (async_io_enabled): New variable.
21913 (enable_async_io, disable_async_io): Use it. Update comments.
21914 (look_up_one_symbol): Use the symbol cache.
21915 * thread-db.c (thread_db_look_up_symbols): New function.
21916 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
21918 2004-10-16 Daniel Jacobowitz <dan@debian.org>
21920 * configure.in: Test for -rdynamic.
21921 * configure: Regenerated.
21922 * Makefile (INTERNAL_LDFLAGS): New.
21923 (gdbserver, gdbreplay): Use it.
21925 2004-09-02 Andrew Cagney <cagney@gnu.org>
21927 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
21929 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
21931 * linux-low.c (linux_wait): Clear all_processes list also.
21933 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21935 * linux-low.c: Include <errno.h>. Remove extern declaration of
21938 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
21940 * gdbreplay.c, server.h, utils.c: Update copyright years.
21942 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21944 * server.c (main): Print child status or termination signal from
21945 variable 'signal', not 'sig'.
21947 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
21949 * linux-low.c (linux_read_memory): Change return type to
21950 int. Check for and return error from ptrace().
21951 * target.c (read_inferior_memory): Change return type to int. Pass
21952 back return status from the_target->read_memory().
21953 * target.h (struct target_ops): Adapt *read_memory() prototype.
21955 (read_inferior_memory): Adapt prototype.
21956 * server.c (main): Return an error packet if
21957 read_inferior_memory() returns an error.
21959 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
21961 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
21962 Unify with other clean targets.
21964 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21966 * server.c (handle_v_cont): Call set_desired_inferior.
21968 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21970 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
21972 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21974 * linux-low.c (linux_wait): Unblock async I/O.
21975 (linux_resume): Block and enable async I/O.
21976 * remote-utils.c (block_async_io, unblock_async_io): New functions.
21977 * server.h (block_async_io, unblock_async_io): Add prototypes.
21979 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21981 * remote-utils.c (remote_open): Print a status notice after
21982 opening a TCP port.
21983 * server.c (attach_inferior): Print a status notice after
21986 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
21988 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
21990 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
21992 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
21994 * server.c, target.h: Update copyright years.
21996 2004-02-25 Roland McGrath <roland@redhat.com>
21998 * target.h (struct target_ops): New member `read_auxv'.
21999 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22000 * linux-low.c (linux_read_auxv): New function.
22001 (linux_target_ops): Initialize `read_auxv' member to that.
22003 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22005 Committed by Jim Blandy <jimb@redhat.com>.
22007 * linux-s390-low.c (s390_num_regs): Update.
22008 (s390_regmap): Remove control registers. Use __s390x__ predefine
22009 instead of GPR_SIZE to distiguish s390 and s390x targets.
22011 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22013 * linux-low.c: Update copyright year.
22014 (check_removed_breakpoint): Clear pending_is_breakpoint.
22015 (linux_set_resume_request, linux_queue_one_thread)
22016 (resume_status_pending_p): New functions.
22017 (linux_continue_one_thread): Use process->resume.
22018 (linux_resume): Only resume threads if there are no pending events.
22019 * linux-low.h (struct process_info): Add resume request
22022 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22024 * regcache.c (new_register_cache): Clear the allocated register
22025 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22027 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22029 * linux-low.c (linux_resume): Take a struct thread_resume *
22031 (linux_wait): Update call.
22032 (resume_ptr): New static variable.
22033 (linux_continue_one_thread): Renamed from
22034 linux_continue_one_process. Use resume_ptr.
22035 (linux_resume): Use linux_continue_one_thread.
22036 * server.c (handle_v_cont, handle_v_requests): New functions.
22037 (myresume): New function.
22038 (main): Handle 'v' case.
22039 * target.h (struct thread_resume): New type.
22040 (struct target_ops): Change argument of "resume" to struct
22042 (myresume): Delete macro.
22044 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22046 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22047 (uninstall): Support DESTDIR.
22049 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22051 * configure.srv: Add xscale*linux copy of arm*linux entry.
22053 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22055 * linux-arm-low.c (arm_reinsert_addr): New function.
22056 (the_low_target): Add arm_reinsert_addr.
22058 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22060 * mem-break.c: Remove whitespace at end of file.
22062 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22064 * configure.in: Check whether we need to prototype strerror.
22065 * server.h: Optionally prototype strerror.
22066 * gdbreplay.c (perror_with_name): Use strerror.
22067 * linux-low.c (linux_attach_lwp): Use strerror.
22068 * utils.c (perror_with_name): Use strerror.
22069 * config.in, configure: Regenerated.
22071 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22073 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22074 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22076 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22078 * Makefile.in (SFILES): Update.
22079 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22080 low-sun3.c: Remove files.
22082 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22084 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22085 (linux_detach_one_process, linux_detach): New functions.
22086 (linux_target_ops): Add linux_detach.
22087 * server.c (main): Handle 'D' packet.
22088 * target.h (struct target_ops): Add "detach" member.
22089 (detach_inferior): Define.
22091 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22093 From Kelley Cook <kelleycook@wideopenwest.com>:
22094 * configure.srv: Accept i[34567]86 variants.
22096 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22098 * linux-low.c (linux_wait_for_event): Correct comment typos.
22099 (linux_resume_one_process): Call check_removed_breakpoint.
22100 (linux_send_signal): New function.
22101 (linux_target_ops): Add linux_send_signal.
22102 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22104 * target.h (struct target_ops): Add send_signal.
22106 2003-05-29 Jim Blandy <jimb@redhat.com>
22108 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22109 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22110 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22111 away part of the register's value.
22113 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22115 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22116 (linux_wait_for_event, linux_init_signals): Likewise.
22118 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22120 * configure.in: Check for stdlib.h.
22121 * configure: Regenerated.
22122 * config.in: Regenerated.
22124 2003-01-04 Andreas Schwab <schwab@suse.de>
22126 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22128 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22130 * Makefile.in: Remove obsolete code.
22132 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22134 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22135 defined(PT_FPR0_HI).
22137 2002-11-17 Stuart Hughes <seh@zee2.com>
22139 * linux-arm-low.c (arm_num_regs): Increase.
22140 (arm_regmap): Include status register.
22142 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22144 * linux-low.c (register_addr): Remove incorrect -1 check.
22146 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22148 * linux-low.c (linux_create_inferior): Call setpgid. Return
22150 (unstopped_p, linux_signal_pid): Remove.
22151 (linux_target_ops): Remove linux_signal_pid.
22152 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22153 global instead of target method.
22154 * target.h (struct target_ops): Remove signal_pid. Update comment
22155 for create_inferior.
22156 * server.c (signal_pid): New variable.
22157 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22158 gdbserver. Set the child to be the foreground process group.
22159 (attach_inferior): Set signal_pid.
22161 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22163 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22165 2002-08-20 Jim Blandy <jimb@redhat.com>
22167 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22170 2002-08-01 Andrew Cagney <cagney@redhat.com>
22172 * Makefile.in: Make chill references obsolete.
22174 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22176 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22177 * configure: Regenerate.
22178 * config.in: Regenerate.
22180 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22182 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22183 (perror_with_name, remote_close, remote_open, expect, play): Static.
22185 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22187 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22188 byte offsets instead of an array of indexes.
22189 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22191 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22193 * regcache.c: Add comment.
22195 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22197 * thread-db.c: New file.
22198 * proc-service.c: New file.
22199 * acinclude.m4: New file.
22200 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22201 proc-service.o, and thread-db.o.
22202 (linux-low.o): Add USE_THREAD_DB.
22203 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22204 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22205 * aclocal.m4: Regenerated.
22206 * config.in: Regenerated.
22207 * configure: Regenerated.
22208 * configure.in: Check for proc_service.h, sys/procfs.h,
22209 thread_db.h, and linux/elf.h headrs.
22210 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22211 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22212 Check for -lthread_db and thread support.
22213 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22214 PowerPC, and SuperH.
22215 * i387-fp.c: Constify arguments.
22216 * i387-fp.h: Likewise.
22217 * inferiors.c: (struct thread_info): Renamed from
22218 `struct inferior_info'. Remove PID member. Use generic inferior
22219 list header. All uses updated.
22220 (inferiors, signal_pid): Removed.
22221 (all_threads): New variable.
22222 (get_thread): Define.
22223 (add_inferior_to_list): New function.
22224 (for_each_inferior): New function.
22225 (change_inferior_id): New function.
22226 (add_inferior): Removed.
22227 (remove_inferior): New function.
22228 (add_thread): New function.
22229 (free_one_thread): New function.
22230 (remove_thread): New function.
22231 (clear_inferiors): Use for_each_inferior and free_one_thread.
22232 (find_inferior): New function.
22233 (find_inferior_id): New function.
22234 (inferior_target_data): Update argument type.
22235 (set_inferior_target_data): Likewise.
22236 (inferior_regcache_data): Likewise.
22237 (set_inferior_regcache_data): Likewise.
22238 * linux-low.c (linux_bp_reinsert): Remove.
22239 (all_processes, stopping_threads, using_thrads)
22240 (struct pending_signals, debug_threads, pid_of): New.
22241 (inferior_pid): Replace with macro.
22242 (struct inferior_linux_data): Remove.
22243 (get_stop_pc, add_process): New functions.
22244 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22245 Use add_process and add_thread.
22246 (linux_attach_lwp): New function, based on old linux_attach. Use
22247 add_process and add_thread. Set stop_expected for new threads.
22248 (linux_attach): New function.
22249 (linux_kill_one_process): New function.
22250 (linux_kill): Kill all LWPs.
22251 (linux_thread_alive): Use find_inferior_id.
22252 (check_removed_breakpoints, status_pending_p): New functions.
22253 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22254 Update. Use WNOHANG. Wait for cloned processes also. Update process
22255 struct for the found process.
22256 (linux_wait_for_event): New function.
22257 (linux_wait): Use it. Support LWPs.
22258 (send_sigstop, wait_for_sigstop, stop_all_processes)
22259 (linux_resume_one_process, linux_continue_one_process): New functions.
22260 (linux_resume): Support LWPs.
22261 (REGISTER_RAW_SIZE): Remove.
22262 (fetch_register): Use register_size instead. Call supply_register.
22263 (usr_store_inferior_registers): Likewise. Call collect_register.
22264 Fix recursive case.
22265 (regsets_fetch_inferior_registers): Improve error message.
22266 (regsets_store_inferior_registers): Add debugging.
22267 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22268 (unstopped_p, linux_signal_pid): New functions.
22269 (linux_target_ops): Add linux_signal_pid.
22270 (linux_init_signals): New function.
22271 (initialize_low): Call it. Initialize using_threads.
22272 * regcache.c (inferior_regcache_data): Add valid
22274 (get_regcache): Fetch registers lazily. Add fetch argument
22275 and update all callers.
22276 (regcache_invalidate_one, regcache_invalidate): New
22278 (new_register_cache): Renamed from create_register_cache.
22279 Return the new regcache.
22280 (free_register_cache): Change argument to a void *.
22281 (registers_to_string, registers_from_string): Call get_regcache
22282 with fetch flag set.
22283 (register_data): Make static. Pass fetch flag to get_regcache.
22284 (supply_register): Call get_regcache with fetch flag clear.
22285 (collect_register): Call get_regcache with fetch flag set.
22286 (collect_register_as_string): New function.
22287 * regcache.h: Update.
22288 * remote-utils.c (putpkt): Flush after debug output and use
22290 Handle input interrupts while waiting for an ACK.
22291 (input_interrupt): Use signal_pid method.
22292 (getpkt): Flush after debug output and use stderr.
22293 (outreg): Use collect_register_as_string.
22294 (new_thread_notify, dead_thread_notify): New functions.
22295 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22296 and general_thread.
22297 (look_up_one_symbol): Flush after debug output.
22298 * server.c (step_thread, server_waiting): New variables.
22299 (start_inferior): Don't use signal_pid. Update call to mywait.
22300 (attach_inferior): Update call to mywait.
22301 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22302 (main): Don't fetch/store registers explicitly. Use
22303 set_desired_inferior. Support proposed ``Hs'' packet. Update
22305 * server.h: Update.
22306 (struct inferior_list, struct_inferior_list_entry): New.
22307 * target.c (set_desired_inferior): New.
22308 (write_inferior_memory): Constify.
22309 (mywait): New function.
22310 * target.h: Update.
22311 (struct target_ops): New signal_pid method.
22312 (mywait): Removed macro, added prototype.
22314 * linux-low.h (regset_func): Removed.
22315 (regset_fill_func, regset_store_func): New.
22316 (enum regset_type): New.
22317 (struct regset_info): Add type field. Use new operation types.
22318 (struct linux_target_ops): stop_pc renamed to get_pc.
22319 Add decr_pc_after_break and breakpoint_at.
22320 (get_process, get_thread_proess, get_process_thread)
22321 (strut process_info, all_processes, linux_attach_lwp)
22322 (thread_db_init): New.
22324 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22325 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22326 (the_low_target): Add new members.
22327 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22328 (i386_store_fpxregset): Constify.
22329 (target_regsets): Add new kind identifier.
22330 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22331 (i386_set_pc): Add debugging.
22332 (i386_breakpoint_at): New function.
22333 (the_low_target): Add new members.
22334 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22335 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22336 (mips_breakpoint_at): New.
22337 (the_low_target): Add new members.
22338 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22339 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22340 (the_low_target): Add new members.
22341 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22342 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22343 (the_low_target): Add new members.
22344 * linux-x86-64-low.c (target_regsets): Add new kind
22347 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22349 From Martin Pool <mbp@samba.org>:
22350 * server.c (gdbserver_usage): New function.
22353 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22355 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22356 stop_at -> stop_pc.
22358 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22360 * Makefile.in: Remove obsolete code.
22362 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22364 * linux-low.c (regsets_fetch_inferior_registers),
22365 (regsets_store_inferior_registers): Removed cast to int from
22367 * regcache.h: Added declaration of struct inferior_info.
22369 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22371 * inferiors.c (struct inferior_info): Add regcache_data.
22372 (add_inferior): Call create_register_cache.
22373 (clear_inferiors): Call free_register_cache.
22374 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22375 * regcache.c (struct inferior_regcache_data): New.
22376 (registers): Remove.
22377 (get_regcache): New function.
22378 (create_register_cache, free_register_cache): New functions.
22379 (set_register_cache): Don't initialize the register cache here.
22380 (registers_to_string, registers_from_string, register_data): Call
22382 * regcache.h: Add prototypes.
22383 * server.h: Likewise.
22385 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22387 * mem-break.c: New file.
22388 * mem-break.h: New file.
22389 * Makefile.in: Add mem-break.o rule; update server.h
22391 * inferiors.c (struct inferior_info): Add target_data
22393 (clear_inferiors): Free target_data member if set.
22394 (inferior_target_data, set_inferior_target_data): New functions.
22395 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22396 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22397 * linux-low.c (linux_bp_reinsert): New variable.
22398 (struct inferior_linux_data): New.
22399 (linux_create_inferior): Use set_inferior_target_data.
22400 (linux_attach): Likewise. Call add_inferior.
22401 (linux_wait_for_one_inferior): New function.
22402 (linux_wait): Call it.
22403 (linux_write_memory): Add const.
22404 (initialize_low): Call set_breakpoint_data.
22405 * linux-low.h (struct linux_target_ops): Add breakpoint
22407 * server.c (attach_inferior): Remove extra add_inferior
22409 * server.h: Include mem-break.h. Update inferior.c
22411 * target.c (read_inferior_memory)
22412 (write_inferior_memory): New functions.
22413 * target.h (read_inferior_memory)
22414 (write_inferior_memory): Change macros to prototypes.
22415 (struct target_ops): Update comments. Add const to write_memory
22418 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22420 * linux-low.c (usr_store_inferior_registers): Support
22421 registers which are allowed to fail to store.
22422 * linux-low.h (linux_target_ops): Likewise.
22423 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22424 (ppc_cannot_store_register): FPSCR may not be storable.
22426 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22428 * server.h: Include <string.h> if HAVE_STRING_H.
22429 * ChangeLog: Correct paths in last ChangeLog entry.
22431 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22433 * linux-low.h: Remove obsolete prototypes.
22434 (struct linux_target_ops): New.
22435 (extern the_low_target): New.
22436 * linux-low.c (num_regs, regmap): Remove declarations.
22437 (register_addr): Use the_low_target explicitly.
22438 (fetch_register): Likewise.
22439 (usr_fetch_inferior_registers): Likewise.
22440 (usr_store_inferior_registers): Likewise.
22441 * linux-arm-low.c (num_regs): Remove.
22442 (arm_num_regs): Define.
22443 (arm_regmap): Renamed from regmap, made static.
22444 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22446 (arm_cannot_store_register): Renamed from cannot_store_register,
22448 (the_low_target): New.
22449 * linux-i386-low.c (num_regs): Remove.
22450 (i386_num_regs): Define.
22451 (i386_regmap): Renamed from regmap, made static.
22452 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22454 (i386_cannot_store_register): Renamed from cannot_store_register,
22456 (the_low_target): New.
22457 * linux-ia64-low.c (num_regs): Remove.
22458 (ia64_num_regs): Define.
22459 (ia64_regmap): Renamed from regmap, made static.
22460 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22462 (ia64_cannot_store_register): Renamed from cannot_store_register,
22464 (the_low_target): New.
22465 * linux-m68k-low.c (num_regs): Remove.
22466 (m68k_num_regs): Define.
22467 (m68k_regmap): Renamed from regmap, made static.
22468 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22470 (m68k_cannot_store_register): Renamed from cannot_store_register,
22472 (the_low_target): New.
22473 * linux-mips-low.c (num_regs): Remove.
22474 (mips_num_regs): Define.
22475 (mips_regmap): Renamed from regmap, made static.
22476 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22478 (mips_cannot_store_register): Renamed from cannot_store_register,
22480 (the_low_target): New.
22481 * linux-ppc-low.c (num_regs): Remove.
22482 (ppc_num_regs): Define.
22483 (ppc_regmap): Renamed from regmap, made static.
22484 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22486 (ppc_cannot_store_register): Renamed from cannot_store_register,
22488 (the_low_target): New.
22489 * linux-s390-low.c (num_regs): Remove.
22490 (s390_num_regs): Define.
22491 (s390_regmap): Renamed from regmap, made static.
22492 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22494 (s390_cannot_store_register): Renamed from cannot_store_register,
22496 (the_low_target): New.
22497 * linux-sh-low.c (num_regs): Remove.
22498 (sh_num_regs): Define.
22499 (sh_regmap): Renamed from regmap, made static.
22500 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22502 (sh_cannot_store_register): Renamed from cannot_store_register,
22504 (the_low_target): New.
22505 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22506 (the_low_target): New.
22508 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22510 * Makefile.in: Add stamp-h target.
22511 * configure.in: Create stamp-h.
22512 * configure: Regenerated.
22514 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22516 * inferiors.c: New file.
22517 * target.c: New file.
22518 * target.h: New file.
22519 * Makefile.in: Add target.o and inferiors.o. Update
22521 * linux-low.c (inferior_pid): New static variable,
22522 moved from server.c.
22523 (linux_create_inferior): Renamed from create_inferior.
22524 Call add_inferior. Return 0 on success instead of a PID.
22525 (linux_attach): Renamed from myattach.
22526 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22527 (linux_thread_alive): Renamed from mythread_alive.
22528 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22530 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22531 (regsets_store_inferior_registers): Correct error message.
22532 Add missing ``return 0''.
22533 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22534 (linux_store_registers): Renamed from store_inferior_registers.
22535 (linux_read_memory): Renamed from read_inferior_memory.
22536 (linux_write_memory): Renamed from write_inferior_memory.
22537 (linux_target_ops): New structure.
22538 (initialize_low): Call set_target_ops ().
22539 * remote-utils.c (unhexify): New function.
22540 (hexify): New function.
22541 (input_interrupt): Send signals to ``signal_pid''.
22542 * server.c (inferior_pid): Remove.
22543 (start_inferior): Update create_inferior call.
22544 (attach_inferior): Call add_inferior.
22545 (handle_query): New function.
22546 (main): Call handle_query for `q' packets.
22547 * server.h: Include "target.h". Remove obsolete prototypes.
22548 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22550 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22552 * Makefile.in: Add WARN_CFLAGS. Update configury
22554 * configure.in: Check for <string.h>
22555 * configure: Regenerate.
22556 * config.in: Regenerate.
22557 * gdbreplay.c: Include needed system headers.
22558 (remote_open): Remove strchr prototype.
22559 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22560 * regcache.c (supply_register): Change buf argument to const void *.
22561 (supply_register_by_name): Likewise.
22562 (collect_register): Change buf argument to void *.
22563 (collect_register_by_name): Likewise.
22564 * regcache.h: Add missing prototypes.
22565 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22566 * server.c (handle_query): New function.
22567 (attached): New static variable, moved out of main.
22568 (main): Quiet longjmp clobber warnings.
22569 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22570 * utils.c (error): Remove NORETURN.