1 2021-03-24 Luis Machado <luis.machado@linaro.org>
3 * linux-aarch64-low.cc: Include arch/aarch64-mte-linux.h.
5 2021-03-24 Luis Machado <luis.machado@linaro.org>
7 * server.cc (test_memory_tagging_functions): New function.
8 (captured_main): Register test_memory_tagging_functions.
10 2021-03-24 Luis Machado <luis.machado@linaro.org>
12 * remote-utils.cc (decode_m_packet_params): Renamed from ...
13 (decode_m_packet): ... this, which now calls decode_m_packet_params.
14 Make char * param/return const char *.
15 (decode_M_packet): Use decode_m_packet_params and make char * param
17 * remote-utils.h (decode_m_packet_params): New prototype.
18 (decode_m_packet): Constify char pointers.
19 (decode_M_packet): Likewise.
20 * server.cc (create_fetch_memtags_reply)
21 (parse_store_memtags_request): New
23 (handle_general_set): Handle the QMemTags packet.
24 (parse_fetch_memtags_request): New function.
25 (handle_query): Handle the qMemTags packet and advertise memory
27 (captured_main): Initialize memory tagging flag.
28 * server.h (struct client_state): Initialize memory tagging flag.
29 * target.cc (process_stratum_target::supports_memory_tagging)
30 (process_stratum_target::fetch_memtags)
31 (process_stratum_target::store_memtags): New methods.
32 * target.h: Include gdbsupport/byte-vector.h.
33 (class process_stratum_target) <supports_memory_tagging>
34 <fetch_memtags, store_memtags>: New class virtual methods.
35 (target_supports_memory_tagging): Define.
37 2021-03-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
39 * inferiors.h (struct process_info) <all_dlls, dlls_changed>: New
42 (unloaded_dll): Declare an overloaded version that takes a proc
45 (unloaded_dll): Implement the overloaded versions.
46 (clear_dlls): Clear all process' dll lists.
47 (all_dlls, dlls_changed): Remove the global variables.
48 * remote-utils.cc (prepare_resume_reply): Update to consider a dll
50 * server.cc (handle_qxfer_libraries): Ditto.
51 (handle_v_attach): Ditto.
52 (captured_main): Ditto.
54 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
56 * linux-low.cc (linux_process_target::filter_event): Return
58 * linux-low.h (class linux_process_target) <filter_event>:
61 2021-02-12 Tom Tromey <tromey@adacore.com>
63 * gdbreplay.cc (remote_desc): Remove.
64 (remote_desc_in, remote_desc_out): New globals.
65 (remote_close): Update.
66 (remote_open): Handle "-".
67 (remote_open): Update.
68 (logchar): Log to stderr.
69 (expect, play): Update.
71 2021-02-12 Tom Tromey <tromey@adacore.com>
73 * gdbreplay.cc (remote_open): Constify.
75 2021-02-05 Paul E. Murphy <murphyp@linux.ibm.com>
77 * Makefile.in (UNDO_GNULIB_CFLAGS): Disable
78 gnulib free replacement too.
79 * common-defs.h [USE_WIN32API](read, write): Undefine
80 gnulib versions before defining these macros.
82 2021-02-03 Pedro Alves <pedro@palves.net>
84 * linux-low.cc (linux_process_target::complete_ongoing_step_over):
85 Discard step SIGTRAP, unless GDB wanted the thread to step.
87 2021-02-03 Pedro Alves <pedro@palves.net>
89 * server.cc (discard_queued_stop_replies): Don't ever discard the
90 notification at the head of the list.
92 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
94 * ax.cc (bytecode_address_table): Make static.
95 * debug.cc (debug_file): Make static.
96 * linux-low.cc (stopping_threads): Make static.
97 (step_over_bkpt): Make static.
98 * linux-x86-low.cc (amd64_emit_ops, i386_emit_ops): Make static.
99 * tracepoint.cc (stop_tracing_bkpt, flush_trace_buffer_bkpt,
100 alloced_trace_state_variables, trace_buffer_ctrl,
101 tracing_start_time, tracing_stop_time, tracing_user_name,
102 tracing_notes, tracing_stop_note): Make static.
104 2021-01-20 Tom de Vries <tdevries@suse.de>
106 * linux-x86-low.cc (collect_register_i386): New function.
107 (x86_fill_gregset): Remove memset. Use collect_register_i386.
109 2021-01-07 Tom de Vries <tdevries@suse.de>
111 * Makefile.in (LIBIBERTY_NORMAL, LIBIBERTY_NOASAN, LIBIBERTY_PIC):
112 (LIBIBERTY_FOR_SHLIB): New var.
113 (LIBIBERTY): Set using $(LIBIBERTY_NORMAL).
114 (IPA_LIB): Use LIBIBERTY_FOR_SHLIB instead of LIBIBERTY in target rule.
116 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
118 * debug.cc (debug_print_depth): New.
120 2021-01-01 Joel Brobecker <brobecker@adacore.com>
122 * server.cc (gdbserver_version): Update copyright year.
123 * gdbreplay.cc (gdbreplay_version): Likewise.
125 2020-12-16 Luis Machado <luis.machado@linaro.org>
127 * linux-aarch64-low.cc (address_significant): New function.
128 (aarch64_target::low_stopped_data_address): Handle the TBI.
130 2020-12-11 Andrew Burgess <andrew.burgess@embecosm.com>
132 * Makefile.in (IPA_LIB): Include libiberty library.
134 2020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
136 * server.cc (gdbserver_usage): Add missing option to usage text.
137 (gdbserver_show_disableable): Likewise.
139 2020-11-02 Simon Marchi <simon.marchi@efficios.com>
141 * ax.cc: Fix indentation.
142 * dll.cc: Fix indentation.
143 * inferiors.h: Fix indentation.
144 * linux-low.cc: Fix indentation.
145 * linux-nios2-low.cc: Fix indentation.
146 * linux-ppc-ipa.cc: Fix indentation.
147 * linux-ppc-low.cc: Fix indentation.
148 * linux-x86-low.cc: Fix indentation.
149 * linux-xtensa-low.cc: Fix indentation.
150 * regcache.cc: Fix indentation.
151 * server.cc: Fix indentation.
152 * tracepoint.cc: Fix indentation.
154 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
156 * acinclude.m4: Replace AC_TRY_COMPILE with AC_COMPILE_IFELSE +
158 * configure: Re-generate.
160 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
162 * configure: Re-generate.
164 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
166 * configure: Re-generate.
168 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
170 * configure: Re-generate.
172 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
174 * configure: Re-generate.
176 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
178 * configure.ac: Modernize.
179 * configure: Re-generate.
181 2020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
183 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
185 * configure: Re-generate.
187 2020-10-26 Pedro Alves <pedro@palves.net>
189 * netbsd-low.cc (netbsd_waitpid, netbsd_process_target::kill)
190 (netbsd_qxfer_libraries_svr4): Use gdb::handle_eintr without
193 2020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
195 * acinclude.m4: Update ptrace.m4 path.
197 2020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
199 * config.in: Re-generate.
200 * configure: Re-generate.
202 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
204 * server.cc (handle_general_set): Don't use sprintf with
205 argument overlapping buffer.
207 2020-10-20 Tom Tromey <tromey@adacore.com>
210 * inferiors.cc (remove_thread): Clear current_thread before
213 2020-10-13 Kamil Rytarowski <n54@gmx.com>x
215 * netbsd-low.cc (netbsd_tdesc): Remove.
216 (netbsd_add_process): Likewise.
217 (netbsd_process_target::create_inferior): Update.
219 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
221 * linux-arc-low.cc (arc_linux_read_description): Release the
222 unique_ptr returned from arc_create_target_description.
224 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
226 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
227 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
229 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
231 * linux-low.cc (linux_process_target::handle_extended_wait):
232 Release the unique_ptr returned from allocate_target_description.
233 * linux-riscv-low.cc (riscv_target::low_arch_setup): Likewise.
234 * linux-x86-low.cc (tdesc_amd64_linux_no_xml): Change type.
235 (tdesc_i386_linux_no_xml): Change type.
236 (x86_linux_read_description): Borrow pointer from unique_ptr
238 (x86_target::get_ipa_tdesc_idx): Likewise.
239 (initialize_low_arch): Likewise.
240 * tdesc.cc (allocate_target_description): Update return type.
242 2020-10-07 Tom Tromey <tromey@adacore.com>
244 * server.cc (handle_search_memory): Remove dead code.
246 2020-10-07 Tom Tromey <tromey@adacore.com>
248 * server.cc (handle_search_memory_1): Remove.
249 (handle_search_memory): Use simple_search_memory.
251 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
253 * Makefile.in (COMPILE): Add CXXFLAGS.
254 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
255 (gdbserver$(EXEEXT)): Add CXXFLAGS.
256 (gdbreplay$(EXEEXT)): Add CXXFLAGS.
257 ($(IPA_LIB)): Add CXXFLAGS.
258 (IPAGENT_COMPILE): Add CXXFLAGS.
260 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
262 * configure.srv: Support ARC architecture.
263 * Makefile.in: Add linux-arc-low.cc and arch/arc.o.
264 * linux-arc-low.cc: New file.
266 2020-10-07 Kamil Rytarowski <n54@gmx.com>
268 * netbsd-low.cc (get_dynamic, get_r_debug, read_one_ptr)
269 (netbsd_qxfer_libraries_svr4): Remove "target" argument and update.
270 (netbsd_process_target::qxfer_libraries_svr4): Update.
272 2020-10-07 Kamil Rytarowski <n54@gmx.com>
274 * netbsd-low.cc: Fix whitespace formatting.
275 * netbsd-amd64-low.cc: Likewise.
277 2020-10-07 Kamil Rytarowski <n54@gmx.com>
279 * netbsd-low.cc (netbsd_process_target::read_memory)
280 (netbsd_process_target::write_memory): Update.
282 2020-10-07 Kamil Rytarowski <n54@gmx.com>
284 * netbsd-aarch64-low.cc: Add.
285 * Makefile.in (SFILES): Register "netbsd-aarch64-low.c".
286 * configure.srv: Add aarch64*-*-netbsd*.
288 2020-10-06 Shahab Vahedi <shahab@synopsys.com>
290 * regcache.cc (register_data): Remove unused "fetch" argument.
292 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
294 * server.cc (handle_monitor_command): Handle "set
296 (captured_main): Handle "--debug-event-loop".
297 (monitor_show_help): Mention new setting.
298 (gdbserver_usage): Mention new flag.
300 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
302 * linux-low.cc (linux_process_target::async): Pass name to
304 * remote-utils.cc (handle_accept_event): Likewise.
305 (remote_open): Likewise.
307 2020-10-01 Kamil Rytarowski <n54@gmx.com>
309 * netbsd-i386-low.cc: Add.
310 * Makefile.in (SFILES): Register "netbsd-i386-low.c".
311 * configure.srv: Add i[34567]86-*-netbsd*.
313 2020-10-01 Kamil Rytarowski <n54@gmx.com>
315 * netbsd-amd64-low.cc (netbsd_x86_64_arch_setup): Remove.
316 (netbsd_target_regsets): Now const.
317 (the_low_target): Remove.
318 (class netbsd_amd64_target, the_netbsd_amd64_target)
319 (the_netbsd_target): Add.
320 * netbsd-low.cc (netbsd_process_target::post_create_inferior): Call
322 (netbsd_process_target::fetch_registers)
323 (netbsd_process_target::store_registers, initialize_low): Update.
324 (the_netbsd_target): Remove.
325 * netbsd-low.h (netbsd_target_regsets, netbsd_target_ops)
326 (the_low_target, netbsd_tdesc): Remove.
327 (netbsd_process_target::get_regs_info)
328 (netbsd_process_target::low_arch_setup): Add.
330 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
332 * win32-low.cc: Remove local wow64_process variable.
333 * win32-low.h: Remove local wow64_process variable.
335 2020-09-18 Tom Tromey <tromey@adacore.com>
337 * netbsd-low.h (class netbsd_process_target) <wait>: Update.
338 * netbsd-low.cc (netbsd_waitpid, netbsd_wait)
339 (netbsd_process_target::wait): Change type of target_options.
340 * win32-low.h (class win32_process_target) <wait>: Update.
341 * win32-low.cc (win32_process_target::wait): Update.
342 * target.h (class process_stratum_target) <wait>: Update.
344 * target.cc (mywait, target_wait): Change type of "options".
345 * linux-low.h (class linux_process_target) <wait, wait_1>:
347 * linux-low.cc (linux_process_target::wait)
348 (linux_process_target::wait_1): Update.
350 2020-09-15 Tom Tromey <tromey@adacore.com>
352 * linux-x86-low.cc (xmltarget_i386_linux_no_xml)
353 (xmltarget_amd64_linux_no_xml): Now arrays.
355 2020-09-14 Tom Tromey <tromey@adacore.com>
357 * tracepoint.cc (eval_result_names): Now const.
358 * ax.cc (gdb_agent_op_names): Now const.
360 2020-09-10 Kamil Rytarowski <n54@gmx.com>
362 * netbsd-low.cc: Add.
363 * netbsd-low.h: Likewise.
364 * netbsd-amd64-low.cc: Likewise.
365 * Makefile.in (SFILES): Register "netbsd-low.cc", "netbsd-low.h",
366 "netbsd-amd64-low.cc".
367 * configure.srv: Add x86_64-*-netbsd*.
369 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
371 * server.cc (captured_main): Accept multiple `--selftest=`
372 options. Pass all `--selftest=` arguments to run_tests.
374 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
376 * configure, config.in: Regenerate.
378 2020-07-26 Eli Zaretskii <eliz@gnu.org>
380 * configure.ac (AC_CHECK_HEADERS): Add ws2tcpip.h.
381 When checking whether socklen_t type is defined, use ws2tcpip.h if
382 it is available and sys/socket.h isn't.
383 * configure: Regenerate.
384 * config.in: Regenerate.
386 2020-07-22 Pedro Alves <pedro@palves.net>
388 * inferiors.cc (switch_to_process): New, moved here from
389 thread-db.cc, and made extern.
390 * inferiors.h (switch_to_process): Declare.
391 * server.cc: Include "gdbsupport/scoped_restore.h".
392 (handle_qxfer_threads_proper): Now returns bool. Prepare to
393 access memory around target calls.
394 (handle_qxfer_threads): Handle errors.
395 * thread-db.cc (switch_to_process): Moved to inferiors.cc.
397 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
399 * linux-low.cc (stopped_pids): Make static.
401 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
403 * tdesc.cc (allocate_target_description): Add header comment.
404 (target_desc_deleter::operator()): New function.
405 * tdesc.h (struct target_desc): Declare as final.
407 2020-07-13 Simon Marchi <simon.marchi@polymtl.ca>
409 * server.cc (handle_query): Use std::vector of
410 std::string for `qsupported` vector. Use separate
412 * target.h (class process_stratum_target) <process_qsupported>:
413 Change parameters to array_view of const char *.
414 (target_process_qsupported): Remove `count` parameter.
415 * target.cc (process_stratum_target::process_qsupported): Change
416 parameters to array_view of const char *.
417 * linux-x86-low.cc (class x86_target) <process_qsupported>:
420 2020-06-29 Tom de Vries <tdevries@suse.de>
422 * ax.h: Include gdbsupport/debug_agent.h.
424 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
426 * tdesc.cc (struct tdesc_compatible_info): New struct.
427 (tdesc_compatible_info_list): New function.
428 (tdesc_compatible_info_arch_name): New function.
430 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
432 Use std::list to stop pending signal instead of manually-created
434 * linux-low.h: Include <list>.
435 (struct pending_signal): Move here from linux-low.cc.
436 (struct lwp_info) <pending_signals>
437 <pending_signals_to_report>: Update the type.
438 * linux-low.cc (struct pending_signals): Remove.
439 (linux_process_target::delete_lwp)
440 (linux_process_target::add_lwp)
441 (enqueue_one_deferred_signal)
442 (dequeue_one_deferred_signal)
443 (enqueue_pending_signal)
444 (linux_process_target::resume_one_lwp_throw)
445 (linux_process_target::thread_needs_step_over)
446 (linux_process_target::resume_one_thread)
447 (linux_process_target::proceed_one_lwp): Update the use of pending
450 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
452 * Makefile.in (%-generated.cc: ../gdb/regformats/arm/%.dat):
455 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
457 * Makefile.in (SFILES): Remove win32-arm-low.cc, wincecompat.cc.
458 * configure.srv: Remove mingw32ce cases.
459 * server.h, win32-low.cc: Remove __MINGW32CE__-guarded code.
460 * win32-low.h (to_back_slashes): Remove.
461 * win32-arm-low.cc, wincecompat.cc, wincecompat.h: Remove.
463 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
465 * Makefile.in (SFILES): linux-tile-low.cc.
466 * configure.srv: Remove tilegx case.
467 * linux-tile-low.cc: Remove.
469 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
471 * Makefile.in (SFILES): Remove linux-m32r-low.cc.
472 * configure.srv: Remove m32r case.
473 * linux-m32r-low.cc: Remove.
475 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
477 * Makefile.in (SFILES): Remove linux-cris-low.c.
478 * configure.srv: Remove cris cases.
479 * linux-cris-low.cc, linux-crisv32-low.cc: Remove.
481 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
483 * Makefile.in (SFILES): Remove linux-bfin-low.c.
484 * configure.srv: Remove bfin case.
485 * linux-bfin-low.cc: Remove.
486 * linux-low.cc: Remove BFIN-conditional code.
488 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
490 * configure: Re-generate.
491 * configure.ac: Remove srv_qnx test.
492 * configure.srv: Remove nto case.
493 * nto-low.cc, nto-low.h, nto-x86-low.cc: Remove.
494 * remote-utils.c: Remove __QNX__-guarded code.
496 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
498 * configure: Re-generate.
499 * configure.ac: Remove srv_lynxos test.
500 * configure.srv: Remove lynxos cases.
501 * lynx-i386-low.cc, lynx-low.cc, lynx-low.h, lynx-ppc-low.c:
504 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
506 * README: Fix a few outdated or incoherent things.
508 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
510 * win32-low.cc (do_initial_child_stuff): Set open_process_used.
511 (win32_clear_inferiors): Use open_process_used.
512 (get_child_debug_event): Likewise.
514 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
517 * linux-low.cc (linux_process_target::create_inferior),
518 lynx-low.cc (lynx_process_target::create_inferior),
519 win32-low.cc (win32_process_target::create_inferior): Use
520 construct_inferior_arguments instead of stringify_argv
521 to get string representation which properly escapes
523 * server.cc (handle_v_run): Just pass empty program arg
524 as such, since any further processing is now handled via
525 construct_inferior_arguments.
527 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
529 * nto-low.cc (nto_process_target::create_inferior): Pass
530 argv to spawnp function as char **.
532 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
534 * server.cc (captured_main), (handle_v_run): No longer
535 insert extra NULL element to args vector.
537 2020-05-23 Pedro Alves <palves@redhat.com>
539 * gdb-safe-ctype.h: New.
541 2020-05-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
543 * linux-ia64-low.cc (ia64_target::sw_breakpoint_from_kind):
544 Fix incorrect 'gdb_assert_no_reached' to 'gdb_assert_not_reached'.
545 (ia64_target::low_breakpoint_at): Ditto.
547 2020-05-15 Hannes Domani <ssbssa@yahoo.de>
549 * win32-i386-low.cc (i386_supports_z_point_type): Handle
550 Z_PACKET_HW_BP z_type.
551 (i386_insert_point): Handle raw_bkpt_type type.
552 (i386_remove_point): Likewise.
554 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
556 * configure.srv <x86_64-*-mingw*, x86_64-*-cygwin*> (srv_tgtobj):
558 * win32-arm-low.cc (arm_num_regs): New function.
559 (struct win32_target_ops): Use arm_num_regs.
560 * win32-i386-low.cc (win32_get_current_dr): Adapt for WOW64
562 (i386_get_thread_context): Likewise.
563 (i386_prepare_to_resume): Likewise.
564 (i386_thread_added): Likewise.
565 (i386_single_step): Likewise.
566 (i386_fetch_inferior_register): Likewise.
567 (i386_store_inferior_register): Likewise.
568 (i386_arch_setup): Likewise.
569 (i386_win32_num_regs): New function.
570 (struct win32_target_ops): Use i386_win32_num_regs.
571 * win32-low.cc (win32_get_thread_context): Adapt for WOW64
573 (win32_require_context): Likewise.
574 (child_add_thread): Likewise.
575 (do_initial_child_stuff): Likewise.
576 (continue_one_thread): Likewise.
577 (win32_process_target::resume): Likewise.
578 (load_psapi): Likewise.
579 (win32_add_all_dlls): Likewise.
580 (maybe_adjust_pc): Likewise.
581 (win32_process_target::qxfer_siginfo): Likewise.
582 (initialize_low): Likewise.
583 * win32-low.h (struct win32_target_ops): Change num_regs to
586 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
588 * configure.ac: Remove check for fs_base/gs_base in
590 * configure: Re-generate.
591 * config.in: Re-generate.
592 * linux-x86-low.cc (x86_64_regmap, x86_fill_gregset,
593 x86_store_gregset): Adjust.
595 2020-04-22 Hannes Domani <ssbssa@yahoo.de>
597 * server.cc (handle_search_memory_1): Fix gdb_read_memory return value
600 2020-04-16 Tom Tromey <tromey@adacore.com>
602 * win32-low.cc (windows_nat::handle_access_violation): New
605 2020-04-15 Simon Marchi <simon.marchi@polymtl.ca>
607 * win32-low.cc (get_child_debug_event): Fix format string warning.
609 2020-04-13 Tom Tromey <tom@tromey.com>
611 * server.h (gdb_fildes_t): Remove typedef.
612 * remote-utils.c (remote_desc, list_desc): Now int.
613 (INVALID_DESCRIPTOR): Remove.
614 (gdb_connected, remote_close)
615 (check_remote_input_interrupt_request): Update.
616 * utils.h (pfildes): Don't declare.
617 * utils.c (pfildes): Remove.
619 2020-04-13 Tom Tromey <tom@tromey.com>
621 * server.h (handle_serial_event, handle_target_event): Update.
622 * server.c: Don't call initialize_event_loop.
623 (keep_processing_events): New global.
624 (handle_serial_event): Return void. Set keep_processing_events.
625 (handle_target_event): Return void.
626 (start_event_loop): Move from event-loop.c. Rewrite.
627 * remote-utils.c (handle_accept_event): Return void.
628 (reset_readchar): Use delete_timer.
629 (process_remaining): Return void.
630 (reschedule): Use create_timer.
631 * event-loop.h: Remove.
632 * event-loop.cc: Remove.
633 * Makefile.in (OBS): Use gdbsupport/event-loop.o, not event-loop.o.
635 2020-04-13 Tom Tromey <tom@tromey.com>
637 * server.c (invoke_async_signal_handlers)
638 (check_async_event_handlers, flush_streams, gdb_select): New
641 2020-04-13 Tom Tromey <tom@tromey.com>
643 * configure: Rebuild.
644 * config.in: Rebuild.
646 2020-04-08 Tom Tromey <tromey@adacore.com>
649 * win32-low.c (child_continue): Call matching_pending_stop.
650 (get_child_debug_event): Call fetch_pending_stop. Push pending
653 2020-04-08 Tom Tromey <tromey@adacore.com>
655 * win32-low.h (win32_process_target::stopped_by_sw_breakpoint)
656 (win32_process_target::supports_stopped_by_sw_breakpoint):
658 * win32-low.c (win32_supports_z_point_type): Always handle
660 (win32_insert_point): Call insert_memory_breakpoint when needed.
661 (win32_remove_point): Call remove_memory_breakpoint when needed.
662 (win32_process_target::stopped_by_sw_breakpoint)
663 (win32_process_target::supports_stopped_by_sw_breakpoint): New
665 (win32_target_ops): Update.
666 (maybe_adjust_pc): New function.
667 (win32_wait): Call maybe_adjust_pc.
669 2020-04-08 Tom Tromey <tromey@adacore.com>
671 * win32-low.h (struct win32_target_ops) <decr_pc_after_break>: New
673 * win32-i386-low.c (the_low_target): Update.
674 * win32-arm-low.c (the_low_target): Update.
676 2020-04-08 Tom Tromey <tromey@adacore.com>
678 * win32-low.h (win32_process_target::read_pc)
679 (win32_process_target::write_pc): Declare.
680 * win32-low.c (win32_process_target::read_pc)
681 (win32_process_target::write_pc): New methods.
682 * win32-i386-low.c (i386_win32_get_pc, i386_win32_set_pc): New
684 (the_low_target): Update.
685 * win32-arm-low.c (arm_win32_get_pc, arm_win32_set_pc): New
687 (the_low_target): Update.
689 2020-04-08 Tom Tromey <tromey@adacore.com>
691 * win32-low.c (win32_kill, get_child_debug_event): Use
692 wait_for_debug_event.
694 2020-04-08 Tom Tromey <tromey@adacore.com>
696 * win32-low.c (child_continue): Call continue_last_debug_event.
698 2020-04-08 Tom Tromey <tromey@adacore.com>
700 * win32-low.c (handle_exception): Remove.
701 (windows_nat::handle_ms_vc_exception): New function.
702 (get_child_debug_event): Add "continue_status" parameter.
704 (win32_wait): Update.
706 2020-04-08 Tom Tromey <tromey@adacore.com>
708 * win32-low.c (windows_nat::handle_load_dll): Rename from
709 handle_load_dll. No longer static.
710 (windows_nat::handle_unload_dll): Rename from handle_unload_dll.
713 2020-04-08 Tom Tromey <tromey@adacore.com>
715 * win32-low.c (handle_output_debug_string): Add parameter. Change
717 (win32_kill, get_child_debug_event): Update.
719 2020-04-08 Tom Tromey <tromey@adacore.com>
721 * win32-low.c (current_process_handle, current_process_id)
722 (main_thread_id, last_sig, current_event, siginfo_er): Move to
725 2020-04-08 Tom Tromey <tromey@adacore.com>
727 * win32-low.c (get_image_name): Remove.
728 (handle_load_dll): Update.
730 2020-04-08 Tom Tromey <tromey@adacore.com>
732 * win32-low.c (windows_nat::thread_rec): Rename from thread_rec.
733 No longer static. Change parameters.
734 (child_add_thread, child_fetch_inferior_registers)
735 (child_store_inferior_registers, win32_resume)
736 (win32_get_tib_address): Update.
738 2020-04-08 Tom Tromey <tromey@adacore.com>
740 * win32-low.h (struct win32_target_ops): Use qualified names where
742 * win32-i386-low.c: Add "using namespace".
743 * win32-low.c: Add "using namespace".
744 * win32-arm-low.c: Add "using namespace".
746 2020-04-08 Tom Tromey <tromey@adacore.com>
748 * win32-low.c (delete_thread_info): Don't call CloseHandle.
750 2020-04-08 Tom Tromey <tromey@adacore.com>
752 * win32-low.c (win32_require_context, suspend_one_thread): Use
753 windows_thread_info::suspend.
754 (continue_one_thread): Use windows_thread_info::resume.
755 * configure.srv (srv_tgtobj): Add windows-nat.o when needed.
757 2020-04-08 Tom Tromey <tromey@adacore.com>
759 * win32-i386-low.c (update_debug_registers)
760 (i386_prepare_to_resume, i386_thread_added): Update.
762 2020-04-08 Tom Tromey <tromey@adacore.com>
764 * win32-low.c (child_add_thread): Use new.
765 (delete_thread_info): Use delete.
767 2020-04-08 Tom Tromey <tromey@adacore.com>
769 * win32-low.h (struct windows_thread_info): Remove.
771 2020-04-08 Tom Tromey <tromey@adacore.com>
773 * win32-low.h (struct windows_thread_info): Rename from
774 win32_thread_info. Remove typedef.
775 (struct win32_target_ops, win32_require_context): Update.
776 * win32-low.c (win32_get_thread_context)
777 (win32_set_thread_context, win32_prepare_to_resume)
778 (win32_require_context, thread_rec, child_add_thread)
779 (delete_thread_info, continue_one_thread)
780 (child_fetch_inferior_registers, child_store_inferior_registers)
781 (win32_resume, suspend_one_thread, win32_get_tib_address):
783 * win32-i386-low.c (update_debug_registers)
784 (win32_get_current_dr, i386_get_thread_context)
785 (i386_prepare_to_resume, i386_thread_added, i386_single_step)
786 (i386_fetch_inferior_register, i386_store_inferior_register):
788 * win32-arm-low.c (arm_get_thread_context)
789 (arm_fetch_inferior_register, arm_store_inferior_register):
792 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
794 * linux-low.h (struct linux_target_ops): Remove.
795 (the_low_target): Remove.
796 * linux-x86-low.cc (the_low_target): Remove.
797 * linux-aarch64-low.cc (the_low_target): Ditto.
798 * linux-arm-low.cc (the_low_target): Ditto.
799 * linux-bfin-low.cc (the_low_target): Ditto.
800 * linux-cris-low.cc (the_low_target): Ditto.
801 * linux-crisv32-low.cc (the_low_target): Ditto.
802 * linux-ia64-low.cc (the_low_target): Ditto.
803 * linux-m32r-low.cc (the_low_target): Ditto.
804 * linux-m68k-low.cc (the_low_target): Ditto.
805 * linux-mips-low.cc (the_low_target): Ditto.
806 * linux-nios2-low.cc (the_low_target): Ditto.
807 * linux-ppc-low.cc (the_low_target): Ditto.
808 * linux-riscv-low.cc (the_low_target): Ditto.
809 * linux-s390-low.cc (the_low_target): Ditto.
810 * linux-sh-low.cc (the_low_target): Ditto.
811 * linux-sparc-low.cc (the_low_target): Ditto.
812 * linux-tic6x-low.cc (the_low_target): Ditto.
813 * linux-tile-low.cc (the_low_target): Ditto.
814 * linux-xtensa-low.cc (the_low_target): Ditto.
816 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
818 Remove the 'get_ipa_tdesc_idx' linux target op and let a concrete
819 linux target define the op by overriding the declaration in
820 process_stratum_target.
822 * linux-low.h (struct linux_target_ops): Remove the op.
823 (class linux_process_target) <get_ipa_tdesc_idx>: Remove.
824 * linux-low.cc (linux_process_target::get_ipa_tdesc_idx): Remove.
825 * linux-x86-low.cc (class x86_target) <get_ipa_tdesc_idx>: Declare.
826 (x86_get_ipa_tdesc_idx): Turn into...
827 (x86_target::get_ipa_tdesc_idx): ...this.
828 (the_low_target): Remove the op field.
829 * linux-ppc-low.cc (class ppc_target) <get_ipa_tdesc_idx>: Declare.
830 (ppc_get_ipa_tdesc_idx): Turn into...
831 (ppc_target::get_ipa_tdesc_idx): ...this.
832 (the_low_target): Remove the op field.
833 * linux-s390-low.cc (class s390_target) <get_ipa_tdesc_idx>: Declare.
834 (s390_get_ipa_tdesc_idx): Turn into...
835 (s390_target::get_ipa_tdesc_idx): ...this.
836 (the_low_target): Remove the op field.
838 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
840 Turn the 'get_syscall_trapinfo' linux target op into a method
841 of process_stratum_target.
843 * linux-low.h (struct linux_target_ops): Remove the op.
844 (class linux_process_target) <get_syscall_trapinfo>
845 <gdb_catch_this_syscall>
846 <low_supports_catch_syscall>
847 <low_get_syscall_trapinfo>: Declare.
848 * linux-low.cc (get_syscall_trapinfo): Turn into...
849 (linux_process_target::get_syscall_trapinfo): ...this.
850 (linux_process_target::low_get_syscall_trapinfo): Define.
851 (gdb_catch_this_syscall_p): Turn into...
852 (linux_process_target::gdb_catch_this_syscall): ...this.
853 (linux_process_target::low_supports_catch_syscall): Define.
855 Update the callers below.
857 (linux_process_target::wait_1)
858 (linux_process_target::supports_catch_syscall)
860 * linux-x86-low.cc (class x86_target) <low_supports_catch_syscall>
861 <low_get_syscall_trapinfo>: Declare.
862 (x86_target::low_supports_catch_syscall): Define.
863 (x86_get_syscall_trapinfo): Turn into...
864 (x86_target::low_get_syscall_trapinfo): ...this.
865 (the_low_target): Remove the op field.
866 * linux-aarch64-low.cc (class aarch64_target)
867 <low_supports_catch_syscall>
868 <low_get_syscall_trapinfo>: Declare.
869 (aarch64_target::low_supports_catch_syscall): Define.
870 (aarch64_get_syscall_trapinfo): Turn into...
871 (aarch64_target::low_get_syscall_trapinfo): ...this.
872 (the_low_target): Remove the op field.
873 * linux-arm-low.cc (class arm_target) <low_supports_catch_syscall>
874 <low_get_syscall_trapinfo>: Declare.
875 (arm_target::low_supports_catch_syscall): Define.
876 (arm_get_syscall_trapinfo): Turn into...
877 (arm_target::low_get_syscall_trapinfo): ...this.
878 (the_low_target): Remove the op field.
879 * linux-ppc-low.cc (the_low_target): Remove the op field.
880 * linux-s390-low.cc (the_low_target): Remove the op field.
882 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
884 Remove the 'supports_hardware_single_step' linux target op and
885 override the process_stratum_target's op definition in
886 linux_process_target to return true.
888 * linux-low.h (struct linux_target_ops): Remove the op.
889 (class linux_process_target) <finish_step_over>
890 <maybe_hw_step>: Declare.
891 * linux-low.cc (can_hardware_single_step): Remove.
892 (maybe_hw_step): Turn into...
893 (linux_process_target::maybe_hw_step): ...this.
894 (finish_step_over): Turn into...
895 (linux_process_target::finish_step_over): ...this.
896 (linux_process_target::supports_hardware_single_step): Update
899 Update the callers below.
901 (linux_process_target::single_step)
902 (linux_process_target::resume_one_lwp_throw)
904 * linux-arm-low.cc (class arm_target)
905 <supports_hardware_single_step>: Declare.
906 (arm_supports_hardware_single_step): Turn into...
907 (arm_target::supports_hardware_single_step): ...this.
908 (the_low_target): Remove the op field.
909 * linux-x86-low.cc (x86_supports_hardware_single_step): Remove.
910 (the_low_target): Remove the op field.
911 * linux-aarch64-low.cc (aarch64_supports_hardware_single_step):
913 (the_low_target): Remove the op field.
914 * linux-bfin-low.cc (bfin_supports_hardware_single_step): Remove.
915 (the_low_target): Remove the op field.
916 * linux-crisv32-low.cc (cris_supports_hardware_single_step): Remove.
917 (the_low_target): Remove the op field.
918 * linux-m32r-low.cc (m32r_supports_hardware_single_step): Remove.
919 (the_low_target): Remove the op field.
920 * linux-m68k-low.cc (m68k_supports_hardware_single_step): Remove.
921 (the_low_target): Remove the op field.
922 * linux-ppc-low.cc (ppc_supports_hardware_single_step): Remove.
923 (the_low_target): Remove the op field.
924 * linux-s390-low.cc (s390_supports_hardware_single_step): Remove.
925 (the_low_target): Remove the op field.
926 * linux-sh-low.cc (sh_supports_hardware_single_step): Remove.
927 (the_low_target): Remove the op field.
928 * linux-tic6x-low.cc (tic6x_supports_hardware_single_step): Remove.
929 (the_low_target): Remove the op field.
930 * linux-tile-low.cc (tile_supports_hardware_single_step): Remove.
931 (the_low_target): Remove the op field.
932 * linux-xtensa-low.cc (xtensa_supports_hardware_single_step):
934 (the_low_target): Remove the op field.
936 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
938 Turn the 'supports_range_stepping' linux target op into a method
939 of linux_process_target.
941 * linux-low.h (struct linux_target_ops): Remove the op.
942 (class linux_process_target) <low_supports_range_stepping>: Declare.
943 * linux-low.cc (linux_process_target::low_supports_range_stepping):
945 (linux_process_target::supports_range_stepping): Update the call
947 * linux-x86-low.cc (class x86_target)
948 <low_supports_range_stepping>: Declare.
949 (x86_supports_range_stepping): Turn into...
950 (x86_target::low_supports_range_stepping): ...this.
951 (the_low_target): Remove the op field.
952 * linux-aarch64-low.cc (class aarch64_target)
953 <low_supports_range_stepping>: Declare.
954 (aarch64_supports_range_stepping): Turn into...
955 (aarch64_target::low_supports_range_stepping): ...this.
956 (the_low_target): Remove the op field.
957 * linux-arm-low.cc (the_low_target): Remove the op field.
958 * linux-bfin-low.cc (the_low_target): Ditto.
959 * linux-crisv32-low.cc (the_low_target): Ditto.
960 * linux-m32r-low.cc (the_low_target): Ditto.
961 * linux-m68k-low.cc (the_low_target): Ditto.
962 * linux-ppc-low.cc (the_low_target): Ditto.
963 * linux-s390-low.cc (the_low_target): Ditto.
964 * linux-sh-low.cc (the_low_target): Ditto.
965 * linux-tic6x-low.cc (the_low_target): Ditto.
966 * linux-tile-low.cc (the_low_target): Ditto.
967 * linux-xtensa-low.cc (the_low_target): Ditto.
969 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
971 Remove the 'emit_ops' linux target ops and let the concrete
972 linux target define the op by overriding the declaration of
973 process_stratum_target.
975 * linux-low.h (struct linux_target_ops): Remove the op.
976 (class linux_process_target) <emit_ops>: Remove.
977 * linux-low.cc (linux_process_target::emit_ops): Remove.
978 * linux-x86-low.cc (class x86_target) <emit_ops>: Declare.
979 (x86_emit_ops): Turn into...
980 (x86_target::emit_ops): ...this.
981 (the_low_target): Remove the op field.
982 * linux-aarch64-low.cc (class aarch64_target) <emit_ops>: Declare.
983 (aarch64_emit_ops): Turn into...
984 (aarch64_target::emit_ops): ...this.
985 (the_low_target): Remove the op field.
986 * linux-ppc-low.cc (class ppc_target) <emit_ops>: Declare.
987 (ppc_emit_ops): Turn into...
988 (ppc_target::emit_ops): ...this.
989 (the_low_target): Remove the op field.
990 * linux-s390-low.cc (class s390_target) <emit_ops>: Declare.
991 (s390_emit_ops): Turn into...
992 (s390_target::emit_ops): ...this.
993 (the_low_target): Remove the op field.
994 * linux-arm-low.cc (the_low_target): Remove the op field.
995 * linux-bfin-low.cc (the_low_target): Ditto.
996 * linux-crisv32-low.cc (the_low_target): Ditto.
997 * linux-m32r-low.cc (the_low_target): Ditto.
998 * linux-m68k-low.cc (the_low_target): Ditto.
999 * linux-sh-low.cc (the_low_target): Ditto.
1000 * linux-tic6x-low.cc (the_low_target): Ditto.
1001 * linux-tile-low.cc (the_low_target): Ditto.
1002 * linux-xtensa-low.cc (the_low_target): Ditto.
1004 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1006 Remove the 'install_fast_tracepoint_jump_pad' and
1007 'get_min_fast_tracepoint_insn_len' linux target ops to let the
1008 concrete linux target define the ops by overriding the declarations
1009 of process_stratum_target.
1011 * linux-low.h (struct linux_target_ops): Remove the ops.
1012 (class linux_process_target) <supports_fast_tracepoints>
1013 <install_fast_tracepoint_jump_pad>
1014 <get_min_fast_tracepoint_insn_len>: Remove.
1015 * linux-low.cc (linux_process_target::supports_fast_tracepoints)
1016 (linux_process_target::install_fast_tracepoint_jump_pad)
1017 (linux_process_target::get_min_fast_tracepoint_insn_len): Remove.
1018 * linux-x86-low.cc (class x86_target) <supports_fast_tracepoints>
1019 <install_fast_tracepoint_jump_pad>
1020 <get_min_fast_tracepoint_insn_len>: Declare.
1021 (x86_target::supports_fast_tracepoints): Define.
1022 (x86_install_fast_tracepoint_jump_pad): Turn into...
1023 (x86_target::install_fast_tracepoint_jump_pad): ...this.
1024 (x86_get_min_fast_tracepoint_insn_len): Turn into...
1025 (x86_target::get_min_fast_tracepoint_insn_len): ...this.
1026 (the_low_target): Remove the op fields.
1027 * linux-aarch64-low.cc (class aarch64_target)
1028 <supports_fast_tracepoints>
1029 <install_fast_tracepoint_jump_pad>
1030 <get_min_fast_tracepoint_insn_len>: Declare.
1031 (aarch64_target::supports_fast_tracepoints): Define.
1032 (aarch64_install_fast_tracepoint_jump_pad): Turn into...
1033 (aarch64_target::install_fast_tracepoint_jump_pad): ...this.
1034 (aarch64_get_min_fast_tracepoint_insn_len): Turn into...
1035 (aarch64_target::get_min_fast_tracepoint_insn_len): ...this.
1036 (the_low_target): Remove the op fields.
1037 * linux-ppc-low.cc (class ppc_target) <supports_fast_tracepoints>
1038 <install_fast_tracepoint_jump_pad>
1039 <get_min_fast_tracepoint_insn_len>: Declare.
1040 (ppc_target::supports_fast_tracepoints): Define.
1041 (ppc_install_fast_tracepoint_jump_pad): Turn into...
1042 (ppc_target::install_fast_tracepoint_jump_pad): ...this.
1043 (ppc_get_min_fast_tracepoint_insn_len): Turn into...
1044 (ppc_target::get_min_fast_tracepoint_insn_len): ...this.
1045 (the_low_target): Remove the op fields.
1046 * linux-s390-low.cc (class s390_target) <supports_fast_tracepoints>
1047 <install_fast_tracepoint_jump_pad>
1048 <get_min_fast_tracepoint_insn_len>: Declare.
1049 (s390_target::supports_fast_tracepoints): Define.
1050 (s390_install_fast_tracepoint_jump_pad): Turn into...
1051 (s390_target::install_fast_tracepoint_jump_pad): ...this.
1052 (s390_get_min_fast_tracepoint_insn_len): Turn into...
1053 (s390_target::get_min_fast_tracepoint_insn_len): ...this.
1054 (the_low_target): Remove the op fields.
1055 * linux-arm-low.cc (the_low_target): Remove the op fields.
1056 * linux-bfin-low.cc (the_low_target): Ditto.
1057 * linux-crisv32-low.cc (the_low_target): Ditto.
1058 * linux-m32r-low.cc (the_low_target): Ditto.
1059 * linux-m68k-low.cc (the_low_target): Ditto.
1060 * linux-sh-low.cc (the_low_target): Ditto.
1061 * linux-tic6x-low.cc (the_low_target): Ditto.
1062 * linux-tile-low.cc (the_low_target): Ditto.
1063 * linux-xtensa-low.cc (the_low_target): Ditto.
1065 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1067 Turn the 'get_thread_area' linux target op into a method of
1068 process_stratum_target.
1070 * linux-low.h (struct linux_target_ops): Remove the op.
1071 (class linux_process_target) <stuck_in_jump_pad>
1072 <linux_fast_tracepoint_collecting>
1073 <low_get_thread_area>: Declare.
1074 * linux-low.cc (supports_fast_tracepoints): Remove.
1075 (linux_fast_tracepoint_collecting): Turn into...
1076 (linux_process_target::linux_fast_tracepoint_collecting): ...this.
1077 (linux_process_target::low_get_thread_area): Define.
1078 (stuck_in_jump_pad_callback): Turn into...
1079 (linux_process_target::stuck_in_jump_pad): ...this.
1081 Update the caller below.
1083 (linux_process_target::stabilize_threads)
1085 * linux-x86-low.cc (class x86_target) <low_get_thread_area>:
1087 (x86_get_thread_area): Turn into...
1088 (x86_target::low_get_thread_area): ...this.
1089 (the_low_target): Remove the op field.
1090 * linux-aarch64-low.cc (class aarch64_target) <low_get_thread_area>:
1092 (aarch64_get_thread_area): Turn into...
1093 (aarch64_target::low_get_thread_area): ...this.
1094 (the_low_target): Remove the op field.
1095 * linux-ppc-low.cc (class ppc_target) <low_get_thread_area>:
1097 (ppc_get_thread_area): Turn into...
1098 (ppc_target::low_get_thread_area): ...this.
1099 (the_low_target): Remove the op field.
1100 * linux-s390-low.cc (class s390_target) <low_get_thread_area>:
1102 (s390_get_thread_area): Turn into...
1103 (s390_target::low_get_thread_area): ...this.
1104 (the_low_target): Remove the op field.
1105 * linux-arm-low.cc (the_low_target): Remove the op field.
1106 * linux-bfin-low.cc (the_low_target): Ditto.
1107 * linux-crisv32-low.cc (the_low_target): Ditto.
1108 * linux-m32r-low.cc (the_low_target): Ditto.
1109 * linux-m68k-low.cc (the_low_target): Ditto.
1110 * linux-sh-low.cc (the_low_target): Ditto.
1111 * linux-tic6x-low.cc (the_low_target): Ditto.
1112 * linux-tile-low.cc (the_low_target): Ditto.
1113 * linux-xtensa-low.cc (the_low_target): Ditto.
1115 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1117 Remote the 'supports_tracepoints' linux target op and let the
1118 concrete linux target define it by overriding the op declared in
1119 process_stratum_target.
1121 * linux-low.h (struct linux_target_ops): Remove the op.
1122 (class linux_process_target) <supports_tracepoints>: Remove.
1123 * linux-low.cc (linux_process_target::supports_tracepoints): Remove.
1124 * linux-x86-low.cc (class x86_target) <supports_tracepoints>:
1126 (x86_supports_tracepoints): Turn into...
1127 (x86_target::supports_tracepoints): ...this.
1128 (the_low_target): Remove the op field.
1129 * linux-aarch64-low.cc (class aarch64_target)
1130 <supports_tracepoints>: Declare.
1131 (aarch64_supports_tracepoints): Turn into...
1132 (aarch64_target::supports_tracepoints): ...this.
1133 (the_low_target): Remove the op field.
1134 * linux-ppc-low.cc (class ppc_target) <supports_tracepoints>:
1136 (ppc_supports_tracepoints): Turn into...
1137 (ppc_target::supports_tracepoints): ...this.
1138 (the_low_target): Remove the op field.
1139 * linux-s390-low.cc (class s390_target) <supports_tracepoints>:
1141 (s390_supports_tracepoints): Turn into...
1142 (s390_target::supports_tracepoints): ...this.
1143 (the_low_target): Remove the op field.
1144 * linux-arm-low.cc (the_low_target): Remove the op field.
1145 * linux-bfin-low.cc (the_low_target): Ditto.
1146 * linux-crisv32-low.cc (the_low_target): Ditto.
1147 * linux-m32r-low.cc (the_low_target): Ditto.
1148 * linux-m68k-low.cc (the_low_target): Ditto.
1149 * linux-sh-low.cc (the_low_target): Ditto.
1150 * linux-tic6x-low.cc (the_low_target): Ditto.
1151 * linux-tile-low.cc (the_low_target): Ditto.
1152 * linux-xtensa-low.cc (the_low_target): Ditto.
1154 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1156 Remove the 'process_qsupported' linux target op and let a concrete
1157 linux target define the op by overriding the op declaration in
1158 process_stratum_target.
1160 * linux-low.h (struct linux_target_ops): Remove the op.
1161 (class linux_process_target) <process_qsupported>: Remove.
1162 * linux-low.cc (linux_process_target::process_qsupported): Remove.
1163 * linux-x86-low.cc (class x86_target) <process_qsupported>: Declare.
1164 (x86_linux_process_qsupported): Turn into...
1165 (x86_target::process_qsupported): ...this.
1166 (the_low_target): Remove the op field.
1167 * linux-aarch64-low.cc (the_low_target): Remove the op
1169 * linux-arm-low.cc (the_low_target): Ditto.
1170 * linux-bfin-low.cc (the_low_target): Ditto.
1171 * linux-crisv32-low.cc (the_low_target): Ditto.
1172 * linux-m32r-low.cc (the_low_target): Ditto.
1173 * linux-m68k-low.cc (the_low_target): Ditto.
1174 * linux-ppc-low.cc (the_low_target): Ditto.
1175 * linux-s390-low.cc (the_low_target): Ditto.
1176 * linux-sh-low.cc (the_low_target): Ditto.
1177 * linux-tic6x-low.cc (the_low_target): Ditto.
1178 * linux-tile-low.cc (the_low_target): Ditto.
1179 * linux-xtensa-low.cc (the_low_target): Ditto.
1181 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1183 Turn the 'prepare_to_resume' linux target op into a method of
1184 linux_process_target.
1186 * linux-low.h (struct linux_target_ops): Remove the op.
1187 (class linux_process_target) <low_prepare_to_resume>: Declare.
1188 * linux-low.cc (linux_process_target::low_prepare_to_resume):
1191 Update the callers below:
1193 (linux_process_target::resume_one_lwp_throw)
1194 (linux_process_target::low_prepare_to_resume)
1196 * linux-x86-low.cc (class x86_target) <low_prepare_to_resume>:
1198 (x86_target::low_prepare_to_resume): Define.
1199 (the_low_target): Remove the op field.
1200 * linux-aarch64-low.cc (class aarch64_target)
1201 <low_prepare_to_resume>: Declare.
1202 (aarch64_target::low_prepare_to_resume): Define.
1203 (the_low_target): Remove the op field.
1204 * linux-arm-low.cc (class arm_target) <low_prepare_to_resume>:
1206 (arm_prepare_to_resume): Turn into...
1207 (arm_target::low_prepare_to_resume): ...this.
1208 (the_low_target): Remove the op field.
1209 * linux-mips-low.cc (class mips_target) <low_prepare_to_resume>:
1211 (mips_linux_prepare_to_resume): Turn into...
1212 (mips_target::low_prepare_to_resume): ...this.
1213 (the_low_target): Remove the op field.
1214 * linux-bfin-low.cc (the_low_target): Remove the op field.
1215 * linux-crisv32-low.cc (the_low_target): Ditto.
1216 * linux-m32r-low.cc (the_low_target): Ditto.
1217 * linux-m68k-low.cc (the_low_target): Ditto.
1218 * linux-ppc-low.cc (the_low_target): Ditto.
1219 * linux-s390-low.cc (the_low_target): Ditto.
1220 * linux-sh-low.cc (the_low_target): Ditto.
1221 * linux-tic6x-low.cc (the_low_target): Ditto.
1222 * linux-tile-low.cc (the_low_target): Ditto.
1223 * linux-xtensa-low.cc (the_low_target): Ditto.
1225 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1227 Turn the 'new_process', 'delete_process', 'new_thread',
1228 'delete_thread', and 'new_fork' linux target ops into methods
1229 of linux_process_target.
1231 * linux-low.h (struct linux_target_ops): Remove the ops.
1232 (class linux_process_target) <add_linux_process>
1237 <check_zombie_leaders>
1240 <low_delete_process>
1243 <low_new_fork>: Declare.
1244 * linux-low.cc (delete_lwp): Turn into...
1245 (linux_process_target::delete_lwp): ...this.
1246 (linux_process_target::low_delete_thread): Define.
1247 (linux_add_process): Turn into...
1248 (linux_process_target::add_linux_process): ...this.
1249 (linux_process_target::low_new_process): Define.
1250 (linux_process_target::low_delete_process): Define.
1251 (linux_process_target::low_new_fork): Define.
1252 (add_lwp): Turn into...
1253 (linux_process_target::add_lwp): ...this.
1254 (linux_process_target::low_new_thread): Define.
1255 (linux_attach_lwp): Turn into...
1256 (linux_process_target::attach_lwp): ...this.
1257 (linux_detach_one_lwp): Turn into...
1258 (linux_process_target::detach_one_lwp): ...this.
1259 (linux_detach_lwp_callback): Remove and inline...
1260 (linux_process_target::detach): ...here.
1261 (check_zombie_leaders): Turn into...
1262 (linux_process_target::check_zombie_leaders): ...this.
1263 (filter_exit_event): Turn into...
1264 (linux_process_target::filter_exit_event): ...this.
1266 Update the callers below.
1268 (linux_process_target::handle_extended_wait)
1269 (linux_process_target::create_inferior)
1270 (attach_proc_task_lwp_callback)
1271 (linux_process_target::attach)
1272 (linux_process_target::detach)
1273 (linux_process_target::mourn)
1274 * thread-db.cc (attach_thread)
1276 * linux-x86-low.cc (class x86_target) <low_new_process>
1277 <low_delete_process>
1280 <low_new_fork>: Declare.
1281 (x86_linux_new_process): Turn into...
1282 (x86_target::low_new_process): ...this.
1283 (x86_linux_delete_process): Turn into...
1284 (x86_target::low_delete_process): ...this.
1285 (x86_target::low_new_thread): Define.
1286 (x86_target::low_delete_thread): Define.
1287 (x86_linux_new_fork): Turn into...
1288 (x86_target::low_new_fork): ...this.
1289 (the_low_target): Remove the op fields.
1290 * linux-aarch64-low.cc (class aarch64_target) <low_new_process>
1291 <low_delete_process>
1294 <low_new_fork>: Declare.
1295 (aarch64_linux_new_process): Turn into...
1296 (aarch64_target::low_new_process): ...this.
1297 (aarch64_linux_delete_process): Turn into...
1298 (aarch64_target::low_delete_process): ...this.
1299 (aarch64_target::low_new_thread): Define.
1300 (aarch64_target::low_delete_thread): Define.
1301 (aarch64_linux_new_fork): Turn into...
1302 (aarch64_target::low_new_fork): ...this.
1303 (the_low_target): Remove the op fields.
1304 * linux-arm-low.cc (class arm_target) <low_new_process>
1305 <low_delete_process>
1308 <low_new_fork>: Declare.
1309 (arm_new_process): Turn into...
1310 (arm_target::low_new_process): ...this.
1311 (arm_delete_process): Turn into...
1312 (arm_target::low_delete_process): ...this.
1313 (arm_new_thread): Turn into...
1314 (arm_target::low_new_thread): ...this.
1315 (arm_delete_thread): Turn into...
1316 (arm_target::low_delete_thread): ...this.
1317 (arm_new_fork): Turn into...
1318 (arm_target::low_new_fork): ...this.
1319 (the_low_target): Remove the op fields.
1320 * linux-mips-low.cc (class mips_target) <low_new_process>
1321 <low_delete_process>
1324 <low_new_fork>: Declare.
1325 (mips_linux_new_process): Turn into...
1326 (mips_target::low_new_process): ...this.
1327 (mips_linux_delete_process): Turn into...
1328 (mips_target::low_delete_process): ...this.
1329 (mips_linux_new_thread): Turn into...
1330 (mips_target::low_new_thread): ...this.
1331 (mips_linux_delete_thread): Turn into...
1332 (mips_target::low_delete_thread): ...this.
1333 (mips_linux_new_fork): Turn into...
1334 (mips_target::low_new_fork): ...this.
1335 (the_low_target): Remove the op fields.
1336 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1337 * linux-crisv32-low.cc (the_low_target): Ditto.
1338 * linux-m32r-low.cc (the_low_target): Ditto.
1339 * linux-m68k-low.cc (the_low_target): Ditto.
1340 * linux-ppc-low.cc (the_low_target): Ditto.
1341 * linux-s390-low.cc (the_low_target): Ditto.
1342 * linux-sh-low.cc (the_low_target): Ditto.
1343 * linux-tic6x-low.cc (the_low_target): Ditto.
1344 * linux-tile-low.cc (the_low_target): Ditto.
1345 * linux-xtensa-low.cc (the_low_target): Ditto.
1347 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1349 Turn the 'siginfo_fixup' linux target op into a method of
1350 linux_process_target.
1352 * linux-low.h (struct linux_target_ops): Remove the op.
1353 (class linux_process_target) <siginfo_fixup>
1354 <low_siginfo_fixup>: Declare.
1355 * linux-low.cc (siginfo_fixup): Turn into...
1356 (linux_process_target::siginfo_fixup): ...this.
1357 (linux_process_target::low_siginfo_fixup): Define.
1358 * linux-x86-low.cc (class x86_target) <low_siginfo_fixup>: Declare.
1359 (x86_siginfo_fixup): Turn into...
1360 (x86_target::low_siginfo_fixup): ...this.
1361 (the_low_target): Remove the op field.
1362 * linux-aarch64-low.cc (class aarch64_target):
1363 <low_siginfo_fixup>: Declare.
1364 (aarch64_linux_siginfo_fixup): Turn into...
1365 (aarch64_target::low_siginfo_fixup): ...this.
1366 (the_low_target): Remove the op field.
1367 * linux-arm-low.cc (the_low_target): Remove the op field.
1368 * linux-bfin-low.cc (the_low_target): Ditto.
1369 * linux-crisv32-low.cc (the_low_target): Ditto.
1370 * linux-m32r-low.cc (the_low_target): Ditto.
1371 * linux-m68k-low.cc (the_low_target): Ditto.
1372 * linux-mips-low.cc (the_low_target): Ditto.
1373 * linux-ppc-low.cc (the_low_target): Ditto.
1374 * linux-s390-low.cc (the_low_target): Ditto.
1375 * linux-sh-low.cc (the_low_target): Ditto.
1376 * linux-tic6x-low.cc (the_low_target): Ditto.
1377 * linux-tile-low.cc (the_low_target): Ditto.
1378 * linux-xtensa-low.cc (the_low_target): Ditto.
1380 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1382 Turn the 'collect_ptrace_register' and 'supply_ptrace_register'
1383 linux target ops into methods of linux_process_target.
1385 * linux-low.h (struct linux_target_ops): Remove the ops.
1386 (class linux_process_target) <low_collect_ptrace_register>
1387 <low_store_ptrace_register>: Declare.
1388 * linux-low.cc (linux_process_target::low_collect_ptrace_register)
1389 (linux_process_target::low_supply_ptrace_register): Define.
1391 Update the callers below.
1393 (linux_process_target::fetch_register)
1394 (linux_process_target::store_register)
1396 * linux-x86-low.cc (the_low_target): Remove the op fields.
1397 * linux-aarch64-low.cc (the_low_target): Ditto.
1398 * linux-arm-low.cc (the_low_target): Ditto.
1399 * linux-bfin-low.cc (the_low_target): Ditto.
1400 * linux-crisv32-low.cc (the_low_target): Ditto.
1401 * linux-m32r-low.cc (the_low_target): Ditto.
1402 * linux-m68k-low.cc (the_low_target): Ditto.
1403 * linux-sh-low.cc (the_low_target): Ditto.
1404 * linux-sparc-low.cc (the_low_target): Ditto.
1405 * linux-tic6x-low.cc (the_low_target): Ditto.
1406 * linux-tile-low.cc (the_low_target): Ditto.
1407 * linux-xtensa-low.cc (the_low_target): Ditto.
1408 * linux-mips-low.cc (class mips_target)
1409 <low_collect_ptrace_register>
1410 <low_supply_ptrace_register>: Declare.
1411 (mips_collect_ptrace_register): Turn into ...
1412 (mips_target::low_collect_ptrace_register): ...this.
1413 (mips_supply_ptrace_register): Turn into...
1414 (mips_target::low_supply_ptrace_register): ...this.
1415 (the_low_target): Remove the op fields.
1416 * linux-ppc-low.cc (class ppc_target)
1417 <low_collect_ptrace_register>
1418 <low_supply_ptrace_register>: Declare.
1419 (ppc_collect_ptrace_register): Turn into ...
1420 (ppc_target::low_collect_ptrace_register): ...this.
1421 (ppc_supply_ptrace_register): Turn into ...
1422 (ppc_target::low_supply_ptrace_register): ...this.
1423 (ppc_fill_gregset): Update for the calls to
1424 low_collect_ptrace_register.
1425 (the_low_target): Remove the op fields.
1426 * linux-s390-low.cc (class s390_target)
1427 <low_collect_ptrace_register>
1428 <low_supply_ptrace_register>: Declare.
1429 (s390_collect_ptrace_register): Turn into ...
1430 (s390_target::low_collect_ptrace_register): ...this.
1431 (s390_supply_ptrace_register): Turn into ...
1432 (s390_target::low_supply_ptrace_register): ...this.
1433 (s390_fill_gregset): Update for the calls to
1434 low_collect_ptrace_register.
1435 (the_low_target): Remove the op fields.
1437 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1439 Turn the 'stopped_by_watchpoint' and 'stopped_data_address' linux
1440 target ops into methods of linux_process_target.
1442 * linux-low.h (struct linux_target_ops): Remove the ops.
1443 (class linux_process_target) <check_stopped_by_watchpoint>
1444 <low_stopped_by_watchpoint>
1445 <low_stopped_data_address>: Declare.
1446 * linux-low.cc (check_stopped_by_watchpoint): Turn into...
1447 (linux_process_target::check_stopped_by_watchpoint): ...this.
1448 (linux_process_target::low_stopped_by_watchpoint): Define.
1449 (linux_process_target::low_stopped_data_address): Define.
1450 * linux-x86-low.cc (class x86_target) <low_stopped_by_watchpoint>
1451 <low_stopped_data_address>: Declare.
1452 (x86_stopped_by_watchpoint): Turn into...
1453 (x86_target::low_stopped_by_watchpoint): ...this.
1454 (x86_stopped_data_address): Turn into...
1455 (x86_target::low_stopped_data_address): ...this.
1456 (the_low_target): Remove the op fields.
1457 * linux-aarch64-low.cc (class aarch64_target)
1458 <low_stopped_by_watchpoint>
1459 <low_stopped_data_address>: Declare.
1460 (aarch64_stopped_by_watchpoint): Turn into...
1461 (aarch64_target::low_stopped_by_watchpoint): ...this.
1462 (aarch64_stopped_data_address): Turn into...
1463 (aarch64_target::low_stopped_data_address): ...this.
1464 (the_low_target): Remove the op fields.
1465 * linux-arm-low.cc (class arm_target) <low_stopped_by_watchpoint>
1466 <low_stopped_data_address>: Declare.
1467 (arm_stopped_by_watchpoint): Turn into...
1468 (arm_target::low_stopped_by_watchpoint): ...this.
1469 (arm_stopped_data_address): Turn into...
1470 (arm_target::low_stopped_data_address): ...this.
1471 (the_low_target): Remove the op fields.
1472 * linux-crisv32-low.cc (class crisv32_target)
1473 <low_stopped_by_watchpoint>
1474 <low_stopped_data_address>: Declare.
1475 (cris_stopped_by_watchpoint): Turn into...
1476 (crisv32_target::low_stopped_by_watchpoint): ...this.
1477 (cris_stopped_data_address): Turn into...
1478 (crisv32_target::low_stopped_data_address): ...this.
1479 (the_low_target): Remove the op fields.
1480 * linux-mips-low.cc (class mips_target) <low_stopped_by_watchpoint>
1481 <low_stopped_data_address>: Declare.
1482 (mips_stopped_by_watchpoint): Turn into...
1483 (mips_target::low_stopped_by_watchpoint): ...this.
1484 (mips_stopped_data_address): Turn into...
1485 (mips_target::low_stopped_data_address): ...this.
1486 (the_low_target): Remove the op fields.
1487 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1488 * linux-m32r-low.cc (the_low_target): Ditto.
1489 * linux-m68k-low.cc (the_low_target): Ditto.
1490 * linux-ppc-low.cc (the_low_target): Ditto.
1491 * linux-s390-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 'insert_point' and 'remove_point' linux target ops into
1501 methods of linux_process_target.
1503 * linux-low.h (struct linux_target_ops): Remove the ops.
1504 (class linux_process_target) <low_insert_point>
1505 <low_remove_point>: Declare.
1506 * linux-low.cc (linux_process_target::low_insert_point)
1507 (linux_process_target::low_remove_point): Define.
1508 (linux_process_target::insert_point)
1509 (linux_process_target::remove_point): Update for calls to
1510 low_insert_point and low_remove_point.
1511 * linux-x86-low.cc (class x86_target) <low_insert_point>
1512 <low_remove_point>: Declare.
1513 (x86_insert_point): Turn into...
1514 (x86_target::low_insert_point): ...this.
1515 (x86_remove_point): Turn into...
1516 (x86_target::low_remove_point): ...this.
1517 (the_low_target): Remove the op fields.
1518 * linux-aarch64-low.cc (class aarch64_target) <low_insert_point>
1519 <low_remove_point>: Declare.
1520 (aarch64_insert_point): Turn into...
1521 (aarch64_target::low_insert_point): ...this.
1522 (aarch64_remove_point): Turn into...
1523 (aarch64_target::low_remove_point): ...this.
1524 (the_low_target): Remove the op fields.
1525 * linux-arm-low.cc (class arm_target) <low_insert_point>
1526 <low_remove_point>: Declare.
1527 (arm_insert_point): Turn into...
1528 (arm_target::low_insert_point): ...this.
1529 (arm_remove_point): Turn into...
1530 (arm_target::low_remove_point): ...this.
1531 (the_low_target): Remove the op fields.
1532 * linux-crisv32-low.cc (class crisv32_target) <low_insert_point>
1533 <low_remove_point>: Declare.
1534 (crisv32_insert_point): Turn into...
1535 (crisv32_target::low_insert_point): ...this.
1536 (crisv32_remove_point): Turn into...
1537 (crisv32_target::low_remove_point): ...this.
1538 (the_low_target): Remove the op fields.
1539 * linux-mips-low.cc (class mips_target) <low_insert_point>
1540 <low_remove_point>: Declare.
1541 (mips_insert_point): Turn into...
1542 (mips_target::low_insert_point): ...this.
1543 (mips_remove_point): Turn into...
1544 (mips_target::low_remove_point): ...this.
1545 (the_low_target): Remove the op fields.
1546 * linux-ppc-low.cc (class ppc_target) <low_insert_point>
1547 <low_remove_point>: Declare.
1548 (ppc_insert_point): Turn into...
1549 (ppc_target::low_insert_point): ...this.
1550 (ppc_remove_point): Turn into...
1551 (ppc_target::low_remove_point): ...this.
1552 (the_low_target): Remove the op fields.
1553 * linux-bfin-low.cc (the_low_target): Remove the op fields.
1554 * linux-m32r-low.cc (the_low_target): Ditto.
1555 * linux-m68k-low.cc (the_low_target): Ditto.
1556 * linux-s390-low.cc (the_low_target): Ditto.
1557 * linux-sh-low.cc (the_low_target): Ditto.
1558 * linux-sparc-low.cc (the_low_target): Ditto.
1559 * linux-tic6x-low.cc (the_low_target): Ditto.
1560 * linux-tile-low.cc (the_low_target): Ditto.
1561 * linux-xtensa-low.cc (the_low_target): Ditto.
1563 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1565 Remove the 'supports_z_point_type' linux target op and let the
1566 concrete linux target define it by overriding the op declared in
1567 process_stratum_target.
1569 * linux-low.cc (linux_process_target::supports_z_point_type):
1571 * linux-low.h (struct linux_target_ops): Remove the op.
1572 (class linux_process_target) <supports_z_point_type>: Remove.
1573 * linux-x86-low.cc (class x86_target) <supports_z_point_type>:
1575 (x86_supports_z_point_type): Turn into...
1576 (x86_target::supports_z_point_type): ...this.
1577 (the_low_target): Remove the op field.
1578 * linux-aarch64-low.cc (class aarch64_target)
1579 <supports_z_point_type>: Declare.
1580 (aarch64_supports_z_point_type): Turn into...
1581 (aarch64_target::supports_z_point_type): ...this.
1582 (the_low_target): Remove the op field.
1583 * linux-arm-low.cc (class arm_target) <supports_z_point_type>:
1585 (arm_supports_z_point_type): Turn into...
1586 (arm_target::supports_z_point_type): ...this.
1587 (the_low_target): Remove the op field.
1588 * linux-crisv32-low.cc (class crisv32_target)
1589 <supports_z_point_type>: Declare.
1590 (cris_supports_z_point_type): Turn into...
1591 (crisv32_target::supports_z_point_type): ...this.
1592 (the_low_target): Remove the op field.
1593 * linux-mips-low.cc (class mips_target) <supports_z_point_type>:
1595 (mips_supports_z_point_type): Turn into...
1596 (mips_target::supports_z_point_type): ...this.
1597 (the_low_target): Remove the op field.
1598 * linux-ppc-low.cc (class ppc_target) <supports_z_point_type>:
1600 (ppc_supports_z_point_type): Turn into...
1601 (ppc_target::supports_z_point_type): ...this.
1602 (the_low_target): Remove the op field.
1603 * linux-s390-low.cc (class s390_target) <supports_z_point_type>:
1605 (s390_supports_z_point_type): Turn into...
1606 (s390_target::supports_z_point_type): ...this.
1607 (the_low_target): Remove the op field.
1608 * linux-bfin-low.cc (the_low_target): Remove the op field.
1609 * linux-m32r-low.cc (the_low_target): Ditto.
1610 * linux-m68k-low.cc (the_low_target): Ditto.
1611 * linux-sh-low.cc (the_low_target): Ditto.
1612 * linux-sparc-low.cc (the_low_target): Ditto.
1613 * linux-tic6x-low.cc (the_low_target): Ditto.
1614 * linux-tile-low.cc (the_low_target): Ditto.
1615 * linux-xtensa-low.cc (the_low_target): Ditto.
1617 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1619 Turn the 'breakpoint_at' linux target op into a method of
1620 linux_process_target.
1622 * linux-low.h (struct linux_target_ops): Remove the op.
1623 (class linux_process_target) <low_breakpoint_at>: Declare.
1625 Update the callers below:
1627 * linux-low.cc (linux_process_target::save_stop_reason)
1628 (linux_process_target::thread_still_has_status_pending)
1629 (linux_process_target::wait_1)
1631 * linux-x86-low.cc (class x86_target)
1632 <low_breakpoint_at>: Declare.
1633 (x86_breakpoint_at): Turn into...
1634 (x86_target::low_breakpoint_at): ...this.
1635 (the_low_target): Remove the op field.
1636 * linux-aarch64-low.cc (class aarch64_target)
1637 <low_breakpoint_at>: Declare.
1638 (aarch64_breakpoint_at): Turn into...
1639 (aarch64_target::low_breakpoint_at): ...this.
1640 (the_low_target): Remove the op field.
1641 * linux-arm-low.cc (class arm_target)
1642 <low_breakpoint_at>: Declare.
1643 (arm_target::low_breakpoint_at): Define.
1644 (the_low_target): Remove the op field.
1645 * linux-bfin-low.cc (class bfin_target)
1646 <low_breakpoint_at>: Declare.
1647 (bfin_breakpoint_at): Turn into...
1648 (bfin_target::low_breakpoint_at): ...this.
1649 (the_low_target): Remove the op field.
1650 * linux-cris-low.cc (class cris_target)
1651 <low_breakpoint_at>: Declare.
1652 (cris_breakpoint_at): Turn into...
1653 (cris_target::low_breakpoint_at): ...this.
1654 (the_low_target): Remove the op field.
1655 * linux-crisv32-low.cc (class crisv32_target)
1656 <low_breakpoint_at>: Declare.
1657 (crisv32_breakpoint_at): Turn into...
1658 (crisv32_target::low_breakpoint_at): ...this.
1659 (the_low_target): Remove the op field.
1660 * linux-ia64-low.cc (class ia64_target)
1661 <low_breakpoint_at>: Declare.
1662 (ia64_target::low_breakpoint_at): Define.
1663 * linux-m32r-low.cc (class m32r_target)
1664 <low_breakpoint_at>: Declare.
1665 (m32r_breakpoint_at): Turn into...
1666 (m32r_target::low_breakpoint_at): ...this.
1667 (the_low_target): Remove the op field.
1668 * linux-m68k-low.cc (class m68k_target)
1669 <low_breakpoint_at>: Declare.
1670 (m68k_breakpoint_at): Turn into...
1671 (m68k_target::low_breakpoint_at): ...this.
1672 (the_low_target): Remove the op field.
1673 * linux-mips-low.cc (class mips_target)
1674 <low_breakpoint_at>: Declare.
1675 (mips_breakpoint_at): Turn into...
1676 (mips_target::low_breakpoint_at): ...this.
1677 (the_low_target): Remove the op field.
1678 * linux-nios2-low.cc (class nios2_target)
1679 <low_breakpoint_at>: Declare.
1680 (nios2_breakpoint_at): Turn into...
1681 (nios2_target::low_breakpoint_at): ...this.
1682 (the_low_target): Remove the op field.
1683 * linux-ppc-low.cc (class ppc_target)
1684 <low_breakpoint_at>: Declare.
1685 (ppc_breakpoint_at): Turn into...
1686 (ppc_target::low_breakpoint_at): ...this.
1687 (the_low_target): Remove the op field.
1688 * linux-riscv-low.cc (class riscv_target)
1689 <low_breakpoint_at>: Declare.
1690 (riscv_breakpoint_at): Turn into...
1691 (riscv_target::low_breakpoint_at): ...this.
1692 (the_low_target): Remove the op field.
1693 * linux-s390-low.cc (class s390_target)
1694 <low_breakpoint_at>: Declare.
1695 (s390_breakpoint_at): Turn into...
1696 (s390_target::low_breakpoint_at): ...this.
1697 (the_low_target): Remove the op field.
1698 * linux-sh-low.cc (class sh_target)
1699 <low_breakpoint_at>: Declare.
1700 (sh_breakpoint_at): Turn into...
1701 (sh_target::low_breakpoint_at): ...this.
1702 (the_low_target): Remove the op field.
1703 * linux-sparc-low.cc (class sparc_target)
1704 <low_breakpoint_at>: Declare.
1705 (sparc_breakpoint_at): Turn into...
1706 (sparc_target::low_breakpoint_at): ...this.
1707 (the_low_target): Remove the op field.
1708 * linux-tic6x-low.cc (class tic6x_target)
1709 <low_breakpoint_at>: Declare.
1710 (tic6x_breakpoint_at): Turn into...
1711 (tic6x_target::low_breakpoint_at): ...this.
1712 (the_low_target): Remove the op field.
1713 * linux-tile-low.cc (class tile_target)
1714 <low_breakpoint_at>: Declare.
1715 (tile_breakpoint_at): Turn into...
1716 (tile_target::low_breakpoint_at): ...this.
1717 (the_low_target): Remove the op field.
1718 * linux-xtensa-low.cc (class xtensa_target)
1719 <low_breakpoint_at>: Declare.
1720 (xtensa_breakpoint_at): Turn into...
1721 (xtensa_target::low_breakpoint_at): ...this.
1722 (the_low_target): Remove the op field.
1724 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1726 Turn the 'decr_pc_after_break' linux_target_ops field into
1727 a method of linux_process_target.
1729 * linux-low.h (struct linux_target_ops)
1730 <decr_pc_after_break>: Remove.
1731 (class linux_process_target) <low_decr_pc_after_break>: New method
1733 * linux-low.cc (linux_process_target::low_decr_pc_after_break):
1734 New method implementation.
1736 Update the users below.
1738 (linux_process_target::save_stop_reason)
1739 (linux_process_target::wait_1)
1740 * linux-x86-low.cc (class x86_target) <low_decr_pc_after_break>:
1742 (x86_target::low_decr_pc_after_break): New method implementation.
1743 (the_low_target): Remove the field.
1744 * linux-bfin-low.cc (class bfin_target) <low_decr_pc_after_break>:
1746 (bfin_target::low_decr_pc_after_break): New method implementation.
1747 (the_low_target): Remove the field.
1748 * linux-m68k-low.cc (class m68k_target) <low_decr_pc_after_break>:
1750 (m68k_target::low_decr_pc_after_break): New method implementation.
1751 (the_low_target): Remove the field.
1752 * linux-s390-low.cc (class s390_target) <low_decr_pc_after_break>:
1754 (s390_target::low_decr_pc_after_break): New method implementation.
1755 (the_low_target): Remove the field.
1756 * linux-aarch64-low.cc (the_low_target): Remove the field.
1757 * linux-arm-low.cc (the_low_target): Remove the field.
1758 * linux-cris-low.cc (the_low_target): Remove the field.
1759 * linux-crisv32-low.cc (the_low_target): Remove the field.
1760 * linux-m32r-low.cc (the_low_target): Remove the field.
1761 * linux-mips-low.cc (the_low_target): Remove the field.
1762 * linux-nios2-low.cc (the_low_target): Remove the field.
1763 * linux-ppc-low.cc (the_low_target): Remove the field.
1764 * linux-riscv-low.cc (the_low_target): Remove the field.
1765 * linux-sh-low.cc (the_low_target): Remove the field.
1766 * linux-sparc-low.cc (the_low_target): Remove the field.
1767 * linux-tic6x-low.cc (the_low_target): Remove the field.
1768 * linux-tile-low.cc (the_low_target): Remove the field.
1769 * linux-xtensa-low.cc (the_low_target): Remove the field.
1771 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1773 Remove the 'supports_software_single_step' linux target op and let
1774 the concrete linux target define it by overriding the op in
1775 process_stratum_target.
1776 Turn the 'get_next_pcs' linux target op into a method of
1777 linux_process_target.
1779 * linux-low.h (struct linux_target_ops): Remove the ops.
1780 (class linux_process_target) <supports_software_single_step>:
1782 <low_get_next_pcs>: Declare.
1783 * linux-low.cc (can_software_single_step): Remove.
1784 (linux_process_target::low_get_next_pcs): Define.
1785 (linux_process_target::supports_software_single_step): Remove.
1787 Update the callers below.
1789 (linux_process_target::handle_extended_wait)
1790 (linux_process_target::wait_1)
1791 (linux_process_target::install_software_single_step_breakpoints)
1792 (linux_process_target::single_step)
1793 (linux_process_target::thread_needs_step_over)
1794 (linux_process_target::proceed_one_lwp)
1795 (linux_process_target::supports_range_stepping)
1797 * linux-x86-low.cc (the_low_target): Remove the op field.
1798 * linux-aarch64-low.cc (the_low_target): Ditto.
1799 * linux-bfin-low.cc (the_low_target): Ditto.
1800 * linux-cris-low.cc (the_low_target): Ditto.
1801 * linux-crisv32-low.cc (the_low_target): Ditto.
1802 * linux-m32r-low.cc (the_low_target): Ditto.
1803 * linux-m68k-low.cc (the_low_target): Ditto.
1804 * linux-mips-low.cc (the_low_target): Ditto.
1805 * linux-nios2-low.cc (the_low_target): Ditto.
1806 * linux-ppc-low.cc (the_low_target): Ditto.
1807 * linux-riscv-low.cc (the_low_target): Ditto.
1808 * linux-s390-low.cc (the_low_target): Ditto.
1809 * linux-sh-low.cc (the_low_target): Ditto.
1810 * linux-sparc-low.cc (the_low_target): Ditto.
1811 * linux-tic6x-low.cc (the_low_target): Ditto.
1812 * linux-tile-low.cc (the_low_target): Ditto.
1813 * linux-xtensa-low.cc (the_low_target): Ditto.
1814 * linux-arm-low.cc (class arm_target) <low_get_next_pcs>
1815 <supports_software_single_step>: Declare.
1816 (arm_target::supports_software_single_step): Define.
1817 (arm_gdbserver_get_next_pcs): Turn into...
1818 (arm_target::low_get_next_pcs): ...this.
1819 (the_low_target): Remove the op field.
1821 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1823 Remove the 'sw_breakpoint_from_kind' linux target op, and let
1824 the concrete linux target define it by overriding the op
1825 in process_stratum_target.
1827 * linux-low.cc (linux_process_target::sw_breakpoint_from_kind):
1829 * linux-low.h (struct linux_target_ops): Remove the op.
1830 (class linux_process_target) <sw_breakpoint_from_kind>: Remove.
1831 * linux-x86-low.cc (class x86_target) <sw_breakpoint_from_kind>:
1833 (x86_sw_breakpoint_from_kind): Turn into...
1834 (x86_target::sw_breakpoint_from_kind): ...this.
1835 (the_low_target): Remove the op field.
1836 * linux-aarch64-low.cc (class aarch64_target)
1837 <sw_breakpoint_from_kind>: Declare.
1838 (aarch64_sw_breakpoint_from_kind): Turn into...
1839 (aarch64_target::sw_breakpoint_from_kind): ...this.
1840 (the_low_target): Remove the op field.
1841 * linux-arm-low.cc (class arm_target) <sw_breakpoint_from_kind>:
1843 (arm_target::sw_breakpoint_from_kind): Define.
1844 (the_low_target): Remove the op field.
1845 * linux-bfin-low.cc (class bfin_target) <sw_breakpoint_from_kind>:
1847 (bfin_sw_breakpoint_from_kind): Turn into...
1848 (bfin_target::sw_breakpoint_from_kind): ...this.
1849 (the_low_target): Remove the op field.
1850 * linux-cris-low.cc (class cris_target) <sw_breakpoint_from_kind>:
1852 (cris_sw_breakpoint_from_kind): Turn into...
1853 (cris_target::sw_breakpoint_from_kind): ...this.
1854 (the_low_target): Remove the op field.
1855 * linux-crisv32-low.cc (class crisv32_target)
1856 <sw_breakpoint_from_kind>: Declare.
1857 (cris_sw_breakpoint_from_kind): Turn into...
1858 (crisv32_target::sw_breakpoint_from_kind): ...this.
1859 (the_low_target): Remove the op field.
1860 * linux-ia64-low.cc (class ia64_target) <sw_breakpoint_from_kind>:
1862 (ia64_target::sw_breakpoint_from_kind): Define.
1863 * linux-m32r-low.cc (class m32r_target) <sw_breakpoint_from_kind>:
1865 (m32r_sw_breakpoint_from_kind): Turn into...
1866 (m32r_target::sw_breakpoint_from_kind): ...this.
1867 (the_low_target): Remove the op field.
1868 * linux-m68k-low.cc (class m68k_target) <sw_breakpoint_from_kind>:
1870 (m68k_sw_breakpoint_from_kind): Turn into...
1871 (m68k_target::sw_breakpoint_from_kind): ...this.
1872 (the_low_target): Remove the op field.
1873 * linux-mips-low.cc (class mips_target) <sw_breakpoint_from_kind>:
1875 (mips_sw_breakpoint_from_kind): Turn into...
1876 (mips_target::sw_breakpoint_from_kind): ...this.
1877 (the_low_target): Remove the op field.
1878 * linux-nios2-low.cc (class nios2_target) <sw_breakpoint_from_kind>:
1880 (nios2_sw_breakpoint_from_kind): Turn into...
1881 (nios2_target::sw_breakpoint_from_kind): ...this.
1882 (the_low_target): Remove the op field.
1883 * linux-ppc-low.cc (class ppc_target) <sw_breakpoint_from_kind>:
1885 (ppc_sw_breakpoint_from_kind): Turn into...
1886 (ppc_target::sw_breakpoint_from_kind): ...this.
1887 (the_low_target): Remove the op field.
1888 * linux-riscv-low.cc (class riscv_target) <sw_breakpoint_from_kind>:
1890 (riscv_sw_breakpoint_from_kind): Turn into...
1891 (riscv_target::sw_breakpoint_from_kind): ...this.
1892 (the_low_target): Remove the op field.
1893 * linux-s390-low.cc (class s390_target) <sw_breakpoint_from_kind>:
1895 (s390_sw_breakpoint_from_kind): Turn into...
1896 (s390_target::sw_breakpoint_from_kind): ...this.
1897 (the_low_target): Remove the op field.
1898 * linux-sh-low.cc (class sh_target) <sw_breakpoint_from_kind>:
1900 (sh_sw_breakpoint_from_kind): Turn into...
1901 (sh_target::sw_breakpoint_from_kind): ...this.
1902 (the_low_target): Remove the op field.
1903 * linux-sparc-low.cc (class sparc_target) <sw_breakpoint_from_kind>:
1905 (sparc_sw_breakpoint_from_kind): Turn into...
1906 (sparc_target::sw_breakpoint_from_kind): ...this.
1907 (the_low_target): Remove the op field.
1908 * linux-tic6x-low.cc (class tic6x_target) <sw_breakpoint_from_kind>:
1910 (tic6x_sw_breakpoint_from_kind): Turn into...
1911 (tic6x_target::sw_breakpoint_from_kind): ...this.
1912 (the_low_target): Remove the op field.
1913 * linux-tile-low.cc (class tile_target) <sw_breakpoint_from_kind>:
1915 (tile_sw_breakpoint_from_kind): Turn into...
1916 (tile_target::sw_breakpoint_from_kind): ...this.
1917 (the_low_target): Remove the op field.
1918 * linux-xtensa-low.cc (class xtensa_target)
1919 <sw_breakpoint_from_kind>: Declare.
1920 (xtensa_sw_breakpoint_from_kind): Turn into...
1921 (xtensa_target::sw_breakpoint_from_kind): ...this.
1922 (the_low_target): Remove the op field.
1924 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1926 Remove the 'breakpoint_kind_from_pc' and
1927 'breakpoint_kind_from_current_state' linux target ops, and let the
1928 concrete linux target define them by overriding the ops of
1929 process_stratum_target.
1931 * linux-low.cc (linux_process_target::breakpoint_kind_from_pc):
1933 (linux_process_target::breakpoint_kind_from_current_state): Remove.
1934 * linux-low.h (struct linux_target_ops): Remove ops.
1935 (class linux_process_target) <breakpoint_kind_from_pc>: Remove.
1936 <breakpoint_kind_from_current_state>: Remove.
1937 * linux-x86-low.cc (the_low_target): Remove the op fields.
1938 * linux-bfin-low.cc (the_low_target): Ditto.
1939 * linux-cris-low.cc (the_low_target): Ditto.
1940 * linux-crisv32-low.cc (the_low_target): Ditto.
1941 * linux-m32r-low.cc (the_low_target): Ditto.
1942 * linux-m68k-low.cc (the_low_target): Ditto.
1943 * linux-mips-low.cc (the_low_target): Ditto.
1944 * linux-nios2-low.cc (the_low_target): Ditto.
1945 * linux-ppc-low.cc (the_low_target): Ditto.
1946 * linux-s390-low.cc (the_low_target): Ditto.
1947 * linux-sh-low.cc (the_low_target): Ditto.
1948 * linux-sparc-low.cc (the_low_target): Ditto.
1949 * linux-tic6x-low.cc (the_low_target): Ditto.
1950 * linux-tile-low.cc (the_low_target): Ditto.
1951 * linux-xtensa-low.cc (the_low_target): Ditto.
1952 * linux-aarch64-low.cc (class aarch64_target)
1953 <breakpoint_kind_from_pc>
1954 <breakpoint_kind_from_current_state>: Declare.
1955 (aarch64_breakpoint_kind_from_pc): Turn into...
1956 (aarch64_target::breakpoint_kind_from_pc): ...this.
1957 (aarch64_breakpoint_kind_from_current_state): Turn into...
1958 (aarch64_target::breakpoint_kind_from_current_state): ...this.
1959 (the_low_target): Remove the op fields.
1960 * linux-arm-low.cc (class arm_target):
1961 <breakpoint_kind_from_pc>
1962 <breakpoint_kind_from_current_state>: Declare.
1963 (arm_target::breakpoint_kind_from_pc): Define.
1964 (arm_target::breakpoint_kind_from_current_state): Define.
1965 (the_low_target): Remove the op fields.
1966 * linux-riscv-low.cc (class riscv_target):
1967 <breakpoint_kind_from_pc>: Declare.
1968 (riscv_breakpoint_kind_from_pc): Turn into...
1969 (riscv_target::breakpoint_kind_from_pc): ...this.
1970 (the_low_target): Remove the op fields.
1972 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1974 Turn the 'get_pc' and 'set_pc' linux target ops into methods
1975 of linux_process_target.
1977 * linux-low.h (struct linux_target_ops): Remove the ops.
1978 (class linux_process_target) <low_supports_breakpoints>
1980 <low_set_pc>: Declare.
1981 * linux-low.cc (supports_breakpoints): Turn into...
1982 (linux_process_target::low_supports_breakpoints): ...this.
1983 (linux_process_target::low_get_pc): Define.
1984 (linux_process_target::low_set_pc): Define.
1986 Update the callers below.
1988 (linux_process_target::get_pc)
1989 (linux_process_target::save_stop_reason)
1990 (linux_process_target::maybe_move_out_of_jump_pad)
1991 (linux_process_target::wait_1)
1992 (linux_process_target::resume_one_lwp_throw)
1993 (linux_process_target::resume)
1994 (linux_process_target::proceed_all_lwps)
1995 (linux_process_target::read_pc)
1996 (linux_process_target::write_pc)
1998 * linux-x86-low.cc (class linux_process_target)
1999 <low_supports_breakpoints>
2001 <low_set_pc>: Declare.
2002 (x86_target::low_supports_breakpoints): Define.
2003 (x86_get_pc): Turn into...
2004 (x86_target::low_get_pc): ...this.
2005 (x86_set_pc): Turn into...
2006 (x86_target::low_set_pc): ...this.
2007 (the_low_target): Remove the op fields.
2008 * linux-arm-low.cc (class arm_target)
2009 <low_supports_breakpoints>
2011 <low_set_pc>: Declare.
2012 (arm_target::low_supports_breakpoints)
2013 (arm_target::low_get_pc)
2014 (arm_target::low_set_pc): Define.
2015 (the_low_target): Remove the op fields.
2016 * linux-bfin-low.cc (class bfin_target)
2017 <low_supports_breakpoints>
2019 <low_set_pc>: Declare.
2020 (bfin_target::low_supports_breakpoints)
2021 (bfin_target::low_get_pc)
2022 (bfin_target::low_set_pc): Define.
2023 (the_low_target): Remove the op fields.
2024 * linux-cris-low.cc (class cris_target)
2025 <low_supports_breakpoints>
2027 <low_set_pc>: Declare.
2028 (cris_target::low_supports_breakpoints)
2029 (cris_target::low_get_pc)
2030 (cris_target::low_set_pc): Define.
2031 (the_low_target): Remove the op fields.
2032 * linux-crisv32-low.cc (class crisv32_target)
2033 <low_supports_breakpoints>
2035 <low_set_pc>: Declare.
2036 (crisv32_target::low_supports_breakpoints)
2037 (crisv32_target::low_get_pc)
2038 (crisv32_target::low_set_pc): Define.
2039 (the_low_target): Remove the op fields.
2040 * linux-m32r-low.cc (class m32r_target)
2041 <low_supports_breakpoints>
2043 <low_set_pc>: Declare.
2044 (m32r_target::low_supports_breakpoints)
2045 (m32r_target::low_get_pc)
2046 (m32r_target::low_set_pc): Define.
2047 (the_low_target): Remove the op fields.
2048 * linux-m68k-low.cc (class m68k_target)
2049 <low_supports_breakpoints>
2051 <low_set_pc>: Declare.
2052 (m68k_target::low_supports_breakpoints)
2053 (m68k_target::low_get_pc)
2054 (m68k_target::low_set_pc): Define.
2055 (the_low_target): Remove the op fields.
2056 * linux-nios2-low.cc (class nios2_target)
2057 <low_supports_breakpoints>
2059 <low_set_pc>: Declare.
2060 (nios2_target::low_supports_breakpoints)
2061 (nios2_target::low_get_pc)
2062 (nios2_target::low_set_pc): Define.
2063 (the_low_target): Remove the op fields.
2064 * linux-sh-low.cc (class sh_target)
2065 <low_supports_breakpoints>
2067 <low_set_pc>: Declare.
2068 (sh_target::low_supports_breakpoints)
2069 (sh_target::low_get_pc)
2070 (sh_target::low_set_pc): Define.
2071 (the_low_target): Remove the op fields.
2072 * linux-xtensa-low.cc (class xtensa_target)
2073 <low_supports_breakpoints>
2075 <low_set_pc>: Declare.
2076 (xtensa_target::low_supports_breakpoints)
2077 (xtensa_target::low_get_pc)
2078 (xtensa_target::low_set_pc): Define.
2079 (the_low_target): Remove the op fields.
2080 * linux-sparc-low.cc (class sparc_target)
2081 <low_supports_breakpoints>
2082 <low_get_pc>: Declare.
2083 (sparc_target::low_supports_breakpoints)
2084 (sparc_target::low_get_pc): Define.
2085 (the_low_target): Remove the op fields.
2086 * linux-tile-low.cc (class tile_target)
2087 <low_supports_breakpoints>
2089 <low_set_pc>: Declare.
2090 (tile_target::low_supports_breakpoints)
2091 (tile_target::low_get_pc)
2092 (tile_target::low_set_pc): Define.
2093 (the_low_target): Remove the op fields.
2094 * linux-aarch64-low.cc (class aarch64_target)
2095 <low_supports_breakpoints>
2097 <low_set_pc>: Declare.
2098 (aarch64_target::low_supports_breakpoints): Define.
2099 (aarch64_get_pc): Turn into...
2100 (aarch64_target::low_get_pc): ...this.
2101 (aarch64_set_pc): Turn into...
2102 (aarch64_target::low_set_pc): ...this.
2103 (the_low_target): Remove the op fields.
2104 * linux-mips-low.cc (class mips_target)
2105 <low_supports_breakpoints>
2107 <low_set_pc>: Declare.
2108 (mips_target::low_supports_breakpoints): Define.
2109 (mips_get_pc): Turn into...
2110 (mips_target::low_get_pc): ...this.
2111 (mips_set_pc): Turn into...
2112 (mips_target::low_set_pc): ...this.
2113 (the_low_target): Remove the op fields.
2114 * linux-ppc-low.cc (class ppc_target)
2115 <low_supports_breakpoints>
2117 <low_set_pc>: Declare.
2118 (ppc_target::low_supports_breakpoints): Define.
2119 (ppc_get_pc): Turn into...
2120 (ppc_target::low_get_pc): ...this.
2121 (ppc_set_pc): Turn into...
2122 (ppc_target::low_set_pc): ...this.
2123 (the_low_target): Remove the op fields.
2124 * linux-riscv-low.cc (class riscv_target)
2125 <low_supports_breakpoints>
2127 <low_set_pc>: Declare.
2128 (riscv_target::low_supports_breakpoints): Define.
2129 (riscv_get_pc): Turn into...
2130 (riscv_target::low_get_pc): ...this.
2131 (riscv_set_pc): Turn into...
2132 (riscv_target::low_set_pc): ...this.
2133 (the_low_target): Remove the op fields.
2134 * linux-s390-low.cc (class s390_target)
2135 <low_supports_breakpoints>
2137 <low_set_pc>: Declare.
2138 (s390_target::low_supports_breakpoints): Define.
2139 (s390_get_pc): Turn into...
2140 (s390_target::low_get_pc): ...this.
2141 (s390_set_pc): Turn into...
2142 (s390_target::low_set_pc): ...this.
2143 (the_low_target): Remove the op fields.
2144 * linux-tic6x-low.cc (class tic6x_target)
2145 <low_supports_breakpoints>
2147 <low_set_pc>: Declare.
2148 (tic6x_target::low_supports_breakpoints): Define.
2149 (tic6x_get_pc): Turn into...
2150 (tic6x_target::low_get_pc): ...this.
2151 (tic6x_set_pc): Turn into...
2152 (tic6x_target::low_set_pc): ...this.
2153 (the_low_target): Remove the op fields.
2155 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2157 Turn some more static methods in linux-low into private methods
2158 of linux_process_target.
2160 * linux-low.cc (get_pc): Turn into...
2161 (linux_process_target::get_pc): ...this.
2162 (save_stop_reason): Turn into...
2163 (linux_process_target::save_stop_reason): ...this.
2164 (thread_still_has_status_pending_p): Turn into...
2165 (linux_process_target::thread_still_has_status_pending): ...this.
2166 (status_pending_p_callback): Turn into...
2167 (linux_process_target::status_pending_p_callback): ...this.
2168 (resume_stopped_resumed_lwps): Turn into...
2169 (linux_process_target::resume_stopped_resumed_lwps): ...this.
2170 (install_software_single_step_breakpoints): Turn into...
2171 (linux_process_target::install_software_single_step_breakpoints):
2173 (single_step): Turn into...
2174 (linux_process_target::single_step): ...this.
2175 (linux_resume_one_lwp_throw): Turn into...
2176 (linux_process_target::resume_one_lwp_throw): ...this.
2177 (linux_resume_one_lwp): Turn into...
2178 (linux_process_target::resume_one_lwp): ...this.
2179 (resume_status_pending_p): Turn into...
2180 (linux_process_target::resume_status_pending): ...this.
2181 (need_step_over_p): Turn into...
2182 (linux_process_target::thread_needs_step_over): ...this.
2183 (linux_resume_one_thread): Turn into...
2184 (linux_process_target::resume_one_thread): ...this.
2185 (proceed_one_lwp): Turn into...
2186 (linux_process_target::proceed_one_lwp): ...this.
2187 (unsuspend_and_proceed_one_lwp): Turn into...
2188 (linux_process_target::unsuspend_and_proceed_one_lwp): ...this.
2190 Update the calls/references to the above functions below.
2192 (linux_process_target::handle_extended_wait)
2193 (linux_process_target::filter_event)
2194 (linux_process_target::wait_for_event_filtered)
2195 (linux_process_target::wait_1)
2196 (linux_process_target::move_out_of_jump_pad)
2197 (linux_process_target::start_step_over)
2198 (linux_process_target::resume)
2199 (linux_process_target::proceed_all_lwps)
2200 (regsets_store_inferior_registers)
2201 (linux_process_target::store_register)
2203 * linux-low.h (class linux_process_target)
2206 <thread_still_has_status_pending>
2207 <status_pending_p_callback>
2208 <resume_stopped_resumed_lwps>
2209 <install_software_single_step_breakpoints>
2211 <resume_one_lwp_throw>
2213 <resume_status_pending>
2214 <thread_needs_step_over>
2217 <unsuspend_and_proceed_one_lwp>: Declare.
2219 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2221 Turn the 'fetch_register' linux target op into a method of
2222 linux_process_target.
2224 * linux-low.h (struct linux_target_ops) <fetch_register>: Remove.
2225 (class linux_process_target) <low_fetch_register>: Declare.
2226 * linux-x86-low.cc (the_low_target)
2227 * linux-aarch64-low.cc (the_low_target)
2228 * linux-arm-low.cc (the_low_target)
2229 * linux-bfin-low.cc (the_low_target)
2230 * linux-cris-low.cc (the_low_target)
2231 * linux-crisv32-low.cc (the_low_target)
2232 * linux-m32r-low.cc (the_low_target)
2233 * linux-m68k-low.cc (the_low_target)
2234 * linux-nios2-low.cc (the_low_target)
2235 * linux-ppc-low.cc (the_low_target)
2236 * linux-s390-low.cc (the_low_target)
2237 * linux-sh-low.cc (the_low_target)
2238 * linux-sparc-low.cc (the_low_target)
2239 * linux-tic6x-low.cc (the_low_target)
2240 * linux-tile-low.cc (the_low_target)
2241 * linux-xtensa-low.cc (the_low_target): Remove the op field.
2242 * linux-ia64-low.cc (class ia64_target) <low_fetch_register>:
2244 (ia64_fetch_register): Turn into...
2245 (ia64_target::low_fetch_register): ...this.
2246 (the_low_target): Remove the op field.
2247 * linux-mips-low.cc (class mips_target) <low_fetch_register>:
2249 (mips_fetch_register): Turn into...
2250 (mips_target::low_fetch_register): ...this.
2251 (the_low_target): Remove the op field.
2252 * linux-riscv-low.cc (class riscv_target) <low_fetch_register>:
2254 (riscv_fetch_register): Turn into...
2255 (riscv_target::low_fetch_register): ...this.
2256 (the_low_target): Remove the op field.
2258 Update the callers below.
2260 * linux-low.cc (linux_process_target::fetch_registers)
2261 (linux_process_target::low_fetch_register)
2263 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2265 Turn the 'cannot_fetch_register' and 'cannot_store_register'
2266 linux target ops into methods of linux_process_target.
2268 * linux-low.h (struct linux_target_ops): Remove the low target ops.
2269 (class linux_process_target) <fetch_register>
2271 <usr_fetch_inferior_registers>
2272 <usr_store_inferior_registers>
2273 <low_cannot_fetch_register>
2274 <low_cannot_fetch_register> Declare.
2275 * linux-low.cc (fetch_register): Turn into...
2276 (linux_process_target::fetch_register): ...this.
2277 (store_register): Turn into ...
2278 (linux_process_target::store_register): ...this.
2279 (usr_fetch_inferior_registers): Turn into...
2280 (linux_process_target::usr_fetch_inferior_registers): ...this.
2281 (usr_store_inferior_registers): Turn into...
2282 (linux_process_target::usr_store_inferior_registers): ...this.
2283 * linux-x86-low.cc (class x86_target)
2284 <low_cannot_fetch_register>
2285 <low_cannot_store_register>: Declare.
2286 (x86_cannot_store_register): Turn into...
2287 (x86_target::low_cannot_store_register): ...this.
2288 (x86_cannot_fetch_register): Turn into...
2289 (x86_target::low_cannot_fetch_register): ...this.
2290 (the_low_target): Remove the target op fields.
2291 * linux-aarch64-low.cc (class aarch64_target)
2292 <low_cannot_fetch_register>
2293 <low_cannot_store_register>: Declare.
2294 (aarch64_target::low_cannot_fetch_register)
2295 (aarch64_target::low_cannot_store_register): Define.
2296 (the_low_target): Remove the op fields.
2297 * linux-arm-low.cc (class arm_target)
2298 <low_cannot_fetch_register>
2299 <low_cannot_store_register>: Declare.
2300 (arm_cannot_fetch_register): Turn into...
2301 (arm_target::low_cannot_fetch_register): ...this.
2302 (arm_cannot_store_register): Turn into...
2303 (arm_target::low_cannot_store_register): ...this.
2304 (the_low_target): Remove the op fields.
2305 * linux-bfin-low.cc (class bfin_target)
2306 <low_cannot_fetch_register>
2307 <low_cannot_store_register>: Declare.
2308 (bfin_cannot_fetch_register): Turn into...
2309 (bfin_target::low_cannot_fetch_register): ...this.
2310 (bfin_cannot_store_register): Turn into...
2311 (bfin_target::low_cannot_store_register): ...this.
2312 (the_low_target): Remove the op fields.
2313 * linux-cris-low.cc (class cris_target)
2314 <low_cannot_fetch_register>
2315 <low_cannot_store_register>: Declare.
2316 (cris_cannot_fetch_register): Turn into...
2317 (cris_target::low_cannot_fetch_register): ...this.
2318 (cris_cannot_store_register): Turn into...
2319 (cris_target::low_cannot_store_register): ...this.
2320 (the_low_target): Remove the op fields.
2321 * linux-crisv32-low.cc (class crisv32_target)
2322 <low_cannot_fetch_register>
2323 <low_cannot_store_register>: Declare.
2324 (crisv32_target::low_cannot_fetch_register)
2325 (crisv32_target::low_cannot_store_register): Define.
2326 (the_low_target): Remove the op fields.
2327 * linux-ia64-low.cc (class ia64_target)
2328 <low_cannot_fetch_register>
2329 <low_cannot_store_register>: Declare.
2330 (ia64_cannot_fetch_register): Turn into...
2331 (ia64_target::low_cannot_fetch_register): ...this.
2332 (ia64_cannot_store_register): Turn into...
2333 (ia64_target::low_cannot_store_register): ...this.
2334 (the_low_target): Remove the op fields.
2335 * linux-m32r-low.cc (class m32r_target)
2336 <low_cannot_fetch_register>
2337 <low_cannot_store_register>: Declare.
2338 (m32r_cannot_fetch_register): Turn into...
2339 (m32r_target::low_cannot_fetch_register): ...this.
2340 (m32r_cannot_store_register): Turn into...
2341 (m32r_target::low_cannot_store_register): ...this.
2342 (the_low_target): Remove the op fields.
2343 * linux-m68k-low.cc (class m68k_target)
2344 <low_cannot_fetch_register>
2345 <low_cannot_store_register>: Declare.
2346 (m68k_cannot_fetch_register): Turn into...
2347 (m68k_target::low_cannot_fetch_register): ...this.
2348 (m68k_cannot_store_register): Turn into...
2349 (m68k_target::low_cannot_store_register): ...this.
2350 (the_low_target): Remove the op fields.
2351 * linux-mips-low.cc (class mips_target)
2352 <low_cannot_fetch_register>
2353 <low_cannot_store_register>: Declare.
2354 (mips_cannot_fetch_register): Turn into...
2355 (mips_target::low_cannot_fetch_register): ...this.
2356 (mips_cannot_store_register): Turn into...
2357 (mips_target::low_cannot_store_register): ...this.
2358 (get_usrregs_info): Inline at the call sites in
2359 low_cannot_fetch_register and low_cannot_store_register,
2361 (the_low_target): Remove the op fields.
2362 * linux-nios2-low.cc (class nios2_target)
2363 <low_cannot_fetch_register>
2364 <low_cannot_store_register>: Declare.
2365 (nios2_cannot_fetch_register): Turn into...
2366 (nios2_target::low_cannot_fetch_register): ...this.
2367 (nios2_cannot_store_register): Turn into...
2368 (nios2_target::low_cannot_store_register): ...this.
2369 (the_low_target): Remove the op fields.
2370 * linux-ppc-low.cc (class ppc_target)
2371 <low_cannot_fetch_register>
2372 <low_cannot_store_register>: Declare.
2373 (ppc_cannot_fetch_register): Turn into...
2374 (ppc_target::low_cannot_fetch_register): ...this.
2375 (ppc_cannot_store_register): Turn into...
2376 (ppc_target::low_cannot_store_register): ...this.
2377 (the_low_target): Remove the op fields.
2378 * linux-riscv-low.cc (class riscv_target)
2379 <low_cannot_fetch_register>
2380 <low_cannot_store_register>: Declare.
2381 (riscv_target::low_cannot_fetch_register)
2382 (riscv_target::low_cannot_store_register): Define.
2383 (the_low_target): Remove the op fields.
2384 * linux-s390-low.cc (class s390_target)
2385 <low_cannot_fetch_register>
2386 <low_cannot_store_register>: Declare.
2387 (s390_cannot_fetch_register): Turn into...
2388 (s390_target::low_cannot_fetch_register): ...this.
2389 (s390_cannot_store_register): Turn into...
2390 (s390_target::low_cannot_store_register): ...this.
2391 (the_low_target): Remove the op fields.
2392 * linux-sh-low.cc (class sh_target)
2393 <low_cannot_fetch_register>
2394 <low_cannot_store_register>: Declare.
2395 (sh_cannot_fetch_register): Turn into...
2396 (sh_target::low_cannot_fetch_register): ...this.
2397 (sh_cannot_store_register): Turn into...
2398 (sh_target::low_cannot_store_register): ...this.
2399 (the_low_target): Remove the op fields.
2400 * linux-sparc-low.cc (class sparc_target)
2401 <low_cannot_fetch_register>
2402 <low_cannot_store_register>: Declare.
2403 (sparc_cannot_fetch_register): Turn into...
2404 (sparc_target::low_cannot_fetch_register): ...this.
2405 (sparc_cannot_store_register): Turn into...
2406 (sparc_target::low_cannot_store_register): ...this.
2407 (the_low_target): Remove the op fields.
2408 * linux-tic6x-low.cc (class tic6x_target)
2409 <low_cannot_fetch_register>
2410 <low_cannot_store_register>: Declare.
2411 (tic6x_cannot_fetch_register): Turn into...
2412 (tic6x_target::low_cannot_fetch_register): ...this.
2413 (tic6x_cannot_store_register): Turn into...
2414 (tic6x_target::low_cannot_store_register): ...this.
2415 (the_low_target): Remove the op fields.
2416 * linux-tile-low.cc (class tile_target)
2417 <low_cannot_fetch_register>
2418 <low_cannot_store_register>: Declare.
2419 (tile_cannot_fetch_register): Turn into...
2420 (tile_target::low_cannot_fetch_register): ...this.
2421 (tile_cannot_store_register): Turn into...
2422 (tile_target::low_cannot_store_register): ...this.
2423 (the_low_target): Remove the op fields.
2424 * linux-xtensa-low.cc (class xtensa_target)
2425 <low_cannot_fetch_register>
2426 <low_cannot_store_register>: Declare.
2427 (xtensa_target::low_cannot_fetch_register)
2428 (xtensa_target::low_cannot_store_register): Define.
2429 (the_low_target): Remove the op fields.
2431 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2433 Turn the 'regs_info' linux target op into a method of
2434 linux_process_target.
2436 * linux-low.h (struct linux_target_ops) <regs_info>: Remove.
2437 (class linux_process_target) <get_regs_info>: Define.
2439 Update the callers below.
2441 * linux-low.cc (linux_process_target::fetch_registers)
2442 (linux_process_target::store_registers)
2443 * proc-service.cc (gregset_info)
2445 * linux-x86-low.cc (class x86_target) <get_regs_info>: Declare.
2446 (x86_linux_regs_info): Turn into ...
2447 (x86_target::get_regs_info): ...this.
2448 (the_low_target): Remove the op field.
2449 * linux-aarch64-low.cc (class aarch64_target) <get_regs_info>:
2451 (aarch64_regs_info): Turn into ...
2452 (aarch64_target::get_regs_info): ...this.
2453 (the_low_target): Remove the op field.
2454 * linux-arm-low.cc (class arm_target) <get_regs_info>: Declare.
2455 (arm_regs_info): Turn into ...
2456 (arm_target::get_regs_info): ...this.
2457 (the_low_target): Remove the op field.
2458 * linux-bfin-low.cc (class bfin_target) <get_regs_info>: Declare.
2459 (bfin_regs_info): Turn into ...
2460 (bfin_target::get_regs_info): ...this.
2461 (the_low_target): Remove the op field.
2462 * linux-cris-low.cc (class cris_target) <get_regs_info>: Declare.
2463 (cris_regs_info): Turn into ...
2464 (cris_target::get_regs_info): ...this.
2465 (the_low_target): Remove the op field.
2466 * linux-crisv32-low.cc (class crisv32_target) <get_regs_info>:
2468 (crisv32_regs_info): Turn into ...
2469 (crisv32_target::get_regs_info): ...this.
2470 (the_low_target): Remove the op field.
2471 * linux-ia64-low.cc (class ia64_target) <get_regs_info>: Declare.
2472 (ia64_regs_info): Turn into ...
2473 (ia64_target::get_regs_info): ...this.
2474 (the_low_target): Remove the op field.
2475 * linux-m32r-low.cc (class m32r_target) <get_regs_info>: Declare.
2476 (m32r_regs_info): Turn into ...
2477 (m32r_target::get_regs_info): ...this.
2478 (the_low_target): Remove the op field.
2479 * linux-m68k-low.cc (class m68k_target) <get_regs_info>: Declare.
2480 (m68k_regs_info): Turn into ...
2481 (m68k_target::get_regs_info): ...this.
2482 (the_low_target): Remove the op field.
2483 * linux-mips-low.cc (class mips_target) <get_regs_info>: Declare.
2484 (mips_regs_info): Turn into ...
2485 (mips_target::get_regs_info): ...this.
2486 (the_low_target): Remove the op field.
2487 (get_usrregs_info): Update the call to the op.
2488 * linux-nios2-low.cc (class nios2_target) <get_regs_info>: Declare.
2489 (nios2_regs_info): Turn into ...
2490 (nios2_target::get_regs_info): ...this.
2491 (the_low_target): Remove the op field.
2492 * linux-ppc-low.cc (class ppc_target) <get_regs_info>: Declare.
2493 (ppc_regs_info): Turn into ...
2494 (ppc_target::get_regs_info): ...this.
2495 (the_low_target): Remove the op field.
2496 * linux-riscv-low.cc (class riscv_target) <get_regs_info>: Declare.
2497 (riscv_regs_info): Turn into ...
2498 (riscv_target::get_regs_info): ...this.
2499 (the_low_target): Remove the op field.
2500 * linux-s390-low.cc (class s390_target) <get_regs_info>: Declare.
2501 (s390_regs_info): Turn into ...
2502 (s390_target::get_regs_info): ...this.
2503 (the_low_target): Remove the op field.
2504 (s390_collect_ptrace_register)
2505 (s390_supply_ptrace_register)
2506 (s390_fill_gregset): Update the call to the op.
2507 * linux-sh-low.cc (class sh_target) <get_regs_info>: Declare.
2508 (sh_regs_info): Turn into ...
2509 (sh_target::get_regs_info): ...this.
2510 (the_low_target): Remove the op field.
2511 * linux-sparc-low.cc (class sparc_target) <get_regs_info>: Declare.
2512 (sparc_regs_info): Turn into ...
2513 (sparc_target::get_regs_info): ...this.
2514 (the_low_target): Remove the op field.
2515 * linux-tic6x-low.cc (class tic6x_target) <get_regs_info>: Declare.
2516 (tic6x_regs_info): Turn into ...
2517 (tic6x_target::get_regs_info): ...this.
2518 (the_low_target): Remove the op field.
2519 * linux-tile-low.cc (class tile_target) <get_regs_info>: Declare.
2520 (tile_regs_info): Turn into ...
2521 (tile_target::get_regs_info): ...this.
2522 (the_low_target): Remove the op field.
2523 * linux-xtensa-low.cc (class xtensa_target) <get_regs_info>:
2525 (xtensa_regs_info): Turn into ...
2526 (xtensa_target::get_regs_info): ...this.
2527 (the_low_target): Remove the op field.
2529 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2531 Turn the 'arch_setup' linux target op into a method of
2532 linux_process_target.
2534 * linux-low.h (struct linux_target_ops) <arch_setup>: Delete.
2535 (class linux_process_target) <arch_setup_thread>
2536 <low_arch_setup>: New declarations.
2537 * linux-low.cc (linux_arch_setup): Delete.
2538 (linux_arch_setup_thread): Turn into...
2539 (linux_process_target::arch_setup_thread): ... this.
2541 Update the callers below.
2543 (linux_process_target::handle_extended_wait)
2544 (linux_process_target::post_create_inferior)
2545 (linux_process_target::filter_event)
2547 * linux-x86-low.cc (class x86_target) <low_arch_setup>: New
2549 (x86_linux_update_xmltarget): Turn into...
2550 (x86_target::update_xmltarget): ...this.
2551 (x86_linux_process_qsupported): Update the call to
2552 x86_linux_update_xmltarget.
2553 (x86_arch_setup): Turn into ...
2554 (x86_target::low_arch_setup): ...this.
2555 (the_low_target): Remove the op field.
2556 * linux-aarch64-low.cc (class aarch64_target) <low_arch_setup>: New
2558 (aarch64_arch_setup): Turn into ...
2559 (aarch64_target::low_arch_setup): ...this.
2560 (the_low_target): Remove the op field.
2561 * linux-arm-low.cc (class arm_target) <low_arch_setup>: New
2563 (arm_arch_setup): Turn into ...
2564 (arm_target::low_arch_setup): ...this.
2565 (the_low_target): Remove the op field.
2566 * linux-bfin-low.cc (class bfin_target) <low_arch_setup>: New
2568 (bfin_arch_setup): Turn into ...
2569 (bfin_target::low_arch_setup): ...this.
2570 (the_low_target): Remove the op field.
2571 * linux-cris-low.cc (class cris_target) <low_arch_setup>: New
2573 (cris_arch_setup): Turn into ...
2574 (cris_target::low_arch_setup): ...this.
2575 (the_low_target): Remove the op field.
2576 * linux-crisv32-low.cc (class crisv32_target) <low_arch_setup>: New
2578 (crisv32_arch_setup): Turn into ...
2579 (crisv32_target::low_arch_setup): ...this.
2580 (the_low_target): Remove the op field.
2581 * linux-ia64-low.cc (class ia64_target) <low_arch_setup>: New
2583 (ia64_arch_setup): Turn into ...
2584 (ia64_target::low_arch_setup): ...this.
2585 (the_low_target): Remove the op field.
2586 * linux-m32r-low.cc (class m32r_target) <low_arch_setup>: New
2588 (m32r_arch_setup): Turn into ...
2589 (m32r_target::low_arch_setup): ...this.
2590 (the_low_target): Remove the op field.
2591 * linux-m68k-low.cc (class m68k_target) <low_arch_setup>: New
2593 (m68k_arch_setup): Turn into ...
2594 (m68k_target::low_arch_setup): ...this.
2595 (the_low_target): Remove the op field.
2596 * linux-mips-low.cc (class mips_target) <low_arch_setup>: New
2598 (mips_arch_setup): Turn into ...
2599 (mips_target::low_arch_setup): ...this.
2600 (the_low_target): Remove the op field.
2601 * linux-nios2-low.cc (class nios2_target) <low_arch_setup>: New
2603 (nios2_arch_setup): Turn into ...
2604 (nios2_target::low_arch_setup): ...this.
2605 (the_low_target): Remove the op field.
2606 * linux-ppc-low.cc (class ppc_target) <low_arch_setup>: New
2608 (ppc_arch_setup): Turn into ...
2609 (ppc_target::low_arch_setup): ...this.
2610 (the_low_target): Remove the op field.
2611 * linux-riscv-low.cc (class riscv_target) <low_arch_setup>: New
2613 (riscv_arch_setup): Turn into ...
2614 (riscv_target::low_arch_setup): ...this.
2615 (the_low_target): Remove the op field.
2616 * linux-s390-low.cc (class s390_target) <low_arch_setup>: New
2618 (s390_arch_setup): Turn into ...
2619 (s390_target::low_arch_setup): ...this.
2620 (the_low_target): Remove the op field.
2621 * linux-sh-low.cc (class sh_target) <low_arch_setup>: New
2623 (sh_arch_setup): Turn into ...
2624 (sh_target::low_arch_setup): ...this.
2625 (the_low_target): Remove the op field.
2626 * linux-sparc-low.cc (class sparc_target) <low_arch_setup>: New
2628 (sparc_arch_setup): Turn into ...
2629 (sparc_target::low_arch_setup): ...this.
2630 (the_low_target): Remove the op field.
2631 * linux-tic6x-low.cc (class tic6x_target) <low_arch_setup>: New
2633 (tic6x_arch_setup): Turn into ...
2634 (tic6x_target::low_arch_setup): ...this.
2635 (the_low_target): Remove the op field.
2636 * linux-tile-low.cc (class tile_target) <low_arch_setup>: New
2638 (tile_arch_setup): Turn into ...
2639 (tile_target::low_arch_setup): ...this.
2640 (the_low_target): Remove the op field.
2641 * linux-xtensa-low.cc (class xtensa_target) <low_arch_setup>: New
2643 (xtensa_arch_setup): Turn into ...
2644 (xtensa_target::low_arch_setup): ...this.
2645 (the_low_target): Remove the op field.
2647 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2649 * linux-low.h (the_linux_target): New extern declaration.
2650 * linux-low.cc (initialize_low): Use 'the_linux_target' to set
2652 (the_linux_target): Remove.
2653 * linux-x86-low.cc (class x86_target): New class.
2654 (the_x86_target): New static object.
2655 (the_linux_target): Define as pointer to the_x86_target.
2656 * linux-aarch64-low.cc (class aarch64_target): New class.
2657 (the_aarch64_target): New static object.
2658 (the_linux_target): Define as pointer to the_aarch64_target.
2659 * linux-arm-low.cc (class arm_target): New class.
2660 (the_arm_target): New static object.
2661 (the_linux_target): Define as pointer to the_arm_target.
2662 * linux-bfin-low.cc (class bfin_target): New class.
2663 (the_bfin_target): New static object.
2664 (the_linux_target): Define as pointer to the_bfin_target.
2665 * linux-cris-low.cc (class cris_target): New class.
2666 (the_cris_target): New static object.
2667 (the_linux_target): Define as pointer to the_cris_target.
2668 * linux-crisv32-low.cc (class crisv32_target): New class.
2669 (the_crisv32_target): New static object.
2670 (the_linux_target): Define as pointer to the_crisv32_target.
2671 * linux-ia64-low.cc (class ia64_target): New class.
2672 (the_ia64_target): New static object.
2673 (the_linux_target): Define as pointer to the_ia64_target.
2674 * linux-m32r-low.cc (class m32r_target): New class.
2675 (the_m32r_target): New static object.
2676 (the_linux_target): Define as pointer to the_m32r_target.
2677 * linux-m68k-low.cc (class m68k_target): New class.
2678 (the_m68k_target): New static object.
2679 (the_linux_target): Define as pointer to the_m68k_target.
2680 * linux-mips-low.cc (class mips_target): New class.
2681 (the_mips_target): New static object.
2682 (the_linux_target): Define as pointer to the_mips_target.
2683 * linux-nios2-low.cc (class nios2_target): New class.
2684 (the_nios2_target): New static object.
2685 (the_linux_target): Define as pointer to the_nios2_target.
2686 * linux-ppc-low.cc (class ppc_target): New class.
2687 (the_ppc_target): New static object.
2688 (the_linux_target): Define as pointer to the_ppc_target.
2689 * linux-riscv-low.cc (class riscv_target): New class.
2690 (the_riscv_target): New static object.
2691 (the_linux_target): Define as pointer to the_riscv_target.
2692 * linux-s390-low.cc (class s390_target): New class.
2693 (the_s390_target): New static object.
2694 (the_linux_target): Define as pointer to the_s390_target.
2695 * linux-sh-low.cc (class sh_target): New class.
2696 (the_sh_target): New static object.
2697 (the_linux_target): Define as pointer to the_sh_target.
2698 * linux-sparc-low.cc (class sparc_target): New class.
2699 (the_sparc_target): New static object.
2700 (the_linux_target): Define as pointer to the_sparc_target.
2701 * linux-tic6x-low.cc (class tic6x_target): New class.
2702 (the_tic6x_target): New static object.
2703 (the_linux_target): Define as pointer to the_tic6x_target.
2704 * linux-tile-low.cc (class tile_target): New class.
2705 (the_tile_target): New static object.
2706 (the_linux_target): Define as pointer to the_tile_target.
2707 * linux-xtensa-low.cc (class xtensa_target): New class.
2708 (the_xtensa_target): New static object.
2709 (the_linux_target): Define as pointer to the_xtensa_target.
2711 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2713 Turn some static functions in linux-low.cc into private methods of
2714 linux_process_target.
2716 * linux-low.cc (handle_extended_wait): Turn into ...
2717 (linux_process_target::handle_extended_wait): ...this. Call
2718 'mourn' on 'this' object instead of 'the_target'.
2719 (maybe_move_out_of_jump_pad): Turn into...
2720 (linux_process_target::maybe_move_out_of_jump_pad): ...this.
2721 (linux_low_filter_event): Turn into...
2722 (linux_process_target::filter_event): ...this.
2723 (linux_wait_for_event_filtered): Turn into...
2724 (linux_process_target::wait_for_event_filtered): ...this.
2725 (linux_wait_for_event): Turn into...
2726 (linux_process_target::wait_for_event): ...this.
2727 (linux_wait_1): Turn into...
2728 (linux_process_target::wait_1): ...this.
2729 (wait_for_sigstop): Turn into...
2730 (linux_process_target::wait_for_sigstop): ...this.
2731 (move_out_of_jump_pad_callback): Turn into...
2732 (linux_process_target::move_out_of_jump_pad): ...this.
2733 (stop_all_lwps): Turn into...
2734 (linux_process_target::stop_all_lwps): ...this.
2735 (start_step_over): Turn into...
2736 (linux_process_target::start_step_over): ...this.
2737 (complete_ongoing_step_over): Turn into...
2738 (linux_process_target::complete_ongoing_step_over): ...this.
2739 (proceed_all_lwps): Turn into...
2740 (linux_process_target::proceed_all_lwps): ...this.
2741 (unstop_all_lwps): Turn into...
2742 (linux_process_target::unstop_all_lwps): ...this.
2744 * linux-low.h (class linux_process_target)
2745 <handle_extended_wait>
2746 <maybe_move_out_of_jump_pad>
2748 <wait_for_event_filtered>
2752 <move_out_of_jump_pad>
2755 <complete_ongoing_step_over>
2757 <unstop_all_lwps>: Declare.
2759 Update the callers below.
2761 * linux-low.cc (linux_process_target::attach): Update.
2762 (linux_process_target::stabilize_threads): Ditto.
2763 (linux_process_target::wait): Ditto.
2765 2020-04-02 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2767 * linux-low.h (struct linux_target_ops): Update the comment for
2768 'cannot_store_register' to return 0 or 1.
2769 * linux-ppc-low.cc (ppc_cannot_store_register): Return 1 instead
2772 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2774 * config.in: Re-generate.
2775 * configure: Re-generate.
2777 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2779 * regcache.cc (find_register_by_number): Update.
2780 * tdesc.cc (init_target_desc): Likewise.
2781 * tdesc.h (target_desc::reg_defs): Likewise.
2783 2020-03-12 Tom Tromey <tom@tromey.com>
2785 * configure: Rebuild.
2786 * configure.ac (GDBSERVER_DEPFILES): Remove srv_selftest_objs.
2787 (WIN32APILIBS): New subst.
2788 * Makefile.in (SFILES, OBS, TAGS, GDBREPLAY_OBS): Remove
2790 (gdbsupport/%.o): Remove target.
2791 (GDBSUPPORT_BUILDDIR, GDBSUPPORT): New variables.
2792 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Add GDBSUPPORT.
2793 (WIN32APILIBS): New variable.
2794 (gdbserver$(EXEEXT)): Add WIN32APILIBS.
2795 (gdbreplay$(EXEEXT)): Likewise.
2797 2020-03-12 Tom Tromey <tom@tromey.com>
2799 * config.in, configure: Rebuild.
2800 * configure.ac: Call ZW_GNU_GETTEXT_SISTER_DIR.
2801 * acinclude.m4: Include gettext-sister.m4.
2802 * Makefile.in (top_builddir, INTL, INTL_DEPS, INTL_CFLAGS): New
2804 (INCLUDE_CFLAGS): Add INTL_CFLAGS.
2805 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Use INTL_DEPS, INTL.
2807 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2809 * acinclude.m4: Update path to selftest.m4.
2811 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2813 * configure.ac: Don't source bfd/development.sh, move
2814 GDB_AC_COMMON higher.
2815 * configure: Re-generate.
2817 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2819 * configure: Re-generate.
2821 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2823 * configure: Re-generate.
2825 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2827 * .dir-locals.el: New file.
2829 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2831 * .gitattributes: New file.
2833 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2835 * remote-utils.cc (prepare_resume_reply): Add ability to convert T
2836 reply into an S reply.
2837 * server.cc (disable_packet_T): New global.
2838 (captured_main): Set new global when appropriate.
2839 * server.h (disable_packet_T): Declare.
2841 2020-02-21 Tom Tromey <tom@tromey.com>
2843 * Makefile.in (mostlyclean): New target.
2845 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2847 * target.h (struct process_stratum_target): Remove.
2848 (class process_target): Rename to ...
2849 (class process_stratum_target): ... this.
2850 * linux-low.h (class linux_process_target): Derive from
2851 'process_stratum_target'.
2852 * linux-low.cc (linux_target_ops): Remove.
2853 (initialize_low): Set the_target to the singleton instance of
2854 linux_process_target.
2855 * lynx-low.h (class lynx_process_target): Derive from
2856 'process_stratum_target'.
2857 * lynx-low.cc (lynx_target_ops): Remove.
2858 (initialize_low): Set the_target to the singleton instance of
2859 lynx_process_target.
2860 * nto-low.h (class nto_process_target): Derive from
2861 'process_stratum_target'.
2862 * nto-low.cc (nto_target_ops): Remove.
2863 (initialize_low): Set the_target to the singleton instance of
2865 * win32-low.h (class win32_process_target): Derive from
2866 'process_stratum_target'.
2867 * win32-low.cc (win32_target_ops): Remove.
2868 (initialize_low): Set the_target to the singleton instance of
2869 win32_process_target.
2871 Replace 'the_target->pt' with 'the_target' in the uses below.
2873 * hostio.cc (hostio_error)
2878 * linux-aarch32-low.cc (arm_breakpoint_at)
2879 * linux-aarch64-low.cc (aarch64_breakpoint_at)
2880 * linux-arm-low.cc (arm_sigreturn_next_pc)
2882 (arm_get_syscall_trapinfo)
2883 * linux-cris-low.cc (cris_breakpoint_at)
2884 * linux-crisv32-low.cc (cris_breakpoint_at)
2885 * linux-low.cc (handle_extended_wait)
2888 (linux_process_target::breakpoint_kind_from_pc)
2890 * linux-m32r-low.cc (m32r_breakpoint_at)
2891 * linux-mips-low.cc (mips_breakpoint_at)
2892 * linux-nios2-low.cc (nios2_breakpoint_at)
2893 * linux-ppc-low.cc (ppc_breakpoint_at)
2894 * linux-s390-low.cc (s390_get_hwcap)
2895 * linux-sh-low.cc (sh_breakpoint_at)
2896 * linux-sparc-low.cc (sparc_fill_gregset_to_stack)
2897 (sparc_store_gregset_from_stack)
2898 (sparc_breakpoint_at)
2899 * linux-tic6x-low.cc (tic6x_breakpoint_at)
2900 * linux-tile-low.cc (tile_breakpoint_at)
2901 * linux-x86-low.cc (x86_breakpoint_at)
2902 * linux-xtensa-low.cc (xtensa_breakpoint_at)
2903 * mem-break.cc (bp_size)
2905 (insert_memory_breakpoint)
2906 (set_raw_breakpoint_at)
2907 (delete_raw_breakpoint)
2909 (uninsert_raw_breakpoint)
2910 (reinsert_raw_breakpoint)
2911 (validate_inserted_breakpoint)
2912 * regcache.cc (regcache_read_pc)
2914 * remote-utils.cc (putpkt_binary_1)
2917 (prepare_resume_reply)
2918 * server.cc (handle_general_set)
2921 (handle_qxfer_exec_file)
2922 (handle_qxfer_libraries_svr4)
2923 (handle_qxfer_osdata)
2924 (handle_qxfer_siginfo)
2925 (handle_qxfer_fdpic)
2929 (queue_stop_reply_callback)
2931 * target.cc (prepare_to_access_memory)
2932 (done_accessing_memory)
2933 (read_inferior_memory)
2934 (target_write_memory)
2935 (target_stop_and_wait)
2937 (target_mourn_inferior)
2938 (target_continue_no_signal)
2940 (target_supports_multi_process)
2943 (target_create_inferior)
2944 (target_post_create_inferior)
2946 (target_supports_fork_events)
2947 (target_supports_vfork_events)
2948 (target_supports_exec_events)
2949 (target_handle_new_gdb_connection)
2952 (fetch_inferior_registers)
2953 (store_inferior_registers)
2955 (target_supports_non_stop)
2957 (target_process_qsupported)
2958 (target_supports_catch_syscall)
2959 (target_get_ipa_tdesc_idx)
2960 (target_supports_tracepoints)
2961 (target_supports_fast_tracepoints)
2962 (target_get_min_fast_tracepoint_insn_len)
2963 (target_thread_stopped)
2965 (target_unpause_all)
2966 (target_stabilize_threads)
2967 (target_install_fast_tracepoint_jump_pad)
2969 (target_supports_disable_randomization)
2970 (target_supports_agent)
2971 (target_enable_btrace)
2972 (target_disable_btrace)
2973 (target_read_btrace)
2974 (target_read_btrace_conf)
2975 (target_supports_range_stepping)
2976 (target_supports_stopped_by_sw_breakpoint)
2977 (target_stopped_by_sw_breakpoint)
2978 (target_supports_stopped_by_hw_breakpoint)
2979 (target_supports_hardware_single_step)
2980 (target_stopped_by_hw_breakpoint)
2981 (target_breakpoint_kind_from_pc)
2982 (target_breakpoint_kind_from_current_state)
2983 (target_supports_software_single_step)
2984 (target_core_of_thread)
2985 (target_thread_name)
2986 (target_thread_handle)
2987 * win32-low.cc (do_initial_child_stuff)
2989 Rename target op default definitions listed below.
2991 * target.cc (process_target::post_create_inferior): Rename as ...
2992 (process_stratum_target::post_create_inferior): ... this.
2993 (process_target::prepare_to_access_memory): Rename as ...
2994 (process_stratum_target::prepare_to_access_memory): ... this.
2995 (process_target::done_accessing_memory): Rename as ...
2996 (process_stratum_target::done_accessing_memory): ... this.
2997 (process_target::look_up_symbols): Rename as ...
2998 (process_stratum_target::look_up_symbols): ... this.
2999 (process_target::supports_read_auxv): Rename as ...
3000 (process_stratum_target::supports_read_auxv): ... this.
3001 (process_target::read_auxv): Rename as ...
3002 (process_stratum_target::read_auxv): ... this.
3003 (process_target::supports_z_point_type): Rename as ...
3004 (process_stratum_target::supports_z_point_type): ... this.
3005 (process_target::insert_point): Rename as ...
3006 (process_stratum_target::insert_point): ... this.
3007 (process_target::remove_point): Rename as ...
3008 (process_stratum_target::remove_point): ... this.
3009 (process_target::stopped_by_sw_breakpoint): Rename as ...
3010 (process_stratum_target::stopped_by_sw_breakpoint): ... this.
3011 (process_target::supports_stopped_by_sw_breakpoint): Rename as ...
3012 (process_stratum_target::supports_stopped_by_sw_breakpoint): ... this.
3013 (process_target::stopped_by_hw_breakpoint): Rename as ...
3014 (process_stratum_target::stopped_by_hw_breakpoint): ... this.
3015 (process_target::supports_stopped_by_hw_breakpoint): Rename as ...
3016 (process_stratum_target::supports_stopped_by_hw_breakpoint): ... this.
3017 (process_target::supports_hardware_single_step): Rename as ...
3018 (process_stratum_target::supports_hardware_single_step): ... this.
3019 (process_target::stopped_by_watchpoint): Rename as ...
3020 (process_stratum_target::stopped_by_watchpoint): ... this.
3021 (process_target::stopped_data_address): Rename as ...
3022 (process_stratum_target::stopped_data_address): ... this.
3023 (process_target::supports_read_offsets): Rename as ...
3024 (process_stratum_target::supports_read_offsets): ... this.
3025 (process_target::read_offsets): Rename as ...
3026 (process_stratum_target::read_offsets): ... this.
3027 (process_target::supports_get_tls_address): Rename as ...
3028 (process_stratum_target::supports_get_tls_address): ... this.
3029 (process_target::get_tls_address): Rename as ...
3030 (process_stratum_target::get_tls_address): ... this.
3031 (process_target::hostio_last_error): Rename as ...
3032 (process_stratum_target::hostio_last_error): ... this.
3033 (process_target::supports_qxfer_osdata): Rename as ...
3034 (process_stratum_target::supports_qxfer_osdata): ... this.
3035 (process_target::qxfer_osdata): Rename as ...
3036 (process_stratum_target::qxfer_osdata): ... this.
3037 (process_target::supports_qxfer_siginfo): Rename as ...
3038 (process_stratum_target::supports_qxfer_siginfo): ... this.
3039 (process_target::qxfer_siginfo): Rename as ...
3040 (process_stratum_target::qxfer_siginfo): ... this.
3041 (process_target::supports_non_stop): Rename as ...
3042 (process_stratum_target::supports_non_stop): ... this.
3043 (process_target::async): Rename as ...
3044 (process_stratum_target::async): ... this.
3045 (process_target::start_non_stop): Rename as ...
3046 (process_stratum_target::start_non_stop): ... this.
3047 (process_target::supports_multi_process): Rename as ...
3048 (process_stratum_target::supports_multi_process): ... this.
3049 (process_target::supports_fork_events): Rename as ...
3050 (process_stratum_target::supports_fork_events): ... this.
3051 (process_target::supports_vfork_events): Rename as ...
3052 (process_stratum_target::supports_vfork_events): ... this.
3053 (process_target::supports_exec_events): Rename as ...
3054 (process_stratum_target::supports_exec_events): ... this.
3055 (process_target::handle_new_gdb_connection): Rename as ...
3056 (process_stratum_target::handle_new_gdb_connection): ... this.
3057 (process_target::handle_monitor_command): Rename as ...
3058 (process_stratum_target::handle_monitor_command): ... this.
3059 (process_target::core_of_thread): Rename as ...
3060 (process_stratum_target::core_of_thread): ... this.
3061 (process_target::supports_read_loadmap): Rename as ...
3062 (process_stratum_target::supports_read_loadmap): ... this.
3063 (process_target::read_loadmap): Rename as ...
3064 (process_stratum_target::read_loadmap): ... this.
3065 (process_target::process_qsupported): Rename as ...
3066 (process_stratum_target::process_qsupported): ... this.
3067 (process_target::supports_tracepoints): Rename as ...
3068 (process_stratum_target::supports_tracepoints): ... this.
3069 (process_target::read_pc): Rename as ...
3070 (process_stratum_target::read_pc): ... this.
3071 (process_target::write_pc): Rename as ...
3072 (process_stratum_target::write_pc): ... this.
3073 (process_target::supports_thread_stopped): Rename as ...
3074 (process_stratum_target::supports_thread_stopped): ... this.
3075 (process_target::thread_stopped): Rename as ...
3076 (process_stratum_target::thread_stopped): ... this.
3077 (process_target::supports_get_tib_address): Rename as ...
3078 (process_stratum_target::supports_get_tib_address): ... this.
3079 (process_target::get_tib_address): Rename as ...
3080 (process_stratum_target::get_tib_address): ... this.
3081 (process_target::pause_all): Rename as ...
3082 (process_stratum_target::pause_all): ... this.
3083 (process_target::unpause_all): Rename as ...
3084 (process_stratum_target::unpause_all): ... this.
3085 (process_target::stabilize_threads): Rename as ...
3086 (process_stratum_target::stabilize_threads): ... this.
3087 (process_target::supports_fast_tracepoints): Rename as ...
3088 (process_stratum_target::supports_fast_tracepoints): ... this.
3089 (process_target::get_min_fast_tracepoint_insn_len): Rename as ...
3090 (process_stratum_target::get_min_fast_tracepoint_insn_len): ... this.
3091 (process_target::emit_ops): Rename as ...
3092 (process_stratum_target::emit_ops): ... this.
3093 (process_target::supports_disable_randomization): Rename as ...
3094 (process_stratum_target::supports_disable_randomization): ... this.
3095 (process_target::supports_qxfer_libraries_svr4): Rename as ...
3096 (process_stratum_target::supports_qxfer_libraries_svr4): ... this.
3097 (process_target::qxfer_libraries_svr4): Rename as ...
3098 (process_stratum_target::qxfer_libraries_svr4): ... this.
3099 (process_target::supports_agent): Rename as ...
3100 (process_stratum_target::supports_agent): ... this.
3101 (process_target::enable_btrace): Rename as ...
3102 (process_stratum_target::enable_btrace): ... this.
3103 (process_target::disable_btrace): Rename as ...
3104 (process_stratum_target::disable_btrace): ... this.
3105 (process_target::read_btrace): Rename as ...
3106 (process_stratum_target::read_btrace): ... this.
3107 (process_target::read_btrace_conf): Rename as ...
3108 (process_stratum_target::read_btrace_conf): ... this.
3109 (process_target::supports_range_stepping): Rename as ...
3110 (process_stratum_target::supports_range_stepping): ... this.
3111 (process_target::supports_pid_to_exec_file): Rename as ...
3112 (process_stratum_target::supports_pid_to_exec_file): ... this.
3113 (process_target::pid_to_exec_file): Rename as ...
3114 (process_stratum_target::pid_to_exec_file): ... this.
3115 (process_target::supports_multifs): Rename as ...
3116 (process_stratum_target::supports_multifs): ... this.
3117 (process_target::multifs_open): Rename as ...
3118 (process_stratum_target::multifs_open): ... this.
3119 (process_target::multifs_unlink): Rename as ...
3120 (process_stratum_target::multifs_unlink): ... this.
3121 (process_target::multifs_readlink): Rename as ...
3122 (process_stratum_target::multifs_readlink): ... this.
3123 (process_target::breakpoint_kind_from_pc): Rename as ...
3124 (process_stratum_target::breakpoint_kind_from_pc): ... this.
3125 (process_target::breakpoint_kind_from_current_state): Rename as ...
3126 (process_stratum_target::breakpoint_kind_from_current_state): ... this.
3127 (process_target::thread_name): Rename as ...
3128 (process_stratum_target::thread_name): ... this.
3129 (process_target::thread_handle): Rename as ...
3130 (process_stratum_target::thread_handle): ... this.
3131 (process_target::supports_software_single_step): Rename as ...
3132 (process_stratum_target::supports_software_single_step): ... this.
3133 (process_target::supports_catch_syscall): Rename as ...
3134 (process_stratum_target::supports_catch_syscall): ... this.
3135 (process_target::get_ipa_tdesc_idx): Rename as ...
3136 (process_stratum_target::get_ipa_tdesc_idx): ... this.
3138 2020-02-20 Pedro Alves <palves@redhat.com>
3140 * target.cc (set_target_ops): Simply copy the given target pointer
3141 instead of creating a copy of the pointed object.
3143 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3145 Turn process_stratum_target's get_ipa_tdesc_idx op into a method
3148 * target.h (struct process_stratum_target): Remove the target op.
3149 (class process_target): Add the target op.
3150 (target_get_ipa_tdesc_idx): Update the macro.
3151 * target.cc (process_target::get_ipa_tdesc_idx): Define.
3153 Update the derived classes and callers below.
3155 * linux-low.cc (linux_target_ops): Update.
3156 (linux_get_ipa_tdesc_idx): Turn into ...
3157 (linux_process_target::get_ipa_tdesc_idx): ... this.
3158 * linux-low.h (class linux_process_target): Update.
3159 * lynx-low.cc (lynx_target_ops): Update.
3160 * nto-low.cc (nto_target_ops): Update.
3161 * win32-low.cc (win32_target_ops): Update.
3163 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3165 Turn process_stratum_target's supports_catch_syscall op into a
3166 method of process_target.
3168 * target.h (struct process_stratum_target): Remove the target op.
3169 (class process_target): Add the target op.
3170 (target_supports_catch_syscall): Update the macro.
3171 * target.cc (process_target::supports_catch_syscall): Define.
3173 Update the derived classes and callers below.
3175 * linux-low.cc (linux_target_ops): Update.
3176 (linux_supports_catch_syscall): Turn into ...
3177 (linux_process_target::supports_catch_syscall): ... this.
3178 * linux-low.h (class linux_process_target): Update.
3179 * lynx-low.cc (lynx_target_ops): Update.
3180 * nto-low.cc (nto_target_ops): Update.
3181 * win32-low.cc (win32_target_ops): Update.
3183 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3185 Turn process_stratum_target's supports_software_single_step op
3186 into a method of process_target.
3188 * target.h (struct process_stratum_target): Remove the target op.
3189 (class process_target): Add the target op.
3190 (target_supports_software_single_step): Update the macro.
3191 * target.cc (process_target::supports_software_single_step): Define.
3193 Update the derived classes and callers below.
3195 * linux-low.cc (linux_target_ops): Update.
3196 (linux_supports_software_single_step): Turn into ...
3197 (linux_process_target::supports_software_single_step): ... this.
3198 * linux-low.h (class linux_process_target): Update.
3199 * lynx-low.cc (lynx_target_ops): Update.
3200 * nto-low.cc (nto_target_ops): Update.
3201 * win32-low.cc (win32_target_ops): Update.
3203 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3205 Turn process_stratum_target's thread_name and thread_handle ops
3206 into methods of process_target.
3208 * target.h (struct process_stratum_target): Remove the target ops.
3209 (class process_target): Add the target ops.
3210 (target_thread_name): Update the macro.
3211 (target_thread_handle): Update the macro.
3212 * target.cc (process_target::thread_name): Define.
3213 (process_target::thread_handle): Define.
3215 Update the derived classes and callers below.
3217 * linux-low.cc (linux_target_ops): Update.
3218 (linux_process_target::thread_name): Define.
3219 (linux_process_target::thread_handle): Define.
3220 * linux-low.h (class linux_process_target): Update.
3221 * lynx-low.cc (lynx_target_ops): Update.
3222 * nto-low.cc (nto_target_ops): Update.
3223 * win32-low.cc (win32_target_ops): Update.
3225 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3227 Turn process_stratum_target's breakpoint_kind_from_pc,
3228 sw_breakpoint_from_kind, and breakpoint_kind_from_current_state
3229 ops into methods of process_target.
3231 * target.h (struct process_stratum_target): Remove the target op.
3232 (class process_target): Add the target op.
3233 (target_breakpoint_kind_from_pc): Update the macro.
3234 (target_breakpoint_kind_from_current_state): Update the macro.
3235 (default_breakpoint_kind_from_pc): Remove declaration.
3236 * target.cc (default_breakpoint_kind_from_pc): Turn into ...
3237 (process_target::breakpoint_kind_from_pc): ... this.
3238 (process_target::breakpoint_kind_from_current_state): Define.
3240 Update the derived classes and callers below.
3242 * mem-break.cc (bp_size): Update.
3243 (bp_opcode): Update.
3244 * linux-low.cc (linux_target_ops): Update.
3245 (linux_wait_1): Update.
3246 (linux_breakpoint_kind_from_pc): Turn into ...
3247 (linux_process_target::breakpoint_kind_from_pc): ... this.
3248 (linux_sw_breakpoint_from_kind): Turn into ...
3249 (linux_process_target::sw_breakpoint_from_kind): ... this.
3250 (linux_breakpoint_kind_from_current_state): Turn into ...
3251 (linux_process_target::breakpoint_kind_from_current_state): ... this.
3252 * linux-low.h (class linux_process_target): Update.
3253 * lynx-low.cc (lynx_target_ops): Update.
3254 (lynx_process_target::sw_breakpoint_from_kind): Define.
3255 * lynx-low.h (class lynx_process_target): Update.
3256 * nto-low.cc (nto_target_ops): Update.
3257 (nto_sw_breakpoint_from_kind): Turn into ...
3258 (nto_process_target::sw_breakpoint_from_kind): ... this.
3259 * nto-low.h (class nto_process_target): Update.
3260 * win32-low.cc (win32_target_ops): Update.
3261 (win32_sw_breakpoint_from_kind): Turn into ...
3262 (win32_process_target::sw_breakpoint_from_kind): ... this.
3263 * win32-low.h (class win32_process_target): Update.
3265 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3267 Turn process_stratum_target's multifs_open, multifs_readlink,
3268 multifs_unlink ops into methods of process_target.
3270 * target.h (struct process_stratum_target): Remove the target ops.
3271 (class process_target): Add the target ops. Also add
3273 * target.cc: Include "fcntl.h", "unistd.h", "sys/types.h", and
3275 (process_target::supports_multifs): Define.
3276 (process_target::multifs_open): Define.
3277 (process_target::multifs_readlink): Define.
3278 (process_target::multifs_unlink): Define.
3280 Update the derived classes and callers below.
3282 * hostio.cc (handle_setfs): Update.
3283 (handle_open): Update.
3284 (handle_unlink): Update.
3285 (handle_readlink): Update.
3286 * linux-low.cc (linux_target_ops): Update.
3287 (linux_process_target::supports_multifs): Define.
3288 (linux_process_target::multifs_open): Define.
3289 (linux_process_target::multifs_readlink): Define.
3290 (linux_process_target::multifs_unlink): Define.
3291 * linux-low.h (class linux_process_target): Update.
3292 * lynx-low.cc (lynx_target_ops): Update.
3293 * nto-low.cc (nto_target_ops): Update.
3294 * win32-low.cc (win32_target_ops): Update.
3296 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3298 Turn process_stratum_target's pid_to_exec_file op into a method
3301 * target.h (struct process_stratum_target): Remove the target op.
3302 (class process_target): Add the target op. Also add
3303 'supports_pid_to_exec_file'.
3304 * target.cc (process_target::pid_to_exec_file): Define.
3305 (process_target::supports_pid_to_exec_file): Define.
3307 Update the derived classes and callers below.
3309 * server.cc (handle_qxfer_exec_file): Update.
3310 (handle_query): Update.
3311 * linux-low.cc (linux_target_ops): Update.
3312 (linux_process_target::supports_pid_to_exec_file): Define.
3313 (linux_process_target::pid_to_exec_file): Define.
3314 * linux-low.h (class linux_process_target): Update.
3315 * lynx-low.cc (lynx_target_ops): Update.
3316 * nto-low.cc (nto_target_ops): Update.
3317 * win32-low.cc (win32_target_ops): Update.
3319 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3321 Turn process_stratum_target's supports_range_stepping op into a
3322 method of process_target.
3324 * target.h (struct process_stratum_target): Remove the target op.
3325 (class process_target): Add the target op.
3326 (target_supports_range_stepping): Update the macro.
3327 * target.cc (process_target::supports_range_stepping): Define.
3329 Update the derived classes and callers below.
3331 * linux-low.cc (linux_target_ops): Update.
3332 (linux_supports_range_stepping): Turn into ...
3333 (linux_process_target::supports_range_stepping): ... this.
3334 * linux-low.h (class linux_process_target): Update.
3335 * lynx-low.cc (lynx_target_ops): Update.
3336 * nto-low.cc (nto_target_ops): Update.
3337 * win32-low.cc (win32_target_ops): Update.
3339 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3341 Turn process_stratum_target's btrace-related ops (enable_btrace,
3342 disable_btrace, read_btrace, read_btrace_conf) into methods of
3345 * target.h (struct process_stratum_target): Remove the target ops.
3346 (class process_target): Add the target ops.
3347 (target_enable_btrace): Update.
3348 (target_disable_btrace): Update.
3349 (target_read_btrace): Update.
3350 (target_read_btrace_conf): Update.
3351 * target.cc (process_target::enable_btrace): Define.
3352 (process_target::disable_btrace): Define.
3353 (process_target::read_btrace): Define.
3354 (process_target::read_btrace_conf): Define.
3356 Update the derived classes and callers below.
3358 * linux-low.cc (linux_target_ops): Update.
3359 (linux_process_target:enable_btrace): Define as a wrapper around
3360 linux_enable_btrace.
3361 (linux_low_disable_btrace): Turn into ...
3362 (linux_process_target::disable_btrace): ... this.
3363 (linux_low_read_btrace): Turn into ...
3364 (linux_process_target::read_btrace): ... this.
3365 (linux_low_btrace_conf): Turn into ...
3366 (linux_process_target::read_btrace_conf): ... this.
3367 * linux-low.h (class linux_process_target): Update.
3368 * lynx-low.cc (lynx_target_ops): Update.
3369 * nto-low.cc (nto_target_ops): Update.
3370 * win32-low.cc (win32_target_ops): Update.
3372 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3374 Turn process_stratum_target's supports_agent op into a method of
3377 * target.h (struct process_stratum_target): Remove the target op.
3378 (class process_target): Add the target op.
3379 (target_supports_agent): Update the macro.
3380 * target.cc (process_target::supports_agent): Define.
3382 Update the derived classes and callers below.
3384 * linux-low.cc (linux_target_ops): Update.
3385 (linux_supports_agent): Turn into ...
3386 (linux_process_target::supports_agent): ... this.
3387 * linux-low.h (class linux_process_target): Update.
3388 * lynx-low.cc (lynx_target_ops): Update.
3389 * nto-low.cc (nto_target_ops): Update.
3390 * win32-low.cc (win32_target_ops): Update.
3392 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3394 Turn process_stratum_target's qxfer_libraries_svr4 op into a
3395 method of process_target.
3397 * target.h (struct process_stratum_target): Remove the target op.
3398 (class process_target): Add the target op. Also add
3399 'supports_qxfer_libraries_svr4'.
3400 * target.cc (process_target::qxfer_libraries_svr4): Define.
3401 (process_target::supports_qxfer_libraries_svr4): Define.
3403 Update the derived classes and callers below.
3405 * server.cc (handle_qxfer_libraries_svr4): Update.
3406 (handle_query): Update.
3407 * linux-low.cc (linux_target_ops): Update.
3408 (linux_process_target::supports_qxfer_libraries_svr4): Define.
3409 (linux_qxfer_libraries_svr4): Turn into ...
3410 (linux_process_target::qxfer_libraries_svr4): ... this.
3411 * linux-low.h (class linux_process_target): Update.
3412 * lynx-low.cc (lynx_target_ops): Update.
3413 * nto-low.cc (nto_target_ops): Update.
3414 * win32-low.cc (win32_target_ops): Update.
3416 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3418 Turn process_stratum_target's supports_disable_randomization op
3419 into a method of process_target.
3421 * target.h (struct process_stratum_target): Remove the target op.
3422 (class process_target): Add the target op.
3423 (target_supports_disable_randomization): Update the macro.
3424 * target.cc (process_target::supports_disable_randomization): Define.
3426 Update the derived classes and callers below.
3428 * linux-low.cc (linux_target_ops): Update.
3429 (linux_supports_disable_randomization): Turn into ...
3430 (linux_process_target::supports_disable_randomization): ... this.
3431 * linux-low.h (class linux_process_target): Update.
3432 * lynx-low.cc (lynx_target_ops): Update.
3433 * nto-low.cc (nto_target_ops): Update.
3434 * win32-low.cc (win32_target_ops): Update.
3436 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3438 Turn process_stratum_target's emit_ops op into a method of
3441 * target.h (struct process_stratum_target): Remove the target op.
3442 (class process_target): Add the target op.
3443 (target_emit_ops): Update the macro.
3444 * target.cc (process_target::emit_ops): Define.
3446 Update the derived classes and callers below.
3448 * linux-low.cc (linux_target_ops): Update.
3449 (linux_emit_ops): Turn into ...
3450 (linux_process_target::emit_ops): ... this.
3451 * linux-low.h (class linux_process_target): Update.
3452 * lynx-low.cc (lynx_target_ops): Update.
3453 * nto-low.cc (nto_target_ops): Update.
3454 * win32-low.cc (win32_target_ops): Update.
3456 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3458 Turn process_stratum_target's install_fast_tracepoint_jump_pad
3459 and get_min_fast_tracepoint_insn_len ops into methods of
3462 * target.h (struct process_stratum_target): Remove the target ops.
3463 (class process_target): Add the target ops. Also add
3464 'supports_fast_tracepoints'.
3465 (target_supports_fast_tracepoints): Update the macro.
3466 (target_get_min_fast_tracepoint_insn_len): Update the macro.
3467 (install_fast_tracepoint_jump_pad): Update and rename the macro
3469 (target_install_fast_tracepoint_jump_pad): ... this.
3470 * target.cc (process_target::supports_fast_tracepoints): Define.
3471 (process_target::install_fast_tracepoint_jump_pad): Define.
3472 (process_target::get_min_fast_tracepoint_insn_len): Define.
3474 Update the derived classes and callers below.
3476 * tracepoint.cc (install_fast_tracepoint): Update.
3477 * linux-low.cc (linux_target_ops): Update.
3478 (linux_process_target::supports_fast_tracepoints): Define.
3479 (linux_install_fast_tracepoint_jump_pad): Turn into ...
3480 (linux_process_target::install_fast_tracepoint_jump_pad): ... this.
3481 (linux_get_min_fast_tracepoint_insn_len): Turn into ...
3482 (linux_process_target::get_min_fast_tracepoint_insn_len): ... this.
3483 * linux-low.h (class linux_process_target): Update.
3484 * lynx-low.cc (lynx_target_ops): Update.
3485 * nto-low.cc (nto_target_ops): Update.
3486 * win32-low.cc (win32_target_ops): Update.
3488 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3490 Turn process_stratum_target's stabilize_threads op into a
3491 method of process_target.
3493 * target.h (struct process_stratum_target): Remove the target op.
3494 (class process_target): Add the target op.
3495 (target_stabilize_threads): Update the macro.
3496 * target.cc (process_target::stabilize_threads): Define.
3498 Update the derived classes and callers below.
3500 * server.cc (handle_status): Update.
3501 * tracepoint.cc (cmd_qtdp): Update.
3502 (cmd_qtstart): Update.
3503 * linux-low.cc (linux_target_ops): Update.
3504 (linux_stabilize_threads): Turn into ...
3505 (linux_process_target::stabilize_threads): ... this.
3506 (linux_wait_1): Update.
3507 * linux-low.h (class linux_process_target): Update.
3508 * lynx-low.cc (lynx_target_ops): Update.
3509 * nto-low.cc (nto_target_ops): Update.
3510 * win32-low.cc (win32_target_ops): Update.
3512 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3514 Turn process_stratum_target's pause_all and unpause_all ops
3515 into methods of process_target.
3517 * target.h (struct process_stratum_target): Remove the target ops.
3518 (class process_target): Add the target ops.
3519 (pause_all): Update the macro and rename to...
3520 (target_pause_all): ... this.
3521 (unpause_all): Update the macro and rename to...
3522 (target_unpause_all): ... this.
3523 * target.cc (process_target::pause_all): Define.
3524 (process_target::unpause_all): Define.
3526 Update the derived classes and callers below.
3528 * server.cc (handle_status): Update.
3529 * tracepoint.cc (clear_installed_tracepoints): Update.
3531 (cmd_qtstart): Update.
3532 (stop_tracing): Update.
3533 (cmd_qtstatus): Update.
3534 (upload_fast_traceframes): Update.
3535 (run_inferior_command): Update.
3536 * linux-low.cc (linux_target_ops): Update.
3537 (linux_pause_all): Turn into ...
3538 (linux_process_target::pause_all): ... this.
3539 (linux_unpause_all): Turn into ...
3540 (linux_process_target::unpause_all): ... this.
3541 (linux_process_target::prepare_to_access_memory): Update.
3542 (linux_process_target::done_accessing_memory): Update.
3543 * linux-low.h (class linux_process_target): Update.
3544 * lynx-low.cc (lynx_target_ops): Update.
3545 * nto-low.cc (nto_target_ops): Update.
3546 * win32-low.cc (win32_target_ops): Update.
3548 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3550 Turn process_stratum_target's get_tib_address op into a method of
3553 * target.h (struct process_stratum_target): Remove the target op.
3554 (class process_target): Add the target op. Also add
3555 'supports_get_tib_address'.
3556 * target.cc (process_target::get_tib_address): Define.
3557 (process_target::supports_get_tib_address): Define.
3559 Update the derived classes and callers below.
3561 * server.cc (handle_query): Update.
3562 * linux-low.cc (win32_target_ops): Update.
3563 * lynx-low.cc (lynx_target_ops): Update.
3564 * nto-low.cc (nto_target_ops): Update.
3565 * win32-low.cc (win32_target_ops): Update.
3566 (win32_process_target::supports_get_tib_address): Define.
3567 (win32_get_tib_address): Turn into ...
3568 (win32_process_target::get_tib_address): ... this.
3569 * win32-low.h (class win32_process_target): Update.
3571 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3573 Turn process_stratum_target's thread_stopped op into a method of
3576 * target.h (struct process_stratum_target): Remove the target op.
3577 (class process_target): Add the target op. Also add
3578 'supports_thread_stopped'.
3579 (target_thread_stopped): Update the macro.
3580 * target.cc (process_target::thread_stopped): Define.
3581 (process_target::supports_thread_stopped): Define.
3582 (prepare_to_access_memory): Update.
3584 Update the derived classes and callers below.
3586 * server.cc (queue_stop_reply_callback): Update.
3587 * linux-low.cc (linux_target_ops): Update.
3588 (linux_process_target::supports_thread_stopped): Define.
3589 (linux_thread_stopped): Turn into ...
3590 (linux_process_target::thread_stopped): ... this.
3591 * linux-low.h (class linux_process_target): Update.
3592 * lynx-low.cc (lynx_target_ops): Update.
3593 * nto-low.cc (nto_target_ops): Update.
3594 * win32-low.cc (win32_target_ops): Update.
3596 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3598 Turn process_stratum_target's read_pc and write_pc ops into
3599 methods of process_target.
3601 * target.h (struct process_stratum_target): Remove the target ops.
3602 (class process_target): Add the target ops.
3603 * target.cc (process_target::read_pc): Define.
3604 (process_target::write_pc): Define.
3606 Update the derived classes and callers below.
3608 * regcache.cc (regcache_read_pc): Update.
3609 (regcache_write_pc): Update.
3610 * linux-low.cc (linux_target_ops): Update.
3611 (linux_read_pc): Turn into ...
3612 (linux_process_target::read_pc): ... this.
3613 (linux_write_pc): Turn into ...
3614 (linux_process_target::write_pc): ... this.
3615 * linux-low.h (class linux_process_target): Update.
3616 * lynx-low.cc (lynx_target_ops): Update.
3617 * nto-low.cc (nto_target_ops): Update.
3618 * win32-low.cc (win32_target_ops): Update.
3620 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3622 Turn process_stratum_target's supports_tracepoints op into a
3623 method of process_target.
3625 * target.h (struct process_stratum_target): Remove the target op.
3626 (class process_target): Add the target op.
3627 (target_supports_tracepoints): Update the macro.
3628 * target.cc (process_target::supports_tracepoints): Define.
3630 Update the derived classes and callers below.
3632 * linux-low.cc (linux_target_ops): Update.
3633 (linux_supports_tracepoints): Turn into ...
3634 (linux_process_target::supports_tracepoints): ... this.
3635 * linux-low.h (class linux_process_target): Update.
3636 * lynx-low.cc (lynx_target_ops): Update.
3637 * nto-low.cc (nto_target_ops): Update.
3638 * win32-low.cc (win32_target_ops): Update.
3640 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3642 Turn process_stratum_target's process_qsupported op into a method
3645 * target.h (struct process_stratum_target): Remove the target op.
3646 (class process_target): Add the target op.
3647 (target_process_qsupported): Update the macro.
3648 * target.cc (process_target::process_qsupported): Define.
3650 Update the derived classes and callers below.
3652 * linux-low.cc (linux_target_ops): Update.
3653 (linux_process_qsupported): Turn into ...
3654 (linux_process_target::process_qsupported): ... this.
3655 * linux-low.h (class linux_process_target): Update.
3656 * lynx-low.cc (lynx_target_ops): Update.
3657 * nto-low.cc (nto_target_ops): Update.
3658 * win32-low.cc (win32_target_ops): Update.
3660 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3662 Turn process_stratum_target's read_loadmap op into a method of
3665 * target.h (struct process_stratum_target): Remove the target op.
3666 (class process_target): Add the target op. Also add
3667 'supports_read_loadmap'.
3668 * target.cc (process_target::read_loadmap): Define.
3669 (process_target::supports_read_loadmap): Define.
3671 Update the derived classes and callers below.
3673 * server.cc (handle_qxfer_fdpic): Update.
3674 (handle_query): Update.
3675 * linux-low.cc (linux_target_ops): Update.
3676 (linux_process_target::supports_read_loadmap): Define.
3677 (linux_read_loadmap): Turn into ...
3678 (linux_process_target::read_loadmap): ... this.
3679 * linux-low.h (class linux_process_target): Update.
3680 * lynx-low.cc (lynx_target_ops): Update.
3681 * nto-low.cc (nto_target_ops): Update.
3682 * win32-low.cc (win32_target_ops): Update.
3684 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3686 Turn process_stratum_target's core_of_thread op into a method of
3689 * target.h (struct process_stratum_target): Remove the target op.
3690 (class process_target): Add the target op.
3691 (target_core_of_thread): Update the macro.
3692 * target.cc (process_target::core_of_thread): Define.
3694 Update the derived classes and callers below.
3696 * linux-low.cc (linux_target_ops): Update.
3697 (linux_process_target::core_of_thread): Define.
3698 * linux-low.h (class linux_process_target): Update.
3699 * lynx-low.cc (lynx_target_ops): Update.
3700 * nto-low.cc (nto_target_ops): Update.
3701 * win32-low.cc (win32_target_ops): Update.
3703 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3705 Turn process_stratum_target's handle_monitor_command op into a
3706 method of process_target.
3708 * target.h (struct process_stratum_target): Remove the target op.
3709 (class process_target): Add the target op.
3710 (target_handle_monitor_command): Update the macro.
3711 * target.cc (process_target::handle_monitor_command): Define.
3713 Update the derived classes and callers below.
3715 * server.cc (handle_query): Update.
3716 * linux-low.cc (linux_target_ops): Update.
3717 (linux_process_target::handle_monitor_command): Define.
3718 * linux-low.h (class linux_process_target): Update.
3719 * lynx-low.cc (lynx_target_ops): Update.
3720 * nto-low.cc (nto_target_ops): Update.
3721 * win32-low.cc (win32_target_ops): Update.
3723 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3725 Turn process_stratum_target's handle_new_gdb_connection op into a
3726 method of process_target.
3728 * target.h (struct process_stratum_target): Remove the target op.
3729 (class process_target): Add the target op.
3730 (target_handle_new_gdb_connection): Update the macro.
3731 * target.cc (process_target::handle_new_gdb_connection): Define.
3733 Update the derived classes and callers below.
3735 * linux-low.cc (linux_target_ops): Update.
3736 (linux_handle_new_gdb_connection): Turn into ...
3737 (linux_process_target::handle_new_gdb_connection): ... this.
3738 * linux-low.h (class linux_process_target): Update.
3739 * lynx-low.cc (lynx_target_ops): Update.
3740 * nto-low.cc (nto_target_ops): Update.
3741 * win32-low.cc (win32_target_ops): Update.
3743 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3745 Turn process_stratum_target's supports_fork_events,
3746 supports_vfork_events, and supports_exec_events ops into methods
3749 * target.h (struct process_stratum_target): Remove the target ops.
3750 (class process_target): Add the target ops.
3751 (target_supports_fork_events): Update the macro.
3752 (target_supports_vfork_events): Update the macro.
3753 (target_supports_exec_events): Update the macro.
3754 * target.cc (process_target::supports_fork_events): Define.
3755 (process_target::supports_vfork_events): Define.
3756 (process_target::supports_exec_events): Define.
3758 Update the derived classes and callers below.
3760 * linux-low.cc (linux_target_ops): Update.
3761 (linux_supports_fork_events): Turn into ...
3762 (linux_process_target::supports_fork_events): ... this.
3763 (linux_supports_vfork_events): Turn into ...
3764 (linux_process_target::supports_vfork_events): ... this.
3765 (linux_supports_exec_events): Turn into ...
3766 (linux_process_target::supports_exec_events): ... this.
3767 * linux-low.h (class linux_process_target): Update.
3768 * lynx-low.cc (lynx_target_ops): Update.
3769 * nto-low.cc (nto_target_ops): Update.
3770 * win32-low.cc (win32_target_ops): Update.
3772 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3774 Turn process_stratum_target's supports_multi_process op into a
3775 method of process_target.
3777 * target.h (struct process_stratum_target): Remove the target op.
3778 (class process_target): Add the target op.
3779 * target.cc (process_target::supports_multi_process): Define.
3780 (target_supports_multi_process): Update.
3782 Update the derived classes and callers below.
3784 * linux-low.cc (linux_target_ops): Update.
3785 (linux_supports_multi_process): Turn into ...
3786 (linux_process_target::supports_multi_process): ... this.
3787 * linux-low.h (class linux_process_target): Update.
3788 * lynx-low.cc (lynx_target_ops): Update.
3789 * nto-low.cc (nto_target_ops): Update.
3790 * win32-low.cc (win32_target_ops): Update.
3792 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3794 Turn process_stratum_target's supports_non_stop, async, and
3795 start_non_stop ops into methods of process_target.
3797 * target.h (struct process_stratum_target): Remove the target ops.
3798 (class process_target): Add the target ops.
3799 (target_supports_non_stop): Update the macro.
3800 (target_async): Update the macro.
3801 (start_non_stop): Remove declaration.
3802 * target.cc (process_target::supports_non_stop): Define.
3803 (process_target::async): Define.
3804 (process_target::start_non_stop): Define.
3805 (start_non_stop): Remove.
3807 Update the derived classes and callers below.
3809 * server.cc (handle_qxfer_siginfo): Update.
3810 (handle_query): Update.
3811 * linux-low.cc (linux_target_ops): Update.
3812 (linux_supports_non_stop): Turn into ...
3813 (linux_process_target::supports_non_stop): ... this.
3814 (linux_async): Turn into ...
3815 (linux_process_target::async): ... this.
3816 (linux_start_non_stop): Turn into ...
3817 (linux_process_target::start_non_stop): ... this.
3818 * linux-low.h (class linux_process_target): Update.
3819 * lynx-low.cc (lynx_target_ops): Update.
3820 * nto-low.cc (nto_target_ops): Update.
3821 (nto_supports_non_stop): Remove; rely on the default behavior
3823 * win32-low.cc (win32_target_ops): Update.
3825 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3827 Turn process_stratum_target's qxfer_siginfo op into a method of
3830 * target.h (struct process_stratum_target): Remove the target op.
3831 (class process_target): Add the target op. Also add
3832 'supports_qxfer_siginfo'.
3833 * target.cc (process_target::qxfer_siginfo): Define.
3834 (process_target::supports_qxfer_siginfo): Define.
3836 Update the derived classes and callers below.
3838 * server.cc (handle_qxfer_siginfo): Update.
3839 (handle_query): Update.
3840 * linux-low.cc (linux_target_ops): Update.
3841 (linux_process_target::supports_qxfer_siginfo): Define.
3842 (linux_xfer_siginfo): Turn into ...
3843 (linux_process_target::qxfer_siginfo): ... this.
3844 * linux-low.h (class linux_process_target): Update.
3845 * lynx-low.cc (lynx_target_ops): Update.
3846 * nto-low.cc (nto_target_ops): Update.
3847 * win32-low.cc (win32_target_ops): Update.
3849 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3851 Turn process_stratum_target's qxfer_osdata op into a method of
3854 * target.h (struct process_stratum_target): Remove the target op.
3855 (class process_target): Add the target op. Also add
3856 'supports_qxfer_osdata'.
3857 * target.cc (process_target::qxfer_osdata): Define.
3858 (process_target::supports_qxfer_osdata): Define.
3860 Update the derived classes and callers below.
3862 * server.cc (handle_qxfer_osdata): Update.
3863 (handle_query): Update.
3864 * linux-low.cc (linux_target_ops): Update.
3865 (linux_process_target::supports_qxfer_osdata): Define.
3866 (linux_qxfer_osdata): Turn into ...
3867 (linux_process_target::qxfer_osdata): ... this.
3868 * linux-low.h (class linux_process_target): Update.
3869 * lynx-low.cc (lynx_target_ops): Update.
3870 * nto-low.cc (nto_target_ops): Update.
3871 * win32-low.cc (win32_target_ops): Update.
3873 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3875 Turn process_stratum_target's hostio_last_error op into a
3876 method of process_target.
3878 * target.h (struct process_stratum_target): Remove the target op.
3879 (class process_target): Add the target op.
3880 * target.cc: Add "hostio.h" to includes.
3881 (process_target::hostio_last_error): Define.
3883 Update the derived classes and callers below.
3885 * hostio.cc (hostio_error): Update.
3886 * linux-low.cc: Remove "hostio.h" from includes.
3887 (linux_target_ops): Update.
3888 * lynx-low.cc (lynx_target_ops): Update.
3889 * nto-low.cc (nto_target_ops): Update.
3890 * win32-low.h (class win32_process_target): Update.
3891 * win32-low.cc (win32_target_ops): Update.
3892 (wince_hostio_last_error): Turn into ...
3893 (win32_process_target::hostio_last_error): ... this.
3895 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3897 Turn process_stratum_target's get_tls_address op into a method of
3900 * target.h (struct process_stratum_target): Remove the target op.
3901 (class process_target): Add the target op. Also add
3902 'supports_get_tls_address'.
3903 * target.cc (process_target::get_tls_address): Define.
3904 (process_target::supports_get_tls_address): Define.
3906 Update the derived classes and callers below.
3908 * server.cc (handle_query): Update.
3909 * linux-low.cc (linux_target_ops): Update.
3910 (linux_process_target::supports_get_tls_address): Define.
3911 (linux_process_target::get_tls_address): Define.
3912 * linux-low.h (class linux_process_target): Update.
3913 * lynx-low.cc (lynx_target_ops): Update.
3914 * nto-low.cc (nto_target_ops): Update.
3915 * win32-low.cc (win32_target_ops): Update.
3917 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3919 Turn process_stratum_target's read_offsets op into a method of
3922 * target.h (struct process_stratum_target): Remove the target op.
3923 (class process_target): Add the target op. Also add
3924 'supports_read_offsets'.
3925 * target.cc (process_target::read_offsets): Define.
3926 (process_target::supports_read_offsets): Define.
3928 Update the derived classes and callers below.
3930 * server.cc (handle_query): Update.
3931 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
3932 (linux_target_ops): Update.
3933 (linux_process_target::supports_read_offsets): Define.
3934 (linux_read_offsets): Turn into ...
3935 (linux_process_target::read_offsets): ... this.
3936 * linux-low.h (class linux_process_target): Update.
3937 * lynx-low.cc (lynx_target_ops): Update.
3938 * nto-low.cc (nto_target_ops): Update.
3939 * win32-low.cc (win32_target_ops): Update.
3941 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3943 Turn process_stratum_target's stopped_by_watchpoint and
3944 stopped_data_address ops into methods of process_target.
3946 * target.h (struct process_stratum_target): Remove the target ops.
3947 (class process_target): Add the target ops.
3948 * target.cc (process_target::stopped_by_watchpoint): Define.
3949 (process_target::stopped_data_address): Define.
3951 Update the derived classes and callers below.
3953 * remote-utils.cc (prepare_resume_reply): Update.
3954 * linux-low.cc (linux_target_ops): Update.
3955 (linux_stopped_by_watchpoint): Turn into ...
3956 (linux_process_target::stopped_by_watchpoint): ... this.
3957 (linux_stopped_data_address): Turn into ...
3958 (linux_process_target::stopped_data_address): ... this.
3959 * linux-low.h (class linux_process_target): Update.
3960 * lynx-low.cc (lynx_target_ops): Update.
3961 * nto-low.cc (nto_target_ops): Update.
3962 (nto_stopped_by_watchpoint): Turn into ...
3963 (nto_process_target::stopped_by_watchpoint): ... this.
3964 (nto_stopped_data_address): Turn into ...
3965 (nto_process_target::stopped_data_address): ... this.
3966 * nto-low.h (class nto_process_target): Update.
3967 * win32-low.cc (win32_target_ops): Update.
3968 (win32_stopped_by_watchpoint): Turn into ...
3969 (win32_process_target::stopped_by_watchpoint): ... this.
3970 (win32_stopped_data_address): Turn into ...
3971 (win32_process_target::stopped_data_address): ... this.
3972 * win32-low.h (class win32_process_target): Update.
3974 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3976 Turn process_stratum_target's supports_hardware_single_step op into
3977 a method of process_target.
3979 * target.h (struct process_stratum_target): Remove the target op.
3980 (class process_target): Add the target op.
3981 (target_supports_hardware_single_step): Update the macro.
3982 (target_can_do_hardware_single_step): Remove declaration.
3983 * target.cc (process_target::supports_hardware_single_step): Define.
3984 (target_can_do_hardware_single_step): Remove.
3986 Update the derived classes and callers below.
3988 * linux-low.h (class linux_process_target): Update.
3989 * linux-low.cc (linux_target_ops): Update.
3990 (linux_supports_hardware_single_step): Turn into ...
3991 (linux_process_target::supports_hardware_single_step): ... this.
3992 * lynx-low.h (class lynx_process_target): Update.
3993 * lynx-low.cc (lynx_target_ops): Update.
3994 (lynx_process_target::supports_hardware_single_step): Define.
3995 * nto-low.h (class nto_process_target): Update.
3996 * nto-low.cc (nto_target_ops): Update.
3997 (nto_process_target::supports_hardware_single_step): Define.
3998 * win32-low.h (class win32_process_target): Update.
3999 * win32-low.cc (win32_target_ops): Update.
4000 (win32_process_target::supports_hardware_single_step): Define.
4002 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4004 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
4005 ops into methods of process_target.
4007 * target.h (struct process_stratum_target): Remove the target ops.
4008 (class process_target): Add the target ops.
4009 (target_stopped_by_hw_breakpoint): Update the macro.
4010 (target_supports_stopped_by_hw_breakpoint): Update the macro.
4011 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
4012 (process_target::supports_stopped_by_hw_breakpoint): Define.
4014 Update the derived classes and callers below.
4016 * linux-low.cc (linux_target_ops): Update.
4017 (linux_stopped_by_hw_breakpoint): Turn into ...
4018 (linux_process_target::stopped_by_hw_breakpoint): ... this.
4019 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
4020 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
4021 * linux-low.h (class linux_process_target): Update.
4022 * lynx-low.cc (lynx_target_ops): Update.
4023 * nto-low.cc (nto_target_ops): Update.
4024 * win32-low.cc (win32_target_ops): Update.
4026 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4028 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
4029 ops into methods of process_target.
4031 * target.h (struct process_stratum_target): Remove the target ops.
4032 (class process_target): Add the target ops.
4033 (target_stopped_by_sw_breakpoint): Update the macro.
4034 (target_supports_stopped_by_sw_breakpoint): Update the macro.
4035 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
4036 (process_target::supports_stopped_by_sw_breakpoint): Define.
4038 Update the derived classes and callers below.
4040 * linux-low.cc (linux_target_ops): Update.
4041 (linux_stopped_by_sw_breakpoint): Turn into ...
4042 (linux_process_target::stopped_by_sw_breakpoint): ... this.
4043 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
4044 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
4045 * linux-low.h (class linux_process_target): Update.
4046 * lynx-low.cc (lynx_target_ops): Update.
4047 * nto-low.cc (nto_target_ops): Update.
4048 * win32-low.cc (win32_target_ops): Update.
4050 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4052 Turn process_stratum_target's insert_point and remove_point ops
4053 into methods of process_target.
4055 * target.h (struct process_stratum_target): Remove the target ops.
4056 (class process_target): Add the target ops.
4057 * target.cc (process_target::insert_point): Define.
4058 (process_target::remove_point): Define.
4060 Update the derived classes and callers below.
4062 * mem-break.cc (set_raw_breakpoint_at): Update.
4063 (delete_raw_breakpoint): Update.
4064 (uninsert_raw_breakpoint): Update.
4065 (reinsert_raw_breakpoint): Update.
4066 * linux-low.cc (linux_target_ops): Update.
4067 (linux_insert_point): Turn into ...
4068 (linux_process_target::insert_point): ... this.
4069 (linux_remove_point): Turn into ...
4070 (linux_process_target::remove_point): ... this.
4071 * linux-low.h (class linux_process_target): Update.
4072 * lynx-low.cc (lynx_target_ops): Update.
4073 * nto-low.cc (nto_target_ops): Update.
4074 (nto_insert_point): Turn into ...
4075 (nto_process_target::insert_point): ... this.
4076 (nto_remove_point): Turn into ...
4077 (nto_process_target::remove_point): ... this.
4078 * nto-low.h (class nto_process_target): Update.
4079 * win32-low.cc (win32_target_ops): Update.
4080 (win32_insert_point): Turn into ...
4081 (win32_process_target::insert_point): ... this.
4082 (win32_remove_point): Turn into ...
4083 (win32_process_target::remove_point): ... this.
4084 * win32-low.h (class win32_process_target): Update.
4086 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4088 Turn process_stratum_target's supports_z_point_type op into a
4089 method of process_target.
4091 * target.h (struct process_stratum_target): Remove the target op.
4092 (class process_target): Add the target op.
4093 * target.cc (process_target::supports_z_point_type): Define.
4095 Update the derived classes and callers below.
4097 * mem-break.cc (z_type_supported): Update.
4098 * linux-low.cc (linux_target_ops): Update.
4099 (linux_supports_z_point_type): Turn into ...
4100 (linux_process_target::supports_z_point_type): ... this.
4101 * linux-low.h (class linux_process_target): Update.
4102 * lynx-low.cc (lynx_target_ops): Update.
4103 * nto-low.cc (nto_target_ops): Update.
4104 (nto_supports_z_point_type): Turn into ...
4105 (nto_process_target::supports_z_point_type): ... this.
4106 * nto-low.h (class nto_process_target): Update.
4107 * win32-low.cc (win32_target_ops): Update.
4108 (win32_supports_z_point_type): Turn into ...
4109 (win32_process_target::supports_z_point_type): ... this.
4110 * win32-low.h (class win32_process_target): Update.
4112 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4114 Turn process_stratum_target's read_auxv op into a method of
4117 * target.h (class process_stratum_target): Remove the target op.
4118 (struct process_target): Add the target op. Also add
4119 'supports_read_auxv'.
4120 * target.cc (process_target::read_auxv): Define.
4121 (process_target::supports_read_auxv): Define.
4123 Update the derived classes and callers below.
4125 * server.cc (handle_qxfer_auxv): Update.
4126 (handle_query): Update.
4127 * linux-low.cc (linux_target_ops): Update.
4128 (linux_process_target::supports_read_auxv): Define.
4129 (linux_read_auxv): Turn into ...
4130 (linux_process_target::read_auxv): ... this.
4131 * linux-low.h (class linux_process_target): Update.
4132 * lynx-low.cc (lynx_target_ops): Update.
4133 * nto-low.cc (nto_target_ops): Update.
4134 (nto_process_target::supports_read_auxv): Define.
4135 (nto_read_auxv): Turn into ...
4136 (nto_process_target::read_auxv): ... this.
4137 * nto-low.h (class nto_process_target): Update.
4138 * win32-low.cc (win32_target_ops): Update.
4140 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4142 Turn process_stratum_target's request_interrupt op into a method of
4145 * target.h (struct process_stratum_target): Remove the target op.
4146 (class process_target): Add the target op.
4148 Update the derived classes and callers below.
4150 * remote-utils.cc (putpkt_binary_1): Update.
4151 (input_interrupt): Update.
4153 * server.cc (handle_v_requests): Update.
4154 * linux-low.cc (linux_target_ops): Update.
4155 (linux_request_interrupt): Turn into ...
4156 (linux_process_target::request_interrupt): ... this.
4157 * linux-low.h (class linux_process_target): Update.
4158 * lynx-low.cc (lynx_target_ops): Update.
4159 (lynx_request_interrupt): Turn into ...
4160 (lynx_process_target::request_interrupt): ... this.
4161 * lynx-low.h (class lynx_process_target): Update.
4162 * nto-low.cc (nto_target_ops): Update.
4163 (nto_request_interrupt): Turn into ...
4164 (nto_process_target::request_interrupt): ... this.
4165 * nto-low.h (class nto_process_target): Update.
4166 * win32-low.cc (win32_target_ops): Update.
4167 (win32_request_interrupt): Turn into ...
4168 (win32_process_target::request_interrupt): ... this.
4169 * win32-low.h (class win32_process_target): Update.
4171 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4173 Turn process_stratum_target's look_up_symbols op into a method of
4176 * target.h (struct process_stratum_target): Remove the target op.
4177 (class process_target): Add the target op.
4178 * target.cc (process_target::look_up_symbols): Define.
4180 Update the derived classes and callers below.
4182 * server.cc (handle_query): Update.
4183 * linux-low.cc (linux_target_ops): Update.
4184 (linux_look_up_symbols): Turn into ...
4185 (linux_process_target::look_up_symbols): ... this.
4186 * linux-low.h (class linux_process_target): Update.
4187 * lynx-low.cc (lynx_target_ops): Update.
4188 * nto-low.cc (nto_target_ops): Update.
4189 * win32-low.cc (win32_target_ops): Update.
4191 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4193 Turn process_stratum_target's read_memory and write_memory
4194 ops into methods of process_target.
4196 * target.h (struct process_stratum_target): Remove the target ops.
4197 (class process_target): Add the target ops.
4199 Update the derived classes and callers below.
4201 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
4202 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
4203 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
4204 (arm_get_syscall_trapinfo): Update.
4205 * linux-cris-low.cc (cris_breakpoint_at): Update.
4206 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
4207 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
4208 * linux-mips-low.cc (mips_breakpoint_at): Update.
4209 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
4210 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
4211 * linux-sh-low.cc (sh_breakpoint_at): Update.
4212 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
4213 (sparc_store_gregset_from_stack): Update.
4214 (sparc_breakpoint_at): Update.
4215 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
4216 * linux-tile-low.cc (tile_breakpoint_at): Update.
4217 * linux-x86-low.cc (x86_breakpoint_at): Update.
4218 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
4219 * mem-brea.cc (insert_memory_breakpoint): Update.
4220 (validate_inserted_breakpoint): Update.
4221 * target.cc (read_inferior_memory): Update.
4222 (target_write_memory): Update.
4223 * linux-low.cc (linux_target_ops): Update.
4224 (linux_read_memory): Make a wrapper around the read_memory target
4226 (linux_process_target::read_memory): Rename from linux_read_memory.
4227 (linux_write_memory): Turn into ...
4228 (linux_process_target::write_memory): ... this.
4229 * linux-low.h (class linux_process_target): Update.
4230 * lynx-low.cc (lynx_target_ops): Update.
4231 (lynx_read_memory): Turn into ...
4232 (lynx_process_target::read_memory): ... this.
4233 (lynx_write_memory): Turn into ...
4234 (lynx_process_target::write_memory): ... this.
4235 * lynx-low.h (class lynx_process_target): Update.
4236 * nto-low.cc (nto_target_ops): Update.
4237 (nto_read_memory): Turn into ...
4238 (nto_process_target::read_memory): ... this.
4239 (nto_write_memory): Turn into ...
4240 (nto_process_target::write_memory): ... this.
4241 * nto-low.h (class nto_process_target): Update.
4242 * win32-low.cc (win32_target_ops): Update.
4243 (win32_read_inferior_memory): Turn into ...
4244 (win32_process_target::read_memory): ... this.
4245 (win32_write_inferior_memory): Turn into ...
4246 (win32_process_target::write_memory): ... this.
4247 * win32-low.h (class win32_process_target): Update.
4249 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4251 Turn process_stratum_target's prepare_to_access_memory and
4252 done_accessing_memory ops into methods of process_target.
4254 * target.h (struct process_stratum_target): Remove the target ops.
4255 (class process_target): Add the target ops.
4256 * target.cc (process_target::prepare_to_access_memory): Define.
4257 (process_target::done_accessing_memory): Define.
4258 (prepare_to_access_memory): Update.
4259 (done_accessing_memory): Update.
4261 Update the derived classes and callers below.
4263 * linux-low.cc (linux_target_ops): Update.
4264 (linux_prepare_to_access_memory): Turn into ...
4265 (linux_process_target::prepare_to_access_memory): ... this.
4266 (linux_done_accessing_memory): Turn into ...
4267 (linux_process_target::done_accessing_memory): ... this.
4268 * linux-low.h (class linux_process_target): Update.
4269 * lynx-low.cc (lynx_target_ops): Update.
4270 * nto-low.cc (nto_target_ops): Update.
4271 * win32-low.cc (win32_target_ops): Update.
4273 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4275 Turn process_stratum_target's fetch_registers and store_registers
4276 ops into methods of process_target.
4278 * target.h (struct process_stratum_target): Remove the target ops.
4279 (class process_target): Add the target ops.
4280 (fetch_inferior_registers): Update the macro.
4281 (store_inferior_registers): Update the macro.
4283 Update the derived classes and callers below.
4285 * linux-low.cc (linux_target_ops): Update.
4286 (linux_fetch_registers): Turn into ...
4287 (linux_process_target::fetch_registers): ... this.
4288 (linux_store_registers): Turn into ...
4289 (linux_process_target::store_registers): ... this.
4290 * linux-low.h (class linux_process_target): Update.
4291 * lynx-low.cc (lynx_target_ops): Update.
4292 (lynx_fetch_registers): Turn into ...
4293 (lynx_process_target::fetch_registers): ... this.
4294 (lynx_store_registers): Turn into ...
4295 (lynx_process_target::store_registers): ... this.
4296 * lynx-low.h (class lynx_process_target): Update.
4297 * nto-low.cc (nto_target_ops): Update.
4298 (nto_fetch_registers): Turn into ...
4299 (nto_process_target::fetch_registers): ... this.
4300 (nto_store_registers): Turn into ...
4301 (nto_process_target::store_registers): ... this.
4302 * nto-low.h (class nto_process_target): Update.
4303 * win32-low.cc (win32_target_ops): Update.
4304 (win32_fetch_inferior_registers): Turn into ...
4305 (win32_process_target::fetch_registers): ... this.
4306 (win32_store_inferior_registers): Turn into ...
4307 (win32_process_target::store_registers): ... this.
4308 * win32-low.h (class win32_process_target): Update.
4310 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4312 Turn process_stratum_target's wait op into a method of
4315 * target.h (struct process_stratum_target): Remove the target op.
4316 (class process_target): Add the target op.
4318 Update the derived classes and callers below.
4320 * target.cc (target_wait): Update.
4321 * linux-low.cc (linux_target_ops): Update.
4322 (linux_wait): Turn into ...
4323 (linux_process_target::wait): ... this.
4324 * linux-low.h (class linux_process_target): Update.
4325 * lynx-low.cc (lynx_target_ops): Update.
4326 (lynx_wait): Turn into ...
4327 (lynx_process_target::wait): ... this.
4328 * lynx-low.h (class lynx_process_target): Update.
4329 * nto-low.cc (nto_target_ops): Update.
4330 (nto_wait): Turn into ...
4331 (nto_process_target::wait): ... this.
4332 * nto-low.h (class nto_process_target): Update.
4333 * win32-low.cc (win32_target_ops): Update.
4334 (win32_wait): Turn into ...
4335 (win32_process_target::wait): ... this.
4336 (do_initial_child_stuff): Update.
4337 * win32-low.h (class win32_process_target): Update.
4339 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4341 Turn process_stratum_target's resume op into a method of
4344 * target.h (struct process_stratum_target): Remove the target op.
4345 (class process_target): Add the target op.
4347 Update the derived classes and callers below.
4349 * server.cc (resume): Update.
4350 * target.cc (target_stop_and_wait): Update.
4351 (target_continue_no_signal): Update.
4352 (target_continue): Update.
4353 * linux-low.cc (linux_target_ops): Update.
4354 (linux_resume): Turn into ...
4355 (linux_process_target::resume): ... this.
4356 * linux-low.h (class linux_process_target): Update.
4357 * lynx-low.cc (lynx_target_ops): Update.
4358 (lynx_resume): Turn into ...
4359 (lynx_process_target::resume): ... this.
4360 * lynx-low.h (class lynx_process_target): Update.
4361 * nto-low.cc (nto_target_ops): Update.
4362 (nto_resume): Turn into ...
4363 (nto_process_target::resume): ... this.
4364 * nto-low.h (class nto_process_target): Update.
4365 * win32-low.cc (win32_target_ops): Update.
4366 (win32_resume): Turn into ...
4367 (win32_process_target::resume): ... this.
4368 (win32_process_target::detach): Update.
4369 (do_initial_child_stuff): Update.
4370 * win32-low.h (class win32_process_target): Update.
4372 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4374 Turn process_stratum_target's thread_alive op into a method of
4377 * target.h (struct process_stratum_target): Remove the target op.
4378 (class process_target): Add the target op.
4379 (mythread_alive): Update the macro.
4381 Update the derived classes and callers below.
4383 * linux-low.cc (linux_target_ops): Update.
4384 (linux_thread_alive): Turn into ...
4385 (linux_process_target::thread_alive): ... this.
4386 (wait_for_sigstop): Update.
4387 * linux-low.h (class linux_process_target): Update.
4388 * lynx-low.cc (lynx_target_ops): Update.
4389 (lynx_thread_alive): Turn into ...
4390 (lynx_process_target::thread_alive): ... this.
4391 * lynx-low.h (class lynx_process_target): Update.
4392 * nto-low.cc (nto_target_ops): Update.
4393 (nto_thread_alive): Turn into ...
4394 (nto_process_target::thread_alive): ... this.
4395 * nto-low.h (class nto_process_target): Update.
4396 * win32-low.cc (win32_target_ops): Update.
4397 (win32_thread_alive): Turn into ...
4398 (win32_process_target::thread_alive): ... this.
4399 * win32-low.h (class win32_process_target): Update.
4401 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4403 Turn process_stratum_target's join op into a method of
4406 * target.h (struct process_stratum_target): Remove the target op.
4407 (class process_target): Add the target op.
4408 (join_inferior): Update the macro.
4410 Update the derived classes and callers below.
4412 * linux-low.cc (linux_target_ops): Update.
4413 (linux_join): Turn into ...
4414 (linux_process_target::join): ... this.
4415 * linux-low.h (class linux_process_target): Update.
4416 * lynx-low.cc (lynx_target_ops): Update.
4417 (lynx_join): Turn into ...
4418 (lynx_process_target::join): ... this.
4419 * lynx-low.h (class lynx_process_target): Update.
4420 * nto-low.cc (nto_target_ops): Update.
4421 (nto_process_target::join): Define.
4422 * nto-low.h (class nto_process_target): Update.
4423 * win32-low.cc (win32_target_ops): Update.
4424 (win32_join): Turn into ...
4425 (win32_process_target::join): ... this.
4426 * win32-low.h (class win32_process_target): Update.
4428 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4430 Turn process_stratum_target's mourn op into a method of
4433 * target.h (struct process_stratum_target): Remove the target op.
4434 (class process_target): Add the target op.
4436 Update the derived classes and callers below.
4438 * target.cc (target_mourn_inferior): Update.
4439 * linux-low.cc (linux_target_ops): Update.
4440 (linux_mourn): Turn into ...
4441 (linux_process_target::mourn): ... this.
4442 (handle_extended_wait): Update.
4443 (linux_process_target::kill): Update.
4444 (linux_process_target::detach): Update.
4445 * linux-low.h (class linux_process_target): Update.
4446 * lynx-low.cc (lynx_target_ops): Update.
4447 (lynx_mourn): Turn into ...
4448 (lynx_process_target::mourn): ... this.
4449 * lynx-low.h (class lynx_process_target): Update.
4450 * nto-low.cc (nto_target_ops): Update.
4451 (nto_mourn): Turn into ...
4452 (nto_process_target::mourn): ... this.
4453 * nto-low.h (class nto_process_target): Update.
4454 * win32-low.cc (win32_target_ops): Update.
4455 (win32_mourn): Turn into ...
4456 (win32_process_target::mourn): ... this.
4457 * win32-low.h (class win32_process_target): Update.
4459 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4461 Turn process_stratum_target's detach op into a method of
4464 * target.h (struct process_stratum_target): Remove the target op.
4465 (class process_target): Add the target op.
4466 (detach_inferior): Update the macro.
4468 Update the derived classes and callers below.
4470 * linux-low.cc (linux_target_ops): Update.
4471 (linux_detach): Turn into ...
4472 (linux_process_target::detach): ... this.
4473 * linux-low.h (class linux_process_target): Update.
4474 * lynx-low.cc (lynx_target_ops): Update.
4475 (lynx_detach): Turn into ...
4476 (lynx_process_target::detach): ... this.
4477 * lynx-low.h (class lynx_process_target): Update.
4478 * nto-low.cc (nto_target_ops): Update.
4479 (nto_detach): Turn into ...
4480 (nto_process_target::detach): ... this.
4481 * nto-low.h (class nto_process_target): Update.
4482 * win32-low.cc (win32_target_ops): Update.
4483 (win32_detach): Turn into ...
4484 (win32_process_target::detach): ... this.
4485 * win32-low.h (class win32_process_target): Update.
4487 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4489 Turn process_stratum_target's kill op into a method of
4492 * target.h (struct process_stratum_target): Remove the target op.
4493 (class process_target): Add the target op.
4495 Update the derived classes and callers below.
4497 * target.cc (kill_inferior): Update.
4498 * linux-low.cc (linux_target_ops): Update.
4499 (linux_kill): Turn into ...
4500 (linux_process_target::kill): ... this.
4501 * linux-low.h (class linux_process_target): Update.
4502 * lynx-low.cc (lynx_target_ops): Update.
4503 (lynx_kill): Turn into ...
4504 (lynx_process_target::kill): ... this.
4505 * lynx-low.h (class lynx_process_target): Update.
4506 * nto-low.cc (nto_target_ops): Update.
4507 (nto_kill): Turn into ...
4508 (nto_process_target::kill): ... this.
4509 * nto-low.h (class nto_process_target): Update.
4510 * win32-low.cc (win32_target_ops): Update.
4511 (win32_kill): Turn into ...
4512 (win32_process_target::kill): ... this.
4513 * win32-low.h (class win32_process_target): Update.
4515 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4517 Turn process_stratum_target's attach op into a method of
4520 * target.h (struct process_stratum_target): Remove the target op.
4521 (class process_target): Add the target op.
4522 (myattach): Update the macro.
4524 Update the derived classes and callers below.
4526 * linux-low.cc (linux_target_ops): Update.
4527 (linux_attach): Turn into ...
4528 (linux_process_target::attach): ... this.
4529 * linux-low.h (class linux_process_target): Update.
4530 * lynx-low.cc (lynx_target_ops): Update.
4531 (lynx_attach): Turn into ...
4532 (lynx_process_target::attach): ... this.
4533 * lynx-low.h (class lynx_process_target): Update.
4534 * nto-low.cc (nto_target_ops): Update.
4535 (nto_attach): Turn into ...
4536 (nto_process_target::attach): ... this.
4537 * nto-low.h (class nto_process_target): Update.
4538 * win32-low.cc (win32_target_ops): Update.
4539 (win32_attach): Turn into ...
4540 (win32_process_target::attach): ... this.
4541 * win32-low.h (class win32_process_target): Update.
4543 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4545 Turn process_stratum_target's post_create_inferior op into a method
4548 * target.h (struct process_stratum_target): Remove the target op.
4549 (class process_target): Add the target op.
4550 (target_post_create_inferior): Update the macro.
4551 * target.cc (process_target::post_create_inferior): Define.
4553 Update the derived classes and callers below.
4555 * linux-low.cc (linux_target_ops): Update.
4556 (linux_post_create_inferior): Turn into ...
4557 (linux_process_target::post_create_inferior): ... this.
4558 * linux-low.h (class linux_process_target): Update.
4559 * lynx-low.cc (lynx_target_ops): Update.
4560 * nto-low.cc (nto_target_ops): Update.
4561 * win32-low.cc (win32_target_ops): Update.
4563 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4565 Turn process_stratum_target's create_inferior op into a method of
4568 * target.h (struct process_stratum_target): Remove the target op.
4569 (class process_target): Add the target op.
4570 (create_inferior): Rename the macro to ...
4571 (target_create_inferior): ... this.
4573 Update the derived classes and callers below.
4575 * server.cc (handle_v_run): Update.
4576 (captured_main): Update.
4577 (process_serial_event): Update.
4578 * linux-low.cc (linux_target_ops): Update.
4579 (linux_create_inferior): Turn into ...
4580 (linux_process_target::create_inferior): ... this.
4581 * linux-low.h (class linux_process_target): Update.
4582 * lynx-low.cc (lynx_target_ops): Update.
4583 (lynx_create_inferior): Turn into ...
4584 (lynx_process_target::create_inferior): ... this.
4585 * lynx-low.h (class lynx_process_target): Update.
4586 * nto-low.cc (nto_target_ops): Update.
4587 (nto_create_inferior): Turn into ...
4588 (nto_process_target::create_inferior): ... this.
4589 * nto-low.h (class nto_process_target): Update.
4590 * win32-low.cc (win32_target_ops): Update.
4591 (win32_create_inferior): Turn into ...
4592 (win32_process_target::create_inferior): ... this.
4593 * win32-low.h (class win32_process_target): Update.
4595 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4597 * target.h (class process_target): New class definition.
4598 (struct process_stratum_target) <pt>: New field with type
4600 * linux-low.h (class linux_process_target): Define as a derived
4601 class of 'process_target'.
4602 * linux-low.cc (linux_target_ops): Add a linux_process_target*
4604 * lynx-low.h (class lynx_process_target): Define as a derived
4605 class of 'process_target'.
4606 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
4608 * nto-low.h (class nto_process_target): Define as a derived
4609 class of 'process_target'.
4610 * nto-low.cc (nto_target_ops): Add an nto_process_target*
4612 * win32-low.h (class win32_process_target): Define as a derived
4613 class of 'process_target'.
4614 * win32-low.cc (win32_target_ops): Add a win32_process_target*
4617 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4619 * configure: Regenerate.
4621 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4622 Andrew Burgess <andrew.burgess@embecosm.com>
4624 * linux-riscv-low.cc: New file.
4625 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
4626 and nat/riscv-linux-tdesc.c.
4627 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
4628 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
4631 2020-02-14 Tom Tromey <tom@tromey.com>
4633 * acinclude.m4: Don't include acx_configure_dir.m4.
4634 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
4635 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
4636 (all, install-only, uninstall, clean-info, clean)
4637 (maintainer-clean): Don't recurse.
4638 (subdir_do, all-lib): Remove.
4639 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
4641 (generated_files): Update.
4642 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
4643 * configure: Rebuild.
4644 * configure.ac: Don't configure gnulib or libiberty.
4647 2020-02-14 Eli Zaretskii <eliz@gnu.org>
4649 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
4650 preparing the command line for CreateProcess.
4651 (win32_create_inferior): Reflect the program name in debugging
4652 output that shows the process and its command line.
4654 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4656 * Makefile.in: Rename source files from .c to .cc.
4657 * %.c: Rename to %.cc.
4658 * configure.ac: Rename server.c to server.cc.
4659 * configure: Re-generate.
4661 2020-02-13 Simon Marchi <simon.marchi@efficios.com>
4663 * Makefile.in: Rename gdbsupport source files from .c to .cc.
4665 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4667 * win32-low.c (win32_create_inferior): Set signal_pid.
4669 2020-02-12 Maciej W. Rozycki <macro@wdc.com>
4670 Pedro Alves <palves@redhat.com>
4672 Skip building gdbserver in a cross-configuration.
4673 * configure.srv: Set $gdbserver_host depending on whether $target
4674 is $host. Use $gdbserver_host instead of $host.
4676 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4678 * configure: Re-generate.
4680 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4682 * configure: Re-generate.
4684 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4686 * acinclude.m4: Update warning.m4 path.
4688 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4690 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
4691 (handle_exception): Set siginfo_er.
4692 (win32_xfer_siginfo): New function.
4694 2020-02-07 Tom Tromey <tom@tromey.com>
4695 Pedro Alves <palves@redhat.com>
4697 * README: Update build documentation.
4698 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
4700 * configure.ac: Update paths.
4701 * configure: Rebuild.
4702 * acinclude.m4: Update paths.
4703 * Makefile.in: Update include paths.
4704 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
4705 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
4706 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
4707 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
4708 (%-generated.c): Update paths.
4709 * Move entire directory from ../gdb/gdbserver.
4711 2020-01-29 Maciej W. Rozycki <macro@wdc.com>
4713 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
4715 2020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4717 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
4718 assignment instead of srv_linux_obj.
4720 2020-01-28 Hannes Domani <ssbssa@yahoo.de>
4722 * server.c (handle_qxfer_libraries): Write segment-address with
4725 2020-01-24 Hannes Domani <ssbssa@yahoo.de>
4727 * Makefile.in (install-strip): New target.
4728 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
4729 * aclocal.m4: Regenerate.
4730 * configure: Regenerate.
4731 * configure.ac: Add AM_PROG_INSTALL_STRIP.
4733 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4735 * Makefile.in (SFILES): Adjust paths to point to real files.
4736 (OBS): Move waitstatus.o to target/waitstatus.o.
4737 (TAGS): Transform paths appropriately.
4739 (nat/%.o): ... this pattern rule.
4741 (target/%.o): ... this pattern rule.
4742 * configure.srv: Adjust paths throughout to include nat/ prefix
4743 with the revant files.
4744 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
4745 * configure: Regenerate.
4747 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
4749 * Makefile.in (TAGS): Remove config files from the recipe.
4751 2020-01-14 Tom Tromey <tom@tromey.com>
4753 * configure: Rebuild.
4754 * configure.ac: Remove any checks that were added to common.m4.
4755 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
4758 2020-01-14 Tom Tromey <tom@tromey.com>
4760 * server.h: Include config.h.
4761 * gdbreplay.c: Include config.h.
4762 * configure: Rebuild.
4763 * configure.ac: Don't source common.host.
4764 * acinclude.m4: Update path.
4765 * Makefile.in (INCSUPPORT): New variable.
4766 (INCLUDE_CFLAGS): Add INCSUPPORT.
4767 (SFILES): Update paths.
4768 (version-generated.c): Update path to create-version.sh.
4769 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
4771 2020-01-14 Tom Tromey <tom@tromey.com>
4773 * configure.ac (LIBS): Use WIN32APILIBS.
4774 (USE_WIN32API): Don't define.
4775 * configure: Rebuild.
4777 2020-01-14 Tom Tromey <tom@tromey.com>
4779 * configure: Rebuild.
4781 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4783 * Makefile.in (%-generated.c): Remove rule for files from
4786 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4788 * configure: Re-generate.
4790 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4792 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
4794 * tracepoint.c (stop_tracing, flush_trace_buffer,
4795 about_to_request_buffer_space, get_trace_state_variable_value,
4796 set_trace_state_variable_value, gdb_collect): Add declaration.
4798 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4800 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
4801 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
4802 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
4803 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
4804 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
4807 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4809 * inferiors.c: Include gdbsupport/common-inferior.h.
4811 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4813 * hostio-errno.c: Include hostio.h.
4815 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
4817 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
4820 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4822 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
4823 * linux-arm-tdesc.h: Include arch/arm.h.
4825 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4827 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
4829 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4831 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
4832 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
4834 2020-01-10 Pedro Alves <palves@redhat.com>
4836 * fork-child.c (post_fork_inferior): Pass target down to
4838 * inferiors.c (switch_to_thread): Add process_stratum_target
4840 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
4841 * nto-low.c (nto_target_ops): Now a process_stratum_target.
4842 * linux-low.c (linux_target_ops): Now a process_stratum_target.
4843 * remote-utils.c (prepare_resume_reply): Pass the target to
4845 * target.c (the_target): Now a process_stratum_target.
4846 (done_accessing_memory): Pass the target to switch_to_thread.
4847 (set_target_ops): Ajust to use process_stratum_target.
4848 * target.h (struct target_ops): Rename to ...
4849 (struct process_stratum_target): ... this.
4850 (the_target, set_target_ops): Adjust.
4851 (prepare_to_access_memory): Adjust comment.
4852 * win32-low.c (child_xfer_memory): Adjust to use
4853 process_stratum_target.
4854 (win32_target_ops): Now a process_stratum_target.
4856 2020-01-06 Eli Zaretskii <eliz@gnu.org>
4857 Pedro Alves <palves@redhat.com>
4859 * win32-low.c (get_child_debug_event): Extract the fatal exception
4860 from the exit status and convert to the equivalent Posix signal
4862 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
4863 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
4865 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
4867 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4869 2020-01-01 Joel Brobecker <brobecker@adacore.com>
4871 * server.c (gdbserver_version): Change copyright year to 2020.
4872 * gdbreplay.c (gdbreplay_version): Likewise.
4874 2019-12-19 Christian Biesinger <cbiesinger@google.com>
4876 * configure: Regenerate.
4877 * configure.ac: Quote variable arguments of test.
4879 2019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4881 * Makefile.in: Fix build with GNU Make 3.81
4883 2019-12-16 Tom Tromey <tromey@adacore.com>
4885 * server.c (get_exec_file): Constify result.
4887 2019-12-10 Christian Biesinger <cbiesinger@google.com>
4889 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
4890 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
4891 * config.in: Regenerate.
4892 * configure: Regenerate.
4893 * configure.ac: Don't check for strerror.
4894 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
4895 Call safe_strerror instead of strerror.
4896 * server.h (strerror): Remove this now-unnecessary declaration.
4897 * tracepoint.c (init_named_socket): Call safe_strerror instead of
4899 (gdb_agent_helper_thread): Likewise.
4900 * utils.c (perror_with_name): Likewise.
4902 2019-11-26 Tom Tromey <tom@tromey.com>
4904 * configure, config.in: Rebuild.
4906 2019-11-26 Tom Tromey <tom@tromey.com>
4908 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
4909 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
4911 * configure, config.in: Rebuild.
4913 2019-11-26 Tom Tromey <tom@tromey.com>
4915 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
4916 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
4917 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
4918 * acinclude.m4: Include ax_pthread.m4.
4919 * config.in, configure: Rebuild.
4921 2019-11-26 Christian Biesinger <cbiesinger@google.com>
4923 * debug.c (debug_set_output): Call safe_strerror instead of
4925 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
4926 (linux_kill_one_lwp): Likewise.
4927 (linux_detach_one_lwp): Likewise.
4928 (linux_wait_for_event_filtered): Likewise.
4929 (store_register): Likewise.
4930 * lynx-low.c (lynx_attach): Likewise.
4931 * mem-break.c (insert_memory_breakpoint): Likewise.
4932 (remove_memory_breakpoint): Likewise.
4933 (delete_fast_tracepoint_jump): Likewise.
4934 (set_fast_tracepoint_jump): Likewise.
4935 (uninsert_fast_tracepoint_jumps_at): Likewise.
4936 (reinsert_fast_tracepoint_jumps_at): Likewise.
4937 * nto-low.c (nto_xfer_memory): Likewise.
4938 (nto_resume): Likewise.
4940 2019-11-20 Luis Machado <luis.machado@linaro.org>
4942 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
4943 instead of register count.
4944 * tdesc.c (tdesc_contains_feature): New function.
4945 * tdesc.h (tdesc_contains_feature): New prototype.
4947 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4949 * Makefile.in: Add safe-strerror.c.
4950 * configure: Regenerate.
4951 * configure.ac: Don't source common.host.
4953 2019-11-15 Christian Biesinger <cbiesinger@google.com>
4955 * config.in: Regenerate.
4956 * configure: Regenerate.
4958 2019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
4960 * ax.c (ax_printf): Handle size_t_arg.
4962 2019-11-06 Christian Biesinger <cbiesinger@google.com>
4964 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
4965 * mi/mi-main.c (output_cores): Likewise.
4966 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
4967 (linux_xfer_osdata_modules): Likewise.
4968 * remote.c (register_remote_support_xml): Likewise.
4969 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
4970 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
4972 2019-11-01 Christian Biesinger <cbiesinger@google.com>
4974 * configure: Regenerate.
4975 * configure.ac: Remove check for strerror_r.
4977 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4979 * config.in: Regenerate.
4980 * configure: Regenerate.
4981 * configure.ac: Also check for strerror_r.
4983 2019-10-31 Christian Biesinger <cbiesinger@google.com>
4985 * ax.h (debug_agent): Remove duplicate declaration.
4987 2019-10-26 Tom de Vries <tdevries@suse.de>
4989 * linux-aarch64-low.c: Fix typos in comments.
4990 * linux-arm-low.c: Same.
4991 * linux-low.c: Same.
4992 * linux-ppc-low.c: Same.
4993 * proc-service.c: Same.
4996 * tracepoint.c: Same.
4997 * win32-low.c: Same.
4999 2019-10-25 Tom Tromey <tromey@adacore.com>
5001 * utils.c (xstrdup): Remove.
5003 2019-10-23 Tom Tromey <tom@tromey.com>
5005 * configure, config.in: Rebuild.
5007 2019-10-23 Tom Tromey <tom@tromey.com>
5009 * configure: Rebuild.
5010 * acinclude.m4: Use m4_include, not sinclude.
5012 2019-10-17 Tom Tromey <tromey@adacore.com>
5014 * configure: Rebuild.
5015 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
5016 in AC_CONFIG_FILES invocation.
5017 * Makefile.in (stamp-h, Makefile): Use new-style config.status
5020 2019-10-16 Christian Biesinger <cbiesinger@google.com>
5022 * server.c: Include xml-builtin.h.
5023 (get_xml_features): Don't declare xml_builtins here.
5025 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5027 * Makefile.in: Remove references to vec-ipa.o.
5029 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
5031 * Makefile.in: Remove references to vec.c.
5033 2019-10-02 Christian Biesinger <cbiesinger@google.com>
5035 * server.c (server_waiting): Change to bool.
5036 (extended_protocol): Likewise.
5037 (response_needed): Likewise.
5038 (exit_requested): Likewise.
5039 (run_once): Likewise.
5040 (report_no_resumed): Likewise.
5041 (non_stop): Likewise.
5042 (disable_packet_vCont): Likewise.
5043 (disable_packet_Tthread): Likewise.
5044 (disable_packet_qC): Likewise.
5045 (disable_packet_qfThreadInfo): Likewise.
5046 (handle_general_set): Update.
5047 (handle_detach): Update.
5048 (handle_monitor_command): Update.
5049 (handle_query): Update.
5050 (captured_main): Update.
5051 (process_serial_event): Update.
5052 * server.h (server_waiting): Change to bool.
5053 (disable_packet_vCont): Likewise.
5054 (disable_packet_Tthread): Likewise.
5055 (disable_packet_qC): Likewise.
5056 (disable_packet_qfThreadInfo): Likewise.
5057 (run_once): Likewise.
5058 (non_stop): Likewise.
5059 * target.c (target_stop_and_wait): Update.
5061 2019-10-02 Tom Tromey <tromey@adacore.com>
5063 * Makefile.in (SFILES): Add common-inferior.c.
5064 (OBS): Add common-inferior.o.
5065 * server.c (startup_with_shell): Don't define.
5067 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
5069 * linux-low.c (linux_low_read_btrace): Update for change to
5072 2019-09-20 Christian Biesinger <cbiesinger@google.com>
5074 * debug.c (debug_threads): Remove comment in favor of the header.
5075 * debug.h (using_threads): Add declaration.
5076 (debug_threads): Add comment.
5077 * linux-aarch64-low.c: Include debug.h and remove declaration of
5079 * nto-low.c: Likewise.
5080 * remote-utils.c: Likewise.
5081 * thread-db.c: Likewise.
5083 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
5085 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
5086 and powerpc-cell64l-ipa.o.
5087 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
5088 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
5089 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
5092 * spu-low.c: Remove file.
5094 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
5095 (parse_spufs_run): Remove.
5096 (ppc_get_pc): Remove Cell/B.E. support.
5097 (ppc_set_pc): Likewise.
5098 (ppc_breakpoint_at): Likewise.
5099 (ppc_arch_setup): Likewise.
5100 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
5101 tdesc_powerpc_cell32l.
5102 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
5103 or init_registers_powerpc_cell32l.
5104 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
5105 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
5106 or init_registers_powerpc_cell32l.
5107 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
5108 (init_registers_powerpc_cell32l): Remove prototype.
5109 (init_registers_powerpc_cell64l): Likewise.
5111 * target.h (struct target_ops): Remove qxfer_spu member.
5112 * server.c (handle_qxfer_spu): Remove.
5113 (qxfer_packets): Remove entry for "spu".
5114 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
5115 * linux-low.c (SPUFS_MAGIC): Remove.
5116 (spu_enumerate_spu_ids): Remove.
5117 (linux_qxfer_spu): Remove.
5118 (linux_target_ops): Remove qxfer_spu member.
5119 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
5120 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
5121 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
5123 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
5125 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
5126 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
5127 * config.in: Regenerate.
5128 * configure: Regenerate.
5130 2019-08-15 Tom Tromey <tromey@adacore.com>
5132 * target.c (target_write_memory): Use gdb::byte_vector.
5134 2019-08-15 Tom Tromey <tromey@adacore.com>
5136 * tracepoint.c (write_inferior_data_pointer)
5137 (write_inferior_integer, write_inferior_int8)
5138 (write_inferior_uinteger, m_tracepoint_action_download)
5139 (r_tracepoint_action_download, x_tracepoint_action_download)
5140 (l_tracepoint_action_download, clear_inferior_trace_buffer)
5141 (download_agent_expr, download_tracepoint_1)
5142 (download_trace_state_variables, upload_fast_traceframes): Update.
5143 * server.c (gdb_write_memory): Update.
5144 * remote-utils.c (relocate_instruction): Update.
5145 * proc-service.c (ps_pdwrite): Update.
5146 * mem-break.c (remove_memory_breakpoint)
5147 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
5148 (uninsert_fast_tracepoint_jumps_at)
5149 (reinsert_fast_tracepoint_jumps_at): Update.
5150 * linux-x86-low.c (append_insns)
5151 (i386_install_fast_tracepoint_jump_pad)
5152 (amd64_write_goto_address, i386_write_goto_address): Update.
5153 * linux-s390-low.c (append_insns, s390_write_goto_address):
5155 * linux-ppc-low.c (ppc_relocate_instruction)
5156 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
5157 (ppc_write_goto_address): Update.
5158 * linux-aarch64-low.c (append_insns): Update.
5159 * target.h (struct target_ops): Update.
5160 (write_inferior_memory): Don't declare.
5161 * target.c (target_write_memory): Rename from
5162 write_inferior_memory. Remove old target_write_memory.
5164 2019-08-15 Tom Tromey <tromey@adacore.com>
5166 * target.c (write_inferior_memory): Use std::vector.
5168 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
5171 * configure.ac: Drop enable-libmcheck support.
5172 * configure, config.in: Rebuild.
5173 * acinclude.m4: Don't include it.
5175 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5177 * configure.srv: Remove Arm xml files.
5179 2019-07-19 Alan Hayward <alan.hayward@arm.com>
5181 * configure.srv: Add new files. Remove xml generated files.
5182 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
5184 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
5185 * linux-aarch32-tdesc.c: New file.
5186 * linux-aarch32-tdesc.h: New file.
5187 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
5188 * linux-arm-low.c (init_registers_arm, tdesc_arm)
5189 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
5190 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
5191 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
5192 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
5193 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
5194 (arm_read_description): Call arm_linux_read_description.
5195 (initialize_low_arch): Don't init registers.
5196 * linux-arm-tdesc.c: New file.
5197 * linux-arm-tdesc.h: New file.
5199 2019-07-10 Alan Hayward <alan.hayward@arm.com>
5201 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
5202 Move counter inside for.
5203 (arm_read_description): Check ptrace earlier.
5204 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
5206 2019-07-09 Tom Tromey <tom@tromey.com>
5208 * configure: Rebuild.
5209 * configure.ac: Change common to gdbsupport.
5210 * acinclude.m4: Change common to gdbsupport.
5211 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
5212 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
5213 common to gdbsupport.
5214 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
5215 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
5216 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
5217 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
5218 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
5219 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
5220 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
5221 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
5222 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
5223 common to gdbsupport.
5225 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5227 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
5229 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
5231 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5233 * configure.srv: Remove legacy xml.
5234 * linux-aarch64-low.c (initialize_low_arch): Remove
5235 initialize_low_tdesc call.
5236 * linux-aarch64-tdesc-selftest.c: Remove file.
5237 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
5238 * linux-x86-low.c (initialize_low_arch): Remove
5239 initialize_low_tdesc call.
5240 * linux-x86-tdesc-selftest.c: Remove file.
5241 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
5243 2019-06-20 Tom de Vries <tdevries@suse.de>
5245 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
5246 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
5248 2019-06-19 Tom de Vries <tdevries@suse.de>
5250 * debug.h (debug_write): Change return type to ssize_t.
5251 * debug.c (debug_write): Same.
5253 2019-06-14 Tom Tromey <tom@tromey.com>
5255 * configure.ac: Use new path to gnulib.
5256 * configure: Rebuild.
5257 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
5260 2019-06-11 Tom Tromey <tom@tromey.com>
5262 * Makefile.in (SFILES): Add alloc.c.
5264 (IPA_OBJS): Add alloc-ipa.o.
5265 (alloc-ipa.o): New target.
5266 (%.o: ../%.c): New pattern rule.
5268 2019-06-10 Tom Tromey <tromey@adacore.com>
5270 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
5271 end warning with a newline.
5272 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
5274 * thread-db.c (attach_thread): Don't end warning with a newline.
5275 (thread_db_notice_clone): Likewise.
5276 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
5278 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
5279 end warning with a newline.
5281 2019-06-04 Pedro Alves <palves@redhat.com>
5283 * server.c (captured_main): Use make_unique_xstrdup.
5285 2019-06-02 Tom Tromey <tom@tromey.com>
5287 * gdbreplay.c (fromhex): Remove.
5288 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
5290 2019-05-29 Tom Tromey <tromey@adacore.com>
5292 * configure: Rebuild.
5294 2019-05-06 Kevin Buettner <kevinb@redhat.com>
5296 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
5297 sign extension code on 32-bit builds.
5299 2019-05-03 Eli Zaretskii <eliz@gnu.org>
5302 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
5304 2019-04-19 Tom Tromey <tom@tromey.com>
5306 * server.c (struct vstop_notif): Derive from notif_event.
5308 (queue_stop_reply): Update.
5309 (remove_all_on_match_ptid): Change type. Rewrite.
5310 (discard_queued_stop_replies): Rewrite.
5311 (in_queued_stop_replies_ptid): Change type.
5312 (in_queued_stop_replies): Rewrite.
5313 (notif_stop): Update.
5314 (queue_stop_reply_callback): Update.
5315 (captured_main): Don't call initialize_notif.
5316 (push_stop_notification): Update.
5317 * notif.c (notif_write_event, handle_notif_ack)
5318 (notif_event_enque, notif_push): Update.
5319 (notif_event_xfree, initialize_notif): Remove.
5320 * notif.h (struct notif_event): Include <list>, not
5322 (struct notif_server) <queue>: Now a std::list.
5323 (notif_event_p): Remove typedef.
5324 (initialize_notif): Don't declare.
5325 (struct notif_event): Add virtual destructor.
5327 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5329 * ax.c (ax_vdebug): Call debug_printf.
5330 * debug.c (debug_write): New function.
5331 * debug.h (debug_write): New declaration.
5332 * linux-low.c (sigchld_handler): Call debug_write.
5334 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5336 * debug.c (debug_set_output): New function.
5337 (debug_vprintf): Send output to debug_file.
5338 (debug_flush): Likewise.
5339 * debug.h (debug_set_output): New declaration.
5340 * server.c (handle_monitor_command): Add debug-file option.
5341 (captured_main): Likewise.
5343 2019-04-17 Alan Hayward <alan.hayward@arm.com>
5345 * debug.c (remote_debug): Add definition.
5346 * debug.h (remote_debug): Add declaration.
5347 * hostio.c (remote_debug): Remove declaration.
5348 * remote-utils.c (struct ui_file): Likewise.
5349 (remote_debug): Likewise.
5350 * remote-utils.h (remote_debug): Likewise,
5351 * server.c (remote_debug): Remove definition.
5353 2019-04-10 Kevin Buettner <kevinb@redhat.com>
5355 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
5356 when using a 64-bit gdbserver.
5358 2019-04-09 Tom Tromey <tromey@adacore.com>
5360 * linux-low.c (select_event_lwp): Use find_thread_in_random.
5362 2019-04-08 Tom Tromey <tom@tromey.com>
5364 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
5366 (linux_resume_one_lwp): Likewise.
5368 2019-04-08 Tom Tromey <tom@tromey.com>
5370 * gdbreplay.c: Update.
5371 * linux-low.c: Update.
5374 2019-04-08 Tom Tromey <tom@tromey.com>
5376 * server.c: Use C++ exception handling.
5377 * linux-low.c: Use C++ exception handling.
5378 * gdbreplay.c: Use C++ exception handling.
5380 2019-04-08 Tom Tromey <tom@tromey.com>
5382 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
5383 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
5384 (captured_main, main): Update.
5385 * gdbreplay.c (main): Update.
5387 2019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5389 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
5390 value in argument pointer, return 1 if the entry is found and 0
5391 otherwise. Move comment.
5392 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
5393 * linux-low.h (linux_get_auxv): Declare.
5394 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
5396 2019-04-05 Tom Tromey <tromey@adacore.com>
5398 * server.c (gdbserver_usage): Use upper-case for metasyntactic
5401 2019-03-28 Alan Hayward <alan.hayward@arm.com>
5403 * linux-low.c (AT_HWCAP2): Add define if not already included.
5405 2019-03-26 Alan Hayward <alan.hayward@arm.com>
5407 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
5408 (aarch64_arch_setup): Call linux_get_hwcap.
5409 * linux-arm-low.c (arm_get_hwcap): Remove function.
5410 (arm_read_description): Call linux_get_hwcap.
5411 * linux-low.c (linux_get_auxv): New function.
5412 (linux_get_hwcap): Likewise.
5413 (linux_get_hwcap2): Likewise.
5414 * linux-low.h (linux_get_hwcap): New declaration.
5415 (linux_get_hwcap2): Likewise.
5416 * linux-ppc-low.c (ppc_get_auxv): Remove function.
5417 (ppc_arch_setup): Call linux_get_hwcap.
5418 * linux-s390-low.c (s390_get_hwcap): Remove function.
5419 (s390_arch_setup): Call linux_get_hwcap.
5421 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5422 Jiong Wang <jiong.wang@arm.com>
5424 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
5425 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
5427 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
5429 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5430 Jiong Wang <jiong.wang@arm.com>
5432 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
5433 (aarch64_get_hwcap): New function.
5434 (aarch64_arch_setup): Read APIA hwcap.
5436 2019-03-22 Alan Hayward <alan.hayward@arm.com>
5437 Jiong Wang <jiong.wang@arm.com>
5439 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
5440 (initialize_low_tracepoint): Likewise.
5441 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
5442 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
5443 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
5444 (aarch64_linux_read_description): Likewise.
5445 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
5447 2019-03-12 John Baldwin <jhb@FreeBSD.org>
5449 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
5450 i386_create_target_description for 'segments' parameter.
5451 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
5452 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
5453 * win32-i386-low.c (i386_arch_setup): Likewise.
5455 2019-03-12 Tom Tromey <tromey@adacore.com>
5457 * linux-low.c (iterate_over_lwps): Update.
5459 2019-03-06 Tom Tromey <tom@tromey.com>
5461 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
5462 (captured_main): Use SCOPE_EXIT.
5464 2019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
5466 * configure.srv: Use '$enable_unittest' instead of '$development'
5467 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
5470 2019-02-27 Tom Tromey <tromey@adacore.com>
5472 * gdbreplay.c (logchar): Handle \r\n.
5474 2019-02-07 Alan Hayward <alan.hayward@arm.com>
5476 * linux-low.c (linux_attach): Add process before lwp.
5477 * server.c (attach_inferior): Check if already attached.
5479 2019-02-07 Tom Tromey <tom@tromey.com>
5481 * x86-tdesc.h: Rename include guard.
5482 * x86-low.h: Add include guard.
5483 * wincecompat.h: Rename include guard.
5484 * win32-low.h: Add include guard.
5485 * utils.h: Rename include guard.
5486 * tracepoint.h: Rename include guard.
5487 * tdesc.h: Rename include guard.
5488 * target.h: Rename include guard.
5489 * server.h: Rename include guard.
5490 * remote-utils.h: Rename include guard.
5491 * regcache.h: Rename include guard.
5492 * nto-low.h: Rename include guard.
5493 * notif.h: Add include guard.
5494 * mem-break.h: Rename include guard.
5495 * lynx-low.h: Add include guard.
5496 * linux-x86-tdesc.h: Add include guard.
5497 * linux-s390-tdesc.h: Add include guard.
5498 * linux-ppc-tdesc-init.h: Add include guard.
5499 * linux-low.h: Add include guard.
5500 * linux-aarch64-tdesc.h: Add include guard.
5501 * linux-aarch32-low.h: Add include guard.
5502 * inferiors.h: Rename include guard.
5503 * i387-fp.h: Rename include guard.
5504 * hostio.h: Rename include guard.
5505 * gdbthread.h: Rename include guard.
5506 * gdb_proc_service.h: Rename include guard.
5507 * event-loop.h: Rename include guard.
5508 * dll.h: Rename include guard.
5509 * debug.h: Rename include guard.
5510 * ax.h: Rename include guard.
5512 2018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
5515 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
5516 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
5518 2019-01-25 Tom Tromey <tom@tromey.com>
5520 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
5522 2019-01-25 Tom Tromey <tom@tromey.com>
5524 * win32-low.c: Fix common/ includes.
5525 * win32-i386-low.c: Fix common/ includes.
5526 * tracepoint.c: Fix common/ includes.
5527 * thread-db.c: Fix common/ includes.
5528 * target.h: Fix common/ includes.
5529 * symbol.c: Fix common/ includes.
5530 * spu-low.c: Fix common/ includes.
5531 * server.h: Fix common/ includes.
5532 * server.c: Fix common/ includes.
5533 * remote-utils.c: Fix common/ includes.
5534 * regcache.h: Fix common/ includes.
5535 * regcache.c: Fix common/ includes.
5536 * nto-x86-low.c: Fix common/ includes.
5537 * notif.h: Fix common/ includes.
5538 * mem-break.h: Fix common/ includes.
5539 * lynx-low.c: Fix common/ includes.
5540 * lynx-i386-low.c: Fix common/ includes.
5541 * linux-x86-tdesc-selftest.c: Fix common/ includes.
5542 * linux-x86-low.c: Fix common/ includes.
5543 * linux-low.c: Fix common/ includes.
5544 * inferiors.h: Fix common/ includes.
5545 * i387-fp.c: Fix common/ includes.
5546 * hostio.c: Fix common/ includes.
5547 * hostio-errno.c: Fix common/ includes.
5548 * gdbthread.h: Fix common/ includes.
5549 * gdbreplay.c: Fix common/ includes.
5550 * fork-child.c: Fix common/ includes.
5551 * event-loop.c: Fix common/ includes.
5553 (enum gdb_agent_op): Fix common/ includes.
5555 2019-01-21 Tom Tromey <tom@tromey.com>
5557 * tracepoint.c: Fix includes.
5558 * remote-utils.c: Fix includes.
5559 * linux-x86-low.c: Fix includes.
5561 2019-01-01 Joel Brobecker <brobecker@adacore.com>
5563 * gdbreplay.c (gdbreplay_version): Update copyright year in
5565 * server.c (gdbserver_version): Likewise.
5567 2018-12-05 Alan Hayward <alan.hayward@arm.com>
5569 * linux-low.c (add_lwp): Switch ordering.
5571 2018-11-29 Tom Tromey <tom@tromey.com>
5573 * win32-low.c (win32_join): Take pid, not process.
5574 * target.h (struct target_ops) <join>: Change argument type.
5575 (join_inferior): Change argument name.
5576 * spu-low.c (spu_join): Take pid, not process.
5577 * server.c (handle_detach): Preserve pid before destroying
5579 * lynx-low.c (lynx_join): Take pid, not process.
5580 * linux-low.c (linux_join): Take pid, not process.
5582 2018-11-23 Alan Hayward <alan.hayward@arm.com>
5584 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
5585 (aarch64_cannot_fetch_register): Likewise.
5586 (struct linux_target_ops): Update references.
5588 2018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5590 * linux-ppc-low.c: Include nat/linux-ptrace.h.
5592 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5594 * configure.srv (ipa_ppc_linux_regobj): Add
5595 powerpc-isa207-htm-vsx32l-ipa.o and
5596 powerpc-isa207-htm-vsx64l-ipa.o.
5597 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
5598 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
5599 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
5600 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
5601 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
5602 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
5603 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
5604 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
5605 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5606 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
5607 (init_registers_powerpc_isa207_htm_vsx32l)
5608 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
5609 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
5610 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
5611 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
5612 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
5613 (ppc_store_tm_ctarregset): New functions.
5614 (ppc_regsets): Add entries for HTM regsets.
5615 (ppc_arch_setup): Set htm in features struct when needed. Set
5616 sizes for the HTM regsets.
5617 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
5618 (initialize_low_arch): Call
5619 init_registers_powerpc_isa207_htm_vsx32l and
5620 init_registers_powerpc_isa207_htm_vsx64l.
5621 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5622 PPC_TDESC_ISA207_HTM_VSX.
5623 (initialize_low_tracepoint): Call
5624 init_registers_powerpc_isa207_htm_vsx32l and
5625 init_registers_powerpc_isa207_htm_vsx64l.
5627 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5629 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
5630 rs6000/power-linux-pmu.xml to srv_xmlfiles.
5631 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
5632 (ppc_store_pmuregset): New functions.
5633 (ppc_regsets): Add entries for ebb and pmu regsets.
5634 (ppc_arch_setup): Set isa207 in features struct if the ebb and
5635 pmu regsets are available. Set sizes for these regsets.
5637 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5639 * configure.srv (ipa_ppc_linux_regobj): Add
5640 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
5641 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
5642 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
5643 rs6000/powerpc-isa207-vsx32l.xml, and
5644 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
5645 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5646 <PPC_TDESC_ISA207_VSX>: New enum value.
5647 (init_registers_powerpc_isa207_vsx32l): Declare.
5648 (init_registers_powerpc_isa207_vsx64l): Declare.
5649 * linux-ppc-low.c (ppc_fill_tarregset): New function.
5650 (ppc_store_tarregset): New function.
5651 (ppc_regsets): Add entry for the TAR regset.
5652 (ppc_arch_setup): Set isa207 in features struct when needed. Set
5653 size for the TAR regsets.
5654 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
5655 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
5656 and init_registers_powerpc_isa207_vsx64l.
5657 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
5658 (initialize_low_tracepoint): Call
5659 init_registers_powerpc_isa207_vsx32l and
5660 init_registers_powerpc_isa207_vsx64l.
5662 2018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
5663 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5665 * configure.srv (ipa_ppc_linux_regobj): Add
5666 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
5667 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
5668 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
5669 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
5670 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
5671 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
5672 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
5673 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
5674 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
5675 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
5676 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
5677 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
5678 (ppc_hwcap): Add comment.
5679 (ppc_hwcap2): New global.
5680 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
5681 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
5682 (ppc_regsets): Add entries for the DSCR and PPR regsets.
5683 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
5684 when needed. Set sizes for the the DSCR and PPR regsets.
5685 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
5686 (initialize_low_arch): Call
5687 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5688 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5689 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
5690 PPC_TDESC_ISA205_PPR_DSCR_VSX.
5691 (initialize_low_tracepoint): Call
5692 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
5693 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
5695 2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5697 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
5699 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
5700 Simon Marchi <simark@simark.ca>
5702 * acinclude.m4: Include "../selftest.m4".
5703 * configure: Regenerate.
5704 * configure.ac: Use "GDB_AC_SELFTEST".
5705 * configure.srv: Use "$enable_unittests" instead of
5706 "$development" when checking whether unit tests have been
5708 * server.c (captured_main): Update message informing that
5709 selftests have been disabled.
5711 2018-10-04 Tom Tromey <tom@tromey.com>
5713 * configure: Rebuild.
5715 2018-10-04 Tom Tromey <tom@tromey.com>
5717 * server.c (handle_status): Rename inner "thread".
5718 (process_serial_event): Declare "res" in 'm' case.
5719 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
5720 (iterate_over_lwps): Rename inner "thread".
5721 (linux_qxfer_libraries_svr4): Rename inner "len".
5722 * gdbthread.h (find_thread_in_random): Rename inner "thread".
5724 2018-10-01 Gary Benson <gbenson@redhat.com>
5726 * gdb_proc_service.h: Moved common code to
5727 common/gdb_proc_service.h.
5729 2018-10-01 Gary Benson <gbenson@redhat.com>
5731 * gdb_proc_service.h: Synchronize comments and whitespace with
5732 GDB's version of this file.
5734 2018-09-25 Tom Tromey <tom@tromey.com>
5736 * configure: Rebuild.
5737 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
5739 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5741 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
5742 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
5743 ($(IPA_LIB)): Sort IPA_OBJS.
5745 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
5747 * Makefile.in: Remove references to $(ADD_DEPS).
5749 2018-09-16 Tom Tromey <tom@tromey.com>
5751 * remote-utils.c (remote_open): Use GNU style for metasyntactic
5753 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
5756 2018-09-05 Tom Tromey <tom@tromey.com>
5758 * configure: Rebuild.
5760 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
5763 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
5765 2018-08-27 Tom Tromey <tom@tromey.com>
5768 * configure: Rebuild.
5770 2018-08-27 Tom Tromey <tom@tromey.com>
5772 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
5773 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
5774 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
5775 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
5776 (s390x_emit_stack_adjust): Add casts to unsigned char.
5778 2018-08-22 Simon Marchi <simon.marchi@ericsson.com>
5782 * server.h (struct client_state) <disable_randomization>:
5785 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5787 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
5789 (mips_supply_ptrace_register): Likewise.
5791 2018-07-22 Tom Tromey <tom@tromey.com>
5793 * configure: Rebuild.
5795 2018-07-22 Tom Tromey <tom@tromey.com>
5797 * win32-low.c (win32_create_inferior): Remove unused variables.
5798 * gdbreplay.c (remote_open): Remove unused variable.
5799 * remote-utils.c (remote_prepare): Remove unused variable.
5800 * x86-tdesc.h (X86_TDESC_H): Define.
5801 (amd64_expedite_regs): Define conditionally.
5802 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
5803 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
5804 * remote-utils.c (readchar): Remove unused variable.
5806 2018-07-13 Pedro Alves <palves@redhat.com>
5808 * linux-low.c (linux_kill): Change parameter to process_info
5809 pointer instead of pid. Adjust.
5810 * lynx-low.c (lynx_kill): Likewise.
5811 * nto-low.c (nto_kill): Likewise.
5812 * spu-low.c (spu_kill): Likewise.
5813 * win32-low.c (win32_kill): Likewise.
5814 * server.c (handle_v_kill, kill_inferior_callback)
5815 (detach_or_kill_for_exit): Adjust.
5816 * target.c (kill_inferior): Change parameter to process_info
5817 pointer instead of pid. Adjust.
5818 * target.h (struct target_ops) <kill>: Change parameter to
5819 process_info pointer instead of pid. Adjust all implementations
5821 (kill_inferior): Likewise.
5823 2018-07-13 Pedro Alves <palves@redhat.com>
5825 * linux-low.c (linux_detach, linux_join): Change parameter to
5826 process_info pointer instead of pid. Adjust.
5827 * lynx-low.c (lynx_detach, lynx_join): Likewise.
5828 * nto-low.c (nto_detach): Likewise.
5829 * spu-low.c (spu_detach, spu_join): Likewise.
5830 * win32-low.c (win32_detach, win32_join): Likewise.
5831 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
5832 * target.h (struct target_ops) <detach, join>: Change parameter to
5833 process_info pointer instead of pid. Adjust all implementations
5835 (detach_inferior, join_inferior): Rename 'pid' parameter to
5838 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
5839 Jan Kratochvil <jan.kratochvil@redhat.com>
5840 Paul Fertser <fercerpav@gmail.com>
5841 Tsutomu Seki <sekiriki@gmail.com>
5843 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
5844 (OBS): Add 'common/netstuff.o'.
5845 (GDBREPLAY_OBS): Likewise.
5846 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
5847 (remote_open): Implement support for IPv6
5849 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
5851 (handle_accept_event): Accept connections from IPv6 sources.
5852 (remote_prepare): Handle IPv6-style hostnames; implement
5853 support for IPv6 connections.
5854 (remote_open): Implement support for printing connections from
5857 2018-07-11 Pedro Alves <palves@redhat.com>
5860 * mem-break.c (any_persistent_commands): Add process_info
5861 parameter and use it instead of relying on the current process.
5862 Change return type to bool.
5863 * mem-break.h (any_persistent_commands): Add process_info
5864 parameter and change return type to bool.
5865 * server.c (handle_detach): Remove require_running_or_return call.
5866 Look up the process_info for the process we're about to detach.
5867 If not found, return back error to GDB. Adjust
5868 any_persistent_commands call to pass down a process pointer.
5870 2018-07-11 Pedro Alves <palves@redhat.com>
5872 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
5873 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
5874 instead of collect_register_by_name.
5875 * regcache.c (regcache_raw_get_unsigned_by_name): New.
5876 * regcache.h (regcache_raw_get_unsigned_by_name): New.
5878 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
5879 Pedro Alves <palves@redhat.com>
5881 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
5883 2018-07-03 Tom Tromey <tom@tromey.com>
5885 * linux-low.c: Update.
5886 * lynx-low.c: Update.
5887 * mem-break.c: Update.
5888 * nto-low.c: Update.
5889 * remote-utils.c: Update.
5891 * spu-low.c: Update.
5893 * win32-low.c: Update.
5895 2018-07-03 Tom Tromey <tom@tromey.com>
5899 2018-07-03 Tom Tromey <tom@tromey.com>
5901 * linux-low.c: Update.
5903 2018-07-03 Tom Tromey <tom@tromey.com>
5907 2018-07-03 Tom Tromey <tom@tromey.com>
5909 * linux-low.c: Update.
5910 * linux-mips-low.c: Update.
5911 * lynx-low.c: Update.
5912 * nto-low.c: Update.
5913 * remote-utils.c: Update.
5915 * spu-low.c: Update.
5917 * thread-db.c: Update.
5919 2018-07-03 Tom Tromey <tom@tromey.com>
5921 * linux-low.c: Update.
5922 * linux-mips-low.c: Update.
5923 * lynx-low.c: Update.
5924 * mem-break.c: Update.
5925 * nto-low.c: Update.
5926 * remote-utils.c: Update.
5928 * spu-low.c: Update.
5930 * tracepoint.c: Update.
5932 2018-07-03 Tom Tromey <tom@tromey.com>
5934 * linux-low.c: Update.
5935 * linux-ppc-low.c: Update.
5936 * linux-x86-low.c: Update.
5937 * proc-service.c: Update.
5939 * spu-low.c: Update.
5940 * thread-db.c: Update.
5941 * win32-low.c: Update.
5943 2018-07-03 Tom Tromey <tom@tromey.com>
5945 * linux-low.c: Update.
5946 * lynx-low.c: Update.
5947 * nto-low.c: Update.
5948 * remote-utils.c: Update.
5949 * spu-low.c: Update.
5950 * thread-db.c: Update.
5951 * win32-low.c: Update.
5953 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5955 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
5956 parameter in call to 'amd64_create_target_description'.
5958 2018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5960 * x86-tdesc.h: Remove executable permission flag.
5962 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5964 * configure.ac: Remove AC_PREREQ, add missing quoting.
5965 * configure: Re-generate.
5966 * config.in: Re-generate.
5967 * aclocal.m4: Re-generate.
5969 2018-06-18 Simon Marchi <simon.marchi@ericsson.com>
5971 * tracepoint.h (current_traceframe): Remove declaration.
5973 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5975 * linux-aarch64-low.c (is_sve_tdesc): New function.
5976 (aarch64_sve_regs_copy_to_regcache): Likewise.
5977 (aarch64_sve_regs_copy_from_regcache): Likewise.
5978 (aarch64_regs_info): Add SVE checks.
5979 (initialize_low_arch): Initialize SVE.
5981 2018-06-18 Alan Hayward <alan.hayward@arm.com>
5983 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
5985 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5987 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
5988 (initialize_low_tracepoint): Likewise
5989 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
5990 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
5992 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
5994 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
5996 2018-06-11 Alan Hayward <alan.hayward@arm.com>
5998 * server.h (PBUFSIZ): Increase size
6000 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6002 * regcache.c (regcache::raw_compare): New function.
6003 * regcache.h (regcache::raw_compare): New declaration.
6005 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6007 * regcache.c (new_register_cache): Use new.
6008 (free_register_cache): Use delete.
6009 (register_data): Use const.
6010 (supply_register): Move body inside regcache.
6011 (regcache::raw_supply): New override function.
6012 (collect_register): Move body inside regcache.
6013 (regcache::raw_collect): New override function.
6014 (regcache::get_register_status): New override function.
6015 * regcache.h (struct regcache): Inherit from reg_buffer_common.
6017 2018-06-09 Tom Tromey <tom@tromey.com>
6019 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
6021 (event_queue): Use std::queue.
6022 (gdb_event_xfree): Remove.
6023 (initialize_event_loop, process_event, wait_for_event): Update.
6025 2018-06-08 Stan Cox <scox@redhat.com>
6027 * win32-low.c (win32_create_inferior): last_ptid and last_status
6028 moved to client_state.
6030 2018-06-08 Pedro Alves <palves@redhat.com>
6032 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
6033 common/common-exceptions.o, common/common-utils.o,
6034 common/errors.o, common/print-utils.o and utils.o.
6035 * gdbreplay.c: Include "common-defs.h" instead of the two
6036 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
6037 string.h or alloca.h.
6038 (perror_with_name): Delete.
6039 (remote_open): Use xstrdup instead of strdup.
6040 (main): Rename to ...
6041 (captured_main): ... this.
6044 2018-06-08 Tom Tromey <tom@tromey.com>
6046 * linux-low.c (linux_low_read_btrace): Update.
6048 2018-06-04 Stan Cox <scox@redhat.com>
6050 * server.h (struct client_state): New.
6051 * server.c (cont_thread, general_thread, multi_process)
6052 (report_fork_events, report_vfork_events, report_exec_events)
6053 (report_thread_events, swbreak_feature, hwbreak_feature)
6054 (vCont_supported, disable_randomization, pass_signals)
6055 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
6056 Moved to client_state.
6057 * remote-utils.c (remote_debug, noack_mode)
6058 (transport_is_reliable): Moved to client_state.
6059 * tracepoint.c (current_traceframe): Moved to client_state.
6062 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
6063 linux-low.c, remote-utils.h, target.c: Use client_state.
6065 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6067 * configure.srv: Add new c/h file.
6069 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6071 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
6074 2018-05-25 Maciej W. Rozycki <macro@mips.com>
6076 * gdb.arch/mips-fpregset-core.exp: New test.
6077 * gdb.arch/mips-fpregset-core.c: New test source.
6079 2018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
6082 * hostio.c (require_int): Do not report overflow for integers
6083 between 0xfffffff and 0x7fffffff.
6085 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6087 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
6088 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
6089 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
6091 (the_low_target): Wire them.
6093 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6095 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
6096 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
6097 mode. Call collect_register_by_name with vscr using
6098 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
6099 (ppc_store_vrregset): Add and set vscr_offset variable as in
6100 ppc_fill_vrregset. Call supply_register_by_name with vscr using
6103 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6105 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
6106 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
6107 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
6109 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6111 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
6112 (ppc_store_vsxregset): Likewise.
6113 (ppc_fill_vrregset): Likewise.
6114 (ppc_store_vrregset): Likewise.
6115 (ppc_fill_evrregset): Likewise.
6116 (ppc_store_evrregset): Likewise.
6117 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
6118 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
6121 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6123 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
6124 wordsize of the inferior. Call ppc_linux_target_wordsize.
6126 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
6128 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
6129 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
6130 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
6131 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
6132 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
6133 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
6134 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
6135 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
6136 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
6137 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
6138 (tdesc_powerpc_e500l): Remove.
6139 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
6140 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
6141 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
6142 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
6144 (ppc_arch_setup): Remove target description matching code. Fill a
6145 ppc_linux_features struct and call ppc_linux_match_description
6148 2018-05-22 Maciej W. Rozycki <macro@mips.com>
6150 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
6151 width of the requested register exceeds the width of the
6153 (mips_cannot_store_register): Likewise.
6155 2018-05-21 Maciej W. Rozycki <macro@mips.com>
6157 * linux-mips-low.c (mips_fetch_register): New function. Update
6159 (mips_store_gregset): Supply 0 rather than $restart for $zero.
6160 (the_low_target): Wire `mips_fetch_register'.
6162 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6164 * lynx-i386-low.c (LYNXOS_178): New macro.
6165 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
6166 the layout on LynxOS-178.
6167 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
6168 handle floating point registers that are not supported by
6171 2018-05-10 Tom Tromey <tom@tromey.com>
6173 * configure: Rebuild.
6175 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6178 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
6179 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
6180 Use it to set the expedite_regs field in the given tdesc.
6181 * x86-tdesc.h: New file.
6182 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
6183 Adjust following the addition of the new expedite_regs parameter
6184 to init_target_desc.
6185 * linux-tic6x-low.c (tic6x_read_description): Likewise.
6186 * linux-x86-tdesc.c: #include "x86-tdesc.h".
6187 (i386_linux_read_description, amd64_linux_read_description):
6188 Adjust following the addition of the new expedite_regs parameter
6189 to init_target_desc.
6190 * lynx-i386-low.c: #include "x86-tdesc.h".
6191 (lynx_i386_arch_setup): Adjust following the addition of the new
6192 expedite_regs parameter to init_target_desc.
6193 * nto-x86-low.c: #include "x86-tdesc.h".
6194 (nto_x86_arch_setup): Adjust following the addition of the new
6195 expedite_regs parameter to init_target_desc.
6196 * win32-i386-low.c: #include "x86-tdesc.h".
6197 (i386_arch_setup): Adjust following the addition of the new
6198 expedite_regs parameter to init_target_desc.
6200 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6203 * win32-low.c (win32_create_inferior): Add call to my_wait
6204 setting last_status global.
6206 2018-05-10 Joel Brobecker <brobecker@adacore.com>
6209 * win32-low.c (create_process): Only call gdb_tilde_expand if
6210 inferior_cwd is not NULL.
6212 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
6214 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
6215 registers to the cache if their values have changed.
6216 (i387_xsave_to_cache): Provide default values for x87 control
6217 registers when these features are available, but disabled.
6218 * regcache.c (supply_register_by_name_zeroed): New function.
6219 * regcache.h (supply_register_by_name_zeroed): Declare new
6222 2018-05-07 Tom Tromey <tom@tromey.com>
6224 * configure: Rebuild.
6226 2018-05-04 Tom Tromey <tom@tromey.com>
6228 * configure: Rebuild.
6230 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6231 Pedro Alves <palves@redhat.com>
6233 * linux-aarch64-low.c (aarch64_stopped_data_address):
6236 2018-04-27 Tom Tromey <tom@tromey.com>
6238 * configure: Rebuild.
6240 2018-04-23 Tom Tromey <tom@tromey.com>
6242 * configure: Rebuild.
6244 2018-04-19 Simon Marchi <simon.marchi@ericsson.com>
6246 * Makefile.in (depcomp): Add "..".
6247 (all_deps_files): New and use it.
6249 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6251 * configure.srv (aarch64*-*-linux*): Don't include xml.
6252 (i[34567]86-*-cygwin*): Likewise.
6253 (i[34567]86-*-linux*): Likewise.
6254 (i[34567]86-*-lynxos*): Likewise.
6255 (i[34567]86-*-mingw32ce*): Likewise.
6256 (i[34567]86-*-mingw*): Likewise.
6257 (i[34567]86-*-nto*): Likewise.
6258 (tic6x-*-uclinux): Likewise.
6259 (x86_64-*-linux*): Likewise.
6260 (x86_64-*-mingw*): Likewise.
6261 (x86_64-*-cygwin*): Likewise.
6263 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6265 * tdesc.c: Remove xml parameter.
6267 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6269 * server.c (get_features_xml): Remove cast.
6270 * tdesc.c (void target_desc::accept): Fill in function.
6271 (tdesc_get_features_xml): Remove old xml creation.
6272 (print_xml_feature::visit_pre): Add xml vistor.
6273 * tdesc.h (struct target_desc): Make xmltarget mutable.
6274 (tdesc_get_features_xml): Remove declaration.
6276 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6278 * tdesc.c (tdesc_architecture_name): Add new function.
6279 (tdesc_osabi_name): Likewise.
6280 (tdesc_get_features_xml): Use new functions.
6282 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6284 * tdesc.c (tdesc_create_flags): Remove.
6285 (tdesc_add_flag): Likewise.
6286 (tdesc_named_type): Likewise.
6287 (tdesc_create_union): Likewise.
6288 (tdesc_create_struct): Likewise.
6289 (tdesc_create_vector): Likewise.
6290 (tdesc_add_bitfield): Likewise.
6291 (tdesc_add_field): Likewise.
6292 (tdesc_set_struct_size): Likewise.
6294 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6296 * tdesc.c (~target_desc): Remove implictly deleted items.
6297 (init_target_desc): Iterate all features.
6298 (tdesc_get_features_xml): Use vector.
6299 (tdesc_create_feature): Create feature.
6300 * tdesc.h (tdesc_feature) Remove
6301 (target_desc): Add features.
6303 2018-04-18 Alan Hayward <alan.hayward@arm.com>
6305 * Makefile.in: Add common/tdesc.c
6306 * tdesc.c (init_target_desc): init all reg_defs from register
6308 (tdesc_create_reg): Create tdesc_reg.
6309 * tdesc.h (tdesc_feature): Add register vector.
6311 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
6313 * tdesc.h (struct target_desc) <features>: Change type to
6314 std::vector<std::string>.
6315 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
6317 (tdesc_get_features_xml): Likewise.
6318 (tdesc_create_feature): Likewise.
6320 2018-03-26 Alan Hayward <alan.hayward@arm.com>
6322 * regcache.c (find_register_by_number): Return a ref.
6323 (find_regno): Use references.
6324 (register_size): Likewise.
6325 (register_data): Likewise.
6326 * tdesc.c (target_desc::~target_desc): Remove free calls.
6327 (target_desc::operator==): Use std::vector compare.
6328 (init_target_desc): Use reference.
6329 (tdesc_create_reg): Use reg constructors.
6330 * tdesc.h (struct target_desc): Replace pointer with object.
6332 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6334 * regcache.c (find_register_by_number): Make static.
6335 (find_regno): Use find_register_by_number
6336 * regcache.h (struct reg): Remove declaration.
6338 2018-03-23 Alan Hayward <alan.hayward@arm.com>
6340 * tdesc.c (target_desc::~target_desc): Move to here.
6341 (target_desc::operator==): Likewise.
6342 * tdesc.h (target_desc::~target_desc): Move from here.
6343 (target_desc::operator==): Likewise.
6345 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
6347 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
6349 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6351 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
6353 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
6354 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
6355 and init_registers_s390_gs_linux64.
6357 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6359 * linux-s390-low.c (s390_fill_gs): Remove function.
6360 (s390_fill_gsbc): Remove function.
6361 (s390_regsets): Set fill functions for the guarded storage regsets
6364 2018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
6366 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
6367 the word size. Add comment.
6368 (s390_get_wordsize): New function.
6369 (s390_arch_setup): No longer select a temporary tdesc to fetch the
6370 pswm with it. Instead, use s390_get_wordsize to determine the
6371 word size first and derive the correct tdesc from that directly.
6373 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
6375 * Makefile.in: Include silent-rules.mk.
6376 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
6377 (COMPILE): Add ECHO_CXX.
6378 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6379 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
6380 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
6381 (version-generated.c): Add ECHO_GEN.
6382 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
6383 (IPAGENT_COMPILE): Add ECHO_CXX.
6384 (%-generated.c): Add ECHO_REGDAT.
6386 2018-03-14 Tom Tromey <tom@tromey.com>
6389 * ax.c (ax_printf): Special case for NULL.
6391 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6393 * linux-low.c (linux_qxfer_libraries_svr4): Use
6394 xml_escape_text_append.
6396 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
6398 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
6400 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6402 * server.c (handle_general_set): Remove unnecessary xstrdup.
6404 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
6406 * server.c (parse_debug_format_options): Adjust to
6407 delim_string_to_char_ptr_vec changes.
6408 * thread-db.c (thread_db_load_search): Adjust to
6409 dirnames_to_char_ptr_vec changes.
6411 2018-03-01 Markus Metzger <markus.t.metzger@intel.com>
6413 * target.h (target_enable_btrace, target_disable_btrace)
6414 (target_read_btrace, target_read_btrace_conf): Turn macro into
6415 inline function. Throw error if target method is not defined.
6416 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
6417 check for btrace target method. Be prepared to handle exceptions
6418 from btrace target methods.
6420 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6422 * server.c (captured_main): Change order of error message printed
6423 when the current working directory cannot be found.
6425 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6427 * server.c: Include "filenames.h" and "pathstuff.h".
6428 (program_name): Delete variable.
6429 (program_path): New anonymous class.
6430 (get_exec_wrapper): Use "program_path" instead of
6432 (handle_v_run): Likewise.
6433 (captured_main): Likewise.
6434 (process_serial_event): Likewise.
6436 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
6438 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
6439 (OBJS): Add "pathstuff.o".
6440 * server.c (current_directory): New global variable.
6441 (captured_main): Initialize "current_directory".
6443 2018-02-26 Alan Hayward <alan.hayward@arm.com>
6445 * tdesc.c: Use common/tdesc.h.
6446 * tdesc.h: Likewise.
6448 2018-02-20 Alan Hayward <alan.hayward@arm.com>
6449 Simon Marchi <simon.marchi@ericsson.com>
6451 * Makefile.in: Switch order of make rules.
6453 2018-02-19 Alan Hayward <alan.hayward@arm.com>
6455 * Makefile.in: Add common directory in build.
6456 * configure.ac: Add common reference.
6457 * configure: Regenerate.
6459 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6461 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
6462 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
6463 * spu-low.c (spu_target_ops): Likewise.
6464 * win32-low.c (win32_target_ops): Likewise.
6465 * server.c (supported_btrace_packets): Report packets unconditionally.
6466 * target.h (target_ops) <supports_btrace>: Remove.
6467 (target_supports_btrace): Remove.
6469 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
6471 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
6472 (handle_btrace_disable): Change return type to void. Use exceptions
6474 (handle_btrace_general_set): Catch exception and copy message to
6477 2018-02-08 Tom Tromey <tom@tromey.com>
6479 * linux-low.c (install_software_single_step_breakpoints): Use
6480 make_scoped_restore.
6481 * inferiors.c (make_cleanup_restore_current_thread): Remove.
6482 (do_restore_current_thread_cleanup): Remove.
6483 * gdbthread.h (make_cleanup_restore_current_thread): Don't
6486 2018-02-08 Tom Tromey <tom@tromey.com>
6488 * mem-break.c (set_raw_breakpoint_at): Use
6489 gdb::unique_xmalloc_ptr.
6491 2018-01-30 Pedro Alves <palves@redhat.com>
6494 * target.c (target_terminal::terminal_state): Rename to ...
6495 (target_terminal::m_terminal_state): ... this.
6497 2018-01-19 James Clarke <jrtc27@jrtc27.com>
6499 * linux-low.c (handle_extended_wait): Surround call to
6500 thread_db_notice_clone with #ifdef USE_THREAD_DB.
6502 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
6504 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
6505 linux_ptrace_attach_fail_reason_string now returning an
6507 (linux_attach): Likewise.
6508 * thread-db.c (attach_thread): Likewise.
6510 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
6513 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
6514 checking for fs_base/gs_base fields in struct user_regs_struct.
6515 * configure: Regenerate.
6517 2018-01-16 Yao Qi <yao.qi@linaro.org>
6520 * linux-low.c (fetch_register): Call supply_register instead of
6523 2018-01-08 Yao Qi <yao.qi@linaro.org>
6524 Simon Marchi <simon.marchi@ericsson.com>
6526 * Makefile.in (OBS): Remove selftest.o.
6527 * configure.ac: Set srv_selftest_objs if $development is true.
6528 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
6529 * configure: Re-generated.
6530 * server.c (captured_main): Wrap variable selftest_filter with
6533 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
6535 * server.c (parse_debug_format_options): Return std::string.
6536 (handle_monitor_command, captured_main): Adjust.
6538 2018-01-05 Pedro Alves <palves@redhat.com>
6541 * server.c (captured_main): Pass quiet=false to
6542 save_original_signals_state.
6544 2018-01-01 Joel Brobecker <brobecker@adacore.com>
6546 * gdbreplay.c (gdbreplay_version): Update copyright year in
6548 * server.c (gdbserver_version): Likewise.
6550 2017-12-08 Tom Tromey <tom@tromey.com>
6552 * ax.c (ax_printf): Update.
6554 2017-12-07 Yao Qi <yao.qi@linaro.org>
6556 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
6557 aarch64_linux_read_description.
6558 * linux-amd64-ipa.c (idx2mask): New array.
6559 (get_ipa_tdesc): Move idx2mask out.
6560 (initialize_low_tracepoint): Initialize target descriptions.
6561 * linux-i386-ipa.c (idx2mask): New array.
6562 (get_ipa_tdesc): Move idx2mask out.
6563 (initialize_low_tracepoint): Initialize target descriptions.
6565 2017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
6567 * tdesc.c (struct tdesc_type): Change return type.
6568 (tdesc_add_flag): Change parameter type.
6569 (tdesc_add_bitfield): Likewise.
6570 (tdesc_add_field): Likewise.
6571 (tdesc_set_struct_size): Likewise.
6573 2017-12-05 Simon Marchi <simon.marchi@ericsson.com>
6575 * regcache.c (registers_to_string): Remove unused variable.
6577 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6579 * inferiors.c (for_each_inferior_with_data): Remove.
6580 * inferiors.h (for_each_inferior_with_data): Remove.
6581 * server.c (handle_qxfer_threads_worker): Change parameter type.
6582 (handle_qxfer_threads_proper): Use for_each_thread.
6584 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6586 * inferiors.c (for_each_inferior): Remove.
6587 (clear_inferiors): Use for_each_thread.
6588 * inferiors.h (for_each_inferior): Remove.
6589 * linux-low.c (linux_wait_for_event_filtered): Use
6591 (linux_stabilize_threads): Likewise.
6592 * regcache.c (regcache_release): Likewise.
6593 * server.c (gdb_wants_all_threads_stopped): Likewise.
6594 (clear_pending_status_callback): Remove.
6595 (handle_status): Use for_each_thread.
6596 (captured_main): Likewise.
6597 * win32-low.c (child_init_thread_list): Likewise.
6598 (win32_clear_inferiors): Likewise.
6599 (fake_breakpoint_event): Likewise.
6601 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6603 * inferiors.h (find_inferior): Remove.
6604 * inferiors.c (find_inferior): Remove.
6606 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6608 * linux-low.c (resume_status_pending_p): Update comment.
6609 (need_step_over_p): Update comment.
6611 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6613 * linux-low.c (proceed_one_lwp): Return void, change parameter
6615 (unsuspend_and_proceed_one_lwp): Likewise.
6616 (proceed_all_lwps): Use for_each_thread.
6617 (unstop_all_lwps): Likewise.
6619 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6621 * linux-low.c (linux_resume_one_thread): Return void, take
6623 (linux_resume): Use for_each_thread.
6625 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6627 * linux-low.c (send_sigstop_callback): Return void, change
6628 parameter type. Rename to...
6629 (send_sigstop): ... this.
6630 (suspend_and_send_sigstop_callback): Return void, change parameter
6632 (suspend_and_send_sigstop): ... this.
6633 (stop_all_lwps): Use for_each_thread.
6635 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6637 * linux-low.c (lwp_running): Return bool, remove unused
6639 (linux_stabilize_threads): Use find_thread.
6641 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6643 * linux-low.c (select_singlestep_lwp_callback): Remove.
6644 (count_events_callback): Remove.
6645 (select_event_lwp_callback): Remove.
6646 (select_event_lwp): Use find_thread/for_each_thread.
6648 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6650 * linux-low.c (not_stopped_callback): Return bool, take filter
6652 (linux_wait_for_event_filtered): Use find_thread.
6653 (linux_wait_1): Likewise.
6655 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6657 * linux-low.c (same_lwp): Remove.
6658 (find_lwp_pid): Use find_thread.
6660 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6662 * linux-low.c (delete_lwp_callback): Remove.
6663 (linux_mourn): Use for_each_thread.
6665 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6667 * linux-low.c (linux_detach_lwp_callback): Return void, remove
6668 args parameter, don't check for pid.
6669 (linux_detach): Use for_each_thread.
6671 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6673 * linux-low.c (struct counter): Remove.
6674 (second_thread_of_pid_p): Remove.
6675 (last_thread_of_process_p): Use find_thread.
6677 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6679 * inferiors.c (find_inferior_in_random): Remove.
6680 * inferiors.h (find_inferior_in_random): Remove.
6681 * linux-low.c (status_pending_p_callback): Return bool, accept
6682 parameter ptid directly.
6683 (linux_wait_for_event_filtered): Use find_thread_in_random.
6684 (linux_wait_1): Likewise.
6686 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6688 * inferiors.c (find_inferior_id): Remove.
6689 (find_thread_ptid): Move implemention from find_inferior_id to
6691 * inferiors.h (find_inferior_id): Remove.
6692 * server.c (handle_status): Use find_thread_ptid.
6693 (process_serial_event): Likewise.
6694 * thread-db.c (find_one_thread): Likewise.
6695 (thread_db_thread_handle): Likewise.
6696 * win32-low.c (thread_rec): Likewise.
6697 (child_delete_thread): Likewise.
6698 (win32_thread_alive): Likewise.
6699 (get_child_debug_event): Likewise.
6701 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6703 * linux-mips-low.c (update_watch_registers_callback): Return
6704 void, remove pid_p parameter, don't check for pid.
6705 (mips_insert_point, mips_remove_point): Use for_each_thread.
6707 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6709 * lynx.low (lynx_delete_thread_callback): Remove.
6710 (lynx_mourn): Use for_each_thread.
6712 2017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
6714 * regcache.c (regcache_invalidate_one): Remove.
6715 (regcache_invalidate_pid): use for_each_thread.
6717 2017-11-26 Tom Tromey <tom@tromey.com>
6719 * linux-low.c (linux_create_inferior): Update.
6721 2017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
6723 * spu-low.c (spu_create_inferior): Fix typo in argument name.
6725 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6727 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
6728 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6729 * linux-aarch64-tdesc-selftest.c: New file.
6730 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6732 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6734 * configure.srv: Add new file.
6735 * linux-aarch64-low.c (initialize_low_arch): Call init func.
6736 * linux-aarch64-tdesc-selftest.c: New file.
6737 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
6739 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6741 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
6742 * linux-aarch64-low.c (initialize_low_arch): Remove init.
6743 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
6745 2017-11-24 Alan Hayward <alan.hayward@arm.com>
6747 * configure.srv: Add new files.
6748 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
6749 aarch64_linux_read_description.
6750 * linux-aarch64-low.c (aarch64_linux_read_description):
6751 Merge with aarch64_arch_setup.
6752 (aarch64_arch_setup): Call aarch64_linux_read_description.
6753 * linux-aarch64-tdesc.c: New file.
6754 * linux-aarch64-tdesc.h: New file.
6756 2017-11-24 Yao Qi <yao.qi@linaro.org>
6758 * configure.srv: Set $srv_regobj for tic6x-linux.
6759 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
6760 (tic6x_read_description): Move some code to tic6x_arch_setup.
6761 (tic6x_tdesc_test): New function.
6762 (initialize_low_arch): Call selftests::register_test.
6764 2017-11-22 Yao Qi <yao.qi@linaro.org>
6766 * remote-utils.c (prepare_resume_reply): Use memcpy.
6768 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6770 * linux-low.c (kill_one_lwp_callback): Return void, take
6771 argument directly, don't filter on pid.
6772 (linux_kill): Use for_each_thread.
6774 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6776 * linux-low.c (need_step_over_p): Return bool, remove dummy
6778 (linux_resume, proceed_all_lwps): Use find_thread.
6780 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6782 * linux-low.c (resume_status_pending_p): Return bool, remove
6784 (linux_resume): Use find_thread.
6786 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6788 * linux-low.c (struct thread_resume_array): Remove.
6789 (linux_set_resume_request): Return void, take arguments
6791 (linux_resume): Use for_each_thread.
6793 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6795 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
6796 return bool, remove data argument.
6797 (linux_stabilize_threads): Use find_thread.
6799 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6801 * linux-low.c (unsuspend_one_lwp): Remove.
6802 (unsuspend_all_lwps): Use for_each_thread, inline code from
6805 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6807 * gdbthread.h (find_thread): Add overload with ptid_t filter.
6808 * linux-low.c (struct iterate_over_lwps_args): Remove.
6809 (iterate_over_lwps_filter): Remove.
6810 (iterate_over_lwps): Use find_thread.
6812 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6814 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
6815 (linux_handle_new_gdb_connection): Use for_each_thread, inline
6816 code from reset_lwp_ptrace_options_callback.
6818 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6820 * linux-arm-low.c (struct update_registers_data): Remove.
6821 (update_registers_callback): Return void, take arguments
6822 directly, don't check thread's pid.
6823 (arm_insert_point, arm_remove_point): Use for_each_thread.
6825 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6827 * win32-low.c (continue_one_thread): Return void, take argument
6829 (child_continue): Use for_each_thread.
6831 2017-11-19 Simon Marchi <simon.marchi@ericsson.com>
6833 * win32-i386-low.c (update_debug_registers_callback): Rename
6835 (update_debug_registers): ... this, return void, remove pid_p arg.
6836 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
6838 2017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
6840 * inferiors.h (struct process_info): Add constructor, initialize
6842 <syscalls_to_catch>: Change type to std::vector<int>.
6843 * inferiors.c (add_process): Allocate process_info with new.
6844 (remove_process): Free process_info with delete.
6845 * linux-low.c (handle_extended_wait): Adjust.
6846 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
6847 * server.c (handle_general_set): Adjust.
6849 2017-11-16 Pedro Alves <palves@redhat.com>
6851 * remote-utils.c (remote_close): Block SIGIO signals instead of
6852 uninstalling the SIGIO handler.
6854 2017-11-16 Alan Hayward <alan.hayward@arm.com>
6856 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
6858 2017-11-16 Yao Qi <yao.qi@linaro.org>
6860 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
6861 (tic6x_store_gregset): Likewise.
6862 (tic6x_usrregs_info): Move it up.
6864 2017-11-15 Alan Hayward <alan.hayward@arm.com>
6866 * Makefile.in: Update arch rules.
6867 * configure.srv: Explicitly mark arch/ files.
6869 2017-11-13 Andreas Schwab <schwab@suse.de>
6871 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
6873 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
6875 2017-11-06 Pedro Alves <palves@redhat.com>
6877 * config.in, configure: Regenerate.
6879 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6881 * target.c (struct thread_search): Remove.
6882 (thread_search_callback): Remove.
6883 (prepare_to_access_memory): Use for_each_thread instead of
6884 find_inferior. Inline code from thread_search_callback.
6886 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6888 * server.c (struct visit_actioned_threads_data): Remove.
6889 (visit_actioned_threads): Change prototype to take arguments
6891 (resume): Use find_thread instead of find_inferior.
6893 2017-10-27 Simon Marchi <simon.marchi@ericsson.com>
6895 * server.c (queue_stop_reply_callback): Change prototype, return
6897 (find_status_pending_thread_callback): Remove.
6898 (handle_status): Replace find_inferior with find_thread and
6901 2017-10-25 Alan Hayward <alan.hayward@arm.com>
6903 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
6905 (aarch64_store_gregset): Likewise.
6906 (aarch64_fill_fpregset): Likewise.
6907 (aarch64_store_fpregset): Likewise.
6909 2017-10-21 Simon Marchi <simon.marchi@ericsson.com>
6911 * gdbthread.h (find_thread, for_each_thread): New functions.
6912 * inferiors.c (thread_of_pid): Remove.
6913 (find_any_thread_of_pid): Use find_thread.
6914 * linux-low.c (num_lwps): Use for_each_thread.
6916 2017-10-17 Yao Qi <yao.qi@linaro.org>
6918 * Makefile.in: Remove one rule.
6919 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
6921 2017-10-17 Yao Qi <yao.qi@linaro.org>
6923 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
6924 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
6926 2017-10-17 Yao Qi <yao.qi@linaro.org>
6928 * configure.srv: Rename arm.o with arch/arm.o.
6930 2017-10-17 Yao Qi <yao.qi@linaro.org>
6932 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
6933 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
6934 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
6935 (arch-i386.o, arch-amd64.o): Remove rules.
6936 (arch/%.o): New rule.
6937 Update POSTCOMPILE and COMPILE.pre.
6938 * configure.ac: Invoke AC_CONFIG_COMMANDS.
6939 * configure: Re-generated.
6940 * configure.srv: Replace arch-i386.o with arch/i386.o.
6941 Replace arch-amd64.o with arch/amd64.o.
6943 2017-10-16 Yao Qi <yao.qi@linaro.org>
6945 * configure: Regenerated.
6947 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
6949 * inferiors.h: (struct inferior_list): Remove.
6950 (struct inferior_list_entry); Remove.
6951 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
6952 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
6953 get_first_inferior): Remove.
6954 (for_each_inferior, for_each_inferior_with_data, find_inferior,
6955 find_inferior_id, find_inferior_in_random): Change signature.
6956 * inferiors.c (all_threads): Change type to
6957 std::list<thread_info *>.
6958 (get_thread): Remove macro.
6959 (find_inferior, find_inferior_id): Change signature, implement
6961 (find_inferior_in_random): Change signature, implement using
6962 find_thread_in_random.
6963 (for_each_inferior, for_each_inferior_with_data): Change
6964 signature, implement using for_each_thread.
6965 (add_inferior_to_list, remove_inferior): Remove.
6966 (add_thread, get_first_thread, thread_of_pid,
6967 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
6968 (get_first_inferior, one_inferior_p, clear_inferior_list):
6970 (clear_inferiors, get_thread_process): Update.
6971 * gdbthread.h: Include <list>.
6972 (struct thread_info) <entry>: Remove field.
6974 (all_threads): Change type to std::list<thread_info *>.
6975 (get_first_inferior): Add doc.
6976 (find_thread, for_each_thread, find_thread_in_random): New
6978 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
6979 * linux-arm-low.c (update_registers_callback): Update.
6980 * linux-low.c (second_thread_of_pid_p): Update.
6981 (kill_one_lwp_callback, linux_detach_lwp_callback,
6982 delete_lwp_callback, status_pending_p_callback, same_lwp,
6983 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
6984 iterate_over_lwps, not_stopped_callback,
6985 resume_stopped_resumed_lwps, count_events_callback,
6986 select_singlestep_lwp_callback, select_event_lwp_callback,
6987 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
6988 suspend_and_send_sigstop_callback, wait_for_sigstop,
6989 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
6990 lwp_running, linux_set_resume_request, resume_status_pending_p,
6991 need_step_over_p, start_step_over, linux_resume_one_thread,
6992 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
6993 reset_lwp_ptrace_options_callback): Update.
6994 * linux-mips-low.c (update_watch_registers_callback): Update.
6995 * regcache.c (regcache_invalidate_one, regcache_invalidate):
6997 (free_register_cache_thread_one): Remove.
6998 (regcache_release): Update.
6999 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
7000 handle_qxfer_threads_worker): Update.
7001 (handle_query): Update, use list iterator.
7002 (visit_actioned_threads, handle_pending_status,
7003 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
7004 clear_pending_status_callback, set_pending_status_callback,
7005 find_status_pending_thread_callback, handle_status,
7006 process_serial_event): Update.
7007 * target.c (thread_search_callback): Update.
7008 * thread-db.c (thread_db_get_tls_address): Update.
7009 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
7011 * win32-i386-low.c (update_debug_registers_callback): Update.
7012 * win32-low.c (delete_thread_info, child_delete_thread,
7013 continue_one_thread, suspend_one_thread,
7014 get_child_debug_event): Adjust.
7016 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7018 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
7019 * inferiors.h: Include <list>.
7020 (struct process_info) <entry>: Remove field.
7022 (pid_of): Change macro to function.
7023 (ptid_of, lwpid_of): Remove macro.
7024 (all_processes): Change type to std::list<process_info *>.
7025 (ALL_PROCESSES): Remove macro.
7026 (for_each_process, find_process): New function.
7027 * inferiors.c (all_processes): Change type to
7028 std::list<process_info *>.
7029 (find_thread_process): Adjust.
7030 (add_process): Likewise.
7031 (remove_process): Likewise.
7032 (find_process_pid): Likewise.
7033 (get_first_process): Likewise.
7034 (started_inferior_callback): Remove.
7035 (have_started_inferiors_p): Adjust.
7036 (attached_inferior_callback): Remove.
7037 (have_attached_inferiors_p): Adjust.
7038 * linux-low.c (check_zombie_leaders): Likewise.
7039 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
7040 (x86_linux_update_xmltarget): Adjust.
7041 * server.c (handle_query): Likewise.
7042 (gdb_reattached_process): Remove.
7043 (handle_status): Adjust.
7044 (kill_inferior_callback): Likewise.
7045 (detach_or_kill_inferior): Remove.
7046 (print_started_pid): Likewise.
7047 (print_attached_pid): Likewise.
7048 (detach_or_kill_for_exit): Update.
7049 (process_serial_event): Likewise.
7050 * linux-arm-low.c (arm_new_fork): Likewise.
7052 2017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
7054 * dll.h: Include <list>.
7055 (struct dll_info): Add constructor.
7056 <entry>: Remove field.
7057 (all_dlls): Change type to std::list<dll_info>.
7058 * dll.c: Include <algorithm>.
7059 (get_dll): Remove macro.
7060 (all_dlls): Change type to std::list<dll_info *>.
7061 (free_one_dll): Remove.
7062 (match_dll): Likewise.
7063 (loaded_dll): Adjust.
7064 (unloaded_dll): Adjust to all_dlls type change, use
7065 std::find_if. Inline code from match_dll.
7066 (clear_dlls): Adjust to all_dlls type change.
7067 * server.c (emit_dll_description): Remove.
7068 (handle_qxfer_libraries): Adjust to all_dlls type change,
7069 integrate emit_dll_description's functionality.
7071 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7073 * linux-low.h (struct linux_target_ops) <delete_process>: New
7075 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
7076 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
7077 (struct linux_target_ops): Add delete_process callback.
7078 * linux-arm-low.c (arm_delete_process): New.
7079 (struct linux_target_ops): Add delete_process callback.
7080 * linux-bfin-low.c (struct linux_target_ops): Likewise.
7081 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
7082 * linux-m32r-low.c (struct linux_target_ops): Likewise.
7083 * linux-mips-low.c (mips_linux_delete_process): New.
7084 (struct linux_target_ops): Add delete_process callback.
7085 * linux-ppc-low.c (struct linux_target_ops): Likewise.
7086 * linux-s390-low.c (struct linux_target_ops): Likewise.
7087 * linux-sh-low.c (struct linux_target_ops): Likewise.
7088 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
7089 * linux-tile-low.c (struct linux_target_ops): Likewise.
7090 * linux-x86-low.c (x86_linux_delete_process): New.
7091 (struct linux_target_ops): Add delete_process callback.
7092 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
7094 2017-10-12 Simon Marchi <simon.marchi@ericsson.com>
7096 * linux-aarch64-low.c (the_low_target): Add thread delete
7098 * linux-arm-low.c (arm_delete_thread): New function.
7099 (the_low_target): Add thread delete callback.
7100 * linux-bfin-low.c (the_low_target): Likewise.
7101 * linux-crisv32-low.c (the_low_target): Likewise.
7102 * linux-low.c (delete_lwp): Invoke delete_thread callback if
7104 * linux-low.h (struct linux_target_ops) <delete_thread>: New
7106 * linux-m32r-low.c (the_low_target): Add thread delete callback.
7107 * linux-mips-low.c (mips_linux_delete_thread): New function.
7108 (the_low_target): Add thread delete callback.
7109 * linux-ppc-low.c (the_low_target): Likewise.
7110 * linux-s390-low.c (the_low_target): Likewise.
7111 * linux-sh-low.c (the_low_target): Likewise.
7112 * linux-tic6x-low.c (the_low_target): Likewise.
7113 * linux-tile-low.c (the_low_target): Likewise.
7114 * linux-x86-low.c (the_low_target): Likewise.
7115 * linux-xtensa-low.c (the_low_target): Likewise.
7117 2017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
7119 * win32-low.c: Include "common-inferior.h".
7121 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7123 * inferiors.c (set_inferior_cwd): New function.
7124 * server.c (handle_general_set): Handle QSetWorkingDir packet.
7125 (handle_query): Inform that QSetWorkingDir is supported.
7126 * win32-low.c (create_process): Pass the inferior's cwd to
7129 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7131 * inferiors.c (current_inferior_cwd): New global variable.
7132 (get_inferior_cwd): New function.
7133 * inferiors.h (struct process_info) <cwd>: New field.
7135 2017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
7137 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
7138 (OBS): Add gdb_tilde_expand.o.
7140 2017-10-02 Simon Marchi <simon.marchi@ericsson.com>
7142 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
7143 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
7145 2017-09-29 Pedro Alves <palves@redhat.com>
7147 * ax.c (gdb_parse_agent_expr): Constify.
7148 * ax.h (gdb_parse_agent_expr): Constify.
7149 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
7151 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
7152 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
7153 * remote-utils.h (read_ptid): Constify.
7154 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
7155 (process_point_options, process_serial_event): Constify.
7156 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
7157 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
7158 (cmd_qtbuffer): Constify.
7160 2017-09-29 Pedro Alves <palves@redhat.com>
7162 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
7165 2017-09-29 Pedro Alves <palves@redhat.com>
7167 * linux-low.c (handle_extended_wait): Pass parent thread instead
7168 of process to thread_db_notice_clone.
7169 * linux-low.h (thread_db_notice_clone): Replace parent process
7170 parameter with parent thread parameter.
7171 * thread-db.c (find_one_thread): Add comment.
7172 (thread_db_notice_clone): Replace parent process parameter with
7173 parent thread parameter. Temporarily switch to the parent thread.
7175 2017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
7177 * gdbthread.h: Include "common-gdbthread.h".
7178 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
7179 "if" when validating the ptid.
7180 * remote-utils.c: Include "gdbthread.h".
7181 (prepare_resume_reply): Use "switch_to_thread".
7182 * target.c (done_accessing_memory): Likewise.
7184 2017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
7186 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
7187 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
7188 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
7189 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
7190 s390x-gs-linux64-ipa.o to ipa_obj.
7191 * linux-s390-low.c (HWCAP_S390_GS): New define.
7192 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
7194 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
7195 (s390_arch_setup): Check for guarded-storage support and choose
7197 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
7198 init_registers_s390x_gs_linux64.
7199 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
7201 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
7202 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
7204 2017-09-22 Simon Marchi <simon.marchi@ericsson.com>
7206 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
7208 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7210 * linux-low.h (struct lwp_info): Add new field, thread_handle.
7211 (thread_db_thread_handle): Declare.
7212 * linux-low.c (linux_target_ops): Initialize thread_handle.
7213 * server.c (handle_qxfer_threads_worker): Add support for
7215 * target.h (struct target_ops): Add new function pointer,
7217 (target_thread_handle): Define.
7218 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
7220 (thread_db_thread_handle): New function.
7222 2017-09-21 Kevin Buettner <kevinb@redhat.com>
7224 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
7225 * linux-low.h (thread_db_notice_clone): Declare.
7226 * thread-db.c (thread_db_notice_clone): New function.
7228 2017-09-21 Pedro Alves <palves@redhat.com>
7230 * server.c (gdb_read_memory, handle_status, process_serial_event)
7231 (handle_serial_event, handle_target_event): Adjust to
7232 set_desired_thread prototype change.
7233 * target.c (set_desired_thread): Remove 'use_general' parameter
7235 * target.h (set_desired_thread): Remove 'use_general' parameter.
7237 2017-09-20 Tom Tromey <tom@tromey.com>
7239 * target.c (target_terminal::terminal_state): Define.
7240 (target_terminal::init): Rename from target_terminal_init.
7241 (target_terminal::inferior): Rename from
7242 target_terminal_inferior.
7243 (target_terminal::ours): Rename from target_terminal_ours.
7244 (target_terminal::ours_for_output, target_terminal::info): New.
7246 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7248 * server.c (accumulate_file_name_length): Remove.
7249 (emit_dll_description): Adjust to std::string change.
7250 (handle_qxfer_libraries): Use std::string to hold document.
7252 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7254 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
7255 return type of xml_escape_text.
7256 * server.c (emit_dll_description): Likewise.
7258 2017-09-16 Simon Marchi <simon.marchi@ericsson.com>
7260 * server.c (captured_main): Accept argument for --selftest.
7261 Update run_tests call.
7262 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
7263 when registering selftests.
7265 2017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
7267 * regcache.c (get_thread_regcache): Update code to use "std::vector"
7268 instead of "VEC" for "target_desc.reg_defs".
7269 (regcache_cpy): Likewise.
7270 (registers_to_string): Likewise.
7271 (registers_from_string): Likewise.
7272 (find_regno): Likewise.
7273 (supply_regblock): Likewise.
7274 (regcache_raw_read_unsigned): Likewise.
7275 * tdesc.c (init_target_desc): Likewise.
7276 (tdesc_create_reg): Likewise.
7277 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
7278 (struct target_desc) <reg_defs>: Convert to "std::vector".
7279 (target_desc): Do not initialize "reg_defs".
7280 (~target_desc): Update code to use "std::vector" instead of "VEC"
7281 for "target_desc.reg_defs".
7282 (operator==): Likewise.
7284 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7286 * inferiors.h (thread_to_gdb_id): Remove.
7287 * inferiors.c (thread_to_gdb_id): Remove.
7288 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
7289 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
7290 lynx_store_registers, lynx_read_memory, lynx_write_memory):
7292 * nto-low.c (nto_fetch_registers, nto_store_registers,
7293 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
7295 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7297 * inferiors.h (gdb_id_to_thread_id): Remove.
7298 * inferiors.c (gdb_id_to_thread_id): Remove.
7299 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
7300 removal. Move pid declaration closer to where it's used.
7302 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7304 * server.c (handle_detach): New function.
7305 (process_serial_event): Move code out, call handle_detach.
7307 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7309 * server.c (require_running): Rename to ...
7310 (require_running_or_return): ... this ...
7311 (require_running_or_break): ... and this.
7312 (handle_query, process_serial_event): Adjust.
7314 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7316 * linux-low.c (linux_set_resume_request): Remove unused
7319 2017-09-15 Simon Marchi <simon.marchi@ericsson.com>
7321 * server.c (first_thread_of): Remove.
7322 (process_serial_event): Replace usage of first_thread_of with
7323 find_any_thread_of_pid.
7324 * tracepoint.c (same_process_p): Remove.
7325 (gdb_agent_about_to_close): Replace usage of same_process_p with
7326 find_any_thread_of_pid.
7327 * linux-x86-low.c (same_process_callback): Remove.
7328 (x86_arch_setup_process_callback): Replace usage of
7329 same_process_callback with find_any_thread_of_pid.
7330 * thread-db.c (any_thread_of): Remove.
7331 (switch_to_process): Replace usage of any_thread_of with
7332 find_any_thread_of_pid.
7333 * inferiors.c (thread_pid_matches_callback): Remove.
7334 (find_thread_process): Adjust to use find_any_thread_of_pid.
7336 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7338 * regcache.c (get_thread_regcache): Guard calls to "memset"
7341 2017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
7343 * linux-low.c (handle_extended_wait): Use
7344 "allocate_target_description" instead of "XNEW".
7345 * linux-x86-low.c (initialize_low_arch): Likewise.
7347 2017-09-05 Yao Qi <yao.qi@linaro.org>
7349 * configure.srv (srv_i386_regobj): Remove.
7350 (srv_amd64_regobj): Remove.
7351 (srv_regobj): Set it to "" for x86 non-linux targets.
7352 * linux-x86-tdesc.c (i386_linux_read_description):
7353 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
7354 (init_registers_i386): Remove the declaration.
7355 (tdesc_i386): Remove the declaration.
7356 (lynx_i386_arch_setup): Call i386_create_target_description.
7357 * nto-x86-low.c: Likewise.
7358 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
7359 [!__x86_64__]: include arch/i386.h.
7360 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
7362 2017-09-05 Yao Qi <yao.qi@linaro.org>
7364 * configure.srv (srv_amd64_linux_xmlfiles): Remove
7365 i386/amd64-XXX-linux from it.
7367 2017-09-05 Yao Qi <yao.qi@linaro.org>
7369 * configure.srv: Empty srv_amd64_linux_regobj if $development is
7371 (ipa_amd64_linux_regobj): Remove.
7372 (ipa_x32_linux_regobj): Remove.
7374 2017-09-05 Yao Qi <yao.qi@linaro.org>
7376 * Makefile.in (arch-amd64.o): New rule.
7377 * configure.srv: Append arch-amd64.o.
7378 * linux-amd64-ipa.c: Include common/x86-xstate.h.
7379 (get_ipa_tdesc): Call amd64_linux_read_description.
7380 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
7381 and init_registers_amd64_XXX.
7382 * linux-x86-low.c (x86_linux_read_description): Call
7383 amd64_linux_read_description.
7384 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
7385 (initialize_low_arch): Don't call init_registers_x32_XXX and
7386 init_registers_amd64_XXX.
7387 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
7388 and tdesc_amd64_XXX.
7389 [__x86_64__] (amd64_tdesc_test): New function.
7390 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
7391 and init_registers_amd64_XXX.
7392 * linux-x86-tdesc.c: Include arch/amd64.h.
7393 (xcr0_to_tdesc_idx): New function.
7394 (i386_linux_read_description): New function.
7395 (amd64_get_ipa_tdesc_idx): New function.
7396 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
7397 (amd64_get_ipa_tdesc): Declare.
7399 2017-09-05 Yao Qi <yao.qi@linaro.org>
7401 * configure.srv (srv_i386_linux_xmlfiles): Remove
7402 i386/i386-XXX-linux.xml from it.
7404 2017-09-05 Yao Qi <yao.qi@linaro.org>
7406 * configure.srv: Set srv_i386_linux_regobj empty if $development
7408 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
7409 initialize_low_tdesc.
7410 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
7411 with #if initialize_low_tdesc.
7412 * linux-x86-tdesc-selftest.c: New file.
7413 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
7415 2017-09-05 Yao Qi <yao.qi@linaro.org>
7417 * Makefile.in (arch-i386.o): New rule.
7418 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
7419 (x86_64-*-linux*): Likewise.
7420 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
7421 include arch/i386.h.
7422 (i386_linux_read_description): Remove code and call
7423 i386_create_target_description.
7424 * tdesc.c (allocate_target_description): New function.
7425 * tdesc.h (set_tdesc_architecture): Remove declaration.
7426 (set_tdesc_osabi): Likewise.
7428 2017-09-05 Yao Qi <yao.qi@linaro.org>
7430 * linux-x86-tdesc.c: Don't include <inttypes.h>.
7431 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
7432 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
7434 * server.c (get_features_xml): Call tdesc_get_features_xml.
7435 * tdesc.c (set_tdesc_architecture): New function.
7436 (set_tdesc_osabi): New function.
7437 (tdesc_get_features_xml): New function.
7438 (tdesc_create_feature): Add an argument.
7439 * tdesc.h (struct target_desc) <features>: New field.
7440 <arch, osabi>: New field.
7441 (~target_desc): xfree features, arch, and osabi.
7442 (target_desc::oerator==): Don't compare .xmltarget.
7443 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
7444 (set_tdesc_osabi): Likewise.
7445 (tdesc_get_features_xml): Likewise.
7447 2017-09-05 Yao Qi <yao.qi@linaro.org>
7449 * linux-x86-tdesc.c: Include selftest.h.
7450 (i386_tdesc_test): New function.
7451 (initialize_low_tdesc): Call selftests::register_test.
7452 * tdesc.h: Include regdef.h.
7453 (target_desc): Override operator == and !=.
7455 2017-09-05 Yao Qi <yao.qi@linaro.org>
7457 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
7458 (ipa_obj): Likewise.
7459 * linux-i386-ipa.c: Include common/x86-xstate.h
7460 (get_ipa_tdesc): Call i386_linux_read_description.
7461 (initialize_low_tracepoint): Don't call init_registers_XXX
7462 functions, call initialize_low_tdesc instead.
7463 * linux-x86-low.c (x86_linux_read_description): Call
7464 i386_linux_read_description.
7465 (initialize_low_arch): Don't call init_registers_i386_XXX
7466 functions, call initialize_low_tdesc.
7467 * linux-x86-tdesc.c: New file.
7468 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
7469 (i386_get_ipa_tdesc_idx): Declare.
7470 (i386_get_ipa_tdesc): Declare.
7471 (initialize_low_tdesc): Declare.
7473 2017-09-05 Yao Qi <yao.qi@linaro.org>
7475 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
7478 2017-09-05 Yao Qi <yao.qi@linaro.org>
7480 * Makefile.in (IPA_OBJS): Add vec-ipa.o
7481 * regcache.c (get_thread_regcache): Use VEC_length.
7482 (init_register_cache): Likewise.
7483 (regcache_cpy): Likewise.
7484 (registers_to_string): Iterate reg_defs via VEC_iterate.
7485 (find_regno): Likewise.
7486 (find_register_by_number): Use VEC_index.
7487 (register_size): Call find_register_by_number.
7488 (register_data): Call find_register_by_number.
7489 (supply_regblock): Use VEC_length.
7490 (regcache_raw_read_unsigned): Likewise.
7491 * tdesc.c (init_target_desc): Iterate reg_defs via
7493 (default_description): Update initializer.
7494 (copy_target_description): Don't update field num_registers.
7495 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
7496 <num_registers>: Remove.
7498 2017-09-04 Simon Marchi <simon.marchi@ericsson.com>
7500 * Makefile.in (.SECONDARY): Define target.
7502 2017-09-03 Simon Marchi <simon.marchi@ericsson.com>
7504 * linux-low.c (linux_wait_1): Adjust.
7505 * server.c (queue_stop_reply_callback): Adjust.
7507 2017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
7509 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
7510 QEnvironmentUnset and QEnvironmentReset packets.
7511 (handle_query): Inform remote that QEnvironmentHexEncoded,
7512 QEnvironmentUnset and QEnvironmentReset are supported.
7514 2017-08-25 Simon Marchi <simon.marchi@ericsson.com>
7516 * inferiors.h (inferior_target_data): Rename to ...
7517 (thread_target_data): ... this.
7518 (inferior_regcache_data): Rename to ...
7519 (thread_regcache_data): ... this.
7520 (set_inferior_regcache_data): Rename to ...
7521 (set_thread_regcache_data): ... this.
7522 * inferiors.c (inferior_target_data): Rename to ...
7523 (thread_target_data): ... this.
7524 (inferior_regcache_data): Rename to ...
7525 (thread_regcache_data): ... this.
7526 (set_inferior_regcache_data): Rename to ...
7527 (set_thread_regcache_data): ... this.
7528 (free_one_thread): Update.
7529 * linux-low.h (get_thread_lwp): Update.
7530 * regcache.c (get_thread_regcache): Update.
7531 (regcache_invalidate_thread): Update.
7532 (free_register_cache_thread): Update.
7533 * win32-i386-low.c (update_debug_registers_callback): Update.
7534 (win32_get_current_dr): Update.
7535 * win32-low.c (thread_rec): Update.
7536 (delete_thread_info): Update.
7537 (continue_one_thread): Update.
7538 (suspend_one_thread): Update.
7540 2017-08-24 Simon Marchi <simon.marchi@ericsson.com>
7542 * inferiors.c (set_inferior_target_data): Remove.
7543 * inferiors.h (set_inferior_target_data): Remove.
7545 2017-08-18 Yao Qi <yao.qi@linaro.org>
7547 * Makefile.in (OBS): Add selftest.o.
7548 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
7549 * configure, config.in: Re-generated.
7550 * server.c: Include common/sefltest.h.
7551 (captured_main): Handle option --selftest.
7553 2017-08-09 Yao Qi <yao.qi@linaro.org>
7555 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
7556 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
7557 i386-avx-mpx.o and i386-mmx.o.
7558 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
7559 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
7560 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
7561 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
7562 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
7563 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
7564 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
7565 i386/amd64-avx-mpx.xml.
7567 2017-08-09 Yao Qi <yao.qi@linaro.org>
7569 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
7570 and x32-avx-avx512.o.
7571 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
7572 i386/x32-avx-avx512.xml.
7574 2017-07-26 Simon Marchi <simon.marchi@ericsson.com>
7576 * tracepoint.h (enum class fast_tpoint_collect_result): New
7578 (fast_tracepoint_collecting): Change return type to
7579 fast_tpoint_collect_result.
7580 * tracepoint.c (fast_tracepoint_collecting): Likewise.
7581 * linux-low.h: Include tracepoint.h.
7582 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
7583 fast_tpoint_collect_result.
7584 * linux-low.c (handle_tracepoints): Adjust.
7585 (linux_fast_tracepoint_collecting): Change return type to
7586 fast_tpoint_collect_result.
7587 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
7588 linux_wait_1, stuck_in_jump_pad_callback,
7589 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
7590 proceed_one_lwp): Adjust to type change.
7592 2017-07-10 Yao Qi <yao.qi@linaro.org>
7594 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
7596 2017-06-29 Yao Qi <yao.qi@linaro.org>
7598 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
7600 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
7602 2017-06-20 Simon Marchi <simon.marchi@ericsson.com>
7604 * Makefile.in (IPA_OBJS): Sort and format one item per line.
7606 2017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
7608 * linux-low.c (linux_create_inferior): Adjust code to access the
7609 environment information via 'gdb_environ' class.
7610 * lynx-low.c (lynx_create_inferior): Likewise.
7611 * server.c (our_environ): Make it an instance of 'gdb_environ'.
7612 (get_environ): Return a pointer to 'our_environ'.
7613 (captured_main): Initialize 'our_environ'.
7614 * server.h (get_environ): Adjust prototype.
7615 * spu-low.c (spu_create_inferior): Adjust code to access the
7616 environment information via 'gdb_environ' class.
7618 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7620 * linux-low.c (linux_read_memory, linux_write_memory): Remove
7621 usage of "register" keyword.
7623 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7625 * configure: Re-generate.
7627 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7629 * configure: Re-generate.
7631 2017-06-17 Simon Marchi <simon.marchi@ericsson.com>
7633 * Makefile.in (COMPILE.pre): Add "-x c++".
7635 2017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
7637 * fork-child.c: Conditionally include <signal.h>.
7639 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7641 * server.c (handle_general_set): Handle new packet
7642 "QStartupWithShell".
7643 (handle_query): Add "QStartupWithShell" to the list of supported
7645 (gdbserver_usage): Add help text explaining the
7646 new "--startup-with-shell" and "--no-startup-with-shell" CLI
7648 (captured_main): Recognize and act upon the presence of the new
7651 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7652 Pedro Alves <palves@redhat.com>
7654 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
7655 * configure: Regenerate.
7656 * configure.srv (srv_linux_obj): Add "fork-child.o" and
7658 (i[34567]86-*-lynxos*): Likewise.
7659 (spu*-*-*): Likewise.
7660 * fork-child.c: New file.
7661 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
7663 (linux_ptrace_fun): New function.
7664 (linux_create_inferior): Adjust function prototype to reflect
7665 change on "target.h". Adjust function code to use
7667 (linux_request_interrupt): Delete "signal_pid".
7668 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7669 (lynx_ptrace_fun): New function.
7670 (lynx_create_inferior): Adjust function prototype to reflect
7671 change on "target.h". Adjust function code to use
7673 * nto-low.c (nto_create_inferior): Adjust function prototype and
7674 code to reflect change on "target.h". Update comments.
7675 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
7676 "common-terminal.h" and "environ.h".
7677 (terminal_fd): Moved to fork-child.c.
7678 (old_foreground_pgrp): Likewise.
7679 (restore_old_foreground_pgrp): Likewise.
7680 (last_status): Make it global.
7681 (last_ptid): Likewise.
7682 (our_environ): New variable.
7683 (startup_with_shell): Likewise.
7684 (program_name): Likewise.
7685 (program_argv): Rename to...
7686 (program_args): ...this.
7687 (wrapper_argv): New variable.
7688 (start_inferior): Delete function.
7689 (get_exec_wrapper): New function.
7690 (get_exec_file): Likewise.
7691 (get_environ): Likewise.
7692 (prefork_hook): Likewise.
7693 (post_fork_inferior): Likewise.
7694 (postfork_hook): Likewise.
7695 (postfork_child_hook): Likewise.
7696 (handle_v_run): Update code to deal with arguments coming from the
7697 remote host. Update calls from "start_inferior" to
7699 (captured_main): Likewise. Initialize environment variable. Call
7701 * server.h (post_fork_inferior): New prototype.
7702 (get_environ): Likewise.
7703 (last_status): Declare.
7704 (last_ptid): Likewise.
7705 (signal_pid): Likewise.
7706 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
7707 (spu_ptrace_fun): New function.
7708 (spu_create_inferior): Adjust function prototype to reflect change
7709 on "target.h". Adjust function code to use "fork_inferior".
7710 * target.c (target_terminal_init): New function.
7711 (target_terminal_inferior): Likewise.
7712 (target_terminal_ours): Likewise.
7713 * target.h: Include <vector>.
7714 (struct target_ops) <create_inferior>: Update prototype.
7715 (create_inferior): Update macro.
7716 * utils.c (gdb_flush_out_err): New function.
7717 * win32-low.c (win32_create_inferior): Adjust function prototype
7718 and code to reflect change on "target.h".
7720 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7722 * inferiors.c (switch_to_thread): New function.
7724 2017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
7726 * Makefile.in (SFILE): Add "common/job-control.c".
7727 (OBS): Add "job-control.o".
7729 2017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
7731 * Makefile: Remove "@host_makefile_frag@".
7733 2017-05-05 Pedro Alves <palves@redhat.com>
7735 * configure: Regenerate.
7737 2017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7739 * configure: Regenerate.
7741 2017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
7743 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
7744 software_single_step change of return type to
7745 std::vector<CORE_ADDR>.
7746 * linux-low.c (install_software_single_step_breakpoints):
7748 * linux-low.h (install_software_single_step_breakpoints):
7751 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7753 * remote-utils.c: Include "gdb_termios.h" instead of
7755 * terminal.h: Delete file.
7757 2017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
7759 * server.c: Include <vector>.
7760 <program_argv, wrapper_argv>: Convert to std::vector.
7761 (start_inferior): Rewrite function to use C++.
7762 (handle_v_run): Likewise. Update code that calculates the argv
7763 based on the vRun packet; use C++.
7764 (captured_main): Likewise.
7766 2017-04-06 Simon Marchi <simon.marchi@ericsson.com>
7768 * server.c (handle_v_cont): Initialize thread_resume::thread
7771 2017-04-05 Pedro Alves <palves@redhat.com>
7773 * configure: Regenerate.
7775 2017-04-05 Pedro Alves <palves@redhat.com>
7777 * gdbreplay.c (sync_error): Constify.
7778 * linux-x86-low.c (push_opcode): Constify.
7780 2017-04-05 Pedro Alves <palves@redhat.com>
7782 * win32-low.c (get_child_debug_event)
7783 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
7784 Report TARGET_WAITKIND_SPURIOUS instead.
7786 2017-04-05 Pedro Alves <palves@redhat.com>
7788 * remote-utils.c (remote_prepare, remote_open): Constify.
7789 * remote-utils.h (remote_prepare, remote_open): Constify.
7790 * server.c (captured_main): Constify 'port' handling.
7792 2017-04-04 Simon Marchi <simon.marchi@ericsson.com>
7794 * Makefile.in (clean): Clear .deps.
7796 2017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
7798 * .gitignore: Remove generated files, replace with wildcard.
7799 * (clean): Replace removal of generated files with wildcard.
7800 (version.c): Replace with...
7801 (version-generated.c): ...this.
7802 (xml-builtin.c): Replace with...
7803 (xml-builtin-generated.c): ...this.
7804 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
7805 (%.c: *regformats*): Replace with...
7806 (%-generated.c: *regformats*): ...this.
7808 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7810 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
7811 (xtensa_fill_gregset): Call collect_register_by_name for
7813 (xtensa_store_gregset): Call supply_register_by_name for
7816 2017-03-27 Max Filippov <jcmvbkbc@gmail.com>
7818 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
7819 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
7820 (xtensa_store_gregset): Call supply_register for all registers in
7821 a0_regnum..a0_regnum + C0_NREGS range.
7823 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7825 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
7826 (ax-ipa.o: ax.c): Remove.
7827 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
7828 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
7829 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
7830 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
7831 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
7833 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7835 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
7836 (print-utils-ipa.o: ../common/print-utils.c): Remove.
7837 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
7838 (errors-ipa.o: ../common/errors.c): Remove.
7839 (format-ipa.o: ../common/format.c): Remove.
7840 (common-utils-ipa.o: ../common/common-utils.c): Remove.
7842 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7844 * Makefile.in (%-ipa.o: %.c): New rule.
7845 (tracepoint-ipa.o: tracepoint.c): Remove.
7846 (utils-ipa.o: utils.c): Remove.
7847 (remote-utils-ipa.o: remote-utils.c): Remove.
7848 (regcache-ipa.o: regcache.c): Remove.
7849 (i386-linux-ipa.o: i386-linux.c): Remove.
7850 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
7851 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
7852 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
7853 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
7854 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
7855 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
7856 (amd64-linux-ipa.o: amd64-linux.c): Remove.
7857 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
7858 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
7859 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
7860 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
7861 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
7862 (aarch64-ipa.o: aarch64.c): Remove.
7863 (s390-linux32-ipa.o: s390-linux32.c): Remove.
7864 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
7865 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
7866 (s390-linux64-ipa.o: s390-linux64.c): Remove.
7867 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
7868 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
7869 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
7870 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
7871 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
7872 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
7873 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
7874 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
7875 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
7876 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
7877 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
7878 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
7879 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
7880 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
7881 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
7882 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
7883 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
7884 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
7885 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
7886 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
7887 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
7888 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
7889 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
7890 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
7891 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
7892 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
7893 (tdesc-ipa.o: tdesc.c): Remove.
7894 (x32-linux-ipa.o: x32-linux.c): Remove.
7895 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
7896 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
7898 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7900 * Makefile.in (%.o: ../arch/%.c): New rule.
7901 (arm.o: ../arch/arm.c): Remove.
7902 (arm-linux.o: ../arch/arm-linux.c): Remove.
7903 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
7904 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
7906 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7908 * Makefile.in (%.o: ../nat/%.c): New rule.
7909 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
7910 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
7911 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
7912 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
7913 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
7914 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
7915 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
7916 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
7917 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
7918 (linux-personality.o: ../nat/linux-personality.c): Remove.
7919 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
7920 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
7921 (x86-linux.o: ../nat/x86-linux.c): Remove.
7922 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
7923 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
7925 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7927 * Makefile.in (%.o: ../common/%.c): New rule.
7928 (signals.o: ../common/signals.c): Remove.
7929 (print-utils.o: ../common/print-utils.c): Remove.
7930 (rsp-low.o: ../common/rsp-low.c): Remove.
7931 (common-utils.o: ../common/common-utils.c): Remove.
7932 (posix-strerror.o: ../common/posix-strerror.c): Remove.
7933 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
7934 (vec.o: ../common/vec.c): Remove.
7935 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
7936 (xml-utils.o: ../common/xml-utils.c): Remove.
7937 (ptid.o: ../common/ptid.c): Remove.
7938 (buffer.o: ../common/buffer.c): Remove.
7939 (format.o: ../common/format.c): Remove.
7940 (filestuff.o: ../common/filestuff.c): Remove.
7941 (agent.o: ../common/agent.c): Remove.
7942 (errors.o: ../common/errors.c): Remove.
7943 (environ.o: ../common/environ.c): Remove.
7944 (common-debug.o: ../common/common-debug.c): Remove.
7945 (cleanups.o: ../common/cleanups.c): Remove.
7946 (common-exceptions.o: ../common/common-exceptions.c): Remove.
7947 (fileio.o: ../common/fileio.c): Remove.
7948 (common-regcache.o: ../common/common-regcache.c): Remove.
7949 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
7950 (new-op.o: ../common/new-op.c): Remove.
7951 (btrace-common.o: ../common/btrace-common.c): Remove.
7953 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7955 * Makefile.in (%.o: ../target/%.c): New rule.
7956 (waitstatus.o: ../target/waitstatus.c): Remove.
7958 2017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
7961 (%.c: ../regformats/%.dat,
7962 (%.c: ../regformats/arm/%.dat,
7963 (%.c: ../regformats/i386/%.dat,
7964 (%.c: ../regformats/rs6000/%.dat): New rules.
7965 (aarch64.c): Remove.
7966 (reg-arm.c): Remove.
7967 (arm-with-iwmmxt.c): Remove.
7968 (arm-with-vfpv2.c): Remove.
7969 (arm-with-vfpv3.c): Remove.
7970 (arm-with-neon.c): Remove.
7971 (reg-bfin.c): Remove.
7972 (reg-cris.c): Remove.
7973 (reg-crisv32.c): Remove.
7975 (i386-linux.c): Remove.
7976 (i386-avx.c): Remove.
7977 (i386-avx-linux.c): Remove.
7978 (i386-avx-avx512.c): Remove.
7979 (i386-avx-avx512-linux.c): Remove.
7980 (i386-mpx.c): Remove.
7981 (i386-mpx-linux.c): Remove.
7982 (i386-avx-mpx-avx512-pku.c): Remove.
7983 (i386-avx-mpx-avx512-pku-linux.c): Remove.
7984 (i386-avx-mpx.c): Remove.
7985 (i386-avx-mpx-linux.c): Remove.
7986 (i386-mmx.c): Remove.
7987 (i386-mmx-linux.c): Remove.
7988 (reg-ia64.c): Remove.
7989 (reg-m32r.c): Remove.
7990 (reg-m68k.c): Remove.
7992 (mips-linux.c): Remove.
7993 (mips-dsp-linux.c): Remove.
7994 (mips64-linux.c): Remove.
7995 (mips64-dsp-linux.c): Remove.
7996 (nios2-linux.c): Remove.
7997 (powerpc-32.c): Remove.
7998 (powerpc-32l.c): Remove.
7999 (powerpc-altivec32l.c): Remove.
8000 (powerpc-cell32l.c): Remove.
8001 (powerpc-vsx32l.c): Remove.
8002 (powerpc-isa205-32l.c): Remove.
8003 (powerpc-isa205-altivec32l.c): Remove.
8004 (powerpc-isa205-vsx32l.c): Remove.
8005 (powerpc-e500l.c): Remove.
8006 (powerpc-64l.c): Remove.
8007 (powerpc-altivec64l.c): Remove.
8008 (powerpc-cell64l.c): Remove.
8009 (powerpc-vsx64l.c): Remove.
8010 (powerpc-isa205-64l.c): Remove.
8011 (powerpc-isa205-altivec64l.c): Remove.
8012 (powerpc-isa205-vsx64l.c): Remove.
8013 (s390-linux32.c): Remove.
8014 (s390-linux32v1.c): Remove.
8015 (s390-linux32v2.c): Remove.
8016 (s390-linux64.c): Remove.
8017 (s390-linux64v1.c): Remove.
8018 (s390-linux64v2.c): Remove.
8019 (s390-te-linux64.c): Remove.
8020 (s390-vx-linux64.c): Remove.
8021 (s390-tevx-linux64.c): Remove.
8022 (s390x-linux64.c): Remove.
8023 (s390x-linux64v1.c): Remove.
8024 (s390x-linux64v2.c): Remove.
8025 (s390x-te-linux64.c): Remove.
8026 (s390x-vx-linux64.c): Remove.
8027 (s390x-tevx-linux64.c): Remove.
8028 (tic6x-c64xp-linux.c): Remove.
8029 (tic6x-c64x-linux.c): Remove.
8030 (tic6x-c62x-linux.c): Remove.
8032 (reg-sparc64.c): Remove.
8033 (reg-spu.c): Remove.
8035 (amd64-linux.c): Remove.
8036 (amd64-avx.c): Remove.
8037 (amd64-avx-linux.c): Remove.
8038 (amd64-avx-avx512.c): Remove.
8039 (amd64-avx-avx512-linux.c): Remove.
8040 (amd64-mpx.c): Remove.
8041 (amd64-mpx-linux.c): Remove.
8042 (amd64-avx-mpx-avx512-pku.c): Remove.
8043 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
8044 (amd64-avx-mpx.c): Remove.
8045 (amd64-avx-mpx-linux.c): Remove.
8047 (x32-linux.c): Remove.
8048 (x32-avx.c): Remove.
8049 (x32-avx-linux.c): Remove.
8050 (x32-avx-avx512.c): Remove.
8051 (x32-avx-avx512-linux.c): Remove.
8052 (reg-xtensa.c): Remove.
8053 (reg-tilegx.c): Remove.
8054 (reg-tilegx32.c): Remove.
8056 2017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
8058 * Makefile.in (SFILES): Add "common/environ.c".
8059 (OBJS): Add "common/environ.h".
8061 2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
8063 * configure.ac: Check if the fs_base and gs_base members of
8064 `struct user_regs_struct' exist.
8065 * config.in: Regenerated.
8066 * configure: Likewise.
8068 2017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
8070 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
8072 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
8073 (get_next_pcs_syscall_next_pc): Likewise.
8075 2016-12-23 Luis Machado <lgustavo@codesourcery.com>
8077 * win32-i386-low.c: Fix incorrect reference to a couple source files.
8078 * nto-x86-low.c: Likewise.
8080 2016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
8082 * Makefile.in: Include disable-implicit-rules.mk.
8084 2016-11-23 Pedro Alves <palves@redhat.com>
8086 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
8087 (debug_vprintf): Use std::chrono::steady_clock instead of
8088 gettimeofday. Use '.' instead of ':'.
8089 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
8090 (get_timestamp): Use std::chrono::steady_clock instead of
8093 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8095 * Makefile.in: Fix whitespace formatting.
8097 2016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
8099 * Makefile.in (SFILES, OBS): Flatten list and order
8102 2016-11-23 Pedro Alves <palves@redhat.com>
8104 * event-loop.c (handle_file_event): Use warning.
8105 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
8106 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
8109 2016-11-23 Pedro Alves <palves@redhat.com>
8111 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
8113 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
8114 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
8115 debug_printf and debug_flush for debug output.
8116 * server.c (handle_general_set): Likewise.
8117 * thread-db.c (try_thread_db_load): Use debug_printf for debug
8120 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8122 * Makefile.in (.c.o): Replace rule with ...
8123 (%.o: %.c): ... this one.
8125 2016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
8127 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
8128 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
8130 * configure.ac: Remove checks for the make program.
8131 * configure: Re-generate.
8133 2016-10-28 Pedro Alves <palves@redhat.com>
8135 * Makefile.in (CXX_DIALECT): Get from configure.
8136 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
8137 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
8138 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
8139 * config.in: Regenerate.
8140 * configure: Regenerate.
8142 2016-10-27 Yao Qi <yao.qi@linaro.org>
8144 * linux-low.c (linux_supports_range_stepping): Return true if
8145 can_software_single_step return true.
8147 2016-10-27 Yao Qi <yao.qi@linaro.org>
8149 * inferiors.c (find_inferior_in_random): New function.
8150 * inferiors.h (find_inferior_in_random): Declare.
8151 * linux-low.c (linux_wait_for_event_filtered): Call
8152 find_inferior_in_random instead of find_inferior.
8154 2016-10-27 Yao Qi <yao.qi@linaro.org>
8156 * linux-low.c (linux_wait_1): If single-step breakpoints are
8157 inserted, remove them.
8159 2016-10-26 Pedro Alves <palves@redhat.com>
8161 * linux-low.c (handle_extended_wait): Link parent/child fork
8163 (linux_wait_1): Unlink them.
8164 (linux_set_resume_request): Ignore resume requests for
8165 already-resumed and unhandled fork child threads.
8166 * linux-low.h (struct lwp_info) <fork_relative>: New field.
8167 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
8169 (handle_v_requests) <vCont>: Don't call require_running.
8170 * server.h (in_queued_stop_replies): New declaration.
8172 2016-10-24 Yao Qi <yao.qi@linaro.org>
8175 * linux-aarch64-low.c (append_insns): Cast the return value to
8178 2016-10-10 Yao Qi <yao.qi@linaro.org>
8180 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
8182 2016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
8184 * target.c (target_supports_multi_process): New function, moved
8186 * target.h (target_supports_multi_process): ... here. Remove
8189 2016-10-05 Tom Tromey <tom@tromey.com>
8192 * tracepoint.c (handle_tracepoint_bkpts): Check
8193 ipa_error_tracepoint, not ipa_stopping_tracepoint.
8195 2016-10-05 Yao Qi <yao.qi@linaro.org>
8197 * configure.srv: Update the path of arm-*.xml files.
8199 2016-10-05 Terry Guo <terry.guo@arm.com>
8200 Yao Qi <yao.qi@linaro.org>
8202 * Makefile.in: Adjust the path of rules.
8203 * configure.srv: Update the path of xml files.
8204 * regformats/arm-with-iwmmxt.dat: Regenerated.
8205 * regformats/arm-with-neon.dat: Likewise.
8206 * regformats/arm-with-vfpv2.dat: Likewise.
8207 * regformats/arm-with-vfpv3.dat Likewise.
8209 2016-09-30 Yao Qi <yao.qi@linaro.org>
8212 * target.c (target_stop_and_wait): Don't call
8213 target_continue_no_signal, use resume_stop instead.
8215 2016-09-26 Yao Qi <yao.qi@linaro.org>
8217 * linux-low.c (linux_wait_1): Call debug_exit.
8219 2016-09-23 Pedro Alves <palves@redhat.com>
8221 * Makefile.in (SFILES): Add common/new-op.c.
8222 (OBS): Add common/new-op.o.
8223 (new-op.o): New rule.
8225 2016-09-21 Simon Marchi <simon.marchi@ericsson.com>
8227 * .gitinore: Ignore more files.
8229 2016-09-21 Yao Qi <yao.qi@linaro.org>
8231 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
8234 2016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
8236 * server.c (start_inferior): Call target_mourn_inferior instead of
8237 mourn_inferior; pass ptid_t argument to it.
8239 (handle_target_event): Likewise.
8240 * target.c (target_mourn_inferior): New function.
8241 * target.h (mourn_inferior): Delete macro.
8243 2016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
8245 * linux-low.c (lwp_is_stepping): New function.
8247 2016-09-06 Carl Love <cel@us.ibm.com>
8249 * server.c (start_inferior): Fixed comment, requested comment change
8250 didn't get updated correctly. Removed reference to ptrace () call as
8251 it is only true on Linux systems.
8253 2016-09-06 Carl Love <cel@us.ibm.com>
8255 * server.c (start_inferior): Do not call
8256 function target_post_create_inferior () if the
8257 inferior process has already exited.
8259 2016-09-05 Pedro Alves <palves@redhat.com>
8261 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
8262 (COMPILE.pre, CC_LD): Use CXX directly.
8263 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
8264 * acinclude.m4: Don't include build-with-cxx.m4.
8265 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
8266 * configure: Regenerate.
8268 2016-09-02 Akash Trehan <akash.trehan123@gmail.com>
8271 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
8272 call writing data to own_buf.
8274 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8276 * target.c (mywait): Call target_wait instead of
8278 (target_wait): New function.
8280 2016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
8282 * server.c (start_inferior): New variable 'ptid'. Replace calls
8283 to the_target->resume by target_continue{,_no_signal}, depending
8285 * target.c (target_stop_and_wait): Call target_continue_no_signal
8286 instead of the_target->resume.
8287 (target_continue): New function.
8289 2016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8291 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
8293 2016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8296 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
8298 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
8299 * linux-arm-low.c (ps_get_thread_area): Likewise.
8300 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
8301 * linux-m68k-low.c (ps_get_thread_area): Likewise.
8302 * linux-mips-low.c (ps_get_thread_area): Likewise.
8303 * linux-nios2-low.c (ps_get_thread_area): Likewise.
8304 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
8305 * linux-x86-low.c (ps_get_thread_area): Likewise.
8306 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
8308 2016-08-19 Pedro Alves <palves@redhat.com>
8310 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
8312 2016-08-19 Pedro Alves <palves@redhat.com>
8314 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
8315 comment. Use memcpy instead of casting through unsigned long.
8317 2016-08-19 Pedro Alves <palves@redhat.com>
8319 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
8320 allocating around 0x80000000.
8322 2016-08-19 Pedro Alves <palves@redhat.com>
8325 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
8326 (x32-avx512-linux-ipa.o): New rules.
8327 * configure.ac (x86_64-*-linux*): New x32 check.
8328 * configure.srv (ipa_x32_linux_regobj): New.
8329 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
8330 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
8332 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
8334 * configure: Regenerate.
8336 2016-08-09 Pedro Alves <palves@redhat.com>
8339 * Makefile.in (OBS): Add signals-state-save-restore.o.
8340 (signals-state-save-restore.o): New rule.
8341 * config.in: Regenerate.
8342 * configure: Regenerate.
8343 * linux-low.c: Include "signals-state-save-restore.h".
8344 (linux_create_inferior): Call
8345 restore_original_signals_state.
8346 * server.c: Include "dispositions-save-restore.h".
8347 (captured_main): Call save_original_signals_state.
8349 2016-08-05 Pedro Alves <palves@redhat.com>
8351 * configure: Regenerate.
8353 2016-08-04 Yao Qi <yao.qi@linaro.org>
8355 * linux-low.c (regsets_fetch_inferior_registers): Check
8356 errno is ESRCH or not.
8358 2016-08-02 Yao Qi <yao.qi@linaro.org>
8360 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
8361 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
8362 (thread_db_load_search): Update.
8363 (try_thread_db_load_1): Don't look for td_ta_event_addr,
8364 td_ta_set_event and td_ta_event_getmsg.
8366 2016-07-26 Pedro Alves <palves@redhat.com>
8369 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
8370 of unsigned long for 64-bit registers and use uint32_t instead of
8371 unsigned int for 32-bit registers.
8373 2016-07-26 Pedro Alves <palves@redhat.com>
8375 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
8378 2016-07-21 Tom Tromey <tom@tromey.com>
8380 * configure: Rebuild.
8382 2016-07-21 Yao Qi <yao.qi@linaro.org>
8384 * mem-break.c (find_gdb_breakpoint): Cast bp to
8385 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
8387 2016-07-21 Yao Qi <yao.qi@linaro.org>
8389 * server.c (handle_v_requests): Support s and S actions
8390 if target_supports_software_single_step return true.
8392 2016-07-21 Yao Qi <yao.qi@linaro.org>
8394 * linux-low.c (resume_stopped_resumed_lwps): If resume request
8395 is resume_step, call maybe_hw_step.
8396 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
8398 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
8400 (proceed_one_lwp): If resume request is resume_step, install
8401 reinsert breakpoints and call maybe_hw_step.
8403 2016-07-21 Yao Qi <yao.qi@linaro.org>
8405 * linux-low.c (proceed_one_lwp): Declare.
8406 (linux_resume_one_thread): Remove local variable 'step'.
8407 Lift code enqueue signal. Call proceed_one_lwp instead of
8408 linux_resume_one_lwp.
8410 2016-07-21 Yao Qi <yao.qi@linaro.org>
8412 * linux-low.c (linux_resume_one_thread): Call
8413 enqueue_pending_signal.
8415 2016-07-21 Yao Qi <yao.qi@linaro.org>
8417 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
8418 * inferiors.c (do_restore_current_thread_cleanup): New function.
8419 (make_cleanup_restore_current_thread): Likewise.
8420 * linux-low.c (install_software_single_step_breakpoints): Call
8421 make_cleanup_restore_current_thread. Switch current_thread to
8424 2016-07-21 Yao Qi <yao.qi@linaro.org>
8426 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
8427 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
8428 (clone_one_breakpoint): Likewise.
8429 (delete_reinsert_breakpoints): Change parameter to thread.
8431 (has_reinsert_breakpoints): Likewise.
8432 (uninsert_reinsert_breakpoints): Likewise.
8433 (reinsert_reinsert_breakpoints): Likewise.
8434 * mem-break.h (set_reinsert_breakpoint): Update declaration.
8435 (delete_reinsert_breakpoints): Likewise.
8436 (reinsert_reinsert_breakpoints): Likewise.
8437 (uninsert_reinsert_breakpoints): Likewise.
8438 (has_reinsert_breakpoints): Likewise.
8440 2016-07-21 Yao Qi <yao.qi@linaro.org>
8442 * inferiors.c (get_thread_process): Make parameter const.
8443 * inferiors.h (get_thread_process): Update declaration.
8444 * mem-break.c (clone_all_breakpoints): Remove all parameters.
8445 Add new parameters child_thread and parent_thread. Callers
8447 * mem-break.h (clone_all_breakpoints): Update declaration.
8449 2016-07-21 Yao Qi <yao.qi@linaro.org>
8451 * mem-break.c (struct breakpoint) <cond_list>: Remove.
8452 <command_list, handler>: Remove.
8453 (struct gdb_breakpoint): New.
8454 (struct other_breakpoint): New.
8455 (struct reinsert_breakpoint): New.
8456 (is_gdb_breakpoint): New function.
8457 (any_persistent_commands): Update command_list if
8458 is_gdb_breakpoint returns true.
8459 (set_breakpoint): Create breakpoints according to their types.
8460 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
8461 (set_gdb_breakpoint_1): Likewise.
8462 (set_gdb_breakpoint): Likewise.
8463 (clear_breakpoint_conditions): Change parameter type to
8464 'struct gdb_breakpoint *'.
8465 (clear_breakpoint_commands): Likewise.
8466 (clear_breakpoint_conditions_and_commands): Likewise.
8467 (add_condition_to_breakpoint): Likewise.
8468 (add_breakpoint_condition): Likewise.
8469 (add_commands_to_breakpoint): Likewise.
8470 (check_breakpoints): Check other_breakpoint.
8471 (clone_one_breakpoint): Clone breakpopint according to its type.
8472 * mem-break.h (struct gdb_breakpoint): Declare.
8473 (set_gdb_breakpoint): Update declaration.
8474 (clear_breakpoint_conditions_and_commands): Likewise.
8475 (add_breakpoint_condition): Likewise.
8476 (add_breakpoint_commands): Likewise.
8477 * server.c (process_point_options): Change parameter type to
8478 'struct gdb_breakpoint *'.
8480 2016-07-21 Yao Qi <yao.qi@linaro.org>
8482 * mem-break.c (set_breakpoint_at): Rename it to ...
8483 (set_breakpoint_type_at): ... it.
8484 (set_breakpoint_at): Call set_breakpoint_type_at.
8485 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
8486 * mem-break.h (set_breakpoint_at): Update comments.
8488 2016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
8490 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
8492 (nios2_store_gregset): Likewise.
8494 2016-07-01 Pedro Alves <palves@redhat.com>
8495 Antoine Tremblay <antoine.tremblay@ericsson.com>
8497 * linux-low.c: Change interface to take the target lwp_info
8498 pointer directly and return void. Handle detaching from a zombie
8500 (linux_detach_lwp_callback): New function.
8501 (linux_detach): Detach from the leader thread after detaching from
8504 2016-06-28 Yao Qi <yao.qi@linaro.org>
8506 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
8507 for variable new_offset.
8508 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
8509 (aarch64_ftrace_insn_reloc_cb): Likewise.
8510 (aarch64_ftrace_insn_reloc_tb): Likewise.
8511 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
8512 PRIx64 instead of PRIx32.
8514 2016-06-28 Yao Qi <yao.qi@linaro.org>
8516 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
8517 (the_low_target): Install arm_get_syscall_trapinfo.
8519 2016-06-28 Yao Qi <yao.qi@linaro.org>
8521 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
8523 (the_low_target): Install aarch64_get_syscall_trapinfo.
8525 2016-06-28 Yao Qi <yao.qi@linaro.org>
8527 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
8529 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
8530 Remove parameter sysno.
8531 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
8534 2016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
8536 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
8537 (s390_emit_ne_goto): Likewise.
8538 (s390_emit_lt_goto): Likewise.
8539 (s390_emit_le_goto): Likewise.
8540 (s390_emit_gt_goto): Likewise.
8541 (s390_emit_ge_goto): Likewise.
8542 (s390x_emit_eq_goto): Likewise.
8543 (s390x_emit_ne_goto): Likewise.
8544 (s390x_emit_lt_goto): Likewise.
8545 (s390x_emit_le_goto): Likewise.
8546 (s390x_emit_gt_goto): Likewise.
8547 (s390x_emit_ge_goto): Likewise.
8548 (s390_emit_ops_impl): Mark variable static.
8549 (s390x_emit_ops): Likewise.
8551 2016-06-17 Yao Qi <yao.qi@linaro.org>
8553 * linux-low.c (handle_extended_wait): Call
8554 uninsert_reinsert_breakpoints for the parent process. Remove
8555 reinsert breakpoints from the child process. Reinsert them to
8556 the parent process when vfork is done.
8557 * mem-break.c (uninsert_reinsert_breakpoints): New function.
8558 (reinsert_reinsert_breakpoints): New function.
8559 * mem-break.h (uninsert_reinsert_breakpoints): Declare
8560 (reinsert_reinsert_breakpoints): Declare.
8562 2016-06-17 Yao Qi <yao.qi@linaro.org>
8564 * linux-low.c (handle_extended_wait): If the parent is doing
8565 step-over, remove the reinsert breakpoints from the forked child.
8567 2016-06-17 Yao Qi <yao.qi@linaro.org>
8569 * linux-low.c (unsuspend_all_lwps): Declare.
8570 (linux_low_filter_event): If thread exited, call finish_step_over.
8571 If step-over is finished, unsuspend other threads.
8573 2016-06-17 Yao Qi <yao.qi@linaro.org>
8575 * linux-low.c (linux_resume_one_lwp_throw): Assert
8576 has_reinsert_breakpoints returns false.
8577 * mem-break.c (delete_disabled_breakpoints): Assert
8578 bp type isn't reinsert_breakpoint.
8580 2016-06-17 Yao Qi <yao.qi@linaro.org>
8582 * linux-low.c (maybe_hw_step): New function.
8583 (linux_resume_one_lwp_throw): Call maybe_hw_step.
8584 (finish_step_over): Switch current_thread to lwp temporarily,
8585 and assert has_reinsert_breakpoints returns true.
8586 (proceed_one_lwp): Call maybe_hw_step.
8587 * mem-break.c (has_reinsert_breakpoints): New function.
8588 * mem-break.h (has_reinsert_breakpoints): Declare.
8590 2016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
8592 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
8594 2016-05-17 Yao Qi <yao.qi@linaro.org>
8596 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
8597 instead of find_inferior.
8599 2016-05-05 Yao Qi <yao.qi@linaro.org>
8601 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
8602 Initialize res to zero.
8604 2016-05-05 Yao Qi <yao.qi@linaro.org>
8606 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
8609 2016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8611 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
8612 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
8613 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
8615 2016-04-28 Par Olsson <par.olsson@windriver.com>
8616 Simon Marchi <simon.marchi@ericsson.com>
8618 * tracepoint.c (write_inferior_int8): New function.
8619 (cmd_qtenable_disable): Write enable flag using
8620 write_inferior_int8.
8622 2016-04-25 Yao Qi <yao.qi@linaro.org>
8624 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
8625 (need_step_over_p): Return zero if the LWP has pending signals
8626 can be delivered on software single step target.
8628 2016-04-25 Yao Qi <yao.qi@linaro.org>
8630 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
8631 return instead of error.
8633 2016-04-22 Yao Qi <yao.qi@linaro.org>
8635 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
8638 2016-04-22 Yao Qi <yao.qi@linaro.org>
8640 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
8641 signal when stepping over breakpoint with software single
8644 2016-04-21 Pedro Alves <palves@redhat.com>
8646 * linux-s390-low.c (s390_collect_ptrace_register)
8647 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
8649 (s390_check_regset): Use void * instead of gdb_byte *.
8651 2016-04-20 Pedro Alves <palves@redhat.com>
8653 * configure: Renegerate.
8655 2016-04-20 Yao Qi <yao.qi@linaro.org>
8657 * linux-aarch32-low.c: Include "arch/arm-linux.h".
8658 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
8660 (arm_store_gregset): Likewise.
8662 2016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
8664 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
8665 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
8666 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
8667 (amd64-avx-mpx-linux.c): New rules.
8668 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
8669 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
8670 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
8671 (srv_amd64_regobj): Add amd64-avx-mpx.o.
8672 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
8673 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
8674 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
8675 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
8676 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
8677 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
8678 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
8679 * linux-x86-low.c (x86_linux_read_description): Add case for
8680 X86_XSTATE_AVX_MPX_MASK.
8681 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
8682 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
8683 init_registers_i386_avx_mpx_linux.
8684 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8685 (initialize_low_tracepoint): Call
8686 init_registers_i386_avx_mpx_linux.
8687 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
8688 (initialize_low_tracepoint): Call
8689 init_registers_amd64_avx_mpx_linux.
8690 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
8691 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
8692 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
8695 2016-04-18 Pedro Alves <palves@redhat.com>
8697 * configure: Regenerate.
8699 2016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
8701 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
8702 (aarch64_emit_sub): Likewise.
8704 2016-04-12 Pedro Alves <palves@redhat.com>
8706 * utils.c (prepare_to_throw_exception): Delete.
8708 2016-04-05 Simon Marchi <simon.marchi@ericsson.com>
8710 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
8712 2016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
8714 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
8716 2016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
8718 * linux-aarch64-ipa.c: Add <elf.h> include.
8719 * linux-ppc-ipa.c: Add <elf.h> include.
8720 * linux-s390-ipa.c: Add <elf.h> include.
8722 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8724 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
8725 (get_raw_reg_ptr): Likewise.
8726 (get_trace_state_variable_value_ptr): Likewise.
8727 (set_trace_state_variable_value_ptr): Likewise.
8728 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
8731 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8732 Marcin Kościelnicki <koriakin@0x04.net>
8735 * linux-ppc-low.c (emit_insns): New function.
8736 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
8737 (ppc_emit_prologue): New function.
8738 (ppc_emit_epilogue): New function.
8739 (ppc_emit_add): New function.
8740 (ppc_emit_sub): New function.
8741 (ppc_emit_mul): New function.
8742 (ppc_emit_lsh): New function.
8743 (ppc_emit_rsh_signed): New function.
8744 (ppc_emit_rsh_unsigned): New function.
8745 (ppc_emit_ext): New function.
8746 (ppc_emit_zero_ext): New function.
8747 (ppc_emit_log_not): New function.
8748 (ppc_emit_bit_and): New function.
8749 (ppc_emit_bit_or): New function.
8750 (ppc_emit_bit_xor): New function.
8751 (ppc_emit_bit_not): New function.
8752 (ppc_emit_equal): New function.
8753 (ppc_emit_less_signed): New function.
8754 (ppc_emit_less_unsigned): New function.
8755 (ppc_emit_ref): New function.
8756 (ppc_emit_const): New function.
8757 (ppc_emit_reg): New function.
8758 (ppc_emit_pop): New function.
8759 (ppc_emit_stack_flush): New function.
8760 (ppc_emit_swap): New function.
8761 (ppc_emit_stack_adjust): New function.
8762 (ppc_emit_call): New function.
8763 (ppc_emit_int_call_1): New function.
8764 (ppc_emit_void_call_2): New function.
8765 (ppc_emit_if_goto): New function.
8766 (ppc_emit_goto): New function.
8767 (ppc_emit_eq_goto): New function.
8768 (ppc_emit_ne_goto): New function.
8769 (ppc_emit_lt_goto): New function.
8770 (ppc_emit_le_goto): New function.
8771 (ppc_emit_gt_goto): New function.
8772 (ppc_emit_ge_goto): New function.
8773 (ppc_write_goto_address): New function.
8774 (ppc_emit_ops_impl): New static variable.
8775 (ppc64v1_emit_prologue): New function.
8776 (ppc64v2_emit_prologue): New function.
8777 (ppc64_emit_epilogue): New function.
8778 (ppc64_emit_add): New function.
8779 (ppc64_emit_sub): New function.
8780 (ppc64_emit_mul): New function.
8781 (ppc64_emit_lsh): New function.
8782 (ppc64_emit_rsh_signed): New function.
8783 (ppc64_emit_rsh_unsigned): New function.
8784 (ppc64_emit_ext): New function.
8785 (ppc64_emit_zero_ext): New function.
8786 (ppc64_emit_log_not): New function.
8787 (ppc64_emit_bit_and): New function.
8788 (ppc64_emit_bit_or): New function.
8789 (ppc64_emit_bit_xor): New function.
8790 (ppc64_emit_bit_not): New function.
8791 (ppc64_emit_equal): New function.
8792 (ppc64_emit_less_signed): New function.
8793 (ppc64_emit_less_unsigned): New function.
8794 (ppc64_emit_ref): New function.
8795 (ppc64_emit_const): New function.
8796 (ppc64v1_emit_reg): New function.
8797 (ppc64v2_emit_reg): New function.
8798 (ppc64_emit_pop): New function.
8799 (ppc64_emit_stack_flush): New function.
8800 (ppc64_emit_swap): New function.
8801 (ppc64v1_emit_call): New function.
8802 (ppc64v2_emit_call): New function.
8803 (ppc64v1_emit_int_call_1): New function.
8804 (ppc64v2_emit_int_call_1): New function.
8805 (ppc64v1_emit_void_call_2): New function.
8806 (ppc64v2_emit_void_call_2): New function.
8807 (ppc64_emit_if_goto): New function.
8808 (ppc64_emit_eq_goto): New function.
8809 (ppc64_emit_ne_goto): New function.
8810 (ppc64_emit_lt_goto): New function.
8811 (ppc64_emit_le_goto): New function.
8812 (ppc64_emit_gt_goto): New function.
8813 (ppc64_emit_ge_goto): New function.
8814 (ppc64v1_emit_ops_impl): New static variable.
8815 (ppc64v2_emit_ops_impl): New static variable.
8816 (ppc_emit_ops): New function.
8817 (linux_low_target): Wire in ppc_emit_ops.
8819 2016-03-31 Wei-cheng Wang <cole945@gmail.com>
8820 Marcin Kościelnicki <koriakin@0x04.net>
8823 * Makefile.in: Add powerpc-*-ipa.o
8824 * configure.srv: Add ipa_obj for powerpc*-linux.
8825 * linux-ppc-ipa.c: New file.
8826 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
8828 (PPC_FIELD): New macro.
8829 (PPC_SEXT): New macro.
8830 (PPC_OP6): New macro.
8831 (PPC_BO): New macro.
8832 (PPC_LI): New macro.
8833 (PPC_BD): New macro.
8834 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
8835 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
8836 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
8837 (ppc_get_thread_area): New function.
8838 (is_elfv2_inferior): New function.
8839 (gen_ds_form): New function.
8840 (GEN_STD): New macro.
8841 (GEN_STDU): New macro.
8842 (GEN_LD): New macro.
8843 (GEN_LDU): New macro.
8844 (gen_d_form): New function.
8845 (GEN_ADDI): New macro.
8846 (GEN_ADDIS): New macro.
8847 (GEN_LI): New macro.
8848 (GEN_LIS): New macro.
8849 (GEN_ORI): New macro.
8850 (GEN_ORIS): New macro.
8851 (GEN_LWZ): New macro.
8852 (GEN_STW): New macro.
8853 (GEN_STWU): New macro.
8854 (gen_xfx_form): New function.
8855 (GEN_MFSPR): New macro.
8856 (GEN_MTSPR): New macro.
8857 (GEN_MFCR): New macro.
8858 (GEN_MTCR): New macro.
8859 (GEN_SYNC): New macro.
8860 (GEN_LWSYNC): New macro.
8861 (gen_x_form): New function.
8862 (GEN_OR): New macro.
8863 (GEN_MR): New macro.
8864 (GEN_LWARX): New macro.
8865 (GEN_STWCX): New macro.
8866 (GEN_CMPW): New macro.
8867 (gen_md_form): New function.
8868 (GEN_RLDICL): New macro.
8869 (GEN_RLDICR): New macro.
8870 (gen_i_form): New function.
8872 (GEN_BL): New macro.
8873 (gen_b_form): New function.
8874 (GEN_BNE): New macro.
8875 (GEN_LOAD): New macro.
8876 (GEN_STORE): New macro.
8877 (gen_limm): New function.
8878 (gen_atomic_xchg): New function.
8879 (gen_call): New function.
8880 (ppc_relocate_instruction): New function.
8881 (ppc_install_fast_tracepoint_jump_pad): New function.
8882 (ppc_get_min_fast_tracepoint_insn_len): New function.
8883 (ppc_get_ipa_tdesc_idx): New function.
8884 (the_low_target): Wire in the new functions.
8885 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
8887 * linux-ppc-tdesc.h: New file.
8889 2016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
8891 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8892 (alloc_jump_pad_buffer): New function.
8893 * linux-amd64-ipa.c: Add <sys/mman.h> include.
8894 (alloc_jump_pad_buffer): New function.
8895 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
8896 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
8897 (alloc_jump_pad_buffer): New function.
8898 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
8899 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
8900 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
8901 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
8903 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8905 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
8906 * linux-amd64-ipa.c: Likewise.
8907 * linux-i386-ipa.c: Likewise.
8908 * linux-s390-ipa.c: Likewise.
8909 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
8910 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
8911 set_trace_state_variable_value_ptr.
8912 (struct ipa_sym_addresses): Likewise.
8913 (symbol_list): Likewise.
8914 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
8915 accessing gdb_collect directly.
8916 (gdb_collect_ptr_type): New typedef.
8917 (get_raw_reg_ptr_type): New typedef.
8918 (get_trace_state_variable_value_ptr_type): New typedef.
8919 (set_trace_state_variable_value_ptr_type): New typedef.
8920 (gdb_collect_ptr): New global.
8921 (get_raw_reg_ptr): New global.
8922 (get_trace_state_variable_value_ptr): New global.
8923 (set_trace_state_variable_value_ptr): New global.
8924 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
8925 accessing get_raw_reg directly.
8926 (get_get_tsv_func_addr): Likewise for
8927 get_trace_state_variable_value_ptr.
8928 (get_set_tsv_func_addr): Likewise for
8929 set_trace_state_variable_value_ptr.
8930 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
8932 2016-03-30 Simon Marchi <simon.marchi@ericsson.com>
8934 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
8936 2016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
8938 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
8940 (relocate_instruction): Remove own_buf.
8941 * server.c (own_buf): Make global.
8942 (handle_v_requests): Make global.
8943 * server.h (own_buf): New declaration.
8944 (handle_v_requests): New prototype.
8946 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
8949 * linux-s390-low.c (add_insns): New function.
8950 (s390_emit_prologue): New function.
8951 (s390_emit_epilogue): New function.
8952 (s390_emit_add): New function.
8953 (s390_emit_sub): New function.
8954 (s390_emit_mul): New function.
8955 (s390_emit_lsh): New function.
8956 (s390_emit_rsh_signed): New function.
8957 (s390_emit_rsh_unsigned): New function.
8958 (s390_emit_ext): New function.
8959 (s390_emit_log_not): New function.
8960 (s390_emit_bit_and): New function.
8961 (s390_emit_bit_or): New function.
8962 (s390_emit_bit_xor): New function.
8963 (s390_emit_bit_not): New function.
8964 (s390_emit_equal): New function.
8965 (s390_emit_less_signed): New function.
8966 (s390_emit_less_unsigned): New function.
8967 (s390_emit_ref): New function.
8968 (s390_emit_if_goto): New function.
8969 (s390_emit_goto): New function.
8970 (s390_write_goto_address): New function.
8971 (s390_emit_litpool): New function.
8972 (s390_emit_const): New function.
8973 (s390_emit_call): New function.
8974 (s390_emit_reg): New function.
8975 (s390_emit_pop): New function.
8976 (s390_emit_stack_flush): New function.
8977 (s390_emit_zero_ext): New function.
8978 (s390_emit_swap): New function.
8979 (s390_emit_stack_adjust): New function.
8980 (s390_emit_set_r2): New function.
8981 (s390_emit_int_call_1): New function.
8982 (s390_emit_void_call_2): New function.
8983 (s390_emit_eq_goto): New function.
8984 (s390_emit_ne_goto): New function.
8985 (s390_emit_lt_goto): New function.
8986 (s390_emit_le_goto): New function.
8987 (s390_emit_gt_goto): New function.
8988 (s390_emit_ge_goto): New function.
8989 (s390x_emit_prologue): New function.
8990 (s390x_emit_epilogue): New function.
8991 (s390x_emit_add): New function.
8992 (s390x_emit_sub): New function.
8993 (s390x_emit_mul): New function.
8994 (s390x_emit_lsh): New function.
8995 (s390x_emit_rsh_signed): New function.
8996 (s390x_emit_rsh_unsigned): New function.
8997 (s390x_emit_ext): New function.
8998 (s390x_emit_log_not): New function.
8999 (s390x_emit_bit_and): New function.
9000 (s390x_emit_bit_or): New function.
9001 (s390x_emit_bit_xor): New function.
9002 (s390x_emit_bit_not): New function.
9003 (s390x_emit_equal): New function.
9004 (s390x_emit_less_signed): New function.
9005 (s390x_emit_less_unsigned): New function.
9006 (s390x_emit_ref): New function.
9007 (s390x_emit_if_goto): New function.
9008 (s390x_emit_const): New function.
9009 (s390x_emit_call): New function.
9010 (s390x_emit_reg): New function.
9011 (s390x_emit_pop): New function.
9012 (s390x_emit_stack_flush): New function.
9013 (s390x_emit_zero_ext): New function.
9014 (s390x_emit_swap): New function.
9015 (s390x_emit_stack_adjust): New function.
9016 (s390x_emit_int_call_1): New function.
9017 (s390x_emit_void_call_2): New function.
9018 (s390x_emit_eq_goto): New function.
9019 (s390x_emit_ne_goto): New function.
9020 (s390x_emit_lt_goto): New function.
9021 (s390x_emit_le_goto): New function.
9022 (s390x_emit_gt_goto): New function.
9023 (s390x_emit_ge_goto): New function.
9024 (s390_emit_ops): New function.
9025 (struct linux_target_ops): Fill in emit_ops hook.
9027 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9030 * Makefile.in: Add s390 IPA files.
9031 * configure.srv: Build IPA for s390.
9032 * linux-s390-ipa.c: New file.
9033 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
9034 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
9035 (tdesc_s390_linux32): Likewise.
9036 (init_registers_s390_linux32v1): Likewise.
9037 (tdesc_s390_linux32v1): Likewise.
9038 (init_registers_s390_linux32v2): Likewise.
9039 (tdesc_s390_linux32v2): Likewise.
9040 (init_registers_s390_linux64): Likewise.
9041 (tdesc_s390_linux64): Likewise.
9042 (init_registers_s390_linux64v1): Likewise.
9043 (tdesc_s390_linux64v1): Likewise.
9044 (init_registers_s390_linux64v2): Likewise.
9045 (tdesc_s390_linux64v2): Likewise.
9046 (init_registers_s390_te_linux64): Likewise.
9047 (tdesc_s390_te_linux64): Likewise.
9048 (init_registers_s390_vx_linux64): Likewise.
9049 (tdesc_s390_vx_linux64): Likewise.
9050 (init_registers_s390_tevx_linux64): Likewise.
9051 (tdesc_s390_tevx_linux64): Likewise.
9052 (init_registers_s390x_linux64): Likewise.
9053 (tdesc_s390x_linux64): Likewise.
9054 (init_registers_s390x_linux64v1): Likewise.
9055 (tdesc_s390x_linux64v1): Likewise.
9056 (init_registers_s390x_linux64v2): Likewise.
9057 (tdesc_s390x_linux64v2): Likewise.
9058 (init_registers_s390x_te_linux64): Likewise.
9059 (tdesc_s390x_te_linux64): Likewise.
9060 (init_registers_s390x_vx_linux64): Likewise.
9061 (tdesc_s390x_vx_linux64): Likewise.
9062 (init_registers_s390x_tevx_linux64): Likewise.
9063 (tdesc_s390x_tevx_linux64): Likewise.
9064 (have_hwcap_s390_vx): New static variable.
9065 (s390_arch_setup): Fill have_hwcap_s390_vx.
9066 (s390_get_thread_area): New function.
9067 (s390_ft_entry_gpr_esa): New const.
9068 (s390_ft_entry_gpr_zarch): New const.
9069 (s390_ft_entry_misc): New const.
9070 (s390_ft_entry_fr): New const.
9071 (s390_ft_entry_vr): New const.
9072 (s390_ft_main_31): New const.
9073 (s390_ft_main_64): New const.
9074 (s390_ft_exit_fr): New const.
9075 (s390_ft_exit_vr): New const.
9076 (s390_ft_exit_misc): New const.
9077 (s390_ft_exit_gpr_esa): New const.
9078 (s390_ft_exit_gpr_zarch): New const.
9079 (append_insns): New function.
9080 (s390_relocate_instruction): New function.
9081 (s390_install_fast_tracepoint_jump_pad): New function.
9082 (s390_get_min_fast_tracepoint_insn_len): New function.
9083 (s390_get_ipa_tdesc_idx): New function.
9084 (struct linux_target_ops): Wire in the above functions.
9085 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
9086 * linux-s390-tdesc.h: New file.
9088 2016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
9090 * linux-s390-low.c (s390_supports_tracepoints): New function.
9091 (struct linux_target_ops): Fill supports_tracepoints hook.
9093 2016-03-18 Yao Qi <yao.qi@linaro.org>
9095 * linux-low.c (lwp_signal_can_be_delivered): New function.
9096 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
9098 2016-03-18 Yao Qi <yao.qi@linaro.org>
9100 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
9101 0 if signal is enqueued. Remove 'signal' from one debugging
9102 message. Move one debugging message to some lines below.
9103 Remove code setting 'signal' to 0.
9105 2016-03-18 Yao Qi <yao.qi@linaro.org>
9107 * linux-low.c (linux_low_filter_event): Remove redundant
9108 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
9110 2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
9112 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
9113 (struct linux_target_ops): Wire in the above.
9115 2016-03-03 Yao Qi <yao.qi@linaro.org>
9117 * linux-low.c: Update comments to start_step_over.
9119 2016-03-03 Yao Qi <yao.qi@linaro.org>
9122 * linux-low.c (handle_extended_wait): Set child suspended
9123 if event_lwp->bp_reinsert isn't zero.
9125 2016-03-02 Yao Qi <yao.qi@linaro.org>
9127 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
9128 enqueue_pending_signal.
9130 2016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
9132 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
9135 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9137 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
9138 (s390_regmap_3264) [!__s390x__]: New global.
9139 (s390_collect_ptrace_register): Skip map entries containing -1.
9140 (s390_supply_ptrace_register): Ditto.
9141 (s390_fill_gprs_high): New function.
9142 (s390_store_gprs_high): New function.
9143 (s390_regsets): Add NT_S390_HIGH_GPRS.
9144 (s390_get_hwcap): Enable on 31-bit.
9145 (have_hwcap_s390_high_gprs): Enable on 31-bit.
9146 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
9147 Detect NT_S390_HIGH_GPRS.
9148 (s390_usrregs_info_3264): Enable on 31-bit.
9149 (s390_regs_info): Enable regs_info_3264 on 31-bit.
9150 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
9152 2016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
9155 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
9156 * configure.srv: Ditto.
9157 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
9158 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
9159 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
9160 (init_registers_amd64_linux): Remove prototype.
9161 (tdesc_amd64_linux): Remove declaration.
9162 (get_ipa_tdesc): New function.
9163 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9164 initialize remaining tdescs.
9165 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
9166 (init_registers_i386_linux): Remove prototype.
9167 (tdesc_i386_linux): Remove declaration.
9168 (get_ipa_tdesc): New function.
9169 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
9170 initialize remaining tdescs.
9171 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
9172 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
9173 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
9174 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
9175 (x86_get_ipa_tdesc_idx): New function.
9176 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
9177 * linux-x86-tdesc.h: New file.
9178 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
9179 (target_get_ipa_tdesc_idx): New macro.
9180 * tracepoint.c (ipa_tdesc_idx): New macro.
9181 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
9182 (symbol_list): Add ipa_tdesc_idx.
9183 (cmd_qtstart): Write ipa_tdesc_idx in the target.
9184 (ipa_tdesc): Remove.
9185 (ipa_tdesc_idx): New variable.
9186 (get_context_regcache): Use get_ipa_tdesc.
9187 (gdb_collect): Ditto.
9189 * tracepoint.h (get_ipa_tdesc): New prototype.
9190 (ipa_tdesc): Remove.
9192 2016-02-24 Pedro Alves <palves@redhat.com>
9194 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
9195 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
9196 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
9197 Factor out common code between the USE_SIGTRAP_SIGINFO and
9198 !USE_SIGTRAP_SIGINFO blocks.
9199 (linux_low_filter_event): Call save_stop_reason instead of
9200 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
9202 (linux_wait_1): Update comments.
9204 2016-02-24 Wei-cheng Wang <cole945@gmail.com>
9206 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
9207 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
9208 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
9209 ppc_insert_point, ppc_remove_point.
9211 2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
9213 * linux-s390-low.c (s390_supports_z_point_type): New function.
9214 (struct linux_target_ops): Wire s390_supports_z_point_type in.
9216 2016-02-16 Yao Qi <yao.qi@linaro.org>
9218 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
9219 PC. Get pc from regcache_read_pc.
9221 2016-02-12 Yao Qi <yao.qi@linaro.org>
9223 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
9224 or linux_get_pc_32bit.
9225 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
9227 2016-02-12 Yao Qi <yao.qi@linaro.org>
9229 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
9230 arm_linux_get_next_pcs_fixup.
9232 2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
9234 * tracepoint.c (x_tracepoint_action_download): Change
9235 write_inferior_data_ptr to write_inferior_data_pointer.
9236 (cmd_qtstart): Likewise.
9237 (write_inferior_data_ptr): Remove.
9238 (download_agent_expr): Change write_inferior_data_ptr to
9239 write_inferior_data_pointer.
9240 (download_tracepoint_1): Likewise.
9241 (download_tracepoint): Likewise.
9242 (download_trace_state_variables): Likewise.
9244 2016-02-11 Wei-cheng Wang <cole945@gmail.com>
9245 Marcin Kościelnicki <koriakin@0x04.net>
9247 * tracepoint.c (struct tracepoint_action_ops): Remove.
9248 (struct tracepoint_action): Remove ops.
9249 (m_tracepoint_action_download, r_tracepoint_action_download)
9250 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
9251 size and offset accordingly.
9252 (m_tracepoint_action_ops, r_tracepoint_action_ops)
9253 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
9254 (tracepoint_action_send, tracepoint_action_download): New functions.
9255 Helpers for trace action handlers.
9256 (add_tracepoint_action): Remove setup actions ops.
9257 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
9259 2016-02-10 Yao Qi <yao.qi@linaro.org>
9261 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
9263 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9265 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
9267 * configure: Regenerate.
9269 2016-02-09 Simon Marchi <simon.marchi@ericsson.com>
9271 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
9272 void * to gdb_byte *.
9273 * linux-low.c (siginfo_fixup): Likewise.
9274 (linux_xfer_siginfo): Likewise.
9275 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
9277 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
9279 2016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
9281 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
9283 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
9285 * linux-x86-low.c [__x86_64__]: Include
9286 "nat/amd64-linux-siginfo.h".
9287 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
9288 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
9289 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
9290 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
9291 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
9292 (cpt_si_fd, si_timerid, si_overrun): Move from
9293 nat/amd64-linux-siginfo.c.
9294 * Makefile.in (amd64-linux-siginfo.o:): New rule.
9296 2016-01-28 Simon Marchi <simon.marchi@ericsson.com>
9298 * server.c (skip_to_semicolon): Remove.
9299 (process_point_options): Use strchrnul instead of
9302 2016-01-26 Yao Qi <yao.qi@linaro.org>
9304 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
9305 * linux-low.c (install_software_single_step_breakpoints): Don't
9306 call regcache_read_pc.
9307 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
9310 2016-01-26 Yao Qi <yao.qi@linaro.org>
9312 * linux-low.c (install_software_single_step_breakpoints): Call
9313 regcache_read_pc instead of get_pc.
9315 2016-01-26 Yao Qi <yao.qi@linaro.org>
9317 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
9318 (unblock_async_io): Rename to ...
9319 (block_unblock_async_io): ... it. New function.
9320 (enable_async_io): Don't install SIGIO handler. Unblock it
9322 (disable_async_io): Don't ignore SIGIO. Block it instead.
9323 (initialize_async_io): Install SIGIO handler. Don't call
9326 2016-01-26 Yao Qi <yao.qi@linaro.org>
9328 * remote-utils.c (getpkt): If the buffer isn't empty, and the
9329 first character is '\003', call *the_target->request_interrupt.
9331 2016-01-25 Yao Qi <yao.qi@linaro.org>
9333 * remote-utils.c (new_thread_notify): Remove.
9334 (dead_thread_notify): Likewise.
9335 * remote-utils.h (new_thread_notify): Remove declaration.
9336 (dead_thread_notify): Likewise.
9338 2016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
9340 * gdb.trace/pending.exp: Fix expected message on continue.
9342 2016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
9344 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
9345 it works properly on big-endian machines where sizeof (CORE_ADDR)
9348 2016-01-21 Pedro Alves <palves@redhat.com>
9350 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
9351 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
9352 * configure: Regenerate.
9354 2016-01-21 Yao Qi <yao.qi@linaro.org>
9356 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
9357 is_thumb and set it according to CPSR saved on the stack.
9358 (get_next_pcs_syscall_next_pc): Pass is_thumb to
9359 arm_sigreturn_next_pc.
9361 2016-01-18 Yao Qi <yao.qi@linaro.org>
9363 * linux-low.c (linux_set_pc_64bit): New function.
9364 (linux_get_pc_64bit): New function.
9365 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
9367 * linux-sparc-low.c (debug_threads): Remove declaration.
9368 (sparc_get_pc): Remove.
9369 (the_low_target): Use linux_get_pc_64bit instead of
9371 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
9372 (the_low_target): Use linux_get_pc_64bit and
9375 2016-01-18 Yao Qi <yao.qi@linaro.org>
9377 * linux-arm-low.c (debug_threads): Remove declaration.
9378 (arm_get_pc, arm_set_pc): Remove.
9379 (the_low_target): Use linux_get_pc_32bit and
9381 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
9382 (the_low_target): Use linux_get_pc_32bit and
9384 * linux-cris-low.c (debug_threads): Remove declaration.
9385 (cris_get_pc, cris_set_pc,): Remove.
9386 (the_low_target): Use linux_get_pc_32bit and
9388 * linux-crisv32-low.c (debug_threads): Remove declaration.
9389 (cris_get_pc, cris_set_pc): Remove.
9390 (the_low_target): Use linux_get_pc_32bit and
9392 * linux-low.c: Include inttypes.h.
9393 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
9394 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
9395 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
9396 (the_low_target): Use linux_get_pc_32bit and
9398 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
9399 (the_low_target): Use linux_get_pc_32bit and
9401 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
9402 (the_low_target): Use linux_get_pc_32bit and
9404 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
9405 (the_low_target): Use linux_get_pc_32bit and
9407 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
9408 (the_low_target): Use linux_get_pc_32bit and
9411 2016-01-18 Gary Benson <gbenson@redhat.com>
9413 * configure.ac (AC_FUNC_FORK): New check.
9414 * config.in: Regenerate.
9415 * configure: Likewise.
9417 2016-01-14 Yao Qi <yao.qi@linaro.org>
9419 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
9420 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
9421 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
9422 arm_get_next_pcs_ctor.
9424 2016-01-12 Josh Stone <jistone@redhat.com>
9425 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9427 * inferiors.h: Include "gdb_vecs.h".
9428 (struct process_info): Add syscalls_to_catch.
9429 * inferiors.c (remove_process): Free syscalls_to_catch.
9430 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
9431 syscall_return stops.
9432 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
9433 * server.c (handle_general_set): Handle QCatchSyscalls.
9434 (handle_query): Report support for QCatchSyscalls.
9435 * target.h (struct target_ops): Add supports_catch_syscall.
9436 (target_supports_catch_syscall): New macro.
9437 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
9438 (struct lwp_info): Add syscall_state.
9439 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
9440 Maintain syscall_state and syscalls_to_catch across exec.
9441 (get_syscall_trapinfo): New function, proxy to the_low_target.
9442 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
9443 (linux_low_filter_event): Toggle syscall_state entry/return for
9444 syscall traps, and set it ignored for all others.
9445 (gdb_catching_syscalls_p): New function.
9446 (gdb_catch_this_syscall_p): New function.
9447 (linux_wait_1): Handle SYSCALL_SIGTRAP.
9448 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
9449 (linux_supports_catch_syscall): New function.
9450 (linux_target_ops): Install it.
9451 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
9452 (the_low_target): Install it.
9454 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9456 * acinclude.m4: Include new ../warning.m4 file.
9457 * configure: Regenerated.
9458 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
9460 2016-01-12 Mike Frysinger <vapier@gentoo.org>
9462 * ax.c (is_goto_target): Mark static.
9463 * linux-low.c (register_addr): Likewise.
9464 (linux_fetch_registers, linux_store_registers): Likewise.
9465 * mem-break.c (any_persistent_commands): Fix old prototype.
9466 (add_commands_to_breakpoint): Mark static.
9467 * regcache.c (find_register_by_name): Delete unused func.
9468 * remote-utils.c (hex_or_minus_one): Mark static.
9469 * server.c (monitor_show_help): Mark static.
9470 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
9471 handle_v_requests): Likewise.
9473 2016-01-12 Pedro Alves <palves@redhat.com>
9475 Remove use of the registered trademark symbol throughout.
9477 2016-01-08 Yao Qi <yao.qi@linaro.org>
9479 * remote-utils.c (getpkt): If c is '\003', call target hook
9482 2016-01-06 Yao Qi <yao.qi@linaro.org>
9484 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
9485 linux-aarch32-low.c.
9486 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9487 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9488 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9489 (thumb2_breakpoint): Declare.
9490 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
9491 linux-aarch32-low.h.
9492 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9493 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
9494 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9496 2016-01-01 Joel Brobecker <brobecker@adacore.com>
9498 * gdbreplay.c (gdbreplay_version): Change copyright year in
9500 * server.c (gdbserver_version): Likewise.
9502 2015-12-28 Patrick Palka <patrick@parcs.ath.cx>
9504 * server.c (crc32_table): Delete.
9505 (crc32): Use libiberty's xcrc32 function.
9507 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9509 * lynx-low.c (lynx_delete_thread_callback): New function.
9510 (lynx_mourn): Properly delete our process and all of its
9511 threads. Remove call to clear_inferiors.
9513 2015-12-22 Joel Brobecker <brobecker@adacore.com>
9515 * target.c (thread_search_callback): Add check that
9516 the thread_stopped target callback is not NULL before
9519 2015-12-21 Yao Qi <yao.qi@linaro.org>
9521 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
9524 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9526 * server.c (handle_query): Call target_supports_software_single_step.
9528 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9530 * linux-low.c (single_step): New function.
9531 (linux_resume_one_lwp_throw): Call single_step.
9532 (start_step_over): Likewise.
9534 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9536 * Makefile.in (SFILES): Append arch/arm-linux.c,
9537 arch/arm-get-next-pcs.c.
9538 (arm-linux.o): New rule.
9539 (arm-get-next-pcs.o): New rule.
9540 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
9542 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
9543 to linux-aarch32-low.c.
9544 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9545 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9546 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9547 (thumb2_breakpoint_len): Likewise.
9548 (arm_is_thumb_mode): Make non-static.
9549 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
9550 from linux-aarch32-low.c.
9551 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9552 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9553 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9554 (thumb2_breakpoint_len): Likewise.
9555 (arm_is_thumb_mode): New declaration.
9556 * linux-arm-low.c: Include arch/arm-linux.h
9557 aarch/arm-get-next-pcs.h, sys/syscall.h.
9558 (get_next_pcs_ops): New struct.
9559 (get_next_pcs_addr_bits_remove): New function.
9560 (get_next_pcs_is_thumb): New function.
9561 (get_next_pcs_read_memory_unsigned_integer): Likewise.
9562 (arm_sigreturn_next_pc): Likewise.
9563 (get_next_pcs_syscall_next_pc): Likewise.
9564 (arm_gdbserver_get_next_pcs): Likewise.
9565 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
9567 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
9568 * server.h: Include gdb_vecs.h.
9570 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9572 * Makefile.in (SFILES): Append common/common-regcache.c.
9573 (OBS): Append common-regcache.o.
9574 (common-regcache.o): New rule.
9575 * regcache.c (init_register_cache): Initialize cache to
9577 (regcache_raw_read_unsigned): New function.
9578 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
9579 register_status enum.
9581 2015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
9583 * linux-aarch64-low.c (the_low_targets): Rename
9584 breakpoint_reinsert_addr to get_next_pcs.
9585 * linux-arm-low.c (the_low_targets): Likewise.
9586 * linux-bfin-low.c (the_low_targets): Likewise.
9587 * linux-cris-low.c (the_low_targets): Likewise.
9588 * linux-crisv32-low.c (the_low_targets): Likewise.
9589 * linux-low.c (can_software_single_step): Likewise.
9590 (install_software_single_step_breakpoints): New function.
9591 (start_step_over): Use install_software_single_step_breakpoints.
9592 * linux-low.h: New CORE_ADDR vector.
9593 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
9595 * linux-mips-low.c (the_low_targets): Likewise.
9596 * linux-nios2-low.c (the_low_targets): Likewise.
9597 * linux-sparc-low.c (the_low_targets): Likewise.
9599 2015-12-17 Pedro Alves <palves@redhat.com>
9601 * linux-low.c (linux_kill_one_lwp): Remove references to
9603 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
9605 (linux_init_signals): Delete.
9606 (initialize_low): Adjust.
9607 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
9609 2015-12-16 Pedro Alves <palves@redhat.com>
9611 * configure.ac (compiler warning flags): When testing a
9612 -Wno-foo option, check whether -Wfoo works instead.
9613 * configure: Regenerate.
9615 2015-12-11 Don Breazeal <donb@codesourcery.com>
9617 * server.c (process_serial_event): Don't exit from gdbserver
9618 in remote mode if there are still active inferiors.
9620 2015-12-11 Yao Qi <yao.qi@linaro.org>
9622 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
9623 arm_breakpoint_at if the process is 32-bit.
9625 2015-12-11 Yao Qi <yao.qi@linaro.org>
9627 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
9630 2015-12-07 Yao Qi <yao.qi@linaro.org>
9632 * configure.srv: Append arm.o to srv_tgtobj for
9633 aarch64*-*-linux* target.
9634 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
9635 from linux-arm-low.c.
9636 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
9637 (arm_breakpoint_len, thumb_breakpoint): Likewise.
9638 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
9639 (thumb2_breakpoint_len): Likewise.
9640 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
9641 (arm_breakpoint_kinds): Likewise.
9642 (arm_breakpoint_kind_from_pc): Likewise.
9643 (arm_sw_breakpoint_from_kind): Likewise.
9644 (arm_breakpoint_kind_from_current_state): Likewise.
9645 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
9646 (arm_sw_breakpoint_from_kind): Declare.
9647 (arm_breakpoint_kind_from_current_state): Declare.
9648 (arm_breakpoint_at): Declare.
9649 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
9650 arm_sw_breakpoint_from_kind if process is 32-bit.
9651 (aarch64_breakpoint_kind_from_pc): New function.
9652 (aarch64_breakpoint_kind_from_current_state): New function.
9653 (the_low_target): Initialize fields breakpoint_kind_from_pc
9654 and breakpoint_kind_from_current_state.
9655 * linux-arm-low.c (arm_breakpoint_kinds): Move to
9656 linux-aarch32-low.c.
9657 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
9658 (arm_breakpoint, arm_breakpoint_len): Likewise.
9659 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
9660 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
9661 (arm_is_thumb_mode): Likewise.
9662 (arm_breakpoint_at): Likewise.
9663 (arm_breakpoint_kind_from_pc): Likewise.
9664 (arm_sw_breakpoint_from_kind): Likewise.
9665 (arm_breakpoint_kind_from_current_state): Likewise.
9668 2015-08-04 Yao Qi <yao.qi@linaro.org>
9670 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
9671 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
9672 * server.c (extended_protocol): Remove "static".
9673 * server.h (extended_protocol): Declare it.
9675 2015-12-04 Josh Stone <jistone@redhat.com>
9677 * target.h (struct target_ops) <arch_setup>: Rename to ...
9678 (struct target_ops) <post_create_inferior>: ... this.
9679 (target_arch_setup): Rename to ...
9680 (target_post_create_inferior): ... this, calling post_create_inferior.
9681 * server.c (start_inferior): Update target_arch_setup calls to
9682 target_post_create_inferior.
9683 * linux-low.c (linux_low_ptrace_options): Forward declare.
9684 (linux_arch_setup): Update its comment for general use.
9685 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
9686 (struct linux_target_ops): Use linux_post_create_inferior.
9687 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
9688 to post_create_inferior.
9689 * nto-low.c (struct nto_target_ops): Likewise.
9690 * spu-low.c (struct spu_target_ops): Likewise.
9691 * win32-low.c (struct win32_target_ops): Likewise.
9693 2015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
9695 * linux-arm-low.c: Remove duplicate arch/arm.h include.
9697 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9699 * linux-arm-low.c (arm_reinsert_addr): Remove function.
9700 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
9701 * linux-cris-low.c (cris_reinsert_addr> Remove function.
9702 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9703 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
9704 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9705 * linux-mips-low.c (mips_reinsert_addr): Remove function.
9706 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9707 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
9708 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9709 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
9710 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
9712 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9714 * linux-low.c (linux_look_up_symbols): Don't call
9715 linux_supports_traceclone.
9716 * linux-low.h (thread_db_init): Remove use_events argument.
9717 * thread-db.c (thread_db_use_event): Remove global variable.
9718 (struct thread_db) <td_thr_event_enable_p>: Remove field.
9719 (struct thread_db) <td_create_bp>: Remove field.
9720 (thread_db_create_event): Remove function.
9721 (thread_db_enable_reporting): Likewise.
9722 (find_one_thread): Don't check for thread_db_use_events.
9723 (attach_thread): Likewise.
9724 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
9725 (try_thread_db_load_1): Don't check for thread_db_use_events.
9726 (thread_db_init): Remove use_events argument and thread events
9728 (remove_thread_event_breakpoints): Remove function.
9729 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
9731 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9733 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
9735 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9736 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
9737 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9738 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
9739 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
9741 * linux-crisv32-low.c (cris_supports_hardware_single_step):
9743 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9744 * linux-low.c (can_hardware_single_step): Use
9745 supports_hardware_single_step.
9746 (can_software_single_step): New function.
9747 (start_step_over): Call can_software_single_step.
9748 (linux_supports_hardware_single_step): New function.
9749 (struct target_ops) <supports_software_single_step>: Initialize.
9750 * linux-low.h (struct linux_target_ops)
9751 <supports_hardware_single_step>: Initialize.
9752 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
9753 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9754 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
9755 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
9756 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
9757 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9758 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
9759 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9760 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
9761 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
9763 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
9764 (struct linux_target_ops) <tile_supports_hardware_single_step>:
9766 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
9767 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9768 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
9770 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
9771 * target.h (struct target_ops): <supports_software_single_step>:
9773 (target_supports_software_single_step): New macro.
9775 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9777 * linux-low.c (linux_wait_1): Fix pc advance condition.
9778 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
9779 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
9781 2015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
9783 * linux-arm-low.c (arm_is_thumb_mode): New function.
9784 (arm_breakpoint_at): Use arm_is_thumb_mode.
9785 (arm_breakpoint_kind_from_current_state): New function.
9786 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
9788 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
9789 (linux_breakpoint_kind_from_current_state): New function.
9790 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
9791 * linux-low.h (struct linux_target_ops)
9792 <breakpoint_kind_from_current_state>: New field.
9793 * target.h (struct target_ops): Likewise.
9794 (target_breakpoint_kind_from_current_state): New macro.
9796 2015-11-30 Pedro Alves <palves@redhat.com>
9798 * linux-low.c (linux_resume): Wake up the event loop before
9801 2015-11-30 Pedro Alves <palves@redhat.com>
9803 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
9805 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
9807 * target.c (struct thread_search): New structure.
9808 (thread_search_callback): New function.
9809 (prev_general_thread): New global.
9810 (prepare_to_access_memory, done_accessing_memory): New functions.
9811 * target.h (prepare_to_access_memory, done_accessing_memory):
9812 Replace macros with function declarations.
9814 2015-11-30 Pedro Alves <palves@redhat.com>
9817 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
9818 report TARGET_WAITKIND_NO_RESUMED.
9819 * remote-utils.c (prepare_resume_reply): Handle
9820 TARGET_WAITKIND_NO_RESUMED.
9821 * server.c (report_no_resumed): New global.
9822 (handle_query) <qSupported>: Handle "no-resumed+". Report
9823 "no-resumed+" support.
9824 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
9825 return error if the client doesn't support no-resumed events.
9826 (push_stop_notification): New function.
9827 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
9828 events if the client supports them.
9830 2015-11-30 Pedro Alves <palves@redhat.com>
9832 * linux-low.c (thread_still_has_status_pending_p): Don't check
9834 (lwp_resumed): New function.
9835 (status_pending_p_callback): Return early if the LWP is not
9836 supposed to be resumed.
9838 2015-11-30 Pedro Alves <palves@redhat.com>
9840 * linux-low.c (handle_extended_wait): Assert that the LWP's
9841 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
9842 thread create events, leave the new child's status pending.
9843 (linux_low_filter_event): If GDB wants to hear about thread exit
9844 events, leave the LWP marked dead and don't delete it.
9845 (linux_wait_for_event_filtered): Don't check for thread exit.
9846 (filter_exit_event): New function.
9847 (linux_wait_1): Use it, when returning an exit event.
9848 (linux_resume_one_lwp_throw): Assert that the LWP's
9849 waitstatus is TARGET_WAITKIND_IGNORE.
9850 * remote-utils.c (prepare_resume_reply): Handle
9851 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
9852 * server.c (report_thread_events): New global.
9853 (handle_general_set): Handle QThreadEvents.
9854 (handle_query) <qSupported>: Handle and report QThreadEvents+;
9855 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
9856 TARGET_WAITKIND_THREAD_EXITED.
9857 * server.h (report_thread_events): Declare.
9859 2015-11-30 Pedro Alves <palves@redhat.com>
9861 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
9862 the thread's last_resume_kind was resume_stop.
9864 2015-11-30 Pedro Alves <palves@redhat.com>
9866 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
9869 2015-11-30 Pedro Alves <palves@redhat.com>
9871 * server.c (handle_v_requests): Handle vCtrlC.
9873 2015-11-30 Pedro Alves <palves@redhat.com>
9875 * gdbthread.h (find_any_thread_of_pid): Declare.
9876 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
9878 * server.c (handle_query): If current_thread is NULL, look for
9879 another thread of the selected process.
9881 2015-11-26 Daniel Colascione <dancol@dancol.org>
9882 Simon Marchi <simon.marchi@ericsson.com>
9884 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
9885 * server.c (handle_qxfer_threads_worker): Refactor to include thread
9887 * target.h (struct target_ops) <thread_name>: New field.
9888 (target_thread_name): New macro.
9890 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9892 * regcache.h (regcache_invalidate_pid): Add declaration.
9893 * regcache.c (regcache_invalidate_pid): New function, extracted
9894 from regcache_invalidate.
9895 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
9896 Add trivial documentation comment.
9897 * lynx-low.c: Use regcache_invalidate_pid instead of
9898 regcache_invalidate.
9900 2015-11-23 Joel Brobecker <brobecker@adacore.com>
9902 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
9903 and Elf64_auxv_t if the target is Android.
9905 2015-11-22 Doug Evans <xdje42@gmail.com>
9907 * target.h: #include <sys/types.h>.
9909 2015-11-19 Pedro Alves <palves@redhat.com>
9911 * linux-low.c (linux_process_qsupported): Change prototype.
9913 * linux-low.h (struct linux_target_ops) <process_qsupported>:
9915 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
9916 and adjust to loop over all features.
9917 * server.c (handle_query) <qSupported>: Adjust to call
9918 target_process_qsupported once, passing it a vector of unprocessed
9920 * target.h (struct target_ops) <process_qsupported>: Change
9922 (target_process_qsupported): Adjust.
9924 2015-11-19 Pedro Alves <palves@redhat.com>
9926 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
9928 * configure: Regenerate.
9930 2015-11-19 Pedro Alves <palves@redhat.com>
9932 * configure: Regenerate.
9934 2015-11-19 Yao Qi <yao.qi@linaro.org>
9936 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
9939 2015-11-19 Yao Qi <yao.qi@linaro.org>
9941 * linux-aarch64-low.c (enum aarch64_operand_type): New.
9942 (struct aarch64_operand): Move enum out.
9944 2015-11-19 Yao Qi <yao.qi@linaro.org>
9946 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
9947 struct user_fpsimd_state *.
9948 (aarch64_store_fpregset): Likewise.
9950 2015-11-19 Yao Qi <yao.qi@linaro.org>
9952 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
9953 struct user_pt_regs *.
9954 (aarch64_store_gregset): Likewise.
9956 2015-11-18 Pedro Alves <palves@redhat.com>
9958 * Makefile.in (all_object_files): Add $IPA_OBJS.
9960 2015-11-17 Pedro Alves <palves@redhat.com>
9962 * win32-low.c (win32_resume): Use gdb_signal_from_host,
9963 GDB_SIGNAL_0 and gdb_signal_to_string.
9965 2015-11-17 Pedro Alves <palves@redhat.com>
9967 * win32-low.c (handle_output_debug_string): Remove parameter.
9968 (win32_kill): Remove our_status local and adjust call to
9969 handle_output_debug_string.
9970 (get_child_debug_event): Adjust call to
9971 handle_output_debug_string.
9973 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9975 * linux-mips-low.c (mips_fill_gregset): Add cast.
9976 (mips_store_gregset): Likewise.
9977 (mips_fill_fpregset): Likewise.
9978 (mips_store_fpregset): Likewise.
9980 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9982 * linux-mips-low.c (mips_add_watchpoint): Rename private to
9985 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9987 * linux-mips-low.c (mips_linux_new_thread): Change type of
9988 watch_type to enum target_hw_bp_type.
9990 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9992 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
9993 Change return type to arm_hwbp_type.
9995 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
9997 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
9998 (arm_store_gregset): Likewise.
9999 * linux-arm-low.c (arm_get_hwcap): Likewise.
10000 (arm_read_description): Likewise.
10002 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10004 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
10006 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10008 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
10009 (ppc_fill_vsxregset): Likewise.
10010 (ppc_store_vsxregset): Likewise.
10011 (ppc_fill_vrregset): Likewise.
10012 (ppc_store_vrregset): Likewise.
10013 (ppc_fill_evrregset): Likewise.
10014 (ppc_store_evrregset): Likewise.
10016 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
10018 * linux-ppc-low.c (ppc_usrregs_info): Remove
10019 forward-declaration.
10020 (ppc_arch_setup): Move lower in file.
10022 2015-10-30 Simon Marchi <simon.marchi@ericsson.com>
10024 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
10025 (ps_pdwrite): Likewise.
10027 2015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
10029 * linux-arm-low.c (arm_new_thread): Move pointer dereference
10030 to after assert checks.
10032 2015-10-29 Simon Marchi <simon.marchi@ericsson.com>
10034 * proc-service.c (ps_pdread): Add/adjust casts.
10035 (ps_pdwrite): Add/adjust casts.
10037 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10039 * server.c (handle_search_memory_1): Cast return value of
10042 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
10044 * server.c (write_qxfer_response): Change type of data to
10047 2015-10-29 Pedro Alves <palves@redhat.com>
10049 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
10051 2015-10-29 Pedro Alves <palves@redhat.com>
10053 * tracepoint.c (clear_installed_tracepoints): Add casts.
10055 2015-10-29 Pedro Alves <palves@redhat.com>
10057 * server.c (handle_v_cont, process_serial_event): Add enum
10058 gdb_signal casts to signal parsing code.
10060 2015-10-29 Pedro Alves <palves@redhat.com>
10062 * linux-low.h (NULL_REGSET): Define.
10063 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10064 * linux-arm-low.c (arm_regsets): Likewise.
10065 * linux-crisv32-low.c (cris_regsets): Likewise.
10066 * linux-m68k-low.c (m68k_regsets): Likewise.
10067 * linux-mips-low.c (mips_regsets): Likewise.
10068 * linux-nios2-low.c (nios2_regsets): Likewise.
10069 * linux-ppc-low.c (ppc_regsets): Likewise.
10070 * linux-s390-low.c (s390_regsets): Likewise.
10071 * linux-sh-low.c (sh_regsets): Likewise.
10072 * linux-sparc-low.c (sparc_regsets): Likewise.
10073 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10074 * linux-tile-low.c (tile_regsets): Likewise.
10075 * linux-x86-low.c (x86_regsets): Likewise.
10076 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10078 2015-10-29 Pedro Alves <palves@redhat.com>
10080 * linux-low.h (NULL_REGSET): Define.
10081 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
10082 * linux-arm-low.c (arm_regsets): Likewise.
10083 * linux-crisv32-low.c (cris_regsets): Likewise.
10084 * linux-m68k-low.c (m68k_regsets): Likewise.
10085 * linux-mips-low.c (mips_regsets): Likewise.
10086 * linux-nios2-low.c (nios2_regsets): Likewise.
10087 * linux-ppc-low.c (ppc_regsets): Likewise.
10088 * linux-s390-low.c (s390_regsets): Likewise.
10089 * linux-sh-low.c (sh_regsets): Likewise.
10090 * linux-sparc-low.c (sparc_regsets): Likewise.
10091 * linux-tic6x-low.c (tic6x_regsets): Likewise.
10092 * linux-tile-low.c (tile_regsets): Likewise.
10093 * linux-x86-low.c (x86_regsets): Likewise.
10094 * linux-xtensa-low.c (xtensa_regsets): Likewise.
10096 2015-10-26 Doug Evans <dje@google.com>
10098 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
10100 2015-10-26 Doug Evans <dje@google.com>
10102 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
10104 2015-10-26 Doug Evans <dje@google.com>
10106 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
10108 (attach_thread, find_new_threads_callback): Ditto.
10110 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10112 * mem-break.h (set_breakpoint_data): Remove.
10114 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10116 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
10117 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10118 (initialize_low): Remove set_breakpoint_data call.
10119 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
10120 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
10121 (initialize_low): Remove set_breakpoint_data call.
10122 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
10123 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
10124 (initialize_low): Remove set_breakpoint_data call.
10126 2015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
10128 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
10129 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
10130 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
10131 * target.h (target_breakpoint_kind_from_pc): New macro.
10133 2015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
10135 * linux-low.c (default_breakpoint_kind_from_pc): New function.
10136 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
10137 the default breakpoint kind.
10139 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10141 * linux-arm-low.c (arm_supports_z_point_type): Add software
10142 breakpoint support.
10144 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10146 * linux-arm-low.c: Refactor breakpoint definitions.
10147 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
10148 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
10150 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10152 * Makefile.in: Add arm.c/o.
10153 * configure.srv: Likewise.
10154 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
10155 (arm_breakpoint_kind_from_pc): New function.
10156 (arm_sw_breakpoint_from_kind): Return proper kind.
10157 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
10159 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10161 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
10163 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
10164 (struct raw_breakpoint) <size>: Remove.
10165 (struct raw_breakpoint) <kind>: Add.
10166 (bp_size): New function.
10167 (bp_opcode): Likewise.
10168 (find_raw_breakpoint_at): Adjust for kind.
10169 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
10170 (remove_memory_breakpoint): Adjust for kind call bp_size.
10171 (set_raw_breakpoint_at): Adjust for kind.
10172 (set_breakpoint): Likewise.
10173 (set_breakpoint_at): Call breakpoint_kind_from_pc.
10174 (delete_raw_breakpoint): Adjust for kind.
10175 (delete_breakpoint): Likewise.
10176 (find_gdb_breakpoint): Likewise.
10177 (set_gdb_breakpoint_1): Likewise.
10178 (set_gdb_breakpoint): Likewise.
10179 (delete_gdb_breakpoint_1): Likewise.
10180 (delete_gdb_breakpoint): Likewise.
10181 (uninsert_raw_breakpoint): Likewise.
10182 (reinsert_raw_breakpoint): Likewise.
10183 (set_breakpoint_data): Remove.
10184 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
10185 (check_mem_read): Adjust for kind call bp_size.
10186 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
10187 (clone_one_breakpoint): Adjust for kind.
10188 * mem-break.h (set_gdb_breakpoint): Likewise.
10189 (delete_gdb_breakpoint): Likewise.
10190 * server.c (process_serial_event): Likewise.
10192 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10194 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
10195 (struct linux_target_ops) <breakpoint>: Remove.
10196 (struct linux_target_ops) <breakpoint_len>: Remove.
10197 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10198 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10199 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
10200 (arm_sw_breakpoint_from_kind): New function.
10201 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
10202 (struct linux_target_ops) <breakpoint>: Remove.
10203 (struct linux_target_ops) <breakpoint_len>: Remove.
10204 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10205 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10206 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
10207 (struct linux_target_ops) <breakpoint>: Remove.
10208 (struct linux_target_ops) <breakpoint_len>: Remove.
10209 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10210 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10211 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
10212 (struct linux_target_ops) <breakpoint>: Remove.
10213 (struct linux_target_ops) <breakpoint_len>: Remove.
10214 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10215 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10216 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
10217 and sw_breakpoint_from_kind to increment the pc.
10218 (linux_breakpoint_kind_from_pc): New function.
10219 (linux_sw_breakpoint_from_kind): New function.
10220 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
10221 (initialize_low): Call breakpoint_kind_from_pc and
10222 sw_breakpoint_from_kind to replace breakpoint_data/len.
10223 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
10225 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
10226 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
10227 (struct linux_target_ops) <breakpoint>: Remove.
10228 (struct linux_target_ops) <breakpoint_len>: Remove.
10229 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10230 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10231 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
10232 (struct linux_target_ops) <breakpoint>: Remove.
10233 (struct linux_target_ops) <breakpoint_len>: Remove.
10234 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10235 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10236 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
10237 (struct linux_target_ops) <breakpoint>: Remove.
10238 (struct linux_target_ops) <breakpoint_len>: Remove.
10239 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10240 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10241 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
10242 (struct linux_target_ops) <breakpoint>: Remove.
10243 (struct linux_target_ops) <breakpoint_len>: Remove.
10244 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10245 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10246 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
10247 (struct linux_target_ops) <breakpoint>: Remove.
10248 (struct linux_target_ops) <breakpoint_len>: Remove.
10249 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10250 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10251 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
10252 (struct linux_target_ops) <breakpoint>: Remove.
10253 (struct linux_target_ops) <breakpoint_len>: Remove.
10254 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10255 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10256 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
10257 (struct linux_target_ops) <breakpoint>: Remove.
10258 (struct linux_target_ops) <breakpoint_len>: Remove.
10259 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10260 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10261 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
10262 (struct linux_target_ops) <breakpoint>: Remove.
10263 (struct linux_target_ops) <breakpoint_len>: Remove.
10264 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10265 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10266 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
10267 (struct linux_target_ops) <breakpoint>: Remove.
10268 (struct linux_target_ops) <breakpoint_len>: Remove.
10269 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10270 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10271 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
10272 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
10273 (struct linux_target_ops) <breakpoint>: Remove.
10274 (struct linux_target_ops) <breakpoint_len>: Remove.
10275 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10276 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10277 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
10278 (struct linux_target_ops) <breakpoint>: Remove.
10279 (struct linux_target_ops) <breakpoint_len>: Remove.
10280 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
10281 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
10283 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
10285 * linux-cris-low.c (cris_get_pc): Remove void arg.
10287 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10289 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
10292 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
10294 * inferiors.c (thread_pid_matches_callback): New function.
10295 (find_thread_process): New function.
10296 (remove_thread): Reset current_thread.
10297 (remove_process): Assert threads have been removed first.
10299 2015-10-15 Yao Qi <yao.qi@linaro.org>
10301 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
10303 (aarch64_remove_point): Likewise.
10304 * regcache.c (regcache_register_size): New function.
10306 2015-10-12 Yao Qi <yao.qi@linaro.org>
10308 * linux-aarch64-low.c: Update all callers as emit_load_store
10309 is renamed to aarch64_emit_load_store.
10311 2015-10-12 Yao Qi <yao.qi@linaro.org>
10313 * linux-aarch64-low.c: Update all callers of function renaming
10314 from emit_insn to aarch64_emit_insn.
10316 2015-10-12 Yao Qi <yao.qi@linaro.org>
10318 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
10319 arch/aarch64-insn.h.
10320 (struct aarch64_memory_operand): Likewise.
10321 (ENCODE): Likewise.
10322 (emit_insn): Move to arch/aarch64-insn.c.
10323 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
10324 (emit_load_store): Move to arch/aarch64-insn.c.
10325 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
10326 (can_encode_int32): Remove.
10328 2015-10-12 Yao Qi <yao.qi@linaro.org>
10330 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
10331 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
10332 (aarch64_relocate_instruction): Likewise.
10333 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
10334 (struct aarch64_insn_visitor): Likewise.
10336 2015-10-12 Yao Qi <yao.qi@linaro.org>
10338 * linux-aarch64-low.c (struct aarch64_insn_data): New.
10339 (struct aarch64_insn_visitor): New.
10340 (struct aarch64_insn_relocation_data): New.
10341 (aarch64_ftrace_insn_reloc_b): New function.
10342 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
10343 (aarch64_ftrace_insn_reloc_cb): Likewise.
10344 (aarch64_ftrace_insn_reloc_tb): Likewise.
10345 (aarch64_ftrace_insn_reloc_adr): Likewise.
10346 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
10347 (aarch64_ftrace_insn_reloc_others): Likewise.
10349 (aarch64_relocate_instruction): Use visitor.
10351 2015-10-12 Yao Qi <yao.qi@linaro.org>
10353 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
10354 int. Add argument buf.
10355 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
10356 aarch64_relocate_instruction.
10358 2015-10-12 Yao Qi <yao.qi@linaro.org>
10360 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
10361 argument insn. Remove local variable insn. Don't call
10362 target_read_uint32.
10363 (aarch64_install_fast_tracepoint_jump_pad): Call
10364 target_read_uint32.
10366 2015-09-30 Yao Qi <yao.qi@linaro.org>
10368 * linux-aarch64-low.c (emit_movk): Shorten a long line.
10369 (emit_load_store_pair): Likewise.
10371 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10373 * dll.c (match_dll): Add cast(s).
10374 (unloaded_dll): Likewise.
10375 * linux-low.c (second_thread_of_pid_p): Likewise.
10376 (delete_lwp_callback): Likewise.
10377 (count_events_callback): Likewise.
10378 (select_event_lwp_callback): Likewise.
10379 (linux_set_resume_request): Likewise.
10380 * server.c (accumulate_file_name_length): Likewise.
10381 (emit_dll_description): Likewise.
10382 (handle_qxfer_threads_worker): Likewise.
10383 (visit_actioned_threads): Likewise.
10384 * thread-db.c (any_thread_of): Likewise.
10385 * tracepoint.c (same_process_p): Likewise.
10386 (match_blocktype): Likewise.
10387 (build_traceframe_info_xml): Likewise.
10389 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10391 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
10393 (gdb_unparse_agent_expr): Likewise.
10394 * hostio.c (require_data): Likewise.
10395 (handle_pread): Likewise.
10396 * linux-low.c (disable_regset): Likewise.
10397 (fetch_register): Likewise.
10398 (store_register): Likewise.
10399 (get_dynamic): Likewise.
10400 (linux_qxfer_libraries_svr4): Likewise.
10401 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
10402 (set_fast_tracepoint_jump): Likewise.
10403 (uninsert_fast_tracepoint_jumps_at): Likewise.
10404 (reinsert_fast_tracepoint_jumps_at): Likewise.
10405 (validate_inserted_breakpoint): Likewise.
10406 (clone_agent_expr): Likewise.
10407 * regcache.c (init_register_cache): Likewise.
10408 * remote-utils.c (putpkt_binary_1): Likewise.
10409 (decode_M_packet): Likewise.
10410 (decode_X_packet): Likewise.
10411 (look_up_one_symbol): Likewise.
10412 (relocate_instruction): Likewise.
10413 (monitor_output): Likewise.
10414 * server.c (handle_search_memory): Likewise.
10415 (handle_qxfer_exec_file): Likewise.
10416 (handle_qxfer_libraries): Likewise.
10417 (handle_qxfer): Likewise.
10418 (handle_query): Likewise.
10419 (handle_v_cont): Likewise.
10420 (handle_v_run): Likewise.
10421 (captured_main): Likewise.
10422 * target.c (write_inferior_memory): Likewise.
10423 * thread-db.c (try_thread_db_load_from_dir): Likewise.
10424 * tracepoint.c (init_trace_buffer): Likewise.
10425 (add_tracepoint_action): Likewise.
10426 (add_traceframe): Likewise.
10427 (add_traceframe_block): Likewise.
10428 (cmd_qtdpsrc): Likewise.
10429 (cmd_qtdv): Likewise.
10430 (cmd_qtstatus): Likewise.
10431 (response_source): Likewise.
10432 (response_tsv): Likewise.
10433 (cmd_qtnotes): Likewise.
10434 (gdb_collect): Likewise.
10435 (initialize_tracepoint): Likewise.
10437 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10439 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
10440 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
10441 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
10443 (enum aarch64_condition_codes): New enum.
10444 (w0): New static global.
10447 (struct aarch64_memory_operand) <type>: New
10448 MEMORY_OPERAND_POSTINDEX type.
10449 (postindex_memory_operand): New helper function.
10450 (emit_ret): New function.
10451 (emit_load_store_pair): New function, factored out of emit_stp
10452 with support for MEMORY_OPERAND_POSTINDEX.
10453 (emit_stp): Rewrite using emit_load_store_pair.
10454 (emit_ldp): New function.
10455 (emit_load_store): Likewise.
10456 (emit_ldr): Mention post-index instruction in comment.
10457 (emit_ldrh): New function.
10458 (emit_ldrb): New function.
10459 (emit_ldrsw): Mention post-index instruction in comment.
10460 (emit_str): Likewise.
10461 (emit_subs): New function.
10462 (emit_cmp): Likewise.
10463 (emit_and): Likewise.
10464 (emit_orr): Likewise.
10465 (emit_orn): Likewise.
10466 (emit_eor): Likewise.
10467 (emit_mvn): Likewise.
10468 (emit_lslv): Likewise.
10469 (emit_lsrv): Likewise.
10470 (emit_asrv): Likewise.
10471 (emit_mul): Likewise.
10472 (emit_sbfm): Likewise.
10473 (emit_sbfx): Likewise.
10474 (emit_ubfm): Likewise.
10475 (emit_ubfx): Likewise.
10476 (emit_csinc): Likewise.
10477 (emit_cset): Likewise.
10478 (emit_nop): Likewise.
10479 (emit_ops_insns): New helper function.
10480 (emit_pop): Likewise.
10481 (emit_push): Likewise.
10482 (aarch64_emit_prologue): New function.
10483 (aarch64_emit_epilogue): Likewise.
10484 (aarch64_emit_add): Likewise.
10485 (aarch64_emit_sub): Likewise.
10486 (aarch64_emit_mul): Likewise.
10487 (aarch64_emit_lsh): Likewise.
10488 (aarch64_emit_rsh_signed): Likewise.
10489 (aarch64_emit_rsh_unsigned): Likewise.
10490 (aarch64_emit_ext): Likewise.
10491 (aarch64_emit_log_not): Likewise.
10492 (aarch64_emit_bit_and): Likewise.
10493 (aarch64_emit_bit_or): Likewise.
10494 (aarch64_emit_bit_xor): Likewise.
10495 (aarch64_emit_bit_not): Likewise.
10496 (aarch64_emit_equal): Likewise.
10497 (aarch64_emit_less_signed): Likewise.
10498 (aarch64_emit_less_unsigned): Likewise.
10499 (aarch64_emit_ref): Likewise.
10500 (aarch64_emit_if_goto): Likewise.
10501 (aarch64_emit_goto): Likewise.
10502 (aarch64_write_goto_address): Likewise.
10503 (aarch64_emit_const): Likewise.
10504 (aarch64_emit_call): Likewise.
10505 (aarch64_emit_reg): Likewise.
10506 (aarch64_emit_pop): Likewise.
10507 (aarch64_emit_stack_flush): Likewise.
10508 (aarch64_emit_zero_ext): Likewise.
10509 (aarch64_emit_swap): Likewise.
10510 (aarch64_emit_stack_adjust): Likewise.
10511 (aarch64_emit_int_call_1): Likewise.
10512 (aarch64_emit_void_call_2): Likewise.
10513 (aarch64_emit_eq_goto): Likewise.
10514 (aarch64_emit_ne_goto): Likewise.
10515 (aarch64_emit_lt_goto): Likewise.
10516 (aarch64_emit_le_goto): Likewise.
10517 (aarch64_emit_gt_goto): Likewise.
10518 (aarch64_emit_ge_got): Likewise.
10519 (aarch64_emit_ops_impl): New static global variable.
10520 (aarch64_emit_ops): New target function, return
10521 &aarch64_emit_ops_impl.
10522 (struct linux_target_ops): Install it.
10524 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10526 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
10527 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
10529 * linux-aarch64-ipa.c: New file.
10530 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
10532 (aarch64_get_thread_area): New target method.
10533 (extract_signed_bitfield): New helper function.
10534 (aarch64_decode_ldr_literal): New function.
10535 (enum aarch64_opcodes): New enum.
10536 (struct aarch64_register): New struct.
10537 (struct aarch64_operand): New struct.
10538 (x0): New static global.
10547 (aarch64_register): New helper function.
10548 (register_operand): Likewise.
10549 (immediate_operand): Likewise.
10550 (struct aarch64_memory_operand): New struct.
10551 (offset_memory_operand): New helper function.
10552 (preindex_memory_operand): Likewise.
10553 (enum aarch64_system_control_registers): New enum.
10554 (ENCODE): New macro.
10555 (emit_insn): New helper function.
10556 (emit_b): New function.
10557 (emit_bcond): Likewise.
10558 (emit_cb): Likewise.
10559 (emit_tb): Likewise.
10560 (emit_blr): Likewise.
10561 (emit_stp): Likewise.
10562 (emit_ldp_q_offset): Likewise.
10563 (emit_stp_q_offset): Likewise.
10564 (emit_load_store): Likewise.
10565 (emit_ldr): Likewise.
10566 (emit_ldrsw): Likewise.
10567 (emit_str): Likewise.
10568 (emit_ldaxr): Likewise.
10569 (emit_stxr): Likewise.
10570 (emit_stlr): Likewise.
10571 (emit_data_processing_reg): Likewise.
10572 (emit_data_processing): Likewise.
10573 (emit_add): Likewise.
10574 (emit_sub): Likewise.
10575 (emit_mov): Likewise.
10576 (emit_movk): Likewise.
10577 (emit_mov_addr): Likewise.
10578 (emit_mrs): Likewise.
10579 (emit_msr): Likewise.
10580 (emit_sevl): Likewise.
10581 (emit_wfe): Likewise.
10582 (append_insns): Likewise.
10583 (can_encode_int32_in): New helper function.
10584 (aarch64_relocate_instruction): New function.
10585 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
10586 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
10587 (struct linux_target_ops): Install aarch64_get_thread_area,
10588 aarch64_install_fast_tracepoint_jump_pad and
10589 aarch64_get_min_fast_tracepoint_insn_len.
10591 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
10593 * Makefile.in (aarch64-insn.o): New rule.
10594 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
10596 2015-09-21 Yao Qi <yao.qi@linaro.org>
10598 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
10600 2015-09-21 Yao Qi <yao.qi@linaro.org>
10602 * tracepoint.c (max_jump_pad_size): Remove.
10604 2015-09-18 Yao Qi <yao.qi@linaro.org>
10606 * linux-aarch64-low.c: Don't include sys/uio.h.
10607 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
10609 2015-09-16 Wei-cheng Wang <cole945@gmail.com>
10611 * tracepoint.c (eval_result_type): Change prototype.
10612 (condition_true_at_tracepoint): Fix argument to compiled_cond.
10614 2015-09-15 Pedro Alves <palves@redhat.com>
10616 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
10617 Check whether to report exec events instead of checking whether
10618 multiprocess is enabled.
10620 2015-09-15 Pedro Alves <palves@redhat.com>
10623 * remote-utils.c (prepare_resume_reply): Merge
10624 TARGET_WAITKIND_VFORK_DONE switch case with the
10625 TARGET_WAITKIND_FORKED case.
10627 2015-09-15 Yao Qi <yao.qi@linaro.org>
10629 * server.c (handle_query): Check string comparison using
10630 "else if" instead of "if".
10632 2015-09-15 Yao Qi <yao.qi@linaro.org>
10634 * server.c (vCont_supported): New global variable.
10635 (handle_query): Set vCont_supported to 1 if "vContSupported+"
10636 matches. Append ";vContSupported+" to own_buf.
10637 (handle_v_requests): Append ";s;S" to own_buf if target supports
10638 hardware single step or vCont_supported is false.
10639 (capture_main): Set vCont_supported to zero.
10641 2015-09-15 Yao Qi <yao.qi@linaro.org>
10643 * linux-low.c (linux_supports_conditional_breakpoints): Rename
10645 (linux_supports_hardware_single_step): ... New function.
10646 (linux_target_ops): Update.
10647 * lynx-low.c (lynx_target_ops): Set field
10648 supports_hardware_single_step to target_can_do_hardware_single_step.
10649 * nto-low.c (nto_target_ops): Likewise.
10650 * spu-low.c (spu_target_ops): Likewise.
10651 * win32-low.c (win32_target_ops): Likewise.
10652 * target.c (target_can_do_hardware_single_step): New function.
10653 * target.h (struct target_ops) <supports_conditional_breakpoints>:
10654 Remove. <supports_hardware_single_step>: New field.
10655 (target_supports_conditional_breakpoints): Remove.
10656 (target_supports_hardware_single_step): New macro.
10657 (target_can_do_hardware_single_step): Declare.
10658 * server.c (handle_query): Use target_supports_hardware_single_step
10659 instead of target_supports_conditional_breakpoints.
10661 2015-09-15 Yao Qi <yao.qi@linaro.org>
10663 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
10665 (struct linux_target_ops the_low_target): Install
10666 aarch64_linux_siginfo_fixup.
10668 2015-09-11 Don Breazeal <donb@codesourcery.com>
10669 Luis Machado <lgustavo@codesourcery.com>
10671 * linux-low.c (linux_mourn): Static declaration.
10672 (linux_arch_setup): Move in front of
10673 handle_extended_wait.
10674 (linux_arch_setup_thread): New function.
10675 (handle_extended_wait): Handle exec events. Call
10676 linux_arch_setup_thread. Make event_lwp argument a
10677 pointer-to-a-pointer.
10678 (check_zombie_leaders): Do not check stopped threads.
10679 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
10680 (linux_low_filter_event): Add lwp and thread for exec'ing
10681 non-leader thread if leader thread has been deleted.
10682 Refactor code into linux_arch_setup_thread and call it.
10683 Pass child lwp pointer by reference to handle_extended_wait.
10684 (linux_wait_for_event_filtered): Update comment.
10685 (linux_wait_1): Prevent clobbering exec event status.
10686 (linux_supports_exec_events): New function.
10687 (linux_target_ops) <supports_exec_events>: Initialize new member.
10688 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
10690 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
10691 * server.c (report_exec_events): New global variable.
10692 (handle_query): Handle qSupported query for exec-events feature.
10693 (captured_main): Initialize report_exec_events.
10694 * server.h (report_exec_events): Declare new global variable.
10695 * target.h (struct target_ops) <supports_exec_events>: New
10697 (target_supports_exec_events): New macro.
10698 * win32-low.c (win32_target_ops) <supports_exec_events>:
10699 Initialize new member.
10701 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
10703 * linux-low.c (linux_low_enable_btrace): Remove.
10704 (linux_target_ops): Replace linux_low_enable_btrace with
10705 linux_enable_btrace.
10707 2015-09-03 Yao Qi <yao.qi@linaro.org>
10709 * linux-aarch64-low.c (aarch64_insert_point): Call
10710 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
10713 2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10715 * linux-low.c (check_stopped_by_breakpoint): Use
10716 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
10718 2015-08-27 Pedro Alves <palves@redhat.com>
10720 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
10722 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
10724 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
10725 the XNEW-family equivalent.
10726 (compile_bytecodes): Likewise.
10727 * dll.c (loaded_dll): Likewise.
10728 * event-loop.c (append_callback_event): Likewise.
10729 (create_file_handler): Likewise.
10730 (create_file_event): Likewise.
10731 * hostio.c (handle_open): Likewise.
10732 * inferiors.c (add_thread): Likewise.
10733 (add_process): Likewise.
10734 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
10735 * linux-arm-low.c (arm_new_process): Likewise.
10736 (arm_new_thread): Likewise.
10737 * linux-low.c (add_to_pid_list): Likewise.
10738 (linux_add_process): Likewise.
10739 (handle_extended_wait): Likewise.
10740 (add_lwp): Likewise.
10741 (enqueue_one_deferred_signal): Likewise.
10742 (enqueue_pending_signal): Likewise.
10743 (linux_resume_one_lwp_throw): Likewise.
10744 (linux_resume_one_thread): Likewise.
10745 (linux_read_memory): Likewise.
10746 (linux_write_memory): Likewise.
10747 * linux-mips-low.c (mips_linux_new_process): Likewise.
10748 (mips_linux_new_thread): Likewise.
10749 (mips_add_watchpoint): Likewise.
10750 * linux-x86-low.c (initialize_low_arch): Likewise.
10751 * lynx-low.c (lynx_add_process): Likewise.
10752 * mem-break.c (set_raw_breakpoint_at): Likewise.
10753 (set_breakpoint): Likewise.
10754 (add_condition_to_breakpoint): Likewise.
10755 (add_commands_to_breakpoint): Likewise.
10756 (clone_agent_expr): Likewise.
10757 (clone_one_breakpoint): Likewise.
10758 * regcache.c (new_register_cache): Likewise.
10759 * remote-utils.c (look_up_one_symbol): Likewise.
10760 * server.c (queue_stop_reply): Likewise.
10761 (start_inferior): Likewise.
10762 (queue_stop_reply_callback): Likewise.
10763 (handle_target_event): Likewise.
10764 * spu-low.c (fetch_ppc_memory): Likewise.
10765 (store_ppc_memory): Likewise.
10766 * target.c (set_target_ops): Likewise.
10767 * thread-db.c (thread_db_load_search): Likewise.
10768 (try_thread_db_load_1): Likewise.
10769 * tracepoint.c (add_tracepoint): Likewise.
10770 (add_tracepoint_action): Likewise.
10771 (create_trace_state_variable): Likewise.
10772 (cmd_qtdpsrc): Likewise.
10773 (cmd_qtro): Likewise.
10774 (add_while_stepping_state): Likewise.
10775 * win32-low.c (child_add_thread): Likewise.
10776 (get_image_name): Likewise.
10778 2015-08-25 Yao Qi <yao.qi@linaro.org>
10780 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
10782 2015-08-25 Yao Qi <yao.qi@linaro.org>
10784 * Makefile.in (aarch64-linux.o): New rule.
10785 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
10787 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
10788 (aarch64_init_debug_reg_state): Make it extern.
10789 (aarch64_linux_prepare_to_resume): Remove.
10791 2015-08-25 Yao Qi <yao.qi@linaro.org>
10793 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
10794 lwp_arch_private_info and ptid_of_lwp.
10796 2015-08-25 Yao Qi <yao.qi@linaro.org>
10798 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
10799 Find proc_info by find_process_pid. All callers updated.
10801 2015-08-25 Yao Qi <yao.qi@linaro.org>
10803 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
10805 (debug_reg_change_callback): Remove.
10806 (aarch64_notify_debug_reg_change): Remove.
10808 2015-08-25 Yao Qi <yao.qi@linaro.org>
10810 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
10811 Call current_lwp_ptid.
10813 2015-08-25 Yao Qi <yao.qi@linaro.org>
10815 * linux-aarch64-low.c (debug_reg_change_callback): Use
10818 2015-08-25 Yao Qi <yao.qi@linaro.org>
10820 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
10822 2015-08-25 Yao Qi <yao.qi@linaro.org>
10824 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
10826 2015-08-25 Yao Qi <yao.qi@linaro.org>
10828 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
10831 2015-08-25 Yao Qi <yao.qi@linaro.org>
10833 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
10835 (debug_reg_change_callback): Remove argument entry and add argument
10836 lwp. Remove local variable thread. Don't print thread id in the
10837 debugging output. Don't check whether pid of thread equals to pid.
10838 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
10839 iterate_over_lwps instead find_inferior.
10841 2015-08-24 Pedro Alves <palves@redhat.com>
10843 * inferiors.c (get_first_process): New function.
10844 * inferiors.h (get_first_process): New declaration.
10845 * remote-utils.c (read_ptid): Default to the first process in the
10846 list, instead of to the current thread's process.
10848 2015-08-24 Pedro Alves <palves@redhat.com>
10850 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
10851 * event-loop.c: Likewise.
10852 * remote-utils.c: Likewise.
10853 * tracepoint.c: Likewise.
10855 2015-08-24 Pedro Alves <palves@redhat.com>
10857 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
10860 2015-08-21 Pedro Alves <palves@redhat.com>
10862 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
10863 instead of literal 1.
10865 2015-08-21 Pedro Alves <palves@redhat.com>
10867 * tdesc.c (default_description): Explicitly zero-initialize.
10869 2015-08-21 Pedro Alves <palves@redhat.com>
10872 * inferiors.c (remove_thread): Discard any pending stop reply for
10874 * server.c (remove_all_on_match_pid): Rename to ...
10875 (remove_all_on_match_ptid): ... this. Work with a filter ptid
10877 (discard_queued_stop_replies): Change parameter to a ptid. Now
10879 (handle_v_kill, kill_inferior_callback, captured_main)
10880 (process_serial_event): Adjust.
10881 * server.h (discard_queued_stop_replies): Declare.
10883 2015-08-21 Pedro Alves <palves@redhat.com>
10885 * linux-low.c (wait_for_sigstop): Always switch to no thread
10886 selected if the previously current thread dies.
10887 * lynx-low.c (lynx_request_interrupt): Use the first thread's
10888 process instead of the current thread's.
10889 * remote-utils.c (input_interrupt): Don't check if there's no
10891 * server.c (gdb_read_memory, gdb_write_memory): If setting the
10892 current thread to the general thread fails, error out.
10893 (handle_qxfer_auxv, handle_qxfer_libraries)
10894 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
10895 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
10896 (handle_query): Check if there's a thread selected instead of
10897 checking whether there's any thread in the thread list.
10898 (handle_qxfer_threads, handle_qxfer_btrace)
10899 (handle_qxfer_btrace_conf): Don't error out early if there's no
10900 thread in the thread list.
10901 (handle_v_cont, myresume): Don't set the current thread to the
10903 (process_serial_event) <Hg handling>: Also set thread_id if the
10904 previous general thread is still alive.
10905 (process_serial_event) <g/G handling>: If setting the current
10906 thread to the general thread fails, error out.
10907 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
10908 thread's lwp instead of the current thread's.
10909 * target.c (set_desired_thread): If the desired thread was not
10910 found, leave the current thread pointing to NULL. Return an int
10911 (boolean) indicating success.
10912 * target.h (set_desired_thread): Change return type to int.
10914 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
10916 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
10917 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
10919 (ps_get_thread_area): New function.
10921 2015-08-19 Gary Benson <gbenson@redhat.com>
10923 * hostio.c (handle_pread): Do not attempt to read more data
10924 than hostio_reply_with_data can fit in a packet.
10926 2015-08-18 Joel Brobecker <brobecker@adacore.com>
10928 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
10930 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
10932 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
10934 2015-08-06 Pedro Alves <palves@redhat.com>
10936 * tracepoint.c (expr_eval_result): Now an int.
10938 2015-08-06 Pedro Alves <palves@redhat.com>
10940 * gdbthread.h (struct regcache): Forward declare.
10941 (struct thread_info) <regcache_data>: Now a struct regcache
10943 * inferiors.c (inferior_regcache_data)
10944 (set_inferior_regcache_data): Now work with struct regcache
10946 * inferiors.h (struct regcache): Forward declare.
10947 (inferior_regcache_data, set_inferior_regcache_data): Now work
10948 with struct regcache pointers.
10949 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
10950 (free_register_cache_thread): Remove struct regcache pointer
10953 2015-08-06 Pedro Alves <palves@redhat.com>
10955 * server.c (captured_main): On error, print the exception message
10956 to stderr, and if run_once is set, throw a quit.
10958 2015-08-06 Pedro Alves <palves@redhat.com>
10960 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
10961 the current thread.
10963 2015-08-06 Pedro Alves <palves@redhat.com>
10965 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
10966 reading beyond the passed in buffer length.
10968 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
10970 * tracepoint.c (symbol_list) <required>: Remove.
10972 2015-08-06 Pedro Alves <palves@redhat.com>
10974 * linux-low.c (handle_extended_wait): Set the fork child's suspend
10975 count if stopping and suspending threads.
10976 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
10977 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
10978 (linux_detach): Complete an ongoing step-over.
10979 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
10981 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
10982 (linux_wait_1): If passing a signal to the inferior after
10983 finishing a step-over, unsuspend and re-resume all lwps. If we
10984 see a single-step event but the thread should be continuing, don't
10985 pass the trap to gdb.
10986 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
10987 internal_error instead of gdb_assert.
10988 (enqueue_pending_signal): New function.
10989 (check_ptrace_stopped_lwp_gone): Add debug output.
10990 (start_step_over): Use internal_error instead of gdb_assert.
10991 (complete_ongoing_step_over): New function.
10992 (linux_resume_one_thread): Don't resume a suspended thread.
10993 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
10996 2015-08-06 Pedro Alves <palves@redhat.com>
10998 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
10999 (linux_thread_alive): Use lwp_is_marked_dead.
11000 (extended_event_reported): Delete.
11001 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
11002 instead of extended_event_reported.
11003 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
11005 (lwp_is_marked_dead): New function.
11006 (lwp_running): Use lwp_is_marked_dead.
11007 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
11010 2015-08-06 Pedro Alves <palves@redhat.com>
11012 * linux-low.c (linux_wait_1): Move fork event output out of the
11013 !report_to_gdb check. Pass event_child->waitstatus to
11014 target_waitstatus_to_string instead of ourstatus.
11016 2015-08-04 Yao Qi <yao.qi@linaro.org>
11018 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
11019 if current_thread is 32 bit.
11021 2015-08-04 Yao Qi <yao.qi@linaro.org>
11023 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
11024 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
11025 * server.c (extended_protocol): Remove "static".
11026 * server.h (extended_protocol): Declare it.
11028 2015-08-04 Yao Qi <yao.qi@linaro.org>
11030 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
11031 both aarch64 and aarch32.
11032 (aarch64_set_pc): Likewise.
11034 2015-08-04 Yao Qi <yao.qi@linaro.org>
11036 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
11037 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
11038 arm-with-neon.xml to srv_xmlfiles.
11039 * linux-aarch64-low.c: Include linux-aarch32-low.h.
11040 (is_64bit_tdesc): New function.
11041 (aarch64_linux_read_description): New function.
11042 (aarch64_arch_setup): Call aarch64_linux_read_description.
11043 (regs_info): Rename to regs_info_aarch64.
11044 (aarch64_regs_info): Return right regs_info.
11045 (initialize_low_arch): Call initialize_low_arch_aarch32.
11047 2015-08-04 Yao Qi <yao.qi@linaro.org>
11049 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
11050 * linux-aarch32-low.c: New file.
11051 * linux-aarch32-low.h: New file.
11052 * linux-arm-low.c (arm_fill_gregset): Move it to
11053 linux-aarch32-low.c.
11054 (arm_store_gregset): Likewise.
11055 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
11056 (arm_store_vfpregset): Call arm_store_vfpregset_num.
11057 (arm_arch_setup): Check if PTRACE_GETREGSET works.
11058 (regs_info): Rename to regs_info_arm.
11059 (arm_regs_info): Return regs_info_aarch32 if
11060 have_ptrace_getregset is 1 and target description is
11061 arm_with_neon or arm_with_vfpv3.
11062 (initialize_low_arch): Don't call init_registers_arm_with_neon.
11063 Call initialize_low_arch_aarch32 instead.
11065 2015-08-04 Yao Qi <yao.qi@linaro.org>
11067 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
11068 * linux-low.c: ... here.
11069 * linux-low.h (have_ptrace_getregset): Declare it.
11071 2015-08-04 Pedro Alves <palves@redhat.com>
11073 * thread-db.c (struct thread_db): Use new typedefs.
11074 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
11076 (disable_thread_event_reporting): Cast result of dlsym to
11077 destination function pointer type.
11078 (thread_db_mourn): Use td_ta_delete_ftype.
11080 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
11082 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
11084 (CDX_BREAKPOINT): Define for R2.
11085 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
11086 (the_low_target): Add comments.
11088 2015-07-30 Yao Qi <yao.qi@linaro.org>
11090 * linux-arm-low.c (arm_hwcap): Remove it.
11091 (arm_read_description): New local variable arm_hwcap. Don't
11092 set arm_hwcap to zero.
11094 2015-07-30 Yao Qi <yao.qi@linaro.org>
11096 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
11097 Use regcache->tdesc instead.
11098 (arm_store_wmmxregset): Likewise.
11099 (arm_fill_vfpregset): Likewise.
11100 (arm_store_vfpregset): Likewise.
11102 2015-07-30 Yao Qi <yao.qi@linaro.org>
11104 * linux-arm-low.c: Include arch/arm.h.
11105 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
11106 (arm_store_gregset): Likewise.
11108 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
11110 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
11111 ptrace's 4th parameter.
11113 2015-07-27 Yao Qi <yao.qi@linaro.org>
11115 * configure.srv (case aarch64*-*-linux*): Don't set
11118 2015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
11120 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
11122 * linux-arm-low.c: Likewise.
11123 * linux-cris-low.c: Likewise.
11124 * linux-crisv32-low.c: Likewise.
11125 * linux-low.c: Likewise.
11126 * linux-m68k-low.c: Likewise.
11127 * linux-mips-low.c: Likewise.
11128 * linux-nios2-low.c: Likewise.
11129 * linux-s390-low.c: Likewise.
11130 * linux-sparc-low.c: Likewise.
11131 * linux-tic6x-low.c: Likewise.
11132 * linux-tile-low.c: Likewise.
11133 * linux-x86-low.c: Likewise.
11135 2015-07-24 Pedro Alves <palves@redhat.com>
11137 * config.in: Regenerate.
11138 * configure: Regenerate.
11140 2015-07-24 Pedro Alves <palves@redhat.com>
11142 * acinclude.m4: Include ../ptrace.m4.
11143 * configure.ac: Call GDB_AC_PTRACE.
11144 * config.in, configure: Regenerate.
11146 2015-07-24 Yao Qi <yao.qi@linaro.org>
11148 * linux-low.c (linux_create_inferior): Remove setting to
11149 proc->priv->new_inferior.
11150 (linux_attach): Likewise.
11151 (linux_low_filter_event): Likewise.
11152 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
11154 2015-07-24 Yao Qi <yao.qi@linaro.org>
11156 * linux-low.c (linux_arch_setup): New function.
11157 (linux_low_filter_event): If proc->tdesc is NULL and
11158 proc->attached is true, call the_low_target.arch_setup.
11159 Otherwise, keep status pending, and return.
11160 (linux_resume_one_lwp_throw): Don't call get_pc if
11161 thread->while_stepping isn't NULL. Don't call
11162 get_thread_regcache if proc->tdesc is NULL.
11163 (need_step_over_p): Return 0 if proc->tdesc is NULL.
11164 (linux_target_ops): Install arch_setup.
11165 * server.c (start_inferior): Call the_target->arch_setup.
11166 * target.h (struct target_ops) <arch_setup>: New field.
11167 (target_arch_setup): New marco.
11168 * lynx-low.c (lynx_target_ops): Update.
11169 * nto-low.c (nto_target_ops): Update.
11170 * spu-low.c (spu_target_ops): Update.
11171 * win32-low.c (win32_target_ops): Update.
11173 2015-07-24 Yao Qi <yao.qi@linaro.org>
11175 * linux-low.c (linux_add_process): Don't set
11176 proc->priv->new_inferior.
11177 (linux_create_inferior): Set proc->priv->new_inferior to 1.
11178 (linux_attach): Likewise.
11180 2015-07-24 Yao Qi <yao.qi@linaro.org>
11182 * server.c (start_inferior): Code refactor.
11184 2015-07-24 Yao Qi <yao.qi@linaro.org>
11186 * server.c (process_serial_event): Set general_thread.
11188 2015-07-21 Yao Qi <yao.qi@linaro.org>
11190 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
11191 aarch64_linux_get_debug_reg_capacity.
11193 2015-07-17 Yao Qi <yao.qi@linaro.org>
11195 * Makefile.in (aarch64-linux-hw-point.o): New rule.
11196 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
11197 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
11198 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
11199 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
11200 (AARCH64_HWP_ALIGNMENT): Likewise.
11201 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
11202 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
11203 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
11204 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
11205 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
11206 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
11207 (struct aarch64_debug_reg_state): Likewise.
11208 (struct arch_lwp_info): Likewise.
11209 (aarch64_align_watchpoint): Likewise.
11210 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
11211 (aarch64_watchpoint_length): Likewise.
11212 (aarch64_point_encode_ctrl_reg): Likewise
11213 (aarch64_point_is_aligned): Likewise.
11214 (aarch64_align_watchpoint): Likewise.
11215 (aarch64_linux_set_debug_regs):
11216 (aarch64_dr_state_insert_one_point): Likewise.
11217 (aarch64_dr_state_remove_one_point): Likewise.
11218 (aarch64_handle_breakpoint): Likewise.
11219 (aarch64_handle_aligned_watchpoint): Likewise.
11220 (aarch64_handle_unaligned_watchpoint): Likewise.
11221 (aarch64_handle_watchpoint): Likewise.
11223 2015-07-17 Yao Qi <yao.qi@linaro.org>
11225 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
11226 and don't aarch64_get_debug_reg_state. All callers update.
11227 (aarch64_handle_aligned_watchpoint): Likewise.
11228 (aarch64_handle_unaligned_watchpoint): Likewise.
11229 (aarch64_handle_watchpoint): Likewise.
11230 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
11231 (aarch64_remove_point): Likewise.
11233 2015-07-17 Yao Qi <yao.qi@linaro.org>
11235 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
11237 (aarch64_handle_unaligned_watchpoint): Likewise.
11239 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11241 Revert the previous 3 commits:
11242 Move gdb_regex* to common/
11243 Move linux_find_memory_regions_full & co.
11244 gdbserver build-id attribute generator
11246 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11247 Jan Kratochvil <jan.kratochvil@redhat.com>
11249 gdbserver build-id attribute generator.
11250 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
11251 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
11252 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
11254 (get_dynamic): Use find_pdhr to traverse program headers.
11255 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
11256 (compare_mapping_entry_range, struct find_memory_region_callback_data)
11257 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
11258 (get_hex_build_id): New.
11259 (linux_qxfer_libraries_svr4): Add optional build-id attribute
11260 to reply XML document.
11262 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11263 Jan Kratochvil <jan.kratochvil@redhat.com>
11265 * target.c: Include target/target-utils.h and fcntl.h.
11266 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
11267 (target_fileio_read_stralloc): New functions.
11269 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
11271 * Makefile.in (OBS): Add gdb_regex.o.
11272 (gdb_regex.o): New.
11273 * config.in: Rebuilt.
11274 * configure: Rebuilt.
11276 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
11277 Jan Kratochvil <jan.kratochvil@redhat.com>
11279 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
11280 * Makefile.in (OBS): Add target-utils.o.
11281 (linux-maps.o, target-utils.o): New.
11282 * configure.srv (srv_linux_obj): Add linux-maps.o.
11284 2015-07-15 Pierre Langlois <pierre.langlois@arm.com>
11286 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
11287 function, return 1.
11288 (the_low_target): Install it.
11290 2015-07-14 Pedro Alves <palves@redhat.com>
11292 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
11293 Instead, ignore ECHILD, and throw an error for other errnos.
11295 2015-07-10 Pedro Alves <palves@redhat.com>
11297 * event-loop.c (struct callback_event) <data>: Change type to
11298 gdb_client_data instance instead of gdb_client_data pointer.
11299 (append_callback_event): Adjust.
11301 2015-07-10 Pierre Langlois <pierre.langlois@arm.com>
11303 * linux-aarch64-low.c: Add comments for each linux_target_ops
11304 method. Remove comments already covered in target_ops and
11305 linux_target_ops definitions.
11306 (the_low_target): Add comments for each unimplemented method.
11308 2015-07-09 Yao Qi <yao.qi@linaro.org>
11310 * linux-aarch64-low.c (aarch64_regmap): Remove.
11311 (aarch64_usrregs_info): Remove.
11312 (regs_info): Set field usrregs to NULL.
11314 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
11316 * linux-low.c: Include "rsp-low.h"
11317 (linux_low_encode_pt_config, linux_low_encode_raw): New.
11318 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
11319 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
11320 (handle_btrace_enable_pt): New.
11321 (handle_btrace_general_set): Support "pt".
11322 (handle_btrace_conf_general_set): Support "pt:size".
11324 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11326 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
11329 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
11331 * linux-aarch64-low.c: Remove comment about endianness.
11332 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
11333 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
11336 2015-06-24 Gary Benson <gbenson@redhat.com>
11338 * linux-i386-ipa.c (stdint.h): Do not include.
11339 * lynx-i386-low.c (stdint.h): Likewise.
11340 * lynx-ppc-low.c (stdint.h): Likewise.
11341 * mem-break.c (stdint.h): Likewise.
11342 * thread-db.c (stdint.h): Likewise.
11343 * tracepoint.c (stdint.h): Likewise.
11344 * win32-low.c (stdint.h): Likewise.
11346 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
11348 * server.c (write_qxfer_response): Update call to
11349 remote_escape_output.
11351 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
11352 Jan Kratochvil <jan.kratochvil@redhat.com>
11354 Merge multiple hex conversions.
11355 * gdbreplay.c (tohex): Rename to 'fromhex'.
11356 (logchar): Use fromhex.
11358 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11360 * server.c (handle_qxfer_libraries): Set `version' attribute for
11363 2015-06-10 Gary Benson <gbenson@redhat.com>
11365 * target.h (struct target_ops) <multifs_open>: New field.
11366 <multifs_unlink>: Likewise.
11367 <multifs_readlink>: Likewise.
11368 * linux-low.c (nat/linux-namespaces.h): New include.
11369 (linux_target_ops): Initialize the_target->multifs_open,
11370 the_target->multifs_unlink and the_target->multifs_readlink.
11371 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
11372 * hostio.c (hostio_fs_pid): New static variable.
11373 (hostio_handle_new_gdb_connection): New function.
11374 (handle_setfs): Likewise.
11375 (handle_open): Use the_target->multifs_open as appropriate.
11376 (handle_unlink): Use the_target->multifs_unlink as appropriate.
11377 (handle_readlink): Use the_target->multifs_readlink as
11379 (handle_vFile): Handle vFile:setfs packets.
11380 * server.c (handle_query): Call hostio_handle_new_gdb_connection
11381 after target_handle_new_gdb_connection.
11383 2015-06-10 Gary Benson <gbenson@redhat.com>
11385 * configure.ac (AC_CHECK_FUNCS): Add setns.
11386 * config.in: Regenerate.
11387 * configure: Likewise.
11388 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
11389 (linux-namespaces.o): New rule.
11390 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
11392 2015-06-09 Gary Benson <gbenson@redhat.com>
11394 * hostio.c (handle_open): Process mode argument with
11395 fileio_to_host_mode.
11397 2015-06-01 Yao Qi <yao.qi@linaro.org>
11399 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
11400 * linux-x86-low.c: Likewise.
11402 2015-05-28 Don Breazeal <donb@codesourcery.com>
11404 * linux-low.c (handle_extended_wait): Initialize
11405 thread_info.last_resume_kind for new fork children.
11407 2015-05-15 Pedro Alves <palves@redhat.com>
11409 * target.h (target_handle_new_gdb_connection): Rewrite using if
11410 wrapped in do/while.
11412 2015-05-14 Joel Brobecker <brobecker@adacore.com>
11414 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
11415 * configure, config.in: Regenerate.
11416 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
11419 2015-05-12 Don Breazeal <donb@codesourcery.com>
11421 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
11422 PTRACE_EVENT_VFORK_DONE.
11423 (linux_low_ptrace_options, extended_event_reported): Add vfork
11425 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
11426 and "vforkdone" for RSP 'T' Stop Reply Packet.
11427 * server.h (report_vfork_events): Declare
11430 2015-05-12 Don Breazeal <donb@codesourcery.com>
11432 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
11433 (the_low_target) <new_fork>: Initialize new member.
11434 * linux-arm-low.c (arm_new_fork): New function.
11435 (the_low_target) <new_fork>: Initialize new member.
11436 * linux-low.c (handle_extended_wait): Call new target function
11438 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
11439 * linux-mips-low.c (mips_add_watchpoint): New function
11440 extracted from mips_insert_point.
11441 (the_low_target) <new_fork>: Initialize new member.
11442 (mips_linux_new_fork): New function.
11443 (mips_insert_point): Call mips_add_watchpoint.
11444 * linux-x86-low.c (x86_linux_new_fork): New function.
11445 (the_low_target) <new_fork>: Initialize new member.
11447 2015-05-12 Don Breazeal <donb@codesourcery.com>
11449 * linux-low.c (handle_extended_wait): Implement return value,
11450 rename argument 'event_child' to 'event_lwp', handle
11451 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
11452 (linux_low_ptrace_options): New function.
11453 (linux_low_filter_event): Call linux_low_ptrace_options,
11454 use different argument fo linux_enable_event_reporting,
11455 use return value from handle_extended_wait.
11456 (extended_event_reported): New function.
11457 (linux_wait_1): Call extended_event_reported and set
11458 status to report fork events.
11459 (linux_write_memory): Add pid to debug message.
11460 (reset_lwp_ptrace_options_callback): New function.
11461 (linux_handle_new_gdb_connection): New function.
11462 (linux_target_ops): Initialize new structure member.
11463 * linux-low.h (struct lwp_info) <waitstatus>: New member.
11464 * lynx-low.c: Initialize new structure member.
11465 * remote-utils.c (prepare_resume_reply): Implement stop reason
11466 "fork" for "T" stop message.
11467 * server.c (handle_query): Call handle_new_gdb_connection.
11468 * server.h (report_fork_events): Declare global flag.
11469 * target.h (struct target_ops) <handle_new_gdb_connection>:
11471 (target_handle_new_gdb_connection): New macro.
11472 * win32-low.c: Initialize new structure member.
11474 2015-05-12 Don Breazeal <donb@codesourcery.com>
11476 * mem-break.c (APPEND_TO_LIST): Define macro.
11477 (clone_agent_expr): New function.
11478 (clone_one_breakpoint): New function.
11479 (clone_all_breakpoints): New function.
11480 * mem-break.h: Declare new functions.
11482 2015-05-12 Don Breazeal <donb@codesourcery.com>
11484 * linux-low.c (linux_supports_fork_events): New function.
11485 (linux_supports_vfork_events): New function.
11486 (linux_target_ops): Initialize new structure members.
11487 (initialize_low): Call linux_check_ptrace_features.
11488 * lynx-low.c (lynx_target_ops): Initialize new structure
11490 * server.c (report_fork_events, report_vfork_events):
11492 (handle_query): Add new features to qSupported packet and
11494 (captured_main): Initialize new global variables.
11495 * target.h (struct target_ops) <supports_fork_events>:
11497 <supports_vfork_events>: New member.
11498 (target_supports_fork_events): New macro.
11499 (target_supports_vfork_events): New macro.
11500 * win32-low.c (win32_target_ops): Initialize new structure
11503 2015-05-12 Gary Benson <gbenson@redhat.com>
11505 * server.c (handle_qxfer_exec_file): Use current process
11508 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
11510 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
11511 Remove HAVE_PTRACE_GETREGS conditionals.
11512 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
11513 instead of PTRACE_GETREGS and PTRACE_SETREGS.
11515 2015-05-08 Yao Qi <yao.qi@linaro.org>
11517 * linux-low.c (linux_supports_conditional_breakpoints): New
11519 (linux_target_ops): Install new target method.
11520 * lynx-low.c (lynx_target_ops): Install NULL hook for
11521 supports_conditional_breakpoints.
11522 * nto-low.c (nto_target_ops): Likewise.
11523 * spu-low.c (spu_target_ops): Likewise.
11524 * win32-low.c (win32_target_ops): Likewise.
11525 * server.c (handle_query): Check
11526 target_supports_conditional_breakpoints.
11527 * target.h (struct target_ops) <supports_conditional_breakpoints>:
11529 (target_supports_conditional_breakpoints): New macro.
11531 2015-05-06 Pedro Alves <palves@redhat.com>
11534 * server.c (start_inferior): If the process exits, mourn it.
11536 2015-04-21 Gary Benson <gbenson@redhat.com>
11538 * hostio.c (fileio_open_flags_to_host): Factored out to
11539 fileio_to_host_openflags in common/fileio.c. Single use
11542 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11544 * linux-xtensa-low.c (xtensa_fill_gregset)
11545 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
11548 2015-04-17 Max Filippov <jcmvbkbc@gmail.com>
11550 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
11551 (regs_info): Replace usrregs pointer with NULL.
11553 2015-04-17 Gary Benson <gbenson@redhat.com>
11555 * target.h (struct target_ops) <pid_to_exec_file>: New field.
11556 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
11557 * server.c (handle_qxfer_exec_file): New function.
11558 (qxfer_packets): Add exec-file entry.
11559 (handle_query): Report qXfer:exec-file:read as supported packet.
11561 2015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
11563 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
11565 2015-04-09 Gary Benson <gbenson@redhat.com>
11567 * hostio-errno.c (errno_to_fileio_error): Remove function.
11568 Update caller to use remote_fileio_to_fio_error.
11570 2015-04-09 Yao Qi <yao.qi@linaro.org>
11572 * linux-low.c (linux_insert_point): Call
11573 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
11574 (linux_remove_point): Call remove_memory_breakpoint if type is
11576 * linux-x86-low.c (x86_insert_point): Don't call
11577 insert_memory_breakpoint.
11578 (x86_remove_point): Don't call remove_memory_breakpoint.
11580 2015-04-01 Pedro Alves <palves@redhat.com>
11581 Cleber Rosa <crosa@redhat.com>
11583 * server.c (gdbserver_usage): Reorganize and extend the usage
11586 2015-03-24 Pedro Alves <palves@redhat.com>
11588 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
11589 output. Also dump TRAP_TRACE.
11590 (linux_low_filter_event): In debug output, distinguish a
11591 resume_stop SIGSTOP from a delayed SIGSTOP.
11593 2015-03-24 Gary Benson <gbenson@redhat.com>
11595 * linux-x86-low.c (x86_linux_new_thread): Moved to
11597 (x86_linux_prepare_to_resume): Likewise.
11599 2015-03-24 Gary Benson <gbenson@redhat.com>
11601 * Makefile.in (x86-linux-dregs.o): New rule.
11602 * configure.srv: Add x86-linux-dregs.o to relevant targets.
11603 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
11604 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
11605 (x86_linux_dr_get): Likewise.
11606 (x86_linux_dr_set): Likewise.
11607 (update_debug_registers_callback): Likewise.
11608 (x86_linux_dr_set_addr): Likewise.
11609 (x86_linux_dr_get_addr): Likewise.
11610 (x86_linux_dr_set_control): Likewise.
11611 (x86_linux_dr_get_control): Likewise.
11612 (x86_linux_dr_get_status): Likewise.
11613 (x86_linux_update_debug_registers): Likewise.
11615 2015-03-24 Gary Benson <gbenson@redhat.com>
11617 * linux-x86-low.c (x86_linux_update_debug_registers):
11618 New function, factored out from...
11619 (x86_linux_prepare_to_resume): ...this.
11621 2015-03-24 Gary Benson <gbenson@redhat.com>
11623 * linux-x86-low.c (x86_linux_dr_get): Update comments.
11624 (x86_linux_dr_set): Likewise.
11625 (update_debug_registers_callback): Likewise.
11626 (x86_linux_dr_set_addr): Likewise.
11627 (x86_linux_dr_get_addr): Likewise.
11628 (x86_linux_dr_set_control): Likewise.
11629 (x86_linux_dr_get_control): Likewise.
11630 (x86_linux_dr_get_status): Likewise.
11631 (x86_linux_prepare_to_resume): Likewise.
11633 2015-03-24 Gary Benson <gbenson@redhat.com>
11635 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
11636 Use perror_with_name. Pass string through gettext.
11637 (x86_linux_dr_set): Likewise.
11639 2015-03-24 Gary Benson <gbenson@redhat.com>
11641 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
11642 (x86_linux_dr_set_addr): ...this.
11643 (x86_dr_low_get_addr): Rename to...
11644 (x86_linux_dr_get_addr): ...this.
11645 (x86_dr_low_set_control): Rename to...
11646 (x86_linux_dr_set_control): ...this.
11647 (x86_dr_low_get_control): Rename to...
11648 (x86_linux_dr_get_control): ...this.
11649 (x86_dr_low_get_status): Rename to...
11650 (x86_linux_dr_get_status): ...this.
11651 (x86_dr_low): Update with new function names.
11653 2015-03-24 Gary Benson <gbenson@redhat.com>
11655 * Makefile.in (x86-linux.o): New rule.
11656 * configure.srv: Add x86-linux.o to relevant targets.
11657 * linux-low.c (lwp_set_arch_private_info): New function.
11658 (lwp_arch_private_info): Likewise.
11659 * linux-x86-low.c: Include nat/x86-linux.h.
11660 (arch_lwp_info): Removed structure.
11661 (update_debug_registers_callback):
11662 Use lwp_set_debug_registers_changed.
11663 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
11664 and lwp_set_debug_registers_changed.
11665 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
11667 2015-03-24 Gary Benson <gbenson@redhat.com>
11669 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
11670 * linux-arm-low.c (arm_new_thread): Likewise.
11671 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
11672 * linux-mips-low.c (mips_linux_new_thread): Likewise.
11673 * linux-x86-low.c (x86_linux_new_thread): Likewise.
11674 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
11676 2015-03-24 Gary Benson <gbenson@redhat.com>
11678 * linux-low.c (ptid_of_lwp): New function.
11679 (lwp_is_stopped): Likewise.
11680 (lwp_stop_reason): Likewise.
11681 * linux-x86-low.c (update_debug_registers_callback):
11682 Use lwp_is_stopped.
11683 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
11686 2015-03-24 Gary Benson <gbenson@redhat.com>
11688 * linux-low.h (linux_stop_lwp): Remove declaration.
11690 2015-03-24 Gary Benson <gbenson@redhat.com>
11692 * linux-low.h: Include nat/linux-nat.h.
11693 * linux-low.c (iterate_over_lwps_args): New structure.
11694 (iterate_over_lwps_filter): New function.
11695 (iterate_over_lwps): Likewise.
11696 * linux-x86-low.c (update_debug_registers_callback):
11697 Update signature to what iterate_over_lwps expects.
11698 Remove PID check that iterate_over_lwps now performs.
11699 (x86_dr_low_set_addr): Use iterate_over_lwps.
11700 (x86_dr_low_set_control): Likewise.
11702 2015-03-24 Gary Benson <gbenson@redhat.com>
11704 * linux-x86-low.c (x86_debug_reg_state): New function.
11705 (x86_linux_prepare_to_resume): Use the above.
11707 2015-03-24 Gary Benson <gbenson@redhat.com>
11709 * linux-low.c (current_lwp_ptid): New function.
11710 * linux-x86-low.c: Include nat/linux-nat.h.
11711 (x86_dr_low_get_addr): Use current_lwp_ptid.
11712 (x86_dr_low_get_control): Likewise.
11713 (x86_dr_low_get_status): Likewise.
11715 2015-03-20 Pedro Alves <palves@redhat.com>
11717 * tracepoint.c (cmd_qtstatus): Make "str" const.
11719 2015-03-20 Pedro Alves <palves@redhat.com>
11721 * server.c (handle_general_set): Make "req_str" const.
11723 2015-03-19 Pedro Alves <palves@redhat.com>
11725 * linux-low.c (linux_resume_one_lwp): Rename to ...
11726 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
11727 instead call perror_with_name.
11728 (check_ptrace_stopped_lwp_gone): New function.
11729 (linux_resume_one_lwp): Reimplement as wrapper around
11730 linux_resume_one_lwp_throw that swallows errors if the LWP is
11733 2015-03-19 Pedro Alves <palves@redhat.com>
11735 * linux-low.c (count_events_callback, select_event_lwp_callback):
11736 No longer check whether the thread has resume_stop as last resume
11739 2015-03-19 Pedro Alves <palves@redhat.com>
11741 * linux-low.c (count_events_callback, select_event_lwp_callback):
11742 Use the lwp's status_pending_p field, not the thread's.
11744 2015-03-19 Pedro Alves <palves@redhat.com>
11746 * linux-low.c (select_event_lwp_callback): Update comments to
11747 no longer mention SIGTRAP.
11749 2015-03-18 Gary Benson <gbenson@redhat.com>
11751 * server.c (handle_query): Do not report vFile:fstat as supported.
11753 2015-03-11 Gary Benson <gbenson@redhat.com>
11755 * hostio.c (sys/types.h): New include.
11756 (sys/stat.h): Likewise.
11757 (common-remote-fileio.h): Likewise.
11758 (handle_fstat): New function.
11759 (handle_vFile): Handle vFile:fstat packets.
11761 2015-03-11 Gary Benson <gbenson@redhat.com>
11763 * configure.ac (AC_CHECK_MEMBERS): Add checks for
11764 struct stat.st_blocks and struct stat.st_blksize.
11765 * configure: Regenerate.
11766 * config.in: Likewise.
11767 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
11768 (OBS): Add common-remote-fileio.o.
11769 (common-remote-fileio.o): New rule.
11771 2015-03-09 Pedro Alves <palves@redhat.com>
11773 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
11774 'struct sockaddr' pointer in 'accept' call.
11776 2015-03-09 Pedro Alves <palves@redhat.com>
11779 2015-03-07 Pedro Alves <palves@redhat.com>
11780 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11781 or <winsock2.h> here. Instead include "gdb_socket.h".
11782 (remote_open): Use union gdb_sockaddr_u.
11783 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11784 or <winsock2.h> here. Instead include "gdb_socket.h".
11785 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11786 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11788 (init_named_socket, gdb_agent_helper_thread): Use union
11791 2015-03-07 Pedro Alves <palves@redhat.com>
11793 * configure.ac (build_warnings): Move
11794 -Wdeclaration-after-statement to the C-specific set.
11795 * configure: Regenerate.
11797 2015-03-07 Pedro Alves <palves@redhat.com>
11799 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
11800 or <winsock2.h> here. Instead include "gdb_socket.h".
11801 (remote_open): Use union gdb_sockaddr_u.
11802 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
11803 or <winsock2.h> here. Instead include "gdb_socket.h".
11804 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
11805 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
11807 (init_named_socket, gdb_agent_helper_thread): Use union
11810 2015-03-07 Pedro Alves <palves@redhat.com>
11812 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
11815 2015-03-06 Yao Qi <yao.qi@linaro.org>
11817 * linux-aarch64-low.c (aarch64_insert_point): Use
11818 show_debug_regs as a boolean.
11819 (aarch64_remove_point): Likewise.
11821 2015-03-05 Pedro Alves <palves@redhat.com>
11823 * lynx-low.c (lynx_target_ops): Install NULL hooks for
11824 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
11825 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
11826 * nto-low.c (nto_target_ops): Likewise.
11827 * spu-low.c (spu_target_ops): Likewise.
11828 * win32-low.c (win32_target_ops): Likewise.
11830 2015-03-04 Pedro Alves <palves@redhat.com>
11832 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
11833 Decide whether a breakpoint triggered based on the SIGTRAP's
11835 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
11836 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
11837 (linux_low_filter_event): Check for breakpoints before checking
11839 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
11841 (linux_stopped_by_sw_breakpoint)
11842 (linux_supports_stopped_by_sw_breakpoint)
11843 (linux_stopped_by_hw_breakpoint)
11844 (linux_supports_stopped_by_hw_breakpoint): New functions.
11845 (linux_target_ops): Install new target methods.
11847 2015-03-04 Pedro Alves <palves@redhat.com>
11849 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
11850 * server.c (swbreak_feature, hwbreak_feature): New globals.
11851 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
11852 (captured_main): Clear swbreak_feature and hwbreak_feature.
11853 * server.h (swbreak_feature, hwbreak_feature): Declare.
11854 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
11855 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
11856 supports_stopped_by_hw_breakpoint>: New fields.
11857 (target_supports_stopped_by_sw_breakpoint)
11858 (target_stopped_by_sw_breakpoint)
11859 (target_supports_stopped_by_hw_breakpoint)
11860 (target_stopped_by_hw_breakpoint): Declare.
11862 2015-03-04 Pedro Alves <palves@redhat.com>
11864 enum lwp_stop_reason -> enum target_stop_reason
11865 * linux-low.c (check_stopped_by_breakpoint): Adjust.
11866 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
11867 (linux_wait_1, stuck_in_jump_pad_callback)
11868 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
11869 (linux_stopped_by_watchpoint):
11870 * linux-low.h (enum lwp_stop_reason): Delete.
11871 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
11872 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
11874 2015-03-04 Yao Qi <yao.qi@linaro.org>
11876 * Makefile.in (SFILES): Add linux-aarch64-low.c.
11878 2015-03-03 Gary Benson <gbenson@redhat.com>
11880 * hostio.c (handle_vFile): Fix prefix lengths.
11882 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
11884 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
11887 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11889 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
11890 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
11891 (clean): Add "rm -f" for above C files.
11892 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
11893 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
11894 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
11895 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
11896 * linux-s390-low.c (HWCAP_S390_VX): New macro.
11897 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
11898 (init_registers_s390x_vx_linux64)
11899 (init_registers_s390x_tevx_linux64)
11900 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11901 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
11903 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
11904 (s390_store_vxrs_high): New functions.
11905 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
11907 (s390_arch_setup): Add logic for selecting one of the new target
11908 descriptions. Activate the new vector regsets if applicable.
11909 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
11910 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
11911 and init_registers_s390x_tevx_linux64.
11913 2015-03-01 Pedro Alves <palves@redhat.com>
11915 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
11918 2015-02-27 Pedro Alves <palves@redhat.com>
11920 * linux-x86-low.c (u_debugreg_offset): New function.
11921 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11923 2015-02-27 Pedro Alves <palves@redhat.com>
11925 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11926 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
11927 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
11928 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
11929 (ps_lsetfpregs, ps_getpid)
11930 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
11931 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
11932 (ps_lsetxregs, ps_plog): Declare.
11934 2015-02-27 Pedro Alves <palves@redhat.com>
11936 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
11937 IP_AGENT_EXPORT_FUNC.
11938 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
11939 IP_AGENT_EXPORT_FUNC.
11940 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
11941 (IP_AGENT_EXPORT): Delete.
11942 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11943 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11944 (gdb_trampoline_buffer_error, collecting, gdb_collect)
11945 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
11946 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
11947 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
11948 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
11949 (traceframe_read_count, traceframe_write_count)
11950 (traceframes_created, trace_state_variables, get_raw_reg)
11951 (get_trace_state_variable_value, set_trace_state_variable_value)
11952 (ust_loaded, helper_thread_id, cmd_buf): Use
11953 IPA_SYM_EXPORTED_NAME.
11954 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
11955 (tracepoints) Use IP_AGENT_EXPORT_VAR.
11956 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
11957 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11958 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
11959 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
11960 EXTERN_C_PUSH/EXTERN_C_POP.
11961 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
11962 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
11963 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11964 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
11965 (traceframe_write_count, traceframe_read_count)
11966 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
11967 (about_to_request_buffer_space, get_trace_state_variable_value)
11968 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
11969 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
11970 EXTERN_C_PUSH/EXTERN_C_POP.
11971 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
11972 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
11973 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
11974 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
11975 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
11976 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
11977 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
11978 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
11980 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
11981 (IP_AGENT_EXPORT_VAR_DECL): Define.
11982 (tracing): Declare.
11983 (gdb_agent_get_raw_reg): Declare.
11985 2015-02-27 Tom Tromey <tromey@redhat.com>
11986 Pedro Alves <palves@redhat.com>
11988 Rename symbols whose names are reserved C++ keywords throughout.
11990 2015-02-27 Pedro Alves <palves@redhat.com>
11992 * Makefile.in (COMPILER): New, get it from autoconf.
11993 (CXX): Get from autoconf instead.
11994 (COMPILE.pre): Use COMPILER.
11995 (CC-LD): Rename to ...
11996 (CC_LD): ... this. Use COMPILER.
11997 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
11998 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11999 * acinclude.m4: Include build-with-cxx.m4.
12000 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
12001 Disable -Werror by default if building in C++ mode.
12002 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
12003 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
12004 the C++ compiler. Save/restore CXXFLAGS too.
12005 * configure: Regenerate.
12007 2015-02-27 Pedro Alves <palves@redhat.com>
12009 * acinclude.m4: Include libiberty.m4.
12010 * configure.ac: Call libiberty_INIT.
12011 * config.in, configure: Regenerate.
12013 2015-02-26 Pedro Alves <palves@redhat.com>
12015 * linux-low.c (linux_wait_1): When incrementing the PC past a
12016 program breakpoint always use the_low_target.breakpoint_len as
12017 increment, rather than the maximum between that and
12018 the_low_target.decr_pc_after_break.
12020 2015-02-23 Pedro Alves <palves@redhat.com>
12022 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
12023 thread was doing a step-over; always adjust the PC if
12024 we stepped over a permanent breakpoint.
12025 (linux_wait_1): If we stepped over breakpoint that was on top of a
12026 permanent breakpoint, manually advance the PC past it.
12028 2015-02-23 Pedro Alves <palves@redhat.com>
12030 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
12032 (x86_fill_gregset, x86_store_gregset): Use it when handling
12035 2015-02-20 Pedro Alves <palves@redhat.com>
12037 * thread-db.c: Include "nat/linux-procfs.h".
12038 (thread_db_init): Skip listing new threads if the kernel supports
12039 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
12041 2015-02-20 Pedro Alves <palves@redhat.com>
12043 * linux-low.c (status_pending_p_callback): Use ptid_match.
12045 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
12047 PR breakpoints/16812
12048 * linux-low.c (wstatus_maybe_breakpoint): Remove.
12049 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
12050 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
12052 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
12054 PR breakpoints/15956
12055 * tracepoint.c (cmd_qtinit): Add check for current_thread.
12057 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12059 * linux-low.c (linux_low_btrace_conf): Print size.
12060 * server.c (handle_btrace_conf_general_set): New.
12061 (hanle_general_set): Call handle_btrace_conf_general_set.
12062 (handle_query): Report Qbtrace-conf:bts:size as supported.
12064 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12066 * linux-low.c (linux_low_enable_btrace): Update parameters.
12067 (linux_low_btrace_conf): New.
12068 (linux_target_ops)<to_btrace_conf>: Initialize.
12069 * server.c (current_btrace_conf): New.
12070 (handle_btrace_enable): Rename to ...
12071 (handle_btrace_enable_bts): ... this. Pass ¤t_btrace_conf
12072 to target_enable_btrace. Update comment. Update users.
12073 (handle_qxfer_btrace_conf): New.
12074 (qxfer_packets): Add btrace-conf entry.
12075 (handle_query): Report qXfer:btrace-conf:read as supported packet.
12076 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
12077 (target_ops)<read_btrace_conf>: New.
12078 (target_enable_btrace): Update parameters.
12079 (target_read_btrace_conf): New.
12081 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12083 * server.c (handle_btrace_general_set): Remove call to
12084 target_supports_btrace.
12085 (supported_btrace_packets): New.
12086 (handle_query): Call supported_btrace_packets.
12087 * target.h: include btrace-common.h.
12088 (btrace_target_info): Removed.
12089 (supports_btrace, target_supports_btrace): Update parameters.
12091 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12093 * Makefile.in (SFILES): Add common/btrace-common.c.
12094 (OBS): Add common/btrace-common.o.
12095 (btrace-common.o): Add build rules.
12096 * linux-low: Include btrace-common.h.
12097 (linux_low_read_btrace): Use struct btrace_data. Call
12098 btrace_data_init and btrace_data_fini.
12100 2015-02-06 Pedro Alves <palves@redhat.com>
12102 * thread-db.c (find_new_threads_callback): Add debug output.
12104 2015-02-04 Pedro Alves <palves@redhat.com>
12106 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
12107 (resume_stopped_resumed_lwps): New function.
12108 (linux_wait_for_event_filtered): Use it.
12110 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12112 * Makefile.in (SFILES): Add linux-personality.c.
12113 (linux-personality.o): New rule.
12114 * configure.srv (srv_linux_obj): Add linux-personality.o to the
12115 list of objects to be built.
12116 * linux-low.c: Include nat/linux-personality.h.
12117 (linux_create_inferior): Remove code to disable address space
12118 randomization (moved to ../nat/linux-personality.c). Create
12119 cleanup to disable address space randomization.
12121 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12123 * Makefile.in (posix-strerror.o): New rule.
12124 (mingw-strerror.o): Likewise.
12125 * configure: Regenerated.
12126 * configure.ac: Source file ../common/common.host. Initialize new
12127 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
12129 2015-01-14 Yao Qi <yao@codesourcery.com>
12131 * Makefile.in (SFILES): Add nat/ppc-linux.c.
12132 (ppc-linux.o): New rule.
12133 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
12134 * configure.ac: AC_CHECK_FUNCS(getauxval).
12135 * config.in: Re-generated.
12136 * configure: Re-generated.
12137 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
12138 ppc64_64bit_inferior_p
12140 2015-01-14 Yao Qi <yao@codesourcery.com>
12142 * linux-ppc-low.c: Include "nat/ppc-linux.h".
12143 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
12144 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
12145 (PT_ORIG_R3, PT_TRAP): Likewise.
12146 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12147 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12148 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12150 2015-01-10 Joel Brobecker <brobecker@adacore.com>
12152 * i387-fp.c (i387_cache_to_xsave): In look over
12153 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
12154 zmmh_low_space field by use of zmmh_high_space.
12156 2015-01-09 Pedro Alves <palves@redhat.com>
12158 * linux-low.c (step_over_bkpt): Move higher up in the file.
12159 (handle_extended_wait): Don't store the stop_pc here.
12160 (get_stop_pc): Adjust comments and rename to ...
12161 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12162 stopped for a software breakpoint or hardware breakpoint.
12163 (thread_still_has_status_pending_p): New function.
12164 (status_pending_p_callback): Use
12165 thread_still_has_status_pending_p. If the event is no longer
12166 interesting, resume the LWP.
12167 (handle_tracepoints): Add assert.
12168 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
12169 (wstatus_maybe_breakpoint): New function.
12170 (cancel_breakpoint): Delete function.
12171 (check_stopped_by_watchpoint): New function, factored out from
12172 linux_low_filter_event.
12173 (lp_status_maybe_breakpoint): Delete function.
12174 (linux_low_filter_event): Remove filter_ptid argument.
12175 Leave thread group exits pending here. Store the LWP's stop PC.
12176 Always leave events pending.
12177 (linux_wait_for_event_filtered): Pull all events out of the
12178 kernel, and leave them all pending.
12179 (count_events_callback, select_event_lwp_callback): Consider all
12181 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
12182 (select_event_lwp): Only give preference to the stepping LWP in
12183 all-stop mode. Adjust comments.
12184 (ignore_event): New function.
12185 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
12186 references to cancel_breakpoints. Adjust to renames. Also give
12187 equal priority to all LWPs that have had events in non-stop mode.
12188 If reporting a software breakpoint event, unadjust the LWP's PC.
12189 (linux_wait): If linux_wait_1 returned an ignored event, retry.
12190 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
12192 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
12193 (resume_status_pending_p): Use thread_still_has_status_pending_p.
12194 (linux_stopped_by_watchpoint): Adjust.
12195 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
12196 * linux-low.h (enum lwp_stop_reason): New.
12197 (struct lwp_info) <stop_pc>: Adjust comment.
12198 <stopped_by_watchpoint>: Delete field.
12199 <stop_reason>: New field.
12200 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
12201 * mem-break.c (software_breakpoint_inserted_here)
12202 (hardware_breakpoint_inserted_here): New function.
12203 * mem-break.h (software_breakpoint_inserted_here)
12204 (hardware_breakpoint_inserted_here): Declare.
12205 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
12206 (cancel_breakpoints): Delete.
12207 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
12208 (upload_fast_traceframes): Remove references to
12209 cancel_breakpoints.
12211 2015-01-09 Pedro Alves <palves@redhat.com>
12213 * thread-db.c (find_new_threads_callback): Ignore thread if the
12214 kernel thread ID is -1.
12216 2015-01-09 Pedro Alves <palves@redhat.com>
12218 * linux-low.c (linux_attach_fail_reason_string): Move to
12219 nat/linux-ptrace.c, and rename.
12220 (linux_attach_lwp): Update comment.
12221 (attach_proc_task_lwp_callback): New function.
12222 (linux_attach): Adjust to rename and use
12223 linux_proc_attach_tgid_threads.
12224 (linux_attach_fail_reason_string): Delete declaration.
12226 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12228 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
12229 * server.c (gdbserver_version): Likewise.
12231 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
12233 * remote-utils.c: Include ctype.h.
12234 (input_interrupt): Explicitly handle the case when the char
12235 received is the NUL byte. Improve the printing of non-ASCII
12238 2014-12-16 Joel Brobecker <brobecker@adacore.com>
12240 * linux-low.c (linux_low_filter_event): Update call to
12241 linux_enable_event_reporting following the addition of
12242 a new parameter to that function.
12244 2014-12-16 Catalin Udma <catalin.udma@freescale.com>
12247 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
12248 (AARCH64_FPCR_REGNO): Likewise.
12249 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
12250 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
12251 (aarch64_store_fpregset): Likewise.
12253 2014-12-15 Joel Brobecker <brobecker@adacore.com>
12255 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
12256 Remove FIXME comment about assumption about N.
12258 2014-12-13 Joel Brobecker <brobecker@adacore.com>
12260 * configure.ac: If large-file support is disabled in GDBserver,
12261 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
12262 * configure: Regenerate.
12264 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12266 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
12267 warning upon ENODATA from ptrace.
12268 * linux-s390-low.c (s390_store_tdb): New.
12269 (s390_regsets): Add regset for NT_S390_TDB.
12271 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12273 * linux-low.c (regsets_store_inferior_registers): Skip regsets
12274 without a fill_function.
12275 * linux-s390-low.c (s390_fill_last_break): Remove.
12276 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
12277 (s390_arch_setup): Use regset's size instead of fill_function for
12278 loop end condition.
12280 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12282 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
12283 the regset's store function when ptrace returned an error.
12284 * regcache.c (get_thread_regcache): Invalidate register cache
12285 before fetching inferior's registers.
12287 2014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
12289 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
12290 while-loop as for-loop.
12291 (regsets_store_inferior_registers): Likewise.
12293 2014-11-28 Yao Qi <yao@codesourcery.com>
12295 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
12296 * config.in, configure: Re-generate.
12297 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
12300 2014-11-21 Yao Qi <yao@codesourcery.com>
12302 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
12303 (AC_CHECK_HEADERS): Remove malloc.h.
12304 * configure: Re-generated.
12305 * config.in: Re-generated.
12306 * server.h: Don't include alloca.h and malloc.h.
12307 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
12308 Don't include malloc.h.
12310 2014-11-17 Joel Brobecker <brobecker@adacore.com>
12312 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
12313 corresponding ERRNO check in same block.
12315 2014-11-12 Pedro Alves <palves@redhat.com>
12317 * server.c (cont_thread): Update comment.
12318 (start_inferior, attach_inferior): No longer clear cont_thread.
12319 (handle_v_cont): No longer set cont_thread.
12320 (captured_main): Clear cont_thread each time a GDB connects.
12322 2014-11-12 Pedro Alves <palves@redhat.com>
12324 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
12325 thread, and don't resume all threads if the Hc thread has exited.
12327 2014-11-12 Pedro Alves <palves@redhat.com>
12329 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
12330 the process group instead of to a specific LWP.
12332 2014-10-15 Pedro Alves <palves@redhat.com>
12335 * win32-arm-low.c (arm_set_thread_context): Remove current_event
12337 (arm_set_thread_context): Delete.
12338 (the_low_target): Adjust.
12339 * win32-i386-low.c (debug_registers_changed)
12340 (debug_registers_used): Delete.
12341 (update_debug_registers_callback): New function.
12342 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
12343 needing to update their debug registers.
12344 (win32_get_current_dr): New function.
12345 (x86_dr_low_get_addr, x86_dr_low_get_control)
12346 (x86_dr_low_get_status): Fetch the debug register from the thread
12348 (i386_initial_stuff): Adjust.
12349 (i386_get_thread_context): Remove current_event parameter. Don't
12350 clear debug_registers_changed nor copy DR values to
12352 (i386_set_thread_context): Delete.
12353 (i386_prepare_to_resume): New function.
12354 (i386_thread_added): Mark the thread as needing to update irs
12356 (the_low_target): Remove i386_set_thread_context and install
12357 i386_prepare_to_resume.
12358 * win32-low.c (win32_get_thread_context): Adjust.
12359 (win32_set_thread_context): Use SetThreadContext
12361 (win32_prepare_to_resume): New function.
12362 (win32_require_context): New function, factored out from ...
12363 (thread_rec): ... this.
12364 (continue_one_thread): Call win32_prepare_to_resume on each thread
12365 we're about to continue.
12366 (win32_resume): Call win32_prepare_to_resume on the event thread.
12367 * win32-low.h (struct win32_thread_info)
12368 <debug_registers_changed>: New field.
12369 (struct win32_target_ops): Change prototype of set_thread_context,
12370 delete set_thread_context and add prepare_to_resume.
12371 (win32_require_context): New declaration.
12373 2014-10-08 Gary Benson <gbenson@redhat.com>
12375 * server.h: Do not include common-exceptions.h.
12377 2014-10-08 Gary Benson <gbenson@redhat.com>
12379 * server.h: Do not include cleanups.h.
12381 2014-09-30 James Hogan <james.hogan@imgtec.com>
12383 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
12384 mips64-dsp-linux.c.
12386 2014-09-23 Yao Qi <yao@codesourcery.com>
12388 * linux-low.c (lp_status_maybe_breakpoint): New function.
12389 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
12390 (count_events_callback): Likewise.
12391 (select_event_lwp_callback): Likewise.
12392 (cancel_breakpoints_callback): Likewise.
12394 2014-09-19 Don Breazeal <donb@codesourcery.com>
12396 * linux-low.c (handle_extended_wait): Call
12397 linux_ptrace_get_extended_event.
12398 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
12399 linux_is_extended_waitstatus.
12401 2014-09-16 Joel Brobecker <brobecker@adacore.com>
12403 * Makefile.in (CPPFLAGS): Define.
12404 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
12405 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
12407 2014-09-16 Gary Benson <gbenson@redhat.com>
12409 * inferiors.h (current_inferior): Renamed as...
12410 (current_thread): New variable. All uses updated.
12411 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
12412 (maybe_move_out_of_jump_pad): Likewise.
12413 (cancel_breakpoint): Likewise.
12414 (linux_low_filter_event): Likewise.
12415 (wait_for_sigstop): Likewise.
12416 (linux_resume_one_lwp): Likewise.
12417 (need_step_over_p): Likewise.
12418 (start_step_over): Likewise.
12419 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
12420 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
12421 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
12422 and save_inferior as saved_thread.
12423 * regcache.c (get_thread_regcache): Renamed saved_inferior as
12425 (regcache_invalidate_thread): Likewise.
12426 * remote-utils.c (prepare_resume_reply): Likewise.
12427 * thread-db.c (thread_db_get_tls_address): Likewise.
12428 (disable_thread_event_reporting): Likewise.
12429 (remove_thread_event_breakpoints): Likewise.
12430 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
12432 * target.h (set_desired_inferior): Renamed as...
12433 (set_desired_thread): New declaration. All uses updated.
12434 * server.c (myresume): Updated comment to reference thread instead
12436 (handle_serial_event): Likewise.
12437 (handle_target_event): Likewise.
12439 2014-09-12 Tom Tromey <tromey@redhat.com>
12440 Gary Benson <gbenson@redhat.com>
12442 * regcache.h: Include common-regcache.h.
12443 (regcache_read_pc): Don't declare.
12444 * regcache.c (get_thread_regcache_for_ptid): New function.
12446 2014-09-11 Tom Tromey <tromey@redhat.com>
12447 Gary Benson <gbenson@redhat.com>
12449 * symbol.c: New file.
12450 * Makefile.in (SFILES): Add symbol.c.
12451 (OBS): Add symbol.o.
12453 2014-09-11 Gary Benson <gbenson@redhat.com>
12455 * target.c (target_stop_ptid, target_continue_ptid): New
12458 2014-09-11 Tom Tromey <tromey@redhat.com>
12459 Gary Benson <gbenson@redhat.com>
12461 * target.h: Include target/target.h.
12462 * target.c (target_read_memory, target_read_uint32)
12463 (target_write_memory): New functions.
12465 2014-09-11 Gary Benson <gbenson@redhat.com>
12467 * server.h (debug_hw_points): Don't declare.
12468 * server.c (debug_hw_points): Don't define. Replace all uses
12469 with show_debug_regs.
12470 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
12471 all uses with show_debug_regs.
12473 2014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12475 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
12476 endianness into account.
12477 (ppc_supply_ptrace_register): Likewise.
12479 2014-09-03 James Hogan <james.hogan@imgtec.com>
12481 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
12482 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
12484 2014-09-03 Gary Benson <gbenson@redhat.com>
12486 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
12487 ALL_DEBUG_ADDRESS_REGISTERS.
12489 2014-09-02 Gary Benson <gbenson@redhat.com>
12491 * i386-low.h: Renamed as...
12492 * x86-low.h: New file. All type, function and variable name
12493 prefixes changed from "i386_" to "x86_". All references updated.
12494 * i386-low.c: Renamed as...
12495 * x86-low.c: New file. All type, function and variable name
12496 prefixes changed from "i386_" to "x86_". All references updated.
12498 2014-09-02 Gary Benson <gbenson@redhat.com>
12500 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
12501 (x86_linux_new_thread): Likewise.
12503 2014-08-29 Gary Benson <gbenson@redhat.com>
12505 * server.h (setjmp.h): Do not include.
12506 (toplevel): Do not declare.
12507 (common-exceptions.h): Include.
12508 (cleanups.h): Likewise.
12509 * server.c (toplevel): Do not define.
12510 (exit_code): New static global.
12511 (detach_or_kill_for_exit_cleanup): New function.
12512 (main): New function. Original main renamed to...
12513 (captured_main): New function.
12514 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
12516 2014-08-29 Gary Benson <gbenson@redhat.com>
12518 * Makefile.in (SFILES): Add common/common-exceptions.c.
12519 (OBS): Add common-exceptions.o.
12520 (common-exceptions.o): New rule.
12521 * utils.c (prepare_to_throw_exception): New function.
12523 2014-08-29 Gary Benson <gbenson@redhat.com>
12525 * config.in: Regenerate.
12526 * configure: Likewise.
12528 2014-08-29 Gary Benson <gbenson@redhat.com>
12530 * Makefile.in (SFILES): Add common/cleanups.c.
12532 (cleanups.o): New rule.
12534 2014-08-29 Gary Benson <gbenson@redhat.com>
12536 * utils.c (internal_vwarning): New function.
12538 2014-08-28 Gary Benson <gbenson@redhat.com>
12540 * utils.h (fatal): Remove declaration.
12541 * utils.c (fatal): Remove function.
12543 2014-08-28 Gary Benson <gbenson@redhat.com>
12545 * tracepoint.c (gdb_agent_init): Replace fatal with
12547 (initialize_tracepoint): Likewise.
12549 2014-08-28 Gary Benson <gbenson@redhat.com>
12551 * remote-utils.c (remote_prepare): Replace fatal with error.
12553 2014-08-28 Gary Benson <gbenson@redhat.com>
12555 * linux-low.c (linux_async): Replace fatal with warning.
12556 Tidy up and return.
12557 (linux_start_non_stop): Return -1 if linux_async failed.
12559 2014-08-28 Gary Benson <gbenson@redhat.com>
12561 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
12563 (i386_dr_low_get_addr): Remove vague comment.
12564 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
12567 2014-08-28 Gary Benson <gbenson@redhat.com>
12569 * inferiors.c (get_thread_process): Replace check with gdb_assert.
12570 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
12572 (linux_resume_one_lwp): Likewise.
12573 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
12575 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
12576 with internal_error.
12577 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
12578 (init_register_cache): Replace fatal with gdb_assert_not_reached.
12579 (find_register_by_name): Replace fatal with internal_error.
12580 (find_regno): Likewise.
12581 * tdesc.c (init_target_desc): Replace check with gdb_assert.
12582 * thread-db.c (thread_db_create_event): Likewise.
12583 (thread_db_load_search): Likewise.
12584 (try_thread_db_load_1): Likewise.
12585 * tracepoint.c (get_jump_space_head): Replace fatal with
12587 (claim_trampoline_space): Likewise.
12588 (have_fast_tracepoint_trampoline_buffer): Likewise.
12589 (cmd_qtstart): Likewise.
12590 (stop_tracing): Likewise.
12591 (fast_tracepoint_collecting): Likewise.
12592 (target_malloc): Likewise.
12593 (download_tracepoint): Likewise.
12594 (download_trace_state_variables): Replace check with gdb_assert.
12595 (upload_fast_traceframes): Replace fatal with internal_error.
12597 2014-08-19 Tom Tromey <tromey@redhat.com>
12598 Gary Benson <gbenson@redhat.com>
12600 * Makefile.in (SFILES): Add common/common-debug.c.
12601 (OBS): Add common-debug.o.
12602 (common-debug.o): New rule.
12603 * debug.h (debug_printf): Don't declare.
12604 * debug.c (debug_printf): Renamed and rewritten as...
12605 (debug_vprintf): New function.
12607 2014-08-19 Gary Benson <gbenson@redhat.com>
12609 * utils.h: Do not include print-utils.h.
12611 2014-08-19 Tom Tromey <tromey@redhat.com>
12612 Gary Benson <gbenson@redhat.com>
12614 * server.h: Add static assertion.
12615 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
12617 2014-08-19 Tom Tromey <tromey@redhat.com>
12618 Gary Benson <gbenson@redhat.com>
12620 * Makefile.in (SFILES): Add common/errors.c.
12621 (OBS): Add errors.o.
12622 (IPA_OBS): Add errors-ipa.o.
12623 (errors.o): New rule.
12624 (errors-ipa.o): Likewise.
12625 * utils.h (perror_with_name, error, warning): Don't declare.
12626 * utils.c (warning): Renamed and rewritten as...
12627 (vwarning): New function.
12628 (error): Renamed and rewritten as...
12629 (verror): New function.
12630 (internal_error): Renamed and rewritten as...
12631 (internal_verror): New function.
12633 2014-08-07 Gary Benson <gbenson@redhat.com>
12635 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
12636 * configure: Regenerate.
12637 * config.in: Likewise.
12638 * server.h: Do not include errno.h.
12639 * event-loop.c: Likewise.
12640 * hostio-errno.c: Likewise.
12641 * linux-low.c: Likewise.
12642 * remote-utils.c: Likewise.
12643 * spu-low.c: Likewise.
12644 * utils.c: Likewise.
12645 * gdbreplay.c: Unconditionally include errno.h.
12647 2014-08-07 Gary Benson <gbenson@redhat.com>
12649 * server.h: Do not include string.h.
12650 * event-loop.c: Likewise.
12651 * linux-low.c: Likewise.
12652 * regcache.c: Likewise.
12653 * remote-utils.c: Likewise.
12654 * spu-low.c: Likewise.
12655 * utils.c: Likewise.
12657 2014-08-07 Gary Benson <gbenson@redhat.com>
12659 * server.h: Do not include gdb_assert.h.
12661 2014-08-07 Gary Benson <gbenson@redhat.com>
12663 * server.h: Do not include common-utils.h.
12665 2014-08-07 Gary Benson <gbenson@redhat.com>
12667 * server.h: Do not include ptid.h.
12668 * notif.h: Likewise.
12670 2014-08-07 Gary Benson <gbenson@redhat.com>
12672 * server.h: Do not include gdb_locale.h.
12674 2014-08-07 Gary Benson <gbenson@redhat.com>
12676 * server.h: Do not include gdb/signals.h.
12677 * win32-low.c: Likewise.
12679 2014-08-07 Gary Benson <gbenson@redhat.com>
12681 * server.h: Do not include pathmax.h.
12683 2014-08-07 Gary Benson <gbenson@redhat.com>
12685 * server.h: Do not include libiberty.h.
12686 * linux-bfin-low.c: Likewise.
12688 2014-08-07 Gary Benson <gbenson@redhat.com>
12690 * server.h: Do not include ansidecl.h.
12692 2014-08-07 Gary Benson <gbenson@redhat.com>
12694 * linux-x86-low.c: Do not include stddef.h.
12695 * lynx-ppc-low.c: Likewise.
12696 * tracepoint.c: Likewise.
12698 2014-08-07 Gary Benson <gbenson@redhat.com>
12700 * server.h: Do not include stdarg.h.
12701 * nto-low.c: Likewise.
12703 2014-08-07 Gary Benson <gbenson@redhat.com>
12705 * server.h: Do not include stdlib.h.
12706 * inferiors.c: Likewise.
12707 * linux-low.c: Likewise.
12708 * regcache.c: Likewise.
12709 * spu-low.c: Likewise.
12710 * tracepoint.c: Likewise.
12711 * utils.c: Likewise.
12713 2014-08-07 Gary Benson <gbenson@redhat.com>
12715 * server.h: Do not include stdio.h.
12716 * linux-low.c: Likewise.
12717 * remote-utils.c: Likewise.
12718 * spu-low.c: Likewise.
12719 * utils.c: Likewise.
12720 * wincecompat.c: Likewise.
12722 2014-08-06 Gary Benson <gbenson@redhat.com>
12724 * regcache.c (init_register_cache): Move conditionals inside if.
12726 2014-08-06 Gary Benson <gbenson@redhat.com>
12728 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
12730 2014-07-31 Gary Benson <gbenson@redhat.com>
12732 * ax.h: Do not include server.h.
12733 * gdbthread.h: Likewise.
12734 * lynx-low.h: Likewise.
12735 * notif.h: Likewise.
12737 2014-07-30 Gary Benson <gbenson@redhat.com>
12739 * server.h: Include common-defs.h.
12740 Do not include config.h or build-gnulib-gdbserver/config.h.
12742 2014-07-30 Gary Benson <gbenson@redhat.com>
12744 * hostio-errno.c: Move server.h to top of includes list.
12745 * inferiors.c: Likewise.
12746 * linux-x86-low.c: Likewise.
12747 * notif.c: Include server.h.
12749 2014-07-24 Tom Tromey <tromey@redhat.com>
12750 Gary Benson <gbenson@redhat.com>
12752 * server.h (CORE_ADDR): Now unsigned.
12754 2014-07-16 Pedro Alves <palves@redhat.com>
12756 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
12758 2014-07-15 Pedro Alves <palves@redhat.com>
12760 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
12763 2014-07-11 Pedro Alves <palves@redhat.com>
12765 * linux-low.c (kill_wait_lwp): New function, based on
12766 kill_one_lwp_callback, but use my_waitpid directly.
12767 (kill_one_lwp_callback, linux_kill): Use it.
12769 2014-06-23 Pedro Alves <palves@redhat.com>
12771 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
12772 before setting DR0..DR3.
12774 2014-06-20 Gary Benson <gbenson@redhat.com>
12776 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
12777 * configure: Regenerated.
12778 * config.in: Likewise.
12780 2014-06-20 Gary Benson <gbenson@redhat.com>
12782 * Makefile.in (SFILES): Update locations for files moved
12783 from common to nat.
12784 (object file files): Reordered.
12786 2014-06-20 Gary Benson <gbenson@redhat.com>
12788 * i386-low.h (i386_dr_low_can_set_addr): Removed.
12789 (i386_dr_low_set_addr): Likewise.
12790 (i386_dr_low_get_addr): Likewise.
12791 (i386_dr_low_can_set_control): Likewise.
12792 (i386_dr_low_set_control): Likewise.
12793 (i386_dr_low_get_control): Likewise.
12794 (i386_dr_low_get_status): Likewise.
12795 (i386_get_debug_register_length): Likewise.
12796 * linux-x86-low.c (i386_dr_low_set_addr):
12797 Changed signature. Made static.
12798 (i386_dr_low_get_addr): Likewise.
12799 (i386_dr_low_set_control): Likewise.
12800 (i386_dr_low_get_control): Likewise.
12801 (i386_dr_low_get_status): Likewise.
12802 (i386_dr_low): New global variable.
12803 * win32-i386-low.c (i386_dr_low_set_addr):
12804 Changed signature. Made static.
12805 (i386_dr_low_get_addr): Likewise.
12806 (i386_dr_low_set_control): Likewise.
12807 (i386_dr_low_get_control): Likewise.
12808 (i386_dr_low_get_status): Likewise.
12809 (i386_dr_low): New global variable.
12811 2014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
12813 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
12814 * Makefile.in (AR, AR_FLAGS): Define.
12815 * configure: Regenerate.
12817 2014-06-19 Gary Benson <gbenson@redhat.com>
12819 * Makefile.in (i386-dregs.o): New rule.
12820 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
12821 * i386-low.c (target.h): Remove include.
12822 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
12823 (DR_CONTROL_SHIFT): Likewise.
12824 (DR_CONTROL_SIZE): Likewise.
12825 (DR_RW_EXECUTE): Likewise.
12826 (DR_RW_WRITE): Likewise.
12827 (DR_RW_READ): Likewise.
12828 (DR_RW_IORW): Likewise.
12829 (DR_LEN_1): Likewise.
12830 (DR_LEN_2): Likewise.
12831 (DR_LEN_4): Likewise.
12832 (DR_LEN_8): Likewise.
12833 (DR_LOCAL_ENABLE_SHIFT): Likewise.
12834 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
12835 (DR_ENABLE_SIZE): Likewise.
12836 (DR_LOCAL_SLOWDOWN): Likewise.
12837 (DR_GLOBAL_SLOWDOWN): Likewise.
12838 (DR_CONTROL_RESERVED): Likewise.
12839 (I386_DR_CONTROL_MASK): Likewise.
12840 (I386_DR_VACANT): Likewise.
12841 (I386_DR_LOCAL_ENABLE): Likewise.
12842 (I386_DR_GLOBAL_ENABLE): Likewise.
12843 (I386_DR_DISABLE): Likewise.
12844 (I386_DR_SET_RW_LEN): Likewise.
12845 (I386_DR_GET_RW_LEN): Likewise.
12846 (I386_DR_WATCH_HIT): Likewise.
12847 (i386_wp_op_t): Likewise.
12848 (i386_show_dr): Likewise.
12849 (i386_length_and_rw_bits): Likewise.
12850 (i386_insert_aligned_watchpoint): Likewise.
12851 (i386_remove_aligned_watchpoint): Likewise.
12852 (i386_handle_nonaligned_watchpoint): Likewise.
12853 i386_update_inferior_debug_regs(): Likewise.
12854 (i386_dr_insert_watchpoint): Likewise.
12855 (i386_dr_remove_watchpoint): Likewise.
12856 (i386_dr_region_ok_for_watchpoint): Likewise.
12857 (i386_dr_stopped_data_address): Likewise.
12858 (i386_dr_stopped_by_watchpoint): Likewise.
12860 2014-06-19 Gary Benson <gbenson@redhat.com>
12862 * i386-low.c (i386_dr_show): Renamed to
12863 i386_show_dr and made static. All uses updated.
12864 (i386_dr_length_and_rw_bits): Renamed to
12865 i386_length_and_rw_bits and made static.
12867 (i386_dr_insert_aligned_watchpoint): Renamed to
12868 i386_insert_aligned_watchpoint and made static.
12870 (i386_dr_remove_aligned_watchpoint): Renamed to
12871 i386_remove_aligned_watchpoint and made static.
12873 (i386_dr_update_inferior_debug_regs): Renamed to
12874 i386_update_inferior_debug_regs and made static.
12877 2014-06-18 Gary Benson <gbenson@redhat.com>
12879 * i386-low.h (i386_dr_low_can_set_addr): New macro.
12880 (i386_dr_low_can_set_control): Likewise.
12881 (i386_get_debug_register_length): Likewise.
12882 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
12883 (i386_dr_low_can_set_control): Likewise.
12884 (i386_get_debug_register_length): Likewise.
12886 2014-06-17 Gary Benson <gbenson@redhat.com>
12888 * i386-low.h (i386-dregs.h): New include.
12889 (DR_FIRSTADDR): Now in i386-dregs.h.
12890 (DR_LASTADDR): Likewise.
12891 (DR_NADDR): Likewise.
12892 (DR_STATUS): Likewise.
12893 (DR_CONTROL): Likewise.
12894 (i386_debug_reg_state): Likewise.
12895 (i386_dr_insert_watchpoint): Likewise.
12896 (i386_dr_remove_watchpoint): Likewise.
12897 (i386_dr_region_ok_for_watchpoint): Likewise.
12898 (i386_dr_stopped_data_address): Likewise.
12899 (i386_dr_stopped_by_watchpoint): Likewise.
12900 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
12902 2014-06-18 Gary Benson <gbenson@redhat.com>
12904 * i386-low.h (i386_low_insert_watchpoint): Renamed to
12905 i386_dr_insert_watchpoint.
12906 (i386_low_remove_watchpoint): Renamed to
12907 i386_dr_remove_watchpoint.
12908 (i386_low_region_ok_for_watchpoint): Renamed to
12909 i386_dr_region_ok_for_watchpoint.
12910 (i386_low_stopped_data_address): Renamed to
12911 i386_dr_stopped_data_address.
12912 (i386_low_stopped_by_watchpoint): Renamed to
12913 i386_dr_stopped_by_watchpoint.
12914 * i386-low.c (i386_show_dr): Renamed to
12915 i386_dr_show and made nonstatic. All uses updated.
12916 (i386_length_and_rw_bits): Renamed to
12917 i386_dr_length_and_rw_bits and made nonstatic.
12919 (i386_insert_aligned_watchpoint): Renamed to
12920 i386_dr_insert_aligned_watchpoint and made nonstatic.
12922 (i386_remove_aligned_watchpoint): Renamed to
12923 i386_dr_remove_aligned_watchpoint and made nonstatic.
12925 (i386_update_inferior_debug_regs): Renamed to
12926 i386_dr_update_inferior_debug_regs and made nonstatic.
12928 (i386_low_insert_watchpoint): Renamed to
12929 i386_dr_insert_watchpoint. All uses updated.
12930 (i386_low_remove_watchpoint): Renamed to
12931 i386_dr_remove_watchpoint. All uses updated.
12932 (i386_low_region_ok_for_watchpoint): Renamed to
12933 i386_dr_region_ok_for_watchpoint. All uses updated.
12934 (i386_low_stopped_data_address): Renamed to
12935 i386_dr_stopped_data_address. All uses updated.
12936 (i386_low_stopped_by_watchpoint): Renamed to
12937 i386_dr_stopped_by_watchpoint. All uses updated.
12939 2014-06-18 Gary Benson <gbenson@redhat.com>
12941 * i386-low.c (i386_dr_low_can_set_addr): New macro.
12942 (i386_dr_low_can_set_control): Likewise.
12943 (i386_insert_aligned_watchpoint): New check.
12945 2014-06-18 Gary Benson <gbenson@redhat.com>
12947 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
12950 2014-06-18 Gary Benson <gbenson@redhat.com>
12952 * i386-low.c (i386_length_and_rw_bits): Use internal_error
12953 instead of fatal and error.
12954 (i386_handle_nonaligned_watchpoint): Likewise.
12956 2014-06-18 Gary Benson <gbenson@redhat.com>
12958 * i386-low.c (i386_get_debug_register_length): New macro.
12959 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
12960 (i386_show_dr): Use debug_printf instead of fprintf. Use
12961 phex to format values.
12963 2014-06-18 Gary Benson <gbenson@redhat.com>
12965 * i386-low.h: Comment changes.
12966 * i386-low.c: Likewise.
12968 2014-06-18 Gary Benson <gbenson@redhat.com>
12970 * i386-low.c: Whitespace changes.
12972 2014-06-12 Tom Tromey <tromey@redhat.com>
12974 * utils.c (freeargv): Remove.
12976 2014-06-12 Tom Tromey <tromey@redhat.com>
12978 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
12979 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
12980 (parse_debug_format_options): Likewise.
12981 (gdbserver_usage): Likewise.
12982 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
12983 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
12984 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
12986 ($(LIBGNU)): Depend on libiberty.
12987 (all-lib): Recurse into all subdirs.
12988 (install-only): Invoke "install" target in subdirs.
12989 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
12991 * configure: Rebuild.
12992 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
12993 for vasprintf, vsnprintf, or gettimeofday.
12994 * configure.srv: Don't add safe-ctype.o or lbasename.o to
12997 2014-06-05 Joel Brobecker <brobecker@adacore.com>
12999 * development.sh: Delete.
13000 * Makefile.in (config.status): Adjust dependency on development.sh.
13001 * configure.ac: Adjust development.sh source call.
13002 * configure: Regenerate.
13004 2014-06-02 Pedro Alves <palves@redhat.com>
13006 * ax.c (gdb_free_agent_expr): New function.
13007 * ax.h (gdb_free_agent_expr): New declaration.
13008 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
13010 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
13012 (clear_breakpoint_conditions_and_commands): New function.
13013 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
13014 (clear_breakpoint_conditions_and_commands): New declaration.
13016 2014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13018 * linux-aarch64-low.c (asm/ptrace.h): Include.
13020 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
13022 Fix TLS access for -static -pthread.
13023 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
13024 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
13025 (thread_db_load_search, try_thread_db_load_1): Initialize it.
13027 2014-05-20 Pedro Alves <palves@redhat.com>
13029 * linux-aarch64-low.c (aarch64_insert_point)
13030 (aarch64_remove_point): No longer check whether the type is
13031 supported here. Adjust to new interface.
13032 (the_low_target): Install aarch64_supports_z_point_type as
13033 supports_z_point_type method.
13034 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
13035 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
13036 instead of a Z packet char. Adjust.
13037 (arm_supports_z_point_type): New function.
13038 (arm_insert_point, arm_remove_point): Adjust to new interface.
13039 (the_low_target): Install arm_supports_z_point_type.
13040 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
13041 (cris_insert_point, cris_remove_point): Adjust to new interface.
13042 Don't check whether the type is supported here.
13043 (the_low_target): Install cris_supports_z_point_type.
13044 * linux-low.c (linux_supports_z_point_type): New function.
13045 (linux_insert_point, linux_remove_point): Adjust to new interface.
13046 * linux-low.h (struct linux_target_ops) <insert_point,
13047 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
13048 raw_breakpoint pointer parameter.
13049 <supports_z_point_type>: New method.
13050 * linux-mips-low.c (mips_supports_z_point_type): New function.
13051 (mips_insert_point, mips_remove_point): Adjust to new interface.
13052 Use mips_supports_z_point_type.
13053 (the_low_target): Install mips_supports_z_point_type.
13054 * linux-ppc-low.c (the_low_target): Install NULL as
13055 supports_z_point_type method.
13056 * linux-s390-low.c (the_low_target): Install NULL as
13057 supports_z_point_type method.
13058 * linux-sparc-low.c (the_low_target): Install NULL as
13059 supports_z_point_type method.
13060 * linux-x86-low.c (x86_supports_z_point_type): New function.
13061 (x86_insert_point): Adjust to new insert_point interface. Use
13062 insert_memory_breakpoint. Adjust to new
13063 i386_low_insert_watchpoint interface.
13064 (x86_remove_point): Adjust to remove_point interface. Use
13065 remove_memory_breakpoint. Adjust to new
13066 i386_low_remove_watchpoint interface.
13067 (the_low_target): Install x86_supports_z_point_type.
13068 * lynx-low.c (lynx_target_ops): Install NULL as
13069 supports_z_point_type callback.
13070 * nto-low.c (nto_supports_z_point_type): New.
13071 (nto_insert_point, nto_remove_point): Adjust to new interface.
13072 (nto_target_ops): Install nto_supports_z_point_type.
13073 * mem-break.c: Adjust intro comment.
13074 (struct raw_breakpoint) <raw_type, size>: New fields.
13075 <inserted>: Update comment.
13076 <shlib_disabled>: Delete field.
13077 (enum bkpt_type) <gdb_breakpoint>: Delete value.
13078 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
13079 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
13080 (raw_bkpt_type_to_target_hw_bp_type): New function.
13081 (find_enabled_raw_code_breakpoint_at): New function.
13082 (find_raw_breakpoint_at): New type and size parameters. Use them.
13083 (insert_memory_breakpoint): New function, based off
13084 set_raw_breakpoint_at.
13085 (remove_memory_breakpoint): New function.
13086 (set_raw_breakpoint_at): Reimplement.
13087 (set_breakpoint): New, based on set_breakpoint_at.
13088 (set_breakpoint_at): Reimplement.
13089 (delete_raw_breakpoint): Go through the_target->remove_point
13090 instead of assuming memory breakpoints.
13091 (find_gdb_breakpoint_at): Delete.
13092 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
13093 (find_gdb_breakpoint): New function.
13094 (set_gdb_breakpoint_at): Delete.
13095 (z_type_supported): New function.
13096 (set_gdb_breakpoint_1): New function, loosely based off
13097 set_gdb_breakpoint_at.
13098 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
13099 (delete_gdb_breakpoint_at): Delete.
13100 (delete_gdb_breakpoint_1): New function, loosely based off
13101 delete_gdb_breakpoint_at.
13102 (delete_gdb_breakpoint): New function.
13103 (clear_gdb_breakpoint_conditions): Rename to ...
13104 (clear_breakpoint_conditions): ... this. Don't handle a NULL
13106 (add_condition_to_breakpoint): Make static.
13107 (add_breakpoint_condition): Take a struct breakpoint pointer
13108 instead of an address. Adjust.
13109 (gdb_condition_true_at_breakpoint): Rename to ...
13110 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
13112 (gdb_condition_true_at_breakpoint): Reimplement.
13113 (add_breakpoint_commands): Take a struct breakpoint pointer
13114 instead of an address. Adjust.
13115 (gdb_no_commands_at_breakpoint): Rename to ...
13116 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
13117 parameter. Return true if no breakpoint was found. Change debug
13119 (gdb_no_commands_at_breakpoint): Reimplement.
13120 (run_breakpoint_commands): Rename to ...
13121 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
13122 and change return type to boolean.
13123 (run_breakpoint_commands): New function.
13124 (gdb_breakpoint_here): Also check for Z1 breakpoints.
13125 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
13126 breakpoint. Go through the_target->remove_point instead of
13127 assuming memory breakpoint.
13128 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
13129 software and hardware breakpoints.
13130 (reinsert_raw_breakpoint): Go through the_target->insert_point
13131 instead of assuming memory breakpoint.
13132 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
13133 software and hardware breakpoints.
13134 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
13135 Check both software and hardware breakpoints.
13136 (validate_inserted_breakpoint): Assert the breakpoint is a
13137 software breakpoint. Set the inserted flag to -1 instead of
13138 setting shlib_disabled.
13139 (delete_disabled_breakpoints): Adjust.
13140 (validate_breakpoints): Only validate software breakpoints.
13141 Adjust to inserted flag change.
13142 (check_mem_read, check_mem_write): Skip breakpoint types other
13143 than software breakpoints. Adjust to inserted flag change.
13144 * mem-break.h (enum raw_bkpt_type): New enum.
13145 (raw_breakpoint, struct process_info): Forward declare.
13146 (Z_packet_to_target_hw_bp_type): Delete declaration.
13147 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
13148 (set_gdb_breakpoint, delete_gdb_breakpoint)
13149 (clear_breakpoint_conditions): New declarations.
13150 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
13151 (breakpoint_inserted_here): Update comment.
13152 (add_breakpoint_condition, add_breakpoint_commands): Replace
13153 address parameter with a breakpoint pointer parameter.
13154 (gdb_breakpoint_here): Update comment.
13155 (delete_gdb_breakpoint_at): Delete.
13156 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
13157 * server.c (process_point_options): Take a struct breakpoint
13158 pointer instead of an address. Adjust.
13159 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
13160 delete_gdb_breakpoint.
13161 * spu-low.c (spu_target_ops): Install NULL as
13162 supports_z_point_type method.
13163 * target.h: Include mem-break.h.
13164 (struct target_ops) <prepare_to_access_memory>: Update comment.
13165 <supports_z_point_type>: New field.
13166 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13167 instead of a char. Also take a raw breakpoint pointer.
13168 * win32-arm-low.c (the_low_target): Install NULL as
13169 supports_z_point_type.
13170 * win32-i386-low.c (i386_supports_z_point_type): New function.
13171 (i386_insert_point, i386_remove_point): Adjust to new interface.
13172 (the_low_target): Install i386_supports_z_point_type.
13173 * win32-low.c (win32_supports_z_point_type): New function.
13174 (win32_insert_point, win32_remove_point): Adjust to new interface.
13175 (win32_target_ops): Install win32_supports_z_point_type.
13176 * win32-low.h (struct win32_target_ops):
13177 <supports_z_point_type>: New method.
13178 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
13179 instead of a char. Also take a raw breakpoint pointer.
13181 2014-05-20 Pedro Alves <palves@redhat.com>
13183 * mem-break.h: Include break-common.h.
13184 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13185 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
13186 (Z_packet_to_target_hw_bp_type): New declaration.
13187 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
13188 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
13189 (Z_PACKET_ACCESS_WP): Delete macros.
13190 (Z_packet_to_hw_type): Delete function.
13191 * i386-low.h: Don't include break-common.h here.
13192 (Z_packet_to_hw_type): Delete declaration.
13193 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
13194 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13195 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
13196 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
13197 * linux-aarch64-low.c: Don't include break-common.h here.
13198 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
13199 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
13200 (Z_packet_to_target_hw_bp_type): Delete function.
13201 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
13203 (mips_insert_point, mips_remove_point): Use
13204 Z_packet_to_target_hw_bp_type.
13206 2014-05-20 Pedro Alves <palves@redhat.com>
13208 * linux-aarch64-low.c: Include break-common.h.
13209 (enum target_point_type): Delete.
13210 (Z_packet_to_point_type): Rename to ...
13211 (Z_packet_to_target_hw_bp_type): ... this, and return a
13212 target_hw_bp_type instead.
13213 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
13214 instead of an enum target_point_type.
13215 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
13217 (aarch64_dr_state_insert_one_point)
13218 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
13219 (aarch64_handle_aligned_watchpoint)
13220 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
13221 Take an enum target_hw_bp_type instead of an enum
13223 (aarch64_supports_z_point_type): New function.
13224 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
13225 use Z_packet_to_target_hw_bp_type.
13227 2014-05-20 Joel Brobecker <brobecker@adacore.com>
13229 * configure.ac: Only use -Werror by default when DEVELOPMENT
13231 * configure: Regenerate.
13233 2014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
13235 Fix gdbserver qGetTLSAddr for x86_64 -m32.
13236 * linux-x86-low.c (X86_64_USER_REGS): New.
13237 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
13239 2014-04-28 Yao Qi <yao@codesourcery.com>
13241 * Makefile.in (i386-avx512.c): Fix the typo of generated file
13244 2014-04-25 Pedro Alves <palves@redhat.com>
13247 * linux-low.c (linux_attach_fail_reason_string): New function.
13248 (linux_attach_lwp): Delete.
13249 (linux_attach_lwp_1): Rename to ...
13250 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
13251 argument. Remove "initial" parameter. Return int instead of
13252 void. Don't error or warn here.
13253 (linux_attach): Adjust to call linux_attach_lwp. Call error on
13254 failure to attach to the tgid. Call warning when failing to
13256 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
13257 argument. Remove "initial" parameter. Return int instead of
13258 void. Don't error or warn here.
13259 (linux_attach_fail_reason_string): New declaration.
13260 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
13261 interface change. Use linux_attach_fail_reason_string.
13263 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
13264 Walfred Tedeschi <walfred.tedeschi@intel.com>
13266 * Makefile.in: Added rules to handle new files
13267 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
13268 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
13269 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
13270 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
13271 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
13272 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
13273 x32-avx512-linux.o.
13274 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
13275 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
13276 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
13277 i386/x32-avx512.xml.
13278 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
13279 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
13280 i386/x32-avx512-linux.xml.
13281 * i387-fp.c (num_avx512_k_registers): New constant for number
13283 (num_avx512_zmmh_low_registers): New constant for number of
13284 lower ZMM registers (0-15).
13285 (num_avx512_zmmh_high_registers): New constant for number of
13286 higher ZMM registers (16-31).
13287 (num_avx512_ymmh_registers): New contant for number of higher
13288 YMM registers (ymm16-31 added by avx521 on x86_64).
13289 (num_avx512_xmm_registers): New constant for number of higher
13290 XMM registers (xmm16-31 added by AVX512 on x86_64).
13291 (struct i387_xsave): Add space for AVX512 registers.
13292 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
13293 Add code to handle AVX512 registers.
13294 (i387_xsave_to_cache): Add code to handle AVX512 registers.
13295 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
13296 prototypei from generated file.
13297 (tdesc_amd64_avx512_linux): Likewise.
13298 (init_registers_x32_avx512_linux): Likewise.
13299 (tdesc_x32_avx512_linux): Likewise.
13300 (init_registers_i386_avx512_linux): Likewise.
13301 (tdesc_i386_avx512_linux): Likewise.
13302 (x86_64_regmap): Add AVX512 registers.
13303 (x86_linux_read_description): Add code to handle AVX512 XSTATE
13305 (initialize_low_arch): Add code to initialize AVX512 registers.
13307 2014-04-23 Pedro Alves <palves@redhat.com>
13309 * mem-break.c (find_gdb_breakpoint_at): Make static.
13310 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
13312 2014-04-23 Pedro Alves <palves@redhat.com>
13314 * i386-low.c: Don't include break-common.h here.
13315 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13316 prototype to take target_hw_bp_type as argument instead of a Z
13318 * i386-low.h: Include break-common.h here.
13319 (Z_packet_to_hw_type): Declare.
13320 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
13322 * linux-x86-low.c (x86_insert_point): Convert the packet number to
13323 a target_hw_bp_type before calling i386_low_insert_watchpoint.
13324 (x86_remove_point): Convert the packet number to a
13325 target_hw_bp_type before calling i386_low_remove_watchpoint.
13326 * win32-i386-low.c (i386_insert_point): Convert the packet number
13327 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
13328 (i386_remove_point): Convert the packet number to a
13329 target_hw_bp_type before calling i386_low_remove_watchpoint.
13331 2014-04-23 Pedro Alves <palves@redhat.com>
13333 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
13335 2014-04-10 Pedro Alves <palves@redhat.com>
13337 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
13338 Check if the condition or command is NULL before checking if the
13339 breakpoint is known. On success, return true.
13340 * mem-break.h (add_breakpoint_condition): Document return.
13341 (add_breakpoint_commands): Add describing comment.
13342 * server.c (skip_to_semicolon): New function.
13343 (process_point_options): Use it.
13345 2014-04-09 Pedro Alves <palves@redhat.com>
13347 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
13350 2014-02-27 Pedro Alves <palves@redhat.com>
13353 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
13355 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
13357 (last_thread_of_process_p): Take a PID argument instead of a
13359 (linux_wait_for_lwp): Delete.
13360 (num_lwps, check_zombie_leaders, not_stopped_callback): New
13362 (linux_low_filter_event): New function, party factored out from
13363 linux_wait_for_event.
13364 (linux_wait_for_event): Rename to ...
13365 (linux_wait_for_event_filtered): ... this. Add new filter ptid
13366 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
13367 sigsuspend. Check for zombie leaders.
13368 (linux_wait_for_event): Reimplement as wrapper around
13369 linux_wait_for_event_filtered.
13370 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
13371 a normal or signal exit is seen, it's the whole process exiting.
13372 (wait_for_sigstop): No longer a for_each_inferior callback.
13373 Rewrite on top of linux_wait_for_event_filtered.
13374 (stop_all_lwps): Call wait_for_sigstop directly.
13375 * server.c (resume, handle_target_event): Handle
13376 TARGET_WAITKIND_NO_RESUMED.
13378 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13380 * win32-low.c (psapi_get_dll_name,
13381 * win32_CreateToolhelp32Snapshot): Delete.
13382 (win32_CreateToolhelp32Snapshot, win32_Module32First)
13383 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
13385 (handle_load_dll): Add function description.
13386 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
13388 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13390 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
13392 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
13393 base address when calling win32_add_one_solib.
13394 (handle_load_dll): Delete local variable load_addr.
13395 Remove 0x1000 offset applied to DLL base address when calling
13396 win32_add_one_solib.
13397 (handle_unload_dll): Add comment.
13399 2014-02-26 Joel Brobecker <brobecker@adacore.com>
13401 * win32-low.c (win32_add_all_dlls): Renames
13402 win32_ensure_ntdll_loaded. Rewrite function documentation.
13403 Adjust implementation to always load all DLLs.
13404 Add 0x1000 offset to DLL base address when calling
13405 win32_add_one_solib.
13406 (child_initialization_done): New static global.
13407 (do_initial_child_stuff): Set child_initialization_done to
13408 zero during child initialization, and 1 after. Replace call
13409 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
13411 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
13412 (handle_unload_dll): Add function documentation.
13413 (get_child_debug_event): Ignore load and unload DLL events
13414 during child initialization.
13416 2014-02-20 Doug Evans <dje@google.com>
13418 Remove global all_lwps.
13419 * inferiors.h (ptid_of): Move here from linux-low.h.
13420 (pid_of, lwpid_of): Ditto.
13421 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
13422 parameter is a struct thread_info * now.
13423 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
13424 directly. Pass &all_threads to find_inferior instead of &all_lwps.
13425 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
13427 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
13428 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
13429 * linux-arm-low.c (update_registers_callback): Update, "entry"
13430 parameter is a struct thread_info * now.
13431 Fetch lwpid from current_inferior directly.
13432 (arm_insert_point): Pass &all_threads to find_inferior instead of
13434 (arm_remove_point): Ditto.
13435 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
13436 (arm_prepare_to_resume): Fetch pid from thread.
13437 (arm_read_description): Fetch lwpid from current_inferior directly.
13438 * linux-low.c (all_lwps): Delete.
13439 (delete_lwp): Delete call to remove_inferior.
13440 (handle_extended_wait): Fetch lwpid from thread.
13441 (add_lwp): Don't set lwp->entry.id. Remove call to
13442 add_inferior_to_list.
13443 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
13444 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
13445 (kill_one_lwp_callback): Ditto.
13446 (linux_kill): Don't dereference NULL pointer.
13447 Fetch ptid,lwpid from thread.
13448 (get_detach_signal): Fetch ptid from thread.
13449 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
13450 Simplify call to regcache_invalidate_thread.
13451 (delete_lwp_callback): Update, "entry" parameter is a
13452 struct thread_info * now. Fetch pid from thread.
13453 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
13454 (status_pending_p_callback): Update, "entry" parameter is a
13455 struct thread_info * now. Fetch ptid from thread.
13456 (find_lwp_pid): Update, "entry" parameter is a
13457 struct thread_info * now.
13458 (linux_wait_for_lwp): Fetch pid from thread.
13459 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
13460 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
13461 (enqueue_one_deferred_signal): Fetch lwpid from thread.
13462 (dequeue_one_deferred_signal): Ditto.
13463 (cancel_breakpoint): Fetch ptid from current_inferior.
13464 (linux_wait_for_event): Pass &all_threads to find_inferior,
13465 not &all_lwps. Fetch ptid, lwpid from thread.
13466 (count_events_callback): Update, "entry" parameter is a
13467 struct thread_info * now.
13468 (select_singlestep_lwp_callback): Ditto.
13469 (select_event_lwp_callback): Ditto.
13470 (cancel_breakpoints_callback): Ditto.
13471 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
13473 (select_event_lwp): Ditto. Fetch ptid from event_thread.
13474 (unsuspend_one_lwp): Update, "entry" parameter is a
13475 struct thread_info * now.
13476 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
13478 (linux_stabilize_threads): Ditto. And for for_each_inferior.
13479 Fetch lwpid from thread, not lwp.
13480 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
13481 Pass &all_threads to find_inferior, not &all_lwps.
13482 (send_sigstop): Fetch lwpid from thread, not lwp.
13483 (send_sigstop_callback): Update, "entry" parameter is a
13484 struct thread_info * now.
13485 (suspend_and_send_sigstop_callback): Ditto.
13486 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
13487 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
13488 struct thread_info * now.
13489 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
13491 (lwp_running): Update, "entry" parameter is a
13492 struct thread_info * now.
13493 (stop_all_lwps): Fetch ptid from thread.
13494 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
13495 (linux_resume_one_lwp): Fetch lwpid from thread.
13496 (linux_set_resume_request): Update, "entry" parameter is a
13497 struct thread_info * now. Fetch pid, lwpid from thread.
13498 (resume_status_pending_p): Update, "entry" parameter is a
13499 struct thread_info * now.
13500 (need_step_over_p): Ditto. Fetch lwpid from thread.
13501 (start_step_over): Fetch lwpid from thread.
13502 (linux_resume_one_thread): Update, "entry" parameter is a
13503 struct thread_info * now. Fetch lwpid from thread.
13504 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
13505 (proceed_one_lwp): Update, "entry" parameter is a
13506 struct thread_info * now. Fetch lwpid from thread.
13507 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
13508 struct thread_info * now.
13509 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
13510 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
13511 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
13513 (regsets_store_inferior_registers): Ditto.
13514 (fetch_register, store_register): Ditto.
13515 (linux_read_memory, linux_write_memory): Ditto.
13516 (linux_request_interrupt): Ditto.
13517 (linux_read_auxv): Ditto.
13518 (linux_xfer_siginfo): Ditto.
13519 (linux_qxfer_spu): Ditto.
13520 (linux_qxfer_libraries_svr4): Ditto.
13521 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
13522 moved to inferiors.h.
13524 (get_thread_lwp): Update.
13525 (struct lwp_info): Delete member "entry". Simplify comment for
13527 (all_lwps): Delete.
13528 * linux-mips-low.c (mips_read_description): Fetch lwpid from
13529 current_inferior directly.
13530 (update_watch_registers_callback): Update, "entry" parameter is a
13531 struct thread_info * now. Fetch pid from thread.
13532 (mips_linux_prepare_to_resume): Fetch ptid from thread.
13533 (mips_insert_point): Fetch lwpid from current_inferior.
13534 Pass &all_threads to find_inferior, not &all_lwps.
13535 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
13536 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
13538 (mips_stopped_data_address): Ditto.
13539 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
13541 * linux-tile-low.c (tile_arch_setup): Ditto.
13542 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
13543 (update_debug_registers_callback): Update, "entry" parameter is a
13544 struct thread_info * now. Fetch pid from thread.
13545 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
13546 Pass &all_threads to find_inferior, not &all_lwps.
13547 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
13548 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
13549 Pass &all_threads to find_inferior, not &all_lwps.
13550 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
13551 (i386_dr_low_get_status): Ditto.
13552 (x86_linux_prepare_to_resume): Fetch ptid from thread.
13553 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
13554 (x86_linux_read_description): Ditto.
13555 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
13557 2014-02-20 Doug Evans <dje@google.com>
13559 * inferiors.c (get_first_inferior): Fix buglet.
13561 2014-02-19 Doug Evans <dje@google.com>
13563 * gdbthread.h (add_thread): Change result type to struct thread_info *.
13564 * inferiors.c (add_thread): Change result type to struct thread_info *.
13565 All callers updated.
13566 (add_lwp): Call add_thread here instead of in callers.
13567 All callers updated.
13568 * linux-low.h (get_lwp_thread): Rewrite.
13569 (struct lwp_info): New member "thread".
13571 2014-02-19 Doug Evans <dje@google.com>
13573 * linux-low.c (add_lwp): Change result to struct lwp_info *.
13574 All callers updated.
13576 2014-02-19 Doug Evans <dje@google.com>
13578 * inferiors.c (add_thread): Fix whitespace.
13580 2014-02-19 Doug Evans <dje@google.com>
13582 * dll.c (clear_dlls): Replace accessing list implemention details
13584 * gdbthread.h (get_first_thread): Declare.
13585 * inferiors.c (for_each_inferior_with_data): New function.
13586 (get_first_thread): New function.
13587 (find_thread_ptid): Simplify.
13588 (get_first_inferior): New function.
13589 (clear_list): Delete.
13590 (one_inferior_p): New function.
13591 (clear_inferior_list): New function.
13592 (clear_inferiors): Update.
13593 * inferiors.h (for_each_inferior_with_data): Declare.
13594 (clear_inferior_list): Declare.
13595 (one_inferior_p): Declare.
13596 (get_first_inferior): Declare.
13597 * linux-low.c (linux_wait_for_event): Replace accessing list
13598 implemention details with API function.
13599 * server.c (target_running): Ditto.
13600 (accumulate_file_name_length): New function.
13601 (emit_dll_description): New function.
13602 (handle_qxfer_libraries): Replace accessing list implemention
13603 details with API function.
13604 (handle_qxfer_threads_worker): New function.
13605 (handle_qxfer_threads_proper): Replace accessing list implemention
13606 details with API function.
13607 (handle_query): Ditto.
13608 (visit_actioned_threads_callback_ftype): New typedef.
13609 (visit_actioned_threads_data): New struct.
13610 (visit_actioned_threads): Rewrite to be find_inferior callback.
13611 (resume): Call find_inferior.
13612 (handle_status): Replace accessing list implemention
13613 details with API function.
13614 (process_serial_event): Replace accessing list implemention details
13616 * target.c (set_desired_inferior): Replace accessing list implemention
13617 details with API function.
13618 * tracepoint.c (same_process_p): New function.
13619 (gdb_agent_about_to_close): Replace accessing list implemention
13620 details with API function.
13621 * win32-low.c (child_delete_thread): Replace accessing list
13622 implemention details with API function.
13623 (match_dll_by_basename): New function.
13624 (dll_is_loaded_by_basename): New function.
13625 (win32_ensure_ntdll_loaded): Replace accessing list implemention
13626 details call to dll_is_loaded_by_basename.
13628 2014-02-19 Doug Evans <dje@google.com>
13630 * dll.h (struct dll_info): Add comment.
13631 * gdbthread.h (struct thread_info): Add comment.
13632 (current_ptid): Simplify.
13633 * inferiors.c (add_process): Update.
13634 (remove_process): Update.
13635 * inferiors.h (struct process_info): Rename member "head" to "entry".
13636 * linux-low.c (delete_lwp): Update.
13638 (last_thread_of_process_p): Update.
13639 (kill_one_lwp_callback, linux_kill): Update.
13640 (status_pending_p_callback): Update.
13641 (wait_for_sigstop): Update. Simplify read of ptid.
13642 (start_step_over): Update.
13643 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
13644 (get_lwp_thread): Update.
13645 (struct lwp_info): Rename member "head" to "entry".
13646 * regcache.h (inferior_list_entry): Delete.
13647 * server.c (kill_inferior_callback): Update.
13648 (detach_or_kill_inferior_callback): Update.
13649 (print_started_pid): Update.
13650 (print_attached_pid): Update.
13651 (process_serial_event): Simplify read of ptid.
13652 * thread-db.c (thread_db_create_event): Update.
13653 (thread_db_get_tls_address): Update.
13654 * win32-low.c (current_inferior_ptid): Simplify.
13656 2014-02-19 Tom Tromey <tromey@redhat.com>
13658 * target.h (struct target_ops) <supports_btrace>: Add target_ops
13660 (target_supports_btrace): Update.
13662 2014-02-14 Yao Qi <yao@codesourcery.com>
13664 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
13665 (rsp-low-ipa.o): New target.
13667 2014-02-12 Tom Tromey <tromey@redhat.com>
13669 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
13670 convert_ascii_to_int.
13671 * regcache.c (registers_to_string): Likewise.
13672 * remote-utils.c (decode_M_packet): Likewise.
13673 * server.c (process_serial_event): Likewise.
13675 2014-02-12 Tom Tromey <tromey@redhat.com>
13677 * server.c (handle_query, handle_v_run): Use hex2bin, not
13679 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
13681 2014-02-12 Tom Tromey <tromey@redhat.com>
13683 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
13684 convert_int_to_ascii.
13685 * regcache.c (registers_to_string, collect_register_as_string):
13687 * remote-utils.c (look_up_one_symbol, relocate_instruction):
13689 * server.c (process_serial_event): Likewise.
13690 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
13691 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
13693 2014-02-12 Tom Tromey <tromey@redhat.com>
13695 * remote-utils.c (look_up_one_symbol, monitor_output): Use
13696 bin2hex, not hexify.
13697 * tracepoint.c (cmd_qtstatus): Likewise.
13699 2014-02-12 Tom Tromey <tromey@redhat.com>
13701 * remote-utils.c (monitor_output): Pass explicit length to
13704 2014-02-12 Tom Tromey <tromey@redhat.com>
13706 * tracepoint.c: Include rsp-low.h.
13707 * server.c: Include rsp-low.h.
13708 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
13709 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
13711 * remote-utils.c: Include rsp-low.h.
13712 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
13713 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
13714 (convert_int_to_ascii, convert_ascii_to_int): Move to
13716 * regcache.c: Include rsp-low.h.
13717 * ax.c: Include rsp-low.h.
13718 * Makefile.in (SFILES): Add common/rsp-low.c.
13719 (OBS): Add rsp-low.o.
13720 (rsp-low.o): New target.
13722 2014-02-12 Tom Tromey <tromey@redhat.com>
13724 * utils.h (pulongest, plongest, phex_nz): Don't declare.
13725 Include print-utils.h.
13726 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13727 (plongest, thirty_two, phex_nz): Remove.
13728 * Makefile.in (SFILES): Add common/print-utils.c.
13729 (OBS): Add print-utils.o.
13730 (print-utils-ipa.o): New target.
13731 (print-utils.o): New target.
13732 (IPA_OBJS): Add print-utils-ipa.o.
13734 2014-02-06 Tom Tromey <tromey@redhat.com>
13736 * Makefile.in (SFILES): Fix indentation.
13738 2014-02-05 Doug Evans <dje@google.com>
13740 * linux-low.c (linux_wait_for_event): Improve comment.
13741 (linux_wait_1): Keep current_inferior in sync with event_child.
13743 2014-01-22 Doug Evans <dje@google.com>
13745 * gdbthread.h (gdb_id_to_thread): Delete, unused.
13747 2014-01-22 Doug Evans <dje@google.com>
13749 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
13750 * configure: Regenerate.
13751 * config.in: Regenerate.
13752 * Makefile.in (SFILES): Add debug.c.
13753 (OBS): Add debug.o.
13754 * debug.c: New file.
13755 * debug.h: New file.
13756 * linux-aarch64-low.c (*): Update all debugging printfs to use
13757 debug_printf instead of fprintf.
13758 * linux-arm-low.c (*): Ditto.
13759 * linux-cris-low.c (*): Ditto.
13760 * linux-crisv32-low.c (*): Ditto.
13761 * linux-m32r-low.c (*): Ditto.
13762 * linux-sparc-low.c (*): Ditto.
13763 * linux-x86.c (*): Ditto.
13764 * linux-low.c (*): Ditto.
13765 (linux_wait_1): Add calls to debug_enter, debug_exit.
13766 (linux_wait): Remove redundant debugging printf.
13767 (stop_all_lwps): Add calls to debug_enter, debug_exit.
13768 (linux_resume, unstop_all_lwps): Ditto.
13769 * mem-break.c (*): Update all debugging printfs to use
13770 debug_printf instead of fprintf.
13771 * remote-utils.c (*): Ditto.
13772 * thread-db.c (*): Ditto.
13773 * server.c #include <ctype.h>, "gdb_vecs.h".
13774 (debug_threads): Moved to debug.c.
13775 (*): Update all debugging printfs to use debug_printf instead of
13777 (start_inferior): Replace call to fflush with call to debug_flush.
13778 (monitor_show_help): Mention set debug-format.
13779 (parse_debug_format_options): New function.
13780 (handle_monitor_command): Handle "monitor set debug-format".
13781 (gdbserver_usage): Mention --debug-format.
13782 (main): Parse --debug-format.
13783 * server.h (debug_threads): Declaration moved to debug.h.
13784 #include "debug.h".
13785 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
13786 trace_debug_1 that uses debug_printf.
13787 (tracepoint_look_up_symbols): Update all debugging printfs to use
13788 debug_printf instead of fprintf.
13790 2014-01-20 Baruch Siach <baruch@tkos.co.il>
13792 * linux-xtensa-low.c: Include asm/ptrace.h instead of
13795 2014-01-17 Pedro Alves <palves@redhat.com>
13798 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
13799 defined after including gdb_proc_service.h.
13801 2014-01-16 Doug Evans <dje@google.com>
13803 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
13804 (match_dll): Use it.
13806 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
13808 * target.h (target_ops) <read_btrace>: Change parameters and
13809 return type to allow error reporting.
13810 * server.c (handle_qxfer_btrace): Support delta reads. Pass
13811 trace reading errors on.
13812 * linux-low.c (linux_low_read_btrace): Pass trace reading
13814 (linux_low_disable_btrace): New.
13816 2014-01-15 Doug Evans <dje@google.com>
13818 * inferiors.c (thread_id_to_gdb_id): Delete.
13819 * inferiors.h (thread_id_to_gdb_id): Delete.
13821 2014-01-13 Eli Zaretskii <eliz@gnu.org>
13823 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
13824 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
13827 2014-01-08 Pedro Alves <palves@redhat.com>
13829 * server.c (handle_status): Don't discard previous queued stop
13830 replies or thread's pending status here.
13831 (main) <disconnection>: Do it here instead.
13833 2014-01-08 Pedro Alves <palves@redhat.com>
13835 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
13836 * server.c (visit_actioned_threads, handle_pending_status): New
13838 (handle_v_cont): Factor out parts to ...
13839 (resume): ... this new function. If in all-stop, and a thread
13840 being resumed has a pending status, report it without actually
13842 (myresume): Adjust to use the new 'resume' function.
13843 (clear_pending_status_callback, set_pending_status_callback)
13844 (find_status_pending_thread_callback): New functions.
13845 (handle_status): Handle the case of multiple threads having
13846 interesting statuses to report. Report threads' real last signal
13847 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
13848 with an interesting thread to report the status for, instead of
13849 always reporting the status of the first thread.
13851 2014-01-01 Joel Brobecker <brobecker@adacore.com>
13853 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
13854 * gdbreplay.c (gdbreplay_version): Likewise.
13856 2013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
13858 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
13859 iov.iov_len with the real length in use.
13861 2013-12-13 Joel Brobecker <brobecker@adacore.com>
13863 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
13864 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
13865 for all targets that use win32-low.c.
13866 * win32-low.c (win32_ensure_ntdll_loaded): New function.
13867 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
13869 2013-12-13 Pedro Alves <palves@redhat.com>
13871 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
13872 if equal to TARGET_WAITKIND_LOADED.
13873 * win32-low.c (cached_status): New static global.
13874 (win32_wait): Add declaration.
13875 (do_initial_child_stuff): Flush all initial pending debug events
13876 up to the initial breakpoint.
13877 (win32_wait): If CACHED_STATUS was set, return that instead
13878 of doing a real wait. Remove the code resuming the execution
13879 of the inferior after receiving a TARGET_WAITKIND_LOADED event
13880 during the initial phase. Also remove the code changing
13881 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
13882 TARGET_WAITKIND_STOPPED.
13884 2013-12-11 Yao Qi <yao@codesourcery.com>
13886 * notif.c (handle_notif_ack): Return 0 if no notification
13889 2013-11-20 Doug Evans <dje@google.com>
13891 * linux-low.c (linux_set_resume_request): Fix comment.
13893 2013-11-20 Doug Evans <dje@google.com>
13895 * linux-low.c (resume_status_pending_p): Tweak comment.
13897 2013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
13899 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
13900 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
13901 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
13902 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
13903 (srv_amd64_regobj): Add amd64-mpx.o.
13904 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
13905 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
13906 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
13907 * i387-fp.c (num_pl_bnd_register) Added constant.
13908 (num_pl_bnd_cfg_registers) Added constant.
13909 (struct i387_xsave) Added reserved area and MPX fields.
13910 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
13911 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
13913 (tdesc_i386_mpx_linux): Add MPX amd64 target.
13914 (init_registers_amd64_mpx_linux): Declare new function.
13915 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
13916 (x86_64_regmap): Add MPX registers.
13917 (x86_linux_read_description): Add MPX case.
13918 (initialize_low_arch): Initialize MPX targets.
13920 2013-11-18 Tom Tromey <tromey@redhat.com>
13922 * configure: Rebuild.
13923 * configure.ac: Don't check for stdlib.h.
13924 * gdbreplay.c: Unconditionally include stdlib.h.
13926 2013-11-18 Tom Tromey <tromey@redhat.com>
13928 * config.in: Rebuild.
13929 * configure: Rebuild.
13930 * configure.ac: Don't use AC_HEADER_DIRENT.
13932 2013-11-18 Tom Tromey <tromey@redhat.com>
13934 * server.h: Don't check HAVE_STRING_H.
13935 * gdbreplay.c: Don't check HAVE_STRING_H.
13936 * configure: Rebuild.
13938 2013-11-18 Tom Tromey <tromey@redhat.com>
13940 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
13943 2013-11-08 Tom Tromey <tromey@redhat.com>
13945 * configure, config.in: Rebuild.
13946 * configure.ac: Remove unused configury.
13948 2013-11-08 Tom Tromey <tromey@redhat.com>
13950 * acinclude.m4: Include common.m4, codeset.m4.
13951 * configure, config.in: Rebuild.
13952 * configure.ac: Use GDB_AC_COMMON.
13954 2013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
13956 * linux-s390-low.c (HWCAP_S390_TE): New define.
13957 (s390_arch_setup): Consider the TE field in the HWCAP for
13958 determining 'have_regset_tdb'.
13960 2013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
13963 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
13966 2013-10-02 Pedro Alves <palves@redhat.com>
13968 * server.c (process_serial_event): Don't output "GDBserver
13969 exiting" if GDB is connected through stdio.
13970 * target.c (mywait): Likewise, be silent if GDB is connected
13973 2013-10-01 Joel Brobecker <brobecker@adacore.com>
13975 * lynx-low.c (lynx_add_threads_after_attach): New function.
13976 (lynx_attach): Remove call to add_thread. Add call to
13977 lynx_add_threads_after_attach instead.
13979 2013-09-28 Mike Frysinger <vapier@gentoo.org>
13981 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
13982 * config.in, configure: Regenerated.
13984 2013-09-18 Yao Qi <yao@codesourcery.com>
13987 * server.c (start_inferior): Clear 'resume_info'.
13989 2013-09-16 Jiong Wang <jiwang@tilera.com>
13991 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
13994 2013-09-16 Jiong Wang <jiwang@tilera.com>
13996 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
13997 linux-tile-low.o to srv_tgtobj.
13999 2013-09-16 Will Newton <will.newton@linaro.org>
14001 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
14004 2013-09-06 Pedro Alves <palves@redhat.com>
14006 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
14007 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
14008 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
14009 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
14010 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
14011 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
14013 2013-09-06 Pedro Alves <palves@redhat.com>
14015 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
14016 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
14018 2013-09-06 Pedro Alves <palves@redhat.com>
14020 * linux-amd64-ipa.c: Include tracepoint.h.
14021 * linux-i386-ipa.c: Include tracepoint.h.
14023 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14025 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
14026 (ps_get_thread_area): New function.
14028 2013-09-06 Ricard Wanderlof <ricardw@axis.com>
14030 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
14031 (initialize_low_arch): Call init_registers_crisv32 rather than
14032 init_register_crisv32.
14034 2013-09-05 Pedro Alves <palves@redhat.com>
14036 * server.h (handle_vFile, hostio_last_error_from_errno): Move
14038 * hostio.h: ... this new file.
14039 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
14040 win32-low.c: Include hostio.h.
14042 2013-09-05 Pedro Alves <palves@redhat.com>
14044 * server.h (gdb_client_data, handler_func, callback_handler_func)
14045 (delete_file_handler, add_file_handler, append_callback_event)
14046 (delete_callback_event, start_event_loop, initialize_event_loop):
14047 Move to event-loop.h and include it.
14048 * event-loop.h: New file.
14050 2013-09-05 Pedro Alves <palves@redhat.com>
14052 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
14053 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
14054 (loaded_dll, unloaded_dll): Move to ...
14055 * dll.h: ... this new file.
14056 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
14058 2013-09-05 Pedro Alves <palves@redhat.com>
14060 * server.h (current_process, get_thread_process, all_processes)
14061 (add_inferior_to_list, for_each_inferior, current_inferior)
14062 (remove_inferior, add_process, remove_process, find_process_pid)
14063 (have_started_inferiors_p, have_attached_inferiors_p)
14064 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
14065 (clear_inferiors, find_inferior, find_inferior_id)
14066 (inferior_target_data, set_inferior_target_data)
14067 (inferior_regcache_data, set_inferior_regcache_data): Move to
14068 inferiors.h, and include it.
14069 * inferiors.h: New file.
14071 2013-09-05 Pedro Alves <palves@redhat.com>
14073 * server.h (struct emit_ops, current_insn_ptr, emit_error):
14077 2013-09-05 Pedro Alves <palves@redhat.com>
14079 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
14081 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
14082 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
14083 (handle_tracepoint_general_set, handle_tracepoint_query)
14084 (tracepoint_finished_step, tracepoint_was_hit)
14085 (release_while_stepping_state_list, current_traceframe)
14086 (in_readonly_region, traceframe_read_mem)
14087 (fetch_traceframe_registers, traceframe_read_sdata)
14088 (traceframe_read_info, struct fast_tpoint_collect_status)
14089 (fast_tracepoint_collecting, force_unlock_trace_buffer)
14090 (handle_tracepoit_bkpts, initialize_low_tracepoint)
14091 (supply_fast_tracepoint_registers)
14092 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
14093 (ipa_tdesc, claim_trampoline_space)
14094 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
14095 (agent_mem_read, agent_get_trace_state_variable_value)
14096 (agent_set_trace_state_variable_value, agent_tsv_read)
14097 (agent_mem_read_string, get_raw_reg_func_addr)
14098 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
14099 * tracepoint.h: ... this new file.
14101 2013-09-05 Pedro Alves <palves@redhat.com>
14103 * server.h (perror_with_name, error, fatal, warning, paddress)
14104 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
14106 * utils.h: New file.
14108 2013-09-05 Pedro Alves <palves@redhat.com>
14110 * server.h (remote_debug, noack_mode, transport_is_reliable)
14111 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
14112 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
14113 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
14114 (write_enn, initialize_async_io, enable_async_io)
14115 (disable_async_io, check_remote_input_interrupt_request)
14116 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
14117 (dead_thread_notify, prepare_resume_reply)
14118 (decode_address_to_semicolon, decode_address, decode_m_packet)
14119 (decode_M_packet, decode_X_packet, decode_xfer_write)
14120 (decode_search_memory_packet, unhexify, hexify)
14121 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
14122 (look_up_one_symbol, relocate_instruction)
14123 (monitor_output): Move to remote-utils.h, and include it.
14124 * remote-utils.h: New file.
14126 2013-09-05 Pedro Alves <palves@redhat.com>
14128 * server.h (_): Delete.
14130 2013-09-02 Pedro Alves <palves@redhat.com>
14132 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
14133 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
14135 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
14137 2013-09-02 Pierre Muller <muller@sourceware.org>
14139 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
14140 or WriteProcessMemory complete successfully and handle
14141 ERROR_PARTIAL_COPY error.
14143 2013-09-02 Pedro Alves <palves@redhat.com>
14145 * server.c (gdb_read_memory): Return -1 on traceframe memory read
14146 error instead of EIO.
14148 2013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14151 * linux-low.c: Include filestuff.h.
14152 (linux_create_inferior) <pid == 0>: Call close_most_fds.
14153 * lynx-low.c: Include filestuff.h.
14154 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
14155 * server.c: Include filestuff.h.
14156 (main): Call notice_open_fds.
14157 * spu-low.c: Include filestuff.h.
14158 (spu_create_inferior) <pid == 0>: Call close_most_fds.
14160 2013-08-22 Luis Machado <lgustavo@codesourcery.com>
14162 * Makefile.in: Explain why ../target and ../nat are not
14163 listed as include file search paths.
14164 (linux-waitpid.o): New object file rule.
14165 * configure.srv (srv_native_linux_obj): New variable.
14166 Replace all occurrences of linux native object files with
14167 $srv_native_linux_obj.
14168 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
14169 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
14170 (linux_enable_event_reporting): Remove declaration.
14171 (my_waitpid): Moved to common/linux-waitpid.c.
14172 (linux_wait_for_event): Pass ptid when calling
14173 linux_enable_event_reporting.
14174 (linux_supports_tracefork_flag): Remove.
14175 (linux_enable_event_reporting): Likewise.
14176 (linux_tracefork_grandchild): Remove.
14177 (STACK_SIZE): Moved to common/linux-ptrace.c.
14178 (linux_tracefork_child): Remove.
14179 (linux_test_for_tracefork): Remove.
14180 (linux_look_up_symbols): Call linux_supports_traceclone.
14181 (initialize_low): Remove call to linux_test_for_tracefork.
14182 * linux-low.h (PTRACE_TYPE_ARG3): Move to
14183 common/linux-ptrace.h.
14184 (PTRACE_TYPE_ARG4): Likewise.
14185 Include linux-ptrace.h.
14187 2013-08-21 Pedro Alves <palves@redhat.com>
14189 * config.in: Renegerate.
14191 2013-08-19 Luis Machado <lgustavo@codesourcery.com>
14193 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
14194 (SFILES): Remove $(srcdir)/common/target-common.c and
14195 add $(srcdir)/target/waitstatus.c.
14196 (OBS): Remove target-common.o and add waitstatus.o.
14197 (server_h): Remove $(srcdir)/../common/target-common.h and
14198 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
14199 and $(srcdir)/../target/waitstatus.h.
14200 (target-common.o): Remove.
14201 (waitstatus.o): New target object file.
14202 * target.h: Do not include target-common.h and
14203 include target/resume.h, target/wait.h and
14204 target/waitstatus.h.
14206 2013-08-13 Luis Machado <lgustavo@codesourcery.com>
14208 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14209 to PTRACE_TYPE_ARG3.
14210 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
14211 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
14213 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
14214 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
14216 2013-07-27 Jie Zhang <jie@codesourcery.com>
14217 Daniel Jacobowitz <dan@codesourcery.com>
14218 Yao Qi <yao@codesourcery.com>
14220 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
14221 (mips-linux-watch.o): New rule.
14222 (mips_linux_watch_h): New variable.
14223 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
14225 * linux-mips-low.c: Include mips-linux-watch.h.
14226 (struct arch_process_info, struct arch_lwp_info): New.
14227 (update_watch_registers_callback): New function.
14228 (mips_linux_new_process, mips_linux_new_thread) New functions.
14229 (mips_linux_prepare_to_resume, mips_insert_point): New
14231 (mips_remove_point, mips_stopped_by_watchpoint): New
14233 (rsp_bp_type_to_target_hw_bp_type): New function.
14234 (mips_stopped_data_address): New function.
14235 (the_low_target): Add watchpoint support functions.
14237 2013-07-27 Yao Qi <yao@codesourcery.com>
14239 * i386-low.c: Include break-common.h.
14240 (enum target_hw_bp_type): Remove.
14242 2013-07-24 Luis Machado <lgustavo@codesourcery.com>
14244 * Makefile.in (SFILES): /common/target-common.c.
14245 (OBS): Add target-common.o.
14246 (server_h): Add $(srcdir)/../common/target-common.h.
14247 (target-common.o): New target.
14248 * server.c (queue_stop_reply_callback): Free
14249 status string after use.
14250 * target.c (target_waitstatus_to_string): Remove.
14251 * target.h: Include target-common.h.
14252 (resume_kind): Likewise.
14253 (target_waitkind): Likewise.
14254 (target_waitstatus): Likewise.
14255 (TARGET_WNOHANG): Likewise.
14257 2013-07-04 Yao Qi <yao@codesourcery.com>
14259 * Makefile.in (host_alias): Use @host_noncanonical@.
14260 (target_alias): Use @target_noncanonical@.
14261 * configure.ac: Use ACX_NONCANONICAL_TARGET and
14262 ACX_NONCANONICAL_HOST.
14263 * configure: Regenerated.
14266 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14268 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14269 * configure: Rebuild.
14270 * Makefile.in (version_host, version_target): Get from configure.
14271 (version.c): Use $(version_host) and $(version_target).
14273 2013-07-03 Pedro Alves <palves@redhat.com>
14275 * Makefile.in (config.status): Depend on development.sh.
14276 * acinclude.m4: Include libmcheck.m4.
14277 * configure: Regenerate.
14279 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14281 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
14282 attribute inside the parentheses.
14283 (winapi_DebugSetProcessKillOnExit): Ditto.
14284 (winapi_DebugBreakProcess): Ditto.
14285 (winapi_GenerateConsoleCtrlEvent): Ditto.
14287 2013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
14289 * notif.h (notif_event): Add a dummy member to avoid compiler
14292 2013-07-01 Pedro Alves <palves@redhat.com>
14294 * hostio.c (HOSTIO_PATH_MAX): Define.
14295 (require_filename, handle_open, handle_unlink, handle_readlink):
14298 2013-07-01 Pedro Alves <palves@redhat.com>
14300 * server.h: Include "pathmax.h".
14301 * linux-low.c: Don't include sys/param.h.
14302 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
14304 * win32-low.c: Don't include sys/param.h.
14305 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
14307 2013-07-01 Pedro Alves <palves@redhat.com>
14309 * event-loop.c: Don't check HAVE_UNISTD_H before including
14311 * gdbreplay.c: Likewise.
14312 * remote-utils.c: Likewise.
14313 * server.c: Likewise.
14314 * configure.ac: Don't check for unistd.h.
14315 * configure: Regenerate.
14317 2013-06-28 Tom Tromey <tromey@redhat.com>
14319 * Makefile.in (version.c): Use version.in, not
14322 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
14324 * configure.ac (version_host, version_target): Set and AC_SUBST them.
14325 * configure: Rebuild.
14326 * Makefile.in (version_host, version_target): Get from configure.
14327 (version.c): Use $(version_host) and $(version_target).
14329 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14331 Fix trace-status to output user name without trailing colon.
14332 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
14334 2013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
14336 Fix trace-status to output proper start-time and stop-time.
14337 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
14338 output start time and stop time in hex as gdb expects.
14340 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14342 * tracepoint.c (build_traceframe_info_xml): Output trace state
14343 variables present in the trace buffer.
14345 2013-06-24 Tom Tromey <tromey@redhat.com>
14347 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
14349 (version.o): Remove.
14350 * gdbreplay.c: Include version.h.
14351 (version, host_name): Don't declare.
14352 * server.h: Include version.h.
14353 (version, host_name): Don't declare.
14355 2013-06-12 Pedro Alves <palves@redhat.com>
14357 * linux-x86-low.c (linux_is_elf64): Delete global.
14358 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
14359 with local linux_pid_exe_is_elf_64_file use.
14361 2013-06-11 Pedro Alves <palves@redhat.com>
14363 * linux-low.c (regset_disabled, disable_regset): New functions.
14364 (regsets_fetch_inferior_registers)
14365 (regsets_store_inferior_registers): Use them.
14366 (initialize_regsets_info); Don't allocate the disabled_regsets
14368 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
14371 2013-06-11 Pedro Alves <palves@redhat.com>
14373 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
14376 2013-06-11 Pedro Alves <palves@redhat.com>
14378 * linux-x86-low.c (initialize_low_arch): Call
14379 init_registers_x32_avx_linux.
14381 2013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
14383 Fix compatibility with Android Bionic.
14384 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
14387 2013-06-07 Pedro Alves <palves@redhat.com>
14390 * Makefile.in (OBS): Add tdesc.o.
14391 (IPA_OBJS): Add tdesc-ipa.o.
14392 (tdesc-ipa.o): New rule.
14393 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
14395 * linux-low.c (new_inferior): Delete.
14396 (disabled_regsets, num_regsets): Delete.
14397 (linux_add_process): Adjust to set the new per-process
14399 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
14400 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
14401 was a stop. When calling arch_setup, switch the current inferior
14402 to the thread that got an event.
14403 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
14404 (regsets_fetch_inferior_registers)
14405 (regsets_store_inferior_registers): New regsets_info parameter.
14407 (linux_register_in_regsets): New regs_info parameter. Adjust to
14409 (register_addr, fetch_register, store_register): New usrregs_info
14410 parameter. Adjust to use it.
14411 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
14412 parameter regs_info. Adjust to use it.
14413 (linux_fetch_registers): Get the current inferior's regs_info, and
14415 (linux_store_registers): Ditto.
14416 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
14417 (initialize_low): Don't initialize the target_regsets here. Call
14418 initialize_low_arch.
14419 * linux-low.h (target_regsets): Delete declaration.
14420 (struct regsets_info): New.
14421 (struct usrregs_info): New.
14422 (struct regs_info): New.
14423 (struct process_info_private) <new_inferior>: New field.
14424 (struct linux_target_ops): Delete the num_regs, regmap, and
14425 regset_bitmap fields. New field regs_info.
14426 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
14427 * i387-fp.c (num_xmm_registers): Delete.
14428 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
14429 calls to new interface.
14430 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
14431 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
14432 Infer the number of xmm registers from the regcache's target
14434 * i387-fp.h (num_xmm_registers): Delete.
14435 * inferiors.c (add_thread): Don't install the thread's regcache
14437 * proc-service.c (gregset_info): Fetch the current inferior's
14438 regs_info. Adjust to use it.
14439 * regcache.c: Include tdesc.h.
14440 (register_bytes, reg_defs, num_registers)
14441 (gdbserver_expedite_regs): Delete.
14442 (get_thread_regcache): If the thread doesn't have a regcache yet,
14443 create one, instead of aborting gdbserver.
14444 (regcache_invalidate_one): Rename to ...
14445 (regcache_invalidate_thread): ... this.
14446 (regcache_invalidate_one): New.
14447 (regcache_invalidate): Only invalidate registers of the current
14449 (init_register_cache): Add target_desc parameter, and use it.
14450 (new_register_cache): Ditto. Assert the target description has a
14451 non zero registers_size.
14452 (regcache_cpy): Add assertions. Adjust.
14453 (realloc_register_cache, set_register_cache): Delete.
14454 (registers_to_string, registers_from_string): Adjust.
14455 (find_register_by_name, find_regno, find_register_by_number)
14456 (register_cache_size): Add target_desc parameter, and use it.
14457 (free_register_cache_thread, free_register_cache_thread_one)
14458 (regcache_release, register_cache_size): New.
14459 (register_size): Add target_desc parameter, and use it.
14460 (register_data, supply_register, supply_register_zeroed)
14461 (supply_regblock, supply_register_by_name, collect_register)
14462 (collect_register_as_string, collect_register_by_name): Adjust.
14463 * regcache.h (struct target_desc): Forward declare.
14464 (struct regcache) <tdesc>: New field.
14465 (init_register_cache, new_register_cache): Add target_desc
14467 (regcache_invalidate_thread): Declare.
14468 (regcache_invalidate_one): Delete declaration.
14469 (regcache_release): Declare.
14470 (find_register_by_number, register_cache_size, register_size)
14471 (find_regno): Add target_desc parameter.
14472 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
14474 * remote-utils.c: Include tdesc.h.
14475 (outreg, prepare_resume_reply): Adjust.
14476 * server.c: Include tdesc.h.
14477 (gdbserver_xmltarget): Delete declaration.
14478 (get_features_xml, process_serial_event): Adjust.
14479 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
14481 (struct process_info) <tdesc>: New field.
14482 (ipa_tdesc): Declare.
14483 * tdesc.c: New file.
14484 * tdesc.h: New file.
14485 * tracepoint.c: Include tdesc.h.
14486 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
14487 (get_context_regcache): Adjust to pass ipa_tdesc down.
14488 (do_action_at_tracepoint): Adjust to get the register cache size
14489 from the context regcache's description.
14490 (traceframe_walk_blocks): Adjust to get the register cache size
14491 from the current trace frame's description.
14492 (traceframe_get_pc): Adjust to get current trace frame's
14493 description and pass it down.
14494 (gdb_collect): Adjust to get the register cache size from the
14496 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
14497 (gdbserver_xmltarget): Delete.
14498 (initialize_low_tracepoint): Set the ipa's target description.
14499 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
14500 (initialize_low_tracepoint): Set the ipa's target description.
14501 * linux-x86-low.c: Include tdesc.h.
14502 [__x86_64__] (is_64bit_tdesc): New.
14503 (ps_get_thread_area, x86_get_thread_area): Use it.
14504 (i386_cannot_store_register): Rename to ...
14505 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
14506 (i386_cannot_fetch_register): Rename to ...
14507 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
14508 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
14510 (target_regsets): Rename to ...
14511 (x86_regsets): ... this.
14512 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
14514 (x86_siginfo_fixup): Use is_64bit_tdesc.
14515 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
14516 (tdesc_x32_avx_linux, tdesc_x32_linux)
14517 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
14519 (x86_linux_update_xmltarget): Delete.
14520 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
14521 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
14522 (AMD64_LINUX_USER64_CS): New.
14523 (x86_linux_read_description): New, based on
14524 x86_linux_update_xmltarget.
14525 (same_process_callback): New.
14526 (x86_arch_setup_process_callback): New.
14527 (x86_linux_update_xmltarget): New.
14528 (x86_regsets_info): New.
14529 (amd64_linux_regs_info): New.
14530 (i386_linux_usrregs_info): New.
14531 (i386_linux_regs_info): New.
14532 (x86_linux_regs_info): New.
14533 (x86_arch_setup): Reimplement.
14534 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
14535 (x86_emit_ops): Ditto.
14536 (the_low_target): Adjust. Install x86_linux_regs_info,
14537 x86_cannot_fetch_register, and x86_cannot_store_register.
14538 (initialize_low_arch): New.
14539 * linux-ia64-low.c (tdesc_ia64): Declare.
14540 (ia64_fetch_register): Adjust.
14541 (ia64_usrregs_info, regs_info): New globals.
14542 (ia64_regs_info): New function.
14543 (the_low_target): Adjust.
14544 (initialize_low_arch): New function.
14545 * linux-sparc-low.c (tdesc_sparc64): Declare.
14546 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
14548 (sparc_arch_setup): New function.
14549 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
14550 (the_low_target): Adjust.
14551 (initialize_low_arch): New function.
14552 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
14553 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
14554 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
14555 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
14556 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
14557 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
14558 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
14559 (tdesc_powerpc_isa205_vsx64l): Declare.
14560 (ppc_cannot_store_register, ppc_collect_ptrace_register)
14561 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
14562 (ppc_set_pc, ppc_get_hwcap): Adjust.
14563 (ppc_usrregs_info): Forward declare.
14564 (!__powerpc64__) ppc_regmap_adjusted: New global.
14565 (ppc_arch_setup): Adjust to the current process'es target
14567 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
14568 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
14569 (ppc_store_evrregset): Adjust.
14570 (target_regsets): Rename to ...
14571 (ppc_regsets): ... this, and make static.
14572 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
14573 (ppc_regs_info): New function.
14574 (the_low_target): Adjust.
14575 (initialize_low_arch): New function.
14576 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
14577 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
14578 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
14579 (tdesc_s390x_linux64v2): Declare.
14580 (s390_collect_ptrace_register, s390_supply_ptrace_register)
14581 (s390_fill_gregset, s390_store_last_break): Adjust.
14582 (target_regsets): Rename to ...
14583 (s390_regsets): ... this, and make static.
14584 (s390_get_pc, s390_set_pc): Adjust.
14585 (s390_get_hwcap): New target_desc parameter, and use it.
14586 [__s390x__] (have_hwcap_s390_high_gprs): New global.
14587 (s390_arch_setup): Adjust to set the current process'es target
14588 description. Don't adjust the regmap.
14589 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
14590 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
14591 (regs_info_3264): New globals.
14592 (s390_regs_info): New function.
14593 (the_low_target): Adjust.
14594 (initialize_low_arch): New function.
14595 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
14596 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
14597 [__mips64] (init_registers_mips_linux)
14598 (init_registers_mips_dsp_linux): Delete defines.
14599 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
14600 (have_dsp): New global.
14601 (mips_read_description): New, based on mips_arch_setup.
14602 (mips_arch_setup): Reimplement.
14603 (get_usrregs_info): New function.
14604 (mips_cannot_fetch_register, mips_cannot_store_register)
14605 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
14606 (mips_fill_fpregset, mips_store_fpregset): Adjust.
14607 (target_regsets): Rename to ...
14608 (mips_regsets): ... this, and make static.
14609 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
14610 (dsp_regs_info, regs_info): New globals.
14611 (mips_regs_info): New function.
14612 (the_low_target): Adjust.
14613 (initialize_low_arch): New function.
14614 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
14615 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
14617 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
14618 (arm_read_description): New, with bits factored from
14620 (arm_arch_setup): Reimplement.
14621 (target_regsets): Rename to ...
14622 (arm_regsets): ... this, and make static.
14623 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
14624 (arm_regs_info): New function.
14625 (the_low_target): Adjust.
14626 (initialize_low_arch): New function.
14627 * linux-m68k-low.c (tdesc_m68k): Declare.
14628 (target_regsets): Rename to ...
14629 (m68k_regsets): ... this, and make static.
14630 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
14631 (m68k_regs_info): New function.
14632 (m68k_arch_setup): New function.
14633 (the_low_target): Adjust.
14634 (initialize_low_arch): New function.
14635 * linux-sh-low.c (tdesc_sharch): Declare.
14636 (target_regsets): Rename to ...
14637 (sh_regsets): ... this, and make static.
14638 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
14639 (sh_regs_info, sh_arch_setup): New functions.
14640 (the_low_target): Adjust.
14641 (initialize_low_arch): New function.
14642 * linux-bfin-low.c (tdesc_bfin): Declare.
14643 (bfin_arch_setup): New function.
14644 (bfin_usrregs_info, regs_info): New globals.
14645 (bfin_regs_info): New function.
14646 (the_low_target): Adjust.
14647 (initialize_low_arch): New function.
14648 * linux-cris-low.c (tdesc_cris): Declare.
14649 (cris_arch_setup): New function.
14650 (cris_usrregs_info, regs_info): New globals.
14651 (cris_regs_info): New function.
14652 (the_low_target): Adjust.
14653 (initialize_low_arch): New function.
14654 * linux-cris-low.c (tdesc_crisv32): Declare.
14655 (cris_arch_setup): New function.
14656 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
14657 (cris_regs_info): New function.
14658 (the_low_target): Adjust.
14659 (initialize_low_arch): New function.
14660 * linux-m32r-low.c (tdesc_m32r): Declare.
14661 (m32r_arch_setup): New function.
14662 (m32r_usrregs_info, regs_info): New globals.
14663 (m32r_regs_info): Adjust.
14664 (initialize_low_arch): New function.
14665 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
14666 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
14667 (tic6x_usrregs_info): Forward declare.
14668 (tic6x_read_description): New function, based on ...
14669 (tic6x_arch_setup): ... this. Reimplement.
14670 (target_regsets): Rename to ...
14671 (tic6x_regsets): ... this, and make static.
14672 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
14673 (tic6x_regs_info): New function.
14674 (the_low_target): Adjust.
14675 (initialize_low_arch): New function.
14676 * linux-xtensa-low.c (tdesc_xtensa): Declare.
14677 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
14678 (target_regsets): Rename to ...
14679 (xtensa_regsets): ... this, and make static.
14680 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
14682 (xtensa_arch_setup, xtensa_regs_info): New functions.
14683 (the_low_target): Adjust.
14684 (initialize_low_arch): New function.
14685 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
14686 (nios2_arch_setup): Set the current process'es tdesc.
14687 (target_regsets): Rename to ...
14688 (nios2_regsets): ... this.
14689 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
14690 (nios2_regs_info): New function.
14691 (the_low_target): Adjust.
14692 (initialize_low_arch): New function.
14693 * linux-aarch64-low.c (tdesc_aarch64): Declare.
14694 (aarch64_arch_setup): Set the current process'es tdesc.
14695 (target_regsets): Rename to ...
14696 (aarch64_regsets): ... this.
14697 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
14698 (aarch64_regs_info): New function.
14699 (the_low_target): Adjust.
14700 (initialize_low_arch): New function.
14701 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
14703 (target_regsets): Rename to ...
14704 (tile_regsets): ... this.
14705 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
14706 (tile_regs_info): New function.
14707 (tile_arch_setup): Set the current process'es tdesc.
14708 (the_low_target): Adjust.
14709 (initialize_low_arch): New function.
14710 * spu-low.c (tdesc_spu): Declare.
14711 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
14712 * win32-arm-low.c (tdesc_arm): Declare.
14713 (arm_arch_setup): New function.
14714 (the_low_target): Install arm_arch_setup instead of
14715 init_registers_arm.
14716 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
14717 (init_windows_x86): Rename to ...
14718 (i386_arch_setup): ... this. Set `win32_tdesc'.
14719 (the_low_target): Adjust.
14720 * win32-low.c (win32_tdesc): New global.
14721 (child_add_thread): Don't create the thread cache here.
14722 (do_initial_child_stuff): Set the new process'es tdesc.
14723 * win32-low.h (struct target_desc): Forward declare.
14724 (win32_tdesc): Declare.
14725 * lynx-i386-low.c (tdesc_i386): Declare global.
14726 (lynx_i386_arch_setup): Set `lynx_tdesc'.
14727 * lynx-low.c (lynx_tdesc): New global.
14728 (lynx_add_process): Set the new process'es tdesc.
14729 * lynx-low.h (struct target_desc): Forward declare.
14730 (lynx_tdesc): Declare global.
14731 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
14732 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
14733 * nto-low.c (nto_tdesc): New global.
14734 (do_attach): Set the new process'es tdesc.
14735 * nto-low.h (struct target_desc): Forward declare.
14736 (nto_tdesc): Declare.
14737 * nto-x86-low.c (tdesc_i386): Declare.
14738 (nto_x86_arch_setup): Set `nto_tdesc'.
14740 2013-06-04 Gary Benson <gbenson@redhat.com>
14742 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
14743 to qSupported response when appropriate.
14744 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
14745 with nonzero-length annex.
14746 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
14747 arguments supplied in annex.
14749 2013-05-31 Doug Evans <dje@google.com>
14752 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
14753 64 bits in 64-cross-32 environment.
14755 2013-05-28 Pedro Alves <palves@redhat.com>
14757 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
14758 (aarch64-without-fpu.c): Delete rule.
14759 * configure.srv (aarch64*-*-linux*): Remove references to
14760 aarch64-without-fpu.o and aarch64-without-fpu.xml.
14761 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
14764 2013-05-24 Pedro Alves <palves@redhat.com>
14766 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
14767 instead of strchr/decode_address. Error if the range isn't split
14768 with a ','. Don't assume there's be a ':' in the action.
14770 2013-05-23 Yao Qi <yao@codesourcery.com>
14771 Pedro Alves <palves@redhat.com>
14773 * linux-low.c (lwp_in_step_range): New function.
14774 (linux_wait_1): If the thread was range stepping and stopped
14775 outside the stepping range, report the stop to GDB. Otherwise,
14776 continue stepping. Add range stepping debug output.
14777 (linux_set_resume_request): Copy the step range from the resume
14778 request to the lwp.
14779 (linux_supports_range_stepping): New.
14780 (linux_target_ops) <supports_range_stepping>: Set to
14781 linux_supports_range_stepping.
14782 * linux-low.h (struct linux_target_ops)
14783 <supports_range_stepping>: New field.
14784 (struct lwp_info) <step_range_start, step_range_end>: New fields.
14785 * linux-x86-low.c (x86_supports_range_stepping): New.
14786 (the_low_target) <supports_range_stepping>: Set to
14787 x86_supports_range_stepping.
14788 * server.c (handle_v_cont): Handle 'r' action.
14789 (handle_v_requests): Append ";r" if the target supports range
14791 * target.h (struct thread_resume) <step_range_start,
14792 step_range_end>: New fields.
14793 (struct target_ops) <supports_range_stepping>:
14795 (target_supports_range_stepping): New macro.
14797 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14799 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
14800 confusion in comment.
14802 2013-05-17 Joel Brobecker <brobecker@adacore.com>
14804 * lynx-low.c (struct process_info_private): New type.
14805 (lynx_add_process): New function.
14806 (lynx_create_inferior, lynx_attach): Replace calls to
14807 add_process by calls to lynx_add_process.
14808 (lynx_resume): If PTID is null, then try using
14809 current_process()->private->last_wait_event_ptid.
14811 (lynx_clear_inferiors): Delete. The contents of that function
14812 has been inlined in lynx_mourn;
14813 (lynx_wait_1): Save the ptid in the process's private data.
14814 (lynx_mourn): Free the process' private data. Replace call
14815 to lynx_clear_inferiors by call to clear_inferiors.
14817 2013-05-17 Yao Qi <yao@codesourcery.com>
14819 * i386-low.c (i386_length_and_rw_bits): Move the comment to
14822 2013-05-16 Luis Machado <lgustavo@codesourcery.com>
14824 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
14825 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
14826 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
14827 PT_TEXT_END_ADDR guards. Update comments.
14828 (linux_target_op) <read_offsets>: Conditionally define to
14829 linux_read_offsets if the target is UCLIBC and if it defines
14830 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
14832 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
14833 Andrew Jenner <andrew@codesourcery.com>
14835 * Makefile.in (SFILES): Add linux-nios2-low.c.
14836 (clean): Add action to delete nios2-linux.c.
14837 (nios2-linux.c): New rule.
14838 * configure.srv: Add nios2*-*-linux*.
14839 * linux-nios2-low.c: New.
14841 2013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
14843 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
14845 2013-04-25 Hui Zhu <hui@codesourcery.com>
14848 * ax.c (ax_printf): Add fflush.
14850 2013-04-22 Tom Tromey <tromey@redhat.com>
14852 * Makefile.in (SFILES): Add filestuff.c.
14853 (OBS): Add filestuff.o.
14854 (filestuff.o): New target.
14855 * config.in, configure: Rebuild.
14856 * configure.ac: Check for fdwalk, pipe2.
14858 2013-04-17 Pedro Alves <palves@redhat.com>
14860 * configure.ac (USE_THREAD_DB): Delete variable.
14861 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
14862 Don't AC_SUBST USE_THREAD_DB.
14863 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
14864 * config.in, configure: Regenerate.
14866 2013-04-16 Pedro Alves <palves@redhat.com>
14868 * linux-low.h (struct lwp_info) <thread_known>: Move under
14869 the USE_THREAD_DB #ifdef.
14871 2013-04-16 Pedro Alves <palves@redhat.com>
14873 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
14874 (linux-low.o): Delete rule.
14875 * linux-low.h: Always include "gdb_thread_db.h" instead of
14876 conditionally including thread_db.h.
14877 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
14880 2013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
14882 * Makefile.in (install-only): Fix make install regression.
14884 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
14886 Convert man pages to texinfo, new gdbinit.5 texinfo page.
14887 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
14889 * gdbserver.1: Remove.
14891 2013-03-22 Pedro Alves <palves@redhat.com>
14893 * linux-low.c (handle_extended_wait): Don't call
14894 linux_enable_event_reporting.
14896 2013-03-15 Tony Theodore <tonyt@logyst.com>
14899 * Makefile.in (SHELL): Use @SHELL@.
14901 2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
14903 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
14906 2013-03-13 Joel Brobecker <brobecker@adacore.com>
14908 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
14909 Remove extraneous NULL element.
14911 2013-03-13 Yao Qi <yao@codesourcery.com>
14913 * tracepoint.c (traceframe_read_tsv): Look for the last matched
14914 'V' block in trace frame.
14916 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14918 * target.h (struct target_ops): Add btrace ops.
14919 (target_supports_btrace): New macro.
14920 (target_enable_btrace): New macro.
14921 (target_disable_btrace): New macro.
14922 (target_read_btrace): New macro.
14923 * gdbthread.h (struct thread_info): Add btrace field.
14924 * server.c: Include btrace-common.h.
14925 (handle_btrace_general_set): New function.
14926 (handle_btrace_enable): New function.
14927 (handle_btrace_disable): New function.
14928 (handle_general_set): Call handle_btrace_general_set.
14929 (handle_qxfer_btrace): New function.
14930 (struct qxfer qxfer_packets[]): Add btrace entry.
14931 * inferiors.c (remove_thread): Disable btrace.
14932 * linux-low: Include linux-btrace.h.
14933 (linux_low_enable_btrace): New function.
14934 (linux_low_read_btrace): New function.
14935 (linux_target_ops): Add btrace ops.
14936 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
14937 Add srv_linux_btrace=yes.
14938 (x86_64-*-linux*): Add linux-btrace.o.
14939 Add srv_linux_btrace=yes.
14940 * configure.ac: Define HAVE_LINUX_BTRACE.
14941 * config.in: Regenerated.
14942 * configure: Regenerated.
14944 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14946 * server.c (handle_qxfer): Preserve error message if -3 is
14948 (qxfer): Document the -3 return value.
14950 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
14952 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
14953 (linux_btrace_h): New variable.
14954 (linux-btrace.o): New rule.
14956 2013-03-08 Stan Shebs <stan@codesourcery.com>
14957 Hafiz Abid Qadeer <abidh@codesourcery.com>
14959 * tracepoint.c (trace_buffer_size): New global.
14960 (DEFAULT_TRACE_BUFFER_SIZE): New define.
14961 (init_trace_buffer): Change to one-argument function. Allocate
14962 trace buffer memory.
14963 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
14964 handle QTBuffer:size packet.
14965 (cmd_bigqtbuffer_size): New function.
14966 (initialize_tracepoint): Call init_trace_buffer with
14967 DEFAULT_TRACE_BUFFER_SIZE.
14968 * server.c (handle_query): Add QTBuffer:size in the
14971 2013-03-07 Yao Qi <yao@codesourcery.com>
14973 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
14974 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
14976 (cmd_qtsp): Adjust condition. Do post increment.
14977 Set cur_action and cur_step_action back to 0.
14979 2013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
14982 * linux-low.c (linux_write_memory): Return early success if LEN is
14985 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
14987 * configure.srv: Add x86_64-*-cygwin* as target.
14989 2013-02-28 Tom Tromey <tromey@redhat.com>
14991 * configure.ac: Invoke AC_SYS_LARGEFILE.
14992 * configure, config.in: Rebuild.
14994 2013-02-28 Corinna Vinschen <vinschen@redhat.com>
14996 * win32-low.c: Throughout, fix format strings and casts of
14997 printf-like functions to avoid type related warnings on all
14999 (get_child_debug_event): Print dwDebugEventCode as hex since
15000 that's how it's usually documented.
15002 2013-02-28 Yao Qi <yao@codesourcery.com>
15004 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
15007 2013-02-27 Jiong Wang <jiwang@tilera.com>
15009 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
15010 (reg-tilegx32.c): New rule.
15011 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
15012 * linux-tile-low.c (tile_arch_setup): New function. Invoke
15013 different register info initializer according to elf class.
15014 (init_registers_tilgx32): New function. The tilegx32 register info
15016 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
15017 (tile_store_gregset): Likewise.
15019 2013-02-27 Yao Qi <yao@codesourcery.com>
15021 * server.c (process_point_options): Print debug message when
15022 debug_threads is true.
15024 2013-02-26 Yao Qi <yao@codesourcery.com>
15026 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
15028 2013-02-19 Pedro Alves <palves@redhat.com>
15029 Kai Tietz <ktietz@redhat.com>
15033 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
15034 instead of strtoul to extract address from packet.
15035 (process_serial_event) <'z'>: Likewise.
15037 2013-02-18 Yao Qi <yao@codesourcery.com>
15039 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
15041 2013-02-14 Pedro Alves <palves@redhat.com>
15045 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
15046 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
15048 2013-02-14 Pedro Alves <palves@redhat.com>
15050 * tracepoint.c (cmd_qtdpsrc): Use savestring.
15052 2013-02-14 Pedro Alves <palves@redhat.com>
15054 * tracepoint.c (save_string): Delete.
15055 (add_tracepoint_action): Use savestring instead of save_string.
15057 2013-02-12 Pedro Alves <palves@redhat.com>
15059 * linux-xtensa-low.c: Ditto.
15060 * xtensa-xtregs.c: Ditto.
15062 2013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
15064 * thread-db.c (thread_db_get_tls_address): NULL pointer check
15067 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15069 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
15070 aarch64_num_wp_regs and aarch64_num_bp_regs to
15071 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
15073 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15075 * linux-aarch64-low.c (ps_get_thread_area): Replace
15076 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
15078 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
15079 Marcus Shawcroft <marcus.shawcroft@arm.com>
15080 Nigel Stephens <nigel.stephens@arm.com>
15081 Yufeng Zhang <yufeng.zhang@arm.com>
15083 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
15084 (aarch64.c, aarch64-without-fpu.c): New targets.
15085 * configure.srv (aarch64*-*-linux*): New.
15086 * linux-aarch64-low.c: New file.
15088 2013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
15090 * linux-low.c (handle_extended_wait, linux_create_inferior)
15091 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
15092 (dequeue_one_deferred_signal, linux_resume_one_thread)
15093 (fetch_register, linux_write_memory, linux_enable_event_reporting)
15094 (linux_tracefork_grandchild, linux_test_for_tracefork)
15095 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
15096 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
15097 where the argument is 0.
15099 2013-01-25 Yao Qi <yao@codesourcery.com>
15101 * event-loop.c: Include "queue.h".
15102 (gdb_event_p): New typedef.
15103 (struct gdb_event) <next_event>: Remove.
15104 (event_queue): Change to QUEUE(gdb_event_p).
15105 (async_queue_event): Remove.
15106 (gdb_event_xfree): New.
15107 (initialize_event_loop): New.
15108 (process_event): Use API from QUEUE.
15109 (wait_for_event): Likewise.
15110 * server.c (main): Call initialize_event_loop.
15111 * server.h (initialize_event_loop): Declare.
15113 2013-01-18 Yao Qi <yao@codesourcery.com>
15115 * ax.h (struct eval_agent_expr_context): New.
15116 (gdb_eval_agent_expr): Update declaration.
15117 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
15118 TFRAME. Add new argument CTX.
15119 * server.h (struct eval_agent_expr_context): Declare.
15120 (agent_mem_read, agent_tsv_read): Update declaration.
15121 (agent_mem_read_string): Likewise.
15122 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
15123 (add_traceframe_block): Add new argument TPOINT.
15124 Increase TPOINT->traceframe_usage.
15125 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
15126 eval_tracepoint_agent_expr.
15127 (condition_true_at_tracepoint): Likewise.
15128 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
15129 (agent_mem_read_string, agent_tsv_read): Likewise.
15131 2013-01-16 Yao Qi <yao@codesourcery.com>
15133 * linux-low.c (linux_resume_one_lwp): Don't check
15134 'lwp->bp_reinsert != 0'.
15136 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15137 Pedro Alves <palves@redhat.com>
15139 * lynx-low.c (ptrace_request_to_str): Define a temporary
15140 macro and use it to simplify this function's implementation.
15142 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15144 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
15147 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15149 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
15151 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15153 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
15155 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15157 * lynx-low.c (lynx_resume): Use the resume_info parameter
15158 to determine the ptid for the lynx_ptrace call, unless
15159 it is equal to minus_one_ptid, in which case we use the
15160 ptid of the current_inferior.
15161 (lynx_wait_1): After having received a thread create/exit
15162 event, resume the inferior's execution using the signaling
15163 thread's ptid, rather than the old ptid.
15165 2013-01-07 Joel Brobecker <brobecker@adacore.com>
15167 * lynx-low.c (lynx_resume): Delete variable ret.
15169 2013-01-01 Joel Brobecker <brobecker@adacore.com>
15171 * gdbreplay.c (gdbreplay_version): Update copyright year.
15172 * server.c (gdbserver_version): Likewise.
15174 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15176 * lynx-low.c (lynx_wait_1): Add debug trace before adding
15179 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15181 * lynx-low.c (ptrace_request_to_str): Add handling for
15182 PTRACE_GETTRACESIG.
15184 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15186 * lynx-low.c (lynx_attach): Delete variable new_process.
15188 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15190 * lynx-low.c (lynx_create_inferior): Delete variable
15193 2012-12-17 Joel Brobecker <brobecker@adacore.com>
15195 * lynx-low.c (ptrace_request_to_str): Do not handle
15196 PTRACE_GETTHREADLIST if this macro does not exist.
15198 2012-12-15 Yao Qi <yao@codesourcery.com>
15200 * Makefile.in (OBS): Add notif.o.
15201 * notif.c, notif.h: New.
15202 * server.c: Include "notif.h".
15203 (struct vstop_notif) <next>: Remove.
15205 (queue_stop_reply): Update.
15206 (push_event, send_next_stop_reply): Remove.
15207 (discard_queued_stop_replies): Update.
15208 (notif_stop): New variable.
15209 (handle_v_stopped): Remove.
15210 (handle_v_requests): Don't call handle_v_stopped. Call
15211 handle_ack_notif instead.
15212 (queue_stop_reply_callback): Call notif_event_enque instead
15213 of queue_stop_reply.
15214 (handle_status): Don't call send_next_stop_reply, call
15215 notif_write_event instead.
15216 (kill_inferior_callback): Likewise.
15217 (detach_or_kill_inferior_callback): Likewise.
15218 (main): Call initialize_notif.
15219 (process_serial_event): Call QUEUE_is_empty.
15220 (handle_target_event): Call notif_push instead of push event.
15221 * server.h (push_event): Remove declaration.
15223 2012-12-10 Tom Tromey <tromey@redhat.com>
15225 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
15226 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
15229 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
15230 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
15231 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
15232 (amd64-linux-ipa.o, ax.o): Rewrite.
15233 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
15234 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
15235 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
15236 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
15237 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
15238 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
15239 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
15240 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
15241 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
15242 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
15243 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
15244 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
15245 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
15246 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
15247 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
15248 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
15249 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
15250 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
15251 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
15252 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
15253 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
15254 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
15255 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
15256 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
15257 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
15258 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
15259 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
15260 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
15261 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
15262 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
15263 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
15264 (reg-tilegx.o): Remove.
15265 (all_object_files): New macro.
15266 Include .deps files.
15267 * aclocal.m4, configure: Rebuild.
15268 * acinclude.m4: Include depstand.m4, lead-dot.m4.
15269 * configure.ac: Invoke ZW_CREATE_DEPDIR,
15270 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
15272 2012-12-05 Tom Tromey <tromey@redhat.com>
15275 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
15277 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
15279 * configure.ac: Check for linux/perf_event.h.
15280 * config.in: Regenerated.
15281 * configure: Regenerated.
15283 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
15285 * hostio.c (handle_readlink): Decrease buffer size
15286 parameter passed to readlink by one byte.
15288 2012-11-26 Yao Qi <yao@codesourcery.com>
15290 * configure.ac (build_warnings): Append '-Wempty-body'.
15291 * configure: Regenerated.
15292 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
15295 2012-11-15 Pierre Muller <muller@sourceware.org>
15297 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
15298 * config.in: Regenerate.
15299 * configure: Regenerate.
15300 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
15301 Use "gdb_wait.h" header instead of <sys/wait.h> header.
15302 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15303 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
15305 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
15306 instead of <sys/wait.h> header.
15307 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
15309 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
15311 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
15312 (various make rules): Remove -DGDBSERVER
15314 2012-11-09 Yao Qi <yao@codesourcery.com>
15316 * spu-low.c (current_ptid): Move it to ..
15317 * gdbthread.h: ... here. New.
15318 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
15319 * server.c (myresume, process_serial_event): Likewise.
15320 * thread-db.c (thread_db_find_new_threads): Likewise.
15321 * tracepoint.c (run_inferior_command): Likewise.
15323 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
15325 * server.c (handle_search_memory_1): Include access length in
15328 2012-09-05 Michael Brandt <michael.brandt@axis.com>
15330 * linux-crisv32-low.c: Fix compile errors.
15332 2012-09-04 Yao Qi <yao@codesourcery.com>
15334 * tracepoint.c (cmd_qtsv): Adjust debug message.
15335 Don't check CUR_TPOINT.
15337 2012-08-28 Yao Qi <yao@codesourcery.com>
15339 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
15340 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
15341 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
15342 Remove declarations of xmalloc, xreallloc, xstrdup and
15344 * Makefile.in (libiberty_h): New.
15345 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
15346 (linux-bfin-low.o): Append dependency 'libiberty.h'.
15348 2012-08-23 Yao Qi <yao@codesourcery.com>
15350 * server.h: Remove declaration of 'xsnprintf'.
15352 2012-08-22 Keith Seitz <keiths@redhat.com>
15354 * server.h: Include build-gnulib-gbserver/config.h.
15355 * gdbreplay.c: Likewise.
15357 2012-08-08 Doug Evans <dje@google.com>
15359 * Makefile.in (SFILES): Add gdb_vecs.c.
15360 (OBS): Add gdb_vecs.o.
15361 (gdb_vecs_h, host_defs_h): New variables.
15362 (thread-db.o): Add $(gdb_vecs_h) dependency.
15363 (gdb_vecs.o): New rule.
15364 * thread-db.c: #include "gdb_vecs.h".
15365 (thread_db_load_search): Use a vector to iterate over path elements.
15366 Handle text appearing after "$pdir".
15368 * configure.ac: Add check for strstr.
15369 * config.in: Regenerate.
15370 * configure: Regenerate.
15372 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
15374 * hostio.c (handle_pread): If pread fails, fall back to attempting
15376 (handle_pwrite): Likewise for pwrite.
15378 2012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
15380 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
15381 between unsupported TYPE and unimplementable ADDR/LEN combination.
15382 (arm_insert_point): Act on new return value.
15384 2012-07-31 Pedro Alves <palves@redhat.com>
15386 * server.c (process_point_options): Only skip tokens if we find
15387 one that is unrecognized. Don't treat 'X' specially while
15388 skipping unrecognized tokens.
15390 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
15392 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
15393 to 4-byte-align HW breakpoint addresses for Thumb.
15395 2012-07-27 Yao Qi <yao@codesourcery.com>
15399 * server.h: Declare gdb_agent_about_to_close.
15400 * target.c (kill_inferior): Include "agent.h".
15401 New. Send command 'kill'.
15402 * target.h (kill_inferior): Removed macro.
15403 * tracepoint.c (gdb_agent_about_to_close): New.
15404 (gdb_agent_helper_thread): Handle command 'close'.
15405 Wait endlessly until the inferior stops.
15406 Install gdb_agent_remove_socket to atexit hook.
15407 (agent_socket_name): New static variable.
15408 (gdb_agent_socket_init): Replace local variable 'name' with
15409 'agent_socket_name'.
15410 (gdb_agent_remove_socket): New.
15412 2012-07-27 Yao Qi <yao@codesourcery.com>
15414 * server.c (process_point_options): Stop at 'X' when parsing.
15416 2012-07-19 Michael Eager <eager@eagercon.com>
15418 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
15420 * linux-x86-low.c (x86_insert_point, x86_remove_point):
15421 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
15422 hardware breakpoint.
15424 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
15426 * gdbserver/linux-low.c (initialize_low): Call
15427 linux_ptrace_init_warnings.
15429 2012-07-02 Doug Evans <dje@google.com>
15431 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
15434 2012-07-02 Stan Shebs <stan@codesourcery.com>
15436 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
15437 (ax.o): Add it to build rule.
15439 (OBS): Add format.o.
15440 (IPA_OBS): Add format.o.
15441 * server.c (handle_query): Claim support for breakpoint commands.
15442 (process_point_options): Add command case.
15443 (process_serial_event): Leave running if there are printfs in
15445 * mem-break.h (any_persistent_commands): Declare.
15446 (add_breakpoint_commands): Declare.
15447 (gdb_no_commands_at_breakpoint): Declare.
15448 (run_breakpoint_commands): Declare.
15449 * mem-break.c (struct point_command_list): New struct.
15450 (struct breakpoint): New field command_list.
15451 (any_persistent_commands): New function.
15452 (add_commands_to_breakpoint): New function.
15453 (add_breakpoint_commands): New function.
15454 (gdb_no_commands_at_breakpoint): New function.
15455 (run_breakpoint_commands): New function.
15456 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
15458 * ax.c: Include format.h.
15459 (ax_printf): New function.
15460 (gdb_eval_agent_expr): Add printf opcode.
15462 2012-06-13 Yao Qi <yao@codesourcery.com>
15464 * server.c (start_inferior): Remove duplicated writes to fields
15465 'last_resume_kind' and 'last_status' of 'current_inferior'.
15467 2012-06-12 Yao Qi <yao@codesourcery.com>
15468 Pedro Alves <palves@redhat.com>
15470 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
15472 * server.c (handle_v_cont): Extend comment.
15474 2012-06-11 Yao Qi <yao@codesourcery.com>
15476 * linux-low.c (linux_attach): Add 'static'.
15478 2012-06-06 Yao Qi <yao@codesourcery.com>
15480 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
15482 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15484 Fix gcc -flto compilation warning.
15485 * server.c (main): Make variable multi_mode and attach volatile.
15487 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15489 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
15490 if the platform doesn't know about it.
15492 2012-05-30 Jeff Kenton <jkenton@tilera.com>
15494 * Makefile.in (SFILES): Add linux-tile-low.c.
15495 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
15496 * configure.srv: Handle tilegx-*-linux*.
15497 * linux-tile-low.c: New file.
15499 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
15501 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
15503 2012-05-24 Pedro Alves <palves@redhat.com>
15507 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
15509 2012-05-24 Pedro Alves <palves@redhat.com>
15513 Replace target_signal with gdb_signal throughout.
15515 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
15517 * linux-low.c (linux_store_registers): Avoid the copying sequence
15518 when no data has been retrieved by ptrace.
15520 2012-05-22 Will Deacon <will.deacon@arm.com>
15522 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
15523 Include asm/ptrace.h.
15524 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
15527 2012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
15529 * linux-low.c (linux_store_registers): Don't re-retrieve data
15530 with ptrace that has already been obtained from /proc. Always
15531 copy any data retrieved with ptrace to the buffer supplied.
15533 2012-05-11 Yao Qi <yao@codesourcery.com>
15534 Pedro Alves <palves@redhat.com>
15536 * linux-low.c (enum stopping_threads_kind): New.
15537 (stopping_threads): Change type to `enum stopping_threads_kind'.
15538 (handle_extended_wait): If stopping and suspending threads, leave
15539 the new_lwp suspended too.
15540 (linux_wait_for_event): Adjust.
15541 (stop_all_lwps): Set `stopping_threads' to
15542 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
15543 whether we're suspending threads or just stopping them. Assert no
15546 2012-04-29 Yao Qi <yao@codesourcery.com>
15548 * server.h: Move some code to ...
15549 * gdbthread.h: ... here. New.
15550 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
15551 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
15552 (nto-low.o, win32-low.o): Likewise.
15553 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
15554 * regcache.c, remote-utils.c, server.c: Likewise.
15555 * target.c, tracepoint.c, win32-low.c: Likewise.
15557 2012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15559 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
15560 (PTRACE_ARG4_TYPE): Likewise.
15561 (PTRACE_XFER_TYPE): Likewise.
15562 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
15563 ptrace to PTRACE_ARG3_TYPE.
15564 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
15565 (PTRACE_ARG4_TYPE): Likewise.
15566 (PTRACE_XFER_TYPE): Likewise.
15567 (linux_detach_one_lwp): Cast fourth argument of
15568 ptrace to long then PTRACE_ARG4_TYPE.
15569 (regsets_fetch_inferior_registers): Cast third argument of
15570 ptrace to long then PTRACE_ARG3_TYPE.
15571 (regsets_store_inferior_registers): Likewise.
15573 2012-04-20 Pedro Alves <palves@redhat.com>
15575 * configure: Regenerate.
15577 2012-04-19 Pedro Alves <palves@redhat.com>
15579 * Makefile.in (GNULIB_BUILDDIR): New.
15580 (LIBGNU, INCGNU, GNULIB_H): Adjust.
15581 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
15582 (all, install-only, uninstall, clean-info, all-lib, clean): No
15583 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
15584 (maintainer-clean realclean distclean): Use subdir_do.
15586 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
15587 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
15588 * acinclude.m4: Include acx_configure_dir.m4.
15589 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
15590 calls. Call AC_PROG_RANLIB. Configure gnulib using
15593 (GNULIB_STDINT_H): Adjust.
15594 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
15595 * gdbreplay.c: Include build-gnulib/config.h.
15596 * server.h: Likewise.
15597 * aclocal.m4: Regenerate.
15598 * config.in: Regenerate.
15599 * configure: Regenerate.
15601 2012-04-19 Pedro Alves <palves@redhat.com>
15603 * Makefile.in (LIBGNU, INCGNU): Adjust.
15604 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
15605 (all, install-only, uninstall, clean-info, all-lib, clean)
15606 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
15607 * configure.ac: Adjust AC_OUTPUT output.
15608 * aclocal.m4: Regenerate.
15609 * configure: Regenerate.
15611 2012-04-19 Pedro Alves <palves@redhat.com>
15613 * Makefile.in (generated_files): New.
15614 (server_h): Remove the explicit dependency on config.h, and depend
15615 on $generated_files.
15617 2012-04-19 Pedro Alves <palves@redhat.com>
15619 * Makefile.in (INCGNU): Add -Ignulib.
15621 2012-04-19 Pedro Alves <palves@redhat.com>
15623 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
15624 (INCGNU): ... this, and spell out -I here.
15625 (GNULIB_LIB): Rename to ...
15626 (LIBGNU): ... this.
15627 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
15629 2012-04-19 Pedro Alves <palves@redhat.com>
15631 * config.in: Regenerate.
15633 2012-04-19 Pedro Alves <palves@redhat.com>
15635 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
15636 * server.h (memmem): Remove declaration.
15637 * config.in: Regenerate.
15638 * configure: Regenerate.
15640 2012-04-19 Yao Qi <yao@codesourcery.com>
15642 * Makefile.in (SFILES): Add common/vec.c.
15646 2012-04-19 Yao Qi <yao@codesourcery.com>
15648 * remote-utils.c (prepare_resume_reply): Replace with macro
15649 target_core_of_thread.
15650 * server.c (handle_qxfer_threads_proper): Likewise.
15651 * target.h (traget_core_of_thread): New macro.
15653 2012-04-18 Pedro Alves <palves@redhat.com>
15655 * aclocal.m4: Regenerate.
15656 * configure: Regenerate.
15658 2012-04-16 Yao Qi <yao@codesourcery.com>
15660 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
15661 duplicated on address.
15663 2012-04-16 Yao Qi <yao@codesourcery.com>
15665 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
15666 (struct tracepoint_action_ops) <send>: New field.
15667 (m_tracepoint_action_send, r_tracepoint_action_send): New.
15668 (agent_expr_send, x_tracepoint_action_send): New.
15669 (l_tracepoint_action_send): New.
15670 (cmd_qtdp): Download and install tracepoint
15671 according to `use_agent'.
15672 (run_inferior_command): Add one more parameter `len'.
15674 (tracepoint_send_agent): New.
15675 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
15677 2012-04-16 Yao Qi <yao@codesourcery.com>
15679 * tracepoint.c (download_tracepoints): Moved to ...
15680 (cmd_qtstart): ... here.
15682 2012-04-14 Yao Qi <yao@codesourcery.com>
15684 * tracepoint.c: Include inttypes.h.
15685 (struct collect_memory_action): Use sized types.
15686 (struct tracepoint): Likewise.
15687 (cmd_qtdp, stop_tracing): Update print specifiers.
15688 (cmd_qtp, response_tracepoint): Likewise.
15689 (collect_data_at_tracepoint): Likewise.
15690 (collect_data_at_step): Likewise.
15692 2012-04-14 Yao Qi <yao@codesourcery.com>
15694 Import gnulib module inttypes.
15695 * aclocal.m4, config.in, configure: Regenerated.
15697 2012-04-14 Yao Qi <yao@codesourcery.com>
15699 * Makefile.in (maintainer-clean, realclean, distclean): Remove
15700 Makefile and config.status at last.
15702 2012-04-13 Yao Qi <yao@codesourcery.com>
15704 * tracepoint.c: Include stdint.h unconditionally.
15706 2012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15708 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
15709 on BFD_HAVE_SYS_PROCFS_TYPE.
15710 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
15711 * configure: Regenerate.
15712 * config.in: Likewise.
15714 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
15716 * Makefile.in (clean): Also remove x32.c x32-linux.c
15717 x32-avx.c x32-avx-linux.c.
15718 (x32.o): New target.
15720 (x32-linux.o): Likewise.
15721 (x32-linux.c): Likewise.
15722 (x32-avx.o): Likewise.
15723 (x32-avx.c): Likewise.
15724 (x32-avx-linux.o): Likewise.
15725 (x32-avx-linux.c): Likewise.
15727 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
15728 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
15729 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
15730 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
15731 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
15732 i386/x32-avx-linux.xml.
15734 * linux-x86-low.c (init_registers_x32_linux): New prototype.
15735 (init_registers_x32_avx_linux): Likwise.
15736 (x86_linux_update_xmltarget): Call init_registers_x32_linux
15737 or init_registers_x32_avx_linux if linux_is_elf64 is false.
15739 2012-04-13 Pedro Alves <palves@redhat.com>
15741 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
15742 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
15743 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
15744 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
15747 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15749 * linux-x86-low.c (compat_x32_clock_t): New.
15750 (compat_x32_siginfo_t): Likewise.
15751 (compat_x32_siginfo_from_siginfo): Likewise.
15752 (siginfo_from_compat_x32_siginfo): Likewise.
15753 (linux_is_elf64): Likewise.
15754 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
15755 and siginfo_from_compat_x32_siginfo for x32.
15756 (x86_arch_setup): Set linux_is_elf64.
15758 2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
15761 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
15763 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
15764 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
15765 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
15766 compatible with process.
15768 2012-04-12 Yao Qi <yao@codesourcery.com>
15770 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
15771 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
15772 (install-only, install-info, clean): Handle sub dir gnulib.
15773 (all-lib, am--refresh): New targets.
15774 (memmem.o): Remove target.
15775 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
15776 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
15777 (AC_REPLACE_FUNCS): Remove memmem.
15778 Invoke gl_INIT and AM_INIT_AUTOMAKE.
15779 (AC_OUTPUT): Generate Makefile in gnulib/.
15780 * aclocal.m4, config.in, configure: Regenerated.
15782 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
15784 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
15786 2012-04-05 Pedro Alves <palves@redhat.com>
15788 -Werror=strict-aliasing
15790 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
15793 2012-04-04 Pedro Alves <palves@redhat.com>
15795 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15796 (sparc_store_gregset_from_stack, sparc_store_gregset)
15797 (sparc_breakpoint_at): Fix formatting.
15799 2012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
15801 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
15803 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
15804 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
15805 * config.in: Regenerate.
15806 * configure: Likewise.
15808 2012-03-29 Pedro Alves <palves@redhat.com>
15810 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
15811 Correct ptrace arguments.
15813 2012-03-28 Pedro Alves <palves@redhat.com>
15815 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
15816 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
15817 (IA64_FR1_REGNUM): New defines.
15818 (ia64_fetch_register): New.
15819 (the_low_target): Install it.
15820 * linux-low.h (struct linux_target_ops) <fetch_register>: New
15822 * linux-low.c (linux_fetch_registers): Try the
15823 the_low_target.fetch_register hook first.
15825 * linux-arm-low.c (the_low_target): Adjust.
15826 * linux-bfin-low.c (the_low_target): Adjust.
15827 * linux-cris-low.c (the_low_target): Adjust.
15828 * linux-crisv32-low.c (the_low_target): Adjust.
15829 * linux-m32r-low.c (the_low_target): Adjust.
15830 * linux-m68k-low.c (the_low_target): Adjust.
15831 * linux-mips-low.c (the_low_target): Adjust.
15832 * linux-ppc-low.c (the_low_target): Adjust.
15833 * linux-s390-low.c (the_low_target): Adjust.
15834 * linux-sh-low.c (the_low_target): Adjust.
15835 * linux-sparc-low.c (the_low_target): Adjust.
15836 * linux-tic6x-low.c (the_low_target): Adjust.
15837 * linux-x86-low.c (the_low_target): Adjust.
15838 * linux-xtensa-low.c (the_low_target): Adjust.
15840 2012-03-26 Pedro Alves <palves@redhat.com>
15842 * server.c (handle_qxfer_libraries): Don't bail early if
15843 the_target->qxfer_libraries_svr4 is not NULL.
15845 2012-03-26 Pedro Alves <palves@redhat.com>
15847 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
15849 2012-03-23 Pedro Alves <palves@redhat.com>
15851 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
15852 "library-list-svr4" element's start tag when the the DSO list is
15855 2012-03-23 Pedro Alves <palves@redhat.com>
15857 * linux-low.c (read_one_ptr): Read the inferior's pointer through
15858 a variable whose type size is the same as the inferior's pointer
15861 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
15863 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
15865 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
15866 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
15867 * linux-low.h: Include <signal.h>.
15868 (struct siginfo): Remove forward declaration.
15869 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
15872 2012-03-21 Mike Frysinger <vapier@gentoo.org>
15874 * .gitignore: Ignore more files.
15876 2012-03-19 Pedro Alves <palves@redhat.com>
15877 Jan Kratochvil <jan.kratochvil@redhat.com>
15879 * server.c (cont_thread, general_thread): Add describing comments.
15880 (start_inferior): Clear `cont_thread'.
15881 (handle_v_cont): Don't set `cont_thread' if resuming all threads
15884 2012-03-15 Yao Qi <yao@codesourcery.com>
15886 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
15888 (cmd_qtdp): ... here.
15890 2012-03-15 Yao Qi <yao@codesourcery.com>
15892 * tracepoint.c (struct tracepoint_action_ops): New.
15893 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
15894 (m_tracepoint_action_download): New.
15895 (r_tracepoint_action_download): New.
15896 (x_tracepoint_action_download): New.
15897 (l_tracepoint_action_download): New.
15898 (add_tracepoint_action): Install `action->ops' according type.
15899 (download_tracepoint_1): Move code `download' function pointer
15900 of various tracepoint_action_ops.
15902 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15904 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
15905 linux_ptrace_attach_warnings.
15907 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
15909 * Makefile.in (linux-ptrace.o): New.
15910 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
15911 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
15912 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
15913 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
15914 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
15916 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
15918 2012-03-08 Yao Qi <yao@codesourcery.com>
15919 Pedro Alves <palves@redhat.com>
15921 Fix PR server/13392.
15922 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
15923 offset of JMP insn.
15924 * tracepoint.c (remove_tracepoint): New.
15925 (cmd_qtdp): Call remove_tracepoint when failed to install.
15927 2012-03-07 Pedro Alves <palves@redhat.com>
15929 * linux-low.c (get_detach_signal): New.
15930 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
15931 Pass on pending signals to PTRACE_DETACH. Check the result of the
15933 * server.c (program_signals, program_signals_p): New.
15934 (handle_general_set): Handle QProgramSignals.
15935 * server.h (program_signals, program_signals_p): Declare.
15937 2012-03-05 Pedro Alves <palves@redhat.com>
15938 Jan Kratochvil <jan.kratochvil@redhat.com>
15940 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
15943 2012-03-03 Yao Qi <yao@codesourcery.com>
15945 * tracepoint.c (tracepoint_look_up_symbols): Update call to
15946 agent_look_up_symbols.
15948 2012-03-03 Yao Qi <yao@codesourcery.com>
15950 * Makefile.in (linux-low.o): Keep dependence on agent.h.
15951 (linux-x86-low.o): Likewise.
15952 * server.h: Remove in_process_agent_loaded.
15953 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
15957 2012-03-03 Yao Qi <yao@codesourcery.com>
15959 * tracepoint.c (gdb_agent_capability): New global.
15960 (in_process_agent_loaded_ust): Renamed to
15961 `in_process_agent_supports_ust'.
15963 (in_process_agent_supports_ust): Call agent_capability_check.
15964 (clear_installed_tracepoints): Assert that agent supports
15967 2012-03-03 Yao Qi <yao@codesourcery.com>
15969 * linux-low.c (linux_supports_agent): New.
15970 (linux_target_ops): Initialize field `supports_agent' with
15971 linux_supports_agent.
15972 * target.h (struct target_ops) <supports_agent>: New.
15973 (target_supports_agent): New macro.
15974 * server.c (handle_general_set): Handle packet 'QAgent'.
15975 (handle_query): Send `QAgent+'.
15976 * Makefile.in (server.o): Depends on agent.h.
15978 2012-03-03 Yao Qi <yao@codesourcery.com>
15980 * Makefile.in (OBS): Add agent.o.
15981 Add new rule for agent.o.
15982 Track dependence of tracepoint.c on agent.h.
15983 * tracepoint.c (run_inferior_command_1):
15984 (run_inferior_command): Call agent_run_command.
15985 (gdb_ust_connect_sync_socket): Deleted. Move it to
15987 (resume_thread, stop_thread): Likewise.
15988 (gdb_ust_socket_init): Renamed to ...
15989 (gdb_agent_socket_init): ... New.
15990 (gdb_ust_thread): Renamed to ...
15991 (gdb_agent_helper_thread): ... New.
15992 (gdb_ust_init): Move some code to ...
15993 (gdb_agent_init): ... here. New.
15994 [HAVE_UST]: Call gdb_ust_init.
15995 (initialize_tracepoint_ftlib): Call gdb_agent_init.
15996 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
15997 * config.in, configure: Regenerated.
15999 2012-03-02 Pedro Alves <palves@redhat.com>
16001 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
16002 * linux-low.c (struct simple_pid_list): New.
16003 (stopped_pids): New a struct simple_pid_list pointer.
16004 (add_to_pid_list, pull_pid_from_list): New.
16005 (handle_extended_wait): Don't assume the first signal new children
16006 report is SIGSTOP. Adjust call to pull_pid_from_list.
16007 (linux_wait_for_lwp): Adjust.
16009 2012-03-02 Yao Qi <yao@codesourcery.com>
16011 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
16014 2012-03-02 Yao Qi <yao@codesourcery.com>
16016 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
16017 `stop_pc' and `tpoint'. Update caller.
16019 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
16021 * linux-low.h (linux_target_ops): Add regset_bitmap member.
16022 * linux-low.c (use_linux_regsets): New macro.
16023 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
16024 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
16025 (linux_register_in_regsets): New function.
16026 (usr_fetch_inferior_registers): Skip registers covered by
16028 (usr_store_inferior_registers): Likewise.
16029 (usr_fetch_inferior_registers): New macro.
16030 (usr_store_inferior_registers): Likewise.
16031 (linux_fetch_registers): Handle mixed regset/non-regset targets.
16032 (linux_store_registers): Likewise.
16033 * linux-mips-low.c (init_registers_mips_dsp_linux): New
16035 (init_registers_mips64_dsp_linux): Likewise.
16036 (init_registers_mips_linux): New macro.
16037 (init_registers_mips_dsp_linux): Likewise.
16038 (mips_dsp_num_regs): Likewise.
16039 (DSP_BASE, DSP_CONTROL): New fallback macros.
16040 (mips_base_regs): New macro.
16041 (mips_regmap): Use it. Fix the size.
16042 (mips_dsp_regmap): New variable.
16043 (mips_dsp_regset_bitmap): Likewise.
16044 (mips_arch_setup): New function.
16045 (mips_cannot_fetch_register): Use the_low_target.regmap rather
16047 (mips_cannot_store_register): Likewise.
16048 (the_low_target): Update .arch_setup, .num_regs and .regmap
16049 initializers. Add .regset_bitmap initializer.
16050 * linux-arm-low.c (the_low_target): Add .regset_bitmap
16052 * linux-bfin-low.c (the_low_target): Likewise.
16053 * linux-cris-low.c (the_low_target): Likewise.
16054 * linux-crisv32-low.c (the_low_target): Likewise.
16055 * linux-ia64-low.c (the_low_target): Likewise.
16056 * linux-m32r-low.c (the_low_target): Likewise.
16057 * linux-m68k-low.c (the_low_target): Likewise.
16058 * linux-ppc-low.c (the_low_target): Likewise.
16059 * linux-s390-low.c (the_low_target): Likewise.
16060 * linux-sh-low.c (the_low_target): Likewise.
16061 * linux-sparc-low.c (the_low_target): Likewise.
16062 * linux-tic6x-low.c (the_low_target): Likewise.
16063 * linux-x86-low.c (the_low_target): Likewise.
16064 * linux-xtensa-low.c (the_low_target): Likewise.
16065 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
16066 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
16067 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
16069 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
16070 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
16072 2012-02-29 Yao Qi <yao@codesourcery.com>
16073 Pedro Alves <palves@redhat.com>
16075 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
16076 `step_over_finished' is true.
16078 2012-02-27 Pedro Alves <palves@redhat.com>
16080 * linux-low.c (pid_is_stopped): Delete, moved to common/.
16081 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
16083 2012-02-27 Pedro Alves <palves@redhat.com>
16086 * linux-low.c (pid_is_stopped): New.
16087 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
16089 2012-02-25 Luis Machado <lgustavo@codesourcery.com>
16091 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
16094 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
16096 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
16098 2012-02-24 Luis Machado <lgustavo@codesourcery>
16100 * server.c (handle_query): Advertise support for target-side
16101 breakpoint condition evaluation.
16102 (process_point_options): New function.
16103 (process_serial_event): When inserting a breakpoint, check for
16104 a target-side condition that should be evaluated.
16106 * mem-break.c: Include regcache.h and ax.h.
16107 (point_cond_list_t): New data structure.
16108 (breakpoint) <cond_list>: New field.
16109 (find_gdb_breakpoint_at): Make non-static.
16110 (delete_gdb_breakpoint_at): Clear any target-side
16112 (clear_gdb_breakpoint_conditions): New function.
16113 (add_condition_to_breakpoint): Likewise.
16114 (add_breakpoint_condition): Likewise.
16115 (gdb_condition_true_at_breakpoint): Likewise.
16116 (gdb_breakpoint_here): Return result directly instead
16117 of going through a local variable.
16119 * mem-break.h (find_gdb_breakpoint_at): New prototype.
16120 (clear_gdb_breakpoint_conditions): Likewise.
16121 (add_breakpoint_condition): Likewise.
16122 (gdb_condition_true_at_breakpoint): Likewise.
16124 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
16125 (need_step_over_p): Take target-side breakpoint condition into
16128 2012-02-24 Luis Machado <lgustavo@codesourcery>
16130 * server.h: Include tracepoint.h.
16131 (agent_mem_read, agent_get_trace_state_variable_value,
16132 agent_set_trace_state_variable_value,
16133 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
16134 get_set_tsv_func_addr): New prototypes.
16136 * ax.h: New include file.
16137 * ax.c: New source file.
16139 * tracepoint.c: Include ax.h.
16140 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
16141 agent_expr, eval_result_type): Move to ax.h.
16142 (parse_agent_expr): Rename to ...
16143 (gdb_parse_agent_expr): ... this, make it non-static and move
16145 (unparse_agent_expr) Rename to ...
16146 (gdb_unparse_agent_expr): ... this, make it non-static and move
16148 (eval_agent_expr): Rename to ...
16149 (eval_tracepoint_agent_expr): ... this.
16150 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
16151 forward declarations.
16152 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
16153 (agent_get_trace_state_variable_value): New function.
16154 (agent_set_trace_state_variable_value): New function.
16155 (cmd_qtdp): Call gdb_parse_agent_expr (...).
16156 (response_tracepoint): Call gdb_unparse_agent_expr (...).
16157 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
16158 (condition_true_at_tracepoint): Likewise.
16159 (parse_agent_expr): Rename to ...
16160 (gdb_parse_agent_expr): ... this and move to ax.c.
16161 (unparse_agent_expr): Rename to ...
16162 (gdb_unparse_agent_expr): ... this and move to ax.c.
16163 (gdb_agent_op_name): Move to ax.c.
16164 (eval_agent_expr): Rename to ...
16165 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
16167 (eval_tracepoint_agent_expr): New function.
16168 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
16170 (current_insn_ptr, emit_error, struct bytecode_address): Move to
16172 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
16173 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
16174 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
16175 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
16176 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
16177 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
16178 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
16179 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
16180 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
16181 (compile_bytecodes): Remove forward declaration.
16182 (is_goto_target): Move to ax.c.
16183 (compile_bytecodes): Move to ax.c and call
16184 agent_get_trace_state_variable_value (...) and
16185 agent_set_trace_state_variable_value (...).
16187 * Makefile.in: Update ax.c and IPA dependencies.
16189 2012-02-24 Pedro Alves <palves@redhat.com>
16191 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
16192 (cmd_bigqtbuffer_circular): ... this. Only handle
16193 'QTBuffer:circular:'.
16194 (handle_tracepoint_general_set): Adjust.
16196 2012-02-16 Yao Qi <yao@codesourcery.com>
16198 * inferiors.c: Move code to ...
16199 * dll.c: .... here. New.
16200 * server.h: Declare clear_dlls.
16201 * Makefile.in (SFILES): Add dll.c.
16205 2012-02-11 Yao Qi <yao@codesourcery.com>
16207 * server.c: (handle_monitor_command): Add a new parameter
16209 (handle_query): Update caller.
16211 2012-02-09 Joel Brobecker <brobecker@adacore.com>
16213 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
16214 * configure, config.in: Regenerate.
16215 * hostio.c: Provide an alternate implementation if HAVE_READLINK
16218 2012-02-02 Pedro Alves <palves@redhat.com>
16220 Try SIGKILL first, then PTRACE_KILL.
16221 * linux-low.c (linux_kill_one_lwp): New.
16222 (linux_kill_one_lwp): Rename to ...
16223 (kill_one_lwp_callback): ... this. Use the new
16224 linux_kill_one_lwp.
16226 2012-02-02 Pedro Alves <palves@redhat.com>
16228 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
16231 2012-01-27 Pedro Alves <palves@redhat.com>
16233 * linux-low.c (linux_child_pid_to_exec_file): Delete.
16234 (elf_64_file_p): Make static.
16235 (linux_pid_exe_is_elf_64_file): New.
16236 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
16237 Delete declarations.
16238 (linux_pid_exe_is_elf_64_file): Declare.
16239 * linux-x86-low.c (x86_arch_setup): Use
16240 linux_pid_exe_is_elf_64_file.
16242 2012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
16244 * linux-low.c (linux_wait_for_event_1): Rename to ...
16245 (linux_wait_for_event): ... here and merge it with former
16246 linux_wait_for_event - new variable wait_ptid, use it.
16247 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
16249 2012-01-23 Pedro Alves <palves@redhat.com>
16251 * server.c (main): Avoid yet another case of infinite loop while
16252 detaching/killing after a longjmp.
16254 2012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
16257 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
16259 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
16261 * hostio.c (handle_readlink): New function.
16262 (handle_vFile): Call it to handle "vFile:readlink" packets.
16264 2012-01-20 Pedro Alves <palves@redhat.com>
16265 Ulrich Weigand <ulrich.weigand@linaro.org>
16267 * server.c (handle_v_requests): Only support vAttach and vRun to
16268 start multiple processes when in extended protocol mode.
16270 2012-01-17 Pedro Alves <palves@redhat.com>
16272 * tracepoint.c (initialize_tracepoint): Use mmap instead of
16273 memalign plus mprotect to allocate the scratch buffer.
16275 2012-01-13 Pedro Alves <palves@redhat.com>
16277 * server.c (attach_inferior): Clear `cont_thread'.
16279 2012-01-13 Pedro Alves <palves@redhat.com>
16281 * server.c (main): Avoid infinite loop while detaching/killing
16284 2012-01-09 Doug Evans <dje@google.com>
16286 * server.c (start_inferior): Set last_ptid in --wrapper case.
16288 2012-01-06 Yao Qi <yao@codesourcery.com>
16290 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
16292 [IN_PROCESS_AGENT] (debug_agent): New global variable.
16294 2012-01-04 Yao Qi <yao@codesourcery.com>
16296 * tracepoint.c (cmd_qtdp): Print debug message
16297 for static tracepoint.
16299 2012-01-04 Yao Qi <yao@codesourcery.com>
16301 * tracepoint.c (trace_vdebug): Differentiate debug message
16302 between gdbserver and IPA.
16304 2012-01-03 Yao Qi <yao@codesourcery.com>
16306 * tracepoint.c (tracepoint_was_hit): Don't collect for
16309 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16311 * terminal.h: Reformat copyright header.
16313 2012-01-02 Joel Brobecker <brobecker@adacore.com>
16315 * server.c (gdbserver_version): Update copyright year.
16316 * gdbreplay.c (gdbreplay_version): Likewise.
16318 2011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
16320 * linux-low.c (linux_create_inferior): Put empty if clause for write.
16323 2011-12-18 Hui Zhu <teawater@gmail.com>
16324 * linux-low.c (linux_create_inferior): Save return value to ret.
16326 2011-12-18 Hui Zhu <teawater@gmail.com>
16328 * linux-low.c (linux_create_inferior): Save return value to ret.
16330 2011-12-16 Doug Evans <dje@google.com>
16332 * linux-low.c (linux_create_inferior): If stdio connection,
16333 redirect stdin from /dev/null, stdout to stderr.
16334 * remote-utils.c (remote_is_stdio): New static global.
16335 (remote_connection_is_stdio): New function.
16336 (remote_prepare): Handle stdio connection.
16337 (remote_open): Ditto.
16338 (remote_close): Don't close stdin for stdio connections.
16339 (read_prim,write_prim): New functions. Replace all calls to
16340 read/write to these.
16341 * server.c (main): Watch for "-" argument. Move call to
16342 remote_prepare before start_inferior.
16343 * server.h (STDIO_CONNECTION_NAME): New macro.
16344 (remote_connection_is_stdio): Declare.
16346 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
16347 in debugging output.
16349 2011-12-15 Yao Qi <yao@codesourcery.com>
16351 * tracepoint.c: Include sys/syscall.h.
16352 (gdb_ust_thread): Remove preprocessor conditional.
16354 2011-12-14 Pedro Alves <pedro@codesourcery.com>
16356 * linux-low.c (linux_detach_one_lwp): Call
16357 the_low_target.prepare_to_resume before detaching.
16359 2011-12-14 Yao Qi <yao@codesourcery.com>
16361 * tracepoint.c (gdb_ust_thread): Don't ignore return value
16364 2011-12-14 Yao Qi <yao@codesourcery.com>
16366 * i386-low.c (i386_low_stopped_data_address): Initialize local
16367 variable `control'.
16369 2011-12-13 Pedro Alves <pedro@codesourcery.com>
16373 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
16374 DR_CONTROL unless necessary. Extend comments.
16375 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
16376 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
16378 2011-12-13 Yao Qi <yao@codesourcery.com>
16380 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
16382 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
16384 2011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
16386 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
16387 Print new debug message for such case.
16389 2011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
16391 Fix overlapping memcpy.
16392 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
16393 the read_inferior_memory transfer.
16394 (delete_fast_tracepoint_jump): New variable buf. Use it for the
16395 write_inferior_memory transfer.
16396 (set_fast_tracepoint_jump): New variable buf. Use it for the
16397 read_inferior_memory and write_inferior_memory transfers.
16398 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
16399 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
16400 Use it for the write_inferior_memory transfer.
16401 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
16404 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16406 * linux-low.c (fetch_register, store_register): Make code
16407 consistent, fix formatting.
16409 2011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
16411 * linux-low.c (usr_store_inferior_registers): Factor out code
16412 to handle individual registers into...
16413 (store_register): ... this new function.
16415 2011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
16417 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
16418 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
16419 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
16420 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
16421 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
16422 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
16423 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
16424 (srv_xmlfiles): Add new XML files.
16426 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
16428 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
16429 (init_registers_s390_linux32v1): Add prototype.
16430 (init_registers_s390_linux32v2): Likewise.
16431 (init_registers_s390_linux64v1): Likewise.
16432 (init_registers_s390_linux64v2): Likewise.
16433 (init_registers_s390x_linux64v1): Likewise.
16434 (init_registers_s390x_linux64v2): Likewise.
16435 (s390_num_regs): Increment to 52.
16436 (s390_regmap): Add orig_r2 register.
16437 (s390_num_regs_3264): Increment to 68.
16438 (s390_regmap_3264): Add orig_r2 register.
16439 (s390_collect_ptrace_register): Handle orig_r2 register.
16440 (s390_supply_ptrace_register): Likewise.
16441 (s390_fill_last_break): New function.
16442 (s390_store_last_break): Likewise.
16443 (s390_fill_system_call): New function.
16444 (s390_store_system_call): Likewise.
16445 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
16447 (s390_check_regset): New function.
16448 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
16449 NT_S390_SYSTEM_CALL regsets and use appropriate description.
16450 Update target_regsets for available register sets.
16452 2011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
16453 Jan Kratochvil <jan.kratochvil@redhat.com>
16455 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
16456 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
16458 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
16459 * linux-low.h (struct process_info_private): New member r_debug.
16460 * server.c (handle_qxfer_libraries): Call
16461 the_target->qxfer_libraries_svr4.
16462 (handle_qxfer_libraries_svr4): New function.
16463 (qxfer_packets): New entry "libraries-svr4".
16464 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
16465 * target.h (struct target_ops): New member qxfer_libraries_svr4.
16466 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
16467 PACKET_qXfer_libraries_svr4.
16469 2011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
16471 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
16472 PSW address/mask between 8-byte and 16-byte formats.
16473 (s390_supply_ptrace_register): Likewise.
16474 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
16475 basic addressing mode bit.
16477 2011-11-24 Stan Shebs <stan@codesourcery.com>
16479 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
16481 2011-11-17 Stan Shebs <stan@codesourcery.com>
16483 * tracepoint.c (struct tracepoint): New field traceframe_usage.
16484 (tracing_start_time): New global.
16485 (tracing_stop_time): New global.
16486 (tracing_user_name): New global.
16487 (tracing_notes): New global.
16488 (tracing_stop_note): New global.
16489 (cmd_qtstart): Set traceframe_usage, start_time.
16490 (stop_tracing): Set stop_time.
16491 (cmd_qtstatus): Report additional status.
16492 (cmd_qtp): New function.
16493 (handle_tracepoint_query): Call it.
16494 (cmd_qtnotes): New function.
16495 (handle_tracepoint_general_set): Call it.
16496 (get_timestamp): Rename from tsv_get_timestamp.
16498 2011-11-14 Stan Shebs <stan@codesourcery.com>
16499 Kwok Cheung Yeung <kcy@codesourcery.com>
16501 * linux-x86-low.c (small_jump_insn): New.
16502 (i386_install_fast_tracepoint_jump_pad): Add arguments for
16503 trampoline and error message, build a trampoline and issue a small
16504 jump instruction to it.
16505 (x86_install_fast_tracepoint_jump_pad): Add arguments for
16506 trampoline and error message.
16507 (x86_get_min_fast_tracepoint_insn_len): New.
16508 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
16509 * linux-low.h (struct linux_target_ops): Add arguments to
16510 install_fast_tracepoint_jump_pad operation, add new operation.
16511 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
16513 (linux_get_min_fast_tracepoint_insn_len): New function.
16514 (linux_target_op): Add new operation.
16515 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
16516 (gdb_trampoline_buffer_end): Ditto.
16517 (gdb_trampoline_buffer_error): Ditto.
16518 (struct ipa_sym_addresses): Add fields for new IPA variables.
16519 (symbol_list): Add entries for new IPA variables.
16520 (struct tracepoint): Add fields to hold the address range of the
16521 trampoline used by the tracepoint.
16522 (trampoline_buffer_head): New static variable.
16523 (trampoline_buffer_tail): Ditto.
16524 (claim_trampoline_space): New function.
16525 (have_fast_tracepoint_trampoline_buffer): New function.
16526 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
16528 (install_fast_tracepoint): Ditto, also add error buffer argument.
16529 (cmd_qtminftpilen): New function.
16530 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
16531 (fast_tracepoint_from_trampoline_address): New function.
16532 (fast_tracepoint_collecting): Handle trampoline as part of jump
16534 (set_trampoline_buffer_space): New function.
16535 (initialize_tracepoint): Initialize new IPA variables.
16536 * target.h (struct target_ops): Add arguments to
16537 install_fast_tracepoint_jump_pad operation, add new
16538 get_min_fast_tracepoint_insn_len operation.
16539 (target_get_min_fast_tracepoint_insn_len): New.
16540 (install_fast_tracepoint_jump_pad): Add arguments.
16541 * server.h (IPA_BUFSIZ): Define.
16542 * linux-i386-ipa.c: Include extra header files.
16543 (initialize_fast_tracepoint_trampoline_buffer): New function.
16544 (initialize_low_tracepoint): Call it.
16545 * server.h (set_trampoline_buffer_space): Declare.
16546 (claim_trampoline_space): Ditto.
16547 (have_fast_tracepoint_trampoline_buffer): Ditto.
16549 2011-11-14 Yao Qi <yao@codesourcery.com>
16551 * server.c (handle_query): Handle InstallInTrace for qSupported.
16552 * tracepoint.c (add_tracepoint): Sort list.
16553 (install_tracepoint, download_tracepoint): New.
16554 (cmd_qtdp): Call them to install and download tracepoints.
16555 (sort_tracepoints): Removed.
16556 (cmd_qtstart): Update.
16558 2011-11-14 Yao Qi <yao@codesourcery.com>
16560 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
16561 * mem-break.h: Declare.
16562 * tracepoint.c (cmd_qtstart): Move some code to ...
16563 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
16565 (download_tracepoints): Move some code to ...
16566 (download_tracepoint_1): ... here. New.
16568 2011-11-08 Yao Qi <yao@codesourcery.com>
16570 * remote-utils.c (relocate_instruction): A comment fix.
16572 2011-11-07 Joel Brobecker <brobecker@adacore.com>
16574 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
16575 (i386_dr_low_get_control, i386_dr_low_get_status): Use
16576 dr_status_mirror and dr_control_mirror from debug_reg_state.
16577 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
16578 (i386_initial_stuff): Remove use of deleted globals.
16579 (i386_get_thread_context, i386_set_thread_context,
16580 i386_thread_added): Use dr_status_mirror and dr_control_mirror
16581 from debug_reg_state.
16583 2011-11-05 Yao Qi <yao@codesourcery.com>
16585 * tracepoint.c (gdb_collect): Loop over tracepoints of same
16586 address as TPOINT's.
16588 2011-11-02 Stan Shebs <stan@codesourcery.com>
16590 * tracepoint.c (agent_mem_read_string): New function.
16591 (eval_agent_expr): Call it for tracenz.
16592 * server.c (handle_query): Report support for tracenz.
16594 2011-11-02 Yao Qi <yao@codesourcery.com>
16596 * tracepoint.c (cmd_qtstart): Remove unused local variables.
16598 2011-11-02 Yao Qi <yao@codesourcery.com>
16600 * target.h: Fix a typo in comment.
16602 2011-10-31 Pedro Alves <pedro@codesourcery.com>
16604 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
16605 clobber the breakpoints' shadows with fast tracepoint jumps.
16606 * mem-break.h (check_mem_write): Add `myaddr' parameter.
16607 * target.c (write_inferior_memory): Also pass MYADDR down to
16610 2011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
16612 * configure.ac: Check support for personality routine.
16613 * configure: Regenerate.
16614 * config.in: Likewise.
16615 * linux-low.c: Include <sys/personality.h>.
16616 Define ADDR_NO_RANDOMIZE if necessary.
16617 (linux_create_inferior): Disable address space randomization when
16618 forking inferior, if requested.
16619 (linux_supports_disable_randomization): New function.
16620 (linux_target_ops): Install it.
16621 * server.h (disable_randomization): Declare.
16622 * server.c (disable_randomization): New global variable.
16623 (handle_general_set): Handle QDisableRandomization.
16624 (handle_query): Likewise for qSupported.
16625 (main): Support --disable-randomization and --no-disable-randomization
16626 command line arguments.
16627 * target.h (struct target_ops): Add supports_disable_randomization.
16628 (target_supports_disable_randomization): New macro.
16630 2011-09-29 Mike Frysinger <vapier@gentoo.org>
16632 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
16634 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
16635 [!PT_GETDSBT] (target_loadmap): New definition.
16636 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
16637 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
16638 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
16639 and PT_GETDSBT to LINUX_LOADMAP.
16640 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
16641 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
16643 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16645 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
16646 (arm_linux_hwbp_cap): New static variable.
16647 (arm_linux_get_hwbp_cap): Replace by ...
16648 (arm_linux_init_hwbp_cap): ... this new function.
16649 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
16650 (arm_linux_get_hw_watchpoint_count): Likewise.
16651 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16652 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
16653 (arm_prepare_to_resume): Use perror_with_name instead of error.
16655 2011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
16657 * linux-arm-low.c: Include <signal.h>.
16658 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
16659 (struct arm_linux_hwbp_cap): New data type.
16660 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
16661 (struct arm_linux_hw_breakpoint): New data type.
16662 (MAX_BPTS, MAX_WPTS): Define.
16663 (struct arch_process_info, struct arch_lwp_info): New data types.
16664 (arm_linux_get_hwbp_cap): New function.
16665 (arm_linux_get_hw_breakpoint_count): Likewise.
16666 (arm_linux_get_hw_watchpoint_count): Likewise.
16667 (arm_linux_get_hw_watchpoint_max_length): Likewise.
16668 (arm_hwbp_control_initialize): Likewise.
16669 (arm_hwbp_control_is_enabled): Likewise.
16670 (arm_hwbp_control_is_initialized): Likewise.
16671 (arm_hwbp_control_disable): Likewise.
16672 (arm_linux_hw_breakpoint_equal): Likewise.
16673 (arm_linux_hw_point_initialize): Likewise.
16674 (struct update_registers_data): New data structure.
16675 (update_registers_callback: New function.
16676 (arm_insert_point): Likewise.
16677 (arm_remove_point): Likewise.
16678 (arm_stopped_by_watchpoint): Likewise.
16679 (arm_stopped_data_address): Likewise.
16680 (arm_new_process): Likewise.
16681 (arm_new_thread): Likewise.
16682 (arm_prepare_to_resume): Likewise.
16683 (the_low_target): Register arm_insert_point, arm_remove_point,
16684 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
16685 arm_new_thread, and arm_prepare_to_resume.
16687 2011-09-15 Stan Shebs <stan@codesourcery.com>
16689 * server.h (struct emit_ops): Add compare-goto fields.
16690 * tracepoint.c (gdb_agent_op_sizes): New table.
16691 (emit_eq_goto): New function.
16692 (emit_ne_goto): New function.
16693 (emit_lt_goto): New function.
16694 (emit_le_goto): New function.
16695 (emit_gt_goto): New function.
16696 (emit_ge_goto): New function.
16697 (is_goto_target): New function.
16698 (compile_bytecodes): Recognize special cases of compare-goto
16699 combinations and call specialized emitters for them.
16700 * linux-x86-low.c (amd64_emit_eq_goto): New function.
16701 (amd64_emit_ne_goto): New function.
16702 (amd64_emit_lt_goto): New function.
16703 (amd64_emit_le_goto): New function.
16704 (amd64_emit_gt_goto): New function.
16705 (amd64_emit_ge_goto): New function.
16706 (amd64_emit_ops): Add the new functions.
16707 (i386_emit_eq_goto): New function.
16708 (i386_emit_ne_goto): New function.
16709 (i386_emit_lt_goto): New function.
16710 (i386_emit_le_goto): New function.
16711 (i386_emit_gt_goto): New function.
16712 (i386_emit_ge_goto): New function.
16713 (i386_emit_ops): Add the new functions.
16715 2011-09-08 Stan Shebs <stan@codesourcery.com>
16717 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
16718 (i386_emit_epilogue): Restore %ebx.
16720 2011-08-31 Jie Zhang <jzhang918@gmail.com>
16722 * server.c (step_thread): Remove definition.
16723 (process_serial_event): Don't handle Hs.
16724 * server.h (step_thread): Remove declaration.
16725 * target.c (set_desired_inferior): Remove use of step_thread.
16727 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16729 * linux-low.c: Include linux-procfs.h.
16730 (linux_attach_lwp_1): Update comments.
16731 (linux_attach): Scan for existing threads when attaching to a
16732 process that is the tgid.
16733 * Makefile.in: Update dependencies.
16735 2011-08-24 Luis Machado <lgustavo@codesourcery.com>
16737 * configure.srv: Add linux-procfs.o dependencies.
16739 2011-08-14 Yao Qi <yao@codesourcery.com>
16741 * target.h (struct target_ops): Fix indent.
16742 * win32-low.c (win32_target_ops): Fix comment.
16744 2011-08-14 Andrew Jenner <andrew@codesourcery.com>
16745 Yao Qi <yao@codesourcery.com>
16747 * Makefile.in (clean): Remove tic6x-*.c files.
16748 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
16749 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
16750 (tic6x-c64xp-linux.c): Likewise.
16751 * configure.srv: Add support for tic6x-*-uclinux.
16752 * linux-tic6x-low.c: New.
16753 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
16755 2011-08-14 Andrew Stubbs <ams@codesourcery.com>
16756 Yao Qi <yao@codesourcery.com>
16758 * target.h (struct target_ops): Add read_loadmap.
16759 * linux-low.c (struct target_loadseg): New type.
16760 (struct target_loadmap): New type.
16761 (linux_read_loadmap): New function.
16762 (linux_target_ops): Add linux_read_loadmap.
16763 * server.c (handle_query): Support qXfer:fdpic:read packet.
16764 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
16767 2011-08-05 Eli Zaretskii <eliz@gnu.org>
16769 * win32-low.c: Include <stdint.h>.
16771 2011-07-22 Pedro Alves <pedro@codesourcery.com>
16773 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
16774 to the inferior here.
16775 (i386_remove_aligned_watchpoint): Ditto.
16776 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
16777 fit part of the watchpoint in the debug registers.
16778 (i386_update_inferior_debug_regs): New.
16779 (i386_low_insert_watchpoint): Work on a local mirror of the debug
16780 registers, and only update the inferior on success.
16781 (i386_low_remove_watchpoint): Ditto.
16783 2011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
16785 * linux-low.c (compare_ints, unique, list_threads, show_process,
16786 linux_core_of_thread): Delete.
16787 (linux_target_ops): Change linux_core_of_thread to
16788 linux_common_core_of_thread.
16789 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
16790 * utils.c (malloc_failure): Change type of argument.
16791 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
16792 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
16793 common/linux-osdata.c, common/ptid.c and common/buffer.c.
16794 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
16795 (IPA_OBJS): Add common-utils-ipa.o.
16796 (ptid_h, linux_osdata_h): New macros.
16797 (server_h): Add common/common-utils.h, common/xml-utils.h,
16798 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
16800 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
16801 ptid.o, buffer.o): New rules.
16802 (linux-low.o): Add common/linux-osdata.h as a dependency.
16803 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
16804 * configure.ac: Add AC_HEADER_DIRENT check.
16805 * config.in: Regenerate.
16806 * configure: Regenerate.
16807 * remote-utils.c (xml_escape_text): Delete.
16808 (buffer_grow, buffer_free, buffer_init, buffer_finish,
16809 buffer_xml_printf): Move to common/buffer.c.
16810 * server.c (main): Remove call to initialize_inferiors.
16811 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
16812 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
16813 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
16814 internal_error, gdb_assert, gdb_assert_fail): Delete.
16815 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
16816 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
16818 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
16819 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
16820 initialize_inferiors): Delete.
16822 2011-07-20 Pedro Alves <pedro@codesourcery.com>
16824 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
16827 2011-05-31 Pedro Alves <pedro@codesourcery.com>
16829 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
16831 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
16833 2011-05-26 Yao Qi <yao@codesourcery.com>
16835 * Makefile.in (thread-db.o): Track dependence to
16836 common/gdb_thread_db.h.
16837 * thread-db.c: include gdb_thread_db.h from right place.
16839 2011-05-16 Adrian Cornish <gnu@bluedreamer.com>
16841 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
16842 __FILE__ and __LINE__ to internal_error.
16844 2011-05-13 Doug Evans <dje@google.com>
16846 * thread-db.c (try_thread_db_load_from_sdir): New function.
16847 (try_thread_db_load_from_dir): New function.
16848 (thread_db_load_search): Handle $sdir, ignore $pdir.
16849 Remove trying of system directories if search of
16850 libthread-db-search-path fails, that is now done via $sdir.
16852 2011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
16854 * server.c (handle_query): Add EnableDisableTracepoints to the list
16855 of supported features.
16856 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
16858 (cmd_qtenable_disable): New.
16859 (cmd_qtstart): Install tracepoints even if disabled.
16860 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
16861 receiving a QTEnable or QTDisable packet.
16862 (gdb_collect): Skip data collection if fast tracepoint is disabled.
16863 (ust_marker_to_static_tracepoint): Do not ignore disabled static
16865 (gdb_probe): Skip data collection if static tracepoint is disabled.
16867 2011-05-10 Doug Evans <dje@google.com>
16869 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
16871 2011-05-04 Doug Evans <dje@google.com>
16873 * linux-low.c (linux_join): Skip process lookup.
16874 * spu-low.c (spu_join): Ditto.
16875 * server.c (join_inferiors_callback): Delete.
16876 (process_serial_event): For 'D' packet (detach) call join_inferior
16879 2011-05-04 Joseph Myers <joseph@codesourcery.com>
16881 * README: Don't mention xscale*-*-linux*.
16882 * configure.srv (xscale*-*-linux*): Don't handle target.
16884 2011-04-27 Nathan Froyd <froydnj@codesourcery.com>
16886 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
16888 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
16889 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
16890 (i386_emit_void_call_2): Likewise.
16892 2011-04-26 Yao Qi <yao@codesourcery.com>
16894 * linux-low.c: Move common macros to linux-ptrace.h.
16895 Include linux-ptrace.h.
16896 * Makefile.in (linux_ptrace_h): New.
16897 (linux-low.o): Depends on linux-ptrace.h.
16899 2011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
16901 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
16902 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
16903 (remote_prepare): New function with most of the TCP code from ...
16904 (remote_open): ... here. Detect PORT here unconditionally. Move also
16905 setting transport_is_reliable.
16906 * server.c (run_once): New variable.
16907 (gdbserver_usage): Document it.
16908 (main): Set run_once for `--once'. Call remote_prepare. Exit after
16909 the first run if RUN_ONCE.
16910 * server.h (run_once, remote_prepare): New declarations.
16912 2011-04-19 Tom Tromey <tromey@redhat.com>
16914 * win32-low.c (handle_load_dll): Remove duplicate "the".
16916 2011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
16918 Remove support for old Cygwin 1.5 versions.
16919 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
16920 function to avoid warning.
16921 (win32_add_one_solib): Use cygwin_conv_path function to avoid
16924 2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
16926 * gdbserver/server.h (Macro _): Define it if not available.
16928 2011-03-14 Michael Snyder <msnyder@vmware.com>
16930 * hostio.c (handle_close): Remove unnecessary null test.
16932 2011-03-10 Joel Brobecker <brobecker@adacore.com>
16934 * Makefile.in (maintainer-clean realclean distclean): Remove
16935 "make ... subdir_do" command.
16937 2011-03-10 Michael Snyder <msnyder@vmware.com>
16939 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
16941 * server.c (handle_v_run): Free alloced buffer on early return.
16943 2011-03-09 Yao Qi <yao@codesourcery.com>
16946 2011-03-04 Yao Qi <yao@codesourcery.com>
16948 * Makefile.in: Remove GNU make feature --directory.
16950 2011-03-05 Yao Qi <yao@codesourcery.com>
16952 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16953 (subdir_do): New make target. Copied from gdb/Makefile.
16954 (maintainer-clean, realclean, distclean, clean): Call corresponding
16955 make targets in common/Makefile.
16957 2011-02-11 Yao Qi <yao@codesourcery.com>
16959 * configure.ac: Call AC_PROG_RANLIB.
16960 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
16961 * configure: Regenerate.
16963 2011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
16965 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
16967 2011-03-06 Yao Qi <yao@codesourcery.com>
16969 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
16971 2011-03-05 Yao Qi <yao@codesourcery.com>
16973 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
16974 (subdir_do): New make target. Copied from gdb/Makefile.
16975 (maintainer-clean, realclean, distclean, clean): Call corresponding
16976 make targets in common/Makefile.
16978 2011-03-04 Yao Qi <yao@codesourcery.com>
16980 * Makefile.in: Remove GNU make feature --directory.
16982 2011-03-04 Michael Snyder <msnyder@vmware.com>
16984 * server.c (queue_stop_reply): Call xmalloc not malloc.
16986 2011-03-02 Michael Snyder <msnyder@vmware.com>
16988 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
16990 2011-02-28 Michael Snyder <msnyder@vmware.com>
16992 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
16993 (cmd_qtframe): Ditto.
16994 (cmd_qtbuffer): Ditto.
16995 (cmd_bigqtbuffer): Ditto.
16997 * utils.c (decimal2str): Initialize 'width' to nine, then
16998 don't mess with it.
17000 2011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
17002 * hostio.c (require_data): Free *data, not data.
17004 2011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17006 * hostio.c (require_data): Use free, not xfree.
17008 2011-02-27 Michael Snyder <msnyder@vmware.com>
17010 * server.c (handle_query): Discard unused value.
17012 * hostio.c (require_data): Free malloc memory before returning
17015 2011-02-26 Michael Snyder <msnyder@vmware.com>
17017 * linux-low.c (list_threads): Call closedir for dirent.
17019 2011-02-27 Michael Snyder <msnyder@vmware.com>
17021 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
17022 a case statement falls through.
17024 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
17026 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
17029 2011-02-26 Michael Snyder <msnyder@vmware.com>
17031 * utils.c (decimal2str): Eliminate dead code and dead param.
17032 (pulongest): Drop dead param from call to decimal2str.
17035 2011-02-24 Joel Brobecker <brobecker@adacore.com>
17037 Revert the following patch (not approved yet):
17038 2011-02-21 Hui Zhu <teawater@gmail.com>
17039 * tracepoint.c (tp_printf): New function.
17040 (eval_agent_expr): Handle gdb_agent_op_printf.
17042 2011-02-21 Hui Zhu <teawater@gmail.com>
17044 * tracepoint.c (tp_printf): New function.
17045 (eval_agent_expr): Handle gdb_agent_op_printf.
17047 2011-02-18 Tom Tromey <tromey@redhat.com>
17049 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
17050 (tracepoint.o): Likewise.
17051 * tracepoint.c (enum gdb_agent_op): Use ax.def.
17052 (gdb_agent_op_names): Likewise.
17054 2011-02-18 Tom Tromey <tromey@redhat.com>
17056 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
17057 gdb_agent_op_rot>: New constants.
17058 (gdb_agent_op_names): Add pick and roll.
17059 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
17062 2011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
17064 * aclocal.m4: Regenerated with aclocal-1.11.1.
17066 2011-02-14 Pedro Alves <pedro@codesourcery.com>
17068 * server.c (handle_qxfer_traceframe_info): New.
17069 (qxfer_packets): Register "traceframe-info".
17070 (handle_query): Report support for qXfer:traceframe-info:read+.
17071 * tracepoint.c (match_blocktype): New.
17072 (traceframe_find_block_type): Rename to ...
17073 (traceframe_walk_blocks): ... this. Add callback filter argument,
17075 (traceframe_find_block_type): New, reimplemented on top of
17076 traceframe_walk_blocks.
17077 (build_traceframe_info_xml): New.
17078 (traceframe_read_info): New.
17079 * server.h (traceframe_read_info): Declare.
17081 2011-02-11 Yao Qi <yao@codesourcery.com>
17083 * configure.ac: Call AC_PROG_RANLIB.
17084 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
17085 * configure: Regenerate.
17087 2011-02-07 Pedro Alves <pedro@codesourcery.com>
17089 * server.c (gdb_read_memory): Change return semantics to allow
17091 (handle_search_memory_1): Adjust.
17092 (process_serial_event) <'m' packet>: Handle partial transfers.
17093 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
17095 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17097 * regcache.c (init_register_cache): Initialize
17098 regcache->register_status.
17099 (free_register_cache): Release regcache->register_status.
17100 (regcache_cpy): Copy register_status.
17101 (registers_to_string): Print 'x's for unavailable registers.
17102 (supply_register): Mark the register's status valid or
17103 unavailable, depending on whether a buffer was passed in or not.
17104 (supply_register_zeroed): New.
17105 (supply_regblock): Mark the registers' status valid or
17106 unavailable, depending on whether a buffer was passed in or not.
17107 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
17108 (struct regcache): New `register_status' field.
17109 (supply_register_zeroed): Declare.
17110 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
17111 supply_register_zeroed, rather than passing a NULL buffer to
17113 * tracepoint.c (fetch_traceframe_registers): Update comment.
17115 2011-01-28 Pedro Alves <pedro@codesourcery.com>
17117 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
17120 2011-01-25 Pedro Alves <pedro@codesourcery.com>
17122 * server.h (decode_xfer_write): Change prototype.
17123 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
17124 and don't extract the annex here.
17125 * server.c (decode_xfer_read): Remove `annex' parameter,
17126 and don't extract the annex here.
17127 (decode_xfer): New.
17128 (struct qxfer): New.
17129 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
17130 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
17131 (handle_qxfer_statictrace): New functions, abstracted out from
17132 handle_query, and made to use the struct qxfer interface.
17133 (handle_threads_qxfer_proper): Rename to ...
17134 (handle_qxfer_threads_proper): ... this.
17135 (handle_threads_qxfer): Rename to ...
17136 (handle_qxfer_threads): ... this. Adjust.
17137 (qxfer_packets): New array.
17138 (handle_qxfer): New function.
17139 (handle_query): Use handle_qxfer.
17141 2011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
17143 * gdbreplay.c: Shorten lines of >= 80 columns.
17144 * linux-low.c: Ditto.
17145 * linux-ppc-low.c: Ditto.
17146 * linux-s390-low.c: Ditto.
17147 * linux-sparc-low.c: Ditto.
17148 * linux-x86-low.c: Ditto.
17149 * linux-xtensa-low.c: Ditto.
17150 * mem-break.c: Ditto.
17151 * nto-low.c: Ditto.
17152 * regcache.h: Ditto.
17153 * remote-utils.c: Ditto.
17156 * thread-db.c: Ditto.
17157 * tracepoint.c: Ditto.
17159 * win32-low.h: Ditto.
17161 2011-01-05 Joel Brobecker <brobecker@adacore.com>
17163 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
17166 2011-01-01 Joel Brobecker <brobecker@adacore.com>
17168 * server.c (gdbserver_version): Update copyright year in version
17170 * gdbreplay.c (gdbreplay_version): Ditto.
17172 2010-12-29 Jie Zhang <jie.zhang@analog.com>
17174 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
17175 * linux-bfin-low.c: New file.
17176 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
17177 PT_DATA_ADDR for BFIN targets.
17178 * Makefile.in (SFILES): Add linux-bfin-low.c.
17179 (clean): Remove reg-bfin.c.
17180 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
17181 * README: Mention supported Blackfin targets.
17183 2010-12-23 Mike Frysinger <vapier@gentoo.org>
17185 * .gitignore: New file.
17187 2010-11-16 Mike Frysinger <vapier@gentoo.org>
17189 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
17191 2010-10-22 Jie Zhang <jie@codesourcery.com>
17193 * Makefile.in: Add FLAGS_TO_PASS variable.
17194 (install): Remove dependency of install-only and recursively
17195 invoke make for install-only.
17197 2010-10-04 Doug Evans <dje@google.com>
17199 * Makefile.in (uninstall): Use $(DESTDIR).
17201 2010-09-24 Pedro Alves <pedro@codesourcery.com>
17205 * linux-x86-low.c (compat_siginfo_from_siginfo)
17206 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
17207 si_code is < 0. Check for si_code == SI_TIMER before checking for
17210 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17212 * lynx-i386-low.c: New file.
17213 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
17215 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17217 * lynx-low.c (ptrace_request_to_str): Remove handling for
17218 request values that have been removed in LynxOS 5.x.
17220 2010-09-13 Joel Brobecker <brobecker@adacore.com>
17222 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
17225 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
17227 * configure.ac: Add --enable-inprocess-agent option.
17228 * configure: Rebuilt.
17230 2010-09-06 Yao Qi <yao@codesourcery.com>
17232 * linux-low.c (linux_kill): Remove unused variable.
17233 (linux_stabilize_threads): Likewise.
17234 * server.c (start_inferior): Likewise.
17235 (queue_stop_reply_callback): Likewise.
17236 * tracepoint.c (do_action_at_tracepoint): Likewise.
17238 2010-09-06 Yao Qi <yao@codesourcery.com>
17240 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
17243 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
17245 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
17247 2010-09-06 Pedro Alves <pedro@codesourcery.com>
17249 * Makefile.in (install-only): Replace $IPA_DEPFILES with
17252 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17254 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
17255 gdbserver/lynx-ppc-low.c: New files.
17256 * Makefile.in (lynx_low_h): New variable.
17257 (lynx-low.o, lynx-ppc-low.o): New rules.
17258 * configure.ac: On LynxOS, link with -lnetinet.
17259 * configure.srv: Add handling of powerpc-*-lynxos* targets.
17260 * configure: regenerate.
17262 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17264 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
17265 * configure.ac: Add check for vasprintf and vsnprintf.
17266 * configure, config.in: Regenerate.
17267 * server.h (vasprintf, vsnprintf): Add conditional declarations.
17269 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17271 * gdbreplay.c: Move include of alloca.h up, next to include of
17273 * server.h: Add include of malloc.h.
17274 * mem-break.c: Remove include of malloc.h.
17275 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
17277 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17279 * Makefile.in (memmem.o): Build with -Wno-error.
17281 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17283 * utils.c (xsnprintf): Make non-static.
17284 * server.h: Add xsnprintf declaration.
17285 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
17286 replace calls to snprintf by calls to xsnprintf throughout.
17288 2010-09-01 Joel Brobecker <brobecker@adacore.com>
17290 * configure.ac: Add configure check for alloca.
17291 * configure, config.in: Regenerate.
17292 * server.h: Include alloca.h if it exists.
17293 * gdbreplay.c: Include alloca.h if it exists.
17295 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17297 * linux-low.c (__SIGRTMIN): Define if not already defined.
17298 (linux_create_inferior): Check for __ANDROID__ rather than
17300 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
17301 are already deferred.
17302 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
17303 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
17304 stopped and already has a pending signal to report.
17305 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
17306 a pending signal to report or is moving out of a jump pad.
17307 (linux_init_signals): Check for __ANDROID__ rather than
17310 2010-08-28 Pedro Alves <pedro@codesourcery.com>
17312 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
17313 debug_threads check. Avoid a linear search when not doing debug
17316 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17318 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
17319 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
17320 (struct file_handler) <fd>: Change type to gdb_fildes_t.
17321 (process_event): Change local fd's type to gdb_fildes_t.
17322 (create_file_handler): Adjust prototype.
17323 (delete_file_handler): Adjust prototype.
17324 (handle_file_event): Adjust prototype. Use pfildes.
17325 (create_file_event): Adjsut prototype.
17326 * remote-utils.c (remote_desc, listen_desc): Change type to
17328 * server.h: New gdb_fildes_t typedef.
17329 [USE_WIN32API]: Include winsock2.h.
17330 (delete_file_handler, add_file_handler): Adjust prototypes.
17331 (pfildes): Declare.
17332 * utils.c (pfildes): New.
17334 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17336 * configure.ac (build_warnings): Add -Wno-char-subscripts.
17337 * configure: Regenerate.
17339 2010-08-27 Pedro Alves <pedro@codesourcery.com>
17341 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
17342 (linux_done_accessing_memory): ... this.
17343 (linux_target_ops): Adjust.
17344 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
17345 * nto-low.c (nto_target_ops): Adjust comment.
17346 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
17347 * spu-low.c (spu_target_ops): Adjust comment.
17348 * target.h (target_ops): Rename unprepare_to_access_memory field
17349 to done_accessing_memory.
17350 (unprepare_to_access_memory): Rename to ...
17351 (done_accessing_memory): ... this.
17353 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17355 * linux-low.c (linux_prepare_to_access_memory): New.
17356 (linux_unprepare_to_access_memory): New.
17357 (linux_target_ops): Install them.
17358 * server.c (read_memory): Rename to ...
17359 (gdb_read_memory): ... this. Use
17360 prepare_to_access_memory/prepare_to_access_memory.
17361 (write_memory): Rename to ...
17362 (gdb_write_memory): ... this. Use
17363 prepare_to_access_memory/prepare_to_access_memory.
17364 (handle_search_memory_1): Adjust.
17365 (process_serial_event): Adjust.
17366 * target.h (struct target_ops): New fields
17367 prepare_to_access_memory and unprepare_to_access_memory.
17368 (prepare_to_access_memory, unprepare_to_access_memory): New.
17369 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
17370 prepare_to_access_memory/prepare_to_access_memory.
17371 * nto-low.c (nto_target_ops): Adjust.
17372 * spu-low.c (spu_target_ops): Adjust.
17373 * win32-low.c (win32_target_ops): Adjust.
17375 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17377 * Makefile.in (WARN_CFLAGS): Get it from configure.
17378 (WERROR_CFLAGS): New.
17379 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
17380 * configure.ac: Introduce --enable-werror, which adds -Werror to
17381 the compiler command line. Enabled by default. Disable with
17382 --disable-werror. Add -Wdeclaration-after-statement
17383 Wpointer-arith and -Wformat-nonliteral to warning flags.
17384 * configure: Regenerate.
17386 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17388 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
17390 2010-08-26 Pedro Alves <pedro@codesourcery.com>
17392 * gdbreplay.c (remote_error): New.
17394 (expect): Use gdbchar. Check for error reading from GDB.
17395 Clarify sync error output.
17396 (play): Check for errors writing to GDB.
17397 * linux-low.c (sigchld_handler): Really ignore `write' errors.
17398 * remote-utils.c (getpkt): Check for errors writing to the remote
17401 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17403 * linux-low.c (linux_wait_1): Move non-debugging code out of
17404 `debug_threads' control.
17406 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17408 * linux-low.c (linux_wait_1): Don't set last_status here.
17409 * server.c (push_event, queue_stop_reply_callback): Assert we're
17410 not pushing a TARGET_WAITKIND_IGNORE event.
17411 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
17412 (myresume, handle_target_event): Set the thread's last_resume_kind
17413 and last_status from the target returned status.
17415 2010-08-25 Pedro Alves <pedro@codesourcery.com>
17419 * linux-x86-low.c (update_debug_registers_callback): New.
17420 (i386_dr_low_set_addr): Use it.
17421 (i386_dr_low_get_addr): New.
17422 (i386_dr_low_set_control): Use update_debug_registers_callback.
17423 (i386_dr_low_get_control): New.
17424 (i386_dr_low_get_status): Adjust.
17425 * linux-low.c (linux_stop_lwp): New.
17426 * linux-low.h (linux_stop_lwp): Declare.
17428 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
17429 argument instead of a i386_debug_reg_state.
17430 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
17431 a i386_debug_reg_state.
17432 (i386_insert_aligned_watchpoint): Adjust.
17433 (i386_remove_aligned_watchpoint): Adjust.
17434 (i386_low_stopped_data_address): Read the debug registers from the
17435 inferior instead of from the mirrors.
17436 * i386-low.h (struct i386_debug_reg_state): Extend comment.
17437 (i386_dr_low_get_addr): Declare.
17438 (i386_dr_low_get_control): Declare.
17439 (i386_dr_low_get_status): Change prototype.
17441 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
17442 (i386_dr_low_get_addr): New.
17443 (i386_dr_low_get_control): New.
17444 (i386_dr_low_get_status): Adjust prototype. Return
17446 (i386_initial_stuff): Clear dr_status_mirror and
17448 (i386_get_thread_context): Adjust.
17449 (i386_set_thread_context): Adjust.
17450 (i386_thread_added): Adjust.
17452 2010-08-24 Pedro Alves <pedro@codesourcery.com>
17454 * linux-low.h (linux_thread_area): Delete declaration.
17456 2010-08-11 Thomas Schwinge <thomas@codesourcery.com>
17458 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
17459 after its termination.
17461 2010-08-09 Pedro Alves <pedro@codesourcery.com>
17463 * linux-low.c (gdb_wants_lwp_stopped): Delete.
17464 (gdb_wants_all_stopped): Delete.
17465 (linux_wait_1): Don't call them.
17466 * server.c (handle_v_cont): Tag all threads as want-stopped.
17467 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
17468 stopped as "client-wants-stopped".
17470 2010-07-31 Pedro Alves <pedro@codesourcery.com>
17472 * Makefile.in (signals_h): New.
17473 (server_h): Depend on it.
17474 (server.o): Don't depend on $(signals_def).
17475 (signals.o): Depend on $(signals_def).
17477 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
17479 * Makefile.in (signals_def): New.
17480 (server_h): Append include/gdb/signals.h and signals_def.
17481 (server.o): Append signals_def.
17483 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
17485 * server.c (handle_target_event): Use target_signal_to_host for
17486 resume_info.sig initialization.
17487 * target.h (struct thread_resume) <sig>: New comment.
17489 2010-07-20 Ozkan Sezer <sezeroz@gmail.com>
17491 * server.c (handle_query): strcpy() the returned string from paddress()
17492 instead of sprintf().
17493 * utils.c (paddress): Return phex_nz().
17495 2010-07-07 Joel Brobecker <brobecker@adacore.com>
17497 * server.c (handle_v_cont): Call mourn_inferior if process
17499 (myresume): Likewise.
17501 2010-07-01 Pedro Alves <pedro@codesourcery.com>
17503 Static tracepoints, and integration with UST.
17505 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
17506 * mem-break.c (uninsert_all_breakpoints)
17507 (reinsert_all_breakpoints): New.
17508 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
17509 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
17510 (gdb_agent_ust_loaded, helper_thread_id)
17511 (gdb_agent_helper_thread_id): New macros.
17512 (struct ipa_sym_addresses): Add addr_ust_loaded,
17513 addr_helper_thread_id, addr_cmd_buf.
17514 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
17515 (in_process_agent_loaded_ust): New.
17516 (write_e_ust_not_loaded): New.
17517 (maybe_write_ipa_ust_not_loaded): New.
17518 (struct collect_static_trace_data_action): New.
17519 (enum tracepoint_type) <static_tracepoint>: New.
17520 (struct tracepoint) <handle>: Mention static tracepoints.
17521 (struct static_tracepoint_ctx): New.
17522 (CMD_BUF_SIZE): New.
17523 (add_tracepoint_action): Handle static tracepoint actions.
17524 (unprobe_marker_at): New.
17525 (clear_installed_tracepoints): Handle static tracepoints.
17526 (cmd_qtdp): Handle static tracepoints.
17527 (probe_marker_at): New.
17528 (cmd_qtstart): Handle static tracepoints.
17529 (response_tracepoint): Handle static tracepoints.
17530 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
17531 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
17532 (get_context_regcache): Handle static tracepoints.
17533 (do_action_at_tracepoint): Handle static tracepoint actions.
17534 (traceframe_find_block_type): Handle static trace data blocks.
17535 (traceframe_read_sdata): New.
17536 (download_tracepoints): Download static tracepoint actions.
17537 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
17538 (GDB_PROBE_NAME): New.
17540 (GET_UST_SYM): New.
17543 (ust_marker_to_static_tracepoint): New.
17545 (collect_ust_data_at_tracepoint): New.
17546 (gdb_ust_probe): New.
17547 (UNIX_PATH_MAX, SOCK_DIR): New.
17548 (gdb_ust_connect_sync_socket): New.
17549 (resume_thread, stop_thread): New.
17550 (run_inferior_command): New.
17551 (init_named_socket): New.
17552 (gdb_ust_socket_init): New.
17553 (cstr_to_hexstr): New.
17555 (first_marker, next_marker): New.
17556 (response_ust_marker): New.
17557 (cmd_qtfstm, cmd_qtsstm): New.
17558 (unprobe_marker_at, probe_marker_at): New.
17559 (cmd_qtstmat, gdb_ust_thread): New.
17560 (gdb_ust_init): New.
17561 (initialize_tracepoint_ftlib): Call gdb_ust_init.
17562 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
17563 (ST_REGENTRY): New.
17564 (x86_64_st_collect_regmap): New.
17565 (X86_64_NUM_ST_COLLECT_GREGS): New.
17566 (AMD64_RIP_REGNUM): New.
17567 (supply_static_tracepoint_registers): New.
17568 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
17569 (ST_REGENTRY): New.
17570 (i386_st_collect_regmap): New.
17571 (i386_NUM_ST_COLLECT_GREGS): New.
17572 (supply_static_tracepoint_registers): New.
17573 * server.c (handle_query): Handle qXfer:statictrace:read.
17574 <qSupported>: Report support for StaticTracepoints, and
17575 qXfer:statictrace:read features.
17576 * server.h (traceframe_read_sdata)
17577 (supply_static_tracepoint_registers): Declare.
17578 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
17579 (unpack_varlen_hex): Include in IPA build.
17580 * Makefile.in (ustlibs, ustinc): New.
17581 (IPA_OBJS): Add remote-utils-ipa.o.
17582 ($(IPA_LIB)): Link -ldl and -lpthread.
17584 (IPAGENT_CFLAGS): Add UST_CFLAGS.
17585 * config.in, configure: Regenerate.
17587 2010-06-20 Ian Lance Taylor <iant@google.com>
17588 Pedro Alves <pedro@codesourcery.com>
17590 * linux-x86-low.c (always_true): Delete.
17591 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
17592 trying to fool the compiler with always_true.
17594 2010-06-20 Pedro Alves <pedro@codesourcery.com>
17596 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
17597 conditions in gdbserver.
17599 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
17601 * spu-low.c (spu_read_memory): Wrap around local store limit.
17602 (spu_write_memory): Likewise.
17604 2010-06-15 Pedro Alves <pedro@codesourcery.com>
17606 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
17607 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
17609 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
17611 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
17612 uses with LONGEST uses.
17614 2010-06-14 Stan Shebs <stan@codesourcery.com>
17615 Pedro Alves <pedro@codesourcery.com>
17619 * linux-x86-low.c: Include limits.h.
17621 (always_true): New.
17624 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
17625 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
17626 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
17627 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
17628 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
17629 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
17630 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
17631 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
17632 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
17633 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
17634 (amd64_emit_void_call_2): New.
17635 (amd64_emit_ops): New.
17636 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
17637 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
17638 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
17639 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
17640 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
17641 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
17642 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
17643 (i386_emit_call, i386_emit_reg, i386_emit_pop)
17644 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
17645 (i386_emit_stack_adjust, i386_emit_int_call_1)
17646 (i386_emit_void_call_2): New.
17647 (i386_emit_ops): New.
17648 (x86_emit_ops): New.
17649 (the_low_target): Install x86_emit_ops.
17650 * server.h (struct emit_ops): New.
17651 (get_raw_reg_func_addr): Declare.
17652 (current_insn_ptr, emit_error): Declare.
17653 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
17654 (set_trace_state_variable_value): New defines.
17655 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
17656 addr_get_trace_state_variable_value and
17657 addr_set_trace_state_variable_value.
17658 (symbol_list): New fields for get_raw_reg,
17659 get_trace_state_variable_value and set_trace_state_variable_value.
17660 (condfn): New typedef.
17661 (struct tracepoint): New field `compiled_cond'.
17662 (do_action_at_tracepoint): Clear compiled_cond.
17663 (get_trace_state_variable_value, set_trace_state_variable_value):
17665 (condition_true_at_tracepoint): If there's a compiled condition,
17667 (current_insn_ptr, emit_error): New globals.
17668 (struct bytecode_address): New.
17669 (get_raw_reg_func_addr): New.
17670 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
17671 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
17672 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
17673 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
17674 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
17675 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
17676 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
17677 (compile_tracepoint_condition, compile_bytecodes): New.
17678 * target.h (emit_ops): Forward declare.
17679 (struct target_ops): New field emit_ops.
17680 (target_emit_ops): New.
17681 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
17682 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
17683 * linux-low.c (linux_emit_ops): New.
17684 (linux_target_ops): Install it.
17685 * linux-low.h (struct linux_target_ops): New field emit_ops.
17687 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
17689 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
17690 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
17692 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17693 Stan Shebs <stan@codesourcery.com>
17695 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
17696 (all): Depend on $(extra_libraries).
17697 (install-only): Install the IPA.
17698 (IPA_OBJS, IPA_LIB): New.
17699 (clean): Remove the IPA lib.
17700 (IPAGENT_CFLAGS): New.
17701 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
17702 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
17703 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
17704 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
17705 * configure.ac: Check for atomic builtins support in the compiler.
17706 (IPA_DEPFILES, extra_libraries): Define.
17707 * configure.srv (ipa_obj): Add description.
17708 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
17709 (i[34567]86-*-linux*): Set ipa_obj.
17710 (x86_64-*-linux*): Set ipa_obj.
17711 * linux-low.c (stabilizing_threads): New.
17712 (supports_fast_tracepoints): New.
17713 (linux_detach): Stabilize threads before detaching.
17714 (handle_tracepoints): Handle internal tracing breakpoints. Assert
17715 the lwp is either not stabilizing, or is moving out of a jump pad.
17716 (linux_fast_tracepoint_collecting): New.
17717 (maybe_move_out_of_jump_pad): New.
17718 (enqueue_one_deferred_signal): New.
17719 (dequeue_one_deferred_signal): New.
17720 (linux_wait_for_event_1): If moving out of a jump pad, defer
17721 pending signals to later.
17722 (linux_stabilize_threads): New.
17723 (linux_wait_1): Check if threads need moving out of jump pads, and
17725 (stuck_in_jump_pad_callback): New.
17726 (move_out_of_jump_pad_callback): New.
17727 (lwp_running): New.
17728 (linux_resume_one_lwp): Handle moving out of jump pads.
17729 (linux_set_resume_request): Dequeue deferred signals.
17730 (need_step_over_p): Also step over fast tracepoint jumps.
17731 (start_step_over): Also uninsert fast tracepoint jumps.
17732 (finish_step_over): Also reinsert fast tracepoint jumps.
17733 (linux_install_fast_tracepoint_jump): New.
17734 (linux_target_ops): Install linux_stabilize_threads and
17735 linux_install_fast_tracepoint_jump_pad.
17736 * linux-low.h (linux_target_ops) <get_thread_area,
17737 install_fast_tracepoint_jump_pad>: New fields.
17738 (struct lwp_info) <collecting_fast_tracepoint,
17739 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
17740 (linux_get_thread_area): Declare.
17741 * linux-x86-low.c (jump_insn): New.
17742 (x86_get_thread_area): New.
17743 (append_insns): New.
17744 (push_opcode): New.
17745 (amd64_install_fast_tracepoint_jump_pad): New.
17746 (i386_install_fast_tracepoint_jump_pad): New.
17747 (x86_install_fast_tracepoint_jump_pad): New.
17748 (the_low_target): Install x86_get_thread_area and
17749 x86_install_fast_tracepoint_jump_pad.
17750 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
17751 (struct fast_tracepoint_jump): New.
17752 (fast_tracepoint_jump_insn): New.
17753 (fast_tracepoint_jump_shadow): New.
17754 (find_fast_tracepoint_jump_at): New.
17755 (fast_tracepoint_jump_here): New.
17756 (delete_fast_tracepoint_jump): New.
17757 (set_fast_tracepoint_jump): New.
17758 (uninsert_fast_tracepoint_jumps_at): New.
17759 (reinsert_fast_tracepoint_jumps_at): New.
17760 (set_breakpoint_at): Use write_inferior_memory.
17761 (uninsert_raw_breakpoint): Use write_inferior_memory.
17762 (check_mem_read): Mask out fast tracepoint jumps.
17763 (check_mem_write): Mask out fast tracepoint jumps.
17764 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
17765 (set_fast_tracepoint_jump): Declare.
17766 (delete_fast_tracepoint_jump)
17767 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
17768 (reinsert_fast_tracepoint_jumps_at): Declare.
17769 * regcache.c: Don't compile many functions when building the
17770 in-process agent library.
17771 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
17772 the register buffer in the heap.
17773 (free_register_cache): If the register buffer isn't owned by the
17774 regcache, don't free it.
17775 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
17776 pre-existing register caches.
17777 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
17779 (convert_ascii_to_int): : Constify `from' parameter type.
17780 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
17781 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
17782 the needed buffer in-place.
17783 (relocate_instruction): New.
17784 * server.c (handle_query) <qSymbols>: If the target supports
17785 tracepoints, give it a chance of looking up symbols. Report
17786 support for fast tracepoints.
17787 (handle_status): Stabilize threads.
17788 (process_serial_event): Adjust.
17789 * server.h (struct fast_tracepoint_jump): Forward declare.
17790 (struct process_info) <fast_tracepoint_jumps>: New field.
17791 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
17792 (decode_X_packet, decode_M_packet): Adjust.
17793 (relocate_instruction): Declare.
17794 (in_process_agent_loaded): Declare.
17795 (tracepoint_look_up_symbols): Declare.
17796 (struct fast_tpoint_collect_status): Declare.
17797 (fast_tracepoint_collecting): Declare.
17798 (force_unlock_trace_buffer): Declare.
17799 (handle_tracepoint_bkpts): Declare.
17800 (initialize_low_tracepoint)
17801 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
17802 * target.h (struct target_ops) <stabilize_threads,
17803 install_fast_tracepoint_jump_pad>: New fields.
17804 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
17805 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
17806 [HAVE_STDINT_H]: Include stdint.h.
17807 (trace_debug_1): Rename to ...
17808 (trace_vdebug): ... this.
17809 (trace_debug): Rename to ...
17810 (trace_debug_1): ... this. Add `level' parameter.
17811 (trace_debug): New.
17812 (ATTR_USED, ATTR_NOINLINE): New.
17813 (IP_AGENT_EXPORT): New.
17814 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
17815 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
17816 (about_to_request_buffer_space, trace_buffer_is_full)
17817 (stopping_tracepoint, expr_eval_result, error_tracepoint)
17818 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
17819 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
17820 (traceframe_write_count, traceframes_created)
17821 (trace_state_variables)
17822 New renaming defines.
17823 (struct ipa_sym_addresses): New.
17824 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
17825 (symbol_list): New.
17826 (ipa_sym_addrs): New.
17827 (all_tracepoint_symbols_looked_up): New.
17828 (in_process_agent_loaded): New.
17829 (write_e_ipa_not_loaded): New.
17830 (maybe_write_ipa_not_loaded): New.
17831 (tracepoint_look_up_symbols): New.
17832 (debug_threads) [IN_PROCESS_AGENT]: New.
17833 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
17834 (UNKNOWN_SIDE_EFFECTS): New.
17835 (stop_tracing): New.
17836 (flush_trace_buffer): New.
17837 (stop_tracing_bkpt): New.
17838 (flush_trace_buffer_bkpt): New.
17839 (read_inferior_integer): New.
17840 (read_inferior_uinteger): New.
17841 (read_inferior_data_pointer): New.
17842 (write_inferior_data_pointer): New.
17843 (write_inferior_integer): New.
17844 (write_inferior_uinteger): New.
17845 (struct collect_static_trace_data_action): Delete.
17846 (enum tracepoint_type): New.
17847 (struct tracepoint) <type>: New field `type'.
17848 <actions_str, step_actions, step_actions_str>: Only include in
17850 <orig_size, obj_addr_on_target, adjusted_insn_addr>
17851 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
17852 (tracepoints): Use IP_AGENT_EXPORT.
17853 (last_tracepoint): Don't include in the IPA.
17854 (stopping_tracepoint): Use IP_AGENT_EXPORT.
17855 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
17856 (alloced_trace_state_variables): New.
17857 (trace_state_variables): Use IP_AGENT_EXPORT.
17858 (traceframe_t): Delete unused variable.
17859 (circular_trace_buffer): Don't include in the IPA.
17860 (trace_buffer_start): Delete.
17861 (struct trace_buffer_control): New.
17862 (trace_buffer_free): Delete.
17863 (struct ipa_trace_buffer_control): New.
17864 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
17865 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
17867 (trace_buffer_ctrl): New.
17868 (TRACE_BUFFER_CTRL_CURR): New.
17869 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
17870 Reimplement as macros.
17871 (trace_buffer_wrap): Delete.
17872 (traceframe_write_count, traceframe_read_count)
17873 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
17874 (struct tracepoint_hit_ctx) <type>: New field.
17875 (struct fast_tracepoint_ctx): New.
17876 (memory_barrier): New.
17878 (record_tracepoint_error): Update atomically in the IPA.
17879 (clear_inferior_trace_buffer): New.
17880 (about_to_request_buffer_space): New.
17881 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
17882 updating the same buffer.
17883 (add_tracepoint): Default the tracepoint's type to trap
17884 tracepoint, and orig_size to -1.
17885 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
17886 internal variables.
17887 (create_trace_state_variable): New parameter `gdb'. Handle it.
17888 (clear_installed_tracepoints): Clear fast tracepoint jumps.
17889 (cmd_qtdp): Handle fast tracepoints.
17890 (cmd_qtdv): Adjust.
17891 (max_jump_pad_size): New.
17892 (gdb_jump_pad_head): New.
17893 (get_jump_space_head): New.
17894 (claim_jump_space): New.
17895 (sort_tracepoints): New.
17896 (MAX_JUMP_SIZE): New.
17897 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
17899 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
17900 support. Upload fast traceframes, and delete internal IPA
17902 (stop_tracing_handler): New.
17903 (flush_trace_buffer_handler): New.
17904 (cmd_qtstop): Upload fast tracepoints.
17905 (response_tracepoint): Handle fast tracepoints.
17906 (tracepoint_finished_step): Upload fast traceframes. Set the
17907 tracepoint hit context's tracepoint type.
17908 (handle_tracepoint_bkpts): New.
17909 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
17910 type. Add comment about fast tracepoints.
17911 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
17912 non-existing action_str field.
17913 (get_context_regcache): Handle fast tracepoints.
17914 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
17916 (fast_tracepoint_from_jump_pad_address): New.
17917 (fast_tracepoint_from_ipa_tpoint_address): New.
17918 (collecting_t): New.
17919 (force_unlock_trace_buffer): New.
17920 (fast_tracepoint_collecting): New.
17922 (gdb_collect): New.
17923 (write_inferior_data_ptr): New.
17924 (target_tp_heap): New.
17925 (target_malloc): New.
17926 (download_agent_expr): New.
17928 (download_tracepoints): New.
17929 (download_trace_state_variables): New.
17930 (upload_fast_traceframes): New.
17931 (IPA_FIRST_TRACEFRAME): New.
17932 (IPA_NEXT_TRACEFRAME_1): New.
17933 (IPA_NEXT_TRACEFRAME): New.
17934 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
17935 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
17936 (gdb_jump_pad_buffer_end): New.
17937 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
17938 (initialize_tracepoint): Adjust.
17939 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
17940 buffer. Initialize the low module.
17941 * utils.c (PREFIX, TOOLNAME): New.
17942 (malloc_failure): Use PREFIX.
17943 (error): In the IPA, an error causes an exit.
17944 (fatal, warning): Use PREFIX.
17945 (internal_error): Use TOOLNAME.
17946 (NUMCELLS): Increase to 10.
17947 * configure, config.in: Regenerate.
17949 2010-06-01 Pedro Alves <pedro@codesourcery.com>
17951 * server.c (handle_query) <qSupported>: Do two passes over the
17952 qSupported string to avoid nesting strtok.
17954 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17956 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
17958 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
17959 -Wl,--dynamic-list.
17960 * configure: Regenerate.
17961 * proc-service.list: New.
17963 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
17965 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
17968 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
17970 * gdbreplay.c (remote_open): Check error return from socket() call by
17971 its equality to -1 not by it being negative.
17972 * remote-utils.c (remote_open): Likewise.
17974 2010-05-23 Pedro Alves <pedro@codesourcery.com>
17976 * config.h: Regenerate.
17978 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17980 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
17981 doesn't provide PTRACE_GET_THREAD_AREA.
17983 2010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
17985 * linux-m68k-low.c: Include <asm/ptrace.h>
17986 (ps_get_thread_area): Implement.
17988 2010-05-03 Doug Evans <dje@google.com>
17990 * event-loop.c (struct callback_event): New struct.
17991 (callback_list): New global.
17992 (append_callback_event, delete_callback_event): New functions.
17993 (process_callback): New function.
17994 (start_event_loop): Call it.
17995 * remote-utils.c (NOT_SCHEDULED): Define.
17996 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
17997 moved out of readchar.
17998 (readchar): Rewrite. Call reschedule before returning.
17999 (reset_readchar): New function.
18000 (remote_close): Call it.
18001 (process_remaining, reschedule): New functions.
18002 * server.h (callback_handler_func): New typedef.
18003 (append_callback_event, delete_callback_event): Declare.
18005 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18007 * proc-service.c (ps_pglobal_lookup): Use
18008 thread_db_look_up_one_symbol.
18009 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
18010 parameter. Use it instead of all_symbols_looked_up.
18011 * server.h (struct process_info) <all_symbols_looked_up>: Delete
18013 (all_symbols_looked_up): Don't declare.
18014 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
18015 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
18017 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
18018 Set all_symbols_looked_up here.
18019 (thread_db_look_up_one_symbol): New.
18020 (thread_db_get_tls_address): Adjust.
18021 (thread_db_load_search, try_thread_db_load_1): Always allocate the
18022 thread_db object on the heap, and tentatively set it in the
18024 (thread_db_init): Don't set all_symbols_looked_up here.
18025 * linux-low.h (thread_db_look_up_one_symbol): Declare.
18027 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18029 * linux-low.c (linux_kill, linux_detach): Adjust.
18030 (status_pending_p_callback): Remove redundant statement. Check
18031 for !TARGET_WAITIKIND_IGNORE, instead of
18032 TARGET_WAITKIND_STOPPED.
18033 (handle_tracepoints): Make sure LWP is locked. Adjust.
18034 (linux_wait_for_event_1): Adjust.
18035 (linux_cancel_breakpoints): New.
18036 (unsuspend_one_lwp): New.
18037 (unsuspend_all_lwps): New.
18038 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
18039 (send_sigstop_callback): Change return type to int, add new
18040 `except' parameter and handle it.
18041 (suspend_and_send_sigstop_callback): New.
18042 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
18043 pass them down. If SUSPEND, also increment the lwp's suspend
18045 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
18046 (need_step_over_p): Don't consider suspended LWPs.
18047 (start_step_over): Adjust.
18048 (proceed_one_lwp): Change return type to int, add new `except'
18049 parameter and handle it.
18050 (unsuspend_and_proceed_one_lwp): New.
18051 (proceed_all_lwps): Use find_inferior instead of
18053 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
18054 also decrement the suspend count of LWPs. Pass `except' down,
18055 instead of hacking its suspend count.
18056 (linux_pause_all): Add `freeze' parameter. Adjust.
18057 (linux_unpause_all): New.
18058 (linux_target_ops): Install linux_unpause_all.
18059 * server.c (handle_status): Adjust.
18060 * target.h (struct target_ops): New fields `unpause_all' and
18061 `cancel_breakpoints'. Add new parameter to `pause_all'.
18062 (pause_all): Add new `freeze' parameter.
18063 (unpause_all): New.
18064 (cancel_breakpoints): New.
18065 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
18066 cancel breakpoints.
18067 (cmd_qtstart): Pause threads.
18068 (stop_tracing): Pause threads, and cancel breakpoints.
18069 * win32-low.c (win32_target_ops): Adjust.
18071 2010-05-03 Pedro Alves <pedro@codesourcery.com>
18073 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
18074 the inferior right away from here...
18075 (linux_wait_1): ... to here, and adjust to check the thread's
18076 last_resume_kind instead of the lwp's step or stop_expected flags.
18078 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18080 * README: Use consistent `GDB' and `GDBserver' spellings.
18082 2010-05-02 Pedro Alves <pedro@codesourcery.com>
18084 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
18085 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
18086 (linux_detach_one_lwp): Assume the lwp is stopped.
18087 (any_thread_of): Delete.
18088 (linux_detach): Stop all lwps here. Don't blindly delete all
18090 (delete_lwp_callback): New.
18091 (linux_mourn): Delete all lwps of the process that is gone.
18092 (linux_wait_1): Don't delete the last lwp of the process here.
18093 * mem-break.h (mark_breakpoints_out): Declare.
18094 * mem-break.c (mark_breakpoints_out): New.
18095 (free_all_breakpoints): Use it.
18096 * server.c (handle_target_event): If the process is gone, mark
18098 * thread-db.c (struct thread_db) <create_bp>: New field.
18099 (thread_db_enable_reporting): Fix prototype. Store a thread event
18100 breakpoint reference in the thread_db struct.
18101 (thread_db_load_search): Clear the thread_db object.
18102 (try_thread_db_load_1): Ditto.
18103 (switch_to_process): New.
18104 (disable_thread_event_reporting): Use it.
18105 (remove_thread_event_breakpoints): New.
18106 (thread_db_detach, thread_db_mourn): Use it.
18108 2010-05-01 Pedro Alves <pedro@codesourcery.com>
18110 * linux-low.c (linux_enable_event_reporting): New.
18111 (linux_wait_for_event_1, handle_extended_wait): Use it.
18113 2010-04-30 Pedro Alves <pedro@codesourcery.com>
18115 * linux-low.c (linux_kill_one_lwp, linux_kill)
18116 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
18117 (send_sigstop): Take an lwp_info as parameter instead. Queue a
18118 SIGSTOP even if the LWP is stopped.
18119 (send_sigstop_callback): New.
18120 (stop_all_lwps): Use send_sigstop_callback instead.
18121 (linux_resume_one_thread): Adjust.
18122 (proceed_one_lwp): Still proceed an LWP that the client has
18123 requested to stop, if we haven't reported it as stopped yet. Make
18124 sure that LWPs the client want stopped, have a pending SIGSTOP.
18126 2010-04-26 Doug Evans <dje@google.com>
18128 * server.c (handle_general_set): Make static.
18130 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
18131 Print received char after testing for error/eof instead of before.
18132 (input_interrupt): Tweak comment.
18134 2010-04-23 Doug Evans <dje@google.com>
18136 * server.c (start_inferior): Print inferior argv if --debug.
18138 2010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
18140 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
18141 * nto-x86-low.c: Include server.h
18143 2010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
18145 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
18146 be consistent with other sources of this directory.
18147 (init_registers_amd64): Correct name of source file of this function
18150 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18152 * configure.srv (x86_64-*-mingw*): New configuration for Windows
18153 64-bit executables.
18155 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18157 * win32-i386-low.c: Add 64-bit support.
18158 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
18159 (init_registers_amd64): Declare.
18160 (mappings): Add 64-bit version of array.
18161 (init_windows_x86): New function.
18162 (the_low_target): Change init_arch field to init_windows_x86.
18164 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18166 * win32-low.c: Adapt to support also 64-bit architecture.
18167 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
18168 (get_image_name): Use SIZE_T type for local variable `done'.
18169 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
18170 (toolhelp_get_dll_name): Idem.
18171 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
18172 Use uintptr_t typecast to avoid warning.
18173 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
18174 (handle_exception): Use phex_nz to avoid warning.
18175 (win32_wait): Remove unused local variable `process'.
18177 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
18179 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
18182 2010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
18184 * configure.ac: Use `ws2_32' library for srv_mingw.
18185 * configure: Regenerate.
18186 * gdbreplay.c: Include winsock2.h instead of winsock.h.
18187 * remote-utils.c: Likewise.
18189 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
18191 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
18192 if __x86_64__ is defined.
18194 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18196 * configure: Regenerate.
18198 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
18200 * server.c (handle_query): Handle 'qGetTIBAddr' query.
18201 * target.h (target_ops): New get_tib_address field.
18202 * win32-low.h (win32_thread_info): Add thread_local_base field.
18203 * win32-low.c (child_add_thread): Add tlb argument.
18204 Set thread_local_base field to TLB.
18205 (get_child_debug_event): Adapt to child_add_thread change.
18206 (win32_get_tib_address): New function.
18207 (win32_target_ops): Set get_tib_address field to
18208 win32_get_tib_address.
18209 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
18211 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18213 * linux-low.c (linux_mourn): Also remove the process.
18214 * server.c (handle_target_event): Don't remove the process here.
18215 * nto-low.c (nto_mourn): New.
18216 (nto_target_ops): Install it.
18217 * spu-low.c (spu_mourn): New.
18218 (spu_target_ops): Install it.
18219 * win32-low.c (win32_mourn): New.
18220 (win32_target_ops): Install it.
18222 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18224 * server.h (buffer_xml_printf): Remove redundant `;'.
18226 2010-04-12 Pedro Alves <pedro@codesourcery.com>
18228 * regcache.c (set_register_cache): Invalidate regcaches before
18229 changing the register cache layout.
18230 (regcache_invalidate_one): Allow a NULL regcache.
18231 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
18232 regcaches before changing the register cache layout or the target
18235 2010-04-12 H.J. Lu <hongjiu.lu@intel.com>
18237 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
18238 variable warning on Linux/x86-64.
18240 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18242 GDBserver disconnected tracing support.
18244 * linux-low.c (linux_remove_process): Delete.
18245 (add_lwp): Don't set last_resume_kind here.
18246 (linux_kill): Use `mourn'.
18247 (linux_detach): Use `thread_db_detach', and `mourn'.
18248 (linux_mourn): New.
18249 (linux_attach_lwp_1): Adjust comment.
18250 (linux_attach): last_resume_kind moved the thread_info; adjust.
18251 (status_pending_p_callback): Adjust.
18252 (linux_wait_for_event_1): Adjust.
18253 (count_events_callback, select_singlestep_lwp_callback)
18254 (select_event_lwp_callback, cancel_breakpoints_callback)
18255 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
18256 (proceed_one_lwp): Adjust.
18257 (linux_async): Add debug output.
18258 (linux_thread_stopped): New.
18259 (linux_pause_all): New.
18260 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
18262 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
18263 (thread_db_free): Delete declaration.
18264 (thread_db_detach, thread_db_mourn): Declare.
18265 * thread-db.c (thread_db_init): Use thread_db_mourn.
18266 (thread_db_free): Delete, split in two.
18267 (disable_thread_event_reporting): New.
18268 (thread_db_detach): New.
18269 (thread_db_mourn): New.
18271 * server.h (struct thread_info) <last_resume_kind>: New field.
18272 <attached>: Add comment.
18273 <gdb_detached>: New field.
18274 (handler_func): Change return type to int.
18275 (handle_serial_event, handle_target_event): Ditto.
18276 (gdb_connected): Declare.
18278 (disconnected_tracing): Declare.
18279 (stop_tracing): Declare.
18281 * server.c (handle_query) <qSupported>: Report support for
18282 disconnected tracing.
18283 (queue_stop_reply_callback): Account for running threads.
18284 (gdb_wants_thread_stopped): New.
18285 (gdb_wants_all_threads_stopped): New.
18286 (gdb_reattached_process): New.
18287 (handle_status): Clear the `gdb_detached' flag of all processes.
18288 In all-stop, stop all threads.
18289 (main): Be sure to leave tfind mode. Handle disconnected tracing.
18290 (process_serial_event): If the remote connection breaks, or if an
18291 exit was forced with "monitor exit", force an event loop exit.
18292 Handle disconnected tracing on detach.
18293 (handle_serial_event): Adjust.
18294 (handle_target_event): If GDB isn't connected, forward events back
18295 to the inferior, unless the last process exited, in which case,
18296 exit gdbserver. Adjust interface.
18298 * remote-utils.c (remote_open): Don't block in accept. Instead
18299 register an event loop source on the listen socket file
18300 descriptor. Refactor bits into ...
18301 (listen_desc): ... this new global.
18302 (gdb_connected): ... this new function.
18303 (enable_async_notification): ... this new function.
18304 (handle_accept_event): ... this new function.
18305 (remote_close): Clear remote_desc.
18307 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
18309 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
18311 (mourn_inferior): Define.
18312 (target_process_qsupported): Avoid the dangling else problem.
18313 (thread_stopped): Define.
18314 (pause_all): Define.
18315 (target_waitstatus_to_string): Declare.
18316 * target.c (target_waitstatus_to_string): New.
18318 * tracepoint.c (tracing): Make extern.
18319 (disconnected_tracing): New.
18320 (stop_tracing): Make extern. Handle tracing stops due to GDB
18322 (cmd_qtdisconnected): New.
18323 (cmd_qtstatus): Report disconnected tracing status in trace reply.
18324 (handle_tracepoint_general_set): Handle QTDisconnected.
18326 * event-loop.c (event_handler_func): Change return type to int.
18327 (process_event): Bail out if the event handler wants the event
18329 (handle_file_event): Ditto.
18330 (start_event_loop): Bail out if the event handler wants the event
18333 * nto-low.c (nto_target_ops): Adjust.
18334 * spu-low.c (spu_wait): Don't remove the process here.
18335 (spu_target_ops): Adjust.
18336 * win32-low.c (win32_wait): Don't remove the process here.
18337 (win32_target_ops): Adjust.
18339 2010-04-11 Pedro Alves <pedro@codesourcery.com>
18341 * regcache.c (realloc_register_cache): Invalidate inferior's
18342 regcache before recreating it.
18344 2010-04-09 Pedro Alves <pedro@codesourcery.com>
18346 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
18348 2010-04-09 Stan Shebs <stan@codesourcery.com>
18349 Pedro Alves <pedro@codesourcery.com>
18351 * server.h (LONGEST): New.
18352 (struct thread_info) <while_stepping>: New field.
18353 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
18355 (initialize_tracepoint, handle_tracepoint_general_set)
18356 (handle_tracepoint_query, tracepoint_finished_step)
18357 (tracepoint_was_hit, release_while_stepping_state_list):
18358 (current_traceframe): Declare.
18359 * server.c (handle_general_set): Handle tracepoint packets.
18360 (read_memory): New.
18361 (write_memory): New.
18362 (handle_search_memory_1): Use read_memory.
18363 (handle_query): Report support for conditional tracepoints, trace
18364 state variables, and tracepoint sources. Handle tracepoint
18366 (main): Initialize the tracepoints module.
18367 (process_serial_event): Handle traceframe reads/writes.
18369 * linux-low.c (handle_tracepoints): New.
18370 (linux_wait_1): Call it.
18371 (linux_resume_one_lwp): Handle while-stepping.
18372 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
18373 (linux_target_ops): Install them.
18374 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
18376 * linux-x86-low.c (x86_supports_tracepoints): New.
18377 (the_low_target). Install it.
18379 * mem-break.h (delete_breakpoint): Declare.
18380 * mem-break.c (delete_breakpoint): Make external.
18382 * target.h (struct target_ops): Add `supports_tracepoints',
18383 `read_pc', and `write_pc' fields.
18384 (target_supports_tracepoints): Define.
18385 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
18388 * regcache.h (struct regcache) <registers_owned>: New field.
18389 (init_register_cache, regcache_cpy): Declare.
18390 (regcache_read_pc, regcache_write_pc): Declare.
18391 (register_cache_size): Declare.
18392 (supply_regblock): Declare.
18393 * regcache.c (init_register_cache): New.
18394 (new_register_cache): Use it.
18395 (regcache_cpy): New.
18396 (register_cache_size): New.
18397 (supply_regblock): New.
18398 (regcache_read_pc, regcache_write_pc): New.
18400 * tracepoint.c: New.
18402 * Makefile.in (OBS): Add tracepoint.o.
18403 (tracepoint.o): New rule.
18405 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
18407 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
18409 (i386-mmx.c): Likewise.
18410 (i386-mmx-linux.o): Likewise.
18411 (i386-mmx-linux.c): Likewise.
18413 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
18414 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
18415 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
18416 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
18418 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
18419 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
18420 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
18422 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
18424 * Makefile.in (clean): Updated.
18426 (i386-avx.c): Likewise.
18427 (i386-avx-linux.o): Likewise.
18428 (i386-avx-linux.c): Likewise.
18429 (amd64-avx.o): Likewise.
18430 (amd64-avx.c): Likewise.
18431 (amd64-avx-linux.o): Likewise.
18432 (amd64-avx-linux.c): Likewise.
18434 * configure.srv (srv_i386_regobj): Add i386-avx.o.
18435 (srv_i386_linux_regobj): Add i386-avx-linux.o.
18436 (srv_amd64_regobj): Add amd64-avx.o.
18437 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
18438 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
18439 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
18440 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
18441 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
18442 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
18443 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
18445 * i387-fp.c: Include "i386-xstate.h".
18447 (i387_cache_to_xsave): Likewise.
18448 (i387_xsave_to_cache): Likewise.
18449 (x86_xcr0): Likewise.
18451 * i387-fp.h (i387_cache_to_xsave): Likewise.
18452 (i387_xsave_to_cache): Likewise.
18453 (x86_xcr0): Likewise.
18455 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
18456 * linux-crisv32-low.c (target_regsets): Likewise.
18457 * linux-m68k-low.c (target_regsets): Likewise.
18458 * linux-mips-low.c (target_regsets): Likewise.
18459 * linux-ppc-low.c (target_regsets): Likewise.
18460 * linux-s390-low.c (target_regsets): Likewise.
18461 * linux-sh-low.c (target_regsets): Likewise.
18462 * linux-sparc-low.c (target_regsets): Likewise.
18463 * linux-xtensa-low.c (target_regsets): Likewise.
18465 * linux-low.c: Include <sys/uio.h>.
18466 (regsets_fetch_inferior_registers): Support nt_type.
18467 (regsets_store_inferior_registers): Likewise.
18468 (linux_process_qsupported): New.
18469 (linux_target_ops): Add linux_process_qsupported.
18471 * linux-low.h (regset_info): Add nt_type.
18472 (linux_target_ops): Add process_qsupported.
18474 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
18476 (init_registers_i386_avx_linux): New.
18477 (init_registers_amd64_avx_linux): Likewise.
18478 (xmltarget_i386_linux_no_xml): Likewise.
18479 (xmltarget_amd64_linux_no_xml): Likewise.
18480 (PTRACE_GETREGSET): Likewise.
18481 (PTRACE_SETREGSET): Likewise.
18482 (x86_fill_xstateregset): Likewise.
18483 (x86_store_xstateregset): Likewise.
18484 (use_xml): Likewise.
18485 (x86_linux_update_xmltarget): Likewise.
18486 (x86_linux_process_qsupported): Likewise.
18487 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
18488 (x86_arch_setup): Don't call init_registers_amd64_linux nor
18489 init_registers_i386_linux here. Call
18490 x86_linux_update_xmltarget.
18491 (the_low_target): Add x86_linux_process_qsupported.
18493 * server.c (handle_query): Call target_process_qsupported.
18495 * target.h (target_ops): Add process_qsupported.
18496 (target_process_qsupported): New.
18498 2010-04-03 Pedro Alves <pedro@codesourcery.com>
18500 * inferiors.c (add_thread): Set last_status kind to
18501 TARGET_WAITKIND_IGNORE.
18502 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
18503 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
18504 (linux_wait_1): Move `thread' local definition to block that uses
18505 it. Don't NULL initialize `event_child'.
18506 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
18507 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
18508 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
18510 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18512 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
18513 an extended waitstatus, or by a watchpoint.
18514 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
18515 thread was stepping or has been stopped by a watchpoint.
18517 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18519 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
18520 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
18521 of another, then delete the previous, and validate all
18523 (validate_inserted_breakpoint): New.
18524 (delete_disabled_breakpoints): New.
18525 (validate_breakpoints): New.
18526 (check_mem_read): Validate breakpoints before trusting their
18527 shadow. Delete disabled breakpoints.
18528 (check_mem_write): Validate breakpoints before trusting they
18529 should be inserted. Delete disabled breakpoints.
18530 * mem-break.h (validate_breakpoints):
18531 * server.c (handle_query): Validate breakpoints when we see a
18534 2010-04-01 Pedro Alves <pedro@codesourcery.com>
18536 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
18537 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
18538 if we could tell there's a GDB breakpoint at stop_pc.
18539 (need_step_over_p): Don't do a step over if we find a GDB
18540 breakpoint at the resume PC.
18542 * mem-break.c (struct raw_breakpoint): New.
18543 (enum bkpt_type): New type `gdb_breakpoint'.
18544 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
18545 fields. New field `raw'.
18546 (find_raw_breakpoint_at): New.
18547 (set_raw_breakpoint_at): Handle refcounting. Create a raw
18548 breakpoint instead.
18549 (set_breakpoint_at): Adjust.
18550 (delete_raw_breakpoint): New.
18551 (release_breakpoint): New.
18552 (delete_breakpoint): Rename to...
18553 (delete_breakpoint_1): ... this. Add proc parameter. Use
18554 release_breakpoint. Return ENOENT.
18555 (delete_breakpoint): Reimplement.
18556 (find_breakpoint_at): Delete.
18557 (find_gdb_breakpoint_at): New.
18558 (delete_breakpoint_at): Delete.
18559 (set_gdb_breakpoint_at): New.
18560 (delete_gdb_breakpoint_at): New.
18561 (gdb_breakpoint_here): New.
18562 (set_reinsert_breakpoint): Use release_breakpoint.
18563 (uninsert_breakpoint): Rename to ...
18564 (uninsert_raw_breakpoint): ... this.
18565 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
18566 (reinsert_raw_breakpoint): Change parameter type to
18568 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
18570 (check_breakpoints): Adjust. Use release_breakpoint.
18571 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
18572 (breakpoint_inserted_here): Ditto.
18573 (check_mem_read): Adjust to iterate over raw breakpoints instead.
18574 Don't trust the breakpoint's shadow if it is not inserted.
18575 (check_mem_write): Adjust to iterate over raw breakpoints instead.
18576 (delete_all_breakpoints): Adjust.
18577 (free_all_breakpoints): Mark all breakpoints as uninserted, and
18578 use delete_breakpoint_1.
18580 * mem-break.h (breakpoints_supported): Delete declaration.
18581 (set_gdb_breakpoint_at): Declare.
18582 (gdb_breakpoint_here): Declare.
18583 (delete_breakpoint_at): Delete.
18584 (delete_gdb_breakpoint_at): Declare.
18586 * server.h (struct raw_breakpoint): Forward declare.
18587 (struct process_info): New field `raw_breakpoints'.
18589 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
18592 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18594 * linux-low.c (status_pending_p_callback): Fix comment.
18595 (linux_wait_for_event_1): Move most of the internal breakpoint
18596 handling from here...
18597 (linux_wait_1): ... to here.
18598 (count_events_callback): New.
18599 (select_singlestep_lwp_callback): New.
18600 (select_event_lwp_callback): New.
18601 (cancel_breakpoints_callback): New.
18602 (select_event_lwp): New.
18603 (linux_wait_1): Simplify internal breakpoint handling. Give equal
18604 priority to all LWPs that have had events that should be reported
18605 to the client. Cancel breakpoints when about to reporting the
18606 event to the client, not while stopping lwps. No longer cancel
18607 finished single-steps here.
18608 (cancel_finished_single_step): Delete.
18609 (cancel_finished_single_steps): Delete.
18611 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18613 * mem-break.c (enum bkpt_type): New.
18614 (struct breakpoint): New field `type'.
18615 (set_breakpoint_at): Change return type to struct breakpoint
18616 pointer. Set type to `other_breakpoint' by default.
18617 (delete_breakpoint): Rewrite, supporting more than one breakpoint
18618 in the breakpoint list.
18619 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
18620 (reinsert_breakpoint): Rename to ...
18621 (reinsert_raw_breakpoint): ... this.
18622 (reinsert_breakpoints_at): Adjust.
18623 * mem-break.h (struct breakpoint): Declare.
18624 (set_breakpoint_at): Change return type to struct breakpoint
18627 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18629 * server.c (handle_query): Assign, not compare.
18631 2010-03-24 Pedro Alves <pedro@codesourcery.com>
18633 Teach linux gdbserver to step-over-breakpoints.
18635 * linux-low.c (can_hardware_single_step): New.
18636 (supports_breakpoints): New.
18637 (handle_extended_wait): If stopping threads, read the stop pc of
18638 the new cloned LWP.
18640 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
18641 low target doesn't support retrieving the PC.
18642 (add_lwp): Set last_resume_kind to resume_continue.
18643 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
18644 (linux_attach): Don't clear stop_expected. Set the lwp's
18645 last_resume_kind to resume_stop.
18646 (linux_detach_one_lwp): Don't check for removed breakpoints.
18647 (check_removed_breakpoint): Delete.
18648 (status_pending_p): Rename to ...
18649 (status_pending_p_callback): ... this. Don't check for removed
18650 breakpoints. Don't consider threads that are stopped from GDB's
18652 (linux_wait_for_lwp): Always read the stop_pc here.
18653 (cancel_breakpoint): New.
18654 (step_over_bkpt): New global.
18655 (linux_wait_for_event_1): Implement stepping over breakpoints.
18656 (gdb_wants_lwp_stopped): New.
18657 (gdb_wants_all_stopped): New.
18658 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
18659 single-step traps here. Store the thread's last reported target
18661 (send_sigstop): Don't clear stop_expected. Always set it,
18663 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
18664 (cancel_finished_single_step): New.
18665 (cancel_finished_single_steps): New.
18666 (wait_for_sigstop): Don't cancel finished single-step traps here.
18667 (linux_resume_one_lwp): Don't check for removed breakpoints.
18668 Don't set `step' on non-hardware step archs.
18669 (linux_set_resume_request): Ignore resume_stop requests if already
18670 stopping or stopped. Set the lwp's last_resume_kind.
18671 (resume_status_pending_p): Don't check for removed breakpoints.
18672 (need_step_over_p): New.
18673 (start_step_over): New.
18674 (finish_step_over): New.
18675 (linux_resume_one_thread): Always queue a sigstop for resume_stop
18676 requests. Clear the thread's last reported target waitstatus.
18677 Don't use the `suspended' flag. Don't consider pending breakpoints.
18678 (linux_resume): Start a step-over if necessary.
18679 (proceed_one_lwp): New.
18680 (proceed_all_lwps): New.
18681 (unstop_all_lwps): New.
18682 * linux-low.h (struct lwp_info): Rewrite comment for the
18683 `suspended' flag. Add the `stop_pc' field. Delete the
18684 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
18685 Add `'last_resume_kind' and `need_step_over' fields.
18686 * inferiors.c (struct thread_info): Delete, moved elsewhere.
18687 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
18688 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
18689 (set_raw_breakpoint_at): New.
18690 (set_breakpoint_at): Rewrite to use it.
18691 (reinsert_breakpoint_handler): Delete.
18692 (set_reinsert_breakpoint): New.
18693 (reinsert_breakpoint_by_bp): Delete.
18694 (delete_reinsert_breakpoints): New.
18695 (uninsert_breakpoint): Rewrite.
18696 (uninsert_breakpoints_at): New.
18697 (reinsert_breakpoint): Rewrite.
18698 (reinsert_breakpoints_at): New.
18699 (check_breakpoints): Rewrite.
18700 (breakpoint_here): New.
18701 (breakpoint_inserted_here): New.
18702 (check_mem_read): Adjust.
18703 * mem-break.h (breakpoints_supported, breakpoint_here)
18704 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
18705 (reinsert_breakpoint_by_bp): Delete declaration.
18706 (delete_reinsert_breakpoints): Declare.
18707 (reinsert_breakpoint): Delete declaration.
18708 (reinsert_breakpoints_at): Declare.
18709 (uninsert_breakpoint): Delete declaration.
18710 (uninsert_breakpoints_at): Declare.
18711 (check_breakpoints): Adjust prototype.
18712 * server.h: Adjust include order.
18713 (struct thread_info): Declare here. Add a `last_status' field.
18715 2010-03-23 Michael Snyder <msnyder@vmware.com>
18717 * server.c (crc32): New function.
18718 (handle_query): Add handling for 'qCRC:' request.
18720 2010-03-23 Pedro Alves <pedro@codesourcery.com>
18722 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
18723 lwp had been stopped by a watchpoint.
18725 2010-03-16 Pedro Alves <pedro@codesourcery.com>
18727 * server.h (internal_error): Declare.
18728 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
18729 * utils.c (internal_error): New function.
18731 2010-03-15 Andreas Schwab <schwab@redhat.com>
18733 * configure.srv: Fix typo setting srv_regobj.
18735 2010-03-15 Pedro Alves <pedro@codesourcery.com>
18737 * linux-low.c (fetch_register): Avoid passing a non string literal
18739 (usr_store_inferior_registers): Ditto.
18741 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18743 * linux-low.c (linux_write_memory): Bail out early if peeking
18746 2010-03-14 Pedro Alves <pedro@codesourcery.com>
18748 * linux-low.h (struct lwp_info): New fields
18749 `stopped_by_watchpoint' and `stopped_data_address'.
18750 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
18751 here, and cache them in the lwp object.
18752 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
18754 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
18756 (linux_stopped_by_watchpoint): Rewrite.
18757 (linux_stopped_data_address): Rewrite.
18759 2010-03-06 Simo Melenius <simo.melenius@iki.fi>
18761 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
18762 switching the current inferior, not before.
18764 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
18766 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
18767 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
18768 i386-linux.c and amd64-linux.c.
18769 (reg-i386.o): Removed.
18770 (reg-i386.c): Likewise.
18771 (reg-i386-linux.o): Likewise.
18772 (reg-i386-linux.c): Likewise.
18773 (reg-x86-64.o): Likewise.
18774 (reg-x86-64.c): Likewise.
18775 (reg-x86-64-linux.o): Likewise.
18776 (reg-x86-64-linux.c): Likewise.
18778 (i386.c): Likewise.
18779 (i386-linux.o): Likewise.
18780 (i386-linux.c): Likewise.
18781 (amd64.o): Likewise.
18782 (amd64.c): Likewise.
18783 (amd64-linux.o): Likewise.
18784 (amd64-linux.c): Likewise.
18786 * configure.srv (srv_i386_regobj): New.
18787 (srv_i386_linux_regobj): Likewise.
18788 (srv_amd64_regobj): Likewise.
18789 (srv_amd64_linux_regobj): Likewise.
18790 (srv_i386_32bit_xmlfiles): Likewise.
18791 (srv_i386_64bit_xmlfiles): Likewise.
18792 (srv_i386_xmlfiles): Likewise.
18793 (srv_amd64_xmlfiles): Likewise.
18794 (srv_i386_linux_xmlfiles): Likewise.
18795 (srv_amd64_linux_xmlfiles): Likewise.
18796 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
18797 srv_xmlfiles to $srv_i386_xmlfiles.
18798 (i[34567]86-*-mingw32ce*): Likewise.
18799 (i[34567]86-*-mingw*): Likewise.
18800 (i[34567]86-*-nto*): Likewise.
18801 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
18802 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
18803 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
18804 (x86_64-*-linux*): Likewise.
18806 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
18807 (init_registers_amd64_linux): New.
18808 (x86_arch_setup): Replace init_registers_x86_64_linux with
18809 init_registers_amd64_linux.
18811 2010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
18813 * configure.ac: Check for libdl. If it is not available link against
18814 static libthread_db.
18815 * configure: Regenerate.
18817 2010-02-22 Pedro Alves <pedro@codesourcery.com>
18821 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
18822 handing a read watchpoint.
18823 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
18825 2010-02-12 Doug Evans <dje@google.com>
18827 * linux-low.c (linux_supports_tracefork_flag): Document.
18828 (linux_look_up_symbols): Add comment.
18830 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
18832 * regcache.c (supply_register): Clear regcache if buf is NULL.
18834 2010-02-02 Nicolas Roche <roche@sourceware.org>
18835 Joel Brobecker <brobecker@adacore.com>
18837 * inferiors.c (find_inferior): Add function documentation.
18838 (unloaded_dll): Handle the case where the unloaded dll has not
18839 been previously registered in the dll list.
18841 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
18843 * linux-arm-low.c (thumb_breakpoint_len): Delete.
18844 (thumb2_breakpoint): New.
18845 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
18847 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
18849 * linux-low.c (get_stop_pc): Check for SIGTRAP.
18850 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
18853 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18855 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
18857 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18859 * linux-s390-low.c (s390_collect_ptrace_register)
18860 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
18862 2010-01-21 Doug Evans <dje@google.com>
18864 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
18865 (PTRACE_ARG4_TYPE): New macro.
18866 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
18867 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
18868 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
18869 (usr_store_inferior_registers): Ditto.
18870 (linux_read_memory, linux_write_memory): Ditto.
18871 (linux_test_for_tracefork): Ditto.
18873 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
18874 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
18876 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18878 * proc-service.c (ps_lgetregs): Don't refetch registers from the
18881 2010-01-21 Pedro Alves <pedro@codesourcery.com>
18883 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
18884 prototype to take a regcache. Adjust.
18886 2010-01-20 Pedro Alves <pedro@codesourcery.com>
18888 * regcache.h (struct thread_info): Forward declare.
18889 (struct regcache): New.
18890 (new_register_cache): Adjust prototype.
18891 (get_thread_regcache): Declare.
18892 (free_register_cache): Adjust prototype.
18893 (registers_to_string, registers_from_string): Ditto.
18894 (supply_register, supply_register_by_name, collect_register)
18895 (collect_register_as_string, collect_register_by_name): Ditto.
18896 * regcache.c (struct inferior_regcache_data): Delete.
18897 (get_regcache): Rename to ...
18898 (get_thread_regcache): ... this. Adjust. Switch inferior before
18899 fetching registers.
18900 (regcache_invalidate_one): Adjust.
18901 (regcache_invalidate): Fix prototype.
18902 (new_register_cache): Return the new register cache.
18903 (free_register_cache): Change prototype.
18904 (realloc_register_cache): Adjust.
18905 (registers_to_string): Change prototype to take a regcache. Adjust.
18906 (registers_from_string): Ditto.
18907 (register_data): Ditto.
18908 (supply_register): Ditto.
18909 (supply_register_by_name): Ditto.
18910 (collect_register): Ditto.
18911 (collect_register_as_string): Ditto.
18912 (collect_register_by_name): Ditto.
18913 * server.c (process_serial_event): Adjust.
18914 * linux-low.h (regset_fill_func, regset_store_func): Change
18916 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
18918 * linux-low.c (get_stop_pc): Adjust.
18919 (check_removed_breakpoint): Adjust.
18920 (linux_wait_for_event): Adjust.
18921 (linux_resume_one_lwp): Adjust.
18922 (fetch_register): Add regcache parameter. Adjust.
18923 (usr_store_inferior_registers): Ditto.
18924 (regsets_fetch_inferior_registers): Ditto.
18925 (regsets_store_inferior_registers): Ditto.
18926 (linux_fetch_registers, linux_store_registers): Ditto.
18927 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
18929 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
18931 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
18932 prototype to take a regcache.
18933 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
18934 * remote-utils.c (convert_ascii_to_int, outreg)
18935 (prepare_resume_reply): Change prototype to take a regcache.
18937 * target.h (struct target_ops) <fetch_registers, store_registers>:
18938 Change prototype to take a regcache.
18939 (fetch_inferior_registers, store_inferior_registers): Change
18940 prototype to take a regcache. Adjust.
18941 * proc-service.c (ps_lgetregs): Adjust.
18942 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
18943 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
18944 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
18945 take a regcache. Adjust.
18946 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
18947 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
18948 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
18949 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
18950 * linux-cris-low.c (cris_get_pc, cris_set_pc)
18951 (cris_cannot_fetch_register):
18952 (cris_breakpoint_at): Change prototype to take a regcache.
18954 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
18955 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
18956 to take a regcache. Adjust.
18957 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
18959 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
18960 take a regcache. Adjust.
18961 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
18962 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
18963 (m68k_set_pc): Change prototype to take a regcache. Adjust.
18964 * linux-mips-low.c (mips_get_pc):
18965 (mips_set_pc): Change prototype to take a regcache. Adjust.
18966 (mips_reinsert_addr): Adjust.
18967 (mips_collect_register): Change prototype to take a regcache.
18969 (mips_supply_register):
18970 (mips_collect_register_32bit, mips_supply_register_32bit)
18971 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
18972 (mips_store_fpregset): Ditto.
18973 * linux-ppc-low.c (ppc_supply_ptrace_register)
18974 (ppc_supply_ptrace_register): Ditto.
18975 (parse_spufs_run): Adjust.
18976 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
18977 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
18978 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
18979 take a regcache. Adjust.
18980 * linux-s390-low.c (s390_collect_ptrace_register)
18981 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
18982 (s390_set_pc): Change prototype to take a regcache. Adjust.
18983 (s390_arch_setup): Adjust.
18984 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
18985 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
18986 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
18987 (sparc_fill_gregset, sparc_store_gregset_from_stack)
18988 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
18990 (sparc_breakpoint_at): Adjust.
18991 * linux-xtensa-low.c (xtensa_fill_gregset):
18992 (xtensa_store_gregset):
18993 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
18994 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
18995 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
18996 prototype to take a regcache. Adjust.
18997 * win32-arm-low.c (arm_fetch_inferior_register)
18998 (arm_store_inferior_register): Change prototype to take a
19000 * win32-i386-low.c (i386_fetch_inferior_register)
19001 (i386_store_inferior_register): Change prototype to take a
19003 * win32-low.c (child_fetch_inferior_registers)
19004 (child_store_inferior_registers): Change prototype to take a
19006 (win32_wait): Adjust.
19007 (win32_fetch_inferior_registers): Change prototype to take a
19009 (win32_store_inferior_registers): Adjust.
19010 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
19011 store_inferior_register>: Change prototype to take a regcache.
19013 2010-01-20 Doug Evans <dje@google.com>
19015 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
19017 (linux_wait_for_event1, linux_init_signals): Ditto.
19018 (W_STOPCODE): Provide definition if missing.
19020 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
19022 * linux-low.c (linux_core_of_thread): New.
19023 (compare_ints, show_process, list_threads): New.
19024 (linux_qxfer_osdata): Report threads and cores.
19025 (linux_target_op): Register linux_core_of_thread.
19026 * remote-utils.c (prepare_resume_reply): Report the core.
19027 (buffer_xml_printf): Support %d specifier.
19028 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
19030 (handle_query): Handle qXfer:threads. Announce availability
19032 * target.h (struct target_ops): New field core_of_thread.
19034 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
19036 * Makefile.in (clean): Remove new generated files.
19037 (reg-s390.o, reg-s390.c): Remove rules.
19038 (reg-s390x.o, reg-s390x.c): Likewise.
19039 (s390-linux32.o, s390-linux32.c): Add rules.
19040 (s390-linux64.o, s390-linux64.c): Likewise.
19041 (s390x-linux64.o, s390x-linux64.c): Likewise.
19042 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
19043 * linux-s390-low.c: Include <elf.h>.
19044 (HWCAP_S390_HIGH_GPRS): Define if undefined.
19045 (init_registers_s390): Remove prototype.
19046 (init_registers_s390x): Likewise.
19047 (init_registers_s390_linux32): Add prototype.
19048 (init_registers_s390_linux64): Likewise.
19049 (init_registers_s390x_linux64): Likewise.
19050 (s390_num_regs_3264): New define.
19051 (s390_regmap_3264): New global variable.
19052 (s390_cannot_fetch_register): Remove obsolete check.
19053 (s390_cannot_store_register): Likewise.
19054 (s390_collect_ptrace_register): Handle upper/lower register halves.
19055 (s390_supply_ptrace_register): Likewise.
19056 (s390_fill_gregset): Update to register number changes.
19057 (s390_get_hwcap): New routine.
19058 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
19059 Install appropriate regmap and register set.
19061 2010-01-01 Joel Brobecker <brobecker@adacore.com>
19063 * server.c (gdbserver_version): Update copyright year to 2010.
19064 * gdbreplay.c (gdbreplay_version): Likewise.
19066 2009-12-28 Doug Evans <dje@google.com>
19068 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
19069 elf/external.h. Include <elf.h> instead but only if necessary.
19071 2009-12-28 Pedro Alves <pedro@codesourcery.com>
19073 * linux-low.c (linux_remove_process): Remove `detaching'
19074 parameter. Don't release/detach from thread_db here.
19075 (linux_kill): Release/detach from thread_db here, ...
19076 (linux_detach): ... and here, before actually detaching.
19077 (linux_wait_1): ... and here, when a process exits.
19078 * thread-db.c (any_thread_of): New.
19079 (thread_db_free): Switch the current inferior to a thread of the
19082 2009-12-21 Doug Evans <dje@google.com>
19084 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
19086 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
19087 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
19088 warning ifndef __NR_tkill. Move setting of errno there too.
19089 Delete unnecessary resetting of errno after syscall.
19090 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
19092 * configure.ac: Check for dladdr.
19093 * config.in: Regenerate.
19094 * configure: Regenerate.
19095 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
19096 (try_thread_db_load): Update.
19098 * linux-low.c (my_waitpid): Delete unnecessary prototype.
19100 2009-12-18 Doug Evans <dje@google.com>
19102 * event-loop.c: Include unistd.h if it exists.
19104 * linux-low.c (my_waitpid): Move definition away from being in
19105 between linux_tracefork_child/linux_test_for_tracefork.
19107 * gdb_proc_service.h (psaddr_t): Fix type.
19108 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
19109 signature to match glibc.
19111 2009-12-16 Doug Evans <dje@google.com>
19113 * linux-low.c (linux_read_memory): Fix argument to read.
19115 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19117 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
19118 events, don't leave current_inferior pointing at null.
19120 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19122 * win32-low.c (LOG): Delete.
19123 (OUTMSG): Output to stderr.
19124 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
19125 on compile time LOG macro.
19126 (win32_wait): Fix debug output.
19128 2009-11-26 Pedro Alves <pedro@codesourcery.com>
19130 * win32-low.c (win32_add_one_solib): If the dll name is
19131 "ntdll.dll", prepend the system directory to the dll path.
19133 2009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
19135 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
19137 2009-11-17 Nathan Sidwell <nathan@codesourcery.com>
19138 Vladimir Prus <vladimir@codesourcery.com>
19140 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
19141 * configure.ac: Check for __mcoldfire__ and set
19142 gdb_cv_m68k_is_coldfire.
19143 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
19144 reg-cf.o and reg-m68k.o.
19145 * configure: Regenerated.
19147 2009-11-16 Pedro Alves <pedro@codesourcery.com>
19149 * linux-low.c (linux_remove_process): Add `detaching' parameter.
19150 Pass it to thread_db_free.
19151 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
19152 proper `detaching' argument to linux_remove_process.
19153 * linux-low.h (thread_db_free): Add `detaching' parameter.
19154 * thread-db.c (thread_db_init): Pass false as `detaching' argument
19156 (thread_db_free): Add `detaching' parameter. Only
19157 call td_ta_clear_event if detaching from process.
19159 2009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19161 * thread-db.c (thread_db_free): Fix typo.
19163 2009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
19166 * thread-db.c (thread_db_free): Call td_ta_clear_event.
19168 2009-11-03 Nathan Sidwell <nathan@codesourcery.com>
19170 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
19171 with an i686 compiler.
19172 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
19174 * configure: Rebuilt.
19176 2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
19180 * server.c (handle_search_memory_1): Correct read_addr initialization
19181 in loop for searching subsequent chunks.
19183 2009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
19185 * configure.ac: New --with-libthread-db option.
19186 * thread-db.c: Allow direct dependence on libthread_db.
19187 (thread_db_free): Adjust.
19188 * config.in: Regenerate.
19189 * configure: Likewise.
19191 2009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
19194 * thread-db.c (attach_thread): New function.
19195 (maybe_attach_thread): Return success/failure.
19196 (find_new_threads_callback): Adjust.
19197 (thread_db_find_new_threads): Loop until no new threads.
19199 2009-10-13 Pedro Alves <pedro@codesourcery.com>
19201 * proc-service.c (ps_lgetregs): Formatting.
19203 2009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
19205 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
19206 * configure.ac: Adjust.
19207 * linux-low.h (struct process_info_private): Move members to struct
19209 (thread_db_free, thread_db_handle_monitor_command): New prototype.
19210 * linux-low.c (linux_remove_process): Adjust.
19211 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
19212 * server.c (handle_query): Move code ...
19213 (handle_monitor_command): ... here. New function.
19214 * target.h (struct target_ops): New member.
19215 * thread-db.c (struct thread_db): New.
19216 (libthread_db_search_path): New variable.
19217 (thread_db_create_event, thread_db_enable_reporting)
19218 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
19219 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
19220 (try_thread_db_load_1, dladdr_to_soname): New functions.
19221 (try_thread_db_load, thread_db_load_search): New functions.
19222 (thread_db_init): Search for libthread_db.
19223 (thread_db_free): New function.
19224 (thread_db_handle_monitor_command): Likewise.
19225 * config.in: Regenerate.
19226 * configure: Regenerate.
19228 2009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
19230 * spu-low.c (spu_kill): Wait for inferior to terminate.
19231 Call clear_inferiors.
19232 (spu_detach): Call clear_inferiors.
19234 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19236 * aclocal.m4: Regenerate.
19237 * config.in: Likewise.
19238 * configure: Likewise.
19240 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19242 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
19243 (parse_spufs_run): New function.
19244 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
19245 (ppc_breakpoint_at): Handle SPU breakpoints.
19247 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19249 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
19250 (SPUFS_MAGIC): Define.
19251 (spu_enumerate_spu_ids): New function.
19252 (linux_qxfer_spu): New function.
19253 (linux_target_ops): Install linux_qxfer_spu.
19255 2009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
19257 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
19258 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
19259 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
19260 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
19261 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
19262 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
19263 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
19264 (init_registers_powerpc_cell32l): Add prototype.
19265 (init_registers_powerpc_cell64l): Likewise.
19266 (ppc_arch_setup): Detect Cell/B.E. architecture.
19268 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19270 * Makefile.in (datarootdir): New variable.
19272 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19274 * linux-low.c (linux_write_memory): Update debugging output.
19275 * Makefile.in (clean): Add new descriptions.
19276 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
19277 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
19278 * configure.srv: Add new files for arm*-*-linux*.
19279 * linux-arm-low.c: Add new declarations.
19280 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
19281 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
19282 (HWCAP_VFPv3D16): New.
19283 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
19284 instead of __IWMMXT__.
19285 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
19286 (arm_arch_setup): New.
19287 (target_regsets): Remove #ifdef. Add VFP regset.
19288 (the_low_target): Use arm_arch_setup.
19290 2009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
19292 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
19293 the main thread again.
19295 2009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
19297 Adding Neutrino gdbserver.
19298 * configure: Regenerated.
19299 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
19300 * configure.srv (i[34567]86-*-nto*): New target.
19301 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
19302 * remote-utils.c [__QNX__]: Include sys/iomgr.h
19303 (nto_comctrl) [__QNX__]: New function.
19304 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
19306 2009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
19308 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
19311 2009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
19312 Pedro Alves <pedro@codesourcery.com>
19314 * win32-i386-low.c (i386_get_thread_context): Handle systems that
19315 don't support CONTEXT_EXTENDED_REGISTERS.
19316 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
19317 (the_low_target): Install them.
19318 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
19319 failing with ERROR_PIPE_NOT_CONNECTED.
19321 2009-06-30 Doug Evans <dje@google.com>
19322 Pierre Muller <muller@ics.u-strasbg.fr>
19324 Add h/w watchpoint support to x86-linux, win32-i386.
19325 * Makefile.in (SFILES): Add i386-low.c
19326 (i386_low_h): Define.
19327 (i386-low.o): Add dependencies.
19328 (linux-x86-low.o): Add i386-low.h dependency.
19329 (win32-i386-low.o): Ditto.
19330 * i386-low.c: New file.
19331 * i386-low.h: New file.
19332 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
19333 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
19334 * linux-low.c (linux_add_process): Initialize arch_private.
19335 (linux_remove_process): Free arch_private.
19336 (add_lwp): Initialize arch_private.
19337 (delete_lwp): Free arch_private.
19338 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
19340 * linux-low.h (process_info_private): New member arch_private.
19341 (lwp_info): New member arch_private.
19342 (linux_target_ops): New members new_process, new_thread,
19344 (ptid_of): New macro.
19345 * linux-x86-low.c: Include stddef.h, i386-low.h.
19346 (arch_process_info): New struct.
19347 (arch_lwp_info): New struct.
19348 (x86_linux_dr_get, x86_linux_dr_set): New functions.
19349 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19350 (i386_dr_low_get_status): New function.
19351 (x86_insert_point, x86_remove_point): New functions.
19352 (x86_stopped_by_watchpoint): New function.
19353 (x86_stopped_data_address): New function.
19354 (x86_linux_new_process, x86_linux_new_thread): New functions.
19355 (x86_linux_prepare_to_resume): New function.
19356 (the_low_target): Add entries for insert_point, remove_point,
19357 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
19359 * server.c (debug_hw_points): New global.
19360 (monitor_show_help): Document set debug-hw-points.
19361 (handle_query): Process "set debug-hw-points".
19362 * server.h (debug_hw_points): Declare.
19363 (paddress): Declare.
19364 * utils.c (NUMCELLS, CELLSIZE): New macros.
19365 (get_sell, xsnprintf, paddress): New functions.
19366 * win32-arm-low.c (the_low_target): Add entries for insert_point,
19367 remove_point, stopped_by_watchpoint, stopped_data_address.
19368 * win32-i386-low.c: Include i386-low.h.
19369 (debug_reg_state): Replaces dr.
19370 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
19371 (i386_dr_low_get_status): New function.
19372 (i386_insert_point, i386_remove_point): New functions.
19373 (i386_stopped_by_watchpoint): New function.
19374 (i386_stopped_data_address): New function.
19375 (i386_initial_stuff): Update.
19376 (get_thread_context,set_thread_context,i386_thread_added): Update.
19377 (the_low_target): Add entries for insert_point,
19378 remove_point, stopped_by_watchpoint, stopped_data_address.
19379 * win32-low.c (win32_insert_watchpoint): New function.
19380 (win32_remove_watchpoint): New function.
19381 (win32_stopped_by_watchpoint): New function.
19382 (win32_stopped_data_address): New function.
19383 (win32_target_ops): Add entries for insert_watchpoint,
19384 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
19385 * win32-low.h (win32_target_ops): New members insert_point,
19386 remove_point, stopped_by_watchpoint, stopped_data_address.
19388 2009-06-25 Pedro Alves <pedro@codesourcery.com>
19390 * server.c (process_serial_event): Re-return unsupported, not
19391 error, if the type isn't recognized. Re-allow supporting only
19392 insert or remove packets. Also call require_running for
19393 breakpoints. Add missing break statement to default case. Tidy.
19394 * target.h (struct target_ops): Rename insert_watchpoint to
19395 insert_point, and remove_watchpoint to remove_point.
19397 * linux-low.h (struct linux_target_ops): Likewise.
19398 * linux-low.c (linux_insert_watchpoint): Rename to ...
19399 (linux_insert_point): ... this. Adjust.
19400 (linux_remove_watchpoint): Rename to ...
19401 (linux_remove_point): ... this. Adjust.
19402 (linux_target_ops): Adjust.
19403 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
19404 (cris_insert_point): ... this.
19405 (cris_remove_watchpoint): Rename to ...
19406 (cris_remove_point): ... this.
19407 (the_low_target): Adjust.
19409 2009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
19411 * server.c (handle_v_kill): Pass signal_pid to
19412 kill_inferior if multi_process is zero.
19414 2009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
19416 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
19417 * target.h (target_ops): Comment for *_watchpoint to make it clear
19418 the functions can get types '0' and '1'.
19420 2009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
19422 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
19423 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
19424 * regcache.c (get_regcache): Likewise.
19425 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
19426 * win32-low.c (child_fetch_inferior_registers): Remove check for
19429 2009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
19430 Pedro Alves <pedro@codesourcery.com>
19432 * target.h (struct target_ops) <supports_multi_process>: New
19434 (target_supports_multi_process): New.
19435 * server.c (handle_query): Even if GDB reports support, only
19436 enable multi-process if the target also supports it. Report
19437 multi-process support only if the target backend supports it.
19438 * linux-low.c (linux_supports_multi_process): New function.
19439 (linux_target_ops): Install it as target_supports_multi_process
19442 2009-05-24 Doug Evans <dje@google.com>
19444 Global renaming of find_thread_pid to find_thread_ptid.
19445 * server.h (find_thread_ptid): Renamed from find_thread_pid.
19446 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
19447 All callers updated.
19449 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
19450 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
19453 * linux-low.c (get_stop_pc): Print pc if debug_threads.
19454 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
19455 (linux_resume_one_lwp): Ditto.
19457 2009-05-23 Doug Evans <dje@google.com>
19459 * linux-low.c (linux_resume_one_lwp): Change type of first arg
19460 from struct inferior_list_entry * to struct lwp_info *.
19461 All callers updated.
19463 2009-05-13 Doug Evans <dje@google.com>
19465 * linux-x86-low.c: Don't include assert.h.
19466 (x86_siginfo_fixup): Use fatal, not assert.
19467 (x86_arch_setup): Fix comment.
19469 2009-05-12 Doug Evans <dje@google.com>
19471 Biarch support for i386/amd64 gdbserver.
19472 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
19473 Add linux-x86-low.c.
19474 (linux-i386-low.o, linux-x86-64-low.o): Delete.
19475 (linux-x86-low.o): Add.
19476 * linux-x86-64-low.c: Delete.
19477 * linux-i386-low.c: Delete.
19478 * linux-x86-low.c: New file.
19479 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
19481 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
19483 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
19484 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
19485 (linux_child_pid_to_exec_file): New function.
19486 (elf_64_header_p, elf_64_file_p): New functions.
19487 (siginfo_fixup): New function.
19488 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
19489 give target a chance to convert layout.
19490 * linux-low.h (linux_target_ops): New member siginfo_fixup.
19491 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
19493 2009-05-07 Doug Evans <dje@google.com>
19495 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
19496 (regsets_store_inferior_registers): Ditto.
19498 2009-05-06 Pedro Alves <pedro@codesourcery.com>
19502 * linux-low.c (must_set_ptrace_flags): Delete.
19503 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
19505 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
19506 `lwp->must_set_ptrace_flags' instead.
19507 (linux_wait_for_event_1): Set ptrace options here.
19508 (linux_wait_1): ... not here.
19510 2009-04-30 Doug Evans <dje@google.com>
19512 * inferiors.c (started_inferior_callback): New function.
19513 (attached_inferior_callback): New function.
19514 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
19515 * server.c (print_started_pid, print_attached_pid): New functions.
19516 (detach_or_kill_for_exit): New function.
19517 (main): Call it instead of for_each_inferior (kill_inferior_callback).
19518 * server.h (have_started_inferiors_p): Declare.
19519 (have_attached_inferiors_p): Declare.
19521 * inferiors.c (remove_process): Fix memory leak, free process.
19522 * linux-low.c (linux_remove_process): New function.
19523 (linux_kill): Call it instead of remove_process.
19524 (linux_detach, linux_wait_1): Ditto.
19526 2009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
19528 * configure.srv: Add x86 Windows CE target.
19530 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19532 * inferiors.c (get_thread_process): Make global.
19533 * server.h (get_thread_process): Add prototype.
19534 * thread-db.c (find_one_thread): Use get_thread_process
19535 instead of current_process.
19536 (thread_db_get_tls_address): Do not crash if called when
19537 thread layer is not yet initialized.
19539 2009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
19541 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
19542 * spu-low.c (current_tid): Rename to ...
19543 (current_ptid): ... this.
19544 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
19545 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
19546 ptid_get_lwp (current_ptid) instead of current_tid.
19547 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
19548 instead of current_tid. Use find_process_pid to verify pid
19549 argument is valid. Pass proper argument to remove_process.
19550 (spu_thread_alive): Compare current_ptid instead of current_tid.
19551 (spu_resume): Likewise.
19553 2009-04-02 Pedro Alves <pedro@codesourcery.com>
19555 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
19558 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19560 Implement the multiprocess extensions, and add linux multiprocess
19563 * server.h (ULONGEST): Declare.
19564 (struct ptid, ptid_t): New.
19565 (minus_one_ptid, null_ptid): Declare.
19566 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19567 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
19568 (struct inferior_list_entry): Change `id' type from unsigned from
19570 (struct sym_cache, struct breakpoint, struct
19571 process_info_private): Forward declare.
19572 (struct process_info): Declare.
19573 (current_process): Declare.
19574 (all_processes): Declare.
19575 (initialize_inferiors): Declare.
19576 (add_thread): Adjust to use ptid_t.
19577 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
19578 (add_process, remove_process, find_thread_pid): Declare.
19579 (find_inferior_id): Adjust to use ptid_t.
19580 (cont_thread, general_thread, step_thread): Change type to ptid_t.
19581 (multi_process): Declare.
19582 (push_event): Adjust to use ptid_t.
19583 (read_ptid, write_ptid): Declare.
19584 (prepare_resume_reply): Adjust to use ptid_t.
19585 (clear_symbol_cache): Declare.
19586 * inferiors.c (all_processes): New.
19587 (null_ptid, minus_one_ptid): New.
19588 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
19589 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
19590 (add_thread): Change unsigned long to ptid. Remove gdb_id
19592 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
19593 (gdb_id_to_thread): Rename to ...
19594 (find_thread_pid): ... this. Change unsigned long to ptid.
19595 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
19596 (loaded_dll, pull_pid_from_list): Adjust.
19597 (add_process, remove_process, find_process_pid)
19598 (get_thread_process, current_process, initialize_inferiors): New.
19599 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
19600 (struct target_waitstatus) <related_pid>: Ditto.
19601 (struct target_ops) <kill, detach>: Add `pid' argument. Change
19602 return type to int.
19603 (struct target_ops) <join>: Add `pid' argument.
19604 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
19605 (struct target_ops) <wait>: Add `ptid' field. Change return type
19607 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
19608 (mywait): Add `ptid' argument. Change return type to ptid_t.
19609 (target_pid_to_str): Declare.
19610 * target.c (set_desired_inferior): Adjust to use ptids.
19611 (mywait): Add new `ptid' argument. Adjust.
19612 (target_pid_to_str): New.
19613 * mem-break.h (free_all_breakpoints): Declare.
19614 * mem-break.c (breakpoints): Delelete.
19615 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
19616 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
19617 to use per-process breakpoint list.
19618 (free_all_breakpoints): New.
19619 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
19620 (symbol_cache, all_symbols_looked_up): Delete.
19622 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
19624 (prepare_resume_reply): Change ptid argument's type from unsigned
19625 long to ptid_t. Adjust. Implement W;process and X;process.
19626 (free_sym_cache, clear_symbol_cache): New.
19627 (look_up_one_symbol): Adjust to per-process symbol cache. *
19628 * server.c (cont_thread, general_thread, step_thread): Change type
19630 (attached): Delete.
19631 (multi_process): New.
19632 (last_ptid): Change type to ptid_t.
19633 (struct vstop_notif) <ptid>: Change type to ptid_t.
19634 (queue_stop_reply, push_event): Change `ptid' argument's type to
19636 (discard_queued_stop_replies): Add `pid' argument.
19637 (start_inferior): Adjust to use ptids. Adjust to mywait interface
19638 changes. Don't reference the `attached' global.
19639 (attach_inferior): Adjust to mywait interface changes.
19640 (handle_query): Adjust to use ptids. Parse GDB's qSupported
19641 features. Handle and report "multiprocess+". Handle
19643 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
19645 (handle_v_kill): New.
19646 (handle_v_stopped): Adjust to use target_pid_to_str.
19647 (handle_v_requests): Allow multiple attaches and runs when
19648 multiprocess extensions are in effect. Handle "vKill".
19649 (myresume): Adjust to use ptids.
19650 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
19651 (handle_status): Adjust to discard_queued_stop_replies interface
19653 (first_thread_of, kill_inferior_callback)
19654 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
19655 (main): Call initialize_inferiors. Adjust to use ptids, killing
19656 and detaching from all inferiors. Handle multiprocess packet
19658 * linux-low.h: Include gdb_proc_service.h.
19659 (struct process_info_private): New.
19660 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
19661 <lwpid_of>: Use ptid_get_lwp.
19662 (get_lwp_thread): Adjust.
19663 (struct lwp_info): Add `dead' member.
19664 (find_lwp_pid): Declare.
19665 * linux-low.c (thread_db_active): Delete.
19666 (new_inferior): Adjust comment.
19667 (inferior_pid): Delete.
19668 (linux_add_process): New.
19669 (handle_extended_wait): Adjust.
19670 (add_lwp): Change unsigned long to ptid.
19671 (linux_create_inferior): Add process to processes table. Adjust
19672 to use ptids. Don't set new_inferior here.
19673 (linux_attach_lwp): Rename to ...
19674 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
19675 it. Adjust to use ptids.
19676 (linux_attach_lwp): New.
19677 (linux_attach): Add process to processes table. Don't set
19679 (struct counter): New.
19680 (second_thread_of_pid_p, last_thread_of_process_p): New.
19681 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
19682 multiple processes.
19683 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
19684 processes. Remove process from process table.
19685 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
19686 to multiple processes.
19687 (any_thread_of): New.
19688 (linux_detach): Add `pid' argument, and handle it. Remove process
19689 from processes table.
19690 (linux_join): Add `pid' argument. Handle it.
19691 (linux_thread_alive): Change unsighed long argument to ptid_t.
19692 Consider dead lwps as not being alive.
19693 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
19694 threads we're not interested in.
19695 (same_lwp, find_lwp_pid): New.
19696 (linux_wait_for_lwp): Change `pid' argument's type from int to
19698 (linux_wait_for_event): Rename to ...
19699 (linux_wait_for_event_1): ... this. Change `pid' argument's type
19700 from int to ptid_t. Adjust.
19701 (linux_wait_for_event): New.
19702 (linux_wait_1): Add `ptid' argument. Change return type to
19703 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
19704 that exit from the process table.
19705 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
19707 (mark_lwp_dead): New.
19708 (wait_for_sigstop): Adjust to use ptids. If a process exits while
19709 stopping all threads, mark its main lwp as dead.
19710 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
19712 (fetch_register, usr_store_inferior_registers)
19713 (regsets_fetch_inferior_registers)
19714 (regsets_store_inferior_registers, linux_read_memory)
19715 (linux_write_memory): Inline `inferior_pid'.
19716 (linux_look_up_symbols): Adjust to use per-process
19717 `thread_db_active'.
19718 (linux_request_interrupt): Adjust to use ptids.
19719 (linux_read_auxv): Inline `inferior_pid'.
19720 (initialize_low): Don't reference thread_db_active.
19721 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
19722 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
19723 (ps_getpid): Return the pid of the current inferior.
19724 * thread-db.c (proc_handle, thread_agent): Delete.
19725 (thread_db_create_event, thread_db_enable_reporting): Adjust to
19727 (find_one_thread): Change argument type to ptid_t. Adjust to
19729 (maybe_attach_thread): Adjust to per-process data and ptids.
19730 (thread_db_find_new_threads): Ditto.
19731 (thread_db_init): Ditto.
19732 * spu-low.c (spu_create_inferior, spu_attach): Add process to
19733 processes table. Adjust to use ptids.
19734 (spu_kill, spu_detach): Adjust interface. Remove process from
19736 (spu_join, spu_thread_alive): Adjust interface.
19737 (spu_wait): Adjust interface. Remove process from processes
19738 table. Adjust to use ptids.
19739 * win32-low.c (current_inferior_tid): Delete.
19740 (current_inferior_ptid): New.
19741 (debug_event_ptid): New.
19742 (thread_rec): Take a ptid. Adjust.
19743 (child_add_thread): Add `pid' argument. Adjust to use ptids.
19744 (child_delete_thread): Ditto.
19745 (do_initial_child_stuff): Add `attached' argument. Add process to
19747 (child_fetch_inferior_registers, child_store_inferior_registers):
19749 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
19750 (win32_attach): Pass 1 to do_initial_child_stuff.
19751 (win32_kill): Adjust interface. Remove process from processes
19753 (win32_detach): Ditto.
19754 (win32_join): Adjust interface.
19755 (win32_thread_alive): Take a ptid.
19756 (win32_resume): Adjust to use ptids.
19757 (get_child_debug_event): Ditto.
19758 (win32_wait): Adjust interface. Remove exiting process from
19761 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19763 Non-stop mode support.
19765 * server.h (non_stop): Declare.
19766 (gdb_client_data, handler_func): Declare.
19767 (delete_file_handler, add_file_handler, start_event_loop):
19769 (handle_serial_event, handle_target_event, push_event)
19770 (putpkt_notif): Declare.
19771 * target.h (enum resume_kind): New.
19772 (struct thread_resume): Replace `step' field by `kind' field.
19773 (TARGET_WNOHANG): Define.
19774 (struct target_ops) <wait>: Add `options' argument.
19775 <supports_non_stop, async, start_non_stop>: New fields.
19776 (target_supports_non_stop, target_async): New.
19777 (start_non_stop): Declare.
19778 (mywait): Add `options' argument.
19779 * target.c (mywait): Add `options' argument. Print child exit
19780 notifications here.
19781 (start_non_stop): New.
19782 * server.c (non_stop, own_buf, mem_buf): New globals.
19783 (struct vstop_notif): New.
19784 (notif_queue): New global.
19785 (queue_stop_reply, push_event, discard_queued_stop_replies)
19786 (send_next_stop_reply): New.
19787 (start_inferior): Adjust to use resume_kind. Adjust to mywait
19789 (attach_inferior): In non-stop mode, don't wait for the target
19791 (handle_general_set): Handle QNonStop.
19792 (handle_query): When handling qC, return the current general
19793 thread, instead of the first thread of the list.
19794 (handle_query): If the backend supports non-stop mode, include
19795 QNonStop+ in the qSupported query response.
19796 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
19798 (handle_v_attach, handle_v_run): Handle non-stop mode.
19799 (handle_v_stopped): New.
19800 (handle_v_requests): Report support for vCont;t. Handle vStopped.
19801 (myresume): Adjust to use resume_kind. Handle non-stop.
19802 (queue_stop_reply_callback): New.
19803 (handle_status): Handle non-stop mode.
19804 (main): Clear non_stop flag on reconnection. Use the event-loop.
19805 Refactor serial protocol handling from here ...
19806 (process_serial_event): ... to this new function. When GDB
19807 selects any thread, select one here. In non-stop mode, wait until
19808 GDB acks all pending events before exiting.
19809 (handle_serial_event, handle_target_event): New.
19810 * remote-utils.c (remote_open): Install remote_desc in the event
19812 (remote_close): Remove remote_desc from the event loop.
19813 (putpkt_binary): Rename to...
19814 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
19815 (putpkt_binary): New as wrapper around putpkt_binary_1.
19816 (putpkt_notif): New.
19817 (prepare_resume_reply): In non-stop mode, don't change the
19819 * event-loop.c: New.
19820 * Makefile.in (OBJ): Add event-loop.o.
19821 (event-loop.o): New rule.
19823 * linux-low.h (pid_of): Moved here.
19825 (get_lwp_thread): Use lwpid_of.
19826 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
19827 * linux-low.c (pid_of): Delete.
19828 (inferior_pid): Use lwpid_of.
19829 (linux_event_pipe): New.
19830 (target_is_async_p): New.
19832 (handle_extended_wait): Use lwpid_of.
19833 (add_lwp): Don't set lwpid field.
19834 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
19835 (linux_kill_one_lwp): If killing a running lwp, stop it first.
19836 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
19837 (linux_detach_one_lwp): If detaching from a running lwp, stop it
19838 first. Adjust to linux_wait_for_event interface changes. Use
19840 (linux_detach): Don't delete the main lwp here.
19841 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
19842 (status_pending_p): Don't consider explicitly suspended lwps.
19843 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
19844 pointer. Add OPTIONS argument. Change return type to int. Use
19845 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
19846 (linux_wait_for_event): Take an integer pid instead of a lwp_info
19847 pointer. Add status pointer argument. Return a pid instead of a
19848 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
19849 changes. In non-stop mode, don't switch to a random thread.
19850 (linux_wait): Rename to...
19851 (linux_wait_1): ... this. Add target_options argument, and handle
19852 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
19853 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
19854 clean exit and signal exit code. Don't stop all threads in
19855 non-stop mode. In all-stop mode, only stop all threads when
19856 reporting a stop to GDB. Handle explicit thread stop requests.
19857 (async_file_flush, async_file_mark): New.
19859 (send_sigstop): Use lwpid_of.
19860 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
19861 interface changes. In non-stop mode, don't switch to a random
19863 (linux_resume_one_lwp): Use lwpid_of.
19864 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
19865 (linux_resume_one_thread): ... this. Handle resume_stop. In
19866 non-stop mode, don't look for pending flag in all threads.
19867 (resume_status_pending_p): Don't consider explicitly suspended
19869 (my_waitpid): Reimplement. Emulate __WALL.
19870 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
19872 (sigchld_handler, linux_supports_non_stop, linux_async)
19873 (linux_start_non_stop): New.
19874 (linux_target_ops): Register linux_supports_non_stop, linux_async
19875 and linux_start_non_stop.
19876 (initialize_low): Install SIGCHLD handler.
19877 * thread-db.c (thread_db_create_event, find_one_thread)
19878 (thread_db_get_tls_address): Use lwpid_of.
19879 * win32-low.c (win32_detach): Adjust to use resume_kind.
19880 (win32_wait): Add `options' argument.
19881 * spu-low.c (spu_resume): Adjust to use resume_kind.
19882 (spu_wait): Add `options' argument.
19884 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19886 Decouple target code from remote protocol.
19888 * target.h (enum target_waitkind): New.
19889 (struct target_waitstatus): New.
19890 (struct target_ops) <wait>: Return an unsigned long. Take a
19891 target_waitstatus pointer instead of a char pointer.
19892 (mywait): Likewise.
19893 * target.c (mywait): Change prototype to return an unsigned long.
19894 Take a target_waitstatus pointer instead of a char pointer. Adjust.
19895 * server.h (thread_from_wait, old_thread_from_wait): Delete
19897 (prepare_resume_reply): Change prototype to take a
19899 * server.c (thread_from_wait, old_thread_from_wait): Delete.
19900 (last_status, last_ptid): New.
19901 (start_inferior): Remove "statusptr" argument. Adjust. Return a
19902 pid instead of a signal.
19903 (attach_inferior): Remove "status" and "signal" parameters.
19905 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
19907 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
19908 (handle_v_requests, myresume): Remove "status" and "signal"
19909 parameters. Adjust.
19910 (handle_status): New.
19911 (main): Delete local `status'. Adjust.
19912 * remote-utils.c: Include target.h.
19913 (prepare_resume_reply): Change prototype to take a
19914 target_waitstatus. Adjust.
19916 * linux-low.c (linux_wait): Adjust to new target_ops->wait
19918 * spu-low.c (spu_wait): Adjust.
19919 * win32-low.c (enum target_waitkind, struct target_waitstatus):
19921 (win32_wait): Adjust.
19923 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19925 * target.h (struct thread_resume): Delete leave_stopped member.
19926 (struct target_ops): Add a `n' argument to the `resume' callback.
19927 * server.c (start_inferior): Adjust.
19928 (handle_v_cont, myresume): Adjust.
19929 * linux-low.c (check_removed_breakpoint): Adjust to resume
19930 interface change, and to removed leave_stopped field.
19931 (resume_ptr): Delete.
19932 (struct thread_resume_array): New.
19933 (linux_set_resume_request): Add new `arg' parameter. Adjust to
19934 resume interface change.
19935 (linux_continue_one_thread, linux_queue_one_thread)
19936 (resume_status_pending_p): Check if the resume field is NULL
19937 instead of checking the leave_stopped member.
19938 (linux_resume): Adjust to the target resume interface change.
19939 * spu-low.c (spu_resume): Adjust to the target resume interface
19941 * win32-low.c (win32_detach, win32_resume): Ditto.
19943 2009-04-01 Pedro Alves <pedro@codesourcery.com>
19945 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
19947 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
19949 (linux_continue_one_thread): Only preserve the stepping flag if
19950 there's a pending breakpoint.
19952 2009-03-31 Pedro Alves <pedro@codesourcery.com>
19954 * server.c (main): After the inferior having exited, call
19955 remote_close before exiting gdbserver.
19957 2009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
19959 Fix size of FPSCR in Power 7 processors.
19960 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
19961 (PPC_FEATURE_HAS_DFP): New #define.
19962 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
19965 2009-03-23 Pedro Alves <pedro@codesourcery.com>
19967 * server.c (handle_query) Whitespace and formatting.
19969 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19971 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
19972 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
19973 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
19974 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
19975 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
19976 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
19977 Makefile.in, configure.ac: Fix whitespace throughout.
19978 * configure: Regenerate.
19980 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19982 * inferiors.c (find_inferior): Make it safe for the callback
19983 function to delete the currently iterated inferior.
19985 2009-03-22 Pedro Alves <pedro@codesourcery.com>
19987 * Makefile.in (linuw_low_h): Move higher.
19988 (thread-db.o): Depend on $(linux_low_h).
19990 2009-03-17 Pedro Alves <pedro@codesourcery.com>
19992 Rename "process" to "lwp" throughout.
19994 * linux-low.c (all_processes): Rename to...
19995 (all_lwps): ... this.
19996 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
19997 (add_process): Rename to ...
19998 (add_lwp): ... this. Adjust.
19999 (linux_create_inferior): Adjust.
20000 (linux_attach_lwp): Adjust.
20001 (linux_attach): Adjust.
20002 (linux_kill_one_process): Rename to ...
20003 (linux_kill_one_lwp): ... this. Adjust.
20004 (linux_kill): Adjust.
20005 (linux_detach_one_process): Rename to ...
20006 (linux_detach_one_lwp): ... this. Adjust.
20007 (linux_detach): Adjust.
20008 (check_removed_breakpoint): Adjust.
20009 (status_pending_p): Adjust.
20010 (linux_wait_for_process): Rename to ...
20011 (linux_wait_for_lwp): ... this. Adjust.
20012 (linux_wait_for_event): Adjust.
20013 (send_sigstop): Adjust.
20014 (wait_for_sigstop): Adjust.
20015 (stop_all_processes): Rename to ...
20016 (stop_all_lwps): ... this.
20017 (linux_resume_one_process): Rename to ...
20018 (linux_resume_one_lwp): ... this. Adjust.
20019 (linux_set_resume_request, linux_continue_one_thread)
20020 (linux_queue_one_thread, resume_status_pending_p)
20021 (usr_store_inferior_registers, regsets_store_inferior_registers)
20022 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
20024 * linux-low.h (get_process): Rename to ...
20025 (get_lwp): ... this. Adjust.
20026 (get_thread_process): Rename to ...
20027 (get_thread_lwp): ... this. Adjust.
20028 (get_process_thread): Rename to ...
20029 (get_lwp_thread): ... this. Adjust.
20030 (struct process_info): Rename to ...
20031 (struct lwp_info): ... this.
20032 (all_processes): Rename to ...
20033 (all_lwps): ... this.
20034 * proc-service.c (ps_lgetregs): Adjust.
20035 * thread-db.c (thread_db_create_event, find_one_thread)
20036 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
20038 2009-03-14 Pedro Alves <pedro@codesourcery.com>
20040 * server.c (handle_query): Handle "qAttached".
20042 2009-03-13 Nathan Sidwell <nathan@codesourcery.com>
20044 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
20045 GPLv3, update license URL.
20047 2009-03-01 Doug Evans <dje@google.com>
20049 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
20050 (server_h): Add gdb_signals.h.
20051 (signals.o): Update.
20052 * server.h (target_signal_from_host,target_signal_to_host_p)
20053 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
20055 2009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
20057 * remote-utils.c (getpkt): Also generate remote-debug
20058 information if noack_mode is set.
20060 2009-02-06 Pedro Alves <pedro@codesourcery.com>
20062 * server.c (handle_query): Report qXfer:siginfo:read and
20063 qXfer:siginfo:write as supported and handle them.
20064 * target.h (struct target_ops) <qxfer_siginfo>: New field.
20065 * linux-low.c (linux_xfer_siginfo): New.
20066 (linux_target_ops): Set it.
20068 2009-01-26 Pedro Alves <pedro@codesourcery.com>
20070 * server.c (gdbserver_usage): Mention --remote-debug.
20071 (main): Accept '--remote-debug' switch.
20073 2009-01-18 Doug Evans <dje@google.com>
20075 * regcache.c (new_register_cache): No need to check result of xcalloc.
20076 * server.c (handle_search_memory): Back out calls to xmalloc,
20077 result is checked and error is returned to user upon failure.
20078 (handle_query): Ditto. Add more checks for result of malloc.
20079 (handle_v_cont): Check result of malloc, report error back to
20081 (handle_v_run): Ditto. Call freeargv.
20082 * server.h (freeargv): Declare.
20083 * utils.c (freeargv): New fn.
20085 2009-01-15 Doug Evans <dje@google.com>
20087 * gdbreplay.c (perror_with_name): Make arg const char *.
20088 * server.h (target_signal_to_name): Make return type const char *.
20089 * thread-db.c (thread_db_err_str): Make return type const char *.
20090 * utils.c (perror_with_name): Make arg const char *.
20092 2009-01-14 Pedro Alves <pedro@codesourcery.com>
20094 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
20095 when handling a EXIT_PROCESS_DEBUG_EVENT.
20097 2009-01-06 Joel Brobecker <brobecker@adacore.com>
20099 * gdbreplay.c (gdbreplay_version): Update copyright year.
20100 * server.c (gdbserver_version): Likewise.
20102 2009-01-05 Doug Evans <dje@google.com>
20104 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
20105 (handle_extended_wait): Improve comment.
20107 2008-12-13 Doug Evans <dje@google.com>
20109 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
20110 * server.h (ATTR_MALLOC): New macro.
20111 (xmalloc,xcalloc,xstrdup): Declare.
20112 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
20113 * inferiors.c: Ditto.
20114 * linux-low.c: Ditto.
20115 * mem-break.c: Ditto.
20116 * regcache.c: Ditto.
20117 * remote-utils.c: Ditto.
20120 * win32-low.c: Ditto.
20122 2008-12-12 Doug Evans <dje@google.com>
20124 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
20125 in debugging printf.
20127 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
20129 2008-12-09 Doug Evans <dje@google.com>
20131 * linux-low.h (struct process_info): Delete member tid, unused.
20132 * thread-db.c (find_one_thread): Update.
20133 (maybe_attach_thread): Update.
20135 2008-12-02 Pedro Alves <pedro@codesourcery.com>
20137 * target.h (struct target_ops): Add qxfer_osdata member.
20138 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
20140 (linux_qxfer_osdata): New functions.
20141 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
20143 * server.c (handle_query): Handle "qXfer:osdata:read:".
20144 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
20145 (buffer_xml_printf): New functions.
20146 * server.h (struct buffer): New.
20147 (buffer_grow_str, buffer_grow_str0): New macros.
20148 (buffer_grow, buffer_free, buffer_init, buffer_finish)
20149 (buffer_xml_printf): Declare.
20151 2008-11-24 Doug Evans <dje@google.com>
20153 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
20155 2008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
20157 * server.c (handle_v_run): Always use the supplied argument list.
20159 2008-11-19 Bob Wilson <bob.wilson@acm.org>
20161 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
20162 (xtensa_regmap_table): Add entry for scompare1.
20164 2008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
20166 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
20167 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
20168 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
20169 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
20170 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
20171 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
20172 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
20173 XML target descriptions.
20174 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
20175 when inferior is running on an ISA 2.05 or later processor. Add
20176 special case to return offset for full 64-bit slot of FPSCR when
20179 2008-11-14 Daniel Gutson <dgutson@codesourcery.com>
20181 * Makefile.in (SFILES, clean): Added sparc64 files.
20182 (reg-sparc64.o, reg-sparc64.c): New.
20183 * configure.srv (sparc*-*-linux*): New configuration.
20184 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
20185 syscall arguments for SPARC.
20186 (regsets_store_inferior_registers): Likewise.
20187 * linux-sparc-low.c: New file.
20189 2008-10-21 Doug Evans <dje@google.com>
20191 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
20192 (READLINE_DIR,READLINE_DEP): Delete.
20193 (INTERNAL_CFLAGS): Update.
20194 (LINTFLAGS): Update.
20196 2008-10-10 Pedro Alves <pedro@codesourcery.com>
20198 * server.c (handle_v_run): If GDB didn't specify an argv, use the
20199 whole argv from the last run, not just argv[0].
20201 2008-09-08 Pedro Alves <pedro@codesourcery.com>
20203 * regcache.c (new_register_cache): Return NULL if the register
20204 cache size isn't known yet.
20205 (free_register_cache): Avoid dereferencing a NULL regcache.
20207 2008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20209 * configure.srv: Merge MIPS and MIPS64.
20211 2008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
20213 * Makefile.in (uninstall): Apply $(EXEEXT) too.
20215 2008-08-18 Luis Machado <luisgpm@br.ibm.com>
20217 * Makefile.in: Add required vsx dependencies.
20219 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
20220 Declare init_registers_powerpc_vsx32l.
20221 Declare init_registers_powerpc_vsx64l.
20222 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
20223 (ppc_arch_setup): Check for VSX in hwcap.
20224 (ppc_fill_vsxregset): New function.
20225 (ppc_store_vsxregset): New function.
20226 Add new VSX entry in regset_info target_regsets.
20228 * configure.srv: Add new VSX dependencies.
20230 2008-08-12 Pedro Alves <pedro@codesourcery.com>
20232 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
20233 (remote_open): Set or clear transport_is_reliable.
20234 (putpkt_binary): Don't expect acks in noack mode.
20235 (getpkt): Don't send ack/nac in noack mode.
20236 * server.c (handle_general_set): Handle QStartNoAckMode.
20237 (handle_query): If connected by tcp pass QStartNoAckMode+ in
20239 (main): Reset noack_mode on every connection.
20240 * server.h (noack_mode): Declare.
20242 2008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20244 * Makefile.in (GDBREPLAY_OBS): New variable.
20245 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
20247 2008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
20248 Daniel Jacobowitz <dan@codesourcery.com>
20250 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
20251 (usr_store_inferior_registers): Likewise.
20252 (regsets_store_inferior_registers): Likewise.
20254 2008-07-31 Rolf Jansen <rj@surtec.com>
20255 Pedro Alves <pedro@codesourcery.com>
20257 * configure.ac: Check for memmem declaration.
20258 * server.c [HAVE_MALLOC_H]: Include malloc.h.
20259 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
20260 (disable_packet_qfThreadInfo): Unconditionally compile.
20261 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
20262 * configure, config.in: Regenerate.
20264 2008-07-28 Doug Kwan <dougkwan@google.com>
20266 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
20267 (linux_write_memory): Remove declaration of errno.
20269 2008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
20271 * linux-low.c (handle_extended_wait): Do not use "status"
20272 variable uninitialized.
20274 2008-07-07 Pedro Alves <pedro@codesourcery.com>
20276 * server.c (handle_v_attach): Inhibit reporting dll changes.
20278 2008-06-27 Pedro Alves <pedro@codesourcery.com>
20280 * remote-utils.c (prepare_resume_reply): If requested, don't
20281 output "thread:TID" in the T stop reply.
20283 * server.c (disable_packet_vCont, disable_packet_Tthread)
20284 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
20285 (handle_query): If requested, disable support for qC, qfThreadInfo
20287 (handle_v_requests): If requested, disable support for vCont.
20288 (gdbserver_show_disableable): New.
20289 (main): Handle --disable-packet and --disable-packet=LIST.
20291 * server.h (disable_packet_vCont, disable_packet_Tthread)
20292 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
20294 2008-06-20 Carlos O'Donell <carlos@codesourcery.com>
20296 * server.c (gdbserver_usage): Mention --version.
20298 2008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
20300 * Makefile.in (gdbreplay.o): New rule.
20302 2008-06-06 Joseph Myers <joseph@codesourcery.com>
20304 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
20305 message, not gdbserver.
20307 2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
20308 Nathan Sidwell <nathan@codesourcery.com>
20309 Joseph Myers <joseph@codesourcery.com>
20311 * acinclude.m4: Include ../../config/acx.m4.
20312 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
20313 * configure, config.in: Regenerate.
20314 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
20315 * server.c (gdbserver_version): Print PKGVERSION.
20316 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
20317 (main): Adjust gdbserver_usage calls.
20318 * gdbreplay.c (version, host_name): Add declarations.
20319 (gdbreplay_version, gdbreplay_usage): New.
20320 (main): Accept --version and --help options.
20322 2008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
20324 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
20325 (arm_breakpoint_at): Handle Thumb.
20326 (the_low_target): Add comment.
20328 2008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
20330 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
20332 2008-05-09 Doug Evans <dje@google.com>
20334 * server.h (decode_search_memory_packet): Declare.
20335 * remote-utils.c (decode_search_memory_packet): New fn.
20336 * server.c (handle_search_memory_1): New fn.
20337 (handle_search_memory): New fn.
20338 (handle_query): Process qSearch:memory packets.
20340 2008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
20342 * regcache.c (registers_length): Remove.
20343 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
20344 full register packet.
20345 * regcache.h (registers_length): Remove prototype.
20346 * server.h (PBUFSIZ): Define to 16384.
20348 2008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
20350 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
20351 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
20352 powerpc-64l.o, and powerpc-altivec64l.o.
20353 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
20354 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
20355 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
20356 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
20357 rs6000/power-linux.xml, and rs6000/power64-linux.xml
20360 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
20361 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
20362 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
20363 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
20364 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
20365 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
20366 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
20367 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
20368 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
20369 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
20372 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
20373 (init_registers_powerpc_32l): ... this new prototype.
20374 (init_registers_powerpc_32): Remove, replace by ...
20375 (init_registers_powerpc_altivec32l): ... this new prototype.
20376 (init_registers_powerpc_e500): Remove, replace by ...
20377 (init_registers_powerpc_e500l): ... this new prototype.
20378 (init_registers_ppc64): Remove, replace by ...
20379 (init_registers_powerpc_64l): ... this new prototype.
20380 (init_registers_powerpc_64): Remove, replace by ...
20381 (init_registers_powerpc_altivec64l): ... this new prototype.
20382 (ppc_num_regs): Set to 73.
20383 (PT_ORIG_R3, PT_TRAP): Define if necessary.
20384 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
20385 (ppc_cannot_store_register): Handle orig_r3 and trap.
20386 (ppc_arch_setup): Update init_registers_... calls.
20387 (ppc_fill_gregset): Handle orig_r3 and trap.
20389 * inferiors.c (clear_inferiors): Reset current_inferior.
20391 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
20393 * acinclude.m4: Add override.m4.
20394 * configure: Regenerate.
20396 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20398 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
20399 initial call to init_register_ppc64.
20401 2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
20403 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
20404 single powerpc*-*-linux* case.
20405 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
20407 2008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
20409 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
20410 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
20412 * linux-ppc-low.c: Include <elf.h>.
20413 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
20414 (ppc_hwcap): New global variable.
20415 (ppc_regmap): Remove __SPE__ #ifdef sections.
20416 (ppc_regmap_e500): New global variable.
20417 (ppc_cannot_store_register): Update __SPE__ special case.
20418 (ppc_get_hwcap): New function.
20419 (ppc_arch_setup): Use it to determine whether inferior supports
20420 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
20421 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
20422 Do not access registers if target does not support AltiVec.
20423 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
20424 Do not access registers if target does not support SPE.
20425 (target_regsets): Unconditionally include AltiVec and SPE regsets.
20427 2008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
20429 * linux-low.c (disabled_regsets, num_regsets): New.
20430 (use_regsets_p): Delete.
20431 (linux_wait_for_process): Clear disabled_regsets.
20432 (regsets_fetch_inferior_registers): Check and set it.
20433 (regsets_store_inferior_registers): Likewise.
20434 (linux_fetch_registers, linux_store_registers): Do not use
20436 (initialize_low): Allocate disabled_regsets.
20438 2008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
20440 * Makefile.in (LIBOBJS): New.
20441 (OBS): Use LIBOBJS.
20442 (memmem.o): New rule.
20443 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
20444 * configure: Regenerated.
20446 2008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
20448 * server.c (handle_query): Never return "unsupported" for
20449 qXfer:features:read queries.
20451 2008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
20453 * server.c (get_features_xml): Fix inverted condition.
20454 (handle_query): Always support qXfer:feature:read.
20456 2008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
20458 * server.c (wrapper_argv): New.
20459 (start_inferior): Handle wrapper_argv. If set, expect an extra
20461 (gdbserver_usage): Document --wrapper.
20462 (main): Parse --wrapper.
20464 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20466 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
20467 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
20468 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
20469 (ppc_set_pc): Likewise.
20470 (ppc_arch_setup): New function.
20471 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
20472 of collect_register.
20473 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
20475 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20477 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
20478 instead of linux-ppc64-low.o.
20479 * linux-ppc64-low.c: Remove file.
20480 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
20481 (linux-ppc64-low.o): Remove rule.
20483 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
20484 (init_registers_powerpc_64): Likewise.
20485 (ppc_regmap): Conditionally define depending on __powerpc64__.
20486 (ppc_cannot_store_register): Do not special-case "fpscr" when
20487 compiled on __powerpc64__.
20488 (ppc_collect_ptrace_register): New function.
20489 (ppc_supply_ptrace_register): New function.
20490 (ppc_breakpoint): Change type to "unsigned int".
20491 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
20492 (the_low_target): Conditionally provide initializers for the
20493 arch_setup member depending on __powerpc64__. Install
20494 collect_ptrace_register and supply_ptrace_register members.
20496 2008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
20498 * regcache.h (gdbserver_xmltarget): Add extern declaration.
20499 * server.c (gdbserver_xmltarget): Define.
20500 (get_features_xml): Use it to replace "target.xml" and arch_string.
20502 * configure.srv: Remove srv_xmltarget. Add XML files that were
20503 mentioned there to srv_xmlfiles instead. Remove conditional tests
20504 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
20505 srv_xmlfiles and srv_regobj to include all possible choices.
20506 * configure.ac (srv_xmltarget): Remove.
20507 (srv_xmlfiles): Do not add "target.xml".
20508 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
20509 checks for supplementary target information.
20510 * configure: Regenerate.
20511 * Makefile.in (XML_TARGET): Remove.
20512 (target.xml): Remove rule.
20513 (clean): Do not clean up target.xml.
20514 (.PRECIOUS): Do not mention target.xml.
20516 * target.h (struct target_ops): Remove arch_string member.
20517 * linux-low.c (linux_arch_string): Remove.
20518 (linux_target_ops): Remove arch_string initializer.
20519 * linux-low.h (struct linux_target_ops): Remove arch_string member.
20520 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
20521 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
20522 * spu-low.c (spu_arch_string): Remove.
20523 (spu_target_ops): Remove arch_string initializer.
20524 * win32-low.c (win32_arch_string): Remove.
20525 (win32_target_ops): Remove arch_string initializer.
20526 * win32-low.h (struct win32_target_ops): Remove arch_string member.
20527 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
20528 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
20530 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20532 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
20533 by collect_ptrace_register and supply_ptrace_register hooks.
20534 * linux-low.c (fetch_register): Use supply_ptrace_register callback
20535 instead of checking for the_low_target.left_pad_xfer.
20536 (usr_store_inferior_registers): Use collect_ptrace_register callback
20537 instead of checking for the_low_target.left_pad_xfer.
20539 * linux-s390-low.c (s390_collect_ptrace_register): New function.
20540 (s390_supply_ptrace_register): Likewise.
20541 (s390_fill_gregset): Call s390_collect_ptrace_register.
20542 (the_low_target): Update.
20544 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
20545 (ppc_supply_ptrace_register): Likewise.
20546 (the_low_target): Update.
20548 * linux-i386-low.c (the_low_target): Update.
20549 * linux-x86-64-low.c (the_low_target): Update.
20551 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20553 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
20554 reg-s390.o and reg-s390x.o.
20556 * linux-low.c (new_inferior): New global variable.
20557 (linux_create_inferior, linux_attach): Set it.
20558 (linux_wait_for_process): Call the_low_target.arch_setup after the
20559 target has stopped for the first time.
20560 (initialize_low): Do not call the_low_target.arch_setup.
20562 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
20563 (s390_set_pc): Likewise.
20564 (s390_arch_setup): New function.
20565 (the_low_target): Use s390_arch_setup as arch_setup routine.
20567 * regcache.c (realloc_register_cache): New function.
20568 (set_register_cache): Call it for each existing regcache.
20570 2008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
20572 * server.h (init_registers): Remove prototype.
20574 * linux-low.h (struct linux_target_ops): Add arch_setup field.
20575 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
20576 instead of init_registers ().
20577 * linux-arm-low.c (init_registers_arm): Add prototype.
20578 (init_registers_arm_with_iwmmxt): Likewise.
20579 (the_low_target): Add initializer for arch_setup field.
20580 * linux-cris-low.c (init_registers_cris): Add prototype.
20581 (the_low_target): Add initializer for arch_setup field.
20582 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
20583 (the_low_target): Add initializer for arch_setup field.
20584 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
20585 (the_low_target): Add initializer for arch_setup field.
20586 * linux-ia64-low.c (init_registers_ia64): Add prototype.
20587 (the_low_target): Add initializer for arch_setup field.
20588 * linux-m32r-low.c (init_registers_m32r): Add prototype.
20589 (the_low_target): Add initializer for arch_setup field.
20590 * linux-m68k-low.c (init_registers_m68k): Add prototype.
20591 (the_low_target): Add initializer for arch_setup field.
20592 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
20593 (init_registers_mips64_linux): Likewise.
20594 (the_low_target): Add initializer for arch_setup field.
20595 * linux-ppc-low.c (init_registers_ppc): Add prototype.
20596 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
20597 (the_low_target): Add initializer for arch_setup field.
20598 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
20599 (init_registers_powerpc_64): Likewise.
20600 (the_low_target): Add initializer for arch_setup field.
20601 * linux-s390-low.c (init_registers_s390): Add prototype.
20602 (init_registers_s390x): Likewise.
20603 (the_low_target): Add initializer for arch_setup field.
20604 * linux-sh-low.c (init_registers_sh): Add prototype.
20605 (the_low_target): Add initializer for arch_setup field.
20606 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
20607 (the_low_target): Add initializer for arch_setup field.
20608 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
20609 (the_low_target): Add initializer for arch_setup field.
20611 * win32-low.h (struct win32_target_ops): Add arch_setup field.
20612 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
20613 instead of init_registers ().
20614 * win32-arm-low.c (init_registers_arm): Add prototype.
20615 (the_low_target): Add initializer for arch_setup field.
20616 * win32-i386-low.c (init_registers_i386): Add prototype.
20617 (the_low_target): Add initializer for arch_setup field.
20619 * spu-low.c (init_registers_spu): Add prototype.
20620 (initialize_low): Call initialie_registers_spu () instead of
20621 initialize_registers ().
20623 2008-02-19 Pedro Alves <pedro@codesourcery.com>
20625 * server.c (handle_v_requests): When handling the vRun and vAttach
20626 packets, if already debugging a process, don't kill it. Return an
20629 2008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
20631 * server.c (handle_query): Correct length check.
20633 2008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
20635 * win32-low.c (do_initial_child_stuff): Add process handle
20636 parameter. Set current_process_handle and current_process_id from the
20637 parameters. Clear globals.
20638 (win32_create_inferior): Don't set current_process_handle and
20639 current_process_id here. Instead pass them on the call to
20640 do_initial_child_stuff.
20641 (win32_attach): Likewise.
20642 (win32_clear_inferiors): New.
20643 (win32_kill): Don't close the current process handle or the
20644 current thread handle here. Instead call win32_clear_inferiors.
20645 (win32_detach): Don't open a new handle to the process. Call
20646 win32_clear_inferiors.
20647 (win32_join): Don't rely on current_process_handle; open a new
20648 handle using the process id.
20649 (win32_wait): Call win32_clear_inferiors when the inferior process
20652 2008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
20654 * server.c (monitor_show_help): Add "exit".
20656 2008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
20658 * Makefile.in (SFILES): Add linux-xtensa-low.c.
20659 (clean): Add reg-xtensa.c.
20660 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
20661 * configure.srv (xtensa*-*-linux*) New target.
20662 * linux-xtensa-low.c: New.
20663 * xtensa-xtregs.c: New.
20665 2008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
20667 * hostio.c: Don't include errno.h.
20668 (errno_to_fileio_errno): Move to hostio-errno.
20669 * hostio.c: (hostio_error): Remove the error parameter. Defer the
20670 error number outputting to the target->hostio_last_error callback.
20671 (hostio_packet_error): Use FILEIO_EINVAL directly.
20672 (handle_open, handle_pread, hostio_error, handle_unlink): Update
20673 calls to hostio_error.
20674 * hostio-errno.c: New.
20675 * server.h (hostio_last_error_from_errno): Declare.
20676 * target.h (target_ops): Add hostio_last_error member.
20677 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
20678 as hostio_last_error handler.
20679 * spu-low.c (spu_target_ops): Likewise.
20680 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
20681 (wince_hostio_last_error): New functions.
20682 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
20683 as hostio_last_error handler.
20684 (win32_target_ops) [!_WIN32_WCE]: Register
20685 hostio_last_error_from_errno as hostio_last_error handler.
20686 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
20687 (hostio-errno.o): New rule.
20688 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
20689 * configure.srv (srv_hostio_err_objs): New variable. Default to
20691 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
20692 * configure: Regenerate.
20694 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
20696 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
20697 (linux_kill, linux_detach): Clean up the process list.
20698 * remote-utils.c (remote_open): Improve port number parsing.
20699 (putpkt_binary, input_interrupt): Only send interrupts if the target
20701 * server.c (extended_protocol): Make static.
20702 (attached): Define earlier.
20703 (exit_requested, response_needed, program_argv): New variables.
20704 (target_running): New.
20705 (start_inferior): Clear attached here.
20706 (attach_inferior): Set attached here.
20707 (require_running): Define.
20708 (handle_query): Use require_running and target_running. Implement
20710 (handle_v_attach, handle_v_run): New.
20711 (handle_v_requests): Use require_running. Handle vAttach and vRun.
20712 (gdbserver_usage): Update.
20713 (main): Redo argument parsing. Handle --debug and --multi. Handle
20714 --attach along with other options or after the port. Save
20715 program_argv. Support no initial program. Resynchronize
20716 communication with GDB after an error. Handle "monitor exit".
20717 Use require_running and target_running. Always allow the extended
20718 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
20719 restart in extended mode.
20720 * README: Refer to the GDB manual. Update --attach usage.
20722 2007-12-20 Andreas Schwab <schwab@suse.de>
20724 * linux-low.c (STACK_SIZE): Define.
20725 (linux_tracefork_child): Use it. Use __clone2 on ia64.
20726 (linux_test_for_tracefork): Likewise.
20728 2007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
20730 * linux-low.c (linux_wait_for_event): Update messages. Do not
20731 reinsert auto-delete breakpoints.
20732 * mem-break.c (struct breakpoint): Change return type of handler to
20734 (set_breakpoint_at): Update handler type.
20735 (reinsert_breakpoint_handler): Return 1 instead of calling
20737 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
20739 (check_breakpoints): Delete auto-delete breakpoints and return 2.
20740 * mem-break.h (set_breakpoint_at): Update handler type.
20741 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
20742 * win32-low.c (auto_delete_breakpoint): New.
20743 (get_child_debug_event): Use it.
20745 2007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
20747 * configure.ac: Check for pread and pwrite.
20748 * hostio.c (handle_pread): Fall back to lseek and read.
20749 (handle_pwrite): Fall back to lseek and write.
20750 * config.in, configure: Regenerated.
20752 2007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
20754 * server.c (myresume): Add own_buf argument.
20755 (main): Update calls.
20757 2007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
20759 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
20760 * remote-utils.c (remote_open): Do not call disable_async_io.
20761 (block_async_io): Delete.
20762 (unblock_async_io): Make static.
20763 (initialize_async_io): New.
20764 * server.c (handle_v_cont): Handle async I/O here.
20765 (myresume): Likewise. Move other common resume tasks here...
20766 (main): ... from here. Call initialize_async_io. Disable async
20767 I/O before the main loop.
20768 * server.h (initialize_async_io): Declare.
20769 (block_async_io, unblock_async_io): Delete prototypes.
20770 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
20772 2007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
20774 * remote-utils.c (readchar): Allow binary data in received messages.
20776 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20778 * win32-low.c (attaching): New global.
20779 (win32_create_inferior): Clear the `attaching' global.
20780 (win32_attach): Set the `attaching' global.
20781 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
20782 attaching. Only set a breakpoint at the entry point if not
20785 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20787 * server.c (main): Don't report dll events on the initial
20788 connection on attaches.
20790 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20792 * server.c (main): Relax numerical bases supported for the pid of
20793 the --attach command line argument.
20795 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20797 * win32-low.c (win32_attach): Call OpenProcess before
20798 DebugActiveProcess, not after. Add last error output to error
20801 2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
20803 * win32-low.c (win32_get_thread_context)
20804 (win32_set_thread_context): New functions.
20805 (thread_rec): Use win32_get_thread_context.
20806 (continue_one_thread, win32_resume): Use win32_set_thread_context.
20807 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
20810 2007-12-03 Leo Zayas
20811 Pedro Alves <pedro_alves@portugalmail.pt>
20813 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
20815 (child_add_thread): Minor cleanup.
20816 (child_continue): Resume artificially suspended threads before
20817 calling ContinueDebugEvent.
20818 (suspend_one_thread): New.
20819 (fake_breakpoint_event): New.
20820 (get_child_debug_event): Change return type to int. Check here if
20821 gdb sent an interrupt request. If a soft interrupt was requested,
20822 fake a breakpoint event. Return 0 if there is no event to handle,
20824 (win32_wait): Don't check here if gdb sent an interrupt request.
20825 Ensure there is a valid event to handle.
20826 (win32_request_interrupt): Add soft interruption method as last
20829 2007-12-03 Leo Zayas
20830 Pedro Alves <pedro_alves@portugalmail.pt>
20832 * win32-low.h (win32_thread_info): Add descriptions to the
20833 structure members. Replace `suspend_count' counter by a
20835 * win32-low.c (thread_rec): Update condition of when to get the
20836 context from the inferior. Rely on ContextFlags being set if it
20837 has already been retrieved. Only suspend the inferior thread if
20838 we haven't already. Warn if that fails.
20839 (continue_one_thread): s/suspend_count/suspended/. Only call
20840 ResumeThread once. Warn if that fails.
20842 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20844 * win32-low.c (win32_wait): Don't read from the inferior when it
20845 has already exited.
20847 2007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
20849 * Makefile.in (win32_low_h): New variable.
20850 (win32-low.o): Add dependency on $(win32_low_h).
20851 (win32-arm-low.o, win32-i386-low.o): New rules.
20853 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20855 * hostio.c: Correct copyright year.
20857 2007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
20859 * Makefile.in (OBS): Add hostio.o.
20860 (hostio.o): New rule.
20861 * server.h (handle_vFile): Declare.
20862 * hostio.c: New file.
20863 * server.c (handle_v_requests): Take packet_len and new_packet_len
20864 for binary packets. Call handle_vFile.
20865 (main): Update call to handle_v_requests.
20867 2007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
20869 * linux-low.c: Include <sched.h>.
20871 2007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
20873 * linux-low.c (linux_tracefork_grandchild): New.
20874 (linux_tracefork_child): Use clone.
20875 (linux_test_for_tracefork): Use clone; allocate and free a stack.
20877 2007-10-31 Joel Brobecker <brobecker@adacore.com>
20879 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
20881 2007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
20883 * linux-low.c (handle_extended_wait): Handle unexpected signals.
20885 2007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
20887 * inferiors.c (change_inferior_id): Delete.
20888 (add_pid_to_list, pull_pid_from_list): New.
20889 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
20890 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
20891 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
20892 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
20893 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
20894 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
20895 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
20896 (using_threads): Always set to 1.
20897 (handle_extended_wait): New.
20898 (add_process): Do not set TID.
20899 (linux_create_inferior): Set must_set_ptrace_flags.
20900 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
20901 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
20902 (linux_thread_alive): Rename TID argument to LWPID.
20903 (linux_wait_for_process): Handle unknown processes. Do not use TID.
20904 (linux_wait_for_event): Do not use TID or check using_threads. Update
20905 call to dead_thread_notify. Call handle_extended_wait.
20906 (linux_create_inferior): Use PTRACE_SETOPTIONS.
20907 (send_sigstop): Delete sigstop_sent.
20908 (wait_for_sigstop): Avoid TID.
20909 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
20910 (linux_test_for_tracefork): New.
20911 (linux_lookup_signals): Use thread_db_active and
20912 linux_supports_tracefork_flag.
20913 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
20914 * linux-low.h (get_process_thread): Avoid TID.
20915 (struct process_ifo): Move thread_known and tid to the end. Remove
20917 (linux_attach_lwp, thread_db_init): Update prototypes.
20918 * server.h (change_inferior_id): Delete prototype.
20919 (add_pid_to_list, pull_pid_from_list): New prototypes.
20920 * thread-db.c (thread_db_use_events): New.
20921 (find_first_thread): Rename to...
20922 (find_one_thread): ...this. Update callers and messages. Do not
20923 call fatal. Check thread_db_use_events. Do not call
20924 change_inferior_id or new_thread_notify.
20925 (maybe_attach_thread): Update. Do not call new_thread_notify.
20926 (thread_db_init): Set thread_db_use_events. Check use_events.
20927 * utils.c (fatal, warning): Correct message prefix.
20929 2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
20931 * Makefile.in (clean): Remove new files.
20932 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
20933 (powerpc-64.o, powerpc-64.c): New rules.
20934 * configure.srv: Use alternate register sets for powerpc64-*-linux*
20935 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
20937 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
20939 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
20940 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
20941 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
20942 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
20943 (target_regsets): Add AltiVec and SPE register sets.
20944 * configure.ac: Check for AltiVec and SPE.
20945 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
20946 (ppc_fill_vrregset, ppc_store_vrregset): New.
20947 (target_regsets): Add AltiVec register set.
20948 * configure: Regenerated.
20950 2007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
20952 * linux-low.c (O_LARGEFILE): Define.
20953 (linux_read_memory): Use /proc/PID/mem.
20954 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
20955 * configure, config.in: Regenerated.
20957 2007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
20959 * linux-low.c (linux_wait_for_event): Do not pass signals while
20962 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20964 * win32-low.c (create_process): New.
20965 (win32_create_inferior): Use create_process instead of
20966 CreateProcess. If create_process failed retry appending an ".exe"
20967 suffix. Store the GetLastError result immediatelly after
20968 create_process calls and use it on the call to error.
20970 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
20972 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
20974 2007-08-23 Joel Brobecker <brobecker@adacore.com>
20976 * configure.ac: Switch license to GPLv3.
20978 2007-08-01 Michael Snyder <msnyder@access-company.com>
20980 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
20982 2007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
20984 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
20986 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
20987 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
20988 CloseToolhelp32Snapshot.
20989 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
20990 CloseToolhelp32Snapshot.
20992 2007-07-27 Michael Snyder <michael.snyder@access-company.com>
20994 * server.c (main): Check for inferior exit before main loop.
20996 2007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
20998 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
20999 instead of on tmp_desc.
21001 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
21002 Daniel Jacobowitz <dan@codesourcery.com>
21004 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
21005 (add_thread): Minor cleanups.
21006 (clear_inferiors): Move lower in the file. Clear the DLL
21008 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
21009 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
21010 (xml_escape_text): New.
21011 * server.c (handle_query): Handle qXfer:libraries:read. Report it
21013 (handle_v_cont): Report errors.
21014 (gdbserver_version): Update.
21015 (main): Correct size of own_buf. Do not report initial DLL events.
21016 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
21017 (unloaded_dll, xml_escape_text): New.
21018 * win32-low.c (enum target_waitkind): Update comments.
21019 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
21020 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
21021 (win32_EnumProcessModules, win32_GetModuleInformation)
21022 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
21023 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
21024 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
21025 (win32_Module32First, win32_Module32Next, load_toolhelp)
21026 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
21027 (get_child_debug_event): Handle DLL events.
21028 (win32_wait): Likewise.
21030 2007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21032 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
21033 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
21035 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21037 * win32-low.c (handle_output_debug_string): Ignore event if not
21040 2007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
21042 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
21044 2007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
21046 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
21048 2007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
21050 * inferiors.c (change_inferior_id): Add comment.
21051 * linux-low.c (check_removed_breakpoint): Add an early
21052 prototype. Improve debug output.
21053 (linux_attach): Doc update.
21054 (linux_detach_one_process, linux_detach): Clean up before releasing
21056 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
21057 * linux-low.h (struct process_info): Doc improvement.
21058 * mem-break.c (delete_all_breakpoints): New.
21059 * mem-break.h (delete_all_breakpoints): New prototype.
21060 * thread-db.c (find_first_thread): New.
21061 (thread_db_create_event): Call it instead of
21062 thread_db_find_new_threads. Clean up unused variables.
21063 (maybe_attach_thread): Remove first thread handling.
21064 (thread_db_find_new_threads): Use find_first_thread.
21065 (thread_db_get_tls_address): Likewise.
21067 2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
21069 * thread-db.c (thread_db_find_new_threads): Add prototype.
21070 (thread_db_create_event): Check for the main thread before adding
21072 (maybe_attach_thread): Only enable event reporting if TID == 0.
21073 (thread_db_get_tls_address): Check for new threads.
21075 2007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
21077 * linux-low.c (linux_create_inferior): Try execv before execvp.
21078 * spu-low.c (spu_create_inferior): Likewise.
21080 2007-06-13 Mike Frysinger <vapier@gentoo.org>
21082 * linux-low.c (linux_create_inferior): Change execv to execvp.
21083 * spu-low.c (spu_create_inferior): Likewies.
21085 2007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
21087 * Makefile.in (clean): Clean new files instead of deleted ones.
21088 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
21089 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
21091 * configure.srv: Specify XML files and new regformats for MIPS and
21093 * linux-mips-low.c (mips_num_regs): Set to only used registers.
21094 (mips_regmap): Do not fetch $0. Remove unused registers. Add
21095 an entry for the restart register.
21096 (mips_cannot_fetch_register, mips_cannot_store_register)
21097 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
21098 register names to match the XML descriptions.
21099 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
21100 restart register instead of $0.
21102 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21103 Markus Deuling <deuling@de.ibm.com>
21105 * remote-utils.c (decode_xfer_write): New function.
21106 * server.h (decode_xfer_write): Add prototype.
21107 * server.c (handle_query): Add PACKET_LEN argument. Support
21108 qXfer:spu:read and qXfer:spu:write packets.
21109 (main): Pass packet_len to handle_query.
21110 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
21111 * target.h (target_ops): Add qxfer_spu.
21113 2007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
21115 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
21116 accessing non-seekable spufs files.
21118 2007-05-16 Markus Deuling <deuling@de.ibm.com>
21120 * server.c (handle_query): Add reply for qC packet.
21122 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21123 Leo Zayas <lerele@champenstudios@com>
21125 * server.h (check_remote_input_interrupt_request): New function.
21126 * remote_utils.c (INVALID_DESCRIPTOR): New define.
21127 (remote_desc): Initialize with INVALID_DESCRIPTOR.
21128 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
21129 (check_remote_input_interrupt_request): New function.
21130 * server.h (check_remote_input_interrupt_request): Declare.
21131 * win32-low.c (winapi_DebugBreakProcess,
21132 winapi_GenerateConsoleCtrlEvent): New typedefs.
21133 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
21135 (win32_wait): Check for remote interrupt request
21136 with check_remote_input_interrupt_request.
21137 (win32_request_interrupt): New function.
21138 (win32_target_op): Set request_interrupt to win32_request_interrupt.
21140 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21142 * win32-low.c (debug_registers_changed,
21143 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
21144 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
21145 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
21146 (thread_rec): Get context using the low target.
21147 (child_add_thread): Call thread_added on the low target,
21148 which does the same thing.
21150 (do_initial_child_stuff): Remove debug registers references.
21151 Set context using the low target. Resume threads after
21152 setting the contexts.
21153 (child_continue): Remove dead variable. Remove debug
21154 registers references.
21155 (child_fetch_inferior_registers): Go through the low target.
21156 (do_child_store_inferior_registers): Remove.
21157 (child_store_inferior_registers): Go through the low target.
21158 (win32_resume): Remove debug registers references.
21159 Set context using the low target.
21160 (handle_exception): Change return type to void. Don't record
21161 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
21162 first chance exception.
21163 (get_child_debug_event): Change return type to void. Remove
21164 goto loop. Always return after waiting for debug event.
21165 (win32_wait): Convert to switch statement. Handle spurious
21168 * win32-i386-low.c (debug_registers_changed,
21169 debug_registers_used): New.
21170 (initial_stuff): Rename to ...
21171 (i386_initial_stuff): ... this. Clear debug registers
21173 (store_debug_registers): Delete.
21174 (i386_get_thread_context): New.
21175 (load_debug_registers): Delete.
21176 (i386_set_thread_context): New.
21177 (i386_thread_added): New.
21178 (single_step): Rename to ...
21179 (i386_single_step): ... this.
21180 (do_fetch_inferior_registers): Rename to ...
21181 (i386_fetch_inferior_register): ... this.
21182 (i386_store_inferior_register): New.
21183 (the_low_target): Adapt to new interface.
21185 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
21186 (arm_get_thread_context): New.
21187 (arm_set_thread_context): New.
21189 (do_fetch_inferior_registers): Rename to ...
21190 (arm_fetch_inferior_register): ... this.
21191 (arm_store_inferior_register): New.
21192 (arm_wince_breakpoint): Reimplement as unsigned long.
21193 (arm_wince_breakpoint_len): Define.
21194 (the_low_target): Adapt to new interface.
21196 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
21197 load_debug_registers. Add get_thread_context, set_thread_context,
21198 thread_added and store_inferior_register. Rename
21199 fetch_inferior_registers to fetch_inferior_register.
21200 (regptr): Remove declaration.
21202 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21204 * linux-low.c (linux_detach): Change return type to int. Return 0.
21205 * spu-low.c (spu_detach): Likewise.
21207 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21209 * target.h (target_ops): Change return type of detach to int.
21211 (join_inferior): New.
21212 * server.c (main): Don't skip detach support on mingw32.
21213 If the inferior doesn't support detaching return error.
21214 Call join_inferior instead of using waitpid.
21215 * linux-low.c (linux_join): New.
21216 (linux_target_op): Add linux_join.
21217 * spu-low.c (spu_join): New.
21218 (spu_target_ops): Add spu_join.
21219 * win32-low.c (win32_detach): Adapt to new interface.
21220 Reopen current_process_handle before detaching. Issue a child
21221 resume before detaching.
21223 (win32_target_op): Add win32_join.
21225 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21227 * win32-low.c (win32-attach): Fix return value.
21228 * target.h (target_ops): Describe ATTACH return values.
21230 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21232 * win32-low.c (GETPROCADDRESS): Define.
21233 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
21234 (winapi_DebugSetProcessKillOnExit): Likewise.
21235 (win32_create_inferior): Force usage of ansi CreateProcessA.
21236 (win32_attach): Use GETPROCADDRESS.
21237 (win32_detach): Likewise.
21239 2007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
21241 * win32-low.c (win32_wait): Don't use WSTOPSIG.
21243 2007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
21245 * win32-low.c: Commit leftover changes from 2007-03-29.
21247 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21249 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
21250 fields short instead of int. Add explicit padding.
21251 (i387_cache_to_fsave): Remove unnecessary casts.
21252 (i387_fsave_to_cache): Doc fix.
21253 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
21255 2007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
21257 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
21258 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
21260 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21262 * configure.srv (arm*-*-mingw32ce*): Move near the other
21265 2007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
21267 * configure.ac: Add errno checking.
21268 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
21269 sys/file.h and malloc.h.
21270 (AC_CHECK_DECLS): Add perror.
21271 (srv_mingwce): Handle.
21272 * configure.srv (i[34567]86-*-cygwin*): Add
21273 win32-i386-low.o to srv_tgtobj.
21274 (i[34567]86-*-mingw*): Likewise.
21275 (arm*-*-mingw32ce*): Add case.
21276 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21277 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
21278 [__MINGW32CE__] (strerror): New function.
21279 [__MINGW32CE__] (errno): Define to GetLastError.
21280 [__MINGW32CE__] (COUNTOF): New macro.
21281 (remote_open): Remove extra close call.
21282 * mem-break.c (delete_breakpoint_at): New function.
21283 * mem-break.h (delete_breakpoint_at): Declare.
21284 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
21285 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
21286 [USE_WIN32API] (read, write): Add char* casts.
21287 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
21288 * server.h: Include wincecompat.h on Windows CE.
21289 [HAVE_ERRNO_H]: Check.
21290 (perror): Declare if not declared.
21291 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
21292 (perror_with_name): Remove errno declaration.
21293 * wincecompat.h: New.
21294 * wincecompat.c: New.
21295 * win32-low.h: New.
21296 * win32-arm-low.c: New.
21297 * win32-i386-low.c: New.
21298 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
21299 (OUTMSG2): Make it safe.
21301 (COUNTOF): New macro.
21302 (NUM_REGS): Get it from the low target.
21303 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
21304 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
21305 (thread_rec): Let low target handle debug registers.
21306 (child_add_thread): Likewise.
21307 (child_init_thread_list): Likewise.
21308 (continue_one_thread): Likewise.
21310 (do_child_fetch_inferior_registers): Move to ...
21311 * win32-i386-low.c: ... here, and rename to ...
21312 (do_fetch_inferior_registers): ... this.
21313 * win32-low.c (child_fetch_inferior_registers):
21314 Go through the low target.
21315 (do_child_store_inferior_registers): Use regptr.
21316 (strwinerror): New function.
21317 (win32_create_inferior): Handle Windows CE.
21318 Use strwinerror instead of strerror on Windows error
21319 codes. Add program to the error output.
21320 Don't close the main thread handle on Windows CE.
21321 (win32_attach): Use coredll.dll on Windows CE.
21322 (win32_kill): Close current process and current
21324 (win32_detach): Use coredll.dll on Windows CE.
21325 (win32_resume): Let low target handle debug registers, and
21327 (handle_exception): Add/Remove initial breakpoint. Avoid
21328 non-existant WSTOPSIG on Windows CE.
21329 (win32_read_inferior_memory): Cast to remove warning.
21330 (win32_arch_string): Go through the low target.
21331 (initialize_low): Call set_breakpoint_data with the low
21332 target's breakpoint.
21333 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
21334 FOP_REGNUM, mappings): Move to ...
21335 * win32-i386-low.c: ... here.
21336 * win32-low.c (win32_thread_info): Move to ...
21337 * win32-low.h: ... here.
21338 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
21339 win32-arm-low.c and wincecompat.c.
21340 (all:): Add $EXEEXT.
21341 (install-only:): Likewise.
21342 (gdbserver:): Likewise.
21343 (gdbreplay:): Likewise.
21344 * config.in: Regenerate.
21345 * configure: Regenerate.
21347 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21349 * win32-low.c: Rename typedef thread_info to
21350 win32_thread_info throughout.
21352 2007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
21354 * win32-i386-low.c: Rename to ...
21355 * win32-low.c: ... this.
21356 * configure.srv: Replace win32-i386-low.o with win32-low.o.
21357 * Makefile.in: Likewise.
21359 2007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
21361 * remote-utils.c (monitor_output): Constify msg parameter.
21362 * server.h (monitor_output): Likewise.
21363 * win32-i386-low.c (handle_output_debug_string): New.
21364 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
21365 handle_output_debug_string.
21366 (get_child_debug_event): Likewise.
21368 2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
21370 * server.c (main): Correct strtoul check.
21372 2007-03-27 Jon Ringle <jon@ringle.org>
21374 * linux-low.c: Check __ARCH_HAS_MMU__ also.
21376 2007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
21378 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
21380 2007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
21382 * terminal.h: Check HAVE_SGTTY_H.
21384 2007-02-27 Mat Hostetter <mat@lcs.mit.edu>
21386 * remote-utils.c (remote_open): Print out the assigned port number.
21388 2007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
21390 * remote-utils.c (monitor_output): New function.
21391 * server.c (debug_threads): Define here.
21392 (monitor_show_help): New function.
21393 (handle_query): Handle qRcmd.
21394 (main): Do not handle 'd' packet.
21395 * server.h (debug_threads, remote_debug, monitor_output): Declare.
21396 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
21399 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21401 * Makefile.in (EXEEXT): New.
21402 (clean): Use $(EXEEXT).
21404 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21406 * target.h (target_ops): Rename send_signal to request_interrupt,
21407 and remove enum target_signal parameter.
21408 * linux-low.c (linux_request_interrupt): Rename from
21409 linux_send_signal, and always send SIGINT.
21410 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
21411 and always send SIGINT.
21412 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
21414 (input_interrupt): Likewise.
21416 2007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
21418 * server.c (get_features_xml): Check if target implemented
21420 * win32-i386-low.c (win32_arch_string): New.
21421 (win32_target_ops): Add win32_arch_string as arch_string member.
21423 2007-02-22 Markus Deuling <deuling@de.ibm.com>
21425 * spu-low.c (spu_arch_string): New.
21426 (spu_target_ops): Add spu_arch_string.
21428 2007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
21430 * remote-utils.c: Remove HAVE_TERMINAL_H check.
21431 * configure.ac: Do not check for terminal.h.
21432 * configure, config.in: Regenerated.
21434 2007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21436 * Makefile.in (OBS): Add $(XML_BUILTIN).
21437 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
21439 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
21440 (arm-with-iwmmxt.c): New.
21441 * config.in, configure: Regenerate.
21442 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
21443 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
21444 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
21445 (arm*-*-linux*): Add iWMMXt and regset support.
21446 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
21447 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
21448 (arm_store_wmmxregset, target_regsets): New.
21449 * server.c (get_features_xml): Take annex argument. Check builtin
21451 (handle_query): Handle multiple annexes.
21453 2007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
21455 * remote-utils.c [USE_WIN32API] (read, write): Define.
21456 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
21459 2007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
21461 * linux-i386-low.c (the_low_target): Set arch_string.
21462 * linux-x86-64-low.c (the_low_target): Likewise.
21463 * linux-low.c (linux_arch_string): New.
21464 (linux_target_ops): Add it.
21465 * linux-low.h (struct linux_target_ops): Add arch_string.
21466 * server.c (write_qxfer_response): Use const void * for DATA.
21467 (get_features_xml): New.
21468 (handle_query): Handle qXfer:features:read. Report it for qSupported.
21469 * target.h (struct target_ops): Add arch_string method.
21471 2007-01-03 Denis Pilat <denis.pilat@st.com>
21472 Daniel Jacobowitz <dan@codesourcery.com>
21474 * linux-low.c (linux_kill): Handle being called with no threads.
21475 * win32-i386-low.c (win32_kill): Likewise.
21476 (get_child_debug_event): Clear current_process_handle.
21478 2006-12-30 Denis PILAT <denis.pilat@st.com>
21479 Daniel Jacobowitz <dan@codesourcery.com>
21481 * remote-utils.c (remote_open): Check the type of specified
21482 serial port devices before opening them.
21483 * server.c (main): Kill the inferior if an error occurs during
21484 the first remote_open.
21486 2006-12-05 Markus Deuling <deuling@de.ibm.com>
21488 * README: Update supported targets.
21490 2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
21492 * Makefile.in (clean): Remove reg-mips64.c.
21493 (reg-mips64.c, reg-mips64.o): New rules.
21494 * configure.srv: Handle mips64. Include regset support for mips.
21495 * linux-mips-low.c (union mips_register): New.
21496 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
21497 (mips_breakpoint, mips_breakpoint_at): Use int.
21498 (mips_collect_register, mips_supply_register)
21499 (mips_collect_register_32bit, mips_supply_register_32bit)
21500 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
21501 (mips_store_fpregset, target_regsets): New.
21502 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
21504 2006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
21506 * configure.srv: Add target "spu*-*-*".
21507 * Makefile.in (clean): Remove reg-spu.c.
21508 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
21509 * spu-low.c: New file.
21511 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21513 * configure.ac: Correct td_thr_tls_get_addr test.
21514 * configure: Regenerated.
21516 2006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
21518 * linux-low.c (linux_wait_for_event): Reformat. Use the
21519 pass_signals array.
21520 * remote-utils.c (decode_address_to_semicolon): New.
21521 * server.c (pass_signals, handle_general_set): New.
21522 (handle_query): Mention QPassSignals for qSupported.
21523 (main): Call handle_general_set.
21524 * server.h (pass_signals, decode_address_to_semicolon): New.
21526 2006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
21528 * server.c (handle_query): Correct error handling for read_auxv.
21530 2005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
21532 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
21533 and srv_linux_thread_db to yes.
21534 * linux-s390-low.c (s390_fill_gregset): New function.
21535 (target_regsets): Define data structure.
21537 2006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
21539 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
21540 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
21541 * config.in, configure: Regenerated.
21542 * inferiors.c (gdb_id_to_thread): New function.
21543 (gdb_id_to_thread_id): Use it.
21544 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
21545 * linux-low.h (struct process_info): Add th member.
21546 (thread_db_get_tls_address): New prototype.
21547 * remote-utils.c (decode_address): Make non-static.
21548 * server.c (handle_query): Handle qGetTLSAddr.
21549 * server.h (gdb_id_to_thread, decode_address): New prototypes.
21550 * target.h (struct target_ops): Add get_tls_address.
21551 * thread-db.c (maybe_attach_thread): Save the thread handle.
21552 (thread_db_get_tls_address): New.
21554 2006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
21556 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
21557 (linux_resume_one_process): Take a siginfo_t *. Update all
21558 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
21559 (struct pending_signals): Add a siginfo_t.
21560 (linux_wait_for_process): Always set last_status.
21561 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
21562 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
21563 * linux-low.h (struct process_info): Add last_status.
21565 2006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
21567 * remote-utils.c (try_rle): New function.
21568 (putpkt_binary): Use it.
21570 2006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
21572 * Makefile.in (clean): Clean reg-x86-64-linux.c.
21573 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
21574 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
21575 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
21576 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
21579 2006-08-08 Richard Sandiford <richard@codesourcery.com>
21581 * server.c (terminal_fd): New variable.
21582 (old_foreground_pgrp): Likewise.
21583 (restore_old_foreground_pgrp): New function.
21584 (start_inferior): Record the terminal file descriptor in terminal_fd
21585 and its original foreground group in old_foreground_pgrp. Register
21586 restore_old_foreground_pgrp with atexit().
21588 2006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
21590 * server.c (handle_query): Correct qPart to qXfer.
21592 2006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
21594 * configure.ac: Check for more headers which are missing on
21595 Windows. Automatically supply -lwsock32 and USE_WIN32API.
21596 * configure.srv: Add Cygwin and mingw32.
21597 * remote-utils.c: Don't include headers unconditionally which
21598 are missing on mingw32. Include <winsock.h> for mingw32.
21599 (remote_open): Adjust for mingw32 support. Flush
21600 standard error after writing to it.
21601 (remote_close, putpkt_binary, input_interrupt, block_async_io)
21602 (unblock_async_io, enable_async_io, disable_async_io)
21603 (readchar, getpkt): Update for Winsock support.
21604 (prepare_resume_reply): Expect a protocol signal number.
21605 * server.c: Disable <sys/wait.h> on mingw32.
21606 (start_inferior): Adjust for mingw32 support. Flush
21607 standard error after writing to it.
21608 (attach_inferior): Likewise. Use protocol signal
21610 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
21612 * win32-i386-low.c: New file.
21613 * Makefile.in (XM_CLIBS): Set.
21614 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
21615 (win32-i386-low.o): New dependency rule.
21616 * linux-low.c (linux_wait): Use target signal numbers.
21617 * target.h (struct target_ops): Doc fix.
21618 * server.h (target_signal_to_name): New prototype.
21619 * gdbreplay.c: Don't include headers unconditionally which
21620 are missing on mingw32. Include <winsock.h> for mingw32.
21621 (remote_close, remote_open): Adjust for Winsock support.
21622 * configure, config.in: Regenerated.
21624 2006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
21626 * server.c (decode_xfer_read, write_qxfer_response): New.
21627 (handle_query): Take a packet length argument. Handle
21628 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
21629 the qSupported response.
21630 (main): Update call to handle_query.
21632 2006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
21634 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
21635 (putpkt_binary): Renamed from putpkt and adjusted for binary
21637 (putpkt): New wrapper for putpkt_binary.
21638 (readchar): Don't mask off the high bit.
21639 (decode_X_packet): New function.
21640 * server.c (main): Call putpkt_binary if a handler sets the packet
21641 length. Save the length of the incoming packet. Handle 'X'.
21642 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
21644 2006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
21646 * server.c (handle_query): Handle qSupported.
21648 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21650 * remote-utils.c (all_symbols_looked_up): New variable.
21651 (look_up_one_symbol): Check it.
21652 * server.h (look_up_one_symbol): New declaration.
21653 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
21655 2006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
21657 * Makefile.in (linux-arm-low.o): Update dependencies.
21658 * linux-arm-low.c: Include "gdb_proc_service.h".
21659 (PTRACE_GET_THREAD_AREA): Define.
21660 (ps_get_thread_area): New function.
21662 2006-05-09 Nathan Sidwell <nathan@codesourcery.com>
21664 * configure.srv (m68k*-*-uclinux*): New target.
21665 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
21666 (linux_resume_one_process): Remove extraneous cast.
21667 (linux_read_offsets): New.
21668 (linux_target_op): Add linux_read_offsets on mmuless systems.
21669 * server.c (handle_query): Add qOffsets logic.
21670 * target.h (struct target_ops): Add read_offsets.
21672 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21674 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
21675 (PTRACE_GET_THREAD_AREA): Define.
21676 (ps_get_thread_area): New function.
21677 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
21678 (linux-x86-64-low.o): Update.
21680 2006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
21682 * configure.ac: Remove checks for prfpregset_t.
21683 * gdb_proc_service.h: New file.
21684 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
21685 new "gdb_proc_service.h".
21686 * proc-service.c: Likewise.
21687 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
21688 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
21689 * Makefile.in (gdb_proc_service_h): Updated.
21690 * configure, config.in: Regenerated.
21692 2006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21694 * remote-utils.c (prepare_resume_reply): Move declaration
21695 of gdb_id_from_wait to the top of the block.
21697 2006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
21699 * linux-low.c (regsets_store_inferior_registers): Read the regset
21700 from the target before filling it.
21702 2006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
21704 * server.c (attach_inferior): Return SIGTRAP for a successful
21707 2006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
21709 * Makefile.in (OBS): Add version.o.
21710 (STAGESTUFF): Delete.
21711 (version.o): Add dependencies.
21712 (version.c): Replace rule.
21713 (clean): Remove version.c.
21714 * server.c (gdbserver_version): New.
21715 (gdbserver_usage): Use printf.
21716 (main): Handle --version and --help.
21717 * server.h (version, host_name): Add declarations.
21719 2005-12-23 Eli Zaretskii <eliz@gnu.org>
21731 * linux-x86-64-low.c:
21733 * linux-s390-low.c:
21734 * linux-ppc64-low.c:
21736 * linux-mips-low.c:
21737 * linux-m68k-low.c:
21738 * linux-m32r-low.c:
21741 * linux-ia64-low.c:
21742 * linux-i386-low.c:
21743 * linux-crisv32-low.c:
21755 * gdbserver.1: Add (C) after Copyright. Update the FSF
21758 2005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
21760 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
21761 (arm_breakpoint_at): Recognize both breakpoints.
21762 (the_low_target): Use the correct breakpoint instruction.
21764 2005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
21766 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
21767 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
21768 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
21769 (the_low_target): Update.
21771 2005-10-25 Andreas Schwab <schwab@suse.de>
21773 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
21775 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
21776 (ia64_num_regs): Reduce to 462.
21778 2005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
21780 * acinclude.m4: Correct quoting.
21781 * aclocal.m4: Regenerated.
21783 Suggested by SZOKOVACS Robert <szo@ies.hu>:
21784 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
21785 (thread_db_init): Call thread_db_err_str.
21786 * configure.ac: Check for TD_VERSION.
21787 * config.in, configure: Regenerated.
21789 2005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
21791 * server.h (error, fatal, warning): Add ATTR_FORMAT.
21793 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21795 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
21796 is not available. Define HAVE_PTRACE_GETREGS if it is.
21797 * config.in, configure: Regenerated.
21798 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
21799 * linux-i386-low.c, linux-m68k-low.c: Update to use
21800 HAVE_PTRACE_GETREGS.
21801 * linux-low.c (regsets_fetch_inferior_registers)
21802 (regsets_store_inferior_registers): Only return 0 if we processed
21804 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
21805 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
21807 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21809 * inferiors.c (struct thread_info): Add gdb_id.
21810 (add_thread): Add gdb_id argument.
21811 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
21812 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
21813 calls to add_thread.
21814 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
21815 * server.c (handle_query): Use thread_to_gdb_id.
21816 (handle_v_cont, main): Use gdb_id_to_thread_id.
21817 * server.h (add_thread): Update prototype.
21818 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
21821 2005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
21823 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
21824 left-padded registers.
21825 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
21826 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
21828 2005-07-01 Steve Ellcey <sje@cup.hp.com>
21830 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
21831 * configure: Regenerate.
21832 * config.in: Regenerate.
21833 * server.h (NEED_DECLARATION_STRERROR):
21834 Replace with !HAVE_DECL_STRERROR.
21836 2005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
21838 * linux-low.c (linux_wait, linux_send_signal): Don't test
21839 an unsigned long variable for > 0 if it could be MAX_ULONG.
21840 * server.c (myresume): Likewise.
21841 * target.c (set_desired_inferior): Likewise.
21843 2005-06-13 Mark Kettenis <kettenis@gnu.org>
21845 * configure.ac: Simplify and improve check for socklen_t.
21846 * configure, config.in: Regenerate.
21848 2005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
21850 * acconfig.h: Remove.
21851 * configure.ac: Add a test for socklen_t. Use three-argument
21852 AC_DEFINE throughout.
21853 * config.in: Regenerated using autoheader 2.59.
21854 * configure: Regenerated.
21856 * gdbreplay.c (socklen_t): Provide a default.
21857 (remote_open): Use socklen_t.
21858 * remote-utils.c (socklen_t): Provide a default.
21859 (remote_open): Use socklen_t.
21860 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
21863 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
21865 * linux-low.c (linux_read_memory, linux_write_memory)
21866 (linux_read_auxv): Likewise.
21867 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
21868 (check_mem_write): Likewise.
21869 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
21871 * regcache.c (struct inferior_rgcache_data, registers_to_string)
21872 (registers_from_string, register_data): Likewise.
21873 * server.c (handle_query, main): Likewise.
21874 * server.h (convert_ascii_to_int, convert_int_to_ascii)
21875 (decode_M_packet): Likewise.
21876 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
21877 * target.h (struct target_ops): Update read_memory, write_memory,
21879 (read_inferior_memory, write_inferior_memory): Update.
21880 * linux-low.h (struct linux_target_ops): Change type of breakpoint
21881 to unsigned char *.
21882 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
21883 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
21884 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
21885 linux-s390-low.c, linux-sh-low.c: Update for changes in
21886 read_inferior_memory and the_low_target->breakpoint.
21888 2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
21890 * Makefile.in (SFILES): Add linux-ppc64-low.c.
21891 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
21892 * configure.srv: Add powerpc64-*-linux*.
21893 * linux-ppc64-low.c: New file.
21895 2005-05-23 Orjan Friberg <orjanf@axis.com>
21897 * linux-cris-low.c: New file with support for CRIS.
21898 * linux-crisv32-low.c: Ditto for CRISv32.
21899 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
21900 (clean): Add reg-cris.c and reg-crisv32.c.
21901 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
21902 reg-crisv32.o, and reg-crisv32.c to make rules.
21903 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
21904 recognized targets.
21906 2005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
21908 * linux-low.c (fetch_register): Ensure buffer size is a multiple
21909 of sizeof (PTRACE_XFER_TYPE).
21910 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
21912 2005-05-12 Orjan Friberg <orjanf@axis.com>
21914 * target.h (struct target_ops): Add insert_watchpoint,
21915 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
21916 pointers for hardware watchpoint support.
21917 * linux-low.h (struct linux_target_ops): Ditto.
21918 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
21919 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
21920 to linux_target_ops.
21921 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
21923 * server.c (main): Recognize 'Z' and 'z' packets.
21925 2005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
21927 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
21928 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
21929 (the_low_target): Add new members.
21931 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21933 * proc-service.c (ps_lgetregs): Search all_processes instead of
21936 2005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
21938 * server.c (start_inferior): Change return type to int.
21939 (attach_inferior): Change sigptr to int *.
21940 (handle_v_cont, handle_v_requests): Change signal to int *.
21941 (main): Change signal to int.
21943 2005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
21945 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
21946 * configure.srv: Add m32r*-*-linux*.
21947 * linux-m32r-low.c: New file.
21949 2005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
21951 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
21953 2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
21955 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
21956 Take unsigned long arguments for PIDs.
21957 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
21958 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
21959 (wait_for_sigstop, linux_resume_one_process)
21960 (regsets_fetch_inferior_registers, linux_send_signal)
21961 (linux_read_auxv): Likewise. Update the types of variables holding
21962 PIDs. Update format string specifiers.
21963 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
21964 * remote-utils.c (prepare_resume_reply): Likewise.
21965 * server.c (cont_thread, general_thread, step_thread)
21966 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
21968 (handle_query): Update format specifiers.
21969 (handle_v_cont, main): Use strtoul for thread IDs.
21970 * server.h (struct inferior_list_entry): Use unsigned long for ID.
21971 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
21972 (general_thread, step_thread, thread_from_wait)
21973 (old_thread_from_wait): Update.
21974 * target.h (struct thread_resume): Use unsigned long for THREAD.
21975 (struct target_ops): Use unsigned long for arguments to attach and
21978 2005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
21980 * acinclude.m4: Include bfd/bfd.m4 directly.
21981 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
21982 <agriffis@toolchain.org>.
21983 * aclocal.m4, configure: Regenerated.
21985 2005-01-07 Andrew Cagney <cagney@gnu.org>
21987 * configure.ac: Rename configure.in, require autoconf 2.59.
21988 * configure: Re-generate.
21990 2004-12-08 Daniel Jacobowitz <dan@debian.org>
21992 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
21993 LIBS when finished.
21994 * aclocal.m4: Regenerated.
21995 * configure: Regenerated.
21997 2004-11-21 Andreas Schwab <schwab@suse.de>
21999 * linux-m68k-low.c (m68k_num_gregs): Define.
22000 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
22001 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
22002 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
22003 (m68k_breakpoint_at): New. Add to the_low_target.
22005 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
22006 srv_linux_thread_db to yes.
22008 2004-10-20 Joel Brobecker <brobecker@gnat.com>
22010 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
22011 (ARCH_SET_FS): Likewise.
22012 (ARCH_GET_FS): Likewise.
22013 (ARCH_GET_GS): Likewise.
22015 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22017 * linux-i386-low.c (ps_get_thread_area): New.
22018 * linux-x86-64-low.c (ps_get_thread_area): New.
22019 * linux-low.c: Include <sys/syscall.h>.
22020 (linux_kill_one_process): Don't kill the first thread here.
22021 (linux_kill): Kill the first thread here.
22022 (kill_lwp): New function.
22023 (send_sigstop, linux_send_signal): Use it.
22024 * proc-service.c: Clean up #ifdefs.
22025 (fpregset_info): Delete.
22026 (ps_lgetregs): Update and enable implementation.
22027 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
22029 * remote-utils.c (struct sym_cache, symbol_cache): New.
22030 (input_interrupt): Print a clearer message.
22031 (async_io_enabled): New variable.
22032 (enable_async_io, disable_async_io): Use it. Update comments.
22033 (look_up_one_symbol): Use the symbol cache.
22034 * thread-db.c (thread_db_look_up_symbols): New function.
22035 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
22037 2004-10-16 Daniel Jacobowitz <dan@debian.org>
22039 * configure.in: Test for -rdynamic.
22040 * configure: Regenerated.
22041 * Makefile (INTERNAL_LDFLAGS): New.
22042 (gdbserver, gdbreplay): Use it.
22044 2004-09-02 Andrew Cagney <cagney@gnu.org>
22046 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
22048 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
22050 * linux-low.c (linux_wait): Clear all_processes list also.
22052 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22054 * linux-low.c: Include <errno.h>. Remove extern declaration of
22057 2004-03-12 Daniel Jacobowitz <drow@mvista.com>
22059 * gdbreplay.c, server.h, utils.c: Update copyright years.
22061 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22063 * server.c (main): Print child status or termination signal from
22064 variable 'signal', not 'sig'.
22066 2004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
22068 * linux-low.c (linux_read_memory): Change return type to
22069 int. Check for and return error from ptrace().
22070 * target.c (read_inferior_memory): Change return type to int. Pass
22071 back return status from the_target->read_memory().
22072 * target.h (struct target_ops): Adapt *read_memory() prototype.
22074 (read_inferior_memory): Adapt prototype.
22075 * server.c (main): Return an error packet if
22076 read_inferior_memory() returns an error.
22078 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
22080 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
22081 Unify with other clean targets.
22083 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22085 * server.c (handle_v_cont): Call set_desired_inferior.
22087 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22089 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
22091 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22093 * linux-low.c (linux_wait): Unblock async I/O.
22094 (linux_resume): Block and enable async I/O.
22095 * remote-utils.c (block_async_io, unblock_async_io): New functions.
22096 * server.h (block_async_io, unblock_async_io): Add prototypes.
22098 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22100 * remote-utils.c (remote_open): Print a status notice after
22101 opening a TCP port.
22102 * server.c (attach_inferior): Print a status notice after
22105 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
22107 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
22109 2004-02-26 Daniel Jacobowitz <drow@mvista.com>
22111 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
22113 * server.c, target.h: Update copyright years.
22115 2004-02-25 Roland McGrath <roland@redhat.com>
22117 * target.h (struct target_ops): New member `read_auxv'.
22118 * server.c (handle_query): Handle qPart:auxv:read: query using that.
22119 * linux-low.c (linux_read_auxv): New function.
22120 (linux_target_ops): Initialize `read_auxv' member to that.
22122 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22124 Committed by Jim Blandy <jimb@redhat.com>.
22126 * linux-s390-low.c (s390_num_regs): Update.
22127 (s390_regmap): Remove control registers. Use __s390x__ predefine
22128 instead of GPR_SIZE to distiguish s390 and s390x targets.
22130 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
22132 * linux-low.c: Update copyright year.
22133 (check_removed_breakpoint): Clear pending_is_breakpoint.
22134 (linux_set_resume_request, linux_queue_one_thread)
22135 (resume_status_pending_p): New functions.
22136 (linux_continue_one_thread): Use process->resume.
22137 (linux_resume): Only resume threads if there are no pending events.
22138 * linux-low.h (struct process_info): Add resume request
22141 2004-01-30 Daniel Jacobowitz <drow@mvista.com>
22143 * regcache.c (new_register_cache): Clear the allocated register
22144 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
22146 2003-10-13 Daniel Jacobowitz <drow@mvista.com>
22148 * linux-low.c (linux_resume): Take a struct thread_resume *
22150 (linux_wait): Update call.
22151 (resume_ptr): New static variable.
22152 (linux_continue_one_thread): Renamed from
22153 linux_continue_one_process. Use resume_ptr.
22154 (linux_resume): Use linux_continue_one_thread.
22155 * server.c (handle_v_cont, handle_v_requests): New functions.
22156 (myresume): New function.
22157 (main): Handle 'v' case.
22158 * target.h (struct thread_resume): New type.
22159 (struct target_ops): Change argument of "resume" to struct
22161 (myresume): Delete macro.
22163 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
22165 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
22166 (uninstall): Support DESTDIR.
22168 Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
22170 * configure.srv: Add xscale*linux copy of arm*linux entry.
22172 2003-07-24 Daniel Jacobowitz <drow@mvista.com>
22174 * linux-arm-low.c (arm_reinsert_addr): New function.
22175 (the_low_target): Add arm_reinsert_addr.
22177 2003-07-08 Mark Kettenis <kettenis@gnu.org>
22179 * mem-break.c: Remove whitespace at end of file.
22181 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22183 * configure.in: Check whether we need to prototype strerror.
22184 * server.h: Optionally prototype strerror.
22185 * gdbreplay.c (perror_with_name): Use strerror.
22186 * linux-low.c (linux_attach_lwp): Use strerror.
22187 * utils.c (perror_with_name): Use strerror.
22188 * config.in, configure: Regenerated.
22190 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
22192 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
22193 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
22195 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
22197 * Makefile.in (SFILES): Update.
22198 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
22199 low-sun3.c: Remove files.
22201 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
22203 * linux-low.c: Move comment to linux_thread_alive where it belonged.
22204 (linux_detach_one_process, linux_detach): New functions.
22205 (linux_target_ops): Add linux_detach.
22206 * server.c (main): Handle 'D' packet.
22207 * target.h (struct target_ops): Add "detach" member.
22208 (detach_inferior): Define.
22210 2003-06-13 Mark Kettenis <kettenis@gnu.org>
22212 From Kelley Cook <kelleycook@wideopenwest.com>:
22213 * configure.srv: Accept i[34567]86 variants.
22215 2003-06-05 Daniel Jacobowitz <drow@mvista.com>
22217 * linux-low.c (linux_wait_for_event): Correct comment typos.
22218 (linux_resume_one_process): Call check_removed_breakpoint.
22219 (linux_send_signal): New function.
22220 (linux_target_ops): Add linux_send_signal.
22221 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
22223 * target.h (struct target_ops): Add send_signal.
22225 2003-05-29 Jim Blandy <jimb@redhat.com>
22227 * linux-low.c (usr_store_inferior_registers): Transfer buf in
22228 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
22229 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
22230 away part of the register's value.
22232 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
22234 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
22235 (linux_wait_for_event, linux_init_signals): Likewise.
22237 2003-03-17 Daniel Jacobowitz <drow@mvista.com>
22239 * configure.in: Check for stdlib.h.
22240 * configure: Regenerated.
22241 * config.in: Regenerated.
22243 2003-01-04 Andreas Schwab <schwab@suse.de>
22245 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
22247 2003-01-02 Andrew Cagney <ac131313@redhat.com>
22249 * Makefile.in: Remove obsolete code.
22251 2002-11-20 Daniel Jacobowitz <drow@mvista.com>
22253 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
22254 defined(PT_FPR0_HI).
22256 2002-11-17 Stuart Hughes <seh@zee2.com>
22258 * linux-arm-low.c (arm_num_regs): Increase.
22259 (arm_regmap): Include status register.
22261 2002-11-17 Daniel Jacobowitz <drow@mvista.com>
22263 * linux-low.c (register_addr): Remove incorrect -1 check.
22265 2002-08-29 Daniel Jacobowitz <drow@mvista.com>
22267 * linux-low.c (linux_create_inferior): Call setpgid. Return
22269 (unstopped_p, linux_signal_pid): Remove.
22270 (linux_target_ops): Remove linux_signal_pid.
22271 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
22272 global instead of target method.
22273 * target.h (struct target_ops): Remove signal_pid. Update comment
22274 for create_inferior.
22275 * server.c (signal_pid): New variable.
22276 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
22277 gdbserver. Set the child to be the foreground process group.
22278 (attach_inferior): Set signal_pid.
22280 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
22282 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
22284 2002-08-20 Jim Blandy <jimb@redhat.com>
22286 * Makefile.in (LDFLAGS): Allow the configure script to establish a
22289 2002-08-01 Andrew Cagney <cagney@redhat.com>
22291 * Makefile.in: Make chill references obsolete.
22293 2002-07-24 Kevin Buettner <kevinb@redhat.com>
22295 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
22296 * configure: Regenerate.
22297 * config.in: Regenerate.
22299 2002-07-09 David O'Brien <obrien@FreeBSD.org>
22301 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
22302 (perror_with_name, remote_close, remote_open, expect, play): Static.
22304 2002-07-04 Michal Ludvig <mludvig@suse.cz>
22306 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
22307 byte offsets instead of an array of indexes.
22308 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
22310 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
22312 * regcache.c: Add comment.
22314 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
22316 * thread-db.c: New file.
22317 * proc-service.c: New file.
22318 * acinclude.m4: New file.
22319 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
22320 proc-service.o, and thread-db.o.
22321 (linux-low.o): Add USE_THREAD_DB.
22322 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
22323 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
22324 * aclocal.m4: Regenerated.
22325 * config.in: Regenerated.
22326 * configure: Regenerated.
22327 * configure.in: Check for proc_service.h, sys/procfs.h,
22328 thread_db.h, and linux/elf.h headrs.
22329 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
22330 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
22331 Check for -lthread_db and thread support.
22332 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
22333 PowerPC, and SuperH.
22334 * i387-fp.c: Constify arguments.
22335 * i387-fp.h: Likewise.
22336 * inferiors.c: (struct thread_info): Renamed from
22337 `struct inferior_info'. Remove PID member. Use generic inferior
22338 list header. All uses updated.
22339 (inferiors, signal_pid): Removed.
22340 (all_threads): New variable.
22341 (get_thread): Define.
22342 (add_inferior_to_list): New function.
22343 (for_each_inferior): New function.
22344 (change_inferior_id): New function.
22345 (add_inferior): Removed.
22346 (remove_inferior): New function.
22347 (add_thread): New function.
22348 (free_one_thread): New function.
22349 (remove_thread): New function.
22350 (clear_inferiors): Use for_each_inferior and free_one_thread.
22351 (find_inferior): New function.
22352 (find_inferior_id): New function.
22353 (inferior_target_data): Update argument type.
22354 (set_inferior_target_data): Likewise.
22355 (inferior_regcache_data): Likewise.
22356 (set_inferior_regcache_data): Likewise.
22357 * linux-low.c (linux_bp_reinsert): Remove.
22358 (all_processes, stopping_threads, using_thrads)
22359 (struct pending_signals, debug_threads, pid_of): New.
22360 (inferior_pid): Replace with macro.
22361 (struct inferior_linux_data): Remove.
22362 (get_stop_pc, add_process): New functions.
22363 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
22364 Use add_process and add_thread.
22365 (linux_attach_lwp): New function, based on old linux_attach. Use
22366 add_process and add_thread. Set stop_expected for new threads.
22367 (linux_attach): New function.
22368 (linux_kill_one_process): New function.
22369 (linux_kill): Kill all LWPs.
22370 (linux_thread_alive): Use find_inferior_id.
22371 (check_removed_breakpoints, status_pending_p): New functions.
22372 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
22373 Update. Use WNOHANG. Wait for cloned processes also. Update process
22374 struct for the found process.
22375 (linux_wait_for_event): New function.
22376 (linux_wait): Use it. Support LWPs.
22377 (send_sigstop, wait_for_sigstop, stop_all_processes)
22378 (linux_resume_one_process, linux_continue_one_process): New functions.
22379 (linux_resume): Support LWPs.
22380 (REGISTER_RAW_SIZE): Remove.
22381 (fetch_register): Use register_size instead. Call supply_register.
22382 (usr_store_inferior_registers): Likewise. Call collect_register.
22383 Fix recursive case.
22384 (regsets_fetch_inferior_registers): Improve error message.
22385 (regsets_store_inferior_registers): Add debugging.
22386 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
22387 (unstopped_p, linux_signal_pid): New functions.
22388 (linux_target_ops): Add linux_signal_pid.
22389 (linux_init_signals): New function.
22390 (initialize_low): Call it. Initialize using_threads.
22391 * regcache.c (inferior_regcache_data): Add valid
22393 (get_regcache): Fetch registers lazily. Add fetch argument
22394 and update all callers.
22395 (regcache_invalidate_one, regcache_invalidate): New
22397 (new_register_cache): Renamed from create_register_cache.
22398 Return the new regcache.
22399 (free_register_cache): Change argument to a void *.
22400 (registers_to_string, registers_from_string): Call get_regcache
22401 with fetch flag set.
22402 (register_data): Make static. Pass fetch flag to get_regcache.
22403 (supply_register): Call get_regcache with fetch flag clear.
22404 (collect_register): Call get_regcache with fetch flag set.
22405 (collect_register_as_string): New function.
22406 * regcache.h: Update.
22407 * remote-utils.c (putpkt): Flush after debug output and use
22409 Handle input interrupts while waiting for an ACK.
22410 (input_interrupt): Use signal_pid method.
22411 (getpkt): Flush after debug output and use stderr.
22412 (outreg): Use collect_register_as_string.
22413 (new_thread_notify, dead_thread_notify): New functions.
22414 (prepare_resume_reply): Check using_threads. Set thread_from_wait
22415 and general_thread.
22416 (look_up_one_symbol): Flush after debug output.
22417 * server.c (step_thread, server_waiting): New variables.
22418 (start_inferior): Don't use signal_pid. Update call to mywait.
22419 (attach_inferior): Update call to mywait.
22420 (handle_query): Handle qfThreadInfo and qsThreadInfo.
22421 (main): Don't fetch/store registers explicitly. Use
22422 set_desired_inferior. Support proposed ``Hs'' packet. Update
22424 * server.h: Update.
22425 (struct inferior_list, struct_inferior_list_entry): New.
22426 * target.c (set_desired_inferior): New.
22427 (write_inferior_memory): Constify.
22428 (mywait): New function.
22429 * target.h: Update.
22430 (struct target_ops): New signal_pid method.
22431 (mywait): Removed macro, added prototype.
22433 * linux-low.h (regset_func): Removed.
22434 (regset_fill_func, regset_store_func): New.
22435 (enum regset_type): New.
22436 (struct regset_info): Add type field. Use new operation types.
22437 (struct linux_target_ops): stop_pc renamed to get_pc.
22438 Add decr_pc_after_break and breakpoint_at.
22439 (get_process, get_thread_proess, get_process_thread)
22440 (strut process_info, all_processes, linux_attach_lwp)
22441 (thread_db_init): New.
22443 * linux-arm-low.c (arm_get_pc, arm_set_pc,
22444 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
22445 (the_low_target): Add new members.
22446 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
22447 (i386_store_fpxregset): Constify.
22448 (target_regsets): Add new kind identifier.
22449 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
22450 (i386_set_pc): Add debugging.
22451 (i386_breakpoint_at): New function.
22452 (the_low_target): Add new members.
22453 * linux-mips-low.c (mips_get_pc, mips_set_pc)
22454 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
22455 (mips_breakpoint_at): New.
22456 (the_low_target): Add new members.
22457 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
22458 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
22459 (the_low_target): Add new members.
22460 * linux-sh-low.c (sh_get_pc, sh_set_pc)
22461 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
22462 (the_low_target): Add new members.
22463 * linux-x86-64-low.c (target_regsets): Add new kind
22466 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
22468 From Martin Pool <mbp@samba.org>:
22469 * server.c (gdbserver_usage): New function.
22472 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
22474 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
22475 stop_at -> stop_pc.
22477 2002-05-04 Andrew Cagney <ac131313@redhat.com>
22479 * Makefile.in: Remove obsolete code.
22481 2002-04-24 Michal Ludvig <mludvig@suse.cz>
22483 * linux-low.c (regsets_fetch_inferior_registers),
22484 (regsets_store_inferior_registers): Removed cast to int from
22486 * regcache.h: Added declaration of struct inferior_info.
22488 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22490 * inferiors.c (struct inferior_info): Add regcache_data.
22491 (add_inferior): Call create_register_cache.
22492 (clear_inferiors): Call free_register_cache.
22493 (inferior_regcache_data, set_inferior_regcache_data): New functions.
22494 * regcache.c (struct inferior_regcache_data): New.
22495 (registers): Remove.
22496 (get_regcache): New function.
22497 (create_register_cache, free_register_cache): New functions.
22498 (set_register_cache): Don't initialize the register cache here.
22499 (registers_to_string, registers_from_string, register_data): Call
22501 * regcache.h: Add prototypes.
22502 * server.h: Likewise.
22504 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
22506 * mem-break.c: New file.
22507 * mem-break.h: New file.
22508 * Makefile.in: Add mem-break.o rule; update server.h
22510 * inferiors.c (struct inferior_info): Add target_data
22512 (clear_inferiors): Free target_data member if set.
22513 (inferior_target_data, set_inferior_target_data): New functions.
22514 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
22515 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
22516 * linux-low.c (linux_bp_reinsert): New variable.
22517 (struct inferior_linux_data): New.
22518 (linux_create_inferior): Use set_inferior_target_data.
22519 (linux_attach): Likewise. Call add_inferior.
22520 (linux_wait_for_one_inferior): New function.
22521 (linux_wait): Call it.
22522 (linux_write_memory): Add const.
22523 (initialize_low): Call set_breakpoint_data.
22524 * linux-low.h (struct linux_target_ops): Add breakpoint
22526 * server.c (attach_inferior): Remove extra add_inferior
22528 * server.h: Include mem-break.h. Update inferior.c
22530 * target.c (read_inferior_memory)
22531 (write_inferior_memory): New functions.
22532 * target.h (read_inferior_memory)
22533 (write_inferior_memory): Change macros to prototypes.
22534 (struct target_ops): Update comments. Add const to write_memory
22537 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
22539 * linux-low.c (usr_store_inferior_registers): Support
22540 registers which are allowed to fail to store.
22541 * linux-low.h (linux_target_ops): Likewise.
22542 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
22543 (ppc_cannot_store_register): FPSCR may not be storable.
22545 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22547 * server.h: Include <string.h> if HAVE_STRING_H.
22548 * ChangeLog: Correct paths in last ChangeLog entry.
22550 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22552 * linux-low.h: Remove obsolete prototypes.
22553 (struct linux_target_ops): New.
22554 (extern the_low_target): New.
22555 * linux-low.c (num_regs, regmap): Remove declarations.
22556 (register_addr): Use the_low_target explicitly.
22557 (fetch_register): Likewise.
22558 (usr_fetch_inferior_registers): Likewise.
22559 (usr_store_inferior_registers): Likewise.
22560 * linux-arm-low.c (num_regs): Remove.
22561 (arm_num_regs): Define.
22562 (arm_regmap): Renamed from regmap, made static.
22563 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
22565 (arm_cannot_store_register): Renamed from cannot_store_register,
22567 (the_low_target): New.
22568 * linux-i386-low.c (num_regs): Remove.
22569 (i386_num_regs): Define.
22570 (i386_regmap): Renamed from regmap, made static.
22571 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
22573 (i386_cannot_store_register): Renamed from cannot_store_register,
22575 (the_low_target): New.
22576 * linux-ia64-low.c (num_regs): Remove.
22577 (ia64_num_regs): Define.
22578 (ia64_regmap): Renamed from regmap, made static.
22579 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
22581 (ia64_cannot_store_register): Renamed from cannot_store_register,
22583 (the_low_target): New.
22584 * linux-m68k-low.c (num_regs): Remove.
22585 (m68k_num_regs): Define.
22586 (m68k_regmap): Renamed from regmap, made static.
22587 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
22589 (m68k_cannot_store_register): Renamed from cannot_store_register,
22591 (the_low_target): New.
22592 * linux-mips-low.c (num_regs): Remove.
22593 (mips_num_regs): Define.
22594 (mips_regmap): Renamed from regmap, made static.
22595 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
22597 (mips_cannot_store_register): Renamed from cannot_store_register,
22599 (the_low_target): New.
22600 * linux-ppc-low.c (num_regs): Remove.
22601 (ppc_num_regs): Define.
22602 (ppc_regmap): Renamed from regmap, made static.
22603 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
22605 (ppc_cannot_store_register): Renamed from cannot_store_register,
22607 (the_low_target): New.
22608 * linux-s390-low.c (num_regs): Remove.
22609 (s390_num_regs): Define.
22610 (s390_regmap): Renamed from regmap, made static.
22611 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
22613 (s390_cannot_store_register): Renamed from cannot_store_register,
22615 (the_low_target): New.
22616 * linux-sh-low.c (num_regs): Remove.
22617 (sh_num_regs): Define.
22618 (sh_regmap): Renamed from regmap, made static.
22619 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
22621 (sh_cannot_store_register): Renamed from cannot_store_register,
22623 (the_low_target): New.
22624 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
22625 (the_low_target): New.
22627 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22629 * Makefile.in: Add stamp-h target.
22630 * configure.in: Create stamp-h.
22631 * configure: Regenerated.
22633 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22635 * inferiors.c: New file.
22636 * target.c: New file.
22637 * target.h: New file.
22638 * Makefile.in: Add target.o and inferiors.o. Update
22640 * linux-low.c (inferior_pid): New static variable,
22641 moved from server.c.
22642 (linux_create_inferior): Renamed from create_inferior.
22643 Call add_inferior. Return 0 on success instead of a PID.
22644 (linux_attach): Renamed from myattach.
22645 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
22646 (linux_thread_alive): Renamed from mythread_alive.
22647 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
22649 (linux_resume): Renamed from myresume. Add missing ``return 0''.
22650 (regsets_store_inferior_registers): Correct error message.
22651 Add missing ``return 0''.
22652 (linux_fetch_registers): Renamed from fetch_inferior_registers.
22653 (linux_store_registers): Renamed from store_inferior_registers.
22654 (linux_read_memory): Renamed from read_inferior_memory.
22655 (linux_write_memory): Renamed from write_inferior_memory.
22656 (linux_target_ops): New structure.
22657 (initialize_low): Call set_target_ops ().
22658 * remote-utils.c (unhexify): New function.
22659 (hexify): New function.
22660 (input_interrupt): Send signals to ``signal_pid''.
22661 * server.c (inferior_pid): Remove.
22662 (start_inferior): Update create_inferior call.
22663 (attach_inferior): Call add_inferior.
22664 (handle_query): New function.
22665 (main): Call handle_query for `q' packets.
22666 * server.h: Include "target.h". Remove obsolete prototypes.
22667 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
22669 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
22671 * Makefile.in: Add WARN_CFLAGS. Update configury
22673 * configure.in: Check for <string.h>
22674 * configure: Regenerate.
22675 * config.in: Regenerate.
22676 * gdbreplay.c: Include needed system headers.
22677 (remote_open): Remove strchr prototype.
22678 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
22679 * regcache.c (supply_register): Change buf argument to const void *.
22680 (supply_register_by_name): Likewise.
22681 (collect_register): Change buf argument to void *.
22682 (collect_register_by_name): Likewise.
22683 * regcache.h: Add missing prototypes.
22684 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
22685 * server.c (handle_query): New function.
22686 (attached): New static variable, moved out of main.
22687 (main): Quiet longjmp clobber warnings.
22688 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
22689 * utils.c (error): Remove NORETURN.